Commit | Line | Data |
---|---|---|
ba4481b5 | 1 | #! /bin/sh |
ba4481b5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
35996d22 | 3 | # Generated by GNU Autoconf 2.59. |
ba4481b5 | 4 | # |
35996d22 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
ba4481b5 DL |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc MR |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
503d2be0 AS |
11 | |
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
6bae0ccf DL |
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+"$@"}'='"$@"' | |
503d2be0 AS |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 | set -o posix | |
21 | fi | |
35996d22 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
503d2be0 | 23 | |
c0d27fcc | 24 | # Support unset when possible. |
35996d22 | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
c0d27fcc MR |
26 | as_unset=unset |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
6bae0ccf DL |
31 | |
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
19650fd6 AS |
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 | |
6bae0ccf | 43 | do |
35996d22 | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6bae0ccf DL |
45 | eval $as_var=C; export $as_var |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
c0d27fcc MR |
63 | |
64 | ||
503d2be0 | 65 | # Name of the executable. |
6bae0ccf | 66 | as_me=`$as_basename "$0" || |
c0d27fcc MR |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
6bae0ccf | 77 | |
c0d27fcc MR |
78 | # PATH needs CR, and LINENO needs CR and PATH. |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
19650fd6 AS |
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 | |
c0d27fcc MR |
92 | PATH_SEPARATOR=';' |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
19650fd6 | 96 | rm -f conf$$.sh |
c0d27fcc MR |
97 | fi |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
6bae0ccf DL |
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; } | |
c0d27fcc MR |
146 | CONFIG_SHELL=$as_dir/$as_base |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
503d2be0 AS |
193 | |
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
6bae0ccf DL |
218 | if mkdir -p . 2>/dev/null; then |
219 | as_mkdir_p=: | |
220 | else | |
35996d22 | 221 | test -d ./-p && rmdir ./-p |
6bae0ccf DL |
222 | as_mkdir_p=false |
223 | fi | |
224 | ||
503d2be0 AS |
225 | as_executable_p="test -f" |
226 | ||
c0d27fcc | 227 | # Sed expression to map a string onto a valid CPP name. |
35996d22 | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
c0d27fcc MR |
229 | |
230 | # Sed expression to map a string onto a valid variable name. | |
35996d22 | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
503d2be0 | 232 | |
503d2be0 AS |
233 | |
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
6bae0ccf | 241 | $as_unset CDPATH |
c0d27fcc | 242 | |
503d2be0 AS |
243 | |
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
249 | exec 6>&1 | |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
ba4481b5 | 254 | ac_default_prefix=/usr/local |
6bae0ccf | 255 | ac_config_libobj_dir=. |
503d2be0 AS |
256 | cross_compiling=no |
257 | subdirs= | |
c0d27fcc MR |
258 | MFLAGS= |
259 | MAKEFLAGS= | |
503d2be0 AS |
260 | SHELL=${CONFIG_SHELL-/bin/sh} |
261 | ||
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 | ||
c0d27fcc MR |
267 | # Identity of this package. |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
503d2be0 | 274 | ac_unique_file="src/lisp.h" |
6bae0ccf | 275 | ac_config_libobj_dir=src |
503d2be0 AS |
276 | # Factoring default headers for most tests. |
277 | ac_includes_default="\ | |
278 | #include <stdio.h> | |
279 | #if HAVE_SYS_TYPES_H | |
280 | # include <sys/types.h> | |
281 | #endif | |
282 | #if HAVE_SYS_STAT_H | |
283 | # include <sys/stat.h> | |
284 | #endif | |
285 | #if STDC_HEADERS | |
286 | # include <stdlib.h> | |
287 | # include <stddef.h> | |
288 | #else | |
289 | # if HAVE_STDLIB_H | |
290 | # include <stdlib.h> | |
291 | # endif | |
292 | #endif | |
293 | #if HAVE_STRING_H | |
294 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
295 | # include <memory.h> | |
296 | # endif | |
297 | # include <string.h> | |
298 | #endif | |
299 | #if HAVE_STRINGS_H | |
300 | # include <strings.h> | |
301 | #endif | |
302 | #if HAVE_INTTYPES_H | |
303 | # include <inttypes.h> | |
304 | #else | |
305 | # if HAVE_STDINT_H | |
306 | # include <stdint.h> | |
307 | # endif | |
308 | #endif | |
309 | #if HAVE_UNISTD_H | |
310 | # include <unistd.h> | |
311 | #endif" | |
ba4481b5 | 312 | |
f17e308a | 313 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS' |
6bae0ccf | 314 | ac_subst_files='' |
c0d27fcc | 315 | |
ba4481b5 | 316 | # Initialize some variables set by options. |
503d2be0 AS |
317 | ac_init_help= |
318 | ac_init_version=false | |
ba4481b5 DL |
319 | # The variables have the same names as the options, with |
320 | # dashes changed to underlines. | |
503d2be0 | 321 | cache_file=/dev/null |
ba4481b5 | 322 | exec_prefix=NONE |
ba4481b5 | 323 | no_create= |
ba4481b5 DL |
324 | no_recursion= |
325 | prefix=NONE | |
326 | program_prefix=NONE | |
327 | program_suffix=NONE | |
328 | program_transform_name=s,x,x, | |
329 | silent= | |
330 | site= | |
331 | srcdir= | |
ba4481b5 DL |
332 | verbose= |
333 | x_includes=NONE | |
334 | x_libraries=NONE | |
503d2be0 AS |
335 | |
336 | # Installation directory options. | |
337 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
338 | # and all the variables that are supposed to be based on exec_prefix | |
339 | # by default will actually change. | |
340 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
ba4481b5 DL |
341 | bindir='${exec_prefix}/bin' |
342 | sbindir='${exec_prefix}/sbin' | |
343 | libexecdir='${exec_prefix}/libexec' | |
344 | datadir='${prefix}/share' | |
345 | sysconfdir='${prefix}/etc' | |
346 | sharedstatedir='${prefix}/com' | |
347 | localstatedir='${prefix}/var' | |
348 | libdir='${exec_prefix}/lib' | |
349 | includedir='${prefix}/include' | |
350 | oldincludedir='/usr/include' | |
351 | infodir='${prefix}/info' | |
352 | mandir='${prefix}/man' | |
353 | ||
ba4481b5 DL |
354 | ac_prev= |
355 | for ac_option | |
356 | do | |
ba4481b5 DL |
357 | # If the previous option needs an argument, assign it. |
358 | if test -n "$ac_prev"; then | |
359 | eval "$ac_prev=\$ac_option" | |
360 | ac_prev= | |
361 | continue | |
362 | fi | |
363 | ||
503d2be0 | 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
ba4481b5 DL |
365 | |
366 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
367 | ||
503d2be0 | 368 | case $ac_option in |
ba4481b5 DL |
369 | |
370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
371 | ac_prev=bindir ;; | |
372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
503d2be0 | 373 | bindir=$ac_optarg ;; |
ba4481b5 DL |
374 | |
375 | -build | --build | --buil | --bui | --bu) | |
503d2be0 | 376 | ac_prev=build_alias ;; |
ba4481b5 | 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
503d2be0 | 378 | build_alias=$ac_optarg ;; |
ba4481b5 DL |
379 | |
380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
382 | ac_prev=cache_file ;; | |
383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
503d2be0 AS |
385 | cache_file=$ac_optarg ;; |
386 | ||
387 | --config-cache | -C) | |
388 | cache_file=config.cache ;; | |
ba4481b5 DL |
389 | |
390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
391 | ac_prev=datadir ;; | |
392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
393 | | --da=*) | |
503d2be0 | 394 | datadir=$ac_optarg ;; |
ba4481b5 DL |
395 | |
396 | -disable-* | --disable-*) | |
503d2be0 | 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ba4481b5 | 398 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
401 | { (exit 1); exit 1; }; } | |
402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
403 | eval "enable_$ac_feature=no" ;; | |
ba4481b5 DL |
404 | |
405 | -enable-* | --enable-*) | |
503d2be0 | 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ba4481b5 | 407 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
410 | { (exit 1); exit 1; }; } | |
411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
412 | case $ac_option in | |
413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
ba4481b5 DL |
414 | *) ac_optarg=yes ;; |
415 | esac | |
503d2be0 | 416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
ba4481b5 DL |
417 | |
418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
420 | | --exec | --exe | --ex) | |
421 | ac_prev=exec_prefix ;; | |
422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
424 | | --exec=* | --exe=* | --ex=*) | |
503d2be0 | 425 | exec_prefix=$ac_optarg ;; |
ba4481b5 DL |
426 | |
427 | -gas | --gas | --ga | --g) | |
428 | # Obsolete; use --with-gas. | |
429 | with_gas=yes ;; | |
430 | ||
503d2be0 AS |
431 | -help | --help | --hel | --he | -h) |
432 | ac_init_help=long ;; | |
433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
434 | ac_init_help=recursive ;; | |
435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
436 | ac_init_help=short ;; | |
ba4481b5 DL |
437 | |
438 | -host | --host | --hos | --ho) | |
503d2be0 | 439 | ac_prev=host_alias ;; |
ba4481b5 | 440 | -host=* | --host=* | --hos=* | --ho=*) |
503d2be0 | 441 | host_alias=$ac_optarg ;; |
ba4481b5 DL |
442 | |
443 | -includedir | --includedir | --includedi | --included | --include \ | |
444 | | --includ | --inclu | --incl | --inc) | |
445 | ac_prev=includedir ;; | |
446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
447 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
503d2be0 | 448 | includedir=$ac_optarg ;; |
ba4481b5 DL |
449 | |
450 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
451 | ac_prev=infodir ;; | |
452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
503d2be0 | 453 | infodir=$ac_optarg ;; |
ba4481b5 DL |
454 | |
455 | -libdir | --libdir | --libdi | --libd) | |
456 | ac_prev=libdir ;; | |
457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
503d2be0 | 458 | libdir=$ac_optarg ;; |
ba4481b5 DL |
459 | |
460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
461 | | --libexe | --libex | --libe) | |
462 | ac_prev=libexecdir ;; | |
463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
464 | | --libexe=* | --libex=* | --libe=*) | |
503d2be0 | 465 | libexecdir=$ac_optarg ;; |
ba4481b5 DL |
466 | |
467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
468 | | --localstate | --localstat | --localsta | --localst \ | |
469 | | --locals | --local | --loca | --loc | --lo) | |
470 | ac_prev=localstatedir ;; | |
471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
503d2be0 | 474 | localstatedir=$ac_optarg ;; |
ba4481b5 DL |
475 | |
476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
477 | ac_prev=mandir ;; | |
478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
503d2be0 | 479 | mandir=$ac_optarg ;; |
ba4481b5 DL |
480 | |
481 | -nfp | --nfp | --nf) | |
482 | # Obsolete; use --without-fp. | |
483 | with_fp=no ;; | |
484 | ||
485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c0d27fcc | 486 | | --no-cr | --no-c | -n) |
ba4481b5 DL |
487 | no_create=yes ;; |
488 | ||
489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
491 | no_recursion=yes ;; | |
492 | ||
493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
495 | | --oldin | --oldi | --old | --ol | --o) | |
496 | ac_prev=oldincludedir ;; | |
497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503d2be0 | 500 | oldincludedir=$ac_optarg ;; |
ba4481b5 DL |
501 | |
502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
503 | ac_prev=prefix ;; | |
504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
503d2be0 | 505 | prefix=$ac_optarg ;; |
ba4481b5 DL |
506 | |
507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
508 | | --program-pre | --program-pr | --program-p) | |
509 | ac_prev=program_prefix ;; | |
510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
503d2be0 | 512 | program_prefix=$ac_optarg ;; |
ba4481b5 DL |
513 | |
514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
515 | | --program-suf | --program-su | --program-s) | |
516 | ac_prev=program_suffix ;; | |
517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
503d2be0 | 519 | program_suffix=$ac_optarg ;; |
ba4481b5 DL |
520 | |
521 | -program-transform-name | --program-transform-name \ | |
522 | | --program-transform-nam | --program-transform-na \ | |
523 | | --program-transform-n | --program-transform- \ | |
524 | | --program-transform | --program-transfor \ | |
525 | | --program-transfo | --program-transf \ | |
526 | | --program-trans | --program-tran \ | |
527 | | --progr-tra | --program-tr | --program-t) | |
528 | ac_prev=program_transform_name ;; | |
529 | -program-transform-name=* | --program-transform-name=* \ | |
530 | | --program-transform-nam=* | --program-transform-na=* \ | |
531 | | --program-transform-n=* | --program-transform-=* \ | |
532 | | --program-transform=* | --program-transfor=* \ | |
533 | | --program-transfo=* | --program-transf=* \ | |
534 | | --program-trans=* | --program-tran=* \ | |
535 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
503d2be0 | 536 | program_transform_name=$ac_optarg ;; |
ba4481b5 DL |
537 | |
538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
539 | | -silent | --silent | --silen | --sile | --sil) | |
540 | silent=yes ;; | |
541 | ||
542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
543 | ac_prev=sbindir ;; | |
544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
545 | | --sbi=* | --sb=*) | |
503d2be0 | 546 | sbindir=$ac_optarg ;; |
ba4481b5 DL |
547 | |
548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
550 | | --sharedst | --shareds | --shared | --share | --shar \ | |
551 | | --sha | --sh) | |
552 | ac_prev=sharedstatedir ;; | |
553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
556 | | --sha=* | --sh=*) | |
503d2be0 | 557 | sharedstatedir=$ac_optarg ;; |
ba4481b5 DL |
558 | |
559 | -site | --site | --sit) | |
560 | ac_prev=site ;; | |
561 | -site=* | --site=* | --sit=*) | |
503d2be0 | 562 | site=$ac_optarg ;; |
ba4481b5 DL |
563 | |
564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
565 | ac_prev=srcdir ;; | |
566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
503d2be0 | 567 | srcdir=$ac_optarg ;; |
ba4481b5 DL |
568 | |
569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
570 | | --syscon | --sysco | --sysc | --sys | --sy) | |
571 | ac_prev=sysconfdir ;; | |
572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
503d2be0 | 574 | sysconfdir=$ac_optarg ;; |
ba4481b5 DL |
575 | |
576 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
503d2be0 | 577 | ac_prev=target_alias ;; |
ba4481b5 | 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
503d2be0 | 579 | target_alias=$ac_optarg ;; |
ba4481b5 DL |
580 | |
581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
582 | verbose=yes ;; | |
583 | ||
503d2be0 AS |
584 | -version | --version | --versio | --versi | --vers | -V) |
585 | ac_init_version=: ;; | |
ba4481b5 DL |
586 | |
587 | -with-* | --with-*) | |
503d2be0 | 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ba4481b5 | 589 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
592 | { (exit 1); exit 1; }; } | |
ba4481b5 | 593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
503d2be0 AS |
594 | case $ac_option in |
595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
ba4481b5 DL |
596 | *) ac_optarg=yes ;; |
597 | esac | |
503d2be0 | 598 | eval "with_$ac_package='$ac_optarg'" ;; |
ba4481b5 DL |
599 | |
600 | -without-* | --without-*) | |
503d2be0 | 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ba4481b5 | 602 | # Reject names that are not valid shell variable names. |
503d2be0 AS |
603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
605 | { (exit 1); exit 1; }; } | |
606 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
607 | eval "with_$ac_package=no" ;; | |
ba4481b5 DL |
608 | |
609 | --x) | |
610 | # Obsolete; use --with-x. | |
611 | with_x=yes ;; | |
612 | ||
613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
614 | | --x-incl | --x-inc | --x-in | --x-i) | |
615 | ac_prev=x_includes ;; | |
616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
503d2be0 | 618 | x_includes=$ac_optarg ;; |
ba4481b5 DL |
619 | |
620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
622 | ac_prev=x_libraries ;; | |
623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
503d2be0 | 625 | x_libraries=$ac_optarg ;; |
ba4481b5 | 626 | |
503d2be0 AS |
627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
628 | Try \`$0 --help' for more information." >&2 | |
629 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
630 | ;; |
631 | ||
503d2be0 AS |
632 | *=*) |
633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
634 | # Reject names that are not valid shell variable names. | |
635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
637 | { (exit 1); exit 1; }; } | |
638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
639 | eval "$ac_envvar='$ac_optarg'" | |
640 | export $ac_envvar ;; | |
641 | ||
ba4481b5 | 642 | *) |
503d2be0 AS |
643 | # FIXME: should be removed in autoconf 3.0. |
644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
ba4481b5 DL |
648 | ;; |
649 | ||
650 | esac | |
651 | done | |
652 | ||
653 | if test -n "$ac_prev"; then | |
503d2be0 AS |
654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
655 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
656 | { (exit 1); exit 1; }; } | |
ba4481b5 | 657 | fi |
ba4481b5 | 658 | |
503d2be0 AS |
659 | # Be sure to have absolute paths. |
660 | for ac_var in exec_prefix prefix | |
661 | do | |
662 | eval ac_val=$`echo $ac_var` | |
663 | case $ac_val in | |
664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
c0d27fcc | 665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
503d2be0 AS |
666 | { (exit 1); exit 1; }; };; |
667 | esac | |
668 | done | |
ba4481b5 | 669 | |
503d2be0 AS |
670 | # Be sure to have absolute paths. |
671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
35996d22 | 672 | localstatedir libdir includedir oldincludedir infodir mandir |
ba4481b5 | 673 | do |
503d2be0 AS |
674 | eval ac_val=$`echo $ac_var` |
675 | case $ac_val in | |
676 | [\\/$]* | ?:[\\/]* ) ;; | |
c0d27fcc | 677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
503d2be0 | 678 | { (exit 1); exit 1; }; };; |
ba4481b5 DL |
679 | esac |
680 | done | |
681 | ||
503d2be0 AS |
682 | # There might be people who depend on the old broken behavior: `$host' |
683 | # used to hold the argument of --host etc. | |
c0d27fcc | 684 | # FIXME: To remove some day. |
503d2be0 AS |
685 | build=$build_alias |
686 | host=$host_alias | |
687 | target=$target_alias | |
688 | ||
c0d27fcc | 689 | # FIXME: To remove some day. |
503d2be0 AS |
690 | if test "x$host_alias" != x; then |
691 | if test "x$build_alias" = x; then | |
692 | cross_compiling=maybe | |
693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
694 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
695 | elif test "x$build_alias" != "x$host_alias"; then | |
696 | cross_compiling=yes | |
697 | fi | |
698 | fi | |
ba4481b5 | 699 | |
503d2be0 AS |
700 | ac_tool_prefix= |
701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
ba4481b5 | 702 | |
503d2be0 | 703 | test "$silent" = yes && exec 6>/dev/null |
ba4481b5 | 704 | |
c0d27fcc | 705 | |
ba4481b5 DL |
706 | # Find the source files, if location was not specified. |
707 | if test -z "$srcdir"; then | |
708 | ac_srcdir_defaulted=yes | |
709 | # Try the directory containing this script, then its parent. | |
c0d27fcc MR |
710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
712 | X"$0" : 'X\(//\)[^/]' \| \ |
713 | X"$0" : 'X\(//\)$' \| \ | |
714 | X"$0" : 'X\(/\)' \| \ | |
715 | . : '\(.\)' 2>/dev/null || | |
c0d27fcc MR |
716 | echo X"$0" | |
717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
719 | /^X\(\/\/\)$/{ s//\1/; q; } | |
720 | /^X\(\/\).*/{ s//\1/; q; } | |
721 | s/.*/./; q'` | |
ba4481b5 DL |
722 | srcdir=$ac_confdir |
723 | if test ! -r $srcdir/$ac_unique_file; then | |
724 | srcdir=.. | |
725 | fi | |
726 | else | |
727 | ac_srcdir_defaulted=no | |
728 | fi | |
729 | if test ! -r $srcdir/$ac_unique_file; then | |
730 | if test "$ac_srcdir_defaulted" = yes; then | |
c0d27fcc | 731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
503d2be0 | 732 | { (exit 1); exit 1; }; } |
ba4481b5 | 733 | else |
c0d27fcc | 734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
503d2be0 | 735 | { (exit 1); exit 1; }; } |
ba4481b5 DL |
736 | fi |
737 | fi | |
6bae0ccf DL |
738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
740 | { (exit 1); exit 1; }; } | |
503d2be0 AS |
741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
742 | ac_env_build_alias_set=${build_alias+set} | |
743 | ac_env_build_alias_value=$build_alias | |
744 | ac_cv_env_build_alias_set=${build_alias+set} | |
745 | ac_cv_env_build_alias_value=$build_alias | |
746 | ac_env_host_alias_set=${host_alias+set} | |
747 | ac_env_host_alias_value=$host_alias | |
748 | ac_cv_env_host_alias_set=${host_alias+set} | |
749 | ac_cv_env_host_alias_value=$host_alias | |
750 | ac_env_target_alias_set=${target_alias+set} | |
751 | ac_env_target_alias_value=$target_alias | |
752 | ac_cv_env_target_alias_set=${target_alias+set} | |
753 | ac_cv_env_target_alias_value=$target_alias | |
754 | ac_env_CC_set=${CC+set} | |
755 | ac_env_CC_value=$CC | |
756 | ac_cv_env_CC_set=${CC+set} | |
757 | ac_cv_env_CC_value=$CC | |
758 | ac_env_CFLAGS_set=${CFLAGS+set} | |
759 | ac_env_CFLAGS_value=$CFLAGS | |
760 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_cv_env_CFLAGS_value=$CFLAGS | |
762 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
763 | ac_env_LDFLAGS_value=$LDFLAGS | |
764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
767 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_env_CPP_set=${CPP+set} | |
771 | ac_env_CPP_value=$CPP | |
772 | ac_cv_env_CPP_set=${CPP+set} | |
773 | ac_cv_env_CPP_value=$CPP | |
774 | ||
775 | # | |
776 | # Report the --help message. | |
777 | # | |
778 | if test "$ac_init_help" = "long"; then | |
779 | # Omit some internal or obsolete options to make the list less imposing. | |
780 | # This message is too long to be a string in the A/UX 3.1 sh. | |
c0d27fcc | 781 | cat <<_ACEOF |
503d2be0 AS |
782 | \`configure' configures this package to adapt to many kinds of systems. |
783 | ||
784 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
785 | ||
786 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
787 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
788 | ||
789 | Defaults for the options are specified in brackets. | |
790 | ||
791 | Configuration: | |
792 | -h, --help display this help and exit | |
793 | --help=short display options specific to this package | |
794 | --help=recursive display the short help of all the included packages | |
795 | -V, --version display version information and exit | |
796 | -q, --quiet, --silent do not print \`checking...' messages | |
797 | --cache-file=FILE cache test results in FILE [disabled] | |
798 | -C, --config-cache alias for \`--cache-file=config.cache' | |
799 | -n, --no-create do not create output files | |
800 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
801 | ||
c0d27fcc | 802 | _ACEOF |
503d2be0 | 803 | |
c0d27fcc | 804 | cat <<_ACEOF |
503d2be0 AS |
805 | Installation directories: |
806 | --prefix=PREFIX install architecture-independent files in PREFIX | |
35996d22 | 807 | [$ac_default_prefix] |
503d2be0 | 808 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
35996d22 | 809 | [PREFIX] |
503d2be0 AS |
810 | |
811 | By default, \`make install' will install all the files in | |
812 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
813 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
814 | for instance \`--prefix=\$HOME'. | |
815 | ||
816 | For better control, use the options below. | |
817 | ||
818 | Fine tuning of the installation directories: | |
819 | --bindir=DIR user executables [EPREFIX/bin] | |
820 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
821 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
822 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
823 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
824 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
825 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
826 | --libdir=DIR object code libraries [EPREFIX/lib] | |
827 | --includedir=DIR C header files [PREFIX/include] | |
828 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
829 | --infodir=DIR info documentation [PREFIX/info] | |
830 | --mandir=DIR man documentation [PREFIX/man] | |
c0d27fcc | 831 | _ACEOF |
503d2be0 | 832 | |
c0d27fcc | 833 | cat <<\_ACEOF |
503d2be0 | 834 | |
ba5da88a PJ |
835 | Program names: |
836 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
837 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
838 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
839 | ||
503d2be0 AS |
840 | X features: |
841 | --x-includes=DIR X include files are in DIR | |
842 | --x-libraries=DIR X library files are in DIR | |
843 | ||
844 | System types: | |
845 | --build=BUILD configure for building on BUILD [guessed] | |
c0d27fcc MR |
846 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
847 | _ACEOF | |
503d2be0 AS |
848 | fi |
849 | ||
850 | if test -n "$ac_init_help"; then | |
851 | ||
c0d27fcc | 852 | cat <<\_ACEOF |
503d2be0 AS |
853 | |
854 | Optional Features: | |
855 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
856 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6a3a24fa JD |
857 | --enable-carbon-app[=DIR] [DIR=/Application] |
858 | specify install directory for Emacs.app on Mac OS X | |
19650fd6 AS |
859 | --enable-maintainer-mode enable make rules and dependencies not useful |
860 | (and sometimes confusing) to the casual installer | |
503d2be0 AS |
861 | --disable-largefile omit support for large files |
862 | ||
863 | Optional Packages: | |
864 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
865 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
866 | --without-gcc don't use GCC to compile Emacs if GCC is found | |
867 | --without-pop don't support POP mail retrieval with movemail | |
868 | --with-kerberos support Kerberos-authenticated POP | |
869 | --with-kerberos5 support Kerberos version 5 authenticated POP | |
870 | --with-hesiod support Hesiod to get the POP server host | |
2c9dccc9 | 871 | --without-sound don't compile with sound support |
488dd4c4 JD |
872 | --with-x-toolkit=KIT use an X toolkit |
873 | (KIT = yes/lucid/athena/motif/gtk/no) | |
503d2be0 AS |
874 | --with-xpm use -lXpm for displaying XPM images |
875 | --with-jpeg use -ljpeg for displaying JPEG images | |
876 | --with-tiff use -ltiff for displaying TIFF images | |
877 | --with-gif use -lungif for displaying GIF images | |
878 | --with-png use -lpng for displaying PNG images | |
488dd4c4 JD |
879 | --with-gtk use GTK (same as --with-x-toolkit=gtk) |
880 | --with-pkg-config-prog Path to pkg-config to use for finding GTK | |
503d2be0 | 881 | --without-toolkit-scroll-bars |
cc227489 MB |
882 | don't use Motif or Xaw3d scroll bars |
883 | --without-xim don't use X11 XIM | |
e0f712ba | 884 | --without-carbon don't use Carbon GUI on Mac OS X |
503d2be0 AS |
885 | --with-x use the X Window System |
886 | ||
887 | Some influential environment variables: | |
888 | CC C compiler command | |
889 | CFLAGS C compiler flags | |
890 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
891 | nonstandard directory <lib dir> | |
892 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
893 | headers in a nonstandard directory <include dir> | |
894 | CPP C preprocessor | |
895 | ||
896 | Use these variables to override the choices made by `configure' or to help | |
897 | it to find libraries and programs with nonstandard names/locations. | |
898 | ||
c0d27fcc | 899 | _ACEOF |
503d2be0 AS |
900 | fi |
901 | ||
902 | if test "$ac_init_help" = "recursive"; then | |
903 | # If there are subdirs, report their specific --help. | |
904 | ac_popdir=`pwd` | |
c0d27fcc MR |
905 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
906 | test -d $ac_dir || continue | |
907 | ac_builddir=. | |
908 | ||
909 | if test "$ac_dir" != .; then | |
910 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
911 | # A "../" for each directory in $ac_dir_suffix. | |
912 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
913 | else | |
914 | ac_dir_suffix= ac_top_builddir= | |
915 | fi | |
503d2be0 | 916 | |
c0d27fcc MR |
917 | case $srcdir in |
918 | .) # No --srcdir option. We are building in place. | |
919 | ac_srcdir=. | |
920 | if test -z "$ac_top_builddir"; then | |
921 | ac_top_srcdir=. | |
922 | else | |
923 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
924 | fi ;; | |
925 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
926 | ac_srcdir=$srcdir$ac_dir_suffix; | |
927 | ac_top_srcdir=$srcdir ;; | |
928 | *) # Relative path. | |
929 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
930 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
931 | esac | |
35996d22 AS |
932 | |
933 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
934 | # the directories may not exist. | |
935 | case `pwd` in | |
936 | .) ac_abs_builddir="$ac_dir";; | |
937 | *) | |
938 | case "$ac_dir" in | |
939 | .) ac_abs_builddir=`pwd`;; | |
940 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
941 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
942 | esac;; | |
943 | esac | |
944 | case $ac_abs_builddir in | |
945 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
946 | *) | |
947 | case ${ac_top_builddir}. in | |
948 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
949 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
950 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
951 | esac;; | |
952 | esac | |
953 | case $ac_abs_builddir in | |
954 | .) ac_abs_srcdir=$ac_srcdir;; | |
955 | *) | |
956 | case $ac_srcdir in | |
957 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
958 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
959 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
960 | esac;; | |
961 | esac | |
962 | case $ac_abs_builddir in | |
963 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
964 | *) | |
965 | case $ac_top_srcdir in | |
966 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
967 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
968 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
969 | esac;; | |
970 | esac | |
c0d27fcc MR |
971 | |
972 | cd $ac_dir | |
503d2be0 | 973 | # Check for guested configure; otherwise get Cygnus style configure. |
c0d27fcc | 974 | if test -f $ac_srcdir/configure.gnu; then |
503d2be0 | 975 | echo |
c0d27fcc MR |
976 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
977 | elif test -f $ac_srcdir/configure; then | |
503d2be0 | 978 | echo |
c0d27fcc MR |
979 | $SHELL $ac_srcdir/configure --help=recursive |
980 | elif test -f $ac_srcdir/configure.ac || | |
35996d22 | 981 | test -f $ac_srcdir/configure.in; then |
503d2be0 AS |
982 | echo |
983 | $ac_configure --help | |
984 | else | |
c0d27fcc | 985 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
503d2be0 | 986 | fi |
4494a266 | 987 | cd $ac_popdir |
503d2be0 AS |
988 | done |
989 | fi | |
990 | ||
991 | test -n "$ac_init_help" && exit 0 | |
992 | if $ac_init_version; then | |
c0d27fcc | 993 | cat <<\_ACEOF |
503d2be0 | 994 | |
35996d22 | 995 | Copyright (C) 2003 Free Software Foundation, Inc. |
503d2be0 AS |
996 | This configure script is free software; the Free Software Foundation |
997 | gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc | 998 | _ACEOF |
503d2be0 AS |
999 | exit 0 |
1000 | fi | |
1001 | exec 5>config.log | |
c0d27fcc | 1002 | cat >&5 <<_ACEOF |
503d2be0 AS |
1003 | This file contains any messages produced by compilers while |
1004 | running configure, to aid debugging if configure makes a mistake. | |
1005 | ||
1006 | It was created by $as_me, which was | |
35996d22 | 1007 | generated by GNU Autoconf 2.59. Invocation command line was |
503d2be0 AS |
1008 | |
1009 | $ $0 $@ | |
1010 | ||
c0d27fcc | 1011 | _ACEOF |
503d2be0 AS |
1012 | { |
1013 | cat <<_ASUNAME | |
c0d27fcc MR |
1014 | ## --------- ## |
1015 | ## Platform. ## | |
1016 | ## --------- ## | |
503d2be0 AS |
1017 | |
1018 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1019 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1020 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1021 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1022 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1023 | ||
1024 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1025 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1026 | ||
1027 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1028 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1029 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1030 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1031 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1032 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1033 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1034 | ||
925c2f3f | 1035 | _ASUNAME |
c0d27fcc MR |
1036 | |
1037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1038 | for as_dir in $PATH | |
1039 | do | |
1040 | IFS=$as_save_IFS | |
1041 | test -z "$as_dir" && as_dir=. | |
1042 | echo "PATH: $as_dir" | |
1043 | done | |
1044 | ||
503d2be0 AS |
1045 | } >&5 |
1046 | ||
c0d27fcc MR |
1047 | cat >&5 <<_ACEOF |
1048 | ||
1049 | ||
1050 | ## ----------- ## | |
1051 | ## Core tests. ## | |
1052 | ## ----------- ## | |
1053 | ||
1054 | _ACEOF | |
503d2be0 | 1055 | |
503d2be0 AS |
1056 | |
1057 | # Keep a trace of the command line. | |
1058 | # Strip out --no-create and --no-recursion so they do not pile up. | |
19650fd6 | 1059 | # Strip out --silent because we don't want to record it for future runs. |
503d2be0 | 1060 | # Also quote any args containing shell meta-characters. |
19650fd6 | 1061 | # Make two passes to allow for proper duplicate-argument suppression. |
503d2be0 | 1062 | ac_configure_args= |
19650fd6 AS |
1063 | ac_configure_args0= |
1064 | ac_configure_args1= | |
503d2be0 | 1065 | ac_sep= |
19650fd6 AS |
1066 | ac_must_keep_next=false |
1067 | for ac_pass in 1 2 | |
503d2be0 | 1068 | do |
19650fd6 AS |
1069 | for ac_arg |
1070 | do | |
1071 | case $ac_arg in | |
1072 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1073 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1074 | | -silent | --silent | --silen | --sile | --sil) | |
1075 | continue ;; | |
1076 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1077 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1078 | esac | |
1079 | case $ac_pass in | |
1080 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1081 | 2) | |
1082 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1083 | if test $ac_must_keep_next = true; then | |
35996d22 | 1084 | ac_must_keep_next=false # Got value, back to normal. |
19650fd6 | 1085 | else |
35996d22 AS |
1086 | case $ac_arg in |
1087 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1088 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1089 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1090 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1091 | case "$ac_configure_args0 " in | |
1092 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1093 | esac | |
1094 | ;; | |
1095 | -* ) ac_must_keep_next=true ;; | |
1096 | esac | |
19650fd6 AS |
1097 | fi |
1098 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1099 | # Get rid of the leading space. | |
1100 | ac_sep=" " | |
1101 | ;; | |
1102 | esac | |
1103 | done | |
503d2be0 | 1104 | done |
19650fd6 AS |
1105 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1106 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
503d2be0 AS |
1107 | |
1108 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1109 | # config.log. We remove comments because anyway the quotes in there | |
1110 | # would cause problems or look ugly. | |
c0d27fcc MR |
1111 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1112 | # such as our DU 5.0 friend, will then `close' the trap. | |
503d2be0 AS |
1113 | trap 'exit_status=$? |
1114 | # Save into config.log some information that might help in debugging. | |
c0d27fcc MR |
1115 | { |
1116 | echo | |
6bae0ccf | 1117 | |
c0d27fcc MR |
1118 | cat <<\_ASBOX |
1119 | ## ---------------- ## | |
1120 | ## Cache variables. ## | |
1121 | ## ---------------- ## | |
1122 | _ASBOX | |
1123 | echo | |
1124 | # The following way of writing the cache mishandles newlines in values, | |
503d2be0 AS |
1125 | { |
1126 | (set) 2>&1 | | |
1127 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1128 | *ac_space=\ *) | |
1129 | sed -n \ | |
35996d22 AS |
1130 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1131 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
503d2be0 AS |
1132 | ;; |
1133 | *) | |
1134 | sed -n \ | |
35996d22 | 1135 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
503d2be0 AS |
1136 | ;; |
1137 | esac; | |
c0d27fcc MR |
1138 | } |
1139 | echo | |
6bae0ccf DL |
1140 | |
1141 | cat <<\_ASBOX | |
1142 | ## ----------------- ## | |
1143 | ## Output variables. ## | |
1144 | ## ----------------- ## | |
1145 | _ASBOX | |
1146 | echo | |
1147 | for ac_var in $ac_subst_vars | |
1148 | do | |
1149 | eval ac_val=$`echo $ac_var` | |
1150 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1151 | done | sort | |
1152 | echo | |
1153 | ||
1154 | if test -n "$ac_subst_files"; then | |
1155 | cat <<\_ASBOX | |
1156 | ## ------------- ## | |
1157 | ## Output files. ## | |
1158 | ## ------------- ## | |
1159 | _ASBOX | |
1160 | echo | |
1161 | for ac_var in $ac_subst_files | |
1162 | do | |
1163 | eval ac_val=$`echo $ac_var` | |
35996d22 | 1164 | echo "$ac_var='"'"'$ac_val'"'"'" |
6bae0ccf DL |
1165 | done | sort |
1166 | echo | |
1167 | fi | |
1168 | ||
c0d27fcc MR |
1169 | if test -s confdefs.h; then |
1170 | cat <<\_ASBOX | |
1171 | ## ----------- ## | |
1172 | ## confdefs.h. ## | |
1173 | ## ----------- ## | |
1174 | _ASBOX | |
1175 | echo | |
6bae0ccf | 1176 | sed "/^$/d" confdefs.h | sort |
c0d27fcc MR |
1177 | echo |
1178 | fi | |
1179 | test "$ac_signal" != 0 && | |
1180 | echo "$as_me: caught signal $ac_signal" | |
1181 | echo "$as_me: exit $exit_status" | |
1182 | } >&5 | |
35996d22 | 1183 | rm -f core *.core && |
c0d27fcc | 1184 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
503d2be0 AS |
1185 | exit $exit_status |
1186 | ' 0 | |
1187 | for ac_signal in 1 2 13 15; do | |
1188 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1189 | done | |
1190 | ac_signal=0 | |
1191 | ||
1192 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1193 | rm -rf conftest* confdefs.h | |
1194 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1195 | echo >confdefs.h | |
ba4481b5 | 1196 | |
c0d27fcc MR |
1197 | # Predefined preprocessor variables. |
1198 | ||
1199 | cat >>confdefs.h <<_ACEOF | |
1200 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1201 | _ACEOF | |
1202 | ||
1203 | ||
1204 | cat >>confdefs.h <<_ACEOF | |
1205 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1206 | _ACEOF | |
1207 | ||
1208 | ||
1209 | cat >>confdefs.h <<_ACEOF | |
1210 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1211 | _ACEOF | |
1212 | ||
1213 | ||
1214 | cat >>confdefs.h <<_ACEOF | |
1215 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1216 | _ACEOF | |
1217 | ||
1218 | ||
1219 | cat >>confdefs.h <<_ACEOF | |
1220 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1221 | _ACEOF | |
1222 | ||
1223 | ||
503d2be0 | 1224 | # Let the site file select an alternate cache file if it wants to. |
ba4481b5 DL |
1225 | # Prefer explicitly selected file to automatically selected ones. |
1226 | if test -z "$CONFIG_SITE"; then | |
1227 | if test "x$prefix" != xNONE; then | |
1228 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1229 | else | |
1230 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1231 | fi | |
1232 | fi | |
1233 | for ac_site_file in $CONFIG_SITE; do | |
1234 | if test -r "$ac_site_file"; then | |
c0d27fcc | 1235 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
503d2be0 | 1236 | echo "$as_me: loading site script $ac_site_file" >&6;} |
c0d27fcc | 1237 | sed 's/^/| /' "$ac_site_file" >&5 |
ba4481b5 DL |
1238 | . "$ac_site_file" |
1239 | fi | |
1240 | done | |
1241 | ||
1242 | if test -r "$cache_file"; then | |
503d2be0 AS |
1243 | # Some versions of bash will fail to source /dev/null (special |
1244 | # files actually), so we avoid doing that. | |
1245 | if test -f "$cache_file"; then | |
c0d27fcc | 1246 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
503d2be0 AS |
1247 | echo "$as_me: loading cache $cache_file" >&6;} |
1248 | case $cache_file in | |
1249 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1250 | *) . ./$cache_file;; | |
1251 | esac | |
1252 | fi | |
ba4481b5 | 1253 | else |
c0d27fcc | 1254 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
503d2be0 AS |
1255 | echo "$as_me: creating cache $cache_file" >&6;} |
1256 | >$cache_file | |
1257 | fi | |
1258 | ||
1259 | # Check that the precious variables saved in the cache have kept the same | |
1260 | # value. | |
1261 | ac_cache_corrupted=false | |
1262 | for ac_var in `(set) 2>&1 | | |
35996d22 | 1263 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
503d2be0 AS |
1264 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1265 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1266 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1267 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1268 | case $ac_old_set,$ac_new_set in | |
1269 | set,) | |
c0d27fcc | 1270 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
503d2be0 AS |
1271 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1272 | ac_cache_corrupted=: ;; | |
1273 | ,set) | |
c0d27fcc | 1274 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
503d2be0 AS |
1275 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1276 | ac_cache_corrupted=: ;; | |
1277 | ,);; | |
1278 | *) | |
1279 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
35996d22 | 1280 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
503d2be0 | 1281 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
35996d22 | 1282 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
503d2be0 | 1283 | echo "$as_me: former value: $ac_old_val" >&2;} |
35996d22 | 1284 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
503d2be0 | 1285 | echo "$as_me: current value: $ac_new_val" >&2;} |
35996d22 | 1286 | ac_cache_corrupted=: |
503d2be0 AS |
1287 | fi;; |
1288 | esac | |
c0d27fcc | 1289 | # Pass precious variables to config.status. |
503d2be0 AS |
1290 | if test "$ac_new_set" = set; then |
1291 | case $ac_new_val in | |
1292 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
c0d27fcc MR |
1293 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1294 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1295 | esac | |
1296 | case " $ac_configure_args " in | |
1297 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1298 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
503d2be0 AS |
1299 | esac |
1300 | fi | |
1301 | done | |
1302 | if $ac_cache_corrupted; then | |
c0d27fcc | 1303 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
503d2be0 | 1304 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
c0d27fcc | 1305 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
503d2be0 AS |
1306 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1307 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1308 | fi |
1309 | ||
1310 | ac_ext=c | |
ba4481b5 | 1311 | ac_cpp='$CPP $CPPFLAGS' |
503d2be0 AS |
1312 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1313 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1314 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1315 | ||
c0d27fcc MR |
1316 | |
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
ba4481b5 | 1332 | |
6bae0ccf DL |
1333 | |
1334 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" | |
ba4481b5 | 1335 | |
c0d27fcc | 1336 | |
ba5da88a PJ |
1337 | test "$program_prefix" != NONE && |
1338 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1339 | # Use a double $ so make ignores it. | |
1340 | test "$program_suffix" != NONE && | |
1341 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1342 | # Double any \ or $. echo might interpret backslashes. | |
1343 | # By default was `s,x,x', remove it if useless. | |
1344 | cat <<\_ACEOF >conftest.sed | |
1345 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1346 | _ACEOF | |
1347 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1348 | rm conftest.sed | |
1349 | ||
c0d27fcc | 1350 | |
ba4481b5 DL |
1351 | lispdir='${datadir}/emacs/${version}/lisp' |
1352 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
1353 | '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
1354 | lisppath='${locallisppath}:${lispdir}' | |
1355 | etcdir='${datadir}/emacs/${version}/etc' | |
1356 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
1357 | docdir='${datadir}/emacs/${version}/etc' | |
24b01ec4 | 1358 | gamedir='${localstatedir}/games/emacs' |
98418dba CW |
1359 | |
1360 | gameuser=games | |
1361 | ||
c0d27fcc | 1362 | |
ba4481b5 DL |
1363 | # Check whether --with-gcc or --without-gcc was given. |
1364 | if test "${with_gcc+set}" = set; then | |
1365 | withval="$with_gcc" | |
503d2be0 AS |
1366 | |
1367 | fi; | |
ba4481b5 DL |
1368 | |
1369 | # Check whether --with-pop or --without-pop was given. | |
1370 | if test "${with_pop+set}" = set; then | |
1371 | withval="$with_pop" | |
243cf185 | 1372 | if test "$withval" = yes; then |
c0d27fcc | 1373 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1374 | #define MAIL_USE_POP 1 |
c0d27fcc | 1375 | _ACEOF |
ba4481b5 | 1376 | |
243cf185 DL |
1377 | else : |
1378 | fi | |
3d9fec71 | 1379 | else |
c0d27fcc | 1380 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 1381 | #define MAIL_USE_POP 1 |
c0d27fcc | 1382 | _ACEOF |
3d9fec71 | 1383 | |
503d2be0 | 1384 | fi; |
ba4481b5 | 1385 | |
c0d27fcc | 1386 | |
a21616bd KR |
1387 | # Check whether --with-kerberos or --without-kerberos was given. |
1388 | if test "${with_kerberos+set}" = set; then | |
1389 | withval="$with_kerberos" | |
c0d27fcc | 1390 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1391 | #define KERBEROS 1 |
c0d27fcc | 1392 | _ACEOF |
a21616bd | 1393 | |
503d2be0 | 1394 | fi; |
a21616bd | 1395 | |
c0d27fcc | 1396 | |
a21616bd KR |
1397 | # Check whether --with-kerberos5 or --without-kerberos5 was given. |
1398 | if test "${with_kerberos5+set}" = set; then | |
1399 | withval="$with_kerberos5" | |
1400 | if test "${with_kerberos5+set}" = set; then | |
1401 | if test "${with_kerberos+set}" != set; then | |
1402 | with_kerberos=yes | |
c0d27fcc | 1403 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1404 | #define KERBEROS 1 |
c0d27fcc | 1405 | _ACEOF |
a21616bd KR |
1406 | |
1407 | fi | |
1408 | fi | |
b936fae4 | 1409 | |
c0d27fcc | 1410 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1411 | #define KERBEROS5 1 |
c0d27fcc | 1412 | _ACEOF |
a21616bd | 1413 | |
503d2be0 | 1414 | fi; |
a21616bd | 1415 | |
ba4481b5 DL |
1416 | # Check whether --with-hesiod or --without-hesiod was given. |
1417 | if test "${with_hesiod+set}" = set; then | |
1418 | withval="$with_hesiod" | |
b936fae4 | 1419 | |
c0d27fcc | 1420 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1421 | #define HESIOD 1 |
c0d27fcc | 1422 | _ACEOF |
ba4481b5 | 1423 | |
503d2be0 | 1424 | fi; |
ba4481b5 | 1425 | |
c0d27fcc | 1426 | |
2c9dccc9 PJ |
1427 | # Check whether --with-sound or --without-sound was given. |
1428 | if test "${with_sound+set}" = set; then | |
1429 | withval="$with_sound" | |
1430 | ||
1431 | fi; | |
1432 | ||
c0d27fcc | 1433 | |
ba4481b5 DL |
1434 | # Check whether --with-x-toolkit or --without-x-toolkit was given. |
1435 | if test "${with_x_toolkit+set}" = set; then | |
1436 | withval="$with_x_toolkit" | |
1437 | case "${withval}" in | |
1438 | y | ye | yes ) val=athena ;; | |
1439 | n | no ) val=no ;; | |
1440 | l | lu | luc | luci | lucid ) val=lucid ;; | |
1441 | a | at | ath | athe | athen | athena ) val=athena ;; | |
1442 | m | mo | mot | moti | motif ) val=motif ;; | |
488dd4c4 | 1443 | g | gt | gtk ) val=gtk ;; |
ba4481b5 | 1444 | * ) |
c0d27fcc | 1445 | { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\; |
488dd4c4 | 1446 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
503d2be0 AS |
1447 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 |
1448 | echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; | |
488dd4c4 | 1449 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
503d2be0 AS |
1450 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} |
1451 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1452 | ;; |
1453 | esac | |
1454 | with_x_toolkit=$val | |
1455 | ||
503d2be0 | 1456 | fi; |
ba4481b5 DL |
1457 | |
1458 | # Check whether --with-xpm or --without-xpm was given. | |
1459 | if test "${with_xpm+set}" = set; then | |
1460 | withval="$with_xpm" | |
503d2be0 AS |
1461 | |
1462 | fi; | |
ba4481b5 DL |
1463 | |
1464 | # Check whether --with-jpeg or --without-jpeg was given. | |
1465 | if test "${with_jpeg+set}" = set; then | |
1466 | withval="$with_jpeg" | |
503d2be0 AS |
1467 | |
1468 | fi; | |
ba4481b5 DL |
1469 | |
1470 | # Check whether --with-tiff or --without-tiff was given. | |
1471 | if test "${with_tiff+set}" = set; then | |
1472 | withval="$with_tiff" | |
503d2be0 AS |
1473 | |
1474 | fi; | |
ba4481b5 DL |
1475 | |
1476 | # Check whether --with-gif or --without-gif was given. | |
1477 | if test "${with_gif+set}" = set; then | |
1478 | withval="$with_gif" | |
503d2be0 AS |
1479 | |
1480 | fi; | |
ba4481b5 DL |
1481 | |
1482 | # Check whether --with-png or --without-png was given. | |
1483 | if test "${with_png+set}" = set; then | |
1484 | withval="$with_png" | |
503d2be0 AS |
1485 | |
1486 | fi; | |
ba4481b5 | 1487 | |
488dd4c4 JD |
1488 | # Check whether --with-gtk or --without-gtk was given. |
1489 | if test "${with_gtk+set}" = set; then | |
1490 | withval="$with_gtk" | |
1491 | ||
1492 | fi; | |
1493 | ||
1494 | # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given. | |
1495 | if test "${with_pkg_config_prog+set}" = set; then | |
1496 | withval="$with_pkg_config_prog" | |
1497 | ||
1498 | fi; | |
1499 | ||
ba4481b5 DL |
1500 | # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. |
1501 | if test "${with_toolkit_scroll_bars+set}" = set; then | |
1502 | withval="$with_toolkit_scroll_bars" | |
503d2be0 AS |
1503 | |
1504 | fi; | |
ba4481b5 | 1505 | |
1d36487c GM |
1506 | # Check whether --with-xim or --without-xim was given. |
1507 | if test "${with_xim+set}" = set; then | |
1508 | withval="$with_xim" | |
1d36487c | 1509 | |
503d2be0 | 1510 | fi; |
ba4481b5 | 1511 | |
e0f712ba AC |
1512 | # Check whether --with-carbon or --without-carbon was given. |
1513 | if test "${with_carbon+set}" = set; then | |
1514 | withval="$with_carbon" | |
1515 | ||
1516 | fi; | |
6a3a24fa JD |
1517 | # Check whether --enable-carbon-app or --disable-carbon-app was given. |
1518 | if test "${enable_carbon_app+set}" = set; then | |
1519 | enableval="$enable_carbon_app" | |
1520 | carbon_appdir_x=${enableval} | |
1521 | fi; | |
e0f712ba | 1522 | |
19650fd6 AS |
1523 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1524 | if test "${enable_maintainer_mode+set}" = set; then | |
1525 | enableval="$enable_maintainer_mode" | |
1526 | USE_MAINTAINER_MODE=$enableval | |
1527 | else | |
1528 | USE_MAINTAINER_MODE=no | |
1529 | fi; | |
1530 | if test $USE_MAINTAINER_MODE = yes; then | |
1531 | MAINT= | |
1532 | else | |
1533 | MAINT=# | |
1534 | fi | |
1535 | ||
1536 | ||
ba4481b5 | 1537 | #### Make srcdir absolute, if it isn't already. It's important to |
17494071 | 1538 | #### avoid running the path through pwd unnecessarily, since pwd can |
ba4481b5 DL |
1539 | #### give you automounter prefixes, which can go away. We do all this |
1540 | #### so Emacs can find its files when run uninstalled. | |
17494071 GM |
1541 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
1542 | unset CDPATH | |
ba4481b5 DL |
1543 | case "${srcdir}" in |
1544 | /* ) ;; | |
1545 | . ) | |
1546 | ## We may be able to use the $PWD environment variable to make this | |
1547 | ## absolute. But sometimes PWD is inaccurate. | |
df645f7c AS |
1548 | ## Note: we used to use ${PWD} at the end instead of `pwd`, |
1549 | ## but that tested only for a well-formed and valid PWD, | |
1550 | ## it did not object when PWD was well-formed and valid but just wrong. | |
1551 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
ba4481b5 DL |
1552 | then |
1553 | srcdir="$PWD" | |
1554 | else | |
1555 | srcdir="`(cd ${srcdir}; pwd)`" | |
1556 | fi | |
1557 | ;; | |
1558 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
1559 | esac | |
1560 | ||
1561 | #### Check if the source directory already has a configured system in it. | |
1562 | if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
1563 | && test -f "${srcdir}/src/config.h" ; then | |
c0d27fcc | 1564 | { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used |
503d2be0 AS |
1565 | as a build directory right now; it has been configured in its own |
1566 | right. To configure in another directory as well, you MUST | |
1567 | use GNU make. If you do not have GNU make, then you must | |
1568 | now do \`make distclean' in ${srcdir}, | |
1569 | and then run $0 again." >&5 | |
1570 | echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
ba4481b5 DL |
1571 | as a build directory right now; it has been configured in its own |
1572 | right. To configure in another directory as well, you MUST | |
1573 | use GNU make. If you do not have GNU make, then you must | |
1574 | now do \`make distclean' in ${srcdir}, | |
503d2be0 | 1575 | and then run $0 again." >&2;} |
ba4481b5 DL |
1576 | fi |
1577 | ||
1578 | #### Given the configuration name, set machfile and opsysfile to the | |
1579 | #### names of the m/*.h and s/*.h files we should use. | |
1580 | ||
1581 | ### Canonicalize the configuration name. | |
1582 | ||
1583 | ac_aux_dir= | |
1584 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1585 | if test -f $ac_dir/install-sh; then | |
1586 | ac_aux_dir=$ac_dir | |
1587 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1588 | break | |
1589 | elif test -f $ac_dir/install.sh; then | |
1590 | ac_aux_dir=$ac_dir | |
1591 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1592 | break | |
503d2be0 AS |
1593 | elif test -f $ac_dir/shtool; then |
1594 | ac_aux_dir=$ac_dir | |
1595 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1596 | break | |
ba4481b5 DL |
1597 | fi |
1598 | done | |
1599 | if test -z "$ac_aux_dir"; then | |
c0d27fcc | 1600 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
503d2be0 AS |
1601 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1602 | { (exit 1); exit 1; }; } | |
ba4481b5 | 1603 | fi |
503d2be0 AS |
1604 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1605 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1606 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
ba4481b5 DL |
1607 | |
1608 | # Make sure we can run config.sub. | |
503d2be0 | 1609 | $ac_config_sub sun4 >/dev/null 2>&1 || |
c0d27fcc | 1610 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
503d2be0 AS |
1611 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1612 | { (exit 1); exit 1; }; } | |
1613 | ||
c0d27fcc | 1614 | echo "$as_me:$LINENO: checking build system type" >&5 |
503d2be0 AS |
1615 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1616 | if test "${ac_cv_build+set}" = set; then | |
1617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1618 | else | |
1619 | ac_cv_build_alias=$build_alias | |
1620 | test -z "$ac_cv_build_alias" && | |
1621 | ac_cv_build_alias=`$ac_config_guess` | |
1622 | test -z "$ac_cv_build_alias" && | |
c0d27fcc | 1623 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
503d2be0 AS |
1624 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1625 | { (exit 1); exit 1; }; } | |
1626 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
c0d27fcc MR |
1627 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1628 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
503d2be0 AS |
1629 | { (exit 1); exit 1; }; } |
1630 | ||
1631 | fi | |
c0d27fcc | 1632 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
503d2be0 AS |
1633 | echo "${ECHO_T}$ac_cv_build" >&6 |
1634 | build=$ac_cv_build | |
1635 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1636 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1637 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1638 | ||
c0d27fcc MR |
1639 | |
1640 | echo "$as_me:$LINENO: checking host system type" >&5 | |
503d2be0 AS |
1641 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1642 | if test "${ac_cv_host+set}" = set; then | |
1643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1644 | else | |
1645 | ac_cv_host_alias=$host_alias | |
1646 | test -z "$ac_cv_host_alias" && | |
1647 | ac_cv_host_alias=$ac_cv_build_alias | |
1648 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
c0d27fcc | 1649 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
503d2be0 AS |
1650 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1651 | { (exit 1); exit 1; }; } | |
1652 | ||
1653 | fi | |
c0d27fcc | 1654 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
503d2be0 AS |
1655 | echo "${ECHO_T}$ac_cv_host" >&6 |
1656 | host=$ac_cv_host | |
1657 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1658 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1659 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
ba4481b5 | 1660 | |
c0d27fcc | 1661 | |
ba4481b5 | 1662 | canonical=$host |
531a3336 | 1663 | configuration=${host_alias-$host} |
ba4481b5 | 1664 | |
c0d27fcc | 1665 | |
22044edf | 1666 | |
ba4481b5 DL |
1667 | ### If you add support for a new configuration, add code to this |
1668 | ### switch statement to recognize your configuration name and select | |
1669 | ### the appropriate operating system and machine description files. | |
1670 | ||
1671 | ### You would hope that you could choose an m/*.h file pretty much | |
1672 | ### based on the machine portion of the configuration name, and an s- | |
1673 | ### file based on the operating system portion. However, it turns out | |
1674 | ### that each m/*.h file is pretty manufacturer-specific - for | |
1675 | ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
1676 | ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
1677 | ### machines. So we basically have to have a special case for each | |
1678 | ### configuration name. | |
1679 | ### | |
1680 | ### As far as handling version numbers on operating systems is | |
1681 | ### concerned, make sure things will fail in a fixable way. If | |
1682 | ### /etc/MACHINES doesn't say anything about version numbers, be | |
1683 | ### prepared to handle anything reasonably. If version numbers | |
1684 | ### matter, be sure /etc/MACHINES says something about it. | |
1685 | ### | |
1686 | ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
1687 | ### "System V Release 4"; he writes, "The old convention encouraged | |
1688 | ### confusion between `system' and `release' levels'." | |
1689 | ||
1690 | machine='' opsys='' unported=no | |
1691 | case "${canonical}" in | |
1692 | ||
1096bcc0 GM |
1693 | ## FreeBSD ports |
1694 | *-*-freebsd* ) | |
1695 | opsys=freebsd | |
1696 | case "${canonical}" in | |
1697 | alpha*-*-freebsd*) machine=alpha ;; | |
1698 | i[3456]86-*-freebsd*) machine=intel386 ;; | |
1699 | esac | |
1700 | ;; | |
1701 | ||
ba4481b5 DL |
1702 | ## NetBSD ports |
1703 | *-*-netbsd* ) | |
1704 | opsys=netbsd | |
dd038e26 | 1705 | if test -f /usr/lib/crti.o; then |
f57bd967 DL |
1706 | |
1707 | cat >>confdefs.h <<\_ACEOF | |
1708 | #define HAVE_CRTIN | |
dd038e26 AS |
1709 | _ACEOF |
1710 | ||
1711 | fi | |
1712 | ||
ba4481b5 DL |
1713 | case "${canonical}" in |
1714 | alpha*-*-netbsd*) machine=alpha ;; | |
1715 | i[3456]86-*-netbsd*) machine=intel386 ;; | |
1716 | m68k-*-netbsd*) | |
1717 | # This is somewhat bogus. | |
1718 | machine=hp9000s300 ;; | |
1719 | powerpc-apple-netbsd*) machine=macppc ;; | |
1720 | mips-*-netbsd*) machine=pmax ;; | |
2df636f4 | 1721 | mipsel-*-netbsd*) machine=pmax ;; |
97836269 | 1722 | mipseb-*-netbsd*) machine=pmax ;; |
ba4481b5 | 1723 | ns32k-*-netbsd*) machine=ns32000 ;; |
3a64eef5 | 1724 | powerpc-*-netbsd*) machine=macppc ;; |
71c9ec51 | 1725 | sparc*-*-netbsd*) machine=sparc ;; |
ba4481b5 | 1726 | vax-*-netbsd*) machine=vax ;; |
2df636f4 | 1727 | arm-*-netbsd*) machine=arm ;; |
ba4481b5 DL |
1728 | esac |
1729 | ;; | |
1730 | ||
1731 | ## OpenBSD ports | |
1732 | *-*-openbsd* ) | |
1733 | opsys=openbsd | |
1734 | case "${canonical}" in | |
1735 | alpha*-*-openbsd*) machine=alpha ;; | |
1736 | i386-*-openbsd*) machine=intel386 ;; | |
1737 | m68k-*-openbsd*) machine=hp9000s300 ;; | |
1738 | mipsel-*-openbsd*) machine=pmax ;; | |
1739 | ns32k-*-openbsd*) machine=ns32000 ;; | |
1740 | sparc-*-openbsd*) machine=sparc ;; | |
1741 | vax-*-openbsd*) machine=vax ;; | |
1742 | esac | |
1743 | ;; | |
1744 | ||
1745 | ## Acorn RISCiX: | |
1746 | arm-acorn-riscix1.1* ) | |
1747 | machine=acorn opsys=riscix1-1 | |
1748 | ;; | |
1749 | arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
1750 | ## This name is riscix12 instead of riscix1.2 | |
1751 | ## to avoid a file name conflict on MSDOS. | |
1752 | machine=acorn opsys=riscix12 | |
1753 | ;; | |
1754 | ||
1755 | ## BSDI ports | |
1756 | *-*-bsdi* ) | |
1757 | opsys=bsdi | |
1758 | case "${canonical}" in | |
1759 | i[345]86-*-bsdi*) machine=intel386 ;; | |
1760 | sparc-*-bsdi*) machine=sparc ;; | |
3aeecf97 | 1761 | powerpc-*-bsdi*) machine=macppc ;; |
ba4481b5 DL |
1762 | esac |
1763 | case "${canonical}" in | |
1764 | *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
1765 | *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
1766 | *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
1767 | *-*-bsdi3* ) opsys=bsdos3 ;; | |
1d06fc82 | 1768 | *-*-bsdi[45]* ) opsys=bsdos4 ;; |
ba4481b5 DL |
1769 | esac |
1770 | ;; | |
1771 | ||
1772 | ## Alliant machines | |
1773 | ## Strictly speaking, we need the version of the alliant operating | |
1774 | ## system to choose the right machine file, but currently the | |
1775 | ## configuration name doesn't tell us enough to choose the right | |
1776 | ## one; we need to give alliants their own operating system name to | |
1777 | ## do this right. When someone cares, they can help us. | |
1778 | fx80-alliant-* ) | |
1779 | machine=alliant4 opsys=bsd4-2 | |
1780 | ;; | |
1781 | i860-alliant-* ) | |
1782 | machine=alliant-2800 opsys=bsd4-3 | |
1783 | ;; | |
1784 | ||
1785 | ## Alpha (DEC) machines. | |
1786 | alpha*-dec-osf* ) | |
1787 | machine=alpha opsys=osf1 | |
1788 | # This is needed to find X11R6.1 libraries for certain tests. | |
1789 | NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
1790 | GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34979055 DL |
1791 | # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
1792 | # due to non-traditional preprocessing with the current compiler | |
1793 | # defaults. OSF 4 can also have that compiler version, and there | |
1794 | # seems always to have been a usable /usr/bin/cpp. | |
1795 | NON_GNU_CPP=/usr/bin/cpp | |
ca512671 | 1796 | case "${canonical}" in |
a55b799a | 1797 | alpha*-dec-osf[5-9]*) |
bb17930d | 1798 | opsys=osf5-0 ;; |
ca512671 | 1799 | esac |
ba4481b5 DL |
1800 | ;; |
1801 | ||
1802 | alpha*-*-linux-gnu* ) | |
1803 | machine=alpha opsys=gnu-linux | |
1804 | ;; | |
1805 | ||
c4bb2108 DL |
1806 | arm*-*-linux-gnu* ) |
1807 | machine=arm opsys=gnu-linux | |
1808 | ;; | |
1809 | ||
1810 | ppc-*-linux | \ | |
1811 | powerpc-*-linux* ) | |
3aeecf97 | 1812 | machine=macppc opsys=gnu-linux |
c4bb2108 DL |
1813 | ;; |
1814 | ||
ba4481b5 DL |
1815 | ## Altos 3068 |
1816 | m68*-altos-sysv* ) | |
1817 | machine=altos opsys=usg5-2 | |
1818 | ;; | |
1819 | ||
1820 | ## Amdahl UTS | |
1821 | 580-amdahl-sysv* ) | |
1822 | machine=amdahl opsys=usg5-2-2 | |
1823 | ;; | |
1824 | ||
1825 | ## Apollo, Domain/OS | |
1826 | m68*-apollo-* ) | |
1827 | machine=apollo opsys=bsd4-3 | |
1828 | ;; | |
1829 | ||
1830 | ## AT&T 3b2, 3b5, 3b15, 3b20 | |
1831 | we32k-att-sysv* ) | |
1832 | machine=att3b opsys=usg5-2-2 | |
1833 | ;; | |
1834 | ||
1835 | ## AT&T 3b1 - The Mighty Unix PC! | |
1836 | m68*-att-sysv* ) | |
1837 | machine=7300 opsys=usg5-2-2 | |
1838 | ;; | |
1839 | ||
1840 | ## Bull dpx20 | |
1841 | rs6000-bull-bosx* ) | |
1842 | machine=ibmrs6000 opsys=aix3-2 | |
1843 | ;; | |
1844 | ||
1845 | ## Bull dpx2 | |
1846 | m68*-bull-sysv3* ) | |
1847 | machine=dpx2 opsys=usg5-3 | |
1848 | ;; | |
1849 | ||
1850 | ## Bull sps7 | |
1851 | m68*-bull-sysv2* ) | |
1852 | machine=sps7 opsys=usg5-2 | |
1853 | ;; | |
1854 | ||
1855 | ## CCI 5/32, 6/32 -- see "Tahoe". | |
1856 | ||
1857 | ## Celerity | |
1858 | ## I don't know what configuration name to use for this; config.sub | |
1859 | ## doesn't seem to know anything about it. Hey, Celerity users, get | |
1860 | ## in touch with us! | |
1861 | celerity-celerity-bsd* ) | |
1862 | machine=celerity opsys=bsd4-2 | |
1863 | ;; | |
1864 | ||
1865 | ## Clipper | |
1866 | ## What operating systems does this chip run that Emacs has been | |
1867 | ## tested on? | |
1868 | clipper-* ) | |
1869 | machine=clipper | |
1870 | ## We'll use the catch-all code at the bottom to guess the | |
1871 | ## operating system. | |
1872 | ;; | |
1873 | ||
df645f7c AS |
1874 | ## Compaq Nonstop |
1875 | mips-compaq-nonstopux* ) | |
1876 | machine=nonstopux opsys=nonstopux | |
1877 | ;; | |
1878 | ||
ba4481b5 DL |
1879 | ## Convex |
1880 | *-convex-bsd* | *-convex-convexos* ) | |
1881 | machine=convex opsys=bsd4-3 | |
1882 | ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
1883 | NON_GNU_CPP="cc -E -P" | |
1884 | ;; | |
1885 | ||
1886 | ## Cubix QBx/386 | |
1887 | i[3456]86-cubix-sysv* ) | |
1888 | machine=intel386 opsys=usg5-3 | |
1889 | ;; | |
1890 | ||
1891 | ## Cydra 5 | |
1892 | cydra*-cydrome-sysv* ) | |
1893 | machine=cydra5 opsys=usg5-3 | |
1894 | ;; | |
1895 | ||
1896 | ## Data General AViiON Machines | |
1897 | ## DG changed naming conventions with the release of 5.4.4.10, they | |
1898 | ## dropped the initial 5.4 but left the intervening R. Because of the | |
1899 | ## R this shouldn't conflict with older versions of the OS (which I | |
1900 | ## think were named like dgux4.*). In addition, DG new AViiONs series | |
1901 | ## uses either Motorola M88k or Intel Pentium CPUs. | |
1902 | m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
1903 | machine=aviion opsys=dgux4 | |
1904 | ;; | |
1905 | m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
1906 | ## This name is dgux5-4-3 instead of dgux5-4r3 | |
1907 | ## to avoid a file name conflict on MSDOS. | |
1908 | machine=aviion opsys=dgux5-4-3 | |
1909 | ;; | |
1910 | m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
1911 | machine=aviion opsys=dgux5-4r2 | |
1912 | ;; | |
1913 | m88k-dg-dgux* ) | |
1914 | machine=aviion opsys=dgux | |
1915 | ;; | |
1916 | ||
1917 | ## Data General AViiON Intel (x86) Machines | |
1918 | ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1919 | ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1920 | i[345]86-dg-dguxR4* ) | |
1921 | machine=aviion-intel opsys=dgux4 | |
1922 | ;; | |
1923 | ||
1924 | ## DECstations | |
1925 | mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1926 | machine=pmax opsys=bsd4-2 | |
1927 | ;; | |
1928 | mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1929 | machine=pmax opsys=bsd4-3 | |
1930 | ;; | |
1931 | mips-dec-ultrix* ) | |
1932 | machine=pmax opsys=ultrix4-3 | |
1933 | ;; | |
1934 | mips-dec-osf* ) | |
1935 | machine=pmax opsys=osf1 | |
1936 | ;; | |
1937 | mips-dec-mach_bsd4.3* ) | |
1938 | machine=pmax opsys=mach-bsd4-3 | |
1939 | ;; | |
1940 | ||
cd890796 JD |
1941 | ## Motorola Delta machines |
1942 | m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1943 | machine=delta opsys=usg5-3 | |
1944 | if test -z "`type gnucc | grep 'not found'`" | |
1945 | then | |
1946 | if test -s /etc/167config | |
1947 | then CC="gnucc -m68040" | |
1948 | else CC="gnucc -m68881" | |
1949 | fi | |
1950 | else | |
1951 | if test -z "`type gcc | grep 'not found'`" | |
1952 | then CC=gcc | |
1953 | else CC=cc | |
1954 | fi | |
1955 | fi | |
1956 | ;; | |
ba4481b5 DL |
1957 | m88k-motorola-sysv4* ) |
1958 | # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1959 | # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1960 | # I hope there are not other 4.0 versions for this machine | |
1961 | # which really need usg5-4 instead. | |
1962 | machine=delta88k opsys=usg5-4-2 | |
1963 | ;; | |
1964 | m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1965 | machine=delta88k opsys=usg5-3 | |
1966 | ;; | |
1967 | ||
1968 | ## Dual machines | |
1969 | m68*-dual-sysv* ) | |
1970 | machine=dual opsys=usg5-2 | |
1971 | ;; | |
1972 | m68*-dual-uniplus* ) | |
1973 | machine=dual opsys=unipl5-2 | |
1974 | ;; | |
1975 | ||
1976 | ## Elxsi 6400 | |
1977 | elxsi-elxsi-sysv* ) | |
1978 | machine=elxsi opsys=usg5-2 | |
1979 | ;; | |
1980 | ||
1981 | ## Encore machines | |
1982 | ns16k-encore-bsd* ) | |
1983 | machine=ns16000 opsys=umax | |
1984 | ;; | |
1985 | ||
65171e3a DL |
1986 | ## The GEC 63 - apparently, this port isn't really finished yet. |
1987 | # I'm sure we finished off the last of the machines, though. -- fx | |
ba4481b5 DL |
1988 | |
1989 | ## Gould Power Node and NP1 | |
1990 | pn-gould-bsd4.2* ) | |
1991 | machine=gould opsys=bsd4-2 | |
1992 | ;; | |
1993 | pn-gould-bsd4.3* ) | |
1994 | machine=gould opsys=bsd4-3 | |
1995 | ;; | |
1996 | np1-gould-bsd* ) | |
1997 | machine=gould-np1 opsys=bsd4-3 | |
1998 | ;; | |
1999 | ||
2000 | ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
2001 | ## as far as Emacs is concerned). | |
2002 | m88k-harris-cxux* ) | |
2003 | # Build needs to be different on 7.0 and later releases | |
2004 | case "`uname -r`" in | |
2005 | [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
2006 | [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
2007 | esac | |
2008 | NON_GNU_CPP="/lib/cpp" | |
2009 | ;; | |
2010 | ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
2011 | m68k-harris-cxux* ) | |
2012 | machine=nh3000 opsys=cxux | |
2013 | ;; | |
2014 | ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
2015 | powerpc-harris-powerunix ) | |
2016 | machine=nh6000 opsys=powerunix | |
2017 | NON_GNU_CPP="cc -Xo -E -P" | |
2018 | ;; | |
2019 | ## SR2001/SR2201 running HI-UX/MPP | |
2020 | hppa1.1-hitachi-hiuxmpp* ) | |
2021 | machine=sr2k opsys=hiuxmpp | |
2022 | ;; | |
89a336fa GM |
2023 | hppa1.1-hitachi-hiuxwe2* ) |
2024 | machine=sr2k opsys=hiuxwe2 | |
2025 | ;; | |
ba4481b5 DL |
2026 | ## Honeywell XPS100 |
2027 | xps*-honeywell-sysv* ) | |
2028 | machine=xps100 opsys=usg5-2 | |
2029 | ;; | |
2030 | ||
2031 | ## HP 9000 series 200 or 300 | |
2032 | m68*-hp-bsd* ) | |
2033 | machine=hp9000s300 opsys=bsd4-3 | |
2034 | ;; | |
2035 | ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
2036 | m68*-hp-hpux* ) | |
2037 | case "`uname -r`" in | |
2038 | ## Someone's system reports A.B8.05 for this. | |
2039 | ## I wonder what other possibilities there are. | |
2040 | *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2041 | *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2042 | *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
2043 | *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
2044 | *) machine=hp9000s300 opsys=hpux ;; | |
2045 | esac | |
2046 | ;; | |
2047 | ||
2048 | ## HP 9000 series 700 and 800, running HP/UX | |
2049 | hppa*-hp-hpux7* ) | |
2050 | machine=hp800 opsys=hpux | |
2051 | ;; | |
2052 | hppa*-hp-hpux8* ) | |
2053 | machine=hp800 opsys=hpux8 | |
2054 | ;; | |
2055 | hppa*-hp-hpux9shr* ) | |
2056 | machine=hp800 opsys=hpux9shr | |
2057 | ;; | |
2058 | hppa*-hp-hpux9* ) | |
2059 | machine=hp800 opsys=hpux9 | |
2060 | ;; | |
b0e44248 RB |
2061 | hppa*-hp-hpux10.2* ) |
2062 | machine=hp800 opsys=hpux10-20 | |
2063 | ;; | |
cc227489 | 2064 | hppa*-hp-hpux10* ) |
ba4481b5 DL |
2065 | machine=hp800 opsys=hpux10 |
2066 | ;; | |
cc227489 MB |
2067 | hppa*-hp-hpux1[1-9]* ) |
2068 | machine=hp800 opsys=hpux11 | |
2069 | ;; | |
ba4481b5 | 2070 | |
409d9577 GM |
2071 | hppa*-*-linux-gnu* ) |
2072 | machine=hp800 opsys=gnu-linux | |
2073 | ;; | |
2074 | ||
ba4481b5 DL |
2075 | ## HP 9000 series 700 and 800, running HP/UX |
2076 | hppa*-hp-hpux* ) | |
2077 | ## Cross-compilation? Nah! | |
2078 | case "`uname -r`" in | |
2079 | ## Someone's system reports A.B8.05 for this. | |
2080 | ## I wonder what other possibilities there are. | |
2081 | *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
2082 | *.08.* ) machine=hp800 opsys=hpux8 ;; | |
2083 | *.09.* ) machine=hp800 opsys=hpux9 ;; | |
2084 | *) machine=hp800 opsys=hpux10 ;; | |
2085 | esac | |
2086 | ;; | |
2087 | hppa*-*-nextstep* ) | |
2088 | machine=hp800 opsys=nextstep | |
2089 | ;; | |
2090 | ||
2091 | ## Orion machines | |
2092 | orion-orion-bsd* ) | |
2093 | machine=orion opsys=bsd4-2 | |
2094 | ;; | |
2095 | clipper-orion-bsd* ) | |
2096 | machine=orion105 opsys=bsd4-2 | |
2097 | ;; | |
2098 | ||
2099 | ## IBM machines | |
2100 | i[3456]86-ibm-aix1.1* ) | |
2101 | machine=ibmps2-aix opsys=usg5-2-2 | |
2102 | ;; | |
2103 | i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
2104 | machine=ibmps2-aix opsys=usg5-3 | |
2105 | ;; | |
2106 | i370-ibm-aix*) | |
2107 | machine=ibm370aix opsys=usg5-3 | |
2108 | ;; | |
55597d70 | 2109 | s390-*-linux-gnu* ) |
138f0859 GM |
2110 | machine=ibms390 opsys=gnu-linux |
2111 | ;; | |
ba4481b5 DL |
2112 | rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
2113 | machine=ibmrs6000 opsys=aix3-1 | |
2114 | ;; | |
2115 | rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
2116 | machine=ibmrs6000 opsys=aix3-2-5 | |
2117 | ;; | |
2118 | rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
2119 | machine=ibmrs6000 opsys=aix4-1 | |
2120 | ;; | |
2121 | rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
2122 | machine=ibmrs6000 opsys=aix4-2 | |
2123 | ;; | |
55597d70 | 2124 | rs6000-ibm-aix5* | powerpc-ibm-aix5* ) |
d6b82250 EZ |
2125 | machine=ibmrs6000 opsys=aix4-2 |
2126 | ;; | |
ba4481b5 DL |
2127 | rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
2128 | machine=ibmrs6000 opsys=aix4 | |
2129 | ;; | |
2130 | rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
2131 | machine=ibmrs6000 opsys=aix4-1 | |
2132 | ;; | |
2133 | rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
2134 | machine=ibmrs6000 opsys=aix3-2 | |
2135 | ;; | |
2136 | romp-ibm-bsd4.3* ) | |
2137 | machine=ibmrt opsys=bsd4-3 | |
2138 | ;; | |
2139 | romp-ibm-bsd4.2* ) | |
2140 | machine=ibmrt opsys=bsd4-2 | |
2141 | ;; | |
2142 | romp-ibm-aos4.3* ) | |
2143 | machine=ibmrt opsys=bsd4-3 | |
2144 | ;; | |
2145 | romp-ibm-aos4.2* ) | |
2146 | machine=ibmrt opsys=bsd4-2 | |
2147 | ;; | |
2148 | romp-ibm-aos* ) | |
2149 | machine=ibmrt opsys=bsd4-3 | |
2150 | ;; | |
2151 | romp-ibm-bsd* ) | |
2152 | machine=ibmrt opsys=bsd4-3 | |
2153 | ;; | |
2154 | romp-ibm-aix* ) | |
2155 | machine=ibmrt-aix opsys=usg5-2-2 | |
2156 | ;; | |
2157 | ||
2158 | ## Integrated Solutions `Optimum V' | |
2159 | m68*-isi-bsd4.2* ) | |
2160 | machine=isi-ov opsys=bsd4-2 | |
2161 | ;; | |
2162 | m68*-isi-bsd4.3* ) | |
2163 | machine=isi-ov opsys=bsd4-3 | |
2164 | ;; | |
2165 | ||
2166 | ## Intel 386 machines where we do care about the manufacturer | |
2167 | i[3456]86-intsys-sysv* ) | |
2168 | machine=is386 opsys=usg5-2-2 | |
2169 | ;; | |
2170 | ||
2171 | ## Prime EXL | |
2172 | i[3456]86-prime-sysv* ) | |
2173 | machine=i386 opsys=usg5-3 | |
2174 | ;; | |
2175 | ||
2176 | ## Sequent Symmetry running Dynix | |
2177 | i[3456]86-sequent-bsd* ) | |
2178 | machine=symmetry opsys=bsd4-3 | |
2179 | ;; | |
2180 | ||
2181 | ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
2182 | i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
2183 | machine=sequent-ptx opsys=ptx4 | |
2184 | NON_GNU_CPP=/lib/cpp | |
2185 | ;; | |
2186 | ||
2187 | ## Sequent Symmetry running DYNIX/ptx | |
2188 | ## Use the old cpp rather than the newer ANSI one. | |
2189 | i[3456]86-sequent-ptx* ) | |
2190 | machine=sequent-ptx opsys=ptx | |
2191 | NON_GNU_CPP="/lib/cpp" | |
2192 | ;; | |
2193 | ||
2194 | ## ncr machine running svr4.3. | |
2195 | i[3456]86-ncr-sysv4.3 ) | |
2196 | machine=ncr386 opsys=usg5-4-3 | |
2197 | ;; | |
2198 | ||
2199 | ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
2200 | ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
2201 | i[3456]86-ncr-sysv* ) | |
2202 | machine=ncr386 opsys=usg5-4-2 | |
2203 | ;; | |
2204 | ||
2205 | ## Intel Paragon OSF/1 | |
2206 | i860-intel-osf1* ) | |
2207 | machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
2208 | ;; | |
2209 | ||
2210 | ## Intel 860 | |
2211 | i860-*-sysv4* ) | |
2212 | machine=i860 opsys=usg5-4 | |
2213 | NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
2214 | NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
2215 | ;; | |
2216 | ||
c76e04a8 GM |
2217 | ## Macintosh PowerPC |
2218 | powerpc*-*-linux-gnu* ) | |
2219 | machine=macppc opsys=gnu-linux | |
2220 | ;; | |
2221 | ||
ba4481b5 DL |
2222 | ## Masscomp machines |
2223 | m68*-masscomp-rtu* ) | |
2224 | machine=masscomp opsys=rtu | |
2225 | ;; | |
2226 | ||
2227 | ## Megatest machines | |
2228 | m68*-megatest-bsd* ) | |
2229 | machine=mega68 opsys=bsd4-2 | |
2230 | ;; | |
2231 | ||
2232 | ## Workstations sold by MIPS | |
2233 | ## This is not necessarily all workstations using the MIPS processor - | |
2234 | ## Irises are produced by SGI, and DECstations by DEC. | |
2235 | ||
2236 | ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
2237 | ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
2238 | ## it gives for choosing between the alternatives seems to be "Use | |
2239 | ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
2240 | ## the BSD world." I'll assume that these are instructions for | |
2241 | ## handling two odd situations, and that every other situation | |
2242 | ## should use mips.h and usg5-2-2, they being listed first. | |
2243 | mips-mips-usg* ) | |
2244 | machine=mips4 | |
2245 | ## Fall through to the general code at the bottom to decide on the OS. | |
2246 | ;; | |
2247 | mips-mips-riscos4* ) | |
2248 | machine=mips4 opsys=bsd4-3 | |
2249 | NON_GNU_CC="cc -systype bsd43" | |
2250 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2251 | ;; | |
2252 | mips-mips-riscos5* ) | |
2253 | machine=mips4 opsys=riscos5 | |
2254 | NON_GNU_CC="cc -systype bsd43" | |
2255 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2256 | ;; | |
2257 | mips-mips-bsd* ) | |
2258 | machine=mips opsys=bsd4-3 | |
2259 | ;; | |
2260 | mips-mips-* ) | |
2261 | machine=mips opsys=usg5-2-2 | |
2262 | ;; | |
2263 | ||
2264 | ## NeXT | |
2265 | m68*-next-* | m68k-*-nextstep* ) | |
2266 | machine=m68k opsys=nextstep | |
2267 | ;; | |
2268 | ||
2269 | ## The complete machine from National Semiconductor | |
2270 | ns32k-ns-genix* ) | |
2271 | machine=ns32000 opsys=usg5-2 | |
2272 | ;; | |
2273 | ||
2274 | ## NCR machines | |
2275 | m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
2276 | machine=tower32 opsys=usg5-2-2 | |
2277 | ;; | |
2278 | m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
2279 | machine=tower32v3 opsys=usg5-3 | |
2280 | ;; | |
2281 | ||
2282 | ## NEC EWS4800 | |
2283 | mips-nec-sysv4*) | |
2284 | machine=ews4800 opsys=ux4800 | |
2285 | ;; | |
2286 | ||
2287 | ## Nixdorf Targon 31 | |
2288 | m68*-nixdorf-sysv* ) | |
2289 | machine=targon31 opsys=usg5-2-2 | |
2290 | ;; | |
2291 | ||
2292 | ## Nu (TI or LMI) | |
2293 | m68*-nu-sysv* ) | |
2294 | machine=nu opsys=usg5-2 | |
2295 | ;; | |
2296 | ||
2297 | ## Plexus | |
2298 | m68*-plexus-sysv* ) | |
2299 | machine=plexus opsys=usg5-2 | |
2300 | ;; | |
2301 | ||
ba4481b5 DL |
2302 | ## Pyramid machines |
2303 | ## I don't really have any idea what sort of processor the Pyramid has, | |
2304 | ## so I'm assuming it is its own architecture. | |
2305 | pyramid-pyramid-bsd* ) | |
2306 | machine=pyramid opsys=bsd4-2 | |
2307 | ;; | |
2308 | ||
2309 | ## Sequent Balance | |
2310 | ns32k-sequent-bsd4.2* ) | |
2311 | machine=sequent opsys=bsd4-2 | |
2312 | ;; | |
2313 | ns32k-sequent-bsd4.3* ) | |
2314 | machine=sequent opsys=bsd4-3 | |
2315 | ;; | |
2316 | ||
2317 | ## Siemens Nixdorf | |
2318 | mips-siemens-sysv* | mips-sni-sysv*) | |
2319 | machine=mips-siemens opsys=usg5-4 | |
2320 | NON_GNU_CC=/usr/ccs/bin/cc | |
2321 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2322 | ;; | |
2323 | ||
2324 | ## Silicon Graphics machines | |
2325 | ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
2326 | m68*-sgi-iris3.5* ) | |
2327 | machine=irist opsys=iris3-5 | |
2328 | ;; | |
2329 | m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
2330 | machine=irist opsys=iris3-6 | |
2331 | ;; | |
2332 | ## Iris 4D | |
2333 | mips-sgi-irix3* ) | |
2334 | machine=iris4d opsys=irix3-3 | |
2335 | ;; | |
2336 | mips-sgi-irix4* ) | |
2337 | machine=iris4d opsys=irix4-0 | |
2338 | ;; | |
2339 | mips-sgi-irix6.5 ) | |
2340 | machine=iris4d opsys=irix6-5 | |
946173ad DL |
2341 | # Without defining _LANGUAGE_C, things get masked out in the headers |
2342 | # so that, for instance, grepping for `free' in stdlib.h fails and | |
2343 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
2344 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2345 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
ba4481b5 DL |
2346 | ;; |
2347 | mips-sgi-irix6* ) | |
2348 | machine=iris4d opsys=irix6-0 | |
c4bb2108 | 2349 | # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
946173ad DL |
2350 | # but presumably it does no harm. |
2351 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2352 | # -32 probably isn't necessary in later v.6s -- anyone know which? |
ba4481b5 DL |
2353 | NON_GCC_TEST_OPTIONS=-32 |
2354 | ;; | |
2355 | mips-sgi-irix5.[01]* ) | |
2356 | machine=iris4d opsys=irix5-0 | |
2357 | ;; | |
2358 | mips-sgi-irix5* | mips-sgi-irix* ) | |
2359 | machine=iris4d opsys=irix5-2 | |
2360 | ;; | |
2361 | ||
2362 | ## SONY machines | |
2363 | m68*-sony-bsd4.2* ) | |
2364 | machine=news opsys=bsd4-2 | |
2365 | ;; | |
2366 | m68*-sony-bsd4.3* ) | |
2367 | machine=news opsys=bsd4-3 | |
2368 | ;; | |
2369 | m68*-sony-newsos3* | m68*-sony-news3*) | |
2370 | machine=news opsys=bsd4-3 | |
2371 | ;; | |
2372 | mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
2373 | machine=news-risc opsys=bsd4-3 | |
2374 | ;; | |
2375 | mips-sony-newsos6* ) | |
2376 | machine=news-r6 opsys=newsos6 | |
2377 | ;; | |
2378 | mips-sony-news* ) | |
2379 | machine=news-risc opsys=newsos5 | |
2380 | ;; | |
2381 | ||
2382 | ## Stride | |
2383 | m68*-stride-sysv* ) | |
2384 | machine=stride opsys=usg5-2 | |
2385 | ;; | |
2386 | ||
2387 | ## Suns | |
2388 | sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
2389 | machine=sparc opsys=gnu-linux | |
2390 | ;; | |
2391 | ||
d054101f | 2392 | *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
ba4481b5 DL |
2393 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
2394 | | rs6000-*-solaris2*) | |
2395 | case "${canonical}" in | |
2396 | m68*-sunos1* ) machine=sun1 ;; | |
2397 | m68*-sunos2* ) machine=sun2 ;; | |
2398 | m68* ) machine=sun3 ;; | |
2399 | i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
2400 | i[3456]86-*-* ) machine=intel386 ;; | |
2401 | powerpcle* ) machine=powerpcle ;; | |
2402 | powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
2403 | sparc* ) machine=sparc ;; | |
2404 | * ) unported=yes ;; | |
2405 | esac | |
2406 | case "${canonical}" in | |
2407 | ## The Sun386 didn't get past 4.0. | |
2408 | i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
2409 | *-sunos4.0* ) opsys=sunos4-0 ;; | |
2410 | *-sunos4.1.[3-9]*noshare ) | |
2411 | ## This name is sunos413 instead of sunos4-1-3 | |
2412 | ## to avoid a file name conflict on MSDOS. | |
2413 | opsys=sunos413 | |
2414 | NON_GNU_CPP=/usr/lib/cpp | |
2415 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2416 | GCC_TEST_OPTIONS=-static | |
2417 | ;; | |
2418 | *-sunos4.1.[3-9]* | *-sunos4shr*) | |
2419 | opsys=sunos4shr | |
2420 | NON_GNU_CPP=/usr/lib/cpp | |
2421 | ;; | |
2422 | *-sunos4* | *-sunos ) | |
2423 | opsys=sunos4-1 | |
2424 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2425 | GCC_TEST_OPTIONS=-static | |
2426 | ;; | |
2427 | *-sunos5.3* | *-solaris2.3* ) | |
2428 | opsys=sol2-3 | |
2429 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2430 | ;; | |
2431 | *-sunos5.4* | *-solaris2.4* ) | |
2432 | opsys=sol2-4 | |
2433 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2434 | RANLIB="ar -ts" | |
2435 | ;; | |
2436 | *-sunos5.5* | *-solaris2.5* ) | |
2437 | opsys=sol2-5 | |
2438 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2439 | RANLIB="ar -ts" | |
2440 | ;; | |
8e967cf7 MR |
2441 | *-sunos5.6* | *-solaris2.6* ) |
2442 | opsys=sol2-6 | |
2443 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2444 | RANLIB="ar -ts" | |
2445 | ;; | |
ba4481b5 | 2446 | *-sunos5* | *-solaris* ) |
9e71690e | 2447 | opsys=sol2-6 |
ba4481b5 DL |
2448 | NON_GNU_CPP=/usr/ccs/lib/cpp |
2449 | ;; | |
2450 | * ) opsys=bsd4-2 ;; | |
2451 | esac | |
2452 | ## Watch out for a compiler that we know will not work. | |
2453 | case "${canonical}" in | |
2454 | *-solaris* | *-sunos5* ) | |
2455 | if [ "x$CC" = x/usr/ucb/cc ]; then | |
2456 | ## /usr/ucb/cc doesn't work; | |
2457 | ## we should find some other compiler that does work. | |
2458 | unset CC | |
2459 | fi | |
2460 | ;; | |
2461 | *) ;; | |
2462 | esac | |
2463 | ;; | |
2464 | sparc-*-nextstep* ) | |
2465 | machine=sparc opsys=nextstep | |
2466 | ;; | |
2467 | ||
2468 | ## Tadpole 68k | |
2469 | m68*-tadpole-sysv* ) | |
2470 | machine=tad68k opsys=usg5-3 | |
2471 | ;; | |
2472 | ||
2473 | ## Tahoe machines | |
2474 | tahoe-tahoe-bsd4.2* ) | |
2475 | machine=tahoe opsys=bsd4-2 | |
2476 | ;; | |
2477 | tahoe-tahoe-bsd4.3* ) | |
2478 | machine=tahoe opsys=bsd4-3 | |
2479 | ;; | |
2480 | ||
2481 | ## Tandem Integrity S2 | |
2482 | mips-tandem-sysv* ) | |
2483 | machine=tandem-s2 opsys=usg5-3 | |
2484 | ;; | |
2485 | ||
2486 | ## Tektronix XD88 | |
2487 | m88k-tektronix-sysv3* ) | |
2488 | machine=tekxd88 opsys=usg5-3 | |
2489 | ;; | |
2490 | ||
2491 | ## Tektronix 16000 box (6130?) | |
2492 | ns16k-tektronix-bsd* ) | |
2493 | machine=ns16000 opsys=bsd4-2 | |
2494 | ;; | |
2495 | ## Tektronix 4300 | |
2496 | ## src/m/tek4300.h hints that this is a m68k machine. | |
2497 | m68*-tektronix-bsd* ) | |
2498 | machine=tek4300 opsys=bsd4-3 | |
2499 | ;; | |
2500 | ||
2501 | ## Titan P2 or P3 | |
2502 | ## We seem to have lost the machine-description file titan.h! | |
2503 | titan-titan-sysv* ) | |
2504 | machine=titan opsys=usg5-3 | |
2505 | ;; | |
2506 | ||
2507 | ## Ustation E30 (SS5E) | |
2508 | m68*-unisys-uniplus* ) | |
2509 | machine=ustation opsystem=unipl5-2 | |
2510 | ;; | |
2511 | ||
2512 | ## Vaxen. | |
2513 | vax-dec-* ) | |
2514 | machine=vax | |
2515 | case "${canonical}" in | |
2516 | *-bsd4.1* ) opsys=bsd4-1 ;; | |
2517 | *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
2518 | *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
2519 | *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
2520 | *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
2521 | *-vms* ) opsys=vms ;; | |
2522 | * ) unported=yes | |
2523 | esac | |
2524 | ;; | |
2525 | ||
2526 | ## Whitechapel MG1 | |
2527 | ns16k-whitechapel-* ) | |
2528 | machine=mg1 | |
2529 | ## We don't know what sort of OS runs on these; we'll let the | |
2530 | ## operating system guessing code below try. | |
2531 | ;; | |
2532 | ||
2533 | ## Wicat | |
2534 | m68*-wicat-sysv* ) | |
2535 | machine=wicat opsys=usg5-2 | |
2536 | ;; | |
2537 | ||
f4988be7 GM |
2538 | ## IA-64 |
2539 | ia64*-*-linux* ) | |
2540 | machine=ia64 opsys=gnu-linux | |
2541 | ;; | |
2542 | ||
ba4481b5 DL |
2543 | ## Intel 386 machines where we don't care about the manufacturer |
2544 | i[3456]86-*-* ) | |
2545 | machine=intel386 | |
2546 | case "${canonical}" in | |
c60ee5e7 | 2547 | *-cygwin ) opsys=cygwin ;; |
9f817ea4 | 2548 | *-lynxos* ) opsys=lynxos ;; |
ba4481b5 DL |
2549 | *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
2550 | *-isc2.2* ) opsys=isc2-2 ;; | |
2551 | *-isc4.0* ) opsys=isc4-0 ;; | |
2552 | *-isc4.* ) opsys=isc4-1 | |
2553 | GCC_TEST_OPTIONS=-posix | |
2554 | NON_GCC_TEST_OPTIONS=-Xp | |
2555 | ;; | |
2556 | *-isc* ) opsys=isc3-0 ;; | |
2557 | *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
2558 | *-esix* ) opsys=esix ;; | |
2559 | *-xenix* ) opsys=xenix ;; | |
2560 | *-linux-gnu* ) opsys=gnu-linux ;; | |
2561 | *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
503d2be0 | 2562 | *-sco3.2v5* ) opsys=sco5 |
ba4481b5 DL |
2563 | NON_GNU_CPP=/lib/cpp |
2564 | # Prevent -belf from being passed to $CPP. | |
2565 | # /lib/cpp does not accept it. | |
2566 | OVERRIDE_CPPFLAGS=" " | |
2567 | ;; | |
2568 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
55597d70 DL |
2569 | *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
2570 | *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
ba4481b5 | 2571 | *-386bsd* ) opsys=386bsd ;; |
ba4481b5 DL |
2572 | *-nextstep* ) opsys=nextstep ;; |
2573 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
2574 | esac | |
2575 | ;; | |
2576 | ||
2577 | ## m68k Linux-based GNU system | |
2578 | m68k-*-linux-gnu* ) | |
2579 | machine=m68k opsys=gnu-linux | |
2580 | ;; | |
2581 | ||
2582 | ## Mips Linux-based GNU system | |
cd958eb3 | 2583 | mips-*-linux-gnu* | mipsel-*-linux-gnu* ) |
ba4481b5 DL |
2584 | machine=mips opsys=gnu-linux |
2585 | ;; | |
2586 | ||
2587 | ## UXP/DS | |
2588 | sparc-fujitsu-sysv4* ) | |
2589 | machine=sparc opsys=uxpds | |
2590 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2591 | RANLIB="ar -ts" | |
2592 | ;; | |
2593 | ||
2594 | ## UXP/V | |
2595 | f301-fujitsu-uxpv4.1) | |
2596 | machine=f301 opsys=uxpv | |
2597 | ;; | |
2598 | ||
e0f712ba AC |
2599 | ## Darwin / Mac OS X |
2600 | powerpc-apple-darwin* ) | |
2601 | machine=powermac opsys=darwin | |
2602 | # Define CPP as follows to make autoconf work correctly. | |
2a75d75d | 2603 | CPP="${CC-cc} -E -no-cpp-precomp" |
c14dc0ed AS |
2604 | # Use fink packages if available. |
2605 | if test -d /sw/include && test -d /sw/lib; then | |
2606 | GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" | |
2607 | CPP="${CPP} ${GCC_TEST_OPTIONS}" | |
2608 | NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} | |
2609 | fi | |
e0f712ba AC |
2610 | ;; |
2611 | ||
598a2813 AS |
2612 | ## AMD x86-64 Linux-based GNU system |
2613 | x86_64-*-linux-gnu* ) | |
24b01ec4 | 2614 | machine=amdx86-64 opsys=gnu-linux |
598a2813 AS |
2615 | ;; |
2616 | ||
ba4481b5 DL |
2617 | * ) |
2618 | unported=yes | |
2619 | ;; | |
2620 | esac | |
2621 | ||
2622 | ### If the code above didn't choose an operating system, just choose | |
2623 | ### an operating system based on the configuration name. You really | |
2624 | ### only want to use this when you have no idea what the right | |
2625 | ### operating system is; if you know what operating systems a machine | |
2626 | ### runs, it's cleaner to make it explicit in the case statement | |
2627 | ### above. | |
2628 | if test x"${opsys}" = x; then | |
2629 | case "${canonical}" in | |
2630 | *-gnu* ) opsys=gnu ;; | |
2631 | *-bsd4.[01] ) opsys=bsd4-1 ;; | |
2632 | *-bsd4.2 ) opsys=bsd4-2 ;; | |
2633 | *-bsd4.3 ) opsys=bsd4-3 ;; | |
2634 | *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
2635 | *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
2636 | *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
2637 | *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
2638 | *-sysv4.2uw* ) opsys=unixware ;; | |
55597d70 DL |
2639 | *-sysv5uw* ) opsys=unixware ;; |
2640 | *-sysv5OpenUNIX* ) opsys=unixware ;; | |
ba4481b5 DL |
2641 | *-sysv4.1* | *-sysvr4.1* ) |
2642 | NON_GNU_CPP=/usr/lib/cpp | |
2643 | opsys=usg5-4 ;; | |
2644 | *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
2645 | if [ x$NON_GNU_CPP = x ]; then | |
2646 | if [ -f /usr/ccs/lib/cpp ]; then | |
2647 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2648 | else | |
2649 | NON_GNU_CPP=/lib/cpp | |
2650 | fi | |
2651 | fi | |
2652 | opsys=usg5-4-2 ;; | |
2653 | *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
2654 | * ) | |
2655 | unported=yes | |
2656 | ;; | |
2657 | esac | |
2658 | fi | |
2659 | ||
c0d27fcc | 2660 | |
22044edf | 2661 | |
ba4481b5 | 2662 | if test $unported = yes; then |
c0d27fcc | 2663 | { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. |
503d2be0 AS |
2664 | Check \`etc/MACHINES' for recognized configuration names." >&5 |
2665 | echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2666 | Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2667 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
2668 | fi |
2669 | ||
2670 | machfile="m/${machine}.h" | |
2671 | opsysfile="s/${opsys}.h" | |
2672 | ||
c0d27fcc | 2673 | |
ba4481b5 DL |
2674 | #### Choose a compiler. |
2675 | test -n "$CC" && cc_specified=yes | |
2676 | ||
2677 | # Save the value of CFLAGS that the user specified. | |
2678 | SPECIFIED_CFLAGS="$CFLAGS" | |
2679 | ||
2680 | case ${with_gcc} in | |
2681 | "yes" ) CC="gcc" GCC=yes ;; | |
2682 | "no" ) : ${CC=cc} ;; | |
503d2be0 AS |
2683 | * ) |
2684 | esac | |
2685 | ac_ext=c | |
2686 | ac_cpp='$CPP $CPPFLAGS' | |
2687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2690 | if test -n "$ac_tool_prefix"; then | |
2691 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2692 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
c0d27fcc | 2693 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2694 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2695 | if test "${ac_cv_prog_CC+set}" = set; then | |
2696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2697 | else |
2698 | if test -n "$CC"; then | |
2699 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2700 | else | |
c0d27fcc MR |
2701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2702 | for as_dir in $PATH | |
2703 | do | |
2704 | IFS=$as_save_IFS | |
2705 | test -z "$as_dir" && as_dir=. | |
2706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2707 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2708 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2709 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2710 | break 2 | |
2711 | fi | |
2712 | done | |
503d2be0 AS |
2713 | done |
2714 | ||
ba4481b5 DL |
2715 | fi |
2716 | fi | |
503d2be0 | 2717 | CC=$ac_cv_prog_CC |
ba4481b5 | 2718 | if test -n "$CC"; then |
c0d27fcc | 2719 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 AS |
2720 | echo "${ECHO_T}$CC" >&6 |
2721 | else | |
c0d27fcc | 2722 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2723 | echo "${ECHO_T}no" >&6 |
2724 | fi | |
2725 | ||
2726 | fi | |
2727 | if test -z "$ac_cv_prog_CC"; then | |
2728 | ac_ct_CC=$CC | |
2729 | # Extract the first word of "gcc", so it can be a program name with args. | |
2730 | set dummy gcc; ac_word=$2 | |
c0d27fcc | 2731 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2732 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2733 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2735 | else | |
2736 | if test -n "$ac_ct_CC"; then | |
2737 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2738 | else | |
c0d27fcc MR |
2739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2740 | for as_dir in $PATH | |
2741 | do | |
2742 | IFS=$as_save_IFS | |
2743 | test -z "$as_dir" && as_dir=. | |
2744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2745 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2746 | ac_cv_prog_ac_ct_CC="gcc" | |
2747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2748 | break 2 | |
2749 | fi | |
2750 | done | |
503d2be0 AS |
2751 | done |
2752 | ||
2753 | fi | |
2754 | fi | |
2755 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2756 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2757 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 | 2758 | echo "${ECHO_T}$ac_ct_CC" >&6 |
ba4481b5 | 2759 | else |
c0d27fcc | 2760 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2761 | echo "${ECHO_T}no" >&6 |
2762 | fi | |
2763 | ||
2764 | CC=$ac_ct_CC | |
2765 | else | |
2766 | CC="$ac_cv_prog_CC" | |
ba4481b5 DL |
2767 | fi |
2768 | ||
2769 | if test -z "$CC"; then | |
503d2be0 AS |
2770 | if test -n "$ac_tool_prefix"; then |
2771 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2772 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
c0d27fcc | 2773 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2774 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2775 | if test "${ac_cv_prog_CC+set}" = set; then | |
2776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2777 | else |
2778 | if test -n "$CC"; then | |
2779 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2780 | else | |
c0d27fcc MR |
2781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2782 | for as_dir in $PATH | |
2783 | do | |
2784 | IFS=$as_save_IFS | |
2785 | test -z "$as_dir" && as_dir=. | |
2786 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2787 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2788 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2789 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2790 | break 2 | |
2791 | fi | |
2792 | done | |
503d2be0 AS |
2793 | done |
2794 | ||
2795 | fi | |
2796 | fi | |
2797 | CC=$ac_cv_prog_CC | |
2798 | if test -n "$CC"; then | |
c0d27fcc | 2799 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 AS |
2800 | echo "${ECHO_T}$CC" >&6 |
2801 | else | |
c0d27fcc | 2802 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2803 | echo "${ECHO_T}no" >&6 |
2804 | fi | |
2805 | ||
2806 | fi | |
2807 | if test -z "$ac_cv_prog_CC"; then | |
2808 | ac_ct_CC=$CC | |
2809 | # Extract the first word of "cc", so it can be a program name with args. | |
2810 | set dummy cc; ac_word=$2 | |
c0d27fcc | 2811 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2813 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2815 | else | |
2816 | if test -n "$ac_ct_CC"; then | |
2817 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2818 | else | |
c0d27fcc MR |
2819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2820 | for as_dir in $PATH | |
2821 | do | |
2822 | IFS=$as_save_IFS | |
2823 | test -z "$as_dir" && as_dir=. | |
2824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2825 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2826 | ac_cv_prog_ac_ct_CC="cc" | |
2827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2828 | break 2 | |
2829 | fi | |
2830 | done | |
503d2be0 AS |
2831 | done |
2832 | ||
2833 | fi | |
2834 | fi | |
2835 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2836 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2837 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 AS |
2838 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2839 | else | |
c0d27fcc | 2840 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2841 | echo "${ECHO_T}no" >&6 |
2842 | fi | |
2843 | ||
2844 | CC=$ac_ct_CC | |
2845 | else | |
2846 | CC="$ac_cv_prog_CC" | |
2847 | fi | |
2848 | ||
2849 | fi | |
2850 | if test -z "$CC"; then | |
2851 | # Extract the first word of "cc", so it can be a program name with args. | |
2852 | set dummy cc; ac_word=$2 | |
c0d27fcc | 2853 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2855 | if test "${ac_cv_prog_CC+set}" = set; then | |
2856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2857 | else | |
2858 | if test -n "$CC"; then | |
2859 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2860 | else | |
2861 | ac_prog_rejected=no | |
c0d27fcc MR |
2862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2863 | for as_dir in $PATH | |
2864 | do | |
2865 | IFS=$as_save_IFS | |
2866 | test -z "$as_dir" && as_dir=. | |
2867 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2868 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2869 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2870 | ac_prog_rejected=yes | |
2871 | continue | |
2872 | fi | |
2873 | ac_cv_prog_CC="cc" | |
2874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2875 | break 2 | |
2876 | fi | |
2877 | done | |
503d2be0 AS |
2878 | done |
2879 | ||
ba4481b5 DL |
2880 | if test $ac_prog_rejected = yes; then |
2881 | # We found a bogon in the path, so make sure we never use it. | |
2882 | set dummy $ac_cv_prog_CC | |
2883 | shift | |
503d2be0 | 2884 | if test $# != 0; then |
ba4481b5 DL |
2885 | # We chose a different compiler from the bogus one. |
2886 | # However, it has the same basename, so the bogon will be chosen | |
2887 | # first if we set CC to just the basename; use the full file name. | |
2888 | shift | |
6bae0ccf | 2889 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
ba4481b5 DL |
2890 | fi |
2891 | fi | |
2892 | fi | |
2893 | fi | |
503d2be0 | 2894 | CC=$ac_cv_prog_CC |
ba4481b5 | 2895 | if test -n "$CC"; then |
c0d27fcc | 2896 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 | 2897 | echo "${ECHO_T}$CC" >&6 |
ba4481b5 | 2898 | else |
c0d27fcc | 2899 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 2900 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
2901 | fi |
2902 | ||
503d2be0 AS |
2903 | fi |
2904 | if test -z "$CC"; then | |
2905 | if test -n "$ac_tool_prefix"; then | |
2906 | for ac_prog in cl | |
2907 | do | |
2908 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2909 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
c0d27fcc | 2910 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2912 | if test "${ac_cv_prog_CC+set}" = set; then | |
2913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c4bb2108 DL |
2914 | else |
2915 | if test -n "$CC"; then | |
2916 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2917 | else | |
c0d27fcc MR |
2918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2919 | for as_dir in $PATH | |
2920 | do | |
2921 | IFS=$as_save_IFS | |
2922 | test -z "$as_dir" && as_dir=. | |
2923 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2924 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2925 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2926 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2927 | break 2 | |
2928 | fi | |
2929 | done | |
503d2be0 AS |
2930 | done |
2931 | ||
c4bb2108 DL |
2932 | fi |
2933 | fi | |
503d2be0 | 2934 | CC=$ac_cv_prog_CC |
c4bb2108 | 2935 | if test -n "$CC"; then |
c0d27fcc | 2936 | echo "$as_me:$LINENO: result: $CC" >&5 |
503d2be0 | 2937 | echo "${ECHO_T}$CC" >&6 |
c4bb2108 | 2938 | else |
c0d27fcc | 2939 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
2940 | echo "${ECHO_T}no" >&6 |
2941 | fi | |
2942 | ||
2943 | test -n "$CC" && break | |
2944 | done | |
2945 | fi | |
2946 | if test -z "$CC"; then | |
2947 | ac_ct_CC=$CC | |
2948 | for ac_prog in cl | |
2949 | do | |
2950 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2951 | set dummy $ac_prog; ac_word=$2 | |
c0d27fcc | 2952 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
2953 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2954 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2956 | else | |
2957 | if test -n "$ac_ct_CC"; then | |
2958 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2959 | else | |
c0d27fcc MR |
2960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2961 | for as_dir in $PATH | |
2962 | do | |
2963 | IFS=$as_save_IFS | |
2964 | test -z "$as_dir" && as_dir=. | |
2965 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2966 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2967 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2968 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2969 | break 2 | |
2970 | fi | |
2971 | done | |
503d2be0 AS |
2972 | done |
2973 | ||
c4bb2108 | 2974 | fi |
503d2be0 AS |
2975 | fi |
2976 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2977 | if test -n "$ac_ct_CC"; then | |
c0d27fcc | 2978 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
503d2be0 AS |
2979 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2980 | else | |
c0d27fcc | 2981 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 2982 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
2983 | fi |
2984 | ||
503d2be0 AS |
2985 | test -n "$ac_ct_CC" && break |
2986 | done | |
ba4481b5 | 2987 | |
503d2be0 AS |
2988 | CC=$ac_ct_CC |
2989 | fi | |
2990 | ||
2991 | fi | |
ba4481b5 | 2992 | |
c0d27fcc | 2993 | |
19650fd6 AS |
2994 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2995 | See \`config.log' for more details." >&5 | |
2996 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2997 | See \`config.log' for more details." >&2;} | |
503d2be0 | 2998 | { (exit 1); exit 1; }; } |
c4bb2108 | 2999 | |
503d2be0 | 3000 | # Provide some information about the compiler. |
c0d27fcc | 3001 | echo "$as_me:$LINENO:" \ |
503d2be0 AS |
3002 | "checking for C compiler version" >&5 |
3003 | ac_compiler=`set X $ac_compile; echo $2` | |
c0d27fcc | 3004 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
503d2be0 AS |
3005 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
3006 | ac_status=$? | |
c0d27fcc | 3007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3008 | (exit $ac_status); } |
c0d27fcc | 3009 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
503d2be0 AS |
3010 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
3011 | ac_status=$? | |
c0d27fcc | 3012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3013 | (exit $ac_status); } |
c0d27fcc | 3014 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
503d2be0 AS |
3015 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
3016 | ac_status=$? | |
c0d27fcc | 3017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3018 | (exit $ac_status); } |
3019 | ||
3020 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3021 | /* confdefs.h. */ |
3022 | _ACEOF | |
3023 | cat confdefs.h >>conftest.$ac_ext | |
3024 | cat >>conftest.$ac_ext <<_ACEOF | |
3025 | /* end confdefs.h. */ | |
c4bb2108 | 3026 | |
503d2be0 AS |
3027 | int |
3028 | main () | |
3029 | { | |
3030 | ||
3031 | ; | |
3032 | return 0; | |
3033 | } | |
3034 | _ACEOF | |
3035 | ac_clean_files_save=$ac_clean_files | |
19650fd6 | 3036 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
503d2be0 AS |
3037 | # Try to create an executable without -o first, disregard a.out. |
3038 | # It will help us diagnose broken compilers, and finding out an intuition | |
3039 | # of exeext. | |
35996d22 AS |
3040 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3041 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
503d2be0 | 3042 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
c0d27fcc | 3043 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
503d2be0 AS |
3044 | (eval $ac_link_default) 2>&5 |
3045 | ac_status=$? | |
c0d27fcc | 3046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3047 | (exit $ac_status); }; then |
3048 | # Find the output, starting from the most likely. This scheme is | |
3049 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
3050 | # resort. | |
c0d27fcc MR |
3051 | |
3052 | # Be careful to initialize this variable, since it used to be cached. | |
3053 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
3054 | ac_cv_exeext= | |
19650fd6 AS |
3055 | # b.out is created by i960 compilers. |
3056 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
3057 | do | |
6bae0ccf | 3058 | test -f "$ac_file" || continue |
503d2be0 | 3059 | case $ac_file in |
19650fd6 | 3060 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
35996d22 | 3061 | ;; |
19650fd6 | 3062 | conftest.$ac_ext ) |
35996d22 AS |
3063 | # This is the source file. |
3064 | ;; | |
19650fd6 | 3065 | [ab].out ) |
35996d22 AS |
3066 | # We found the default executable, but exeext='' is most |
3067 | # certainly right. | |
3068 | break;; | |
19650fd6 | 3069 | *.* ) |
35996d22 AS |
3070 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3071 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
3072 | # but it would be cool to find out if it's true. Does anybody | |
3073 | # maintain Libtool? --akim. | |
3074 | export ac_cv_exeext | |
3075 | break;; | |
19650fd6 | 3076 | * ) |
35996d22 | 3077 | break;; |
503d2be0 AS |
3078 | esac |
3079 | done | |
3080 | else | |
3081 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3082 | sed 's/^/| /' conftest.$ac_ext >&5 |
3083 | ||
6bae0ccf | 3084 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
19650fd6 | 3085 | See \`config.log' for more details." >&5 |
6bae0ccf | 3086 | echo "$as_me: error: C compiler cannot create executables |
19650fd6 | 3087 | See \`config.log' for more details." >&2;} |
503d2be0 AS |
3088 | { (exit 77); exit 77; }; } |
3089 | fi | |
3090 | ||
3091 | ac_exeext=$ac_cv_exeext | |
c0d27fcc | 3092 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
503d2be0 AS |
3093 | echo "${ECHO_T}$ac_file" >&6 |
3094 | ||
3095 | # Check the compiler produces executables we can run. If not, either | |
3096 | # the compiler is broken, or we cross compile. | |
c0d27fcc | 3097 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
503d2be0 AS |
3098 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
3099 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3100 | # If not cross compiling, check that we can run a simple program. | |
3101 | if test "$cross_compiling" != yes; then | |
3102 | if { ac_try='./$ac_file' | |
c0d27fcc | 3103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3104 | (eval $ac_try) 2>&5 |
3105 | ac_status=$? | |
c0d27fcc | 3106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3107 | (exit $ac_status); }; }; then |
3108 | cross_compiling=no | |
ba4481b5 | 3109 | else |
503d2be0 AS |
3110 | if test "$cross_compiling" = maybe; then |
3111 | cross_compiling=yes | |
3112 | else | |
c0d27fcc | 3113 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
19650fd6 AS |
3114 | If you meant to cross compile, use \`--host'. |
3115 | See \`config.log' for more details." >&5 | |
503d2be0 | 3116 | echo "$as_me: error: cannot run C compiled programs. |
19650fd6 AS |
3117 | If you meant to cross compile, use \`--host'. |
3118 | See \`config.log' for more details." >&2;} | |
503d2be0 AS |
3119 | { (exit 1); exit 1; }; } |
3120 | fi | |
ba4481b5 | 3121 | fi |
503d2be0 | 3122 | fi |
c0d27fcc | 3123 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 AS |
3124 | echo "${ECHO_T}yes" >&6 |
3125 | ||
19650fd6 | 3126 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
503d2be0 AS |
3127 | ac_clean_files=$ac_clean_files_save |
3128 | # Check the compiler produces executables we can run. If not, either | |
3129 | # the compiler is broken, or we cross compile. | |
c0d27fcc | 3130 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
503d2be0 | 3131 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
c0d27fcc | 3132 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
503d2be0 AS |
3133 | echo "${ECHO_T}$cross_compiling" >&6 |
3134 | ||
c0d27fcc MR |
3135 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3136 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
3137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
503d2be0 AS |
3138 | (eval $ac_link) 2>&5 |
3139 | ac_status=$? | |
c0d27fcc | 3140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3141 | (exit $ac_status); }; then |
3142 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3143 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3144 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3145 | # `rm'. | |
6bae0ccf DL |
3146 | for ac_file in conftest.exe conftest conftest.*; do |
3147 | test -f "$ac_file" || continue | |
503d2be0 | 3148 | case $ac_file in |
6bae0ccf | 3149 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
503d2be0 | 3150 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
35996d22 AS |
3151 | export ac_cv_exeext |
3152 | break;; | |
503d2be0 AS |
3153 | * ) break;; |
3154 | esac | |
3155 | done | |
ba4481b5 | 3156 | else |
19650fd6 AS |
3157 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3158 | See \`config.log' for more details." >&5 | |
3159 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3160 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3161 | { (exit 1); exit 1; }; } |
ba4481b5 | 3162 | fi |
ba4481b5 | 3163 | |
503d2be0 | 3164 | rm -f conftest$ac_cv_exeext |
c0d27fcc | 3165 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
503d2be0 | 3166 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
ba4481b5 | 3167 | |
503d2be0 AS |
3168 | rm -f conftest.$ac_ext |
3169 | EXEEXT=$ac_cv_exeext | |
3170 | ac_exeext=$EXEEXT | |
c0d27fcc MR |
3171 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3172 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
503d2be0 AS |
3173 | if test "${ac_cv_objext+set}" = set; then |
3174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3175 | else |
503d2be0 | 3176 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3177 | /* confdefs.h. */ |
3178 | _ACEOF | |
3179 | cat confdefs.h >>conftest.$ac_ext | |
3180 | cat >>conftest.$ac_ext <<_ACEOF | |
3181 | /* end confdefs.h. */ | |
ba4481b5 | 3182 | |
503d2be0 AS |
3183 | int |
3184 | main () | |
3185 | { | |
ba4481b5 | 3186 | |
503d2be0 AS |
3187 | ; |
3188 | return 0; | |
3189 | } | |
3190 | _ACEOF | |
3191 | rm -f conftest.o conftest.obj | |
c0d27fcc | 3192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
503d2be0 AS |
3193 | (eval $ac_compile) 2>&5 |
3194 | ac_status=$? | |
c0d27fcc | 3195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3196 | (exit $ac_status); }; then |
3197 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
3198 | case $ac_file in | |
6bae0ccf | 3199 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
503d2be0 AS |
3200 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3201 | break;; | |
3202 | esac | |
3203 | done | |
c4bb2108 | 3204 | else |
503d2be0 | 3205 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3206 | sed 's/^/| /' conftest.$ac_ext >&5 |
3207 | ||
3208 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3209 | See \`config.log' for more details." >&5 | |
3210 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3211 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3212 | { (exit 1); exit 1; }; } |
c4bb2108 DL |
3213 | fi |
3214 | ||
503d2be0 AS |
3215 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3216 | fi | |
c0d27fcc | 3217 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
503d2be0 AS |
3218 | echo "${ECHO_T}$ac_cv_objext" >&6 |
3219 | OBJEXT=$ac_cv_objext | |
3220 | ac_objext=$OBJEXT | |
c0d27fcc | 3221 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
503d2be0 AS |
3222 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
3223 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3225 | else |
503d2be0 | 3226 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3227 | /* confdefs.h. */ |
3228 | _ACEOF | |
3229 | cat confdefs.h >>conftest.$ac_ext | |
3230 | cat >>conftest.$ac_ext <<_ACEOF | |
3231 | /* end confdefs.h. */ | |
503d2be0 AS |
3232 | |
3233 | int | |
3234 | main () | |
3235 | { | |
3236 | #ifndef __GNUC__ | |
3237 | choke me | |
3238 | #endif | |
3239 | ||
3240 | ; | |
3241 | return 0; | |
3242 | } | |
3243 | _ACEOF | |
3244 | rm -f conftest.$ac_objext | |
c0d27fcc | 3245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3246 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3247 | ac_status=$? |
35996d22 AS |
3248 | grep -v '^ *+' conftest.er1 >conftest.err |
3249 | rm -f conftest.er1 | |
3250 | cat conftest.err >&5 | |
c0d27fcc | 3251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3252 | (exit $ac_status); } && |
4494a266 JD |
3253 | { ac_try='test -z "$ac_c_werror_flag" |
3254 | || test ! -s conftest.err' | |
35996d22 AS |
3255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3256 | (eval $ac_try) 2>&5 | |
3257 | ac_status=$? | |
3258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3259 | (exit $ac_status); }; } && | |
3260 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3262 | (eval $ac_try) 2>&5 |
3263 | ac_status=$? | |
c0d27fcc | 3264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3265 | (exit $ac_status); }; }; then |
3266 | ac_compiler_gnu=yes | |
3267 | else | |
3268 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3269 | sed 's/^/| /' conftest.$ac_ext >&5 |
3270 | ||
503d2be0 AS |
3271 | ac_compiler_gnu=no |
3272 | fi | |
35996d22 | 3273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
3274 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3275 | ||
3276 | fi | |
c0d27fcc | 3277 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
503d2be0 AS |
3278 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
3279 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3280 | ac_test_CFLAGS=${CFLAGS+set} | |
3281 | ac_save_CFLAGS=$CFLAGS | |
3282 | CFLAGS="-g" | |
c0d27fcc | 3283 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
503d2be0 AS |
3284 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
3285 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3287 | else | |
3288 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3289 | /* confdefs.h. */ |
3290 | _ACEOF | |
3291 | cat confdefs.h >>conftest.$ac_ext | |
3292 | cat >>conftest.$ac_ext <<_ACEOF | |
3293 | /* end confdefs.h. */ | |
503d2be0 AS |
3294 | |
3295 | int | |
3296 | main () | |
3297 | { | |
3298 | ||
3299 | ; | |
3300 | return 0; | |
3301 | } | |
3302 | _ACEOF | |
3303 | rm -f conftest.$ac_objext | |
c0d27fcc | 3304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3305 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3306 | ac_status=$? |
35996d22 AS |
3307 | grep -v '^ *+' conftest.er1 >conftest.err |
3308 | rm -f conftest.er1 | |
3309 | cat conftest.err >&5 | |
c0d27fcc | 3310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3311 | (exit $ac_status); } && |
4494a266 JD |
3312 | { ac_try='test -z "$ac_c_werror_flag" |
3313 | || test ! -s conftest.err' | |
35996d22 AS |
3314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3315 | (eval $ac_try) 2>&5 | |
3316 | ac_status=$? | |
3317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3318 | (exit $ac_status); }; } && | |
3319 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3321 | (eval $ac_try) 2>&5 |
3322 | ac_status=$? | |
c0d27fcc | 3323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3324 | (exit $ac_status); }; }; then |
ba4481b5 DL |
3325 | ac_cv_prog_cc_g=yes |
3326 | else | |
503d2be0 | 3327 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3328 | sed 's/^/| /' conftest.$ac_ext >&5 |
3329 | ||
503d2be0 | 3330 | ac_cv_prog_cc_g=no |
ba4481b5 | 3331 | fi |
35996d22 | 3332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 3333 | fi |
c0d27fcc | 3334 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
503d2be0 | 3335 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
c4bb2108 | 3336 | if test "$ac_test_CFLAGS" = set; then |
503d2be0 | 3337 | CFLAGS=$ac_save_CFLAGS |
c4bb2108 DL |
3338 | elif test $ac_cv_prog_cc_g = yes; then |
3339 | if test "$GCC" = yes; then | |
ba4481b5 DL |
3340 | CFLAGS="-g -O2" |
3341 | else | |
c4bb2108 | 3342 | CFLAGS="-g" |
ba4481b5 | 3343 | fi |
22afa6e8 | 3344 | else |
c4bb2108 DL |
3345 | if test "$GCC" = yes; then |
3346 | CFLAGS="-O2" | |
3347 | else | |
3348 | CFLAGS= | |
3349 | fi | |
ba4481b5 | 3350 | fi |
6bae0ccf DL |
3351 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3352 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3353 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3355 | else | |
3356 | ac_cv_prog_cc_stdc=no | |
3357 | ac_save_CC=$CC | |
3358 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3359 | /* confdefs.h. */ |
3360 | _ACEOF | |
3361 | cat confdefs.h >>conftest.$ac_ext | |
3362 | cat >>conftest.$ac_ext <<_ACEOF | |
3363 | /* end confdefs.h. */ | |
6bae0ccf DL |
3364 | #include <stdarg.h> |
3365 | #include <stdio.h> | |
3366 | #include <sys/types.h> | |
3367 | #include <sys/stat.h> | |
3368 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3369 | struct buf { int x; }; | |
3370 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3371 | static char *e (p, i) | |
3372 | char **p; | |
3373 | int i; | |
3374 | { | |
3375 | return p[i]; | |
3376 | } | |
3377 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3378 | { | |
3379 | char *s; | |
3380 | va_list v; | |
3381 | va_start (v,p); | |
3382 | s = g (p, va_arg (v,int)); | |
3383 | va_end (v); | |
3384 | return s; | |
3385 | } | |
35996d22 AS |
3386 | |
3387 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3388 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3389 | These don't provoke an error unfortunately, instead are silently treated | |
3390 | as 'x'. The following induces an error, until -std1 is added to get | |
3391 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3392 | array size at least. It's necessary to write '\x00'==0 to get something | |
3393 | that's true only with -std1. */ | |
3394 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3395 | ||
6bae0ccf DL |
3396 | int test (int i, double x); |
3397 | struct s1 {int (*f) (int a);}; | |
3398 | struct s2 {int (*f) (double a);}; | |
3399 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3400 | int argc; | |
3401 | char **argv; | |
3402 | int | |
3403 | main () | |
3404 | { | |
3405 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3406 | ; | |
3407 | return 0; | |
3408 | } | |
3409 | _ACEOF | |
3410 | # Don't try gcc -ansi; that turns off useful extensions and | |
3411 | # breaks some systems' header files. | |
3412 | # AIX -qlanglvl=ansi | |
3413 | # Ultrix and OSF/1 -std1 | |
3414 | # HP-UX 10.20 and later -Ae | |
3415 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3416 | # SVR4 -Xc -D__EXTENSIONS__ | |
3417 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3418 | do | |
3419 | CC="$ac_save_CC $ac_arg" | |
3420 | rm -f conftest.$ac_objext | |
3421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 3422 | (eval $ac_compile) 2>conftest.er1 |
6bae0ccf | 3423 | ac_status=$? |
35996d22 AS |
3424 | grep -v '^ *+' conftest.er1 >conftest.err |
3425 | rm -f conftest.er1 | |
3426 | cat conftest.err >&5 | |
6bae0ccf DL |
3427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3428 | (exit $ac_status); } && | |
4494a266 JD |
3429 | { ac_try='test -z "$ac_c_werror_flag" |
3430 | || test ! -s conftest.err' | |
35996d22 AS |
3431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3432 | (eval $ac_try) 2>&5 | |
3433 | ac_status=$? | |
3434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3435 | (exit $ac_status); }; } && | |
3436 | { ac_try='test -s conftest.$ac_objext' | |
6bae0ccf DL |
3437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3438 | (eval $ac_try) 2>&5 | |
3439 | ac_status=$? | |
3440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3441 | (exit $ac_status); }; }; then | |
3442 | ac_cv_prog_cc_stdc=$ac_arg | |
3443 | break | |
3444 | else | |
3445 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3446 | sed 's/^/| /' conftest.$ac_ext >&5 |
3447 | ||
6bae0ccf | 3448 | fi |
35996d22 | 3449 | rm -f conftest.err conftest.$ac_objext |
6bae0ccf DL |
3450 | done |
3451 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3452 | CC=$ac_save_CC | |
3453 | ||
3454 | fi | |
3455 | ||
3456 | case "x$ac_cv_prog_cc_stdc" in | |
3457 | x|xno) | |
3458 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3459 | echo "${ECHO_T}none needed" >&6 ;; | |
3460 | *) | |
3461 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3462 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3463 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3464 | esac | |
3465 | ||
503d2be0 AS |
3466 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3467 | # in C++ we need to declare it. In case someone uses the same compiler | |
3468 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3469 | # the declaration of exit, since it's the most demanding environment. | |
3470 | cat >conftest.$ac_ext <<_ACEOF | |
3471 | #ifndef __cplusplus | |
3472 | choke me | |
3473 | #endif | |
3474 | _ACEOF | |
3475 | rm -f conftest.$ac_objext | |
c0d27fcc | 3476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3477 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3478 | ac_status=$? |
35996d22 AS |
3479 | grep -v '^ *+' conftest.er1 >conftest.err |
3480 | rm -f conftest.er1 | |
3481 | cat conftest.err >&5 | |
c0d27fcc | 3482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3483 | (exit $ac_status); } && |
4494a266 JD |
3484 | { ac_try='test -z "$ac_c_werror_flag" |
3485 | || test ! -s conftest.err' | |
35996d22 AS |
3486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3487 | (eval $ac_try) 2>&5 | |
3488 | ac_status=$? | |
3489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3490 | (exit $ac_status); }; } && | |
3491 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3493 | (eval $ac_try) 2>&5 |
3494 | ac_status=$? | |
c0d27fcc | 3495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3496 | (exit $ac_status); }; }; then |
3497 | for ac_declaration in \ | |
35996d22 | 3498 | '' \ |
503d2be0 AS |
3499 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
3500 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3501 | 'extern "C" void exit (int) throw ();' \ | |
3502 | 'extern "C" void exit (int);' \ | |
cffcede7 | 3503 | 'void exit (int);' |
503d2be0 AS |
3504 | do |
3505 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3506 | /* confdefs.h. */ |
3507 | _ACEOF | |
3508 | cat confdefs.h >>conftest.$ac_ext | |
3509 | cat >>conftest.$ac_ext <<_ACEOF | |
3510 | /* end confdefs.h. */ | |
57669b57 | 3511 | $ac_declaration |
35996d22 | 3512 | #include <stdlib.h> |
503d2be0 AS |
3513 | int |
3514 | main () | |
3515 | { | |
3516 | exit (42); | |
3517 | ; | |
3518 | return 0; | |
3519 | } | |
3520 | _ACEOF | |
3521 | rm -f conftest.$ac_objext | |
c0d27fcc | 3522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3523 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3524 | ac_status=$? |
35996d22 AS |
3525 | grep -v '^ *+' conftest.er1 >conftest.err |
3526 | rm -f conftest.er1 | |
3527 | cat conftest.err >&5 | |
c0d27fcc | 3528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3529 | (exit $ac_status); } && |
4494a266 JD |
3530 | { ac_try='test -z "$ac_c_werror_flag" |
3531 | || test ! -s conftest.err' | |
35996d22 AS |
3532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3533 | (eval $ac_try) 2>&5 | |
3534 | ac_status=$? | |
3535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3536 | (exit $ac_status); }; } && | |
3537 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3539 | (eval $ac_try) 2>&5 |
3540 | ac_status=$? | |
c0d27fcc | 3541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3542 | (exit $ac_status); }; }; then |
3543 | : | |
3544 | else | |
3545 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3546 | sed 's/^/| /' conftest.$ac_ext >&5 |
3547 | ||
503d2be0 AS |
3548 | continue |
3549 | fi | |
35996d22 | 3550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 3551 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3552 | /* confdefs.h. */ |
3553 | _ACEOF | |
3554 | cat confdefs.h >>conftest.$ac_ext | |
3555 | cat >>conftest.$ac_ext <<_ACEOF | |
3556 | /* end confdefs.h. */ | |
503d2be0 AS |
3557 | $ac_declaration |
3558 | int | |
3559 | main () | |
3560 | { | |
3561 | exit (42); | |
3562 | ; | |
3563 | return 0; | |
3564 | } | |
3565 | _ACEOF | |
3566 | rm -f conftest.$ac_objext | |
c0d27fcc | 3567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 3568 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 3569 | ac_status=$? |
35996d22 AS |
3570 | grep -v '^ *+' conftest.er1 >conftest.err |
3571 | rm -f conftest.er1 | |
3572 | cat conftest.err >&5 | |
c0d27fcc | 3573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3574 | (exit $ac_status); } && |
4494a266 JD |
3575 | { ac_try='test -z "$ac_c_werror_flag" |
3576 | || test ! -s conftest.err' | |
35996d22 AS |
3577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3578 | (eval $ac_try) 2>&5 | |
3579 | ac_status=$? | |
3580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3581 | (exit $ac_status); }; } && | |
3582 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 3583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
3584 | (eval $ac_try) 2>&5 |
3585 | ac_status=$? | |
c0d27fcc | 3586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3587 | (exit $ac_status); }; }; then |
3588 | break | |
3589 | else | |
3590 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3591 | sed 's/^/| /' conftest.$ac_ext >&5 |
3592 | ||
503d2be0 | 3593 | fi |
35996d22 | 3594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
3595 | done |
3596 | rm -f conftest* | |
3597 | if test -n "$ac_declaration"; then | |
3598 | echo '#ifdef __cplusplus' >>confdefs.h | |
3599 | echo $ac_declaration >>confdefs.h | |
3600 | echo '#endif' >>confdefs.h | |
3601 | fi | |
ba4481b5 | 3602 | |
503d2be0 AS |
3603 | else |
3604 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3605 | sed 's/^/| /' conftest.$ac_ext >&5 |
3606 | ||
503d2be0 | 3607 | fi |
35996d22 | 3608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
3609 | ac_ext=c |
3610 | ac_cpp='$CPP $CPPFLAGS' | |
3611 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3612 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3613 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 | 3614 | |
c0d27fcc | 3615 | |
ba4481b5 DL |
3616 | # On Suns, sometimes $CPP names a directory. |
3617 | if test -n "$CPP" && test -d "$CPP"; then | |
3618 | CPP= | |
3619 | fi | |
3620 | ||
3621 | #### Some systems specify a CPP to use unless we are using GCC. | |
3622 | #### Now that we know whether we are using GCC, we can decide whether | |
3623 | #### to use that one. | |
3624 | if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
3625 | then | |
3626 | CPP="$NON_GNU_CPP" | |
3627 | fi | |
3628 | ||
3629 | #### Some systems specify a CC to use unless we are using GCC. | |
3630 | #### Now that we know whether we are using GCC, we can decide whether | |
3631 | #### to use that one. | |
3632 | if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
3633 | test x$cc_specified != xyes | |
3634 | then | |
3635 | CC="$NON_GNU_CC" | |
3636 | fi | |
3637 | ||
3638 | if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
3639 | then | |
3640 | CC="$CC $GCC_TEST_OPTIONS" | |
3641 | fi | |
3642 | ||
3643 | if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
3644 | then | |
3645 | CC="$CC $NON_GCC_TEST_OPTIONS" | |
3646 | fi | |
3647 | ||
6a3a24fa | 3648 | #### Some other nice autoconf tests. |
ba4481b5 | 3649 | |
c0d27fcc | 3650 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
503d2be0 AS |
3651 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3652 | LN_S=$as_ln_s | |
3653 | if test "$LN_S" = "ln -s"; then | |
c0d27fcc | 3654 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 3655 | echo "${ECHO_T}yes" >&6 |
ba4481b5 | 3656 | else |
c0d27fcc | 3657 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
503d2be0 | 3658 | echo "${ECHO_T}no, using $LN_S" >&6 |
ba4481b5 DL |
3659 | fi |
3660 | ||
503d2be0 AS |
3661 | ac_ext=c |
3662 | ac_cpp='$CPP $CPPFLAGS' | |
3663 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3664 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3665 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c0d27fcc | 3666 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
503d2be0 | 3667 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
ba4481b5 DL |
3668 | # On Suns, sometimes $CPP names a directory. |
3669 | if test -n "$CPP" && test -d "$CPP"; then | |
3670 | CPP= | |
3671 | fi | |
3672 | if test -z "$CPP"; then | |
503d2be0 AS |
3673 | if test "${ac_cv_prog_CPP+set}" = set; then |
3674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3675 | else | |
3676 | # Double quotes because CPP needs to be expanded | |
3677 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3678 | do | |
3679 | ac_preproc_ok=false | |
3680 | for ac_c_preproc_warn_flag in '' yes | |
3681 | do | |
3682 | # Use a header file that comes with gcc, so configuring glibc | |
3683 | # with a fresh cross-compiler works. | |
19650fd6 AS |
3684 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3685 | # <limits.h> exists even on freestanding compilers. | |
ba4481b5 | 3686 | # On the NeXT, cc -E runs the code through the compiler's parser, |
503d2be0 AS |
3687 | # not just through cpp. "Syntax error" is here to catch this case. |
3688 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3689 | /* confdefs.h. */ |
3690 | _ACEOF | |
3691 | cat confdefs.h >>conftest.$ac_ext | |
3692 | cat >>conftest.$ac_ext <<_ACEOF | |
3693 | /* end confdefs.h. */ | |
3694 | #ifdef __STDC__ | |
3695 | # include <limits.h> | |
3696 | #else | |
3697 | # include <assert.h> | |
3698 | #endif | |
35996d22 | 3699 | Syntax error |
503d2be0 | 3700 | _ACEOF |
c0d27fcc | 3701 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3702 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3703 | ac_status=$? | |
6bae0ccf | 3704 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3705 | rm -f conftest.er1 |
3706 | cat conftest.err >&5 | |
c0d27fcc | 3707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3708 | (exit $ac_status); } >/dev/null; then |
3709 | if test -s conftest.err; then | |
3710 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 3711 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
3712 | else |
3713 | ac_cpp_err= | |
3714 | fi | |
3715 | else | |
3716 | ac_cpp_err=yes | |
3717 | fi | |
3718 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
3719 | : |
3720 | else | |
503d2be0 | 3721 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3722 | sed 's/^/| /' conftest.$ac_ext >&5 |
3723 | ||
503d2be0 AS |
3724 | # Broken: fails on valid input. |
3725 | continue | |
3726 | fi | |
3727 | rm -f conftest.err conftest.$ac_ext | |
3728 | ||
3729 | # OK, works on sane cases. Now check whether non-existent headers | |
3730 | # can be detected and how. | |
3731 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3732 | /* confdefs.h. */ |
3733 | _ACEOF | |
3734 | cat confdefs.h >>conftest.$ac_ext | |
3735 | cat >>conftest.$ac_ext <<_ACEOF | |
3736 | /* end confdefs.h. */ | |
503d2be0 AS |
3737 | #include <ac_nonexistent.h> |
3738 | _ACEOF | |
c0d27fcc | 3739 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3740 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3741 | ac_status=$? | |
6bae0ccf | 3742 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3743 | rm -f conftest.er1 |
3744 | cat conftest.err >&5 | |
c0d27fcc | 3745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3746 | (exit $ac_status); } >/dev/null; then |
3747 | if test -s conftest.err; then | |
3748 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 3749 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
3750 | else |
3751 | ac_cpp_err= | |
3752 | fi | |
3753 | else | |
3754 | ac_cpp_err=yes | |
3755 | fi | |
3756 | if test -z "$ac_cpp_err"; then | |
3757 | # Broken: success on invalid input. | |
3758 | continue | |
c4bb2108 | 3759 | else |
503d2be0 | 3760 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3761 | sed 's/^/| /' conftest.$ac_ext >&5 |
3762 | ||
503d2be0 AS |
3763 | # Passes both tests. |
3764 | ac_preproc_ok=: | |
3765 | break | |
3766 | fi | |
3767 | rm -f conftest.err conftest.$ac_ext | |
3768 | ||
3769 | done | |
3770 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3771 | rm -f conftest.err conftest.$ac_ext | |
3772 | if $ac_preproc_ok; then | |
3773 | break | |
3774 | fi | |
3775 | ||
3776 | done | |
3777 | ac_cv_prog_CPP=$CPP | |
3778 | ||
3779 | fi | |
3780 | CPP=$ac_cv_prog_CPP | |
3781 | else | |
3782 | ac_cv_prog_CPP=$CPP | |
3783 | fi | |
c0d27fcc | 3784 | echo "$as_me:$LINENO: result: $CPP" >&5 |
503d2be0 AS |
3785 | echo "${ECHO_T}$CPP" >&6 |
3786 | ac_preproc_ok=false | |
3787 | for ac_c_preproc_warn_flag in '' yes | |
3788 | do | |
3789 | # Use a header file that comes with gcc, so configuring glibc | |
3790 | # with a fresh cross-compiler works. | |
19650fd6 AS |
3791 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3792 | # <limits.h> exists even on freestanding compilers. | |
503d2be0 AS |
3793 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3794 | # not just through cpp. "Syntax error" is here to catch this case. | |
3795 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3796 | /* confdefs.h. */ |
3797 | _ACEOF | |
3798 | cat confdefs.h >>conftest.$ac_ext | |
3799 | cat >>conftest.$ac_ext <<_ACEOF | |
3800 | /* end confdefs.h. */ | |
3801 | #ifdef __STDC__ | |
3802 | # include <limits.h> | |
3803 | #else | |
3804 | # include <assert.h> | |
3805 | #endif | |
35996d22 | 3806 | Syntax error |
503d2be0 | 3807 | _ACEOF |
c0d27fcc | 3808 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3809 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3810 | ac_status=$? | |
6bae0ccf | 3811 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3812 | rm -f conftest.er1 |
3813 | cat conftest.err >&5 | |
c0d27fcc | 3814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3815 | (exit $ac_status); } >/dev/null; then |
3816 | if test -s conftest.err; then | |
3817 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 3818 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
3819 | else |
3820 | ac_cpp_err= | |
3821 | fi | |
3822 | else | |
3823 | ac_cpp_err=yes | |
3824 | fi | |
3825 | if test -z "$ac_cpp_err"; then | |
ba4481b5 DL |
3826 | : |
3827 | else | |
503d2be0 | 3828 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3829 | sed 's/^/| /' conftest.$ac_ext >&5 |
3830 | ||
503d2be0 AS |
3831 | # Broken: fails on valid input. |
3832 | continue | |
3833 | fi | |
3834 | rm -f conftest.err conftest.$ac_ext | |
3835 | ||
3836 | # OK, works on sane cases. Now check whether non-existent headers | |
3837 | # can be detected and how. | |
3838 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3839 | /* confdefs.h. */ |
3840 | _ACEOF | |
3841 | cat confdefs.h >>conftest.$ac_ext | |
3842 | cat >>conftest.$ac_ext <<_ACEOF | |
3843 | /* end confdefs.h. */ | |
503d2be0 AS |
3844 | #include <ac_nonexistent.h> |
3845 | _ACEOF | |
c0d27fcc | 3846 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
3847 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3848 | ac_status=$? | |
6bae0ccf | 3849 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
3850 | rm -f conftest.er1 |
3851 | cat conftest.err >&5 | |
c0d27fcc | 3852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3853 | (exit $ac_status); } >/dev/null; then |
3854 | if test -s conftest.err; then | |
3855 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 3856 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
3857 | else |
3858 | ac_cpp_err= | |
3859 | fi | |
3860 | else | |
3861 | ac_cpp_err=yes | |
c4bb2108 | 3862 | fi |
503d2be0 AS |
3863 | if test -z "$ac_cpp_err"; then |
3864 | # Broken: success on invalid input. | |
3865 | continue | |
3866 | else | |
3867 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3868 | sed 's/^/| /' conftest.$ac_ext >&5 |
3869 | ||
503d2be0 AS |
3870 | # Passes both tests. |
3871 | ac_preproc_ok=: | |
3872 | break | |
ba4481b5 | 3873 | fi |
503d2be0 AS |
3874 | rm -f conftest.err conftest.$ac_ext |
3875 | ||
3876 | done | |
3877 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3878 | rm -f conftest.err conftest.$ac_ext | |
3879 | if $ac_preproc_ok; then | |
3880 | : | |
ba4481b5 | 3881 | else |
19650fd6 AS |
3882 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3883 | See \`config.log' for more details." >&5 | |
3884 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3885 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3886 | { (exit 1); exit 1; }; } |
ba4481b5 | 3887 | fi |
503d2be0 AS |
3888 | |
3889 | ac_ext=c | |
3890 | ac_cpp='$CPP $CPPFLAGS' | |
3891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 DL |
3894 | |
3895 | # Find a good install program. We prefer a C program (faster), | |
3896 | # so one script is as good as another. But avoid the broken or | |
3897 | # incompatible versions: | |
3898 | # SysV /etc/install, /usr/sbin/install | |
3899 | # SunOS /usr/etc/install | |
3900 | # IRIX /sbin/install | |
3901 | # AIX /bin/install | |
503d2be0 | 3902 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
c4bb2108 | 3903 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
ba4481b5 DL |
3904 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3905 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
35996d22 | 3906 | # OS/2's system install, which has a completely different semantic |
ba4481b5 | 3907 | # ./install, which can be erroneously created by make from ./install.sh. |
c0d27fcc MR |
3908 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3909 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
ba4481b5 | 3910 | if test -z "$INSTALL"; then |
503d2be0 AS |
3911 | if test "${ac_cv_path_install+set}" = set; then |
3912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3913 | else |
c0d27fcc MR |
3914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3915 | for as_dir in $PATH | |
3916 | do | |
3917 | IFS=$as_save_IFS | |
3918 | test -z "$as_dir" && as_dir=. | |
3919 | # Account for people who put trailing slashes in PATH elements. | |
3920 | case $as_dir/ in | |
3921 | ./ | .// | /cC/* | \ | |
3922 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
35996d22 | 3923 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
c0d27fcc MR |
3924 | /usr/ucb/* ) ;; |
3925 | *) | |
3926 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3927 | # Don't use installbsd from OSF since it installs stuff as root | |
3928 | # by default. | |
3929 | for ac_prog in ginstall scoinst install; do | |
3930 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35996d22 AS |
3931 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3932 | if test $ac_prog = install && | |
3933 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3934 | # AIX install. It has an incompatible calling convention. | |
3935 | : | |
3936 | elif test $ac_prog = install && | |
3937 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3938 | # program-specific install script used by HP pwplus--don't use. | |
3939 | : | |
3940 | else | |
3941 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3942 | break 3 | |
3943 | fi | |
3944 | fi | |
ba4481b5 | 3945 | done |
c0d27fcc MR |
3946 | done |
3947 | ;; | |
3948 | esac | |
3949 | done | |
3950 | ||
ba4481b5 DL |
3951 | |
3952 | fi | |
3953 | if test "${ac_cv_path_install+set}" = set; then | |
503d2be0 | 3954 | INSTALL=$ac_cv_path_install |
ba4481b5 DL |
3955 | else |
3956 | # As a last resort, use the slow shell script. We don't cache a | |
3957 | # path for INSTALL within a source directory, because that will | |
3958 | # break other packages using the cache if that directory is | |
3959 | # removed, or if the path is relative. | |
503d2be0 | 3960 | INSTALL=$ac_install_sh |
ba4481b5 DL |
3961 | fi |
3962 | fi | |
c0d27fcc | 3963 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
503d2be0 | 3964 | echo "${ECHO_T}$INSTALL" >&6 |
ba4481b5 DL |
3965 | |
3966 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3967 | # It thinks the first close brace ends the variable substitution. | |
3968 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3969 | ||
503d2be0 | 3970 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c4bb2108 | 3971 | |
ba4481b5 DL |
3972 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3973 | ||
c0d27fcc MR |
3974 | if test "x$RANLIB" = x; then |
3975 | if test -n "$ac_tool_prefix"; then | |
3976 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3977 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3978 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
503d2be0 | 3979 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
c0d27fcc | 3980 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
503d2be0 | 3981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 DL |
3982 | else |
3983 | if test -n "$RANLIB"; then | |
3984 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3985 | else | |
c0d27fcc MR |
3986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3987 | for as_dir in $PATH | |
3988 | do | |
3989 | IFS=$as_save_IFS | |
3990 | test -z "$as_dir" && as_dir=. | |
3991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3992 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3993 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3994 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3995 | break 2 | |
3996 | fi | |
3997 | done | |
503d2be0 AS |
3998 | done |
3999 | ||
7397acc4 DL |
4000 | fi |
4001 | fi | |
503d2be0 | 4002 | RANLIB=$ac_cv_prog_RANLIB |
7397acc4 | 4003 | if test -n "$RANLIB"; then |
c0d27fcc | 4004 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
503d2be0 AS |
4005 | echo "${ECHO_T}$RANLIB" >&6 |
4006 | else | |
c0d27fcc | 4007 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
4008 | echo "${ECHO_T}no" >&6 |
4009 | fi | |
4010 | ||
4011 | fi | |
4012 | if test -z "$ac_cv_prog_RANLIB"; then | |
4013 | ac_ct_RANLIB=$RANLIB | |
4014 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4015 | set dummy ranlib; ac_word=$2 | |
c0d27fcc | 4016 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
503d2be0 AS |
4017 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4018 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4020 | else | |
4021 | if test -n "$ac_ct_RANLIB"; then | |
4022 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4023 | else | |
c0d27fcc MR |
4024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4025 | for as_dir in $PATH | |
4026 | do | |
4027 | IFS=$as_save_IFS | |
4028 | test -z "$as_dir" && as_dir=. | |
4029 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4030 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4031 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4032 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4033 | break 2 | |
4034 | fi | |
4035 | done | |
503d2be0 AS |
4036 | done |
4037 | ||
4038 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
4039 | fi | |
4040 | fi | |
4041 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4042 | if test -n "$ac_ct_RANLIB"; then | |
c0d27fcc | 4043 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
503d2be0 AS |
4044 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
4045 | else | |
c0d27fcc | 4046 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 AS |
4047 | echo "${ECHO_T}no" >&6 |
4048 | fi | |
4049 | ||
4050 | RANLIB=$ac_ct_RANLIB | |
7397acc4 | 4051 | else |
503d2be0 | 4052 | RANLIB="$ac_cv_prog_RANLIB" |
7397acc4 DL |
4053 | fi |
4054 | ||
4055 | fi | |
9e71690e DK |
4056 | # Extract the first word of "install-info", so it can be a program name with args. |
4057 | set dummy install-info; ac_word=$2 | |
4058 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4059 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4060 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4062 | else | |
4063 | case $INSTALL_INFO in | |
4064 | [\\/]* | ?:[\\/]*) | |
4065 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
4066 | ;; | |
4067 | *) | |
4068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4069 | for as_dir in $PATH | |
4070 | do | |
4071 | IFS=$as_save_IFS | |
4072 | test -z "$as_dir" && as_dir=. | |
4073 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4074 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4075 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4076 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4077 | break 2 | |
4078 | fi | |
4079 | done | |
4080 | done | |
4081 | ||
4082 | ;; | |
4083 | esac | |
4084 | fi | |
4085 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
4086 | ||
4087 | if test -n "$INSTALL_INFO"; then | |
4088 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
4089 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
4090 | else | |
4091 | echo "$as_me:$LINENO: result: no" >&5 | |
4092 | echo "${ECHO_T}no" >&6 | |
4093 | fi | |
4094 | ||
4095 | # Extract the first word of "install-info", so it can be a program name with args. | |
4096 | set dummy install-info; ac_word=$2 | |
4097 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4099 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4101 | else | |
4102 | case $INSTALL_INFO in | |
4103 | [\\/]* | ?:[\\/]*) | |
4104 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
4105 | ;; | |
4106 | *) | |
4107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4108 | for as_dir in /usr/sbin | |
4109 | do | |
4110 | IFS=$as_save_IFS | |
4111 | test -z "$as_dir" && as_dir=. | |
4112 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4113 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4114 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4115 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4116 | break 2 | |
4117 | fi | |
4118 | done | |
4119 | done | |
4120 | ||
4121 | ;; | |
4122 | esac | |
4123 | fi | |
4124 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
4125 | ||
4126 | if test -n "$INSTALL_INFO"; then | |
4127 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
4128 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
4129 | else | |
4130 | echo "$as_me:$LINENO: result: no" >&5 | |
4131 | echo "${ECHO_T}no" >&6 | |
4132 | fi | |
4133 | ||
4134 | # Extract the first word of "install-info", so it can be a program name with args. | |
4135 | set dummy install-info; ac_word=$2 | |
4136 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4138 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4140 | else | |
4141 | case $INSTALL_INFO in | |
4142 | [\\/]* | ?:[\\/]*) | |
4143 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
4144 | ;; | |
4145 | *) | |
4146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4147 | for as_dir in /sbin | |
4148 | do | |
4149 | IFS=$as_save_IFS | |
4150 | test -z "$as_dir" && as_dir=. | |
4151 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4152 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4153 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4154 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4155 | break 2 | |
4156 | fi | |
4157 | done | |
4158 | done | |
4159 | ||
4160 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" | |
4161 | ;; | |
4162 | esac | |
4163 | fi | |
4164 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
4165 | ||
4166 | if test -n "$INSTALL_INFO"; then | |
4167 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | |
4168 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
4169 | else | |
4170 | echo "$as_me:$LINENO: result: no" >&5 | |
4171 | echo "${ECHO_T}no" >&6 | |
4172 | fi | |
4173 | ||
ba4481b5 | 4174 | |
c0d27fcc | 4175 | |
8e967cf7 MR |
4176 | if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x |
4177 | then | |
4178 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
4179 | fi | |
4180 | ||
4181 | if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
4182 | then | |
4183 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
4184 | fi | |
4185 | ||
c0d27fcc | 4186 | |
fe239f0f | 4187 | late_LDFLAGS=$LDFLAGS |
4af002d6 | 4188 | if test "$GCC" = yes; then |
fe239f0f AS |
4189 | LDFLAGS="$LDFLAGS -Wl,-znocombreloc" |
4190 | else | |
4191 | LDFLAGS="$LDFLAGS -znocombreloc" | |
4192 | fi | |
4193 | ||
4194 | echo "$as_me:$LINENO: checking For -znocombreloc" >&5 | |
4195 | echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6 | |
4196 | ||
4197 | cat >conftest.$ac_ext <<_ACEOF | |
4198 | main(){return 0;} | |
4199 | _ACEOF | |
4200 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4202 | (eval $ac_link) 2>conftest.er1 | |
4203 | ac_status=$? | |
4204 | grep -v '^ *+' conftest.er1 >conftest.err | |
4205 | rm -f conftest.er1 | |
4206 | cat conftest.err >&5 | |
4207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4208 | (exit $ac_status); } && | |
4494a266 JD |
4209 | { ac_try='test -z "$ac_c_werror_flag" |
4210 | || test ! -s conftest.err' | |
fe239f0f AS |
4211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4212 | (eval $ac_try) 2>&5 | |
4213 | ac_status=$? | |
4214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4215 | (exit $ac_status); }; } && | |
4216 | { ac_try='test -s conftest$ac_exeext' | |
4217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4218 | (eval $ac_try) 2>&5 | |
4219 | ac_status=$? | |
4220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4221 | (exit $ac_status); }; }; then | |
4222 | echo "$as_me:$LINENO: result: yes" >&5 | |
4223 | echo "${ECHO_T}yes" >&6 | |
4224 | else | |
4225 | echo "$as_me: failed program was:" >&5 | |
4226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4227 | ||
4228 | LDFLAGS=$late_LDFLAGS | |
4229 | echo "$as_me:$LINENO: result: no" >&5 | |
4230 | echo "${ECHO_T}no" >&6 | |
4231 | fi | |
4232 | rm -f conftest.err conftest.$ac_objext \ | |
4233 | conftest$ac_exeext conftest.$ac_ext | |
4234 | ||
c0d27fcc | 4235 | |
6bae0ccf DL |
4236 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4237 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4238 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4240 | else | |
4241 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4242 | then ac_cv_prog_egrep='grep -E' | |
4243 | else ac_cv_prog_egrep='egrep' | |
4244 | fi | |
4245 | fi | |
4246 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4247 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4248 | EGREP=$ac_cv_prog_egrep | |
4249 | ||
4250 | ||
c0d27fcc MR |
4251 | |
4252 | echo "$as_me:$LINENO: checking for AIX" >&5 | |
503d2be0 AS |
4253 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
4254 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4255 | /* confdefs.h. */ |
4256 | _ACEOF | |
4257 | cat confdefs.h >>conftest.$ac_ext | |
4258 | cat >>conftest.$ac_ext <<_ACEOF | |
4259 | /* end confdefs.h. */ | |
ba4481b5 DL |
4260 | #ifdef _AIX |
4261 | yes | |
4262 | #endif | |
4263 | ||
503d2be0 | 4264 | _ACEOF |
ba4481b5 | 4265 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bae0ccf | 4266 | $EGREP "yes" >/dev/null 2>&1; then |
c0d27fcc | 4267 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 4268 | echo "${ECHO_T}yes" >&6 |
c0d27fcc | 4269 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 4270 | #define _ALL_SOURCE 1 |
c0d27fcc | 4271 | _ACEOF |
ba4481b5 DL |
4272 | |
4273 | else | |
c0d27fcc | 4274 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 4275 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
4276 | fi |
4277 | rm -f conftest* | |
4278 | ||
c0d27fcc MR |
4279 | |
4280 | ||
4489ece2 | 4281 | |
3b33a005 DL |
4282 | #### Extract some information from the operating system and machine files. |
4283 | ||
c0d27fcc | 4284 | { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out |
3b33a005 | 4285 | - which libraries the lib-src programs will want, and |
503d2be0 AS |
4286 | - whether the GNU malloc routines are usable..." >&5 |
4287 | echo "$as_me: checking the machine- and system-dependent files to find out | |
3b33a005 | 4288 | - which libraries the lib-src programs will want, and |
503d2be0 | 4289 | - whether the GNU malloc routines are usable..." >&6;} |
3b33a005 DL |
4290 | |
4291 | ### First figure out CFLAGS (which we use for running the compiler here) | |
4292 | ### and REAL_CFLAGS (which we use for real compilation). | |
4293 | ### The two are the same except on a few systems, where they are made | |
4294 | ### different to work around various lossages. For example, | |
4295 | ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
4296 | ### as implying static linking. | |
4297 | ||
4298 | ### If the CFLAGS env var is specified, we use that value | |
4299 | ### instead of the default. | |
4300 | ||
4301 | ### It's not important that this name contain the PID; you can't run | |
4302 | ### two configures in the same directory and have anything work | |
4303 | ### anyway. | |
4304 | tempcname="conftest.c" | |
4305 | ||
4306 | echo ' | |
4307 | #include "'${srcdir}'/src/'${opsysfile}'" | |
4308 | #include "'${srcdir}'/src/'${machfile}'" | |
4309 | #ifndef LIBS_MACHINE | |
4310 | #define LIBS_MACHINE | |
4311 | #endif | |
4312 | #ifndef LIBS_SYSTEM | |
4313 | #define LIBS_SYSTEM | |
4314 | #endif | |
4315 | #ifndef C_SWITCH_SYSTEM | |
4316 | #define C_SWITCH_SYSTEM | |
4317 | #endif | |
4318 | #ifndef C_SWITCH_MACHINE | |
4319 | #define C_SWITCH_MACHINE | |
4320 | #endif | |
4321 | configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
4322 | configure___ c_switch_system=C_SWITCH_SYSTEM | |
4323 | configure___ c_switch_machine=C_SWITCH_MACHINE | |
4324 | ||
4325 | #ifndef LIB_X11_LIB | |
4326 | #define LIB_X11_LIB -lX11 | |
4327 | #endif | |
4328 | ||
4329 | #ifndef LIBX11_MACHINE | |
4330 | #define LIBX11_MACHINE | |
4331 | #endif | |
4332 | ||
4333 | #ifndef LIBX11_SYSTEM | |
4334 | #define LIBX11_SYSTEM | |
4335 | #endif | |
4336 | configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
4337 | ||
4338 | #ifdef UNEXEC | |
4339 | configure___ unexec=UNEXEC | |
4340 | #else | |
4341 | configure___ unexec=unexec.o | |
4342 | #endif | |
4343 | ||
4344 | #ifdef SYSTEM_MALLOC | |
4345 | configure___ system_malloc=yes | |
4346 | #else | |
4347 | configure___ system_malloc=no | |
4348 | #endif | |
4349 | ||
ef9e4345 GM |
4350 | #ifdef USE_MMAP_FOR_BUFFERS |
4351 | configure___ use_mmap_for_buffers=yes | |
73b77ee5 | 4352 | #else |
ef9e4345 | 4353 | configure___ use_mmap_for_buffers=no |
73b77ee5 GM |
4354 | #endif |
4355 | ||
3b33a005 DL |
4356 | #ifndef C_DEBUG_SWITCH |
4357 | #define C_DEBUG_SWITCH -g | |
4358 | #endif | |
4359 | ||
4360 | #ifndef C_OPTIMIZE_SWITCH | |
4361 | #ifdef __GNUC__ | |
4362 | #define C_OPTIMIZE_SWITCH -O2 | |
4363 | #else | |
4364 | #define C_OPTIMIZE_SWITCH -O | |
4365 | #endif | |
4366 | #endif | |
4367 | ||
4368 | #ifndef LD_SWITCH_MACHINE | |
4369 | #define LD_SWITCH_MACHINE | |
4370 | #endif | |
4371 | ||
4372 | #ifndef LD_SWITCH_SYSTEM | |
4373 | #define LD_SWITCH_SYSTEM | |
4374 | #endif | |
4375 | ||
4376 | #ifndef LD_SWITCH_X_SITE_AUX | |
4377 | #define LD_SWITCH_X_SITE_AUX | |
503d2be0 | 4378 | #endif |
3b33a005 DL |
4379 | |
4380 | configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
4381 | configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
4382 | ||
4383 | #ifdef THIS_IS_CONFIGURE | |
4384 | ||
4385 | /* Get the CFLAGS for tests in configure. */ | |
4386 | #ifdef __GNUC__ | |
4387 | configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
4388 | #else | |
4389 | configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
4390 | #endif | |
4391 | ||
4392 | #else /* not THIS_IS_CONFIGURE */ | |
4393 | ||
4394 | /* Get the CFLAGS for real compilation. */ | |
4395 | #ifdef __GNUC__ | |
4396 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
4397 | #else | |
4398 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
4399 | #endif | |
4400 | ||
4401 | #endif /* not THIS_IS_CONFIGURE */ | |
4402 | ' > ${tempcname} | |
4403 | ||
4404 | # The value of CPP is a quoted variable reference, so we need to do this | |
4405 | # to get its actual value... | |
4406 | CPP=`eval "echo $CPP"` | |
4407 | eval `${CPP} -Isrc ${tempcname} \ | |
4408 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
4409 | if test "x$SPECIFIED_CFLAGS" = x; then | |
4410 | eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
4411 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
4412 | else | |
4413 | REAL_CFLAGS="$CFLAGS" | |
4414 | fi | |
4415 | rm ${tempcname} | |
4416 | ||
4417 | ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
4418 | ||
4419 | ### Make sure subsequent tests use flags consistent with the build flags. | |
4420 | ||
4421 | if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
4422 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
4423 | else | |
4424 | CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
4425 | fi | |
4426 | ||
6bae0ccf DL |
4427 | |
4428 | ||
22044edf DL |
4429 | |
4430 | cat >>confdefs.h <<\_ACEOF | |
4431 | #define _GNU_SOURCE 1 | |
4432 | _ACEOF | |
4433 | ||
4434 | ||
4435 | ||
503d2be0 | 4436 | # Check whether --enable-largefile or --disable-largefile was given. |
f4988be7 GM |
4437 | if test "${enable_largefile+set}" = set; then |
4438 | enableval="$enable_largefile" | |
f4988be7 | 4439 | |
503d2be0 AS |
4440 | fi; |
4441 | if test "$enable_largefile" != no; then | |
f4988be7 | 4442 | |
c0d27fcc | 4443 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
503d2be0 AS |
4444 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
4445 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
4446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4447 | else |
f4988be7 | 4448 | ac_cv_sys_largefile_CC=no |
503d2be0 AS |
4449 | if test "$GCC" != yes; then |
4450 | ac_save_CC=$CC | |
4451 | while :; do | |
4452 | # IRIX 6.2 and later do not support large files by default, | |
4453 | # so use the C compiler's -n32 option if that helps. | |
35996d22 | 4454 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4455 | /* confdefs.h. */ |
4456 | _ACEOF | |
4457 | cat confdefs.h >>conftest.$ac_ext | |
4458 | cat >>conftest.$ac_ext <<_ACEOF | |
4459 | /* end confdefs.h. */ | |
f4988be7 | 4460 | #include <sys/types.h> |
503d2be0 AS |
4461 | /* Check that off_t can represent 2**63 - 1 correctly. |
4462 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4463 | since some C++ compilers masquerading as C compilers | |
4464 | incorrectly reject 9223372036854775807. */ | |
4465 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4466 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4467 | && LARGE_OFF_T % 2147483647 == 1) | |
4468 | ? 1 : -1]; | |
4469 | int | |
4470 | main () | |
4471 | { | |
f4988be7 | 4472 | |
503d2be0 AS |
4473 | ; |
4474 | return 0; | |
4475 | } | |
4476 | _ACEOF | |
4477 | rm -f conftest.$ac_objext | |
c0d27fcc | 4478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4479 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4480 | ac_status=$? |
35996d22 AS |
4481 | grep -v '^ *+' conftest.er1 >conftest.err |
4482 | rm -f conftest.er1 | |
4483 | cat conftest.err >&5 | |
c0d27fcc | 4484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4485 | (exit $ac_status); } && |
4494a266 JD |
4486 | { ac_try='test -z "$ac_c_werror_flag" |
4487 | || test ! -s conftest.err' | |
35996d22 AS |
4488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4489 | (eval $ac_try) 2>&5 | |
4490 | ac_status=$? | |
4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4492 | (exit $ac_status); }; } && | |
4493 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4495 | (eval $ac_try) 2>&5 |
4496 | ac_status=$? | |
c0d27fcc | 4497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4498 | (exit $ac_status); }; }; then |
4499 | break | |
b192d653 | 4500 | else |
503d2be0 | 4501 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4502 | sed 's/^/| /' conftest.$ac_ext >&5 |
4503 | ||
503d2be0 | 4504 | fi |
35996d22 | 4505 | rm -f conftest.err conftest.$ac_objext |
503d2be0 AS |
4506 | CC="$CC -n32" |
4507 | rm -f conftest.$ac_objext | |
c0d27fcc | 4508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4509 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4510 | ac_status=$? |
35996d22 AS |
4511 | grep -v '^ *+' conftest.er1 >conftest.err |
4512 | rm -f conftest.er1 | |
4513 | cat conftest.err >&5 | |
c0d27fcc | 4514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4515 | (exit $ac_status); } && |
4494a266 JD |
4516 | { ac_try='test -z "$ac_c_werror_flag" |
4517 | || test ! -s conftest.err' | |
35996d22 AS |
4518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4519 | (eval $ac_try) 2>&5 | |
4520 | ac_status=$? | |
4521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4522 | (exit $ac_status); }; } && | |
4523 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4525 | (eval $ac_try) 2>&5 |
4526 | ac_status=$? | |
c0d27fcc | 4527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4528 | (exit $ac_status); }; }; then |
4529 | ac_cv_sys_largefile_CC=' -n32'; break | |
4530 | else | |
4531 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4532 | sed 's/^/| /' conftest.$ac_ext >&5 |
4533 | ||
503d2be0 | 4534 | fi |
35996d22 AS |
4535 | rm -f conftest.err conftest.$ac_objext |
4536 | break | |
503d2be0 AS |
4537 | done |
4538 | CC=$ac_save_CC | |
4539 | rm -f conftest.$ac_ext | |
4540 | fi | |
b192d653 | 4541 | fi |
c0d27fcc | 4542 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
503d2be0 AS |
4543 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
4544 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4545 | CC=$CC$ac_cv_sys_largefile_CC | |
4546 | fi | |
b192d653 | 4547 | |
c0d27fcc | 4548 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
503d2be0 AS |
4549 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
4550 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
4551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4552 | else |
503d2be0 | 4553 | while :; do |
f4988be7 | 4554 | ac_cv_sys_file_offset_bits=no |
503d2be0 | 4555 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4556 | /* confdefs.h. */ |
4557 | _ACEOF | |
4558 | cat confdefs.h >>conftest.$ac_ext | |
4559 | cat >>conftest.$ac_ext <<_ACEOF | |
4560 | /* end confdefs.h. */ | |
f4988be7 | 4561 | #include <sys/types.h> |
503d2be0 AS |
4562 | /* Check that off_t can represent 2**63 - 1 correctly. |
4563 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4564 | since some C++ compilers masquerading as C compilers | |
4565 | incorrectly reject 9223372036854775807. */ | |
4566 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4567 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4568 | && LARGE_OFF_T % 2147483647 == 1) | |
4569 | ? 1 : -1]; | |
4570 | int | |
4571 | main () | |
4572 | { | |
f4988be7 | 4573 | |
503d2be0 AS |
4574 | ; |
4575 | return 0; | |
4576 | } | |
4577 | _ACEOF | |
4578 | rm -f conftest.$ac_objext | |
c0d27fcc | 4579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4580 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4581 | ac_status=$? |
35996d22 AS |
4582 | grep -v '^ *+' conftest.er1 >conftest.err |
4583 | rm -f conftest.er1 | |
4584 | cat conftest.err >&5 | |
c0d27fcc | 4585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4586 | (exit $ac_status); } && |
4494a266 JD |
4587 | { ac_try='test -z "$ac_c_werror_flag" |
4588 | || test ! -s conftest.err' | |
35996d22 AS |
4589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4590 | (eval $ac_try) 2>&5 | |
4591 | ac_status=$? | |
4592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4593 | (exit $ac_status); }; } && | |
4594 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4596 | (eval $ac_try) 2>&5 |
4597 | ac_status=$? | |
c0d27fcc | 4598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4599 | (exit $ac_status); }; }; then |
4600 | break | |
f4988be7 | 4601 | else |
503d2be0 | 4602 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4603 | sed 's/^/| /' conftest.$ac_ext >&5 |
4604 | ||
503d2be0 | 4605 | fi |
35996d22 | 4606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 4607 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4608 | /* confdefs.h. */ |
4609 | _ACEOF | |
4610 | cat confdefs.h >>conftest.$ac_ext | |
4611 | cat >>conftest.$ac_ext <<_ACEOF | |
4612 | /* end confdefs.h. */ | |
f4988be7 GM |
4613 | #define _FILE_OFFSET_BITS 64 |
4614 | #include <sys/types.h> | |
503d2be0 AS |
4615 | /* Check that off_t can represent 2**63 - 1 correctly. |
4616 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4617 | since some C++ compilers masquerading as C compilers | |
4618 | incorrectly reject 9223372036854775807. */ | |
4619 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4620 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4621 | && LARGE_OFF_T % 2147483647 == 1) | |
4622 | ? 1 : -1]; | |
4623 | int | |
4624 | main () | |
4625 | { | |
4626 | ||
4627 | ; | |
4628 | return 0; | |
4629 | } | |
4630 | _ACEOF | |
4631 | rm -f conftest.$ac_objext | |
c0d27fcc | 4632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4633 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4634 | ac_status=$? |
35996d22 AS |
4635 | grep -v '^ *+' conftest.er1 >conftest.err |
4636 | rm -f conftest.er1 | |
4637 | cat conftest.err >&5 | |
c0d27fcc | 4638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4639 | (exit $ac_status); } && |
4494a266 JD |
4640 | { ac_try='test -z "$ac_c_werror_flag" |
4641 | || test ! -s conftest.err' | |
35996d22 AS |
4642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4643 | (eval $ac_try) 2>&5 | |
4644 | ac_status=$? | |
4645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4646 | (exit $ac_status); }; } && | |
4647 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4649 | (eval $ac_try) 2>&5 |
4650 | ac_status=$? | |
c0d27fcc | 4651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4652 | (exit $ac_status); }; }; then |
4653 | ac_cv_sys_file_offset_bits=64; break | |
4654 | else | |
4655 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4656 | sed 's/^/| /' conftest.$ac_ext >&5 |
4657 | ||
503d2be0 | 4658 | fi |
35996d22 | 4659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
4660 | break |
4661 | done | |
ba4481b5 | 4662 | fi |
c0d27fcc | 4663 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
503d2be0 AS |
4664 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
4665 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
ba4481b5 | 4666 | |
c0d27fcc | 4667 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 4668 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
c0d27fcc | 4669 | _ACEOF |
f4988be7 | 4670 | |
503d2be0 AS |
4671 | fi |
4672 | rm -f conftest* | |
c0d27fcc | 4673 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
503d2be0 AS |
4674 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
4675 | if test "${ac_cv_sys_large_files+set}" = set; then | |
4676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4677 | else |
503d2be0 | 4678 | while :; do |
f4988be7 | 4679 | ac_cv_sys_large_files=no |
503d2be0 | 4680 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4681 | /* confdefs.h. */ |
4682 | _ACEOF | |
4683 | cat confdefs.h >>conftest.$ac_ext | |
4684 | cat >>conftest.$ac_ext <<_ACEOF | |
4685 | /* end confdefs.h. */ | |
503d2be0 AS |
4686 | #include <sys/types.h> |
4687 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4688 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4689 | since some C++ compilers masquerading as C compilers | |
4690 | incorrectly reject 9223372036854775807. */ | |
4691 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4692 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4693 | && LARGE_OFF_T % 2147483647 == 1) | |
4694 | ? 1 : -1]; | |
4695 | int | |
4696 | main () | |
4697 | { | |
ba4481b5 | 4698 | |
503d2be0 AS |
4699 | ; |
4700 | return 0; | |
4701 | } | |
4702 | _ACEOF | |
4703 | rm -f conftest.$ac_objext | |
c0d27fcc | 4704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4705 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4706 | ac_status=$? |
35996d22 AS |
4707 | grep -v '^ *+' conftest.er1 >conftest.err |
4708 | rm -f conftest.er1 | |
4709 | cat conftest.err >&5 | |
c0d27fcc | 4710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4711 | (exit $ac_status); } && |
4494a266 JD |
4712 | { ac_try='test -z "$ac_c_werror_flag" |
4713 | || test ! -s conftest.err' | |
35996d22 AS |
4714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4715 | (eval $ac_try) 2>&5 | |
4716 | ac_status=$? | |
4717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4718 | (exit $ac_status); }; } && | |
4719 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4721 | (eval $ac_try) 2>&5 |
4722 | ac_status=$? | |
c0d27fcc | 4723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4724 | (exit $ac_status); }; }; then |
4725 | break | |
ba4481b5 | 4726 | else |
503d2be0 | 4727 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4728 | sed 's/^/| /' conftest.$ac_ext >&5 |
4729 | ||
503d2be0 | 4730 | fi |
35996d22 | 4731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 4732 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4733 | /* confdefs.h. */ |
4734 | _ACEOF | |
4735 | cat confdefs.h >>conftest.$ac_ext | |
4736 | cat >>conftest.$ac_ext <<_ACEOF | |
4737 | /* end confdefs.h. */ | |
f4988be7 | 4738 | #define _LARGE_FILES 1 |
503d2be0 AS |
4739 | #include <sys/types.h> |
4740 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4741 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4742 | since some C++ compilers masquerading as C compilers | |
4743 | incorrectly reject 9223372036854775807. */ | |
4744 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4745 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4746 | && LARGE_OFF_T % 2147483647 == 1) | |
4747 | ? 1 : -1]; | |
4748 | int | |
4749 | main () | |
4750 | { | |
f4988be7 | 4751 | |
503d2be0 AS |
4752 | ; |
4753 | return 0; | |
4754 | } | |
4755 | _ACEOF | |
4756 | rm -f conftest.$ac_objext | |
c0d27fcc | 4757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 4758 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 4759 | ac_status=$? |
35996d22 AS |
4760 | grep -v '^ *+' conftest.er1 >conftest.err |
4761 | rm -f conftest.er1 | |
4762 | cat conftest.err >&5 | |
c0d27fcc | 4763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 4764 | (exit $ac_status); } && |
4494a266 JD |
4765 | { ac_try='test -z "$ac_c_werror_flag" |
4766 | || test ! -s conftest.err' | |
35996d22 AS |
4767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4768 | (eval $ac_try) 2>&5 | |
4769 | ac_status=$? | |
4770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4771 | (exit $ac_status); }; } && | |
4772 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 4773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
4774 | (eval $ac_try) 2>&5 |
4775 | ac_status=$? | |
c0d27fcc | 4776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
4777 | (exit $ac_status); }; }; then |
4778 | ac_cv_sys_large_files=1; break | |
4779 | else | |
4780 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4781 | sed 's/^/| /' conftest.$ac_ext >&5 |
4782 | ||
503d2be0 | 4783 | fi |
35996d22 | 4784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
4785 | break |
4786 | done | |
ba4481b5 | 4787 | fi |
c0d27fcc | 4788 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
503d2be0 AS |
4789 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
4790 | if test "$ac_cv_sys_large_files" != no; then | |
ba4481b5 | 4791 | |
c0d27fcc | 4792 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 4793 | #define _LARGE_FILES $ac_cv_sys_large_files |
c0d27fcc | 4794 | _ACEOF |
ba4481b5 | 4795 | |
503d2be0 AS |
4796 | fi |
4797 | rm -f conftest* | |
4798 | fi | |
ba4481b5 | 4799 | |
c0d27fcc | 4800 | |
2c9dccc9 PJ |
4801 | if test "${with_sound}" != "no"; then |
4802 | # Sound support for GNU/Linux and the free BSDs. | |
c0d27fcc MR |
4803 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4804 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4805 | if test "${ac_cv_header_stdc+set}" = set; then | |
4806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4807 | else | |
4808 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4809 | /* confdefs.h. */ |
4810 | _ACEOF | |
4811 | cat confdefs.h >>conftest.$ac_ext | |
4812 | cat >>conftest.$ac_ext <<_ACEOF | |
4813 | /* end confdefs.h. */ | |
c0d27fcc MR |
4814 | #include <stdlib.h> |
4815 | #include <stdarg.h> | |
4816 | #include <string.h> | |
4817 | #include <float.h> | |
98418dba | 4818 | |
19650fd6 AS |
4819 | int |
4820 | main () | |
4821 | { | |
4822 | ||
4823 | ; | |
4824 | return 0; | |
4825 | } | |
c0d27fcc | 4826 | _ACEOF |
19650fd6 AS |
4827 | rm -f conftest.$ac_objext |
4828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 4829 | (eval $ac_compile) 2>conftest.er1 |
cd958eb3 | 4830 | ac_status=$? |
35996d22 AS |
4831 | grep -v '^ *+' conftest.er1 >conftest.err |
4832 | rm -f conftest.er1 | |
4833 | cat conftest.err >&5 | |
cd958eb3 | 4834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19650fd6 | 4835 | (exit $ac_status); } && |
4494a266 JD |
4836 | { ac_try='test -z "$ac_c_werror_flag" |
4837 | || test ! -s conftest.err' | |
35996d22 AS |
4838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4839 | (eval $ac_try) 2>&5 | |
4840 | ac_status=$? | |
4841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4842 | (exit $ac_status); }; } && | |
4843 | { ac_try='test -s conftest.$ac_objext' | |
19650fd6 AS |
4844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4845 | (eval $ac_try) 2>&5 | |
4846 | ac_status=$? | |
4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4848 | (exit $ac_status); }; }; then | |
c0d27fcc MR |
4849 | ac_cv_header_stdc=yes |
4850 | else | |
4851 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4852 | sed 's/^/| /' conftest.$ac_ext >&5 |
4853 | ||
4854 | ac_cv_header_stdc=no | |
c0d27fcc | 4855 | fi |
35996d22 | 4856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
4857 | |
4858 | if test $ac_cv_header_stdc = yes; then | |
4859 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4860 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4861 | /* confdefs.h. */ |
4862 | _ACEOF | |
4863 | cat confdefs.h >>conftest.$ac_ext | |
4864 | cat >>conftest.$ac_ext <<_ACEOF | |
4865 | /* end confdefs.h. */ | |
c0d27fcc MR |
4866 | #include <string.h> |
4867 | ||
4868 | _ACEOF | |
4869 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 4870 | $EGREP "memchr" >/dev/null 2>&1; then |
c0d27fcc MR |
4871 | : |
4872 | else | |
4873 | ac_cv_header_stdc=no | |
4874 | fi | |
4875 | rm -f conftest* | |
4876 | ||
4877 | fi | |
4878 | ||
4879 | if test $ac_cv_header_stdc = yes; then | |
4880 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4881 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4882 | /* confdefs.h. */ |
4883 | _ACEOF | |
4884 | cat confdefs.h >>conftest.$ac_ext | |
4885 | cat >>conftest.$ac_ext <<_ACEOF | |
4886 | /* end confdefs.h. */ | |
c0d27fcc MR |
4887 | #include <stdlib.h> |
4888 | ||
4889 | _ACEOF | |
4890 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 4891 | $EGREP "free" >/dev/null 2>&1; then |
c0d27fcc MR |
4892 | : |
4893 | else | |
4894 | ac_cv_header_stdc=no | |
4895 | fi | |
4896 | rm -f conftest* | |
4897 | ||
4898 | fi | |
4899 | ||
4900 | if test $ac_cv_header_stdc = yes; then | |
4901 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4902 | if test "$cross_compiling" = yes; then | |
4903 | : | |
4904 | else | |
4905 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4906 | /* confdefs.h. */ |
4907 | _ACEOF | |
4908 | cat confdefs.h >>conftest.$ac_ext | |
4909 | cat >>conftest.$ac_ext <<_ACEOF | |
4910 | /* end confdefs.h. */ | |
c0d27fcc MR |
4911 | #include <ctype.h> |
4912 | #if ((' ' & 0x0FF) == 0x020) | |
4913 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4914 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4915 | #else | |
19650fd6 | 4916 | # define ISLOWER(c) \ |
35996d22 AS |
4917 | (('a' <= (c) && (c) <= 'i') \ |
4918 | || ('j' <= (c) && (c) <= 'r') \ | |
4919 | || ('s' <= (c) && (c) <= 'z')) | |
c0d27fcc MR |
4920 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4921 | #endif | |
4922 | ||
4923 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4924 | int | |
4925 | main () | |
4926 | { | |
4927 | int i; | |
4928 | for (i = 0; i < 256; i++) | |
4929 | if (XOR (islower (i), ISLOWER (i)) | |
35996d22 | 4930 | || toupper (i) != TOUPPER (i)) |
c0d27fcc MR |
4931 | exit(2); |
4932 | exit (0); | |
4933 | } | |
4934 | _ACEOF | |
4935 | rm -f conftest$ac_exeext | |
4936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4937 | (eval $ac_link) 2>&5 | |
4938 | ac_status=$? | |
4939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4940 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4942 | (eval $ac_try) 2>&5 | |
4943 | ac_status=$? | |
4944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4945 | (exit $ac_status); }; }; then | |
4946 | : | |
4947 | else | |
4948 | echo "$as_me: program exited with status $ac_status" >&5 | |
4949 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4950 | sed 's/^/| /' conftest.$ac_ext >&5 |
4951 | ||
c0d27fcc MR |
4952 | ( exit $ac_status ) |
4953 | ac_cv_header_stdc=no | |
4954 | fi | |
35996d22 | 4955 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
4956 | fi |
4957 | fi | |
4958 | fi | |
4959 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4960 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4961 | if test $ac_cv_header_stdc = yes; then | |
4962 | ||
4963 | cat >>confdefs.h <<\_ACEOF | |
4964 | #define STDC_HEADERS 1 | |
4965 | _ACEOF | |
4966 | ||
4967 | fi | |
4968 | ||
4969 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4970 | ||
4971 | ||
4972 | ||
4973 | ||
4974 | ||
4975 | ||
4976 | ||
4977 | ||
4978 | ||
4979 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
35996d22 | 4980 | inttypes.h stdint.h unistd.h |
98418dba CW |
4981 | do |
4982 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc | 4983 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
98418dba CW |
4984 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4985 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 4986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 4987 | else |
925c2f3f | 4988 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
4989 | /* confdefs.h. */ |
4990 | _ACEOF | |
4991 | cat confdefs.h >>conftest.$ac_ext | |
4992 | cat >>conftest.$ac_ext <<_ACEOF | |
4993 | /* end confdefs.h. */ | |
c0d27fcc MR |
4994 | $ac_includes_default |
4995 | ||
4996 | #include <$ac_header> | |
4997 | _ACEOF | |
4998 | rm -f conftest.$ac_objext | |
4999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5000 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 5001 | ac_status=$? |
35996d22 AS |
5002 | grep -v '^ *+' conftest.er1 >conftest.err |
5003 | rm -f conftest.er1 | |
5004 | cat conftest.err >&5 | |
c0d27fcc MR |
5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5006 | (exit $ac_status); } && | |
4494a266 JD |
5007 | { ac_try='test -z "$ac_c_werror_flag" |
5008 | || test ! -s conftest.err' | |
35996d22 AS |
5009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5010 | (eval $ac_try) 2>&5 | |
5011 | ac_status=$? | |
5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5013 | (exit $ac_status); }; } && | |
5014 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
5015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5016 | (eval $ac_try) 2>&5 | |
5017 | ac_status=$? | |
5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5019 | (exit $ac_status); }; }; then | |
5020 | eval "$as_ac_Header=yes" | |
5021 | else | |
5022 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5023 | sed 's/^/| /' conftest.$ac_ext >&5 |
5024 | ||
c0d27fcc MR |
5025 | eval "$as_ac_Header=no" |
5026 | fi | |
35996d22 | 5027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
5028 | fi |
5029 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5030 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5031 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5032 | cat >>confdefs.h <<_ACEOF | |
5033 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5034 | _ACEOF | |
5035 | ||
5036 | fi | |
5037 | ||
5038 | done | |
5039 | ||
5040 | ||
5041 | ||
5042 | ||
5043 | ||
5044 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
5045 | do | |
5046 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5047 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5048 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5049 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5050 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5052 | fi | |
5053 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5054 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5055 | else | |
5056 | # Is the header compilable? | |
5057 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5058 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5059 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5060 | /* confdefs.h. */ |
5061 | _ACEOF | |
5062 | cat confdefs.h >>conftest.$ac_ext | |
5063 | cat >>conftest.$ac_ext <<_ACEOF | |
5064 | /* end confdefs.h. */ | |
c0d27fcc | 5065 | $ac_includes_default |
98418dba | 5066 | #include <$ac_header> |
503d2be0 | 5067 | _ACEOF |
c0d27fcc MR |
5068 | rm -f conftest.$ac_objext |
5069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5070 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 5071 | ac_status=$? |
35996d22 AS |
5072 | grep -v '^ *+' conftest.er1 >conftest.err |
5073 | rm -f conftest.er1 | |
5074 | cat conftest.err >&5 | |
c0d27fcc MR |
5075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5076 | (exit $ac_status); } && | |
4494a266 JD |
5077 | { ac_try='test -z "$ac_c_werror_flag" |
5078 | || test ! -s conftest.err' | |
35996d22 AS |
5079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5080 | (eval $ac_try) 2>&5 | |
5081 | ac_status=$? | |
5082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5083 | (exit $ac_status); }; } && | |
5084 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
5085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5086 | (eval $ac_try) 2>&5 | |
5087 | ac_status=$? | |
5088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5089 | (exit $ac_status); }; }; then | |
5090 | ac_header_compiler=yes | |
5091 | else | |
5092 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5093 | sed 's/^/| /' conftest.$ac_ext >&5 |
5094 | ||
c0d27fcc MR |
5095 | ac_header_compiler=no |
5096 | fi | |
35996d22 | 5097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
5098 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5099 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5100 | ||
5101 | # Is the header present? | |
5102 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5103 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5104 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5105 | /* confdefs.h. */ |
5106 | _ACEOF | |
5107 | cat confdefs.h >>conftest.$ac_ext | |
5108 | cat >>conftest.$ac_ext <<_ACEOF | |
5109 | /* end confdefs.h. */ | |
c0d27fcc MR |
5110 | #include <$ac_header> |
5111 | _ACEOF | |
5112 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
98418dba | 5113 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 5114 | ac_status=$? |
6bae0ccf | 5115 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
5116 | rm -f conftest.er1 |
5117 | cat conftest.err >&5 | |
c0d27fcc | 5118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
5119 | (exit $ac_status); } >/dev/null; then |
5120 | if test -s conftest.err; then | |
5121 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 5122 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
5123 | else |
5124 | ac_cpp_err= | |
5125 | fi | |
5126 | else | |
5127 | ac_cpp_err=yes | |
5128 | fi | |
5129 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 5130 | ac_header_preproc=yes |
f4988be7 | 5131 | else |
503d2be0 | 5132 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5133 | sed 's/^/| /' conftest.$ac_ext >&5 |
5134 | ||
c0d27fcc | 5135 | ac_header_preproc=no |
f4988be7 | 5136 | fi |
98418dba | 5137 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
5138 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5139 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5140 | ||
5141 | # So? What about this header? | |
35996d22 AS |
5142 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5143 | yes:no: ) | |
c0d27fcc MR |
5144 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5145 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
5146 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5147 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5148 | ac_header_preproc=yes | |
19650fd6 | 5149 | ;; |
35996d22 | 5150 | no:yes:* ) |
c0d27fcc MR |
5151 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5152 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
5153 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5154 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5155 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5156 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5157 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5158 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 5159 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 5160 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
5161 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5162 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
5163 | ( |
5164 | cat <<\_ASBOX | |
35996d22 AS |
5165 | ## ------------------------------------------ ## |
5166 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5167 | ## ------------------------------------------ ## | |
19650fd6 AS |
5168 | _ASBOX |
5169 | ) | | |
5170 | sed "s/^/$as_me: WARNING: /" >&2 | |
5171 | ;; | |
c0d27fcc MR |
5172 | esac |
5173 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5174 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5175 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5177 | else | |
35996d22 | 5178 | eval "$as_ac_Header=\$ac_header_preproc" |
f4988be7 | 5179 | fi |
c0d27fcc | 5180 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 5181 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
5182 | |
5183 | fi | |
98418dba | 5184 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 5185 | cat >>confdefs.h <<_ACEOF |
98418dba | 5186 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 5187 | _ACEOF |
f4988be7 GM |
5188 | |
5189 | fi | |
c0d27fcc | 5190 | |
98418dba CW |
5191 | done |
5192 | ||
5193 | # Emulation library used on NetBSD. | |
c0d27fcc | 5194 | echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
98418dba CW |
5195 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
5196 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | |
503d2be0 | 5197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 5198 | else |
98418dba CW |
5199 | ac_check_lib_save_LIBS=$LIBS |
5200 | LIBS="-lossaudio $LIBS" | |
5201 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5202 | /* confdefs.h. */ |
5203 | _ACEOF | |
5204 | cat confdefs.h >>conftest.$ac_ext | |
5205 | cat >>conftest.$ac_ext <<_ACEOF | |
5206 | /* end confdefs.h. */ | |
98418dba CW |
5207 | |
5208 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5209 | #ifdef __cplusplus | |
5210 | extern "C" | |
f4988be7 | 5211 | #endif |
98418dba CW |
5212 | /* We use char because int might match the return type of a gcc2 |
5213 | builtin and then its argument prototype would still apply. */ | |
5214 | char _oss_ioctl (); | |
503d2be0 AS |
5215 | int |
5216 | main () | |
5217 | { | |
98418dba | 5218 | _oss_ioctl (); |
503d2be0 AS |
5219 | ; |
5220 | return 0; | |
5221 | } | |
5222 | _ACEOF | |
98418dba | 5223 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 5224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 5225 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 5226 | ac_status=$? |
35996d22 AS |
5227 | grep -v '^ *+' conftest.er1 >conftest.err |
5228 | rm -f conftest.er1 | |
5229 | cat conftest.err >&5 | |
c0d27fcc | 5230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5231 | (exit $ac_status); } && |
4494a266 JD |
5232 | { ac_try='test -z "$ac_c_werror_flag" |
5233 | || test ! -s conftest.err' | |
35996d22 AS |
5234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5235 | (eval $ac_try) 2>&5 | |
5236 | ac_status=$? | |
5237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5238 | (exit $ac_status); }; } && | |
5239 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 5240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5241 | (eval $ac_try) 2>&5 |
5242 | ac_status=$? | |
c0d27fcc | 5243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5244 | (exit $ac_status); }; }; then |
98418dba | 5245 | ac_cv_lib_ossaudio__oss_ioctl=yes |
f4988be7 | 5246 | else |
503d2be0 | 5247 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5248 | sed 's/^/| /' conftest.$ac_ext >&5 |
5249 | ||
98418dba | 5250 | ac_cv_lib_ossaudio__oss_ioctl=no |
f4988be7 | 5251 | fi |
35996d22 AS |
5252 | rm -f conftest.err conftest.$ac_objext \ |
5253 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 5254 | LIBS=$ac_check_lib_save_LIBS |
f4988be7 | 5255 | fi |
c0d27fcc | 5256 | echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
98418dba CW |
5257 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
5258 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | |
5259 | LIBSOUND=-lossaudio | |
5260 | else | |
5261 | LIBSOUND= | |
5262 | fi | |
5263 | ||
c0d27fcc | 5264 | |
f4988be7 | 5265 | fi |
c0d27fcc MR |
5266 | |
5267 | ||
5268 | ||
5269 | ||
5270 | ||
5271 | ||
5272 | ||
5273 | ||
5274 | ||
5275 | ||
5276 | ||
5277 | ||
5278 | ||
5279 | ||
5280 | ||
5281 | ||
5282 | ||
5283 | ||
22044edf DL |
5284 | |
5285 | ||
973a76b1 | 5286 | |
cffcede7 | 5287 | |
c0d27fcc | 5288 | |
f4988be7 | 5289 | |
98418dba CW |
5290 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
5291 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | |
25ca0bca | 5292 | termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
cffcede7 | 5293 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h |
98418dba CW |
5294 | do |
5295 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
5296 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5297 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
5298 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5299 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 5300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
5301 | fi |
5302 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5303 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
f4988be7 | 5304 | else |
c0d27fcc MR |
5305 | # Is the header compilable? |
5306 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5307 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5308 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5309 | /* confdefs.h. */ |
5310 | _ACEOF | |
5311 | cat confdefs.h >>conftest.$ac_ext | |
5312 | cat >>conftest.$ac_ext <<_ACEOF | |
5313 | /* end confdefs.h. */ | |
c0d27fcc MR |
5314 | $ac_includes_default |
5315 | #include <$ac_header> | |
5316 | _ACEOF | |
5317 | rm -f conftest.$ac_objext | |
5318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5319 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 5320 | ac_status=$? |
35996d22 AS |
5321 | grep -v '^ *+' conftest.er1 >conftest.err |
5322 | rm -f conftest.er1 | |
5323 | cat conftest.err >&5 | |
c0d27fcc MR |
5324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5325 | (exit $ac_status); } && | |
4494a266 JD |
5326 | { ac_try='test -z "$ac_c_werror_flag" |
5327 | || test ! -s conftest.err' | |
35996d22 AS |
5328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5329 | (eval $ac_try) 2>&5 | |
5330 | ac_status=$? | |
5331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5332 | (exit $ac_status); }; } && | |
5333 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
5334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5335 | (eval $ac_try) 2>&5 | |
5336 | ac_status=$? | |
5337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5338 | (exit $ac_status); }; }; then | |
5339 | ac_header_compiler=yes | |
5340 | else | |
5341 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5342 | sed 's/^/| /' conftest.$ac_ext >&5 |
5343 | ||
c0d27fcc MR |
5344 | ac_header_compiler=no |
5345 | fi | |
35996d22 | 5346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
5347 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5348 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5349 | ||
5350 | # Is the header present? | |
5351 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5352 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5353 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5354 | /* confdefs.h. */ |
5355 | _ACEOF | |
5356 | cat confdefs.h >>conftest.$ac_ext | |
5357 | cat >>conftest.$ac_ext <<_ACEOF | |
5358 | /* end confdefs.h. */ | |
98418dba | 5359 | #include <$ac_header> |
503d2be0 | 5360 | _ACEOF |
c0d27fcc | 5361 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 5362 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 5363 | ac_status=$? |
6bae0ccf | 5364 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
5365 | rm -f conftest.er1 |
5366 | cat conftest.err >&5 | |
c0d27fcc | 5367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
5368 | (exit $ac_status); } >/dev/null; then |
5369 | if test -s conftest.err; then | |
5370 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 5371 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
5372 | else |
5373 | ac_cpp_err= | |
5374 | fi | |
5375 | else | |
5376 | ac_cpp_err=yes | |
5377 | fi | |
5378 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 5379 | ac_header_preproc=yes |
34ec9ebe | 5380 | else |
503d2be0 | 5381 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5382 | sed 's/^/| /' conftest.$ac_ext >&5 |
5383 | ||
c0d27fcc | 5384 | ac_header_preproc=no |
34ec9ebe | 5385 | fi |
98418dba | 5386 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
5387 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5388 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5389 | ||
5390 | # So? What about this header? | |
35996d22 AS |
5391 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5392 | yes:no: ) | |
c0d27fcc MR |
5393 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5394 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
5395 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5396 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5397 | ac_header_preproc=yes | |
19650fd6 | 5398 | ;; |
35996d22 | 5399 | no:yes:* ) |
c0d27fcc MR |
5400 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5401 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
5402 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5403 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5404 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5405 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5406 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5407 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 5408 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 5409 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
5410 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5411 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
5412 | ( |
5413 | cat <<\_ASBOX | |
35996d22 AS |
5414 | ## ------------------------------------------ ## |
5415 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5416 | ## ------------------------------------------ ## | |
19650fd6 AS |
5417 | _ASBOX |
5418 | ) | | |
5419 | sed "s/^/$as_me: WARNING: /" >&2 | |
5420 | ;; | |
c0d27fcc MR |
5421 | esac |
5422 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5423 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5424 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5426 | else | |
35996d22 | 5427 | eval "$as_ac_Header=\$ac_header_preproc" |
34ec9ebe | 5428 | fi |
c0d27fcc | 5429 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 5430 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
5431 | |
5432 | fi | |
98418dba | 5433 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 5434 | cat >>confdefs.h <<_ACEOF |
98418dba | 5435 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 5436 | _ACEOF |
34ec9ebe | 5437 | |
98418dba | 5438 | fi |
c0d27fcc | 5439 | |
98418dba CW |
5440 | done |
5441 | ||
22044edf | 5442 | |
f17e308a JD |
5443 | echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5 |
5444 | echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6 | |
5445 | cat >conftest.$ac_ext <<_ACEOF | |
5446 | /* confdefs.h. */ | |
5447 | _ACEOF | |
5448 | cat confdefs.h >>conftest.$ac_ext | |
5449 | cat >>conftest.$ac_ext <<_ACEOF | |
5450 | /* end confdefs.h. */ | |
5451 | #include <sys/personality.h> | |
5452 | int | |
5453 | main () | |
5454 | { | |
5455 | personality (PER_LINUX32) | |
5456 | ; | |
5457 | return 0; | |
5458 | } | |
5459 | _ACEOF | |
5460 | rm -f conftest.$ac_objext | |
5461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5462 | (eval $ac_compile) 2>conftest.er1 | |
5463 | ac_status=$? | |
5464 | grep -v '^ *+' conftest.er1 >conftest.err | |
5465 | rm -f conftest.er1 | |
5466 | cat conftest.err >&5 | |
5467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5468 | (exit $ac_status); } && | |
5469 | { ac_try='test -z "$ac_c_werror_flag" | |
5470 | || test ! -s conftest.err' | |
5471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5472 | (eval $ac_try) 2>&5 | |
5473 | ac_status=$? | |
5474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5475 | (exit $ac_status); }; } && | |
5476 | { ac_try='test -s conftest.$ac_objext' | |
5477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5478 | (eval $ac_try) 2>&5 | |
5479 | ac_status=$? | |
5480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5481 | (exit $ac_status); }; }; then | |
5482 | emacs_cv_personality_linux32=yes | |
5483 | else | |
5484 | echo "$as_me: failed program was:" >&5 | |
5485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5486 | ||
5487 | emacs_cv_personality_linux32=no | |
5488 | fi | |
5489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5490 | echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5 | |
5491 | echo "${ECHO_T}$emacs_cv_personality_linux32" >&6 | |
5492 | ||
5493 | if test $emacs_cv_personality_linux32 = yes; then | |
5494 | ||
5495 | cat >>confdefs.h <<\_ACEOF | |
5496 | #define HAVE_PERSONALITY_LINUX32 1 | |
5497 | _ACEOF | |
5498 | ||
5499 | fi | |
5500 | ||
5501 | ||
22044edf DL |
5502 | for ac_header in term.h |
5503 | do | |
5504 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
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 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5511 | /* confdefs.h. */ |
5512 | _ACEOF | |
5513 | cat confdefs.h >>conftest.$ac_ext | |
5514 | cat >>conftest.$ac_ext <<_ACEOF | |
5515 | /* end confdefs.h. */ | |
22044edf DL |
5516 | #include <$ac_header> |
5517 | _ACEOF | |
5518 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5519 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5520 | ac_status=$? | |
5521 | grep -v '^ *+' conftest.er1 >conftest.err | |
5522 | rm -f conftest.er1 | |
5523 | cat conftest.err >&5 | |
5524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5525 | (exit $ac_status); } >/dev/null; then | |
5526 | if test -s conftest.err; then | |
5527 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 5528 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
22044edf DL |
5529 | else |
5530 | ac_cpp_err= | |
5531 | fi | |
5532 | else | |
5533 | ac_cpp_err=yes | |
5534 | fi | |
5535 | if test -z "$ac_cpp_err"; then | |
5536 | eval "$as_ac_Header=yes" | |
5537 | else | |
5538 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5539 | sed 's/^/| /' conftest.$ac_ext >&5 |
5540 | ||
22044edf DL |
5541 | eval "$as_ac_Header=no" |
5542 | fi | |
5543 | rm -f conftest.err conftest.$ac_ext | |
5544 | fi | |
5545 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5546 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5547 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5548 | cat >>confdefs.h <<_ACEOF | |
5549 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5550 | _ACEOF | |
5551 | ||
5552 | fi | |
5553 | ||
5554 | done | |
5555 | ||
c0d27fcc | 5556 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
98418dba CW |
5557 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5558 | if test "${ac_cv_header_stdc+set}" = set; then | |
503d2be0 | 5559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5560 | else |
503d2be0 | 5561 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5562 | /* confdefs.h. */ |
5563 | _ACEOF | |
5564 | cat confdefs.h >>conftest.$ac_ext | |
5565 | cat >>conftest.$ac_ext <<_ACEOF | |
5566 | /* end confdefs.h. */ | |
98418dba CW |
5567 | #include <stdlib.h> |
5568 | #include <stdarg.h> | |
5569 | #include <string.h> | |
5570 | #include <float.h> | |
5571 | ||
19650fd6 AS |
5572 | int |
5573 | main () | |
5574 | { | |
5575 | ||
5576 | ; | |
5577 | return 0; | |
5578 | } | |
98418dba | 5579 | _ACEOF |
19650fd6 AS |
5580 | rm -f conftest.$ac_objext |
5581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5582 | (eval $ac_compile) 2>conftest.er1 |
cd958eb3 | 5583 | ac_status=$? |
35996d22 AS |
5584 | grep -v '^ *+' conftest.er1 >conftest.err |
5585 | rm -f conftest.er1 | |
5586 | cat conftest.err >&5 | |
cd958eb3 | 5587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19650fd6 | 5588 | (exit $ac_status); } && |
4494a266 JD |
5589 | { ac_try='test -z "$ac_c_werror_flag" |
5590 | || test ! -s conftest.err' | |
35996d22 AS |
5591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5592 | (eval $ac_try) 2>&5 | |
5593 | ac_status=$? | |
5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5595 | (exit $ac_status); }; } && | |
5596 | { ac_try='test -s conftest.$ac_objext' | |
19650fd6 AS |
5597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5598 | (eval $ac_try) 2>&5 | |
5599 | ac_status=$? | |
5600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5601 | (exit $ac_status); }; }; then | |
98418dba | 5602 | ac_cv_header_stdc=yes |
ba4481b5 | 5603 | else |
503d2be0 | 5604 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5605 | sed 's/^/| /' conftest.$ac_ext >&5 |
5606 | ||
5607 | ac_cv_header_stdc=no | |
ba4481b5 | 5608 | fi |
35996d22 | 5609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba CW |
5610 | |
5611 | if test $ac_cv_header_stdc = yes; then | |
5612 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5613 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5614 | /* confdefs.h. */ |
5615 | _ACEOF | |
5616 | cat confdefs.h >>conftest.$ac_ext | |
5617 | cat >>conftest.$ac_ext <<_ACEOF | |
5618 | /* end confdefs.h. */ | |
98418dba CW |
5619 | #include <string.h> |
5620 | ||
5621 | _ACEOF | |
5622 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 5623 | $EGREP "memchr" >/dev/null 2>&1; then |
98418dba CW |
5624 | : |
5625 | else | |
5626 | ac_cv_header_stdc=no | |
ba4481b5 | 5627 | fi |
98418dba | 5628 | rm -f conftest* |
ba4481b5 DL |
5629 | |
5630 | fi | |
5631 | ||
98418dba CW |
5632 | if test $ac_cv_header_stdc = yes; then |
5633 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5634 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5635 | /* confdefs.h. */ |
5636 | _ACEOF | |
5637 | cat confdefs.h >>conftest.$ac_ext | |
5638 | cat >>conftest.$ac_ext <<_ACEOF | |
5639 | /* end confdefs.h. */ | |
98418dba CW |
5640 | #include <stdlib.h> |
5641 | ||
5642 | _ACEOF | |
5643 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 5644 | $EGREP "free" >/dev/null 2>&1; then |
98418dba CW |
5645 | : |
5646 | else | |
5647 | ac_cv_header_stdc=no | |
5648 | fi | |
5649 | rm -f conftest* | |
5650 | ||
5651 | fi | |
5652 | ||
5653 | if test $ac_cv_header_stdc = yes; then | |
5654 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5655 | if test "$cross_compiling" = yes; then | |
5656 | : | |
d42122a3 | 5657 | else |
503d2be0 | 5658 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5659 | /* confdefs.h. */ |
5660 | _ACEOF | |
5661 | cat confdefs.h >>conftest.$ac_ext | |
5662 | cat >>conftest.$ac_ext <<_ACEOF | |
5663 | /* end confdefs.h. */ | |
98418dba CW |
5664 | #include <ctype.h> |
5665 | #if ((' ' & 0x0FF) == 0x020) | |
5666 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5667 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5668 | #else | |
19650fd6 | 5669 | # define ISLOWER(c) \ |
35996d22 AS |
5670 | (('a' <= (c) && (c) <= 'i') \ |
5671 | || ('j' <= (c) && (c) <= 'r') \ | |
5672 | || ('s' <= (c) && (c) <= 'z')) | |
98418dba CW |
5673 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
5674 | #endif | |
5675 | ||
5676 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
503d2be0 AS |
5677 | int |
5678 | main () | |
5679 | { | |
98418dba CW |
5680 | int i; |
5681 | for (i = 0; i < 256; i++) | |
5682 | if (XOR (islower (i), ISLOWER (i)) | |
35996d22 | 5683 | || toupper (i) != TOUPPER (i)) |
98418dba CW |
5684 | exit(2); |
5685 | exit (0); | |
503d2be0 AS |
5686 | } |
5687 | _ACEOF | |
98418dba | 5688 | rm -f conftest$ac_exeext |
c0d27fcc | 5689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba | 5690 | (eval $ac_link) 2>&5 |
503d2be0 | 5691 | ac_status=$? |
c0d27fcc | 5692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 5693 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 5694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5695 | (eval $ac_try) 2>&5 |
5696 | ac_status=$? | |
c0d27fcc | 5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5698 | (exit $ac_status); }; }; then |
98418dba | 5699 | : |
d42122a3 | 5700 | else |
98418dba CW |
5701 | echo "$as_me: program exited with status $ac_status" >&5 |
5702 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5703 | sed 's/^/| /' conftest.$ac_ext >&5 |
5704 | ||
c0d27fcc | 5705 | ( exit $ac_status ) |
98418dba | 5706 | ac_cv_header_stdc=no |
d42122a3 | 5707 | fi |
35996d22 | 5708 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d42122a3 | 5709 | fi |
98418dba CW |
5710 | fi |
5711 | fi | |
c0d27fcc | 5712 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
98418dba CW |
5713 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
5714 | if test $ac_cv_header_stdc = yes; then | |
5715 | ||
c0d27fcc | 5716 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5717 | #define STDC_HEADERS 1 |
c0d27fcc | 5718 | _ACEOF |
d42122a3 DL |
5719 | |
5720 | fi | |
5721 | ||
c0d27fcc | 5722 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
98418dba CW |
5723 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
5724 | if test "${ac_cv_header_time+set}" = set; then | |
503d2be0 | 5725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5726 | else |
503d2be0 | 5727 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5728 | /* confdefs.h. */ |
5729 | _ACEOF | |
5730 | cat confdefs.h >>conftest.$ac_ext | |
5731 | cat >>conftest.$ac_ext <<_ACEOF | |
5732 | /* end confdefs.h. */ | |
ba4481b5 | 5733 | #include <sys/types.h> |
98418dba | 5734 | #include <sys/time.h> |
ba4481b5 | 5735 | #include <time.h> |
503d2be0 AS |
5736 | |
5737 | int | |
5738 | main () | |
5739 | { | |
98418dba CW |
5740 | if ((struct tm *) 0) |
5741 | return 0; | |
503d2be0 AS |
5742 | ; |
5743 | return 0; | |
5744 | } | |
5745 | _ACEOF | |
5746 | rm -f conftest.$ac_objext | |
c0d27fcc | 5747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 5748 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 5749 | ac_status=$? |
35996d22 AS |
5750 | grep -v '^ *+' conftest.er1 >conftest.err |
5751 | rm -f conftest.er1 | |
5752 | cat conftest.err >&5 | |
c0d27fcc | 5753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5754 | (exit $ac_status); } && |
4494a266 JD |
5755 | { ac_try='test -z "$ac_c_werror_flag" |
5756 | || test ! -s conftest.err' | |
35996d22 AS |
5757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5758 | (eval $ac_try) 2>&5 | |
5759 | ac_status=$? | |
5760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5761 | (exit $ac_status); }; } && | |
5762 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5764 | (eval $ac_try) 2>&5 |
5765 | ac_status=$? | |
c0d27fcc | 5766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5767 | (exit $ac_status); }; }; then |
98418dba | 5768 | ac_cv_header_time=yes |
ba4481b5 | 5769 | else |
503d2be0 | 5770 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5771 | sed 's/^/| /' conftest.$ac_ext >&5 |
5772 | ||
98418dba | 5773 | ac_cv_header_time=no |
ba4481b5 | 5774 | fi |
35996d22 | 5775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 5776 | fi |
c0d27fcc | 5777 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
98418dba CW |
5778 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
5779 | if test $ac_cv_header_time = yes; then | |
503d2be0 | 5780 | |
c0d27fcc | 5781 | cat >>confdefs.h <<\_ACEOF |
98418dba | 5782 | #define TIME_WITH_SYS_TIME 1 |
c0d27fcc | 5783 | _ACEOF |
ba4481b5 DL |
5784 | |
5785 | fi | |
5786 | ||
cd958eb3 MB |
5787 | echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 |
5788 | echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6 | |
5789 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then | |
503d2be0 | 5790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5791 | else |
503d2be0 | 5792 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5793 | /* confdefs.h. */ |
5794 | _ACEOF | |
5795 | cat confdefs.h >>conftest.$ac_ext | |
5796 | cat >>conftest.$ac_ext <<_ACEOF | |
5797 | /* end confdefs.h. */ | |
cd958eb3 MB |
5798 | $ac_includes_default |
5799 | int | |
5800 | main () | |
5801 | { | |
5802 | #ifndef sys_siglist | |
5803 | char *p = (char *) sys_siglist; | |
98418dba | 5804 | #endif |
503d2be0 | 5805 | |
cd958eb3 MB |
5806 | ; |
5807 | return 0; | |
5808 | } | |
5809 | _ACEOF | |
5810 | rm -f conftest.$ac_objext | |
5811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 5812 | (eval $ac_compile) 2>conftest.er1 |
cd958eb3 | 5813 | ac_status=$? |
35996d22 AS |
5814 | grep -v '^ *+' conftest.er1 >conftest.err |
5815 | rm -f conftest.er1 | |
5816 | cat conftest.err >&5 | |
cd958eb3 MB |
5817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5818 | (exit $ac_status); } && | |
4494a266 JD |
5819 | { ac_try='test -z "$ac_c_werror_flag" |
5820 | || test ! -s conftest.err' | |
35996d22 AS |
5821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5822 | (eval $ac_try) 2>&5 | |
5823 | ac_status=$? | |
5824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5825 | (exit $ac_status); }; } && | |
5826 | { ac_try='test -s conftest.$ac_objext' | |
cd958eb3 MB |
5827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5828 | (eval $ac_try) 2>&5 | |
5829 | ac_status=$? | |
5830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5831 | (exit $ac_status); }; }; then | |
5832 | ac_cv_have_decl_sys_siglist=yes | |
5833 | else | |
5834 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5835 | sed 's/^/| /' conftest.$ac_ext >&5 |
5836 | ||
cd958eb3 MB |
5837 | ac_cv_have_decl_sys_siglist=no |
5838 | fi | |
35996d22 | 5839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cd958eb3 MB |
5840 | fi |
5841 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 | |
5842 | echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6 | |
5843 | if test $ac_cv_have_decl_sys_siglist = yes; then | |
5844 | ||
5845 | cat >>confdefs.h <<_ACEOF | |
5846 | #define HAVE_DECL_SYS_SIGLIST 1 | |
5847 | _ACEOF | |
5848 | ||
5849 | ||
5850 | else | |
5851 | cat >>confdefs.h <<_ACEOF | |
5852 | #define HAVE_DECL_SYS_SIGLIST 0 | |
5853 | _ACEOF | |
5854 | ||
5855 | ||
5856 | fi | |
5857 | ||
5858 | ||
5859 | if test $ac_cv_have_decl_sys_siglist != yes; then | |
5860 | # For Tru64, at least: | |
5861 | echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 | |
5862 | echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6 | |
5863 | if test "${ac_cv_have_decl___sys_siglist+set}" = set; then | |
5864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5865 | else | |
5866 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5867 | /* confdefs.h. */ |
5868 | _ACEOF | |
5869 | cat confdefs.h >>conftest.$ac_ext | |
5870 | cat >>conftest.$ac_ext <<_ACEOF | |
5871 | /* end confdefs.h. */ | |
cd958eb3 | 5872 | $ac_includes_default |
503d2be0 AS |
5873 | int |
5874 | main () | |
5875 | { | |
cd958eb3 MB |
5876 | #ifndef __sys_siglist |
5877 | char *p = (char *) __sys_siglist; | |
5878 | #endif | |
5879 | ||
503d2be0 AS |
5880 | ; |
5881 | return 0; | |
5882 | } | |
5883 | _ACEOF | |
5884 | rm -f conftest.$ac_objext | |
c0d27fcc | 5885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 5886 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 5887 | ac_status=$? |
35996d22 AS |
5888 | grep -v '^ *+' conftest.er1 >conftest.err |
5889 | rm -f conftest.er1 | |
5890 | cat conftest.err >&5 | |
c0d27fcc | 5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5892 | (exit $ac_status); } && |
4494a266 JD |
5893 | { ac_try='test -z "$ac_c_werror_flag" |
5894 | || test ! -s conftest.err' | |
35996d22 AS |
5895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5896 | (eval $ac_try) 2>&5 | |
5897 | ac_status=$? | |
5898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5899 | (exit $ac_status); }; } && | |
5900 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5902 | (eval $ac_try) 2>&5 |
5903 | ac_status=$? | |
c0d27fcc | 5904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5905 | (exit $ac_status); }; }; then |
cd958eb3 | 5906 | ac_cv_have_decl___sys_siglist=yes |
ba4481b5 | 5907 | else |
503d2be0 | 5908 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5909 | sed 's/^/| /' conftest.$ac_ext >&5 |
5910 | ||
cd958eb3 | 5911 | ac_cv_have_decl___sys_siglist=no |
ba4481b5 | 5912 | fi |
35996d22 | 5913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 5914 | fi |
cd958eb3 MB |
5915 | echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 |
5916 | echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6 | |
5917 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
503d2be0 | 5918 | |
cd958eb3 MB |
5919 | cat >>confdefs.h <<_ACEOF |
5920 | #define HAVE_DECL___SYS_SIGLIST 1 | |
5921 | _ACEOF | |
5922 | ||
5923 | ||
5924 | else | |
5925 | cat >>confdefs.h <<_ACEOF | |
5926 | #define HAVE_DECL___SYS_SIGLIST 0 | |
c0d27fcc | 5927 | _ACEOF |
503d2be0 | 5928 | |
cd958eb3 | 5929 | |
ba4481b5 DL |
5930 | fi |
5931 | ||
cd958eb3 MB |
5932 | |
5933 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
5934 | ||
5935 | cat >>confdefs.h <<\_ACEOF | |
5936 | #define sys_siglist __sys_siglist | |
5937 | _ACEOF | |
5938 | ||
5939 | fi | |
5940 | fi | |
c0d27fcc | 5941 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
98418dba CW |
5942 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
5943 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
503d2be0 | 5944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 5945 | else |
503d2be0 | 5946 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5947 | /* confdefs.h. */ |
5948 | _ACEOF | |
5949 | cat confdefs.h >>conftest.$ac_ext | |
5950 | cat >>conftest.$ac_ext <<_ACEOF | |
5951 | /* end confdefs.h. */ | |
98418dba CW |
5952 | #include <sys/types.h> |
5953 | #include <sys/wait.h> | |
5954 | #ifndef WEXITSTATUS | |
5955 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
5956 | #endif | |
5957 | #ifndef WIFEXITED | |
5958 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
ba4481b5 | 5959 | #endif |
503d2be0 AS |
5960 | |
5961 | int | |
5962 | main () | |
5963 | { | |
98418dba CW |
5964 | int s; |
5965 | wait (&s); | |
5966 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
503d2be0 AS |
5967 | ; |
5968 | return 0; | |
5969 | } | |
5970 | _ACEOF | |
98418dba | 5971 | rm -f conftest.$ac_objext |
c0d27fcc | 5972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 5973 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 5974 | ac_status=$? |
35996d22 AS |
5975 | grep -v '^ *+' conftest.er1 >conftest.err |
5976 | rm -f conftest.er1 | |
5977 | cat conftest.err >&5 | |
c0d27fcc | 5978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5979 | (exit $ac_status); } && |
4494a266 JD |
5980 | { ac_try='test -z "$ac_c_werror_flag" |
5981 | || test ! -s conftest.err' | |
35996d22 AS |
5982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5983 | (eval $ac_try) 2>&5 | |
5984 | ac_status=$? | |
5985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5986 | (exit $ac_status); }; } && | |
5987 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 5988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
5989 | (eval $ac_try) 2>&5 |
5990 | ac_status=$? | |
c0d27fcc | 5991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 5992 | (exit $ac_status); }; }; then |
98418dba | 5993 | ac_cv_header_sys_wait_h=yes |
ba4481b5 | 5994 | else |
503d2be0 | 5995 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5996 | sed 's/^/| /' conftest.$ac_ext >&5 |
5997 | ||
98418dba | 5998 | ac_cv_header_sys_wait_h=no |
ba4481b5 | 5999 | fi |
35996d22 | 6000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 6001 | fi |
c0d27fcc | 6002 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
98418dba CW |
6003 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
6004 | if test $ac_cv_header_sys_wait_h = yes; then | |
503d2be0 | 6005 | |
c0d27fcc | 6006 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6007 | #define HAVE_SYS_WAIT_H 1 |
c0d27fcc | 6008 | _ACEOF |
ba4481b5 | 6009 | |
ba4481b5 DL |
6010 | fi |
6011 | ||
c0d27fcc MR |
6012 | |
6013 | echo "$as_me:$LINENO: checking for struct utimbuf" >&5 | |
98418dba CW |
6014 | echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
6015 | if test "${emacs_cv_struct_utimbuf+set}" = set; then | |
503d2be0 | 6016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1113b624 | 6017 | else |
503d2be0 | 6018 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6019 | /* confdefs.h. */ |
6020 | _ACEOF | |
6021 | cat confdefs.h >>conftest.$ac_ext | |
6022 | cat >>conftest.$ac_ext <<_ACEOF | |
6023 | /* end confdefs.h. */ | |
98418dba CW |
6024 | #ifdef TIME_WITH_SYS_TIME |
6025 | #include <sys/time.h> | |
6026 | #include <time.h> | |
6027 | #else | |
6028 | #ifdef HAVE_SYS_TIME_H | |
6029 | #include <sys/time.h> | |
6030 | #else | |
1113b624 | 6031 | #include <time.h> |
98418dba CW |
6032 | #endif |
6033 | #endif | |
6034 | #ifdef HAVE_UTIME_H | |
6035 | #include <utime.h> | |
6036 | #endif | |
503d2be0 AS |
6037 | int |
6038 | main () | |
6039 | { | |
98418dba | 6040 | static struct utimbuf x; x.actime = x.modtime; |
503d2be0 AS |
6041 | ; |
6042 | return 0; | |
6043 | } | |
6044 | _ACEOF | |
98418dba | 6045 | rm -f conftest.$ac_objext |
c0d27fcc | 6046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6047 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6048 | ac_status=$? |
35996d22 AS |
6049 | grep -v '^ *+' conftest.er1 >conftest.err |
6050 | rm -f conftest.er1 | |
6051 | cat conftest.err >&5 | |
c0d27fcc | 6052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6053 | (exit $ac_status); } && |
4494a266 JD |
6054 | { ac_try='test -z "$ac_c_werror_flag" |
6055 | || test ! -s conftest.err' | |
35996d22 AS |
6056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6057 | (eval $ac_try) 2>&5 | |
6058 | ac_status=$? | |
6059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6060 | (exit $ac_status); }; } && | |
6061 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6063 | (eval $ac_try) 2>&5 |
6064 | ac_status=$? | |
c0d27fcc | 6065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6066 | (exit $ac_status); }; }; then |
98418dba | 6067 | emacs_cv_struct_utimbuf=yes |
1113b624 | 6068 | else |
503d2be0 | 6069 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6070 | sed 's/^/| /' conftest.$ac_ext >&5 |
6071 | ||
98418dba | 6072 | emacs_cv_struct_utimbuf=no |
1113b624 | 6073 | fi |
35996d22 | 6074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1113b624 | 6075 | fi |
c0d27fcc | 6076 | echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 |
98418dba CW |
6077 | echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
6078 | if test $emacs_cv_struct_utimbuf = yes; then | |
b936fae4 | 6079 | |
c0d27fcc | 6080 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6081 | #define HAVE_STRUCT_UTIMBUF 1 |
c0d27fcc | 6082 | _ACEOF |
1113b624 PE |
6083 | |
6084 | fi | |
ba4481b5 | 6085 | |
c0d27fcc | 6086 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
98418dba CW |
6087 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
6088 | if test "${ac_cv_type_signal+set}" = set; then | |
503d2be0 | 6089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 6090 | else |
98418dba | 6091 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6092 | /* confdefs.h. */ |
6093 | _ACEOF | |
6094 | cat confdefs.h >>conftest.$ac_ext | |
6095 | cat >>conftest.$ac_ext <<_ACEOF | |
6096 | /* end confdefs.h. */ | |
7397acc4 | 6097 | #include <sys/types.h> |
98418dba CW |
6098 | #include <signal.h> |
6099 | #ifdef signal | |
6100 | # undef signal | |
6101 | #endif | |
6102 | #ifdef __cplusplus | |
6103 | extern "C" void (*signal (int, void (*)(int)))(int); | |
6104 | #else | |
6105 | void (*signal ()) (); | |
6106 | #endif | |
6107 | ||
503d2be0 AS |
6108 | int |
6109 | main () | |
6110 | { | |
98418dba | 6111 | int i; |
503d2be0 AS |
6112 | ; |
6113 | return 0; | |
6114 | } | |
6115 | _ACEOF | |
98418dba | 6116 | rm -f conftest.$ac_objext |
c0d27fcc | 6117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6118 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6119 | ac_status=$? |
35996d22 AS |
6120 | grep -v '^ *+' conftest.er1 >conftest.err |
6121 | rm -f conftest.er1 | |
6122 | cat conftest.err >&5 | |
c0d27fcc | 6123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6124 | (exit $ac_status); } && |
4494a266 JD |
6125 | { ac_try='test -z "$ac_c_werror_flag" |
6126 | || test ! -s conftest.err' | |
35996d22 AS |
6127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6128 | (eval $ac_try) 2>&5 | |
6129 | ac_status=$? | |
6130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6131 | (exit $ac_status); }; } && | |
6132 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6134 | (eval $ac_try) 2>&5 |
6135 | ac_status=$? | |
c0d27fcc | 6136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6137 | (exit $ac_status); }; }; then |
98418dba | 6138 | ac_cv_type_signal=void |
503d2be0 AS |
6139 | else |
6140 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6141 | sed 's/^/| /' conftest.$ac_ext >&5 |
6142 | ||
98418dba | 6143 | ac_cv_type_signal=int |
503d2be0 | 6144 | fi |
35996d22 | 6145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 6146 | fi |
c0d27fcc | 6147 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
98418dba | 6148 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
7397acc4 | 6149 | |
c0d27fcc | 6150 | cat >>confdefs.h <<_ACEOF |
98418dba | 6151 | #define RETSIGTYPE $ac_cv_type_signal |
c0d27fcc MR |
6152 | _ACEOF |
6153 | ||
503d2be0 | 6154 | |
c0d27fcc MR |
6155 | |
6156 | echo "$as_me:$LINENO: checking for speed_t" >&5 | |
98418dba CW |
6157 | echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 |
6158 | if test "${emacs_cv_speed_t+set}" = set; then | |
6159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7397acc4 | 6160 | else |
98418dba | 6161 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6162 | /* confdefs.h. */ |
6163 | _ACEOF | |
6164 | cat confdefs.h >>conftest.$ac_ext | |
6165 | cat >>conftest.$ac_ext <<_ACEOF | |
6166 | /* end confdefs.h. */ | |
98418dba | 6167 | #include <termios.h> |
98418dba CW |
6168 | int |
6169 | main () | |
6170 | { | |
6171 | speed_t x = 1; | |
6172 | ; | |
6173 | return 0; | |
6174 | } | |
6175 | _ACEOF | |
6176 | rm -f conftest.$ac_objext | |
c0d27fcc | 6177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6178 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 6179 | ac_status=$? |
35996d22 AS |
6180 | grep -v '^ *+' conftest.er1 >conftest.err |
6181 | rm -f conftest.er1 | |
6182 | cat conftest.err >&5 | |
c0d27fcc | 6183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6184 | (exit $ac_status); } && |
4494a266 JD |
6185 | { ac_try='test -z "$ac_c_werror_flag" |
6186 | || test ! -s conftest.err' | |
35996d22 AS |
6187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6188 | (eval $ac_try) 2>&5 | |
6189 | ac_status=$? | |
6190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6191 | (exit $ac_status); }; } && | |
6192 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6194 | (eval $ac_try) 2>&5 |
6195 | ac_status=$? | |
c0d27fcc | 6196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6197 | (exit $ac_status); }; }; then |
6198 | emacs_cv_speed_t=yes | |
6199 | else | |
6200 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6201 | sed 's/^/| /' conftest.$ac_ext >&5 |
6202 | ||
98418dba CW |
6203 | emacs_cv_speed_t=no |
6204 | fi | |
35996d22 | 6205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 6206 | fi |
c0d27fcc | 6207 | echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 |
98418dba CW |
6208 | echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
6209 | if test $emacs_cv_speed_t = yes; then | |
b936fae4 | 6210 | |
c0d27fcc | 6211 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6212 | #define HAVE_SPEED_T 1 |
c0d27fcc | 6213 | _ACEOF |
98418dba | 6214 | |
7397acc4 DL |
6215 | fi |
6216 | ||
c0d27fcc | 6217 | echo "$as_me:$LINENO: checking for struct timeval" >&5 |
98418dba CW |
6218 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 |
6219 | if test "${emacs_cv_struct_timeval+set}" = set; then | |
503d2be0 | 6220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 6221 | else |
503d2be0 | 6222 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6223 | /* confdefs.h. */ |
6224 | _ACEOF | |
6225 | cat confdefs.h >>conftest.$ac_ext | |
6226 | cat >>conftest.$ac_ext <<_ACEOF | |
6227 | /* end confdefs.h. */ | |
98418dba CW |
6228 | #ifdef TIME_WITH_SYS_TIME |
6229 | #include <sys/time.h> | |
6230 | #include <time.h> | |
6231 | #else | |
6232 | #ifdef HAVE_SYS_TIME_H | |
6233 | #include <sys/time.h> | |
6234 | #else | |
6235 | #include <time.h> | |
6236 | #endif | |
6237 | #endif | |
503d2be0 AS |
6238 | int |
6239 | main () | |
6240 | { | |
98418dba | 6241 | static struct timeval x; x.tv_sec = x.tv_usec; |
503d2be0 AS |
6242 | ; |
6243 | return 0; | |
6244 | } | |
6245 | _ACEOF | |
6246 | rm -f conftest.$ac_objext | |
c0d27fcc | 6247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6248 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6249 | ac_status=$? |
35996d22 AS |
6250 | grep -v '^ *+' conftest.er1 >conftest.err |
6251 | rm -f conftest.er1 | |
6252 | cat conftest.err >&5 | |
c0d27fcc | 6253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6254 | (exit $ac_status); } && |
4494a266 JD |
6255 | { ac_try='test -z "$ac_c_werror_flag" |
6256 | || test ! -s conftest.err' | |
35996d22 AS |
6257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6258 | (eval $ac_try) 2>&5 | |
6259 | ac_status=$? | |
6260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6261 | (exit $ac_status); }; } && | |
6262 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6264 | (eval $ac_try) 2>&5 |
6265 | ac_status=$? | |
c0d27fcc | 6266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6267 | (exit $ac_status); }; }; then |
98418dba | 6268 | emacs_cv_struct_timeval=yes |
7397acc4 | 6269 | else |
503d2be0 | 6270 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6271 | sed 's/^/| /' conftest.$ac_ext >&5 |
6272 | ||
98418dba | 6273 | emacs_cv_struct_timeval=no |
7397acc4 | 6274 | fi |
35996d22 | 6275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 6276 | fi |
c0d27fcc | 6277 | echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 |
98418dba CW |
6278 | echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
6279 | HAVE_TIMEVAL=$emacs_cv_struct_timeval | |
6280 | if test $emacs_cv_struct_timeval = yes; then | |
b936fae4 | 6281 | |
c0d27fcc | 6282 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6283 | #define HAVE_TIMEVAL 1 |
c0d27fcc | 6284 | _ACEOF |
7397acc4 DL |
6285 | |
6286 | fi | |
6287 | ||
c0d27fcc | 6288 | echo "$as_me:$LINENO: checking for struct exception" >&5 |
98418dba CW |
6289 | echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 |
6290 | if test "${emacs_cv_struct_exception+set}" = set; then | |
503d2be0 | 6291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6292 | else |
503d2be0 | 6293 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6294 | /* confdefs.h. */ |
6295 | _ACEOF | |
6296 | cat confdefs.h >>conftest.$ac_ext | |
6297 | cat >>conftest.$ac_ext <<_ACEOF | |
6298 | /* end confdefs.h. */ | |
98418dba | 6299 | #include <math.h> |
503d2be0 AS |
6300 | int |
6301 | main () | |
6302 | { | |
98418dba | 6303 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
503d2be0 AS |
6304 | ; |
6305 | return 0; | |
ba4481b5 | 6306 | } |
503d2be0 AS |
6307 | _ACEOF |
6308 | rm -f conftest.$ac_objext | |
c0d27fcc | 6309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6310 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6311 | ac_status=$? |
35996d22 AS |
6312 | grep -v '^ *+' conftest.er1 >conftest.err |
6313 | rm -f conftest.er1 | |
6314 | cat conftest.err >&5 | |
c0d27fcc | 6315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6316 | (exit $ac_status); } && |
4494a266 JD |
6317 | { ac_try='test -z "$ac_c_werror_flag" |
6318 | || test ! -s conftest.err' | |
35996d22 AS |
6319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6320 | (eval $ac_try) 2>&5 | |
6321 | ac_status=$? | |
6322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6323 | (exit $ac_status); }; } && | |
6324 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6326 | (eval $ac_try) 2>&5 |
6327 | ac_status=$? | |
c0d27fcc | 6328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6329 | (exit $ac_status); }; }; then |
98418dba | 6330 | emacs_cv_struct_exception=yes |
ba4481b5 | 6331 | else |
503d2be0 | 6332 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6333 | sed 's/^/| /' conftest.$ac_ext >&5 |
6334 | ||
98418dba | 6335 | emacs_cv_struct_exception=no |
ba4481b5 | 6336 | fi |
35996d22 | 6337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 6338 | fi |
c0d27fcc | 6339 | echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 |
98418dba CW |
6340 | echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
6341 | HAVE_EXCEPTION=$emacs_cv_struct_exception | |
6342 | if test $emacs_cv_struct_exception != yes; then | |
b936fae4 | 6343 | |
c0d27fcc | 6344 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6345 | #define NO_MATHERR 1 |
c0d27fcc | 6346 | _ACEOF |
ba4481b5 DL |
6347 | |
6348 | fi | |
6349 | ||
7862d3a8 AS |
6350 | |
6351 | for ac_header in sys/socket.h | |
6352 | do | |
6353 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6354 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6355 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6356 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6357 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6359 | fi | |
6360 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6361 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6362 | else | |
6363 | # Is the header compilable? | |
6364 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6365 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6366 | cat >conftest.$ac_ext <<_ACEOF | |
6367 | /* confdefs.h. */ | |
6368 | _ACEOF | |
6369 | cat confdefs.h >>conftest.$ac_ext | |
6370 | cat >>conftest.$ac_ext <<_ACEOF | |
6371 | /* end confdefs.h. */ | |
6372 | $ac_includes_default | |
6373 | #include <$ac_header> | |
6374 | _ACEOF | |
6375 | rm -f conftest.$ac_objext | |
6376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6377 | (eval $ac_compile) 2>conftest.er1 | |
6378 | ac_status=$? | |
6379 | grep -v '^ *+' conftest.er1 >conftest.err | |
6380 | rm -f conftest.er1 | |
6381 | cat conftest.err >&5 | |
6382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6383 | (exit $ac_status); } && | |
4494a266 JD |
6384 | { ac_try='test -z "$ac_c_werror_flag" |
6385 | || test ! -s conftest.err' | |
7862d3a8 AS |
6386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6387 | (eval $ac_try) 2>&5 | |
6388 | ac_status=$? | |
6389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6390 | (exit $ac_status); }; } && | |
6391 | { ac_try='test -s conftest.$ac_objext' | |
6392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6393 | (eval $ac_try) 2>&5 | |
6394 | ac_status=$? | |
6395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6396 | (exit $ac_status); }; }; then | |
6397 | ac_header_compiler=yes | |
6398 | else | |
6399 | echo "$as_me: failed program was:" >&5 | |
6400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6401 | ||
6402 | ac_header_compiler=no | |
6403 | fi | |
6404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6405 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6406 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6407 | ||
6408 | # Is the header present? | |
6409 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6410 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6411 | cat >conftest.$ac_ext <<_ACEOF | |
6412 | /* confdefs.h. */ | |
6413 | _ACEOF | |
6414 | cat confdefs.h >>conftest.$ac_ext | |
6415 | cat >>conftest.$ac_ext <<_ACEOF | |
6416 | /* end confdefs.h. */ | |
6417 | #include <$ac_header> | |
6418 | _ACEOF | |
6419 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6420 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6421 | ac_status=$? | |
6422 | grep -v '^ *+' conftest.er1 >conftest.err | |
6423 | rm -f conftest.er1 | |
6424 | cat conftest.err >&5 | |
6425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6426 | (exit $ac_status); } >/dev/null; then | |
6427 | if test -s conftest.err; then | |
6428 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6429 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6430 | else | |
6431 | ac_cpp_err= | |
6432 | fi | |
6433 | else | |
6434 | ac_cpp_err=yes | |
6435 | fi | |
6436 | if test -z "$ac_cpp_err"; then | |
6437 | ac_header_preproc=yes | |
6438 | else | |
6439 | echo "$as_me: failed program was:" >&5 | |
6440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6441 | ||
6442 | ac_header_preproc=no | |
6443 | fi | |
6444 | rm -f conftest.err conftest.$ac_ext | |
6445 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6446 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6447 | ||
6448 | # So? What about this header? | |
6449 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6450 | yes:no: ) | |
6451 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6452 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6453 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6454 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6455 | ac_header_preproc=yes | |
6456 | ;; | |
6457 | no:yes:* ) | |
6458 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6459 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6460 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6461 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6462 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6463 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6464 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6465 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6466 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6467 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6468 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6469 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6470 | ( | |
6471 | cat <<\_ASBOX | |
6472 | ## ------------------------------------------ ## | |
6473 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6474 | ## ------------------------------------------ ## | |
6475 | _ASBOX | |
6476 | ) | | |
6477 | sed "s/^/$as_me: WARNING: /" >&2 | |
6478 | ;; | |
6479 | esac | |
6480 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6481 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6482 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6484 | else | |
6485 | eval "$as_ac_Header=\$ac_header_preproc" | |
6486 | fi | |
6487 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6488 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6489 | ||
6490 | fi | |
6491 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6492 | cat >>confdefs.h <<_ACEOF | |
6493 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6494 | _ACEOF | |
6495 | ||
6496 | fi | |
6497 | ||
6498 | done | |
6499 | ||
6500 | ||
6501 | for ac_header in net/if.h | |
6502 | do | |
6503 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6504 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6505 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6506 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6508 | else | |
6509 | cat >conftest.$ac_ext <<_ACEOF | |
6510 | /* confdefs.h. */ | |
6511 | _ACEOF | |
6512 | cat confdefs.h >>conftest.$ac_ext | |
6513 | cat >>conftest.$ac_ext <<_ACEOF | |
6514 | /* end confdefs.h. */ | |
6515 | $ac_includes_default | |
6516 | #if HAVE_SYS_SOCKET_H | |
6517 | #include <sys/socket.h> | |
6518 | #endif | |
6519 | ||
6520 | #include <$ac_header> | |
6521 | _ACEOF | |
6522 | rm -f conftest.$ac_objext | |
6523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6524 | (eval $ac_compile) 2>conftest.er1 | |
6525 | ac_status=$? | |
6526 | grep -v '^ *+' conftest.er1 >conftest.err | |
6527 | rm -f conftest.er1 | |
6528 | cat conftest.err >&5 | |
6529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6530 | (exit $ac_status); } && | |
4494a266 JD |
6531 | { ac_try='test -z "$ac_c_werror_flag" |
6532 | || test ! -s conftest.err' | |
7862d3a8 AS |
6533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6534 | (eval $ac_try) 2>&5 | |
6535 | ac_status=$? | |
6536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6537 | (exit $ac_status); }; } && | |
6538 | { ac_try='test -s conftest.$ac_objext' | |
6539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6540 | (eval $ac_try) 2>&5 | |
6541 | ac_status=$? | |
6542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6543 | (exit $ac_status); }; }; then | |
6544 | eval "$as_ac_Header=yes" | |
6545 | else | |
6546 | echo "$as_me: failed program was:" >&5 | |
6547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6548 | ||
6549 | eval "$as_ac_Header=no" | |
6550 | fi | |
6551 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6552 | fi | |
6553 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6554 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6555 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6556 | cat >>confdefs.h <<_ACEOF | |
6557 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6558 | _ACEOF | |
6559 | ||
6560 | fi | |
6561 | ||
6562 | done | |
6563 | ||
6564 | ||
c0d27fcc | 6565 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
98418dba CW |
6566 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
6567 | if test "${ac_cv_struct_tm+set}" = set; then | |
503d2be0 | 6568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 6569 | else |
503d2be0 | 6570 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6571 | /* confdefs.h. */ |
6572 | _ACEOF | |
6573 | cat confdefs.h >>conftest.$ac_ext | |
6574 | cat >>conftest.$ac_ext <<_ACEOF | |
6575 | /* end confdefs.h. */ | |
98418dba CW |
6576 | #include <sys/types.h> |
6577 | #include <time.h> | |
7397acc4 | 6578 | |
503d2be0 AS |
6579 | int |
6580 | main () | |
6581 | { | |
98418dba | 6582 | struct tm *tp; tp->tm_sec; |
503d2be0 AS |
6583 | ; |
6584 | return 0; | |
6585 | } | |
6586 | _ACEOF | |
6587 | rm -f conftest.$ac_objext | |
c0d27fcc | 6588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6589 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 6590 | ac_status=$? |
35996d22 AS |
6591 | grep -v '^ *+' conftest.er1 >conftest.err |
6592 | rm -f conftest.er1 | |
6593 | cat conftest.err >&5 | |
c0d27fcc | 6594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6595 | (exit $ac_status); } && |
4494a266 JD |
6596 | { ac_try='test -z "$ac_c_werror_flag" |
6597 | || test ! -s conftest.err' | |
c0d27fcc | 6598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
6599 | (eval $ac_try) 2>&5 |
6600 | ac_status=$? | |
c0d27fcc | 6601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996d22 AS |
6602 | (exit $ac_status); }; } && |
6603 | { ac_try='test -s conftest.$ac_objext' | |
6604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6605 | (eval $ac_try) 2>&5 | |
6606 | ac_status=$? | |
6607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6608 | (exit $ac_status); }; }; then | |
6609 | ac_cv_struct_tm=time.h | |
6610 | else | |
503d2be0 | 6611 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6612 | sed 's/^/| /' conftest.$ac_ext >&5 |
6613 | ||
98418dba | 6614 | ac_cv_struct_tm=sys/time.h |
7397acc4 | 6615 | fi |
35996d22 | 6616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 6617 | fi |
c0d27fcc | 6618 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
98418dba CW |
6619 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
6620 | if test $ac_cv_struct_tm = sys/time.h; then | |
7397acc4 | 6621 | |
c0d27fcc | 6622 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6623 | #define TM_IN_SYS_TIME 1 |
c0d27fcc | 6624 | _ACEOF |
7397acc4 DL |
6625 | |
6626 | fi | |
ba4481b5 | 6627 | |
c0d27fcc | 6628 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
98418dba CW |
6629 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
6630 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
503d2be0 | 6631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6632 | else |
98418dba | 6633 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6634 | /* confdefs.h. */ |
6635 | _ACEOF | |
6636 | cat confdefs.h >>conftest.$ac_ext | |
6637 | cat >>conftest.$ac_ext <<_ACEOF | |
6638 | /* end confdefs.h. */ | |
98418dba CW |
6639 | #include <sys/types.h> |
6640 | #include <$ac_cv_struct_tm> | |
ba4481b5 | 6641 | |
c0d27fcc | 6642 | |
98418dba CW |
6643 | int |
6644 | main () | |
6645 | { | |
6646 | static struct tm ac_aggr; | |
6647 | if (ac_aggr.tm_zone) | |
6648 | return 0; | |
6649 | ; | |
6650 | return 0; | |
6651 | } | |
6652 | _ACEOF | |
6653 | rm -f conftest.$ac_objext | |
c0d27fcc | 6654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6655 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 6656 | ac_status=$? |
35996d22 AS |
6657 | grep -v '^ *+' conftest.er1 >conftest.err |
6658 | rm -f conftest.er1 | |
6659 | cat conftest.err >&5 | |
c0d27fcc | 6660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6661 | (exit $ac_status); } && |
4494a266 JD |
6662 | { ac_try='test -z "$ac_c_werror_flag" |
6663 | || test ! -s conftest.err' | |
35996d22 AS |
6664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6665 | (eval $ac_try) 2>&5 | |
6666 | ac_status=$? | |
6667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6668 | (exit $ac_status); }; } && | |
6669 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6671 | (eval $ac_try) 2>&5 |
6672 | ac_status=$? | |
c0d27fcc | 6673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6674 | (exit $ac_status); }; }; then |
6675 | ac_cv_member_struct_tm_tm_zone=yes | |
ba4481b5 | 6676 | else |
98418dba | 6677 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6678 | sed 's/^/| /' conftest.$ac_ext >&5 |
6679 | ||
6bae0ccf | 6680 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6681 | /* confdefs.h. */ |
6682 | _ACEOF | |
6683 | cat confdefs.h >>conftest.$ac_ext | |
6684 | cat >>conftest.$ac_ext <<_ACEOF | |
6685 | /* end confdefs.h. */ | |
6bae0ccf DL |
6686 | #include <sys/types.h> |
6687 | #include <$ac_cv_struct_tm> | |
6688 | ||
6689 | ||
6690 | int | |
6691 | main () | |
6692 | { | |
6693 | static struct tm ac_aggr; | |
6694 | if (sizeof ac_aggr.tm_zone) | |
6695 | return 0; | |
6696 | ; | |
6697 | return 0; | |
6698 | } | |
6699 | _ACEOF | |
6700 | rm -f conftest.$ac_objext | |
6701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 6702 | (eval $ac_compile) 2>conftest.er1 |
6bae0ccf | 6703 | ac_status=$? |
35996d22 AS |
6704 | grep -v '^ *+' conftest.er1 >conftest.err |
6705 | rm -f conftest.er1 | |
6706 | cat conftest.err >&5 | |
6bae0ccf DL |
6707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6708 | (exit $ac_status); } && | |
4494a266 JD |
6709 | { ac_try='test -z "$ac_c_werror_flag" |
6710 | || test ! -s conftest.err' | |
35996d22 AS |
6711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6712 | (eval $ac_try) 2>&5 | |
6713 | ac_status=$? | |
6714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6715 | (exit $ac_status); }; } && | |
6716 | { ac_try='test -s conftest.$ac_objext' | |
6bae0ccf DL |
6717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6718 | (eval $ac_try) 2>&5 | |
6719 | ac_status=$? | |
6720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6721 | (exit $ac_status); }; }; then | |
6722 | ac_cv_member_struct_tm_tm_zone=yes | |
6723 | else | |
6724 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6725 | sed 's/^/| /' conftest.$ac_ext >&5 |
6726 | ||
98418dba | 6727 | ac_cv_member_struct_tm_tm_zone=no |
ba4481b5 | 6728 | fi |
35996d22 | 6729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 6730 | fi |
35996d22 | 6731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6bae0ccf | 6732 | fi |
c0d27fcc | 6733 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
98418dba CW |
6734 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
6735 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
503d2be0 | 6736 | |
c0d27fcc | 6737 | cat >>confdefs.h <<_ACEOF |
98418dba | 6738 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
c0d27fcc MR |
6739 | _ACEOF |
6740 | ||
ba4481b5 | 6741 | |
98418dba | 6742 | fi |
ba4481b5 | 6743 | |
98418dba | 6744 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
ba4481b5 | 6745 | |
c0d27fcc | 6746 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6747 | #define HAVE_TM_ZONE 1 |
c0d27fcc | 6748 | _ACEOF |
ba4481b5 | 6749 | |
ba4481b5 | 6750 | else |
c0d27fcc | 6751 | echo "$as_me:$LINENO: checking for tzname" >&5 |
98418dba CW |
6752 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
6753 | if test "${ac_cv_var_tzname+set}" = set; then | |
503d2be0 | 6754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6755 | else |
98418dba | 6756 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6757 | /* confdefs.h. */ |
6758 | _ACEOF | |
6759 | cat confdefs.h >>conftest.$ac_ext | |
6760 | cat >>conftest.$ac_ext <<_ACEOF | |
6761 | /* end confdefs.h. */ | |
98418dba CW |
6762 | #include <time.h> |
6763 | #ifndef tzname /* For SGI. */ | |
6764 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
6765 | #endif | |
6766 | ||
98418dba CW |
6767 | int |
6768 | main () | |
6769 | { | |
6770 | atoi(*tzname); | |
6771 | ; | |
6772 | return 0; | |
6773 | } | |
6774 | _ACEOF | |
6775 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 6776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 6777 | (eval $ac_link) 2>conftest.er1 |
98418dba | 6778 | ac_status=$? |
35996d22 AS |
6779 | grep -v '^ *+' conftest.er1 >conftest.err |
6780 | rm -f conftest.er1 | |
6781 | cat conftest.err >&5 | |
c0d27fcc | 6782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6783 | (exit $ac_status); } && |
4494a266 JD |
6784 | { ac_try='test -z "$ac_c_werror_flag" |
6785 | || test ! -s conftest.err' | |
35996d22 AS |
6786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6787 | (eval $ac_try) 2>&5 | |
6788 | ac_status=$? | |
6789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6790 | (exit $ac_status); }; } && | |
6791 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 6792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6793 | (eval $ac_try) 2>&5 |
6794 | ac_status=$? | |
c0d27fcc | 6795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
6796 | (exit $ac_status); }; }; then |
6797 | ac_cv_var_tzname=yes | |
6798 | else | |
6799 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6800 | sed 's/^/| /' conftest.$ac_ext >&5 |
6801 | ||
98418dba | 6802 | ac_cv_var_tzname=no |
ba4481b5 | 6803 | fi |
35996d22 AS |
6804 | rm -f conftest.err conftest.$ac_objext \ |
6805 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 6806 | fi |
c0d27fcc | 6807 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
98418dba CW |
6808 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
6809 | if test $ac_cv_var_tzname = yes; then | |
ba4481b5 | 6810 | |
c0d27fcc | 6811 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6812 | #define HAVE_TZNAME 1 |
c0d27fcc | 6813 | _ACEOF |
503d2be0 | 6814 | |
98418dba CW |
6815 | fi |
6816 | fi | |
503d2be0 | 6817 | |
c0d27fcc | 6818 | echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 |
b936fae4 AS |
6819 | echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6 |
6820 | if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then | |
98418dba CW |
6821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6822 | else | |
6823 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6824 | /* confdefs.h. */ |
6825 | _ACEOF | |
6826 | cat confdefs.h >>conftest.$ac_ext | |
6827 | cat >>conftest.$ac_ext <<_ACEOF | |
6828 | /* end confdefs.h. */ | |
98418dba | 6829 | #include <time.h> |
b936fae4 | 6830 | |
98418dba CW |
6831 | int |
6832 | main () | |
6833 | { | |
b936fae4 AS |
6834 | static struct tm ac_aggr; |
6835 | if (ac_aggr.tm_gmtoff) | |
6836 | return 0; | |
98418dba CW |
6837 | ; |
6838 | return 0; | |
6839 | } | |
6840 | _ACEOF | |
b936fae4 | 6841 | rm -f conftest.$ac_objext |
c0d27fcc | 6842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6843 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 6844 | ac_status=$? |
35996d22 AS |
6845 | grep -v '^ *+' conftest.er1 >conftest.err |
6846 | rm -f conftest.er1 | |
6847 | cat conftest.err >&5 | |
c0d27fcc | 6848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6849 | (exit $ac_status); } && |
4494a266 JD |
6850 | { ac_try='test -z "$ac_c_werror_flag" |
6851 | || test ! -s conftest.err' | |
35996d22 AS |
6852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6853 | (eval $ac_try) 2>&5 | |
6854 | ac_status=$? | |
6855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6856 | (exit $ac_status); }; } && | |
6857 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
6859 | (eval $ac_try) 2>&5 |
6860 | ac_status=$? | |
c0d27fcc | 6861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6862 | (exit $ac_status); }; }; then |
b936fae4 | 6863 | ac_cv_member_struct_tm_tm_gmtoff=yes |
98418dba CW |
6864 | else |
6865 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6866 | sed 's/^/| /' conftest.$ac_ext >&5 |
6867 | ||
8799b3e4 | 6868 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6869 | /* confdefs.h. */ |
6870 | _ACEOF | |
6871 | cat confdefs.h >>conftest.$ac_ext | |
6872 | cat >>conftest.$ac_ext <<_ACEOF | |
6873 | /* end confdefs.h. */ | |
6bae0ccf DL |
6874 | #include <time.h> |
6875 | ||
8799b3e4 CW |
6876 | int |
6877 | main () | |
6878 | { | |
6bae0ccf DL |
6879 | static struct tm ac_aggr; |
6880 | if (sizeof ac_aggr.tm_gmtoff) | |
6881 | return 0; | |
8799b3e4 CW |
6882 | ; |
6883 | return 0; | |
6884 | } | |
6885 | _ACEOF | |
6bae0ccf | 6886 | rm -f conftest.$ac_objext |
c0d27fcc | 6887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 6888 | (eval $ac_compile) 2>conftest.er1 |
8799b3e4 | 6889 | ac_status=$? |
35996d22 AS |
6890 | grep -v '^ *+' conftest.er1 >conftest.err |
6891 | rm -f conftest.er1 | |
6892 | cat conftest.err >&5 | |
c0d27fcc | 6893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8799b3e4 | 6894 | (exit $ac_status); } && |
4494a266 JD |
6895 | { ac_try='test -z "$ac_c_werror_flag" |
6896 | || test ! -s conftest.err' | |
35996d22 AS |
6897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6898 | (eval $ac_try) 2>&5 | |
6899 | ac_status=$? | |
6900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6901 | (exit $ac_status); }; } && | |
6902 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 6903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8799b3e4 CW |
6904 | (eval $ac_try) 2>&5 |
6905 | ac_status=$? | |
c0d27fcc | 6906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8799b3e4 | 6907 | (exit $ac_status); }; }; then |
6bae0ccf | 6908 | ac_cv_member_struct_tm_tm_gmtoff=yes |
8799b3e4 CW |
6909 | else |
6910 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6911 | sed 's/^/| /' conftest.$ac_ext >&5 |
6912 | ||
6bae0ccf | 6913 | ac_cv_member_struct_tm_tm_gmtoff=no |
8799b3e4 | 6914 | fi |
35996d22 | 6915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6bae0ccf | 6916 | fi |
35996d22 | 6917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8799b3e4 | 6918 | fi |
6bae0ccf DL |
6919 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 |
6920 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6 | |
6921 | if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then | |
6922 | ||
6923 | cat >>confdefs.h <<\_ACEOF | |
6924 | #define HAVE_TM_GMTOFF 1 | |
6925 | _ACEOF | |
6926 | ||
6927 | fi | |
6928 | ||
96f3a036 DL |
6929 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5 |
6930 | echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6 | |
6931 | if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then | |
6932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6933 | else | |
6934 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
6935 | /* confdefs.h. */ |
6936 | _ACEOF | |
6937 | cat confdefs.h >>conftest.$ac_ext | |
6938 | cat >>conftest.$ac_ext <<_ACEOF | |
6939 | /* end confdefs.h. */ | |
7862d3a8 AS |
6940 | $ac_includes_default |
6941 | #if HAVE_SYS_SOCKET_H | |
6942 | #include <sys/socket.h> | |
6943 | #endif | |
6944 | #if HAVE_NET_IF_H | |
96f3a036 | 6945 | #include <net/if.h> |
7862d3a8 | 6946 | #endif |
96f3a036 DL |
6947 | |
6948 | int | |
6949 | main () | |
6950 | { | |
6951 | static struct ifreq ac_aggr; | |
6952 | if (ac_aggr.ifr_flags) | |
6953 | return 0; | |
6954 | ; | |
6955 | return 0; | |
6956 | } | |
6957 | _ACEOF | |
6958 | rm -f conftest.$ac_objext | |
6959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 6960 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 6961 | ac_status=$? |
35996d22 AS |
6962 | grep -v '^ *+' conftest.er1 >conftest.err |
6963 | rm -f conftest.er1 | |
6964 | cat conftest.err >&5 | |
96f3a036 DL |
6965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6966 | (exit $ac_status); } && | |
4494a266 JD |
6967 | { ac_try='test -z "$ac_c_werror_flag" |
6968 | || test ! -s conftest.err' | |
35996d22 AS |
6969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6970 | (eval $ac_try) 2>&5 | |
6971 | ac_status=$? | |
6972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6973 | (exit $ac_status); }; } && | |
6974 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
6975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6976 | (eval $ac_try) 2>&5 | |
6977 | ac_status=$? | |
6978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6979 | (exit $ac_status); }; }; then | |
6980 | ac_cv_member_struct_ifreq_ifr_flags=yes | |
6981 | else | |
6982 | echo "$as_me: failed program was:" >&5 | |
6983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6984 | ||
6985 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
6986 | /* confdefs.h. */ |
6987 | _ACEOF | |
6988 | cat confdefs.h >>conftest.$ac_ext | |
6989 | cat >>conftest.$ac_ext <<_ACEOF | |
6990 | /* end confdefs.h. */ | |
7862d3a8 AS |
6991 | $ac_includes_default |
6992 | #if HAVE_SYS_SOCKET_H | |
6993 | #include <sys/socket.h> | |
6994 | #endif | |
6995 | #if HAVE_NET_IF_H | |
96f3a036 | 6996 | #include <net/if.h> |
7862d3a8 | 6997 | #endif |
96f3a036 DL |
6998 | |
6999 | int | |
7000 | main () | |
7001 | { | |
7002 | static struct ifreq ac_aggr; | |
7003 | if (sizeof ac_aggr.ifr_flags) | |
7004 | return 0; | |
7005 | ; | |
7006 | return 0; | |
7007 | } | |
7008 | _ACEOF | |
7009 | rm -f conftest.$ac_objext | |
7010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7011 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7012 | ac_status=$? |
35996d22 AS |
7013 | grep -v '^ *+' conftest.er1 >conftest.err |
7014 | rm -f conftest.er1 | |
7015 | cat conftest.err >&5 | |
96f3a036 DL |
7016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7017 | (exit $ac_status); } && | |
4494a266 JD |
7018 | { ac_try='test -z "$ac_c_werror_flag" |
7019 | || test ! -s conftest.err' | |
35996d22 AS |
7020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7021 | (eval $ac_try) 2>&5 | |
7022 | ac_status=$? | |
7023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7024 | (exit $ac_status); }; } && | |
7025 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7027 | (eval $ac_try) 2>&5 | |
7028 | ac_status=$? | |
7029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7030 | (exit $ac_status); }; }; then | |
7031 | ac_cv_member_struct_ifreq_ifr_flags=yes | |
7032 | else | |
7033 | echo "$as_me: failed program was:" >&5 | |
7034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7035 | ||
7036 | ac_cv_member_struct_ifreq_ifr_flags=no | |
7037 | fi | |
35996d22 | 7038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7039 | fi |
35996d22 | 7040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7041 | fi |
7042 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5 | |
7043 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6 | |
7044 | if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then | |
7045 | ||
7046 | cat >>confdefs.h <<_ACEOF | |
7047 | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 | |
7048 | _ACEOF | |
7049 | ||
7050 | ||
7051 | fi | |
7052 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5 | |
7053 | echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6 | |
7054 | if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then | |
7055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7056 | else | |
7057 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7058 | /* confdefs.h. */ |
7059 | _ACEOF | |
7060 | cat confdefs.h >>conftest.$ac_ext | |
7061 | cat >>conftest.$ac_ext <<_ACEOF | |
7062 | /* end confdefs.h. */ | |
7862d3a8 AS |
7063 | $ac_includes_default |
7064 | #if HAVE_SYS_SOCKET_H | |
7065 | #include <sys/socket.h> | |
7066 | #endif | |
7067 | #if HAVE_NET_IF_H | |
96f3a036 | 7068 | #include <net/if.h> |
7862d3a8 | 7069 | #endif |
96f3a036 DL |
7070 | |
7071 | int | |
7072 | main () | |
7073 | { | |
7074 | static struct ifreq ac_aggr; | |
7075 | if (ac_aggr.ifr_hwaddr) | |
7076 | return 0; | |
7077 | ; | |
7078 | return 0; | |
7079 | } | |
7080 | _ACEOF | |
7081 | rm -f conftest.$ac_objext | |
7082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7083 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7084 | ac_status=$? |
35996d22 AS |
7085 | grep -v '^ *+' conftest.er1 >conftest.err |
7086 | rm -f conftest.er1 | |
7087 | cat conftest.err >&5 | |
96f3a036 DL |
7088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7089 | (exit $ac_status); } && | |
4494a266 JD |
7090 | { ac_try='test -z "$ac_c_werror_flag" |
7091 | || test ! -s conftest.err' | |
35996d22 AS |
7092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7093 | (eval $ac_try) 2>&5 | |
7094 | ac_status=$? | |
7095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7096 | (exit $ac_status); }; } && | |
7097 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7099 | (eval $ac_try) 2>&5 | |
7100 | ac_status=$? | |
7101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7102 | (exit $ac_status); }; }; then | |
7103 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes | |
7104 | else | |
7105 | echo "$as_me: failed program was:" >&5 | |
7106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7107 | ||
7108 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7109 | /* confdefs.h. */ |
7110 | _ACEOF | |
7111 | cat confdefs.h >>conftest.$ac_ext | |
7112 | cat >>conftest.$ac_ext <<_ACEOF | |
7113 | /* end confdefs.h. */ | |
7862d3a8 AS |
7114 | $ac_includes_default |
7115 | #if HAVE_SYS_SOCKET_H | |
7116 | #include <sys/socket.h> | |
7117 | #endif | |
7118 | #if HAVE_NET_IF_H | |
96f3a036 | 7119 | #include <net/if.h> |
7862d3a8 | 7120 | #endif |
96f3a036 DL |
7121 | |
7122 | int | |
7123 | main () | |
7124 | { | |
7125 | static struct ifreq ac_aggr; | |
7126 | if (sizeof ac_aggr.ifr_hwaddr) | |
7127 | return 0; | |
7128 | ; | |
7129 | return 0; | |
7130 | } | |
7131 | _ACEOF | |
7132 | rm -f conftest.$ac_objext | |
7133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7134 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7135 | ac_status=$? |
35996d22 AS |
7136 | grep -v '^ *+' conftest.er1 >conftest.err |
7137 | rm -f conftest.er1 | |
7138 | cat conftest.err >&5 | |
96f3a036 DL |
7139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7140 | (exit $ac_status); } && | |
4494a266 JD |
7141 | { ac_try='test -z "$ac_c_werror_flag" |
7142 | || test ! -s conftest.err' | |
35996d22 AS |
7143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7144 | (eval $ac_try) 2>&5 | |
7145 | ac_status=$? | |
7146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7147 | (exit $ac_status); }; } && | |
7148 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7150 | (eval $ac_try) 2>&5 | |
7151 | ac_status=$? | |
7152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7153 | (exit $ac_status); }; }; then | |
7154 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes | |
7155 | else | |
7156 | echo "$as_me: failed program was:" >&5 | |
7157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7158 | ||
7159 | ac_cv_member_struct_ifreq_ifr_hwaddr=no | |
7160 | fi | |
35996d22 | 7161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7162 | fi |
35996d22 | 7163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7164 | fi |
7165 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5 | |
7166 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6 | |
7167 | if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then | |
7168 | ||
7169 | cat >>confdefs.h <<_ACEOF | |
7170 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 | |
7171 | _ACEOF | |
7172 | ||
7173 | ||
7174 | fi | |
7175 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5 | |
7176 | echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6 | |
7177 | if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then | |
7178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7179 | else | |
7180 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7181 | /* confdefs.h. */ |
7182 | _ACEOF | |
7183 | cat confdefs.h >>conftest.$ac_ext | |
7184 | cat >>conftest.$ac_ext <<_ACEOF | |
7185 | /* end confdefs.h. */ | |
7862d3a8 AS |
7186 | $ac_includes_default |
7187 | #if HAVE_SYS_SOCKET_H | |
7188 | #include <sys/socket.h> | |
7189 | #endif | |
7190 | #if HAVE_NET_IF_H | |
96f3a036 | 7191 | #include <net/if.h> |
7862d3a8 | 7192 | #endif |
96f3a036 DL |
7193 | |
7194 | int | |
7195 | main () | |
7196 | { | |
7197 | static struct ifreq ac_aggr; | |
7198 | if (ac_aggr.ifr_netmask) | |
7199 | return 0; | |
7200 | ; | |
7201 | return 0; | |
7202 | } | |
7203 | _ACEOF | |
7204 | rm -f conftest.$ac_objext | |
7205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7206 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7207 | ac_status=$? |
35996d22 AS |
7208 | grep -v '^ *+' conftest.er1 >conftest.err |
7209 | rm -f conftest.er1 | |
7210 | cat conftest.err >&5 | |
96f3a036 DL |
7211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7212 | (exit $ac_status); } && | |
4494a266 JD |
7213 | { ac_try='test -z "$ac_c_werror_flag" |
7214 | || test ! -s conftest.err' | |
35996d22 AS |
7215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7216 | (eval $ac_try) 2>&5 | |
7217 | ac_status=$? | |
7218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7219 | (exit $ac_status); }; } && | |
7220 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7222 | (eval $ac_try) 2>&5 | |
7223 | ac_status=$? | |
7224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7225 | (exit $ac_status); }; }; then | |
7226 | ac_cv_member_struct_ifreq_ifr_netmask=yes | |
7227 | else | |
7228 | echo "$as_me: failed program was:" >&5 | |
7229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7230 | ||
7231 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7232 | /* confdefs.h. */ |
7233 | _ACEOF | |
7234 | cat confdefs.h >>conftest.$ac_ext | |
7235 | cat >>conftest.$ac_ext <<_ACEOF | |
7236 | /* end confdefs.h. */ | |
7862d3a8 AS |
7237 | $ac_includes_default |
7238 | #if HAVE_SYS_SOCKET_H | |
7239 | #include <sys/socket.h> | |
7240 | #endif | |
7241 | #if HAVE_NET_IF_H | |
96f3a036 | 7242 | #include <net/if.h> |
7862d3a8 | 7243 | #endif |
96f3a036 DL |
7244 | |
7245 | int | |
7246 | main () | |
7247 | { | |
7248 | static struct ifreq ac_aggr; | |
7249 | if (sizeof ac_aggr.ifr_netmask) | |
7250 | return 0; | |
7251 | ; | |
7252 | return 0; | |
7253 | } | |
7254 | _ACEOF | |
7255 | rm -f conftest.$ac_objext | |
7256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7257 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7258 | ac_status=$? |
35996d22 AS |
7259 | grep -v '^ *+' conftest.er1 >conftest.err |
7260 | rm -f conftest.er1 | |
7261 | cat conftest.err >&5 | |
96f3a036 DL |
7262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7263 | (exit $ac_status); } && | |
4494a266 JD |
7264 | { ac_try='test -z "$ac_c_werror_flag" |
7265 | || test ! -s conftest.err' | |
35996d22 AS |
7266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7267 | (eval $ac_try) 2>&5 | |
7268 | ac_status=$? | |
7269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7270 | (exit $ac_status); }; } && | |
7271 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7273 | (eval $ac_try) 2>&5 | |
7274 | ac_status=$? | |
7275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7276 | (exit $ac_status); }; }; then | |
7277 | ac_cv_member_struct_ifreq_ifr_netmask=yes | |
7278 | else | |
7279 | echo "$as_me: failed program was:" >&5 | |
7280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7281 | ||
7282 | ac_cv_member_struct_ifreq_ifr_netmask=no | |
7283 | fi | |
35996d22 | 7284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7285 | fi |
35996d22 | 7286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7287 | fi |
7288 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5 | |
7289 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6 | |
7290 | if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then | |
7291 | ||
7292 | cat >>confdefs.h <<_ACEOF | |
7293 | #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 | |
7294 | _ACEOF | |
7295 | ||
7296 | ||
7297 | fi | |
7298 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5 | |
7299 | echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6 | |
7300 | if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then | |
7301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7302 | else | |
7303 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7304 | /* confdefs.h. */ |
7305 | _ACEOF | |
7306 | cat confdefs.h >>conftest.$ac_ext | |
7307 | cat >>conftest.$ac_ext <<_ACEOF | |
7308 | /* end confdefs.h. */ | |
7862d3a8 AS |
7309 | $ac_includes_default |
7310 | #if HAVE_SYS_SOCKET_H | |
7311 | #include <sys/socket.h> | |
7312 | #endif | |
7313 | #if HAVE_NET_IF_H | |
96f3a036 | 7314 | #include <net/if.h> |
7862d3a8 | 7315 | #endif |
96f3a036 DL |
7316 | |
7317 | int | |
7318 | main () | |
7319 | { | |
7320 | static struct ifreq ac_aggr; | |
7321 | if (ac_aggr.ifr_broadaddr) | |
7322 | return 0; | |
7323 | ; | |
7324 | return 0; | |
7325 | } | |
7326 | _ACEOF | |
7327 | rm -f conftest.$ac_objext | |
7328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7329 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7330 | ac_status=$? |
35996d22 AS |
7331 | grep -v '^ *+' conftest.er1 >conftest.err |
7332 | rm -f conftest.er1 | |
7333 | cat conftest.err >&5 | |
96f3a036 DL |
7334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7335 | (exit $ac_status); } && | |
4494a266 JD |
7336 | { ac_try='test -z "$ac_c_werror_flag" |
7337 | || test ! -s conftest.err' | |
35996d22 AS |
7338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7339 | (eval $ac_try) 2>&5 | |
7340 | ac_status=$? | |
7341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7342 | (exit $ac_status); }; } && | |
7343 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7345 | (eval $ac_try) 2>&5 | |
7346 | ac_status=$? | |
7347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7348 | (exit $ac_status); }; }; then | |
7349 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes | |
7350 | else | |
7351 | echo "$as_me: failed program was:" >&5 | |
7352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7353 | ||
7354 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7355 | /* confdefs.h. */ |
7356 | _ACEOF | |
7357 | cat confdefs.h >>conftest.$ac_ext | |
7358 | cat >>conftest.$ac_ext <<_ACEOF | |
7359 | /* end confdefs.h. */ | |
7862d3a8 AS |
7360 | $ac_includes_default |
7361 | #if HAVE_SYS_SOCKET_H | |
7362 | #include <sys/socket.h> | |
7363 | #endif | |
7364 | #if HAVE_NET_IF_H | |
96f3a036 | 7365 | #include <net/if.h> |
7862d3a8 | 7366 | #endif |
96f3a036 DL |
7367 | |
7368 | int | |
7369 | main () | |
7370 | { | |
7371 | static struct ifreq ac_aggr; | |
7372 | if (sizeof ac_aggr.ifr_broadaddr) | |
7373 | return 0; | |
7374 | ; | |
7375 | return 0; | |
7376 | } | |
7377 | _ACEOF | |
7378 | rm -f conftest.$ac_objext | |
7379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7380 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7381 | ac_status=$? |
35996d22 AS |
7382 | grep -v '^ *+' conftest.er1 >conftest.err |
7383 | rm -f conftest.er1 | |
7384 | cat conftest.err >&5 | |
96f3a036 DL |
7385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7386 | (exit $ac_status); } && | |
4494a266 JD |
7387 | { ac_try='test -z "$ac_c_werror_flag" |
7388 | || test ! -s conftest.err' | |
35996d22 AS |
7389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7390 | (eval $ac_try) 2>&5 | |
7391 | ac_status=$? | |
7392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7393 | (exit $ac_status); }; } && | |
7394 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7396 | (eval $ac_try) 2>&5 | |
7397 | ac_status=$? | |
7398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7399 | (exit $ac_status); }; }; then | |
7400 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes | |
7401 | else | |
7402 | echo "$as_me: failed program was:" >&5 | |
7403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7404 | ||
7405 | ac_cv_member_struct_ifreq_ifr_broadaddr=no | |
7406 | fi | |
35996d22 | 7407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7408 | fi |
35996d22 | 7409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7410 | fi |
7411 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5 | |
7412 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6 | |
7413 | if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then | |
7414 | ||
7415 | cat >>confdefs.h <<_ACEOF | |
7416 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 | |
7417 | _ACEOF | |
7418 | ||
7419 | ||
7420 | fi | |
7421 | echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5 | |
7422 | echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6 | |
7423 | if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then | |
7424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7425 | else | |
7426 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7427 | /* confdefs.h. */ |
7428 | _ACEOF | |
7429 | cat confdefs.h >>conftest.$ac_ext | |
7430 | cat >>conftest.$ac_ext <<_ACEOF | |
7431 | /* end confdefs.h. */ | |
7862d3a8 AS |
7432 | $ac_includes_default |
7433 | #if HAVE_SYS_SOCKET_H | |
7434 | #include <sys/socket.h> | |
7435 | #endif | |
7436 | #if HAVE_NET_IF_H | |
96f3a036 | 7437 | #include <net/if.h> |
7862d3a8 | 7438 | #endif |
96f3a036 DL |
7439 | |
7440 | int | |
7441 | main () | |
7442 | { | |
7443 | static struct ifreq ac_aggr; | |
7444 | if (ac_aggr.ifr_addr) | |
7445 | return 0; | |
7446 | ; | |
7447 | return 0; | |
7448 | } | |
7449 | _ACEOF | |
7450 | rm -f conftest.$ac_objext | |
7451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7452 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7453 | ac_status=$? |
35996d22 AS |
7454 | grep -v '^ *+' conftest.er1 >conftest.err |
7455 | rm -f conftest.er1 | |
7456 | cat conftest.err >&5 | |
96f3a036 DL |
7457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7458 | (exit $ac_status); } && | |
4494a266 JD |
7459 | { ac_try='test -z "$ac_c_werror_flag" |
7460 | || test ! -s conftest.err' | |
35996d22 AS |
7461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7462 | (eval $ac_try) 2>&5 | |
7463 | ac_status=$? | |
7464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7465 | (exit $ac_status); }; } && | |
7466 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7468 | (eval $ac_try) 2>&5 | |
7469 | ac_status=$? | |
7470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7471 | (exit $ac_status); }; }; then | |
7472 | ac_cv_member_struct_ifreq_ifr_addr=yes | |
7473 | else | |
7474 | echo "$as_me: failed program was:" >&5 | |
7475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7476 | ||
7477 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
7478 | /* confdefs.h. */ |
7479 | _ACEOF | |
7480 | cat confdefs.h >>conftest.$ac_ext | |
7481 | cat >>conftest.$ac_ext <<_ACEOF | |
7482 | /* end confdefs.h. */ | |
7862d3a8 AS |
7483 | $ac_includes_default |
7484 | #if HAVE_SYS_SOCKET_H | |
7485 | #include <sys/socket.h> | |
7486 | #endif | |
7487 | #if HAVE_NET_IF_H | |
96f3a036 | 7488 | #include <net/if.h> |
7862d3a8 | 7489 | #endif |
96f3a036 DL |
7490 | |
7491 | int | |
7492 | main () | |
7493 | { | |
7494 | static struct ifreq ac_aggr; | |
7495 | if (sizeof ac_aggr.ifr_addr) | |
7496 | return 0; | |
7497 | ; | |
7498 | return 0; | |
7499 | } | |
7500 | _ACEOF | |
7501 | rm -f conftest.$ac_objext | |
7502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 7503 | (eval $ac_compile) 2>conftest.er1 |
96f3a036 | 7504 | ac_status=$? |
35996d22 AS |
7505 | grep -v '^ *+' conftest.er1 >conftest.err |
7506 | rm -f conftest.er1 | |
7507 | cat conftest.err >&5 | |
96f3a036 DL |
7508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7509 | (exit $ac_status); } && | |
4494a266 JD |
7510 | { ac_try='test -z "$ac_c_werror_flag" |
7511 | || test ! -s conftest.err' | |
35996d22 AS |
7512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7513 | (eval $ac_try) 2>&5 | |
7514 | ac_status=$? | |
7515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7516 | (exit $ac_status); }; } && | |
7517 | { ac_try='test -s conftest.$ac_objext' | |
96f3a036 DL |
7518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7519 | (eval $ac_try) 2>&5 | |
7520 | ac_status=$? | |
7521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7522 | (exit $ac_status); }; }; then | |
7523 | ac_cv_member_struct_ifreq_ifr_addr=yes | |
7524 | else | |
7525 | echo "$as_me: failed program was:" >&5 | |
7526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7527 | ||
7528 | ac_cv_member_struct_ifreq_ifr_addr=no | |
7529 | fi | |
35996d22 | 7530 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 7531 | fi |
35996d22 | 7532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 DL |
7533 | fi |
7534 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5 | |
7535 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6 | |
7536 | if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then | |
7537 | ||
7538 | cat >>confdefs.h <<_ACEOF | |
7539 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 | |
7540 | _ACEOF | |
7541 | ||
7542 | ||
7543 | fi | |
7544 | ||
8799b3e4 | 7545 | |
8799b3e4 | 7546 | |
c0d27fcc | 7547 | echo "$as_me:$LINENO: checking for function prototypes" >&5 |
98418dba CW |
7548 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
7549 | if test "$ac_cv_prog_cc_stdc" != no; then | |
c0d27fcc | 7550 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
7551 | echo "${ECHO_T}yes" >&6 |
7552 | ||
c0d27fcc | 7553 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7554 | #define PROTOTYPES 1 |
c0d27fcc MR |
7555 | _ACEOF |
7556 | ||
7557 | ||
7558 | cat >>confdefs.h <<\_ACEOF | |
7559 | #define __PROTOTYPES 1 | |
7560 | _ACEOF | |
98418dba CW |
7561 | |
7562 | else | |
c0d27fcc | 7563 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
7564 | echo "${ECHO_T}no" >&6 |
7565 | fi | |
7566 | ||
c0d27fcc | 7567 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
98418dba CW |
7568 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
7569 | if test "${ac_cv_c_volatile+set}" = set; then | |
7570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7571 | else | |
7572 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7573 | /* confdefs.h. */ |
7574 | _ACEOF | |
7575 | cat confdefs.h >>conftest.$ac_ext | |
7576 | cat >>conftest.$ac_ext <<_ACEOF | |
7577 | /* end confdefs.h. */ | |
98418dba | 7578 | |
98418dba CW |
7579 | int |
7580 | main () | |
7581 | { | |
7582 | ||
7583 | volatile int x; | |
7584 | int * volatile y; | |
7585 | ; | |
7586 | return 0; | |
7587 | } | |
7588 | _ACEOF | |
7589 | rm -f conftest.$ac_objext | |
c0d27fcc | 7590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 7591 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 7592 | ac_status=$? |
35996d22 AS |
7593 | grep -v '^ *+' conftest.er1 >conftest.err |
7594 | rm -f conftest.er1 | |
7595 | cat conftest.err >&5 | |
c0d27fcc | 7596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7597 | (exit $ac_status); } && |
4494a266 JD |
7598 | { ac_try='test -z "$ac_c_werror_flag" |
7599 | || test ! -s conftest.err' | |
35996d22 AS |
7600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7601 | (eval $ac_try) 2>&5 | |
7602 | ac_status=$? | |
7603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7604 | (exit $ac_status); }; } && | |
7605 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 7606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7607 | (eval $ac_try) 2>&5 |
7608 | ac_status=$? | |
c0d27fcc | 7609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7610 | (exit $ac_status); }; }; then |
7611 | ac_cv_c_volatile=yes | |
7612 | else | |
7613 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7614 | sed 's/^/| /' conftest.$ac_ext >&5 |
7615 | ||
98418dba CW |
7616 | ac_cv_c_volatile=no |
7617 | fi | |
35996d22 | 7618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 7619 | fi |
c0d27fcc | 7620 | echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
98418dba CW |
7621 | echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
7622 | if test $ac_cv_c_volatile = no; then | |
7623 | ||
c0d27fcc | 7624 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7625 | #define volatile |
c0d27fcc | 7626 | _ACEOF |
98418dba CW |
7627 | |
7628 | fi | |
7629 | ||
c0d27fcc | 7630 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
98418dba CW |
7631 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
7632 | if test "${ac_cv_c_const+set}" = set; then | |
7633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7634 | else | |
7635 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7636 | /* confdefs.h. */ |
7637 | _ACEOF | |
7638 | cat confdefs.h >>conftest.$ac_ext | |
7639 | cat >>conftest.$ac_ext <<_ACEOF | |
7640 | /* end confdefs.h. */ | |
98418dba | 7641 | |
98418dba CW |
7642 | int |
7643 | main () | |
7644 | { | |
7645 | /* FIXME: Include the comments suggested by Paul. */ | |
7646 | #ifndef __cplusplus | |
7647 | /* Ultrix mips cc rejects this. */ | |
7648 | typedef int charset[2]; | |
7649 | const charset x; | |
7650 | /* SunOS 4.1.1 cc rejects this. */ | |
7651 | char const *const *ccp; | |
7652 | char **p; | |
7653 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
7654 | struct point {int x, y;}; | |
7655 | static struct point const zero = {0,0}; | |
7656 | /* AIX XL C 1.02.0.0 rejects this. | |
7657 | It does not let you subtract one const X* pointer from another in | |
7658 | an arm of an if-expression whose if-part is not a constant | |
7659 | expression */ | |
7660 | const char *g = "string"; | |
7661 | ccp = &g + (g ? g-g : 0); | |
7662 | /* HPUX 7.0 cc rejects these. */ | |
7663 | ++ccp; | |
7664 | p = (char**) ccp; | |
7665 | ccp = (char const *const *) p; | |
7666 | { /* SCO 3.2v4 cc rejects this. */ | |
7667 | char *t; | |
7668 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
7669 | ||
7670 | *t++ = 0; | |
7671 | } | |
7672 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
7673 | int x[] = {25, 17}; | |
7674 | const int *foo = &x[0]; | |
7675 | ++foo; | |
7676 | } | |
7677 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
7678 | typedef const int *iptr; | |
7679 | iptr p = 0; | |
7680 | ++p; | |
7681 | } | |
7682 | { /* AIX XL C 1.02.0.0 rejects this saying | |
7683 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
7684 | struct s { int j; const int *ap[3]; }; | |
7685 | struct s *b; b->j = 5; | |
7686 | } | |
7687 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
7688 | const int foo = 10; | |
7689 | } | |
7690 | #endif | |
7691 | ||
7692 | ; | |
7693 | return 0; | |
7694 | } | |
7695 | _ACEOF | |
7696 | rm -f conftest.$ac_objext | |
c0d27fcc | 7697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 7698 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 7699 | ac_status=$? |
35996d22 AS |
7700 | grep -v '^ *+' conftest.er1 >conftest.err |
7701 | rm -f conftest.er1 | |
7702 | cat conftest.err >&5 | |
c0d27fcc | 7703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7704 | (exit $ac_status); } && |
4494a266 JD |
7705 | { ac_try='test -z "$ac_c_werror_flag" |
7706 | || test ! -s conftest.err' | |
35996d22 AS |
7707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7708 | (eval $ac_try) 2>&5 | |
7709 | ac_status=$? | |
7710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7711 | (exit $ac_status); }; } && | |
7712 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 7713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7714 | (eval $ac_try) 2>&5 |
7715 | ac_status=$? | |
c0d27fcc | 7716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7717 | (exit $ac_status); }; }; then |
7718 | ac_cv_c_const=yes | |
7719 | else | |
7720 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7721 | sed 's/^/| /' conftest.$ac_ext >&5 |
7722 | ||
98418dba CW |
7723 | ac_cv_c_const=no |
7724 | fi | |
35996d22 | 7725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 7726 | fi |
c0d27fcc | 7727 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
98418dba CW |
7728 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
7729 | if test $ac_cv_c_const = no; then | |
7730 | ||
c0d27fcc | 7731 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7732 | #define const |
c0d27fcc | 7733 | _ACEOF |
98418dba CW |
7734 | |
7735 | fi | |
7736 | ||
c0d27fcc | 7737 | echo "$as_me:$LINENO: checking for void * support" >&5 |
98418dba CW |
7738 | echo $ECHO_N "checking for void * support... $ECHO_C" >&6 |
7739 | if test "${emacs_cv_void_star+set}" = set; then | |
7740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7741 | else | |
7742 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7743 | /* confdefs.h. */ |
7744 | _ACEOF | |
7745 | cat confdefs.h >>conftest.$ac_ext | |
7746 | cat >>conftest.$ac_ext <<_ACEOF | |
7747 | /* end confdefs.h. */ | |
98418dba | 7748 | |
98418dba CW |
7749 | int |
7750 | main () | |
7751 | { | |
7752 | void * foo; | |
7753 | ; | |
7754 | return 0; | |
7755 | } | |
7756 | _ACEOF | |
7757 | rm -f conftest.$ac_objext | |
c0d27fcc | 7758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 7759 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 7760 | ac_status=$? |
35996d22 AS |
7761 | grep -v '^ *+' conftest.er1 >conftest.err |
7762 | rm -f conftest.er1 | |
7763 | cat conftest.err >&5 | |
c0d27fcc | 7764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7765 | (exit $ac_status); } && |
4494a266 JD |
7766 | { ac_try='test -z "$ac_c_werror_flag" |
7767 | || test ! -s conftest.err' | |
35996d22 AS |
7768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7769 | (eval $ac_try) 2>&5 | |
7770 | ac_status=$? | |
7771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7772 | (exit $ac_status); }; } && | |
7773 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 7774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
7775 | (eval $ac_try) 2>&5 |
7776 | ac_status=$? | |
c0d27fcc | 7777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
7778 | (exit $ac_status); }; }; then |
7779 | emacs_cv_void_star=yes | |
7780 | else | |
7781 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7782 | sed 's/^/| /' conftest.$ac_ext >&5 |
7783 | ||
98418dba CW |
7784 | emacs_cv_void_star=no |
7785 | fi | |
35996d22 | 7786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 7787 | fi |
c0d27fcc | 7788 | echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 |
98418dba CW |
7789 | echo "${ECHO_T}$emacs_cv_void_star" >&6 |
7790 | if test $emacs_cv_void_star = yes; then | |
c0d27fcc | 7791 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7792 | #define POINTER_TYPE void |
c0d27fcc | 7793 | _ACEOF |
98418dba CW |
7794 | |
7795 | else | |
c0d27fcc | 7796 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7797 | #define POINTER_TYPE char |
c0d27fcc | 7798 | _ACEOF |
98418dba CW |
7799 | |
7800 | fi | |
7801 | ||
c0d27fcc | 7802 | |
4494a266 JD |
7803 | |
7804 | ||
cd958eb3 | 7805 | |
19650fd6 AS |
7806 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
7807 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
35996d22 | 7808 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
98418dba CW |
7809 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
7810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7811 | else | |
c0d27fcc | 7812 | cat >conftest.make <<\_ACEOF |
98418dba | 7813 | all: |
19650fd6 | 7814 | @echo 'ac_maketemp="$(MAKE)"' |
c0d27fcc | 7815 | _ACEOF |
98418dba CW |
7816 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
7817 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
7818 | if test -n "$ac_maketemp"; then | |
7819 | eval ac_cv_prog_make_${ac_make}_set=yes | |
7820 | else | |
7821 | eval ac_cv_prog_make_${ac_make}_set=no | |
7822 | fi | |
7823 | rm -f conftest.make | |
7824 | fi | |
7825 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
c0d27fcc | 7826 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
7827 | echo "${ECHO_T}yes" >&6 |
7828 | SET_MAKE= | |
7829 | else | |
c0d27fcc | 7830 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
7831 | echo "${ECHO_T}no" >&6 |
7832 | SET_MAKE="MAKE=${MAKE-make}" | |
7833 | fi | |
7834 | ||
c0d27fcc MR |
7835 | |
7836 | echo "$as_me:$LINENO: checking for long file names" >&5 | |
98418dba CW |
7837 | echo $ECHO_N "checking for long file names... $ECHO_C" >&6 |
7838 | if test "${ac_cv_sys_long_file_names+set}" = set; then | |
7839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7840 | else | |
7841 | ac_cv_sys_long_file_names=yes | |
7842 | # Test for long file names in all the places we know might matter: | |
7843 | # . the current directory, where building will happen | |
7844 | # $prefix/lib where we will be installing things | |
7845 | # $exec_prefix/lib likewise | |
7846 | # eval it to expand exec_prefix. | |
7847 | # $TMPDIR if set, where it might want to write temporary files | |
7848 | # if $TMPDIR is not set: | |
7849 | # /tmp where it might want to write temporary files | |
7850 | # /var/tmp likewise | |
7851 | # /usr/tmp likewise | |
7852 | if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
7853 | ac_tmpdirs=$TMPDIR | |
7854 | else | |
7855 | ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
7856 | fi | |
7857 | for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
7858 | test -d $ac_dir || continue | |
7859 | test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
7860 | ac_xdir=$ac_dir/cf$$ | |
7861 | (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue | |
7862 | ac_tf1=$ac_xdir/conftest9012345 | |
7863 | ac_tf2=$ac_xdir/conftest9012346 | |
7864 | (echo 1 >$ac_tf1) 2>/dev/null | |
7865 | (echo 2 >$ac_tf2) 2>/dev/null | |
7866 | ac_val=`cat $ac_tf1 2>/dev/null` | |
7867 | if test ! -f $ac_tf1 || test "$ac_val" != 1; then | |
7868 | ac_cv_sys_long_file_names=no | |
7869 | rm -rf $ac_xdir 2>/dev/null | |
7870 | break | |
7871 | fi | |
7872 | rm -rf $ac_xdir 2>/dev/null | |
7873 | done | |
7874 | fi | |
c0d27fcc | 7875 | echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 |
98418dba CW |
7876 | echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 |
7877 | if test $ac_cv_sys_long_file_names = yes; then | |
7878 | ||
c0d27fcc | 7879 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7880 | #define HAVE_LONG_FILE_NAMES 1 |
c0d27fcc | 7881 | _ACEOF |
98418dba CW |
7882 | |
7883 | fi | |
7884 | ||
c0d27fcc | 7885 | |
98418dba CW |
7886 | #### Choose a window system. |
7887 | ||
c0d27fcc | 7888 | echo "$as_me:$LINENO: checking for X" >&5 |
98418dba CW |
7889 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
7890 | ||
c0d27fcc | 7891 | |
98418dba CW |
7892 | # Check whether --with-x or --without-x was given. |
7893 | if test "${with_x+set}" = set; then | |
7894 | withval="$with_x" | |
7895 | ||
7896 | fi; | |
7897 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
7898 | if test "x$with_x" = xno; then | |
7899 | # The user explicitly disabled X. | |
7900 | have_x=disabled | |
7901 | else | |
7902 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
7903 | # Both variables are already set. | |
7904 | have_x=yes | |
7905 | else | |
7906 | if test "${ac_cv_have_x+set}" = set; then | |
7907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7908 | else | |
7909 | # One or both of the vars are not set, and there is no cached value. | |
7910 | ac_x_includes=no ac_x_libraries=no | |
7911 | rm -fr conftest.dir | |
7912 | if mkdir conftest.dir; then | |
7913 | cd conftest.dir | |
7914 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
c0d27fcc | 7915 | cat >Imakefile <<'_ACEOF' |
98418dba CW |
7916 | acfindx: |
7917 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
c0d27fcc | 7918 | _ACEOF |
98418dba CW |
7919 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
7920 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7921 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
7922 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
7923 | for ac_extension in a so sl; do | |
7924 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
35996d22 AS |
7925 | test -f $ac_im_libdir/libX11.$ac_extension; then |
7926 | ac_im_usrlibdir=$ac_im_libdir; break | |
98418dba CW |
7927 | fi |
7928 | done | |
7929 | # Screen out bogus values from the imake configuration. They are | |
7930 | # bogus both because they are the default anyway, and because | |
7931 | # using them would break gcc on systems where it needs fixed includes. | |
7932 | case $ac_im_incroot in | |
7933 | /usr/include) ;; | |
7934 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
7935 | esac | |
7936 | case $ac_im_usrlibdir in | |
7937 | /usr/lib | /lib) ;; | |
7938 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
7939 | esac | |
7940 | fi | |
7941 | cd .. | |
7942 | rm -fr conftest.dir | |
7943 | fi | |
7944 | ||
7945 | # Standard set of common directories for X headers. | |
7946 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7947 | ac_x_header_dirs=' | |
7948 | /usr/X11/include | |
7949 | /usr/X11R6/include | |
7950 | /usr/X11R5/include | |
7951 | /usr/X11R4/include | |
7952 | ||
7953 | /usr/include/X11 | |
7954 | /usr/include/X11R6 | |
7955 | /usr/include/X11R5 | |
7956 | /usr/include/X11R4 | |
7957 | ||
7958 | /usr/local/X11/include | |
7959 | /usr/local/X11R6/include | |
7960 | /usr/local/X11R5/include | |
7961 | /usr/local/X11R4/include | |
7962 | ||
7963 | /usr/local/include/X11 | |
7964 | /usr/local/include/X11R6 | |
7965 | /usr/local/include/X11R5 | |
7966 | /usr/local/include/X11R4 | |
7967 | ||
7968 | /usr/X386/include | |
7969 | /usr/x386/include | |
7970 | /usr/XFree86/include/X11 | |
7971 | ||
7972 | /usr/include | |
7973 | /usr/local/include | |
7974 | /usr/unsupported/include | |
7975 | /usr/athena/include | |
7976 | /usr/local/x11r5/include | |
7977 | /usr/lpp/Xamples/include | |
7978 | ||
7979 | /usr/openwin/include | |
7980 | /usr/openwin/share/include' | |
7981 | ||
7982 | if test "$ac_x_includes" = no; then | |
4494a266 | 7983 | # Guess where to find include files, by looking for Intrinsic.h. |
98418dba CW |
7984 | # First, try using that file with no special directory specified. |
7985 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7986 | /* confdefs.h. */ |
7987 | _ACEOF | |
7988 | cat confdefs.h >>conftest.$ac_ext | |
7989 | cat >>conftest.$ac_ext <<_ACEOF | |
7990 | /* end confdefs.h. */ | |
98418dba CW |
7991 | #include <X11/Intrinsic.h> |
7992 | _ACEOF | |
c0d27fcc | 7993 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
7994 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7995 | ac_status=$? | |
6bae0ccf | 7996 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
7997 | rm -f conftest.er1 |
7998 | cat conftest.err >&5 | |
c0d27fcc | 7999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8000 | (exit $ac_status); } >/dev/null; then |
8001 | if test -s conftest.err; then | |
8002 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 8003 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
8004 | else |
8005 | ac_cpp_err= | |
8006 | fi | |
8007 | else | |
8008 | ac_cpp_err=yes | |
8009 | fi | |
8010 | if test -z "$ac_cpp_err"; then | |
8011 | # We can compile using X headers with no special include directory. | |
8012 | ac_x_includes= | |
8013 | else | |
8014 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8015 | sed 's/^/| /' conftest.$ac_ext >&5 |
8016 | ||
98418dba CW |
8017 | for ac_dir in $ac_x_header_dirs; do |
8018 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
8019 | ac_x_includes=$ac_dir | |
8020 | break | |
8021 | fi | |
8022 | done | |
8023 | fi | |
8024 | rm -f conftest.err conftest.$ac_ext | |
8025 | fi # $ac_x_includes = no | |
8026 | ||
8027 | if test "$ac_x_libraries" = no; then | |
8028 | # Check for the libraries. | |
8029 | # See if we find them without any special options. | |
8030 | # Don't add to $LIBS permanently. | |
8031 | ac_save_LIBS=$LIBS | |
8032 | LIBS="-lXt $LIBS" | |
8033 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8034 | /* confdefs.h. */ |
8035 | _ACEOF | |
8036 | cat confdefs.h >>conftest.$ac_ext | |
8037 | cat >>conftest.$ac_ext <<_ACEOF | |
8038 | /* end confdefs.h. */ | |
98418dba | 8039 | #include <X11/Intrinsic.h> |
98418dba CW |
8040 | int |
8041 | main () | |
8042 | { | |
8043 | XtMalloc (0) | |
8044 | ; | |
8045 | return 0; | |
8046 | } | |
8047 | _ACEOF | |
8048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8050 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8051 | ac_status=$? |
35996d22 AS |
8052 | grep -v '^ *+' conftest.er1 >conftest.err |
8053 | rm -f conftest.er1 | |
8054 | cat conftest.err >&5 | |
c0d27fcc | 8055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8056 | (exit $ac_status); } && |
4494a266 JD |
8057 | { ac_try='test -z "$ac_c_werror_flag" |
8058 | || test ! -s conftest.err' | |
35996d22 AS |
8059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8060 | (eval $ac_try) 2>&5 | |
8061 | ac_status=$? | |
8062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8063 | (exit $ac_status); }; } && | |
8064 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8066 | (eval $ac_try) 2>&5 |
8067 | ac_status=$? | |
c0d27fcc | 8068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8069 | (exit $ac_status); }; }; then |
8070 | LIBS=$ac_save_LIBS | |
8071 | # We can link X programs with no special library path. | |
8072 | ac_x_libraries= | |
8073 | else | |
8074 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8075 | sed 's/^/| /' conftest.$ac_ext >&5 |
8076 | ||
98418dba CW |
8077 | LIBS=$ac_save_LIBS |
8078 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
8079 | do | |
8080 | # Don't even attempt the hair of trying to link an X program! | |
8081 | for ac_extension in a so sl; do | |
8082 | if test -r $ac_dir/libXt.$ac_extension; then | |
8083 | ac_x_libraries=$ac_dir | |
8084 | break 2 | |
8085 | fi | |
8086 | done | |
8087 | done | |
8088 | fi | |
35996d22 AS |
8089 | rm -f conftest.err conftest.$ac_objext \ |
8090 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
8091 | fi # $ac_x_libraries = no |
8092 | ||
8093 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
8094 | # Didn't find X anywhere. Cache the known absence of X. | |
8095 | ac_cv_have_x="have_x=no" | |
8096 | else | |
8097 | # Record where we found X for the cache. | |
8098 | ac_cv_have_x="have_x=yes \ | |
35996d22 | 8099 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
98418dba CW |
8100 | fi |
8101 | fi | |
8102 | ||
8103 | fi | |
8104 | eval "$ac_cv_have_x" | |
8105 | fi # $with_x != no | |
8106 | ||
8107 | if test "$have_x" != yes; then | |
c0d27fcc | 8108 | echo "$as_me:$LINENO: result: $have_x" >&5 |
98418dba CW |
8109 | echo "${ECHO_T}$have_x" >&6 |
8110 | no_x=yes | |
8111 | else | |
8112 | # If each of the values was on the command line, it overrides each guess. | |
8113 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
8114 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
8115 | # Update the cache value to reflect the command line values. | |
8116 | ac_cv_have_x="have_x=yes \ | |
8117 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
4494a266 JD |
8118 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
8119 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
98418dba CW |
8120 | fi |
8121 | ||
8122 | if test "$no_x" = yes; then | |
8123 | window_system=none | |
8124 | else | |
8125 | window_system=x11 | |
8126 | fi | |
8127 | ||
8128 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
8129 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
8130 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
8131 | x_default_search_path="" | |
8132 | for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
8133 | x_search_path="\ | |
8134 | ${x_library}/X11/%L/%T/%N%C%S:\ | |
8135 | ${x_library}/X11/%l/%T/%N%C%S:\ | |
8136 | ${x_library}/X11/%T/%N%C%S:\ | |
8137 | ${x_library}/X11/%L/%T/%N%S:\ | |
8138 | ${x_library}/X11/%l/%T/%N%S:\ | |
8139 | ${x_library}/X11/%T/%N%S" | |
8140 | if test x"${x_default_search_path}" = x; then | |
8141 | x_default_search_path=${x_search_path} | |
8142 | else | |
8143 | x_default_search_path="${x_search_path}:${x_default_search_path}" | |
8144 | fi | |
8145 | done | |
8146 | fi | |
8147 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
8148 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
8149 | fi | |
8150 | ||
8151 | if test x"${x_includes}" = x; then | |
8152 | bitmapdir=/usr/include/X11/bitmaps | |
8153 | else | |
8154 | # accumulate include directories that have X11 bitmap subdirectories | |
8155 | bmd_acc="dummyval" | |
8156 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
8157 | if test -d "${bmd}/X11/bitmaps"; then | |
8158 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
8159 | fi | |
8160 | if test -d "${bmd}/bitmaps"; then | |
8161 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" | |
8162 | fi | |
8163 | done | |
8164 | if test ${bmd_acc} != "dummyval"; then | |
8165 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
8166 | fi | |
8167 | fi | |
8168 | ||
8169 | case "${window_system}" in | |
8170 | x11 ) | |
8171 | HAVE_X_WINDOWS=yes | |
8172 | HAVE_X11=yes | |
8173 | case "${with_x_toolkit}" in | |
8174 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
8175 | motif ) USE_X_TOOLKIT=MOTIF ;; | |
488dd4c4 JD |
8176 | gtk ) with_gtk=yes |
8177 | USE_X_TOOLKIT=none ;; | |
98418dba CW |
8178 | no ) USE_X_TOOLKIT=none ;; |
8179 | * ) USE_X_TOOLKIT=maybe ;; | |
8180 | esac | |
8181 | ;; | |
8182 | none ) | |
8183 | HAVE_X_WINDOWS=no | |
8184 | HAVE_X11=no | |
8185 | USE_X_TOOLKIT=none | |
8186 | ;; | |
8187 | esac | |
8188 | ||
8189 | ### If we're using X11, we should use the X menu package. | |
8190 | HAVE_MENUS=no | |
8191 | case ${HAVE_X11} in | |
8192 | yes ) HAVE_MENUS=yes ;; | |
8193 | esac | |
8194 | ||
8195 | if test "${opsys}" = "hpux9"; then | |
8196 | case "${x_libraries}" in | |
8197 | *X11R4* ) | |
8198 | opsysfile="s/hpux9-x11r4.h" | |
8199 | ;; | |
8200 | esac | |
8201 | fi | |
8202 | ||
8203 | if test "${opsys}" = "hpux9shr"; then | |
8204 | case "${x_libraries}" in | |
8205 | *X11R4* ) | |
8206 | opsysfile="s/hpux9shxr4.h" | |
8207 | ;; | |
8208 | esac | |
8209 | fi | |
8210 | ||
8211 | ### Compute the unexec source name from the object name. | |
8212 | UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
8213 | ||
8214 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
8215 | # Assume not, until told otherwise. | |
8216 | GNU_MALLOC=yes | |
8217 | doug_lea_malloc=yes | |
c0d27fcc | 8218 | echo "$as_me:$LINENO: checking for malloc_get_state" >&5 |
98418dba CW |
8219 | echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 |
8220 | if test "${ac_cv_func_malloc_get_state+set}" = set; then | |
8221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8222 | else | |
8223 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8224 | /* confdefs.h. */ |
8225 | _ACEOF | |
8226 | cat confdefs.h >>conftest.$ac_ext | |
8227 | cat >>conftest.$ac_ext <<_ACEOF | |
8228 | /* end confdefs.h. */ | |
35996d22 AS |
8229 | /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state. |
8230 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8231 | #define malloc_get_state innocuous_malloc_get_state | |
8232 | ||
98418dba | 8233 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
8234 | which can conflict with char malloc_get_state (); below. |
8235 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8236 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 8237 | |
19650fd6 AS |
8238 | #ifdef __STDC__ |
8239 | # include <limits.h> | |
8240 | #else | |
8241 | # include <assert.h> | |
8242 | #endif | |
35996d22 AS |
8243 | |
8244 | #undef malloc_get_state | |
8245 | ||
98418dba CW |
8246 | /* Override any gcc2 internal prototype to avoid an error. */ |
8247 | #ifdef __cplusplus | |
8248 | extern "C" | |
19650fd6 | 8249 | { |
98418dba CW |
8250 | #endif |
8251 | /* We use char because int might match the return type of a gcc2 | |
8252 | builtin and then its argument prototype would still apply. */ | |
8253 | char malloc_get_state (); | |
98418dba CW |
8254 | /* The GNU C library defines this for functions which it implements |
8255 | to always fail with ENOSYS. Some functions are actually named | |
8256 | something starting with __ and the normal name is an alias. */ | |
8257 | #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
8258 | choke me | |
8259 | #else | |
19650fd6 AS |
8260 | char (*f) () = malloc_get_state; |
8261 | #endif | |
8262 | #ifdef __cplusplus | |
8263 | } | |
98418dba CW |
8264 | #endif |
8265 | ||
19650fd6 AS |
8266 | int |
8267 | main () | |
8268 | { | |
8269 | return f != malloc_get_state; | |
98418dba CW |
8270 | ; |
8271 | return 0; | |
8272 | } | |
8273 | _ACEOF | |
8274 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8276 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8277 | ac_status=$? |
35996d22 AS |
8278 | grep -v '^ *+' conftest.er1 >conftest.err |
8279 | rm -f conftest.er1 | |
8280 | cat conftest.err >&5 | |
c0d27fcc | 8281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8282 | (exit $ac_status); } && |
4494a266 JD |
8283 | { ac_try='test -z "$ac_c_werror_flag" |
8284 | || test ! -s conftest.err' | |
35996d22 AS |
8285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8286 | (eval $ac_try) 2>&5 | |
8287 | ac_status=$? | |
8288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8289 | (exit $ac_status); }; } && | |
8290 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8292 | (eval $ac_try) 2>&5 |
8293 | ac_status=$? | |
c0d27fcc | 8294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8295 | (exit $ac_status); }; }; then |
8296 | ac_cv_func_malloc_get_state=yes | |
8297 | else | |
8298 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8299 | sed 's/^/| /' conftest.$ac_ext >&5 |
8300 | ||
98418dba CW |
8301 | ac_cv_func_malloc_get_state=no |
8302 | fi | |
35996d22 AS |
8303 | rm -f conftest.err conftest.$ac_objext \ |
8304 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 8305 | fi |
c0d27fcc | 8306 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 |
98418dba CW |
8307 | echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 |
8308 | if test $ac_cv_func_malloc_get_state = yes; then | |
8309 | : | |
8310 | else | |
8311 | doug_lea_malloc=no | |
8312 | fi | |
8313 | ||
c0d27fcc | 8314 | echo "$as_me:$LINENO: checking for malloc_set_state" >&5 |
98418dba CW |
8315 | echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 |
8316 | if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
8317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8318 | else | |
8319 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8320 | /* confdefs.h. */ |
8321 | _ACEOF | |
8322 | cat confdefs.h >>conftest.$ac_ext | |
8323 | cat >>conftest.$ac_ext <<_ACEOF | |
8324 | /* end confdefs.h. */ | |
35996d22 AS |
8325 | /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state. |
8326 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8327 | #define malloc_set_state innocuous_malloc_set_state | |
8328 | ||
98418dba | 8329 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
8330 | which can conflict with char malloc_set_state (); below. |
8331 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8332 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 8333 | |
19650fd6 AS |
8334 | #ifdef __STDC__ |
8335 | # include <limits.h> | |
8336 | #else | |
8337 | # include <assert.h> | |
8338 | #endif | |
35996d22 AS |
8339 | |
8340 | #undef malloc_set_state | |
8341 | ||
98418dba CW |
8342 | /* Override any gcc2 internal prototype to avoid an error. */ |
8343 | #ifdef __cplusplus | |
8344 | extern "C" | |
19650fd6 | 8345 | { |
98418dba CW |
8346 | #endif |
8347 | /* We use char because int might match the return type of a gcc2 | |
8348 | builtin and then its argument prototype would still apply. */ | |
8349 | char malloc_set_state (); | |
98418dba CW |
8350 | /* The GNU C library defines this for functions which it implements |
8351 | to always fail with ENOSYS. Some functions are actually named | |
8352 | something starting with __ and the normal name is an alias. */ | |
8353 | #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
8354 | choke me | |
8355 | #else | |
19650fd6 AS |
8356 | char (*f) () = malloc_set_state; |
8357 | #endif | |
8358 | #ifdef __cplusplus | |
8359 | } | |
98418dba CW |
8360 | #endif |
8361 | ||
19650fd6 AS |
8362 | int |
8363 | main () | |
8364 | { | |
8365 | return f != malloc_set_state; | |
98418dba CW |
8366 | ; |
8367 | return 0; | |
8368 | } | |
8369 | _ACEOF | |
8370 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8372 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8373 | ac_status=$? |
35996d22 AS |
8374 | grep -v '^ *+' conftest.er1 >conftest.err |
8375 | rm -f conftest.er1 | |
8376 | cat conftest.err >&5 | |
c0d27fcc | 8377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8378 | (exit $ac_status); } && |
4494a266 JD |
8379 | { ac_try='test -z "$ac_c_werror_flag" |
8380 | || test ! -s conftest.err' | |
35996d22 AS |
8381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8382 | (eval $ac_try) 2>&5 | |
8383 | ac_status=$? | |
8384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8385 | (exit $ac_status); }; } && | |
8386 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8388 | (eval $ac_try) 2>&5 |
8389 | ac_status=$? | |
c0d27fcc | 8390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8391 | (exit $ac_status); }; }; then |
8392 | ac_cv_func_malloc_set_state=yes | |
8393 | else | |
8394 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8395 | sed 's/^/| /' conftest.$ac_ext >&5 |
8396 | ||
98418dba CW |
8397 | ac_cv_func_malloc_set_state=no |
8398 | fi | |
35996d22 AS |
8399 | rm -f conftest.err conftest.$ac_objext \ |
8400 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 8401 | fi |
c0d27fcc | 8402 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 |
98418dba CW |
8403 | echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 |
8404 | if test $ac_cv_func_malloc_set_state = yes; then | |
8405 | : | |
8406 | else | |
8407 | doug_lea_malloc=no | |
8408 | fi | |
8409 | ||
c0d27fcc | 8410 | echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 |
98418dba CW |
8411 | echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 |
8412 | if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
8413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8414 | else | |
8415 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8416 | /* confdefs.h. */ |
8417 | _ACEOF | |
8418 | cat confdefs.h >>conftest.$ac_ext | |
8419 | cat >>conftest.$ac_ext <<_ACEOF | |
8420 | /* end confdefs.h. */ | |
98418dba | 8421 | extern void (* __after_morecore_hook)(); |
98418dba CW |
8422 | int |
8423 | main () | |
8424 | { | |
8425 | __after_morecore_hook = 0 | |
8426 | ; | |
8427 | return 0; | |
8428 | } | |
8429 | _ACEOF | |
8430 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8431 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8432 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8433 | ac_status=$? |
35996d22 AS |
8434 | grep -v '^ *+' conftest.er1 >conftest.err |
8435 | rm -f conftest.er1 | |
8436 | cat conftest.err >&5 | |
c0d27fcc | 8437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8438 | (exit $ac_status); } && |
4494a266 JD |
8439 | { ac_try='test -z "$ac_c_werror_flag" |
8440 | || test ! -s conftest.err' | |
35996d22 AS |
8441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8442 | (eval $ac_try) 2>&5 | |
8443 | ac_status=$? | |
8444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8445 | (exit $ac_status); }; } && | |
8446 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8448 | (eval $ac_try) 2>&5 |
8449 | ac_status=$? | |
c0d27fcc | 8450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8451 | (exit $ac_status); }; }; then |
8452 | emacs_cv_var___after_morecore_hook=yes | |
8453 | else | |
8454 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8455 | sed 's/^/| /' conftest.$ac_ext >&5 |
8456 | ||
98418dba CW |
8457 | emacs_cv_var___after_morecore_hook=no |
8458 | fi | |
35996d22 AS |
8459 | rm -f conftest.err conftest.$ac_objext \ |
8460 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 8461 | fi |
c0d27fcc | 8462 | echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 |
98418dba CW |
8463 | echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 |
8464 | if test $emacs_cv_var___after_morecore_hook = no; then | |
8465 | doug_lea_malloc=no | |
8466 | fi | |
8467 | if test "${system_malloc}" = "yes"; then | |
8468 | GNU_MALLOC=no | |
8469 | GNU_MALLOC_reason=" | |
8470 | (The GNU allocators don't work with this system configuration.)" | |
8471 | fi | |
8472 | if test "$doug_lea_malloc" = "yes" ; then | |
8473 | if test "$GNU_MALLOC" = yes ; then | |
8474 | GNU_MALLOC_reason=" | |
8475 | (Using Doug Lea's new malloc from the GNU C Library.)" | |
8476 | fi | |
b936fae4 | 8477 | |
c0d27fcc | 8478 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8479 | #define DOUG_LEA_MALLOC 1 |
c0d27fcc | 8480 | _ACEOF |
98418dba CW |
8481 | |
8482 | fi | |
8483 | ||
8484 | if test x"${REL_ALLOC}" = x; then | |
8485 | REL_ALLOC=${GNU_MALLOC} | |
8486 | fi | |
8487 | ||
8488 | ||
c0d27fcc MR |
8489 | |
8490 | ||
8491 | for ac_header in stdlib.h unistd.h | |
98418dba CW |
8492 | do |
8493 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
8494 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8495 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
8496 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8497 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
8499 | fi |
8500 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8501 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 8502 | else |
c0d27fcc MR |
8503 | # Is the header compilable? |
8504 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8505 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8506 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8507 | /* confdefs.h. */ |
8508 | _ACEOF | |
8509 | cat confdefs.h >>conftest.$ac_ext | |
8510 | cat >>conftest.$ac_ext <<_ACEOF | |
8511 | /* end confdefs.h. */ | |
98418dba CW |
8512 | $ac_includes_default |
8513 | #include <$ac_header> | |
8514 | _ACEOF | |
8515 | rm -f conftest.$ac_objext | |
c0d27fcc | 8516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 8517 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 8518 | ac_status=$? |
35996d22 AS |
8519 | grep -v '^ *+' conftest.er1 >conftest.err |
8520 | rm -f conftest.er1 | |
8521 | cat conftest.err >&5 | |
c0d27fcc | 8522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8523 | (exit $ac_status); } && |
4494a266 JD |
8524 | { ac_try='test -z "$ac_c_werror_flag" |
8525 | || test ! -s conftest.err' | |
35996d22 AS |
8526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8527 | (eval $ac_try) 2>&5 | |
8528 | ac_status=$? | |
8529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8530 | (exit $ac_status); }; } && | |
8531 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 8532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8533 | (eval $ac_try) 2>&5 |
8534 | ac_status=$? | |
c0d27fcc | 8535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8536 | (exit $ac_status); }; }; then |
c0d27fcc | 8537 | ac_header_compiler=yes |
98418dba CW |
8538 | else |
8539 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8540 | sed 's/^/| /' conftest.$ac_ext >&5 |
8541 | ||
c0d27fcc | 8542 | ac_header_compiler=no |
98418dba | 8543 | fi |
35996d22 | 8544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
8545 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8546 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
98418dba | 8547 | |
c0d27fcc MR |
8548 | # Is the header present? |
8549 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8550 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8551 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8552 | /* confdefs.h. */ |
8553 | _ACEOF | |
8554 | cat confdefs.h >>conftest.$ac_ext | |
8555 | cat >>conftest.$ac_ext <<_ACEOF | |
8556 | /* end confdefs.h. */ | |
98418dba CW |
8557 | #include <$ac_header> |
8558 | _ACEOF | |
c0d27fcc | 8559 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
8560 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8561 | ac_status=$? | |
6bae0ccf | 8562 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
8563 | rm -f conftest.er1 |
8564 | cat conftest.err >&5 | |
c0d27fcc | 8565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8566 | (exit $ac_status); } >/dev/null; then |
8567 | if test -s conftest.err; then | |
8568 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 8569 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
8570 | else |
8571 | ac_cpp_err= | |
8572 | fi | |
8573 | else | |
8574 | ac_cpp_err=yes | |
8575 | fi | |
8576 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 8577 | ac_header_preproc=yes |
98418dba CW |
8578 | else |
8579 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8580 | sed 's/^/| /' conftest.$ac_ext >&5 |
8581 | ||
c0d27fcc | 8582 | ac_header_preproc=no |
98418dba CW |
8583 | fi |
8584 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
8585 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8586 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8587 | ||
8588 | # So? What about this header? | |
35996d22 AS |
8589 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8590 | yes:no: ) | |
c0d27fcc MR |
8591 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8592 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
8593 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8594 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8595 | ac_header_preproc=yes | |
19650fd6 | 8596 | ;; |
35996d22 | 8597 | no:yes:* ) |
c0d27fcc MR |
8598 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8599 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
8600 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8601 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8602 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8603 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8604 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8605 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 8606 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 8607 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
8608 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8609 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
8610 | ( |
8611 | cat <<\_ASBOX | |
35996d22 AS |
8612 | ## ------------------------------------------ ## |
8613 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8614 | ## ------------------------------------------ ## | |
19650fd6 AS |
8615 | _ASBOX |
8616 | ) | | |
8617 | sed "s/^/$as_me: WARNING: /" >&2 | |
8618 | ;; | |
c0d27fcc MR |
8619 | esac |
8620 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8621 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8622 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8624 | else | |
35996d22 | 8625 | eval "$as_ac_Header=\$ac_header_preproc" |
98418dba | 8626 | fi |
c0d27fcc | 8627 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 8628 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
8629 | |
8630 | fi | |
98418dba | 8631 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 8632 | cat >>confdefs.h <<_ACEOF |
98418dba | 8633 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 8634 | _ACEOF |
98418dba CW |
8635 | |
8636 | fi | |
c0d27fcc | 8637 | |
98418dba CW |
8638 | done |
8639 | ||
c0d27fcc | 8640 | |
98418dba CW |
8641 | for ac_func in getpagesize |
8642 | do | |
8643 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 8644 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
8645 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8646 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8648 | else | |
8649 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8650 | /* confdefs.h. */ |
8651 | _ACEOF | |
8652 | cat confdefs.h >>conftest.$ac_ext | |
8653 | cat >>conftest.$ac_ext <<_ACEOF | |
8654 | /* end confdefs.h. */ | |
35996d22 AS |
8655 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8656 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8657 | #define $ac_func innocuous_$ac_func | |
8658 | ||
98418dba | 8659 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
8660 | which can conflict with char $ac_func (); below. |
8661 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8662 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 8663 | |
19650fd6 AS |
8664 | #ifdef __STDC__ |
8665 | # include <limits.h> | |
8666 | #else | |
8667 | # include <assert.h> | |
8668 | #endif | |
35996d22 AS |
8669 | |
8670 | #undef $ac_func | |
8671 | ||
98418dba CW |
8672 | /* Override any gcc2 internal prototype to avoid an error. */ |
8673 | #ifdef __cplusplus | |
8674 | extern "C" | |
19650fd6 | 8675 | { |
98418dba CW |
8676 | #endif |
8677 | /* We use char because int might match the return type of a gcc2 | |
8678 | builtin and then its argument prototype would still apply. */ | |
8679 | char $ac_func (); | |
98418dba CW |
8680 | /* The GNU C library defines this for functions which it implements |
8681 | to always fail with ENOSYS. Some functions are actually named | |
8682 | something starting with __ and the normal name is an alias. */ | |
8683 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8684 | choke me | |
8685 | #else | |
19650fd6 AS |
8686 | char (*f) () = $ac_func; |
8687 | #endif | |
8688 | #ifdef __cplusplus | |
8689 | } | |
98418dba CW |
8690 | #endif |
8691 | ||
19650fd6 AS |
8692 | int |
8693 | main () | |
8694 | { | |
8695 | return f != $ac_func; | |
98418dba CW |
8696 | ; |
8697 | return 0; | |
8698 | } | |
8699 | _ACEOF | |
8700 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8702 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8703 | ac_status=$? |
35996d22 AS |
8704 | grep -v '^ *+' conftest.er1 >conftest.err |
8705 | rm -f conftest.er1 | |
8706 | cat conftest.err >&5 | |
c0d27fcc | 8707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8708 | (exit $ac_status); } && |
4494a266 JD |
8709 | { ac_try='test -z "$ac_c_werror_flag" |
8710 | || test ! -s conftest.err' | |
35996d22 AS |
8711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8712 | (eval $ac_try) 2>&5 | |
8713 | ac_status=$? | |
8714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8715 | (exit $ac_status); }; } && | |
8716 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8718 | (eval $ac_try) 2>&5 |
8719 | ac_status=$? | |
c0d27fcc | 8720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8721 | (exit $ac_status); }; }; then |
8722 | eval "$as_ac_var=yes" | |
8723 | else | |
8724 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8725 | sed 's/^/| /' conftest.$ac_ext >&5 |
8726 | ||
98418dba CW |
8727 | eval "$as_ac_var=no" |
8728 | fi | |
35996d22 AS |
8729 | rm -f conftest.err conftest.$ac_objext \ |
8730 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 8731 | fi |
c0d27fcc | 8732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
8733 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8734 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 8735 | cat >>confdefs.h <<_ACEOF |
98418dba | 8736 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 8737 | _ACEOF |
98418dba CW |
8738 | |
8739 | fi | |
8740 | done | |
8741 | ||
c0d27fcc | 8742 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
98418dba CW |
8743 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
8744 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
8745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8746 | else | |
8747 | if test "$cross_compiling" = yes; then | |
8748 | ac_cv_func_mmap_fixed_mapped=no | |
8749 | else | |
8750 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8751 | /* confdefs.h. */ |
8752 | _ACEOF | |
8753 | cat confdefs.h >>conftest.$ac_ext | |
8754 | cat >>conftest.$ac_ext <<_ACEOF | |
8755 | /* end confdefs.h. */ | |
98418dba | 8756 | $ac_includes_default |
c0d27fcc MR |
8757 | /* malloc might have been renamed as rpl_malloc. */ |
8758 | #undef malloc | |
8759 | ||
98418dba CW |
8760 | /* Thanks to Mike Haertel and Jim Avera for this test. |
8761 | Here is a matrix of mmap possibilities: | |
8762 | mmap private not fixed | |
8763 | mmap private fixed at somewhere currently unmapped | |
8764 | mmap private fixed at somewhere already mapped | |
8765 | mmap shared not fixed | |
8766 | mmap shared fixed at somewhere currently unmapped | |
8767 | mmap shared fixed at somewhere already mapped | |
8768 | For private mappings, we should verify that changes cannot be read() | |
8769 | back from the file, nor mmap's back from the file at a different | |
8770 | address. (There have been systems where private was not correctly | |
8771 | implemented like the infamous i386 svr4.0, and systems where the | |
8772 | VM page cache was not coherent with the file system buffer cache | |
8773 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8774 | For shared mappings, we should conversely verify that changes get | |
c0d27fcc | 8775 | propagated back to all the places they're supposed to be. |
98418dba CW |
8776 | |
8777 | Grep wants private fixed already mapped. | |
8778 | The main things grep needs to know about mmap are: | |
8779 | * does it exist and is it safe to write into the mmap'd area | |
8780 | * how to use it (BSD variants) */ | |
8781 | ||
8782 | #include <fcntl.h> | |
8783 | #include <sys/mman.h> | |
8784 | ||
8785 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
8786 | char *malloc (); | |
8787 | #endif | |
8788 | ||
8789 | /* This mess was copied from the GNU getpagesize.h. */ | |
8790 | #if !HAVE_GETPAGESIZE | |
8791 | /* Assume that all systems that can run configure have sys/param.h. */ | |
8792 | # if !HAVE_SYS_PARAM_H | |
8793 | # define HAVE_SYS_PARAM_H 1 | |
8794 | # endif | |
8795 | ||
8796 | # ifdef _SC_PAGESIZE | |
8797 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8798 | # else /* no _SC_PAGESIZE */ | |
8799 | # if HAVE_SYS_PARAM_H | |
8800 | # include <sys/param.h> | |
8801 | # ifdef EXEC_PAGESIZE | |
8802 | # define getpagesize() EXEC_PAGESIZE | |
8803 | # else /* no EXEC_PAGESIZE */ | |
8804 | # ifdef NBPG | |
8805 | # define getpagesize() NBPG * CLSIZE | |
8806 | # ifndef CLSIZE | |
8807 | # define CLSIZE 1 | |
8808 | # endif /* no CLSIZE */ | |
8809 | # else /* no NBPG */ | |
8810 | # ifdef NBPC | |
8811 | # define getpagesize() NBPC | |
8812 | # else /* no NBPC */ | |
8813 | # ifdef PAGESIZE | |
8814 | # define getpagesize() PAGESIZE | |
8815 | # endif /* PAGESIZE */ | |
8816 | # endif /* no NBPC */ | |
8817 | # endif /* no NBPG */ | |
8818 | # endif /* no EXEC_PAGESIZE */ | |
8819 | # else /* no HAVE_SYS_PARAM_H */ | |
8820 | # define getpagesize() 8192 /* punt totally */ | |
8821 | # endif /* no HAVE_SYS_PARAM_H */ | |
8822 | # endif /* no _SC_PAGESIZE */ | |
8823 | ||
8824 | #endif /* no HAVE_GETPAGESIZE */ | |
8825 | ||
8826 | int | |
8827 | main () | |
8828 | { | |
8829 | char *data, *data2, *data3; | |
8830 | int i, pagesize; | |
8831 | int fd; | |
8832 | ||
8833 | pagesize = getpagesize (); | |
8834 | ||
8835 | /* First, make a file with some known garbage in it. */ | |
8836 | data = (char *) malloc (pagesize); | |
8837 | if (!data) | |
8838 | exit (1); | |
8839 | for (i = 0; i < pagesize; ++i) | |
8840 | *(data + i) = rand (); | |
8841 | umask (0); | |
8842 | fd = creat ("conftest.mmap", 0600); | |
8843 | if (fd < 0) | |
8844 | exit (1); | |
8845 | if (write (fd, data, pagesize) != pagesize) | |
8846 | exit (1); | |
8847 | close (fd); | |
8848 | ||
8849 | /* Next, try to mmap the file at a fixed address which already has | |
8850 | something else allocated at it. If we can, also make sure that | |
8851 | we see the same garbage. */ | |
8852 | fd = open ("conftest.mmap", O_RDWR); | |
8853 | if (fd < 0) | |
8854 | exit (1); | |
8855 | data2 = (char *) malloc (2 * pagesize); | |
8856 | if (!data2) | |
8857 | exit (1); | |
35996d22 | 8858 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
98418dba | 8859 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
35996d22 | 8860 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
98418dba CW |
8861 | exit (1); |
8862 | for (i = 0; i < pagesize; ++i) | |
8863 | if (*(data + i) != *(data2 + i)) | |
8864 | exit (1); | |
8865 | ||
8866 | /* Finally, make sure that changes to the mapped area do not | |
8867 | percolate back to the file as seen by read(). (This is a bug on | |
8868 | some variants of i386 svr4.0.) */ | |
8869 | for (i = 0; i < pagesize; ++i) | |
8870 | *(data2 + i) = *(data2 + i) + 1; | |
8871 | data3 = (char *) malloc (pagesize); | |
8872 | if (!data3) | |
8873 | exit (1); | |
8874 | if (read (fd, data3, pagesize) != pagesize) | |
8875 | exit (1); | |
8876 | for (i = 0; i < pagesize; ++i) | |
8877 | if (*(data + i) != *(data3 + i)) | |
8878 | exit (1); | |
8879 | close (fd); | |
8880 | exit (0); | |
8881 | } | |
8882 | _ACEOF | |
8883 | rm -f conftest$ac_exeext | |
c0d27fcc | 8884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
98418dba CW |
8885 | (eval $ac_link) 2>&5 |
8886 | ac_status=$? | |
c0d27fcc | 8887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8888 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 8889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8890 | (eval $ac_try) 2>&5 |
8891 | ac_status=$? | |
c0d27fcc | 8892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8893 | (exit $ac_status); }; }; then |
8894 | ac_cv_func_mmap_fixed_mapped=yes | |
8895 | else | |
8896 | echo "$as_me: program exited with status $ac_status" >&5 | |
8897 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8898 | sed 's/^/| /' conftest.$ac_ext >&5 |
8899 | ||
c0d27fcc | 8900 | ( exit $ac_status ) |
98418dba CW |
8901 | ac_cv_func_mmap_fixed_mapped=no |
8902 | fi | |
35996d22 | 8903 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
98418dba CW |
8904 | fi |
8905 | fi | |
c0d27fcc | 8906 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
98418dba CW |
8907 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
8908 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
8909 | ||
c0d27fcc | 8910 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8911 | #define HAVE_MMAP 1 |
c0d27fcc | 8912 | _ACEOF |
98418dba CW |
8913 | |
8914 | fi | |
8915 | rm -f conftest.mmap | |
8916 | ||
8917 | if test $use_mmap_for_buffers = yes; then | |
8918 | REL_ALLOC=no | |
8919 | fi | |
8920 | ||
8921 | LIBS="$libsrc_libs $LIBS" | |
8922 | ||
c0d27fcc MR |
8923 | |
8924 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
98418dba CW |
8925 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
8926 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
8927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8928 | else | |
8929 | ac_check_lib_save_LIBS=$LIBS | |
8930 | LIBS="-ldnet $LIBS" | |
8931 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8932 | /* confdefs.h. */ |
8933 | _ACEOF | |
8934 | cat confdefs.h >>conftest.$ac_ext | |
8935 | cat >>conftest.$ac_ext <<_ACEOF | |
8936 | /* end confdefs.h. */ | |
98418dba CW |
8937 | |
8938 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8939 | #ifdef __cplusplus | |
8940 | extern "C" | |
8941 | #endif | |
8942 | /* We use char because int might match the return type of a gcc2 | |
8943 | builtin and then its argument prototype would still apply. */ | |
8944 | char dnet_ntoa (); | |
98418dba CW |
8945 | int |
8946 | main () | |
8947 | { | |
8948 | dnet_ntoa (); | |
8949 | ; | |
8950 | return 0; | |
8951 | } | |
8952 | _ACEOF | |
8953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 8954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 8955 | (eval $ac_link) 2>conftest.er1 |
98418dba | 8956 | ac_status=$? |
35996d22 AS |
8957 | grep -v '^ *+' conftest.er1 >conftest.err |
8958 | rm -f conftest.er1 | |
8959 | cat conftest.err >&5 | |
c0d27fcc | 8960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 8961 | (exit $ac_status); } && |
4494a266 JD |
8962 | { ac_try='test -z "$ac_c_werror_flag" |
8963 | || test ! -s conftest.err' | |
35996d22 AS |
8964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8965 | (eval $ac_try) 2>&5 | |
8966 | ac_status=$? | |
8967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8968 | (exit $ac_status); }; } && | |
8969 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 8970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
8971 | (eval $ac_try) 2>&5 |
8972 | ac_status=$? | |
c0d27fcc | 8973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
8974 | (exit $ac_status); }; }; then |
8975 | ac_cv_lib_dnet_dnet_ntoa=yes | |
8976 | else | |
8977 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8978 | sed 's/^/| /' conftest.$ac_ext >&5 |
8979 | ||
98418dba CW |
8980 | ac_cv_lib_dnet_dnet_ntoa=no |
8981 | fi | |
35996d22 AS |
8982 | rm -f conftest.err conftest.$ac_objext \ |
8983 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
8984 | LIBS=$ac_check_lib_save_LIBS |
8985 | fi | |
c0d27fcc | 8986 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
98418dba CW |
8987 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
8988 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
c0d27fcc | 8989 | cat >>confdefs.h <<_ACEOF |
98418dba | 8990 | #define HAVE_LIBDNET 1 |
c0d27fcc | 8991 | _ACEOF |
98418dba CW |
8992 | |
8993 | LIBS="-ldnet $LIBS" | |
8994 | ||
8995 | fi | |
8996 | ||
c0d27fcc MR |
8997 | |
8998 | echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 | |
98418dba CW |
8999 | echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 |
9000 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then | |
9001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9002 | else | |
9003 | ac_check_lib_save_LIBS=$LIBS | |
9004 | LIBS="-lXbsd $LIBS" | |
9005 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9006 | /* confdefs.h. */ |
9007 | _ACEOF | |
9008 | cat confdefs.h >>conftest.$ac_ext | |
9009 | cat >>conftest.$ac_ext <<_ACEOF | |
9010 | /* end confdefs.h. */ | |
98418dba | 9011 | |
c0d27fcc | 9012 | |
98418dba CW |
9013 | int |
9014 | main () | |
9015 | { | |
9016 | main (); | |
9017 | ; | |
9018 | return 0; | |
9019 | } | |
9020 | _ACEOF | |
9021 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9023 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9024 | ac_status=$? |
35996d22 AS |
9025 | grep -v '^ *+' conftest.er1 >conftest.err |
9026 | rm -f conftest.er1 | |
9027 | cat conftest.err >&5 | |
c0d27fcc | 9028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9029 | (exit $ac_status); } && |
4494a266 JD |
9030 | { ac_try='test -z "$ac_c_werror_flag" |
9031 | || test ! -s conftest.err' | |
35996d22 AS |
9032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9033 | (eval $ac_try) 2>&5 | |
9034 | ac_status=$? | |
9035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9036 | (exit $ac_status); }; } && | |
9037 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9039 | (eval $ac_try) 2>&5 |
9040 | ac_status=$? | |
c0d27fcc | 9041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9042 | (exit $ac_status); }; }; then |
9043 | ac_cv_lib_Xbsd_main=yes | |
9044 | else | |
9045 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9046 | sed 's/^/| /' conftest.$ac_ext >&5 |
9047 | ||
98418dba CW |
9048 | ac_cv_lib_Xbsd_main=no |
9049 | fi | |
35996d22 AS |
9050 | rm -f conftest.err conftest.$ac_objext \ |
9051 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9052 | LIBS=$ac_check_lib_save_LIBS |
9053 | fi | |
c0d27fcc | 9054 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 |
98418dba CW |
9055 | echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 |
9056 | if test $ac_cv_lib_Xbsd_main = yes; then | |
9057 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
9058 | fi | |
9059 | ||
c0d27fcc MR |
9060 | |
9061 | ||
9062 | echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5 | |
98418dba CW |
9063 | echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 |
9064 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | |
9065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9066 | else | |
9067 | ac_check_lib_save_LIBS=$LIBS | |
9068 | LIBS="-lpthreads $LIBS" | |
9069 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9070 | /* confdefs.h. */ |
9071 | _ACEOF | |
9072 | cat confdefs.h >>conftest.$ac_ext | |
9073 | cat >>conftest.$ac_ext <<_ACEOF | |
9074 | /* end confdefs.h. */ | |
98418dba CW |
9075 | |
9076 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9077 | #ifdef __cplusplus | |
9078 | extern "C" | |
9079 | #endif | |
9080 | /* We use char because int might match the return type of a gcc2 | |
9081 | builtin and then its argument prototype would still apply. */ | |
9082 | char cma_open (); | |
98418dba CW |
9083 | int |
9084 | main () | |
9085 | { | |
9086 | cma_open (); | |
9087 | ; | |
9088 | return 0; | |
9089 | } | |
9090 | _ACEOF | |
9091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9093 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9094 | ac_status=$? |
35996d22 AS |
9095 | grep -v '^ *+' conftest.er1 >conftest.err |
9096 | rm -f conftest.er1 | |
9097 | cat conftest.err >&5 | |
c0d27fcc | 9098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9099 | (exit $ac_status); } && |
4494a266 JD |
9100 | { ac_try='test -z "$ac_c_werror_flag" |
9101 | || test ! -s conftest.err' | |
35996d22 AS |
9102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9103 | (eval $ac_try) 2>&5 | |
9104 | ac_status=$? | |
9105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9106 | (exit $ac_status); }; } && | |
9107 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9109 | (eval $ac_try) 2>&5 |
9110 | ac_status=$? | |
c0d27fcc | 9111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9112 | (exit $ac_status); }; }; then |
9113 | ac_cv_lib_pthreads_cma_open=yes | |
9114 | else | |
9115 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9116 | sed 's/^/| /' conftest.$ac_ext >&5 |
9117 | ||
98418dba CW |
9118 | ac_cv_lib_pthreads_cma_open=no |
9119 | fi | |
35996d22 AS |
9120 | rm -f conftest.err conftest.$ac_objext \ |
9121 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9122 | LIBS=$ac_check_lib_save_LIBS |
9123 | fi | |
c0d27fcc | 9124 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 |
98418dba CW |
9125 | echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 |
9126 | if test $ac_cv_lib_pthreads_cma_open = yes; then | |
c0d27fcc | 9127 | cat >>confdefs.h <<_ACEOF |
98418dba | 9128 | #define HAVE_LIBPTHREADS 1 |
c0d27fcc | 9129 | _ACEOF |
98418dba CW |
9130 | |
9131 | LIBS="-lpthreads $LIBS" | |
9132 | ||
9133 | fi | |
9134 | ||
c0d27fcc MR |
9135 | |
9136 | echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5 | |
98418dba CW |
9137 | echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 |
9138 | if test -d /usr/X386/include; then | |
9139 | HAVE_XFREE386=yes | |
9140 | : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
9141 | else | |
9142 | HAVE_XFREE386=no | |
9143 | fi | |
c0d27fcc | 9144 | echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5 |
98418dba CW |
9145 | echo "${ECHO_T}$HAVE_XFREE386" >&6 |
9146 | ||
55597d70 DL |
9147 | |
9148 | case ${host_os} in | |
9149 | aix*) | |
9150 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 | |
9151 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
9152 | if test "${gdb_cv_bigtoc+set}" = set; then | |
9153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9154 | else | |
9155 | ||
9156 | case $GCC in | |
9157 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
9158 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
9159 | esac | |
9160 | ||
9161 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
9162 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9163 | /* confdefs.h. */ |
9164 | _ACEOF | |
9165 | cat confdefs.h >>conftest.$ac_ext | |
9166 | cat >>conftest.$ac_ext <<_ACEOF | |
9167 | /* end confdefs.h. */ | |
55597d70 DL |
9168 | |
9169 | int | |
9170 | main () | |
9171 | { | |
9172 | int i; | |
9173 | ; | |
9174 | return 0; | |
9175 | } | |
9176 | _ACEOF | |
9177 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 9179 | (eval $ac_link) 2>conftest.er1 |
55597d70 | 9180 | ac_status=$? |
35996d22 AS |
9181 | grep -v '^ *+' conftest.er1 >conftest.err |
9182 | rm -f conftest.er1 | |
9183 | cat conftest.err >&5 | |
55597d70 DL |
9184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9185 | (exit $ac_status); } && | |
4494a266 JD |
9186 | { ac_try='test -z "$ac_c_werror_flag" |
9187 | || test ! -s conftest.err' | |
35996d22 AS |
9188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9189 | (eval $ac_try) 2>&5 | |
9190 | ac_status=$? | |
9191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9192 | (exit $ac_status); }; } && | |
9193 | { ac_try='test -s conftest$ac_exeext' | |
55597d70 DL |
9194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9195 | (eval $ac_try) 2>&5 | |
9196 | ac_status=$? | |
9197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9198 | (exit $ac_status); }; }; then | |
9199 | : | |
9200 | else | |
9201 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9202 | sed 's/^/| /' conftest.$ac_ext >&5 |
9203 | ||
55597d70 DL |
9204 | gdb_cv_bigtoc= |
9205 | fi | |
35996d22 AS |
9206 | rm -f conftest.err conftest.$ac_objext \ |
9207 | conftest$ac_exeext conftest.$ac_ext | |
55597d70 DL |
9208 | |
9209 | fi | |
9210 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 | |
9211 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
9212 | ;; | |
9213 | esac | |
9214 | ||
ae1a998c RS |
9215 | # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
9216 | # used for the tests that follow. We set them back to REAL_CFLAGS and | |
9217 | # REAL_CPPFLAGS later on. | |
98418dba CW |
9218 | |
9219 | REAL_CPPFLAGS="$CPPFLAGS" | |
9220 | ||
9221 | if test "${HAVE_X11}" = "yes"; then | |
9222 | DEFS="$C_SWITCH_X_SITE $DEFS" | |
9223 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
9224 | LIBS="$LIBX $LIBS" | |
9225 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
9226 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" | |
9227 | ||
9228 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
9229 | # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
9230 | # but it's more convenient here to set LD_RUN_PATH | |
9231 | # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
9232 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
9233 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
9234 | export LD_RUN_PATH | |
9235 | fi | |
9236 | ||
9237 | if test "${opsys}" = "gnu-linux"; then | |
c0d27fcc | 9238 | echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 |
98418dba CW |
9239 | echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 |
9240 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9241 | /* confdefs.h. */ |
9242 | _ACEOF | |
9243 | cat confdefs.h >>conftest.$ac_ext | |
9244 | cat >>conftest.$ac_ext <<_ACEOF | |
9245 | /* end confdefs.h. */ | |
98418dba | 9246 | |
98418dba CW |
9247 | int |
9248 | main () | |
9249 | { | |
9250 | XOpenDisplay ("foo"); | |
9251 | ; | |
9252 | return 0; | |
9253 | } | |
9254 | _ACEOF | |
9255 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9257 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9258 | ac_status=$? |
35996d22 AS |
9259 | grep -v '^ *+' conftest.er1 >conftest.err |
9260 | rm -f conftest.er1 | |
9261 | cat conftest.err >&5 | |
c0d27fcc | 9262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9263 | (exit $ac_status); } && |
4494a266 JD |
9264 | { ac_try='test -z "$ac_c_werror_flag" |
9265 | || test ! -s conftest.err' | |
c0d27fcc | 9266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9267 | (eval $ac_try) 2>&5 |
9268 | ac_status=$? | |
c0d27fcc | 9269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996d22 AS |
9270 | (exit $ac_status); }; } && |
9271 | { ac_try='test -s conftest$ac_exeext' | |
9272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9273 | (eval $ac_try) 2>&5 | |
9274 | ac_status=$? | |
9275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9276 | (exit $ac_status); }; }; then | |
9277 | xlinux_first_failure=no | |
98418dba CW |
9278 | else |
9279 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9280 | sed 's/^/| /' conftest.$ac_ext >&5 |
9281 | ||
98418dba CW |
9282 | xlinux_first_failure=yes |
9283 | fi | |
35996d22 AS |
9284 | rm -f conftest.err conftest.$ac_objext \ |
9285 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9286 | if test "${xlinux_first_failure}" = "yes"; then |
9287 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
9288 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
9289 | OLD_CPPFLAGS="$CPPFLAGS" | |
9290 | OLD_LIBS="$LIBS" | |
9291 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
9292 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
9293 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
9294 | LIBS="$LIBS -b i486-linuxaout" | |
9295 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9296 | /* confdefs.h. */ |
9297 | _ACEOF | |
9298 | cat confdefs.h >>conftest.$ac_ext | |
9299 | cat >>conftest.$ac_ext <<_ACEOF | |
9300 | /* end confdefs.h. */ | |
98418dba | 9301 | |
98418dba CW |
9302 | int |
9303 | main () | |
9304 | { | |
9305 | XOpenDisplay ("foo"); | |
9306 | ; | |
9307 | return 0; | |
9308 | } | |
9309 | _ACEOF | |
9310 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9311 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9312 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9313 | ac_status=$? |
35996d22 AS |
9314 | grep -v '^ *+' conftest.er1 >conftest.err |
9315 | rm -f conftest.er1 | |
9316 | cat conftest.err >&5 | |
c0d27fcc | 9317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9318 | (exit $ac_status); } && |
4494a266 JD |
9319 | { ac_try='test -z "$ac_c_werror_flag" |
9320 | || test ! -s conftest.err' | |
35996d22 AS |
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); }; } && | |
9326 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9328 | (eval $ac_try) 2>&5 |
9329 | ac_status=$? | |
c0d27fcc | 9330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9331 | (exit $ac_status); }; }; then |
9332 | xlinux_second_failure=no | |
9333 | else | |
9334 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9335 | sed 's/^/| /' conftest.$ac_ext >&5 |
9336 | ||
98418dba CW |
9337 | xlinux_second_failure=yes |
9338 | fi | |
35996d22 AS |
9339 | rm -f conftest.err conftest.$ac_objext \ |
9340 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9341 | if test "${xlinux_second_failure}" = "yes"; then |
9342 | # If we get the same failure with -b, there is no use adding -b. | |
9343 | # So take it out. This plays safe. | |
9344 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
9345 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
9346 | CPPFLAGS="$OLD_CPPFLAGS" | |
9347 | LIBS="$OLD_LIBS" | |
c0d27fcc | 9348 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
9349 | echo "${ECHO_T}no" >&6 |
9350 | else | |
c0d27fcc | 9351 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
9352 | echo "${ECHO_T}yes" >&6 |
9353 | fi | |
9354 | else | |
c0d27fcc | 9355 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
9356 | echo "${ECHO_T}no" >&6 |
9357 | fi | |
9358 | fi | |
9359 | ||
9360 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing | |
9361 | # header files included from there. | |
c0d27fcc | 9362 | echo "$as_me:$LINENO: checking for Xkb" >&5 |
98418dba CW |
9363 | echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 |
9364 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9365 | /* confdefs.h. */ |
9366 | _ACEOF | |
9367 | cat confdefs.h >>conftest.$ac_ext | |
9368 | cat >>conftest.$ac_ext <<_ACEOF | |
9369 | /* end confdefs.h. */ | |
98418dba CW |
9370 | #include <X11/Xlib.h> |
9371 | #include <X11/XKBlib.h> | |
98418dba CW |
9372 | int |
9373 | main () | |
9374 | { | |
9375 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | |
9376 | ; | |
9377 | return 0; | |
9378 | } | |
9379 | _ACEOF | |
9380 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9382 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9383 | ac_status=$? |
35996d22 AS |
9384 | grep -v '^ *+' conftest.er1 >conftest.err |
9385 | rm -f conftest.er1 | |
9386 | cat conftest.err >&5 | |
c0d27fcc | 9387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9388 | (exit $ac_status); } && |
4494a266 JD |
9389 | { ac_try='test -z "$ac_c_werror_flag" |
9390 | || test ! -s conftest.err' | |
35996d22 AS |
9391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9392 | (eval $ac_try) 2>&5 | |
9393 | ac_status=$? | |
9394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9395 | (exit $ac_status); }; } && | |
9396 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9398 | (eval $ac_try) 2>&5 |
9399 | ac_status=$? | |
c0d27fcc | 9400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9401 | (exit $ac_status); }; }; then |
9402 | emacs_xkb=yes | |
9403 | else | |
9404 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9405 | sed 's/^/| /' conftest.$ac_ext >&5 |
9406 | ||
98418dba CW |
9407 | emacs_xkb=no |
9408 | fi | |
35996d22 AS |
9409 | rm -f conftest.err conftest.$ac_objext \ |
9410 | conftest$ac_exeext conftest.$ac_ext | |
c0d27fcc | 9411 | echo "$as_me:$LINENO: result: $emacs_xkb" >&5 |
98418dba CW |
9412 | echo "${ECHO_T}$emacs_xkb" >&6 |
9413 | if test $emacs_xkb = yes; then | |
b936fae4 | 9414 | |
c0d27fcc | 9415 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9416 | #define HAVE_XKBGETKEYBOARD 1 |
c0d27fcc | 9417 | _ACEOF |
98418dba CW |
9418 | |
9419 | fi | |
9420 | ||
c0d27fcc MR |
9421 | |
9422 | ||
9423 | ||
9424 | ||
98418dba CW |
9425 | for ac_func in XrmSetDatabase XScreenResourceString \ |
9426 | XScreenNumberOfScreen XSetWMProtocols | |
9427 | do | |
9428 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 9429 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
9430 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9431 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9433 | else | |
9434 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9435 | /* confdefs.h. */ |
9436 | _ACEOF | |
9437 | cat confdefs.h >>conftest.$ac_ext | |
9438 | cat >>conftest.$ac_ext <<_ACEOF | |
9439 | /* end confdefs.h. */ | |
35996d22 AS |
9440 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9441 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9442 | #define $ac_func innocuous_$ac_func | |
9443 | ||
98418dba | 9444 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
9445 | which can conflict with char $ac_func (); below. |
9446 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9447 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 9448 | |
19650fd6 AS |
9449 | #ifdef __STDC__ |
9450 | # include <limits.h> | |
9451 | #else | |
9452 | # include <assert.h> | |
9453 | #endif | |
35996d22 AS |
9454 | |
9455 | #undef $ac_func | |
9456 | ||
98418dba CW |
9457 | /* Override any gcc2 internal prototype to avoid an error. */ |
9458 | #ifdef __cplusplus | |
9459 | extern "C" | |
19650fd6 | 9460 | { |
98418dba CW |
9461 | #endif |
9462 | /* We use char because int might match the return type of a gcc2 | |
9463 | builtin and then its argument prototype would still apply. */ | |
9464 | char $ac_func (); | |
98418dba CW |
9465 | /* The GNU C library defines this for functions which it implements |
9466 | to always fail with ENOSYS. Some functions are actually named | |
9467 | something starting with __ and the normal name is an alias. */ | |
9468 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9469 | choke me | |
9470 | #else | |
19650fd6 AS |
9471 | char (*f) () = $ac_func; |
9472 | #endif | |
9473 | #ifdef __cplusplus | |
9474 | } | |
98418dba CW |
9475 | #endif |
9476 | ||
19650fd6 AS |
9477 | int |
9478 | main () | |
9479 | { | |
9480 | return f != $ac_func; | |
98418dba CW |
9481 | ; |
9482 | return 0; | |
9483 | } | |
9484 | _ACEOF | |
9485 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9487 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9488 | ac_status=$? |
35996d22 AS |
9489 | grep -v '^ *+' conftest.er1 >conftest.err |
9490 | rm -f conftest.er1 | |
9491 | cat conftest.err >&5 | |
c0d27fcc | 9492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9493 | (exit $ac_status); } && |
4494a266 JD |
9494 | { ac_try='test -z "$ac_c_werror_flag" |
9495 | || test ! -s conftest.err' | |
35996d22 AS |
9496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9497 | (eval $ac_try) 2>&5 | |
9498 | ac_status=$? | |
9499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9500 | (exit $ac_status); }; } && | |
9501 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9503 | (eval $ac_try) 2>&5 |
9504 | ac_status=$? | |
c0d27fcc | 9505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9506 | (exit $ac_status); }; }; then |
9507 | eval "$as_ac_var=yes" | |
9508 | else | |
9509 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9510 | sed 's/^/| /' conftest.$ac_ext >&5 |
9511 | ||
98418dba CW |
9512 | eval "$as_ac_var=no" |
9513 | fi | |
35996d22 AS |
9514 | rm -f conftest.err conftest.$ac_objext \ |
9515 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 9516 | fi |
c0d27fcc | 9517 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
9518 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9519 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 9520 | cat >>confdefs.h <<_ACEOF |
98418dba | 9521 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 9522 | _ACEOF |
98418dba CW |
9523 | |
9524 | fi | |
9525 | done | |
9526 | ||
9527 | fi | |
9528 | ||
9529 | if test "${window_system}" = "x11"; then | |
c0d27fcc | 9530 | echo "$as_me:$LINENO: checking X11 version 6" >&5 |
98418dba CW |
9531 | echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 |
9532 | if test "${emacs_cv_x11_version_6+set}" = set; then | |
9533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9534 | else | |
9535 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9536 | /* confdefs.h. */ |
9537 | _ACEOF | |
9538 | cat confdefs.h >>conftest.$ac_ext | |
9539 | cat >>conftest.$ac_ext <<_ACEOF | |
9540 | /* end confdefs.h. */ | |
98418dba | 9541 | #include <X11/Xlib.h> |
98418dba CW |
9542 | int |
9543 | main () | |
9544 | { | |
9545 | #if XlibSpecificationRelease < 6 | |
9546 | fail; | |
9547 | #endif | |
9548 | ||
9549 | ; | |
9550 | return 0; | |
9551 | } | |
9552 | _ACEOF | |
9553 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9555 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9556 | ac_status=$? |
35996d22 AS |
9557 | grep -v '^ *+' conftest.er1 >conftest.err |
9558 | rm -f conftest.er1 | |
9559 | cat conftest.err >&5 | |
c0d27fcc | 9560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9561 | (exit $ac_status); } && |
4494a266 JD |
9562 | { ac_try='test -z "$ac_c_werror_flag" |
9563 | || test ! -s conftest.err' | |
35996d22 AS |
9564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9565 | (eval $ac_try) 2>&5 | |
9566 | ac_status=$? | |
9567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9568 | (exit $ac_status); }; } && | |
9569 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9571 | (eval $ac_try) 2>&5 |
9572 | ac_status=$? | |
c0d27fcc | 9573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9574 | (exit $ac_status); }; }; then |
9575 | emacs_cv_x11_version_6=yes | |
9576 | else | |
9577 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9578 | sed 's/^/| /' conftest.$ac_ext >&5 |
9579 | ||
98418dba CW |
9580 | emacs_cv_x11_version_6=no |
9581 | fi | |
35996d22 AS |
9582 | rm -f conftest.err conftest.$ac_objext \ |
9583 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9584 | fi |
9585 | ||
9586 | if test $emacs_cv_x11_version_6 = yes; then | |
c0d27fcc | 9587 | echo "$as_me:$LINENO: result: 6 or newer" >&5 |
98418dba | 9588 | echo "${ECHO_T}6 or newer" >&6 |
b936fae4 | 9589 | |
c0d27fcc | 9590 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9591 | #define HAVE_X11R6 1 |
c0d27fcc | 9592 | _ACEOF |
98418dba CW |
9593 | |
9594 | else | |
c0d27fcc | 9595 | echo "$as_me:$LINENO: result: before 6" >&5 |
98418dba CW |
9596 | echo "${ECHO_T}before 6" >&6 |
9597 | fi | |
9598 | fi | |
9599 | ||
9600 | if test "${window_system}" = "x11"; then | |
c0d27fcc | 9601 | echo "$as_me:$LINENO: checking X11 version 5" >&5 |
98418dba CW |
9602 | echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 |
9603 | if test "${emacs_cv_x11_version_5+set}" = set; then | |
9604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9605 | else | |
9606 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9607 | /* confdefs.h. */ |
9608 | _ACEOF | |
9609 | cat confdefs.h >>conftest.$ac_ext | |
9610 | cat >>conftest.$ac_ext <<_ACEOF | |
9611 | /* end confdefs.h. */ | |
98418dba | 9612 | #include <X11/Xlib.h> |
98418dba CW |
9613 | int |
9614 | main () | |
9615 | { | |
9616 | #if XlibSpecificationRelease < 5 | |
9617 | fail; | |
9618 | #endif | |
9619 | ||
9620 | ; | |
9621 | return 0; | |
9622 | } | |
9623 | _ACEOF | |
9624 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9626 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9627 | ac_status=$? |
35996d22 AS |
9628 | grep -v '^ *+' conftest.er1 >conftest.err |
9629 | rm -f conftest.er1 | |
9630 | cat conftest.err >&5 | |
c0d27fcc | 9631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9632 | (exit $ac_status); } && |
4494a266 JD |
9633 | { ac_try='test -z "$ac_c_werror_flag" |
9634 | || test ! -s conftest.err' | |
35996d22 AS |
9635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9636 | (eval $ac_try) 2>&5 | |
9637 | ac_status=$? | |
9638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9639 | (exit $ac_status); }; } && | |
9640 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9642 | (eval $ac_try) 2>&5 |
9643 | ac_status=$? | |
c0d27fcc | 9644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9645 | (exit $ac_status); }; }; then |
9646 | emacs_cv_x11_version_5=yes | |
9647 | else | |
9648 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9649 | sed 's/^/| /' conftest.$ac_ext >&5 |
9650 | ||
98418dba CW |
9651 | emacs_cv_x11_version_5=no |
9652 | fi | |
35996d22 AS |
9653 | rm -f conftest.err conftest.$ac_objext \ |
9654 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9655 | fi |
9656 | ||
9657 | if test $emacs_cv_x11_version_5 = yes; then | |
c0d27fcc | 9658 | echo "$as_me:$LINENO: result: 5 or newer" >&5 |
98418dba CW |
9659 | echo "${ECHO_T}5 or newer" >&6 |
9660 | HAVE_X11R5=yes | |
b936fae4 | 9661 | |
c0d27fcc | 9662 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9663 | #define HAVE_X11R5 1 |
c0d27fcc | 9664 | _ACEOF |
98418dba CW |
9665 | |
9666 | else | |
9667 | HAVE_X11R5=no | |
c0d27fcc | 9668 | echo "$as_me:$LINENO: result: before 5" >&5 |
98418dba CW |
9669 | echo "${ECHO_T}before 5" >&6 |
9670 | fi | |
9671 | fi | |
9672 | ||
488dd4c4 JD |
9673 | |
9674 | ||
9675 | HAVE_GTK=no | |
9676 | if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then | |
cd890796 | 9677 | if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then |
488dd4c4 JD |
9678 | { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5 |
9679 | echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;} | |
9680 | { (exit 1); exit 1; }; }; | |
9681 | fi | |
9682 | GLIB_REQUIRED=2.0.1 | |
e512ece1 | 9683 | GTK_REQUIRED=2.0.1 |
488dd4c4 JD |
9684 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" |
9685 | ||
9686 | if test "X${with_pkg_config_prog}" != X; then | |
9687 | PKG_CONFIG="${with_pkg_config_prog}" | |
9688 | fi | |
9689 | ||
9690 | succeeded=no | |
9691 | ||
9692 | if test -z "$PKG_CONFIG"; then | |
9693 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9694 | set dummy pkg-config; ac_word=$2 | |
9695 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9696 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9697 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9699 | else | |
9700 | case $PKG_CONFIG in | |
9701 | [\\/]* | ?:[\\/]*) | |
9702 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9703 | ;; | |
9704 | *) | |
9705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9706 | for as_dir in $PATH | |
9707 | do | |
9708 | IFS=$as_save_IFS | |
9709 | test -z "$as_dir" && as_dir=. | |
9710 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9711 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9712 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9713 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9714 | break 2 | |
9715 | fi | |
9716 | done | |
9717 | done | |
9718 | ||
9719 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
9720 | ;; | |
9721 | esac | |
9722 | fi | |
9723 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9724 | ||
9725 | if test -n "$PKG_CONFIG"; then | |
9726 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9727 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
9728 | else | |
9729 | echo "$as_me:$LINENO: result: no" >&5 | |
9730 | echo "${ECHO_T}no" >&6 | |
9731 | fi | |
9732 | ||
9733 | fi | |
9734 | ||
9735 | if test "$PKG_CONFIG" = "no" ; then | |
9736 | echo "*** The pkg-config script could not be found. Make sure it is" | |
9737 | echo "*** in your path, or give the full path to pkg-config with" | |
9738 | echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog." | |
9739 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
9740 | else | |
9741 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
9742 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
9743 | echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 | |
9744 | echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6 | |
9745 | ||
9746 | if $PKG_CONFIG --exists "$GTK_MODULES" ; then | |
9747 | echo "$as_me:$LINENO: result: yes" >&5 | |
9748 | echo "${ECHO_T}yes" >&6 | |
9749 | succeeded=yes | |
9750 | ||
9751 | echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 | |
9752 | echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6 | |
9753 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"` | |
9754 | echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 | |
9755 | echo "${ECHO_T}$GTK_CFLAGS" >&6 | |
9756 | ||
9757 | echo "$as_me:$LINENO: checking GTK_LIBS" >&5 | |
9758 | echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6 | |
9759 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"` | |
9760 | echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 | |
9761 | echo "${ECHO_T}$GTK_LIBS" >&6 | |
9762 | else | |
9763 | GTK_CFLAGS="" | |
9764 | GTK_LIBS="" | |
9765 | ## If we have a custom action on failure, don't print errors, but | |
9766 | ## do set a variable so people can do so. | |
9767 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` | |
9768 | echo $GTK_PKG_ERRORS | |
9769 | fi | |
9770 | ||
9771 | ||
9772 | ||
9773 | else | |
9774 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
9775 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
9776 | fi | |
9777 | fi | |
9778 | ||
9779 | if test $succeeded = yes; then | |
9780 | : | |
9781 | else | |
9782 | { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5 | |
9783 | echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;} | |
9784 | { (exit 1); exit 1; }; } | |
9785 | fi | |
9786 | ||
9787 | ||
9788 | ||
9789 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | |
57669b57 JD |
9790 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
9791 | LIBS="$GTK_LIBS $LIBS" | |
488dd4c4 JD |
9792 | HAVE_GTK=yes |
9793 | ||
9794 | cat >>confdefs.h <<\_ACEOF | |
9795 | #define HAVE_GTK 1 | |
9796 | _ACEOF | |
9797 | ||
9798 | USE_X_TOOLKIT=none | |
9799 | ||
9800 | with_toolkit_scroll_bars=yes | |
57669b57 JD |
9801 | |
9802 | HAVE_GTK_MULTIDISPLAY=no | |
9803 | ||
9804 | for ac_func in gdk_display_open | |
9805 | do | |
9806 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9807 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9808 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9809 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9811 | else | |
9812 | cat >conftest.$ac_ext <<_ACEOF | |
57669b57 JD |
9813 | /* confdefs.h. */ |
9814 | _ACEOF | |
9815 | cat confdefs.h >>conftest.$ac_ext | |
9816 | cat >>conftest.$ac_ext <<_ACEOF | |
9817 | /* end confdefs.h. */ | |
35996d22 AS |
9818 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9819 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9820 | #define $ac_func innocuous_$ac_func | |
9821 | ||
57669b57 JD |
9822 | /* System header to define __stub macros and hopefully few prototypes, |
9823 | which can conflict with char $ac_func (); below. | |
9824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9825 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 9826 | |
57669b57 JD |
9827 | #ifdef __STDC__ |
9828 | # include <limits.h> | |
9829 | #else | |
9830 | # include <assert.h> | |
9831 | #endif | |
35996d22 AS |
9832 | |
9833 | #undef $ac_func | |
9834 | ||
57669b57 JD |
9835 | /* Override any gcc2 internal prototype to avoid an error. */ |
9836 | #ifdef __cplusplus | |
9837 | extern "C" | |
9838 | { | |
9839 | #endif | |
9840 | /* We use char because int might match the return type of a gcc2 | |
9841 | builtin and then its argument prototype would still apply. */ | |
9842 | char $ac_func (); | |
9843 | /* The GNU C library defines this for functions which it implements | |
9844 | to always fail with ENOSYS. Some functions are actually named | |
9845 | something starting with __ and the normal name is an alias. */ | |
9846 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9847 | choke me | |
9848 | #else | |
9849 | char (*f) () = $ac_func; | |
9850 | #endif | |
9851 | #ifdef __cplusplus | |
9852 | } | |
9853 | #endif | |
9854 | ||
9855 | int | |
9856 | main () | |
9857 | { | |
9858 | return f != $ac_func; | |
9859 | ; | |
9860 | return 0; | |
9861 | } | |
9862 | _ACEOF | |
9863 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 9865 | (eval $ac_link) 2>conftest.er1 |
57669b57 | 9866 | ac_status=$? |
35996d22 AS |
9867 | grep -v '^ *+' conftest.er1 >conftest.err |
9868 | rm -f conftest.er1 | |
9869 | cat conftest.err >&5 | |
57669b57 JD |
9870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9871 | (exit $ac_status); } && | |
4494a266 JD |
9872 | { ac_try='test -z "$ac_c_werror_flag" |
9873 | || test ! -s conftest.err' | |
35996d22 AS |
9874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9875 | (eval $ac_try) 2>&5 | |
9876 | ac_status=$? | |
9877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9878 | (exit $ac_status); }; } && | |
9879 | { ac_try='test -s conftest$ac_exeext' | |
57669b57 JD |
9880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9881 | (eval $ac_try) 2>&5 | |
9882 | ac_status=$? | |
9883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9884 | (exit $ac_status); }; }; then | |
9885 | eval "$as_ac_var=yes" | |
9886 | else | |
9887 | echo "$as_me: failed program was:" >&5 | |
9888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9889 | ||
9890 | eval "$as_ac_var=no" | |
9891 | fi | |
35996d22 AS |
9892 | rm -f conftest.err conftest.$ac_objext \ |
9893 | conftest$ac_exeext conftest.$ac_ext | |
57669b57 JD |
9894 | fi |
9895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9896 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9897 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9898 | cat >>confdefs.h <<_ACEOF | |
9899 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9900 | _ACEOF | |
9901 | HAVE_GTK_MULTIDISPLAY=yes | |
9902 | fi | |
9903 | done | |
9904 | ||
9905 | if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then | |
9906 | ||
9907 | cat >>confdefs.h <<\_ACEOF | |
9908 | #define HAVE_GTK_MULTIDISPLAY 1 | |
9909 | _ACEOF | |
9910 | ||
9911 | fi | |
488dd4c4 JD |
9912 | fi |
9913 | ||
98418dba CW |
9914 | if test x"${USE_X_TOOLKIT}" = xmaybe; then |
9915 | if test x"${HAVE_X11R5}" = xyes; then | |
c0d27fcc | 9916 | echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5 |
98418dba CW |
9917 | echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 |
9918 | if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then | |
9919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9920 | else | |
9921 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9922 | /* confdefs.h. */ |
9923 | _ACEOF | |
9924 | cat confdefs.h >>conftest.$ac_ext | |
9925 | cat >>conftest.$ac_ext <<_ACEOF | |
9926 | /* end confdefs.h. */ | |
98418dba CW |
9927 | |
9928 | #include <X11/Intrinsic.h> | |
9929 | #include <X11/Xaw/Simple.h> | |
98418dba CW |
9930 | int |
9931 | main () | |
9932 | { | |
9933 | ||
9934 | ; | |
9935 | return 0; | |
9936 | } | |
9937 | _ACEOF | |
9938 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 9939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 9940 | (eval $ac_link) 2>conftest.er1 |
98418dba | 9941 | ac_status=$? |
35996d22 AS |
9942 | grep -v '^ *+' conftest.er1 >conftest.err |
9943 | rm -f conftest.er1 | |
9944 | cat conftest.err >&5 | |
c0d27fcc | 9945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 9946 | (exit $ac_status); } && |
4494a266 JD |
9947 | { ac_try='test -z "$ac_c_werror_flag" |
9948 | || test ! -s conftest.err' | |
35996d22 AS |
9949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9950 | (eval $ac_try) 2>&5 | |
9951 | ac_status=$? | |
9952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9953 | (exit $ac_status); }; } && | |
9954 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 9955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
9956 | (eval $ac_try) 2>&5 |
9957 | ac_status=$? | |
c0d27fcc | 9958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
9959 | (exit $ac_status); }; }; then |
9960 | emacs_cv_x11_version_5_with_xaw=yes | |
9961 | else | |
9962 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9963 | sed 's/^/| /' conftest.$ac_ext >&5 |
9964 | ||
98418dba CW |
9965 | emacs_cv_x11_version_5_with_xaw=no |
9966 | fi | |
35996d22 AS |
9967 | rm -f conftest.err conftest.$ac_objext \ |
9968 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
9969 | fi |
9970 | ||
9971 | if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
c0d27fcc | 9972 | echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
98418dba CW |
9973 | echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 |
9974 | USE_X_TOOLKIT=LUCID | |
9975 | else | |
c0d27fcc | 9976 | echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
98418dba CW |
9977 | echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 |
9978 | USE_X_TOOLKIT=none | |
9979 | fi | |
9980 | else | |
9981 | USE_X_TOOLKIT=none | |
9982 | fi | |
9983 | fi | |
9984 | ||
9985 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
9986 | ||
9987 | if test "${USE_X_TOOLKIT}" != "none"; then | |
c0d27fcc | 9988 | echo "$as_me:$LINENO: checking X11 toolkit version" >&5 |
98418dba CW |
9989 | echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 |
9990 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | |
9991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9992 | else | |
9993 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9994 | /* confdefs.h. */ |
9995 | _ACEOF | |
9996 | cat confdefs.h >>conftest.$ac_ext | |
9997 | cat >>conftest.$ac_ext <<_ACEOF | |
9998 | /* end confdefs.h. */ | |
98418dba | 9999 | #include <X11/Intrinsic.h> |
98418dba CW |
10000 | int |
10001 | main () | |
10002 | { | |
10003 | #if XtSpecificationRelease < 6 | |
10004 | fail; | |
10005 | #endif | |
10006 | ||
10007 | ; | |
10008 | return 0; | |
10009 | } | |
10010 | _ACEOF | |
10011 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10013 | (eval $ac_link) 2>conftest.er1 |
98418dba | 10014 | ac_status=$? |
35996d22 AS |
10015 | grep -v '^ *+' conftest.er1 >conftest.err |
10016 | rm -f conftest.er1 | |
10017 | cat conftest.err >&5 | |
c0d27fcc | 10018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10019 | (exit $ac_status); } && |
4494a266 JD |
10020 | { ac_try='test -z "$ac_c_werror_flag" |
10021 | || test ! -s conftest.err' | |
35996d22 AS |
10022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10023 | (eval $ac_try) 2>&5 | |
10024 | ac_status=$? | |
10025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10026 | (exit $ac_status); }; } && | |
10027 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10029 | (eval $ac_try) 2>&5 |
10030 | ac_status=$? | |
c0d27fcc | 10031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10032 | (exit $ac_status); }; }; then |
10033 | emacs_cv_x11_toolkit_version_6=yes | |
10034 | else | |
10035 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10036 | sed 's/^/| /' conftest.$ac_ext >&5 |
10037 | ||
98418dba CW |
10038 | emacs_cv_x11_toolkit_version_6=no |
10039 | fi | |
35996d22 AS |
10040 | rm -f conftest.err conftest.$ac_objext \ |
10041 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
10042 | fi |
10043 | ||
10044 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
10045 | if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
c0d27fcc | 10046 | echo "$as_me:$LINENO: result: 6 or newer" >&5 |
98418dba | 10047 | echo "${ECHO_T}6 or newer" >&6 |
b936fae4 | 10048 | |
c0d27fcc | 10049 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10050 | #define HAVE_X11XTR6 1 |
c0d27fcc | 10051 | _ACEOF |
98418dba CW |
10052 | |
10053 | else | |
c0d27fcc | 10054 | echo "$as_me:$LINENO: result: before 6" >&5 |
98418dba CW |
10055 | echo "${ECHO_T}before 6" >&6 |
10056 | fi | |
10057 | ||
10058 | OLDLIBS="$LIBS" | |
10059 | if test x$HAVE_X11XTR6 = xyes; then | |
10060 | LIBS="-lXt -lSM -lICE $LIBS" | |
10061 | else | |
10062 | LIBS="-lXt $LIBS" | |
10063 | fi | |
10064 | ||
c0d27fcc | 10065 | echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5 |
98418dba CW |
10066 | echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 |
10067 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | |
10068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10069 | else | |
10070 | ac_check_lib_save_LIBS=$LIBS | |
10071 | LIBS="-lXmu $LIBS" | |
10072 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10073 | /* confdefs.h. */ |
10074 | _ACEOF | |
10075 | cat confdefs.h >>conftest.$ac_ext | |
10076 | cat >>conftest.$ac_ext <<_ACEOF | |
10077 | /* end confdefs.h. */ | |
98418dba CW |
10078 | |
10079 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10080 | #ifdef __cplusplus | |
10081 | extern "C" | |
10082 | #endif | |
10083 | /* We use char because int might match the return type of a gcc2 | |
10084 | builtin and then its argument prototype would still apply. */ | |
10085 | char XmuConvertStandardSelection (); | |
98418dba CW |
10086 | int |
10087 | main () | |
10088 | { | |
10089 | XmuConvertStandardSelection (); | |
10090 | ; | |
10091 | return 0; | |
10092 | } | |
10093 | _ACEOF | |
10094 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10096 | (eval $ac_link) 2>conftest.er1 |
98418dba | 10097 | ac_status=$? |
35996d22 AS |
10098 | grep -v '^ *+' conftest.er1 >conftest.err |
10099 | rm -f conftest.er1 | |
10100 | cat conftest.err >&5 | |
c0d27fcc | 10101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10102 | (exit $ac_status); } && |
4494a266 JD |
10103 | { ac_try='test -z "$ac_c_werror_flag" |
10104 | || test ! -s conftest.err' | |
35996d22 AS |
10105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10106 | (eval $ac_try) 2>&5 | |
10107 | ac_status=$? | |
10108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10109 | (exit $ac_status); }; } && | |
10110 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10112 | (eval $ac_try) 2>&5 |
10113 | ac_status=$? | |
c0d27fcc | 10114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10115 | (exit $ac_status); }; }; then |
10116 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
10117 | else | |
10118 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10119 | sed 's/^/| /' conftest.$ac_ext >&5 |
10120 | ||
98418dba CW |
10121 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no |
10122 | fi | |
35996d22 AS |
10123 | rm -f conftest.err conftest.$ac_objext \ |
10124 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
10125 | LIBS=$ac_check_lib_save_LIBS |
10126 | fi | |
c0d27fcc | 10127 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
98418dba CW |
10128 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 |
10129 | if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | |
c0d27fcc | 10130 | cat >>confdefs.h <<_ACEOF |
98418dba | 10131 | #define HAVE_LIBXMU 1 |
c0d27fcc | 10132 | _ACEOF |
98418dba CW |
10133 | |
10134 | LIBS="-lXmu $LIBS" | |
10135 | ||
10136 | fi | |
10137 | ||
10138 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" | |
10139 | fi | |
10140 | ||
10141 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
10142 | if test "${HAVE_X11}" = "yes"; then | |
10143 | if test "${USE_X_TOOLKIT}" != "none"; then | |
10144 | ||
c0d27fcc | 10145 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
98418dba CW |
10146 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
10147 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
10148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10149 | else | |
10150 | ac_check_lib_save_LIBS=$LIBS | |
10151 | LIBS="-lXext $LIBS" | |
10152 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10153 | /* confdefs.h. */ |
10154 | _ACEOF | |
10155 | cat confdefs.h >>conftest.$ac_ext | |
10156 | cat >>conftest.$ac_ext <<_ACEOF | |
10157 | /* end confdefs.h. */ | |
98418dba CW |
10158 | |
10159 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10160 | #ifdef __cplusplus | |
10161 | extern "C" | |
10162 | #endif | |
10163 | /* We use char because int might match the return type of a gcc2 | |
10164 | builtin and then its argument prototype would still apply. */ | |
10165 | char XShapeQueryExtension (); | |
98418dba CW |
10166 | int |
10167 | main () | |
10168 | { | |
10169 | XShapeQueryExtension (); | |
10170 | ; | |
10171 | return 0; | |
10172 | } | |
10173 | _ACEOF | |
10174 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10176 | (eval $ac_link) 2>conftest.er1 |
98418dba | 10177 | ac_status=$? |
35996d22 AS |
10178 | grep -v '^ *+' conftest.er1 >conftest.err |
10179 | rm -f conftest.er1 | |
10180 | cat conftest.err >&5 | |
c0d27fcc | 10181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10182 | (exit $ac_status); } && |
4494a266 JD |
10183 | { ac_try='test -z "$ac_c_werror_flag" |
10184 | || test ! -s conftest.err' | |
35996d22 AS |
10185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10186 | (eval $ac_try) 2>&5 | |
10187 | ac_status=$? | |
10188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10189 | (exit $ac_status); }; } && | |
10190 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10192 | (eval $ac_try) 2>&5 |
10193 | ac_status=$? | |
c0d27fcc | 10194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10195 | (exit $ac_status); }; }; then |
10196 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
10197 | else | |
10198 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10199 | sed 's/^/| /' conftest.$ac_ext >&5 |
10200 | ||
98418dba CW |
10201 | ac_cv_lib_Xext_XShapeQueryExtension=no |
10202 | fi | |
35996d22 AS |
10203 | rm -f conftest.err conftest.$ac_objext \ |
10204 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
10205 | LIBS=$ac_check_lib_save_LIBS |
10206 | fi | |
c0d27fcc | 10207 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
98418dba CW |
10208 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
10209 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
c0d27fcc | 10210 | cat >>confdefs.h <<_ACEOF |
98418dba | 10211 | #define HAVE_LIBXEXT 1 |
c0d27fcc | 10212 | _ACEOF |
98418dba CW |
10213 | |
10214 | LIBS="-lXext $LIBS" | |
10215 | ||
10216 | fi | |
10217 | ||
10218 | fi | |
10219 | fi | |
10220 | ||
10221 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
c0d27fcc | 10222 | echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 |
8e967cf7 MR |
10223 | echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6 |
10224 | if test "${emacs_cv_lesstif+set}" = set; then | |
10225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10226 | else | |
ae1a998c RS |
10227 | # We put this in CFLAGS temporarily to precede other -I options |
10228 | # that might be in CFLAGS temporarily. | |
10229 | # We put this in CPPFLAGS where it precedes the other -I options. | |
10230 | OLD_CPPFLAGS=$CPPFLAGS | |
10231 | OLD_CFLAGS=$CFLAGS | |
10232 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | |
10233 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | |
8e967cf7 | 10234 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10235 | /* confdefs.h. */ |
10236 | _ACEOF | |
10237 | cat confdefs.h >>conftest.$ac_ext | |
10238 | cat >>conftest.$ac_ext <<_ACEOF | |
10239 | /* end confdefs.h. */ | |
8e967cf7 MR |
10240 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> |
10241 | int | |
10242 | main () | |
10243 | { | |
10244 | int x = 5; | |
10245 | ; | |
10246 | return 0; | |
10247 | } | |
10248 | _ACEOF | |
10249 | rm -f conftest.$ac_objext | |
c0d27fcc | 10250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 10251 | (eval $ac_compile) 2>conftest.er1 |
8e967cf7 | 10252 | ac_status=$? |
35996d22 AS |
10253 | grep -v '^ *+' conftest.er1 >conftest.err |
10254 | rm -f conftest.er1 | |
10255 | cat conftest.err >&5 | |
c0d27fcc | 10256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8e967cf7 | 10257 | (exit $ac_status); } && |
4494a266 JD |
10258 | { ac_try='test -z "$ac_c_werror_flag" |
10259 | || test ! -s conftest.err' | |
35996d22 AS |
10260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10261 | (eval $ac_try) 2>&5 | |
10262 | ac_status=$? | |
10263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10264 | (exit $ac_status); }; } && | |
10265 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 10266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8e967cf7 MR |
10267 | (eval $ac_try) 2>&5 |
10268 | ac_status=$? | |
c0d27fcc | 10269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8e967cf7 MR |
10270 | (exit $ac_status); }; }; then |
10271 | emacs_cv_lesstif=yes | |
10272 | else | |
10273 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10274 | sed 's/^/| /' conftest.$ac_ext >&5 |
10275 | ||
8e967cf7 MR |
10276 | emacs_cv_lesstif=no |
10277 | fi | |
35996d22 | 10278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8e967cf7 | 10279 | fi |
c0d27fcc | 10280 | echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 |
8e967cf7 MR |
10281 | echo "${ECHO_T}$emacs_cv_lesstif" >&6 |
10282 | if test $emacs_cv_lesstif = yes; then | |
ae1a998c RS |
10283 | # Make sure this -I option remains in CPPFLAGS after it is set |
10284 | # back to REAL_CPPFLAGS. | |
10285 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | |
10286 | # have those other -I options anyway. Ultimately, having this | |
10287 | # directory ultimately in CPPFLAGS will be enough. | |
10288 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | |
8e967cf7 | 10289 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" |
ae1a998c RS |
10290 | else |
10291 | CFLAGS=$OLD_CFLAGS | |
10292 | CPPFLAGS=$OLD_CPPFLAGS | |
8e967cf7 | 10293 | fi |
c0d27fcc | 10294 | echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 |
98418dba CW |
10295 | echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
10296 | if test "${emacs_cv_motif_version_2_1+set}" = set; then | |
10297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10298 | else | |
10299 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10300 | /* confdefs.h. */ |
10301 | _ACEOF | |
10302 | cat confdefs.h >>conftest.$ac_ext | |
10303 | cat >>conftest.$ac_ext <<_ACEOF | |
10304 | /* end confdefs.h. */ | |
98418dba | 10305 | #include <Xm/Xm.h> |
98418dba CW |
10306 | int |
10307 | main () | |
10308 | { | |
10309 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
10310 | int x = 5; | |
10311 | #else | |
10312 | Motif version prior to 2.1. | |
10313 | #endif | |
10314 | ; | |
10315 | return 0; | |
10316 | } | |
10317 | _ACEOF | |
10318 | rm -f conftest.$ac_objext | |
c0d27fcc | 10319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 10320 | (eval $ac_compile) 2>conftest.er1 |
98418dba | 10321 | ac_status=$? |
35996d22 AS |
10322 | grep -v '^ *+' conftest.er1 >conftest.err |
10323 | rm -f conftest.er1 | |
10324 | cat conftest.err >&5 | |
c0d27fcc | 10325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10326 | (exit $ac_status); } && |
4494a266 JD |
10327 | { ac_try='test -z "$ac_c_werror_flag" |
10328 | || test ! -s conftest.err' | |
35996d22 AS |
10329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10330 | (eval $ac_try) 2>&5 | |
10331 | ac_status=$? | |
10332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10333 | (exit $ac_status); }; } && | |
10334 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 10335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10336 | (eval $ac_try) 2>&5 |
10337 | ac_status=$? | |
c0d27fcc | 10338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10339 | (exit $ac_status); }; }; then |
10340 | emacs_cv_motif_version_2_1=yes | |
10341 | else | |
10342 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10343 | sed 's/^/| /' conftest.$ac_ext >&5 |
10344 | ||
98418dba CW |
10345 | emacs_cv_motif_version_2_1=no |
10346 | fi | |
35996d22 | 10347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 10348 | fi |
c0d27fcc | 10349 | echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 |
98418dba CW |
10350 | echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
10351 | HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 | |
10352 | if test $emacs_cv_motif_version_2_1 = yes; then | |
10353 | HAVE_LIBXP=no | |
b936fae4 | 10354 | |
c0d27fcc | 10355 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10356 | #define HAVE_MOTIF_2_1 1 |
c0d27fcc | 10357 | _ACEOF |
98418dba | 10358 | |
c0d27fcc | 10359 | echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 |
98418dba CW |
10360 | echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
10361 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | |
10362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10363 | else | |
10364 | ac_check_lib_save_LIBS=$LIBS | |
10365 | LIBS="-lXp $LIBS" | |
10366 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10367 | /* confdefs.h. */ |
10368 | _ACEOF | |
10369 | cat confdefs.h >>conftest.$ac_ext | |
10370 | cat >>conftest.$ac_ext <<_ACEOF | |
10371 | /* end confdefs.h. */ | |
98418dba CW |
10372 | |
10373 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10374 | #ifdef __cplusplus | |
10375 | extern "C" | |
10376 | #endif | |
10377 | /* We use char because int might match the return type of a gcc2 | |
10378 | builtin and then its argument prototype would still apply. */ | |
10379 | char XpCreateContext (); | |
98418dba CW |
10380 | int |
10381 | main () | |
10382 | { | |
10383 | XpCreateContext (); | |
10384 | ; | |
10385 | return 0; | |
10386 | } | |
10387 | _ACEOF | |
10388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10390 | (eval $ac_link) 2>conftest.er1 |
98418dba | 10391 | ac_status=$? |
35996d22 AS |
10392 | grep -v '^ *+' conftest.er1 >conftest.err |
10393 | rm -f conftest.er1 | |
10394 | cat conftest.err >&5 | |
c0d27fcc | 10395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10396 | (exit $ac_status); } && |
4494a266 JD |
10397 | { ac_try='test -z "$ac_c_werror_flag" |
10398 | || test ! -s conftest.err' | |
35996d22 AS |
10399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10400 | (eval $ac_try) 2>&5 | |
10401 | ac_status=$? | |
10402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10403 | (exit $ac_status); }; } && | |
10404 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
10406 | (eval $ac_try) 2>&5 |
10407 | ac_status=$? | |
c0d27fcc | 10408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10409 | (exit $ac_status); }; }; then |
10410 | ac_cv_lib_Xp_XpCreateContext=yes | |
10411 | else | |
10412 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10413 | sed 's/^/| /' conftest.$ac_ext >&5 |
10414 | ||
98418dba CW |
10415 | ac_cv_lib_Xp_XpCreateContext=no |
10416 | fi | |
35996d22 AS |
10417 | rm -f conftest.err conftest.$ac_objext \ |
10418 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
10419 | LIBS=$ac_check_lib_save_LIBS |
10420 | fi | |
c0d27fcc | 10421 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
98418dba CW |
10422 | echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 |
10423 | if test $ac_cv_lib_Xp_XpCreateContext = yes; then | |
10424 | HAVE_LIBXP=yes | |
10425 | fi | |
503d2be0 | 10426 | |
98418dba | 10427 | if test ${HAVE_LIBXP} = yes; then |
b936fae4 | 10428 | |
c0d27fcc | 10429 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10430 | #define HAVE_LIBXP 1 |
c0d27fcc | 10431 | _ACEOF |
503d2be0 | 10432 | |
98418dba CW |
10433 | fi |
10434 | fi | |
10435 | fi | |
10436 | ||
10437 | ### Is -lXaw3d available? | |
10438 | HAVE_XAW3D=no | |
10439 | if test "${HAVE_X11}" = "yes"; then | |
10440 | if test "${USE_X_TOOLKIT}" != "none"; then | |
22044edf | 10441 | echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5 |
98418dba CW |
10442 | echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 |
10443 | if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
10444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 10445 | else |
22044edf | 10446 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10447 | /* confdefs.h. */ |
10448 | _ACEOF | |
10449 | cat confdefs.h >>conftest.$ac_ext | |
10450 | cat >>conftest.$ac_ext <<_ACEOF | |
10451 | /* end confdefs.h. */ | |
98418dba | 10452 | #include <X11/Xaw3d/Scrollbar.h> |
503d2be0 | 10453 | _ACEOF |
c0d27fcc | 10454 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
10455 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10456 | ac_status=$? | |
6bae0ccf | 10457 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
10458 | rm -f conftest.er1 |
10459 | cat conftest.err >&5 | |
c0d27fcc | 10460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
10461 | (exit $ac_status); } >/dev/null; then |
10462 | if test -s conftest.err; then | |
10463 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 10464 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
10465 | else |
10466 | ac_cpp_err= | |
10467 | fi | |
10468 | else | |
10469 | ac_cpp_err=yes | |
10470 | fi | |
10471 | if test -z "$ac_cpp_err"; then | |
22044edf | 10472 | ac_cv_header_X11_Xaw3d_Scrollbar_h=yes |
ba4481b5 | 10473 | else |
503d2be0 | 10474 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
10475 | sed 's/^/| /' conftest.$ac_ext >&5 |
10476 | ||
22044edf | 10477 | ac_cv_header_X11_Xaw3d_Scrollbar_h=no |
ba4481b5 | 10478 | fi |
503d2be0 | 10479 | rm -f conftest.err conftest.$ac_ext |
98418dba | 10480 | fi |
c0d27fcc | 10481 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 |
98418dba | 10482 | echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 |
98418dba | 10483 | if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then |
c0d27fcc | 10484 | echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
98418dba CW |
10485 | echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 |
10486 | if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then | |
10487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10488 | else | |
10489 | ac_check_lib_save_LIBS=$LIBS | |
10490 | LIBS="-lXaw3d $LIBS" | |
10491 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10492 | /* confdefs.h. */ |
10493 | _ACEOF | |
10494 | cat confdefs.h >>conftest.$ac_ext | |
10495 | cat >>conftest.$ac_ext <<_ACEOF | |
10496 | /* end confdefs.h. */ | |
98418dba CW |
10497 | |
10498 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10499 | #ifdef __cplusplus | |
10500 | extern "C" | |
10501 | #endif | |
10502 | /* We use char because int might match the return type of a gcc2 | |
10503 | builtin and then its argument prototype would still apply. */ | |
10504 | char XawScrollbarSetThumb (); | |
503d2be0 AS |
10505 | int |
10506 | main () | |
10507 | { | |
98418dba | 10508 | XawScrollbarSetThumb (); |
503d2be0 AS |
10509 | ; |
10510 | return 0; | |
10511 | } | |
10512 | _ACEOF | |
10513 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10515 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 10516 | ac_status=$? |
35996d22 AS |
10517 | grep -v '^ *+' conftest.er1 >conftest.err |
10518 | rm -f conftest.er1 | |
10519 | cat conftest.err >&5 | |
c0d27fcc | 10520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10521 | (exit $ac_status); } && |
4494a266 JD |
10522 | { ac_try='test -z "$ac_c_werror_flag" |
10523 | || test ! -s conftest.err' | |
35996d22 AS |
10524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10525 | (eval $ac_try) 2>&5 | |
10526 | ac_status=$? | |
10527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10528 | (exit $ac_status); }; } && | |
10529 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10531 | (eval $ac_try) 2>&5 |
10532 | ac_status=$? | |
c0d27fcc | 10533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10534 | (exit $ac_status); }; }; then |
98418dba | 10535 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes |
ba4481b5 | 10536 | else |
503d2be0 | 10537 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
10538 | sed 's/^/| /' conftest.$ac_ext >&5 |
10539 | ||
98418dba | 10540 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no |
ba4481b5 | 10541 | fi |
35996d22 AS |
10542 | rm -f conftest.err conftest.$ac_objext \ |
10543 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 10544 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 10545 | fi |
c0d27fcc | 10546 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
98418dba CW |
10547 | echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 |
10548 | if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then | |
10549 | HAVE_XAW3D=yes | |
ba4481b5 | 10550 | fi |
503d2be0 | 10551 | |
ba4481b5 DL |
10552 | fi |
10553 | ||
c0d27fcc | 10554 | |
98418dba | 10555 | if test "${HAVE_XAW3D}" = "yes"; then |
b936fae4 | 10556 | |
c0d27fcc | 10557 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10558 | #define HAVE_XAW3D 1 |
c0d27fcc | 10559 | _ACEOF |
98418dba | 10560 | |
ba4481b5 | 10561 | fi |
98418dba | 10562 | fi |
ba4481b5 DL |
10563 | fi |
10564 | ||
c0d27fcc MR |
10565 | |
10566 | ||
98418dba CW |
10567 | USE_TOOLKIT_SCROLL_BARS=no |
10568 | if test "${with_toolkit_scroll_bars}" != "no"; then | |
10569 | if test "${USE_X_TOOLKIT}" != "none"; then | |
10570 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
c0d27fcc | 10571 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10572 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 10573 | _ACEOF |
98418dba CW |
10574 | |
10575 | HAVE_XAW3D=no | |
10576 | USE_TOOLKIT_SCROLL_BARS=yes | |
10577 | elif test "${HAVE_XAW3D}" = "yes"; then | |
c0d27fcc | 10578 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10579 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 10580 | _ACEOF |
98418dba CW |
10581 | |
10582 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 | 10583 | fi |
488dd4c4 JD |
10584 | elif test "${HAVE_GTK}" = "yes"; then |
10585 | cat >>confdefs.h <<\_ACEOF | |
10586 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
10587 | _ACEOF | |
10588 | ||
10589 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 DL |
10590 | fi |
10591 | fi | |
10592 | ||
abd39b57 | 10593 | cat >conftest.$ac_ext <<_ACEOF |
abd39b57 AC |
10594 | /* confdefs.h. */ |
10595 | _ACEOF | |
10596 | cat confdefs.h >>conftest.$ac_ext | |
10597 | cat >>conftest.$ac_ext <<_ACEOF | |
10598 | /* end confdefs.h. */ | |
10599 | ||
10600 | #include <X11/Xlib.h> | |
10601 | #include <X11/Xresource.h> | |
10602 | int | |
10603 | main () | |
10604 | { | |
10605 | XIMProc callback; | |
10606 | ; | |
10607 | return 0; | |
10608 | } | |
10609 | _ACEOF | |
10610 | rm -f conftest.$ac_objext | |
10611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 10612 | (eval $ac_compile) 2>conftest.er1 |
abd39b57 | 10613 | ac_status=$? |
35996d22 AS |
10614 | grep -v '^ *+' conftest.er1 >conftest.err |
10615 | rm -f conftest.er1 | |
10616 | cat conftest.err >&5 | |
abd39b57 AC |
10617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10618 | (exit $ac_status); } && | |
4494a266 JD |
10619 | { ac_try='test -z "$ac_c_werror_flag" |
10620 | || test ! -s conftest.err' | |
35996d22 AS |
10621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10622 | (eval $ac_try) 2>&5 | |
10623 | ac_status=$? | |
10624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10625 | (exit $ac_status); }; } && | |
10626 | { ac_try='test -s conftest.$ac_objext' | |
abd39b57 AC |
10627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10628 | (eval $ac_try) 2>&5 | |
10629 | ac_status=$? | |
10630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10631 | (exit $ac_status); }; }; then | |
10632 | HAVE_XIM=yes | |
10633 | ||
10634 | cat >>confdefs.h <<\_ACEOF | |
10635 | #define HAVE_XIM 1 | |
10636 | _ACEOF | |
10637 | ||
10638 | else | |
10639 | echo "$as_me: failed program was:" >&5 | |
10640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10641 | ||
10642 | HAVE_XIM=no | |
10643 | fi | |
35996d22 | 10644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
abd39b57 | 10645 | |
c0d27fcc | 10646 | |
98418dba | 10647 | if test "${with_xim}" != "no"; then |
b936fae4 | 10648 | |
c0d27fcc | 10649 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10650 | #define USE_XIM 1 |
c0d27fcc | 10651 | _ACEOF |
98418dba | 10652 | |
793fa0d7 | 10653 | fi |
abd39b57 AC |
10654 | |
10655 | ||
10656 | if test "${HAVE_XIM}" != "no"; then | |
849d80cf DL |
10657 | late_CFLAGS=$CFLAGS |
10658 | if test "$GCC" = yes; then | |
10659 | CFLAGS="$CFLAGS --pedantic-errors" | |
10660 | fi | |
cffcede7 | 10661 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10662 | /* confdefs.h. */ |
10663 | _ACEOF | |
10664 | cat confdefs.h >>conftest.$ac_ext | |
10665 | cat >>conftest.$ac_ext <<_ACEOF | |
10666 | /* end confdefs.h. */ | |
cffcede7 JD |
10667 | |
10668 | #include <X11/Xlib.h> | |
10669 | #include <X11/Xresource.h> | |
10670 | int | |
10671 | main () | |
10672 | { | |
10673 | Display *display; | |
10674 | XrmDatabase db; | |
10675 | char *res_name; | |
10676 | char *res_class; | |
10677 | XIMProc callback; | |
10678 | XPointer *client_data; | |
849d80cf DL |
10679 | #ifndef __GNUC__ |
10680 | /* If we're not using GCC, it's probably not XFree86, and this is | |
10681 | probably right, but we can't use something like --pedantic-errors. */ | |
10682 | extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, | |
10683 | char*, XIMProc, XPointer*); | |
10684 | #endif | |
cffcede7 JD |
10685 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, |
10686 | client_data); | |
10687 | ; | |
10688 | return 0; | |
10689 | } | |
10690 | _ACEOF | |
10691 | rm -f conftest.$ac_objext | |
10692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 10693 | (eval $ac_compile) 2>conftest.er1 |
cffcede7 | 10694 | ac_status=$? |
35996d22 AS |
10695 | grep -v '^ *+' conftest.er1 >conftest.err |
10696 | rm -f conftest.er1 | |
10697 | cat conftest.err >&5 | |
cffcede7 JD |
10698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10699 | (exit $ac_status); } && | |
4494a266 JD |
10700 | { ac_try='test -z "$ac_c_werror_flag" |
10701 | || test ! -s conftest.err' | |
35996d22 AS |
10702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10703 | (eval $ac_try) 2>&5 | |
10704 | ac_status=$? | |
10705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10706 | (exit $ac_status); }; } && | |
10707 | { ac_try='test -s conftest.$ac_objext' | |
cffcede7 JD |
10708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10709 | (eval $ac_try) 2>&5 | |
10710 | ac_status=$? | |
10711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10712 | (exit $ac_status); }; }; then | |
10713 | emacs_cv_arg6_star=yes | |
10714 | else | |
10715 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10716 | sed 's/^/| /' conftest.$ac_ext >&5 |
10717 | ||
cffcede7 | 10718 | fi |
35996d22 | 10719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cffcede7 JD |
10720 | |
10721 | if test "$emacs_cv_arg6_star" = yes; then | |
f57bd967 | 10722 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
10723 | #define XRegisterIMInstantiateCallback_arg6 XPointer* |
10724 | _ACEOF | |
10725 | ||
10726 | else | |
f57bd967 | 10727 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
10728 | #define XRegisterIMInstantiateCallback_arg6 XPointer |
10729 | _ACEOF | |
10730 | ||
10731 | fi | |
849d80cf | 10732 | CFLAGS=$late_CFLAGS |
98418dba CW |
10733 | fi |
10734 | ||
10735 | ### Use -lXpm if available, unless `--with-xpm=no'. | |
10736 | HAVE_XPM=no | |
10737 | if test "${HAVE_X11}" = "yes"; then | |
10738 | if test "${with_xpm}" != "no"; then | |
c0d27fcc MR |
10739 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
10740 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
98418dba CW |
10741 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
10742 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
10743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
10744 | fi |
10745 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 | |
10746 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 | |
98418dba | 10747 | else |
c0d27fcc MR |
10748 | # Is the header compilable? |
10749 | echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 | |
10750 | echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6 | |
10751 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10752 | /* confdefs.h. */ |
10753 | _ACEOF | |
10754 | cat confdefs.h >>conftest.$ac_ext | |
10755 | cat >>conftest.$ac_ext <<_ACEOF | |
10756 | /* end confdefs.h. */ | |
c0d27fcc MR |
10757 | $ac_includes_default |
10758 | #include <X11/xpm.h> | |
10759 | _ACEOF | |
10760 | rm -f conftest.$ac_objext | |
10761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 10762 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 10763 | ac_status=$? |
35996d22 AS |
10764 | grep -v '^ *+' conftest.er1 >conftest.err |
10765 | rm -f conftest.er1 | |
10766 | cat conftest.err >&5 | |
c0d27fcc MR |
10767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10768 | (exit $ac_status); } && | |
4494a266 JD |
10769 | { ac_try='test -z "$ac_c_werror_flag" |
10770 | || test ! -s conftest.err' | |
35996d22 AS |
10771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10772 | (eval $ac_try) 2>&5 | |
10773 | ac_status=$? | |
10774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10775 | (exit $ac_status); }; } && | |
10776 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
10777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10778 | (eval $ac_try) 2>&5 | |
10779 | ac_status=$? | |
10780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10781 | (exit $ac_status); }; }; then | |
10782 | ac_header_compiler=yes | |
10783 | else | |
10784 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10785 | sed 's/^/| /' conftest.$ac_ext >&5 |
10786 | ||
c0d27fcc MR |
10787 | ac_header_compiler=no |
10788 | fi | |
35996d22 | 10789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
10790 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10791 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10792 | ||
10793 | # Is the header present? | |
10794 | echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 | |
10795 | echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6 | |
10796 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10797 | /* confdefs.h. */ |
10798 | _ACEOF | |
10799 | cat confdefs.h >>conftest.$ac_ext | |
10800 | cat >>conftest.$ac_ext <<_ACEOF | |
10801 | /* end confdefs.h. */ | |
98418dba CW |
10802 | #include <X11/xpm.h> |
10803 | _ACEOF | |
c0d27fcc | 10804 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
10805 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10806 | ac_status=$? | |
6bae0ccf | 10807 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
10808 | rm -f conftest.er1 |
10809 | cat conftest.err >&5 | |
c0d27fcc | 10810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10811 | (exit $ac_status); } >/dev/null; then |
10812 | if test -s conftest.err; then | |
10813 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 10814 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
10815 | else |
10816 | ac_cpp_err= | |
10817 | fi | |
10818 | else | |
10819 | ac_cpp_err=yes | |
10820 | fi | |
10821 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 10822 | ac_header_preproc=yes |
98418dba CW |
10823 | else |
10824 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10825 | sed 's/^/| /' conftest.$ac_ext >&5 |
10826 | ||
c0d27fcc | 10827 | ac_header_preproc=no |
98418dba CW |
10828 | fi |
10829 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
10830 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10831 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10832 | ||
10833 | # So? What about this header? | |
35996d22 AS |
10834 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10835 | yes:no: ) | |
c0d27fcc MR |
10836 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
10837 | echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
10838 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5 |
10839 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;} | |
10840 | ac_header_preproc=yes | |
19650fd6 | 10841 | ;; |
35996d22 | 10842 | no:yes:* ) |
c0d27fcc MR |
10843 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 |
10844 | echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
10845 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 |
10846 | echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} | |
10847 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5 | |
10848 | echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;} | |
10849 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
10850 | echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 10851 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 10852 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
10853 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5 |
10854 | echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
10855 | ( |
10856 | cat <<\_ASBOX | |
35996d22 AS |
10857 | ## ------------------------------------------ ## |
10858 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10859 | ## ------------------------------------------ ## | |
19650fd6 AS |
10860 | _ASBOX |
10861 | ) | | |
10862 | sed "s/^/$as_me: WARNING: /" >&2 | |
10863 | ;; | |
c0d27fcc MR |
10864 | esac |
10865 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
10866 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
10867 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
10868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10869 | else | |
10870 | ac_cv_header_X11_xpm_h=$ac_header_preproc | |
ba4481b5 | 10871 | fi |
c0d27fcc | 10872 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 |
98418dba | 10873 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
c0d27fcc MR |
10874 | |
10875 | fi | |
98418dba | 10876 | if test $ac_cv_header_X11_xpm_h = yes; then |
c0d27fcc | 10877 | echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5 |
98418dba CW |
10878 | echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 |
10879 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | |
503d2be0 | 10880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 10881 | else |
98418dba CW |
10882 | ac_check_lib_save_LIBS=$LIBS |
10883 | LIBS="-lXpm -lX11 $LIBS" | |
10884 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10885 | /* confdefs.h. */ |
10886 | _ACEOF | |
10887 | cat confdefs.h >>conftest.$ac_ext | |
10888 | cat >>conftest.$ac_ext <<_ACEOF | |
10889 | /* end confdefs.h. */ | |
98418dba | 10890 | |
ba4481b5 | 10891 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
10892 | #ifdef __cplusplus |
10893 | extern "C" | |
10894 | #endif | |
ba4481b5 | 10895 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 10896 | builtin and then its argument prototype would still apply. */ |
98418dba | 10897 | char XpmReadFileToPixmap (); |
503d2be0 AS |
10898 | int |
10899 | main () | |
10900 | { | |
98418dba | 10901 | XpmReadFileToPixmap (); |
503d2be0 AS |
10902 | ; |
10903 | return 0; | |
10904 | } | |
10905 | _ACEOF | |
10906 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 10907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 10908 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 10909 | ac_status=$? |
35996d22 AS |
10910 | grep -v '^ *+' conftest.er1 >conftest.err |
10911 | rm -f conftest.er1 | |
10912 | cat conftest.err >&5 | |
c0d27fcc | 10913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10914 | (exit $ac_status); } && |
4494a266 JD |
10915 | { ac_try='test -z "$ac_c_werror_flag" |
10916 | || test ! -s conftest.err' | |
35996d22 AS |
10917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10918 | (eval $ac_try) 2>&5 | |
10919 | ac_status=$? | |
10920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10921 | (exit $ac_status); }; } && | |
10922 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 10923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
10924 | (eval $ac_try) 2>&5 |
10925 | ac_status=$? | |
c0d27fcc | 10926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 10927 | (exit $ac_status); }; }; then |
98418dba | 10928 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes |
503d2be0 AS |
10929 | else |
10930 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10931 | sed 's/^/| /' conftest.$ac_ext >&5 |
10932 | ||
98418dba | 10933 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no |
503d2be0 | 10934 | fi |
35996d22 AS |
10935 | rm -f conftest.err conftest.$ac_objext \ |
10936 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 10937 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 10938 | fi |
c0d27fcc | 10939 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
98418dba CW |
10940 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 |
10941 | if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | |
10942 | HAVE_XPM=yes | |
ba4481b5 DL |
10943 | fi |
10944 | ||
98418dba CW |
10945 | fi |
10946 | ||
c0d27fcc | 10947 | |
98418dba | 10948 | if test "${HAVE_XPM}" = "yes"; then |
c0d27fcc | 10949 | echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 |
98418dba CW |
10950 | echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 |
10951 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10952 | /* confdefs.h. */ |
10953 | _ACEOF | |
10954 | cat confdefs.h >>conftest.$ac_ext | |
10955 | cat >>conftest.$ac_ext <<_ACEOF | |
10956 | /* end confdefs.h. */ | |
98418dba CW |
10957 | #include "X11/xpm.h" |
10958 | #ifndef XpmReturnAllocPixels | |
10959 | no_return_alloc_pixels | |
503d2be0 | 10960 | #endif |
ba4481b5 | 10961 | |
98418dba CW |
10962 | _ACEOF |
10963 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 10964 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then |
98418dba CW |
10965 | HAVE_XPM=no |
10966 | else | |
10967 | HAVE_XPM=yes | |
10968 | fi | |
10969 | rm -f conftest* | |
ba4481b5 | 10970 | |
c0d27fcc | 10971 | |
98418dba | 10972 | if test "${HAVE_XPM}" = "yes"; then |
c0d27fcc | 10973 | echo "$as_me:$LINENO: result: yes" >&5 |
98418dba CW |
10974 | echo "${ECHO_T}yes" >&6 |
10975 | else | |
c0d27fcc | 10976 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba CW |
10977 | echo "${ECHO_T}no" >&6 |
10978 | fi | |
10979 | fi | |
10980 | fi | |
10981 | ||
10982 | if test "${HAVE_XPM}" = "yes"; then | |
b936fae4 | 10983 | |
c0d27fcc | 10984 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10985 | #define HAVE_XPM 1 |
c0d27fcc | 10986 | _ACEOF |
98418dba CW |
10987 | |
10988 | fi | |
10989 | fi | |
10990 | ||
10991 | ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
10992 | HAVE_JPEG=no | |
10993 | if test "${HAVE_X11}" = "yes"; then | |
10994 | if test "${with_jpeg}" != "no"; then | |
c0d27fcc MR |
10995 | if test "${ac_cv_header_jerror_h+set}" = set; then |
10996 | echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
98418dba CW |
10997 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
10998 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
10999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
11000 | fi |
11001 | echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 | |
11002 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 | |
503d2be0 | 11003 | else |
c0d27fcc MR |
11004 | # Is the header compilable? |
11005 | echo "$as_me:$LINENO: checking jerror.h usability" >&5 | |
11006 | echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6 | |
11007 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11008 | /* confdefs.h. */ |
11009 | _ACEOF | |
11010 | cat confdefs.h >>conftest.$ac_ext | |
11011 | cat >>conftest.$ac_ext <<_ACEOF | |
11012 | /* end confdefs.h. */ | |
c0d27fcc MR |
11013 | $ac_includes_default |
11014 | #include <jerror.h> | |
11015 | _ACEOF | |
11016 | rm -f conftest.$ac_objext | |
11017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11018 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11019 | ac_status=$? |
35996d22 AS |
11020 | grep -v '^ *+' conftest.er1 >conftest.err |
11021 | rm -f conftest.er1 | |
11022 | cat conftest.err >&5 | |
c0d27fcc MR |
11023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11024 | (exit $ac_status); } && | |
4494a266 JD |
11025 | { ac_try='test -z "$ac_c_werror_flag" |
11026 | || test ! -s conftest.err' | |
35996d22 AS |
11027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11028 | (eval $ac_try) 2>&5 | |
11029 | ac_status=$? | |
11030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11031 | (exit $ac_status); }; } && | |
11032 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11034 | (eval $ac_try) 2>&5 | |
11035 | ac_status=$? | |
11036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11037 | (exit $ac_status); }; }; then | |
11038 | ac_header_compiler=yes | |
11039 | else | |
11040 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11041 | sed 's/^/| /' conftest.$ac_ext >&5 |
11042 | ||
c0d27fcc MR |
11043 | ac_header_compiler=no |
11044 | fi | |
35996d22 | 11045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11046 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11047 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11048 | ||
11049 | # Is the header present? | |
11050 | echo "$as_me:$LINENO: checking jerror.h presence" >&5 | |
11051 | echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6 | |
11052 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11053 | /* confdefs.h. */ |
11054 | _ACEOF | |
11055 | cat confdefs.h >>conftest.$ac_ext | |
11056 | cat >>conftest.$ac_ext <<_ACEOF | |
11057 | /* end confdefs.h. */ | |
98418dba CW |
11058 | #include <jerror.h> |
11059 | _ACEOF | |
c0d27fcc | 11060 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
11061 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11062 | ac_status=$? | |
6bae0ccf | 11063 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
11064 | rm -f conftest.er1 |
11065 | cat conftest.err >&5 | |
c0d27fcc | 11066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
11067 | (exit $ac_status); } >/dev/null; then |
11068 | if test -s conftest.err; then | |
11069 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11070 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
11071 | else |
11072 | ac_cpp_err= | |
11073 | fi | |
11074 | else | |
11075 | ac_cpp_err=yes | |
503d2be0 | 11076 | fi |
98418dba | 11077 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 11078 | ac_header_preproc=yes |
ba4481b5 | 11079 | else |
98418dba | 11080 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
11081 | sed 's/^/| /' conftest.$ac_ext >&5 |
11082 | ||
c0d27fcc | 11083 | ac_header_preproc=no |
98418dba CW |
11084 | fi |
11085 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
11086 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11087 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11088 | ||
11089 | # So? What about this header? | |
35996d22 AS |
11090 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11091 | yes:no: ) | |
c0d27fcc MR |
11092 | { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
11093 | echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11094 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5 |
11095 | echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;} | |
11096 | ac_header_preproc=yes | |
19650fd6 | 11097 | ;; |
35996d22 | 11098 | no:yes:* ) |
c0d27fcc MR |
11099 | { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 |
11100 | echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
11101 | { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 |
11102 | echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} | |
11103 | { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5 | |
11104 | echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;} | |
11105 | { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11106 | echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 11107 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11108 | echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11109 | { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5 |
11110 | echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11111 | ( |
11112 | cat <<\_ASBOX | |
35996d22 AS |
11113 | ## ------------------------------------------ ## |
11114 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11115 | ## ------------------------------------------ ## | |
19650fd6 AS |
11116 | _ASBOX |
11117 | ) | | |
11118 | sed "s/^/$as_me: WARNING: /" >&2 | |
11119 | ;; | |
c0d27fcc MR |
11120 | esac |
11121 | echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
11122 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 | |
11123 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
11124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11125 | else | |
11126 | ac_cv_header_jerror_h=$ac_header_preproc | |
ba4481b5 | 11127 | fi |
c0d27fcc | 11128 | echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
98418dba | 11129 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
c0d27fcc MR |
11130 | |
11131 | fi | |
98418dba | 11132 | if test $ac_cv_header_jerror_h = yes; then |
c0d27fcc | 11133 | echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5 |
98418dba CW |
11134 | echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 |
11135 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | |
503d2be0 | 11136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 11137 | else |
98418dba CW |
11138 | ac_check_lib_save_LIBS=$LIBS |
11139 | LIBS="-ljpeg $LIBS" | |
11140 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11141 | /* confdefs.h. */ |
11142 | _ACEOF | |
11143 | cat confdefs.h >>conftest.$ac_ext | |
11144 | cat >>conftest.$ac_ext <<_ACEOF | |
11145 | /* end confdefs.h. */ | |
98418dba CW |
11146 | |
11147 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11148 | #ifdef __cplusplus | |
11149 | extern "C" | |
11150 | #endif | |
11151 | /* We use char because int might match the return type of a gcc2 | |
11152 | builtin and then its argument prototype would still apply. */ | |
11153 | char jpeg_destroy_compress (); | |
503d2be0 AS |
11154 | int |
11155 | main () | |
11156 | { | |
98418dba | 11157 | jpeg_destroy_compress (); |
503d2be0 AS |
11158 | ; |
11159 | return 0; | |
11160 | } | |
11161 | _ACEOF | |
11162 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 11164 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 11165 | ac_status=$? |
35996d22 AS |
11166 | grep -v '^ *+' conftest.er1 >conftest.err |
11167 | rm -f conftest.er1 | |
11168 | cat conftest.err >&5 | |
c0d27fcc | 11169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11170 | (exit $ac_status); } && |
4494a266 JD |
11171 | { ac_try='test -z "$ac_c_werror_flag" |
11172 | || test ! -s conftest.err' | |
35996d22 AS |
11173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11174 | (eval $ac_try) 2>&5 | |
11175 | ac_status=$? | |
11176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11177 | (exit $ac_status); }; } && | |
11178 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 11179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11180 | (eval $ac_try) 2>&5 |
11181 | ac_status=$? | |
c0d27fcc | 11182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11183 | (exit $ac_status); }; }; then |
98418dba | 11184 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes |
ba4481b5 | 11185 | else |
503d2be0 | 11186 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
11187 | sed 's/^/| /' conftest.$ac_ext >&5 |
11188 | ||
98418dba | 11189 | ac_cv_lib_jpeg_jpeg_destroy_compress=no |
ba4481b5 | 11190 | fi |
35996d22 AS |
11191 | rm -f conftest.err conftest.$ac_objext \ |
11192 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 11193 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 11194 | fi |
c0d27fcc | 11195 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
98418dba CW |
11196 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 |
11197 | if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | |
11198 | HAVE_JPEG=yes | |
ba4481b5 | 11199 | fi |
98418dba | 11200 | |
ba4481b5 | 11201 | fi |
98418dba | 11202 | |
c0d27fcc | 11203 | |
ba4481b5 | 11204 | fi |
ba4481b5 | 11205 | |
c0d27fcc | 11206 | |
98418dba | 11207 | if test "${HAVE_JPEG}" = "yes"; then |
c0d27fcc | 11208 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11209 | #define HAVE_JPEG 1 |
c0d27fcc | 11210 | _ACEOF |
98418dba CW |
11211 | |
11212 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11213 | /* confdefs.h. */ |
11214 | _ACEOF | |
11215 | cat confdefs.h >>conftest.$ac_ext | |
11216 | cat >>conftest.$ac_ext <<_ACEOF | |
11217 | /* end confdefs.h. */ | |
22044edf | 11218 | #include <jpeglib.h> |
98418dba CW |
11219 | version=JPEG_LIB_VERSION |
11220 | ||
11221 | _ACEOF | |
11222 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 11223 | $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then |
c0d27fcc | 11224 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11225 | #define HAVE_JPEG 1 |
c0d27fcc | 11226 | _ACEOF |
ba4481b5 | 11227 | |
98418dba | 11228 | else |
c0d27fcc | 11229 | { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 |
98418dba CW |
11230 | echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
11231 | HAVE_JPEG=no | |
ba4481b5 | 11232 | fi |
98418dba | 11233 | rm -f conftest* |
ba4481b5 | 11234 | |
98418dba CW |
11235 | fi |
11236 | fi | |
503d2be0 | 11237 | |
98418dba CW |
11238 | ### Use -lpng if available, unless `--with-png=no'. |
11239 | HAVE_PNG=no | |
11240 | if test "${HAVE_X11}" = "yes"; then | |
11241 | if test "${with_png}" != "no"; then | |
f57bd967 DL |
11242 | # Debian unstable as of July 2003 has multiple libpngs, and puts png.h |
11243 | # in /usr/include/libpng. | |
11244 | ||
11245 | ||
11246 | for ac_header in png.h libpng/png.h | |
11247 | do | |
11248 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11249 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11250 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11251 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11252 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 11253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 11254 | fi |
f57bd967 DL |
11255 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11256 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
503d2be0 | 11257 | else |
c0d27fcc | 11258 | # Is the header compilable? |
f57bd967 DL |
11259 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11260 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
c0d27fcc | 11261 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
11262 | /* confdefs.h. */ |
11263 | _ACEOF | |
11264 | cat confdefs.h >>conftest.$ac_ext | |
11265 | cat >>conftest.$ac_ext <<_ACEOF | |
11266 | /* end confdefs.h. */ | |
c0d27fcc | 11267 | $ac_includes_default |
f57bd967 | 11268 | #include <$ac_header> |
c0d27fcc MR |
11269 | _ACEOF |
11270 | rm -f conftest.$ac_objext | |
11271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11272 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11273 | ac_status=$? |
35996d22 AS |
11274 | grep -v '^ *+' conftest.er1 >conftest.err |
11275 | rm -f conftest.er1 | |
11276 | cat conftest.err >&5 | |
c0d27fcc MR |
11277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11278 | (exit $ac_status); } && | |
4494a266 JD |
11279 | { ac_try='test -z "$ac_c_werror_flag" |
11280 | || test ! -s conftest.err' | |
35996d22 AS |
11281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11282 | (eval $ac_try) 2>&5 | |
11283 | ac_status=$? | |
11284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11285 | (exit $ac_status); }; } && | |
11286 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11288 | (eval $ac_try) 2>&5 | |
11289 | ac_status=$? | |
11290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11291 | (exit $ac_status); }; }; then | |
11292 | ac_header_compiler=yes | |
11293 | else | |
11294 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11295 | sed 's/^/| /' conftest.$ac_ext >&5 |
11296 | ||
c0d27fcc MR |
11297 | ac_header_compiler=no |
11298 | fi | |
35996d22 | 11299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11300 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11301 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11302 | ||
11303 | # Is the header present? | |
f57bd967 DL |
11304 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11305 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
c0d27fcc | 11306 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
11307 | /* confdefs.h. */ |
11308 | _ACEOF | |
11309 | cat confdefs.h >>conftest.$ac_ext | |
11310 | cat >>conftest.$ac_ext <<_ACEOF | |
11311 | /* end confdefs.h. */ | |
f57bd967 | 11312 | #include <$ac_header> |
503d2be0 | 11313 | _ACEOF |
c0d27fcc | 11314 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
11315 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11316 | ac_status=$? | |
6bae0ccf | 11317 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
11318 | rm -f conftest.er1 |
11319 | cat conftest.err >&5 | |
c0d27fcc | 11320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
11321 | (exit $ac_status); } >/dev/null; then |
11322 | if test -s conftest.err; then | |
11323 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11324 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
11325 | else |
11326 | ac_cpp_err= | |
11327 | fi | |
11328 | else | |
11329 | ac_cpp_err=yes | |
11330 | fi | |
11331 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11332 | ac_header_preproc=yes |
503d2be0 AS |
11333 | else |
11334 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11335 | sed 's/^/| /' conftest.$ac_ext >&5 |
11336 | ||
c0d27fcc | 11337 | ac_header_preproc=no |
ba4481b5 | 11338 | fi |
503d2be0 | 11339 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
11340 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11341 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11342 | ||
11343 | # So? What about this header? | |
35996d22 AS |
11344 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11345 | yes:no: ) | |
f57bd967 DL |
11346 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11347 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11348 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11349 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11350 | ac_header_preproc=yes | |
19650fd6 | 11351 | ;; |
35996d22 | 11352 | no:yes:* ) |
f57bd967 DL |
11353 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11354 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
11355 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11356 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11357 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11358 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11359 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11360 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
f57bd967 | 11361 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11362 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11363 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11364 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11365 | ( |
11366 | cat <<\_ASBOX | |
35996d22 AS |
11367 | ## ------------------------------------------ ## |
11368 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11369 | ## ------------------------------------------ ## | |
19650fd6 AS |
11370 | _ASBOX |
11371 | ) | | |
11372 | sed "s/^/$as_me: WARNING: /" >&2 | |
11373 | ;; | |
c0d27fcc | 11374 | esac |
f57bd967 DL |
11375 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11376 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11377 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
c0d27fcc MR |
11378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11379 | else | |
35996d22 | 11380 | eval "$as_ac_Header=\$ac_header_preproc" |
f57bd967 DL |
11381 | fi |
11382 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11383 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11384 | ||
ba4481b5 | 11385 | fi |
f57bd967 DL |
11386 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11387 | cat >>confdefs.h <<_ACEOF | |
11388 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11389 | _ACEOF | |
c0d27fcc MR |
11390 | |
11391 | fi | |
f57bd967 DL |
11392 | |
11393 | done | |
11394 | ||
11395 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | |
11396 | echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 | |
98418dba CW |
11397 | echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 |
11398 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | |
503d2be0 | 11399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 11400 | else |
98418dba CW |
11401 | ac_check_lib_save_LIBS=$LIBS |
11402 | LIBS="-lpng -lz -lm $LIBS" | |
11403 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11404 | /* confdefs.h. */ |
11405 | _ACEOF | |
11406 | cat confdefs.h >>conftest.$ac_ext | |
11407 | cat >>conftest.$ac_ext <<_ACEOF | |
11408 | /* end confdefs.h. */ | |
98418dba | 11409 | |
ba4481b5 | 11410 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11411 | #ifdef __cplusplus |
11412 | extern "C" | |
11413 | #endif | |
ba4481b5 | 11414 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 11415 | builtin and then its argument prototype would still apply. */ |
98418dba | 11416 | char png_get_channels (); |
503d2be0 AS |
11417 | int |
11418 | main () | |
11419 | { | |
98418dba | 11420 | png_get_channels (); |
503d2be0 AS |
11421 | ; |
11422 | return 0; | |
11423 | } | |
11424 | _ACEOF | |
11425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 11427 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 11428 | ac_status=$? |
35996d22 AS |
11429 | grep -v '^ *+' conftest.er1 >conftest.err |
11430 | rm -f conftest.er1 | |
11431 | cat conftest.err >&5 | |
c0d27fcc | 11432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 11433 | (exit $ac_status); } && |
4494a266 JD |
11434 | { ac_try='test -z "$ac_c_werror_flag" |
11435 | || test ! -s conftest.err' | |
35996d22 AS |
11436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11437 | (eval $ac_try) 2>&5 | |
11438 | ac_status=$? | |
11439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11440 | (exit $ac_status); }; } && | |
11441 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 11442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11443 | (eval $ac_try) 2>&5 |
11444 | ac_status=$? | |
c0d27fcc | 11445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11446 | (exit $ac_status); }; }; then |
98418dba | 11447 | ac_cv_lib_png_png_get_channels=yes |
73b77ee5 | 11448 | else |
98418dba | 11449 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
11450 | sed 's/^/| /' conftest.$ac_ext >&5 |
11451 | ||
98418dba | 11452 | ac_cv_lib_png_png_get_channels=no |
73b77ee5 | 11453 | fi |
35996d22 AS |
11454 | rm -f conftest.err conftest.$ac_objext \ |
11455 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 11456 | LIBS=$ac_check_lib_save_LIBS |
73b77ee5 | 11457 | fi |
c0d27fcc | 11458 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 |
98418dba CW |
11459 | echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 |
11460 | if test $ac_cv_lib_png_png_get_channels = yes; then | |
11461 | HAVE_PNG=yes | |
73b77ee5 | 11462 | fi |
503d2be0 | 11463 | |
f57bd967 | 11464 | fi |
98418dba CW |
11465 | fi |
11466 | ||
11467 | if test "${HAVE_PNG}" = "yes"; then | |
b936fae4 | 11468 | |
c0d27fcc | 11469 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11470 | #define HAVE_PNG 1 |
c0d27fcc | 11471 | _ACEOF |
73b77ee5 | 11472 | |
98418dba | 11473 | fi |
73b77ee5 GM |
11474 | fi |
11475 | ||
98418dba CW |
11476 | ### Use -ltiff if available, unless `--with-tiff=no'. |
11477 | HAVE_TIFF=no | |
11478 | if test "${HAVE_X11}" = "yes"; then | |
11479 | if test "${with_tiff}" != "no"; then | |
c0d27fcc MR |
11480 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
11481 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
98418dba CW |
11482 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
11483 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
11484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
11485 | fi |
11486 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
11487 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
98418dba | 11488 | else |
c0d27fcc MR |
11489 | # Is the header compilable? |
11490 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
11491 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
11492 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11493 | /* confdefs.h. */ |
11494 | _ACEOF | |
11495 | cat confdefs.h >>conftest.$ac_ext | |
11496 | cat >>conftest.$ac_ext <<_ACEOF | |
11497 | /* end confdefs.h. */ | |
c0d27fcc MR |
11498 | $ac_includes_default |
11499 | #include <tiffio.h> | |
11500 | _ACEOF | |
11501 | rm -f conftest.$ac_objext | |
11502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11503 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11504 | ac_status=$? |
35996d22 AS |
11505 | grep -v '^ *+' conftest.er1 >conftest.err |
11506 | rm -f conftest.er1 | |
11507 | cat conftest.err >&5 | |
c0d27fcc MR |
11508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11509 | (exit $ac_status); } && | |
4494a266 JD |
11510 | { ac_try='test -z "$ac_c_werror_flag" |
11511 | || test ! -s conftest.err' | |
35996d22 AS |
11512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11513 | (eval $ac_try) 2>&5 | |
11514 | ac_status=$? | |
11515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11516 | (exit $ac_status); }; } && | |
11517 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11519 | (eval $ac_try) 2>&5 | |
11520 | ac_status=$? | |
11521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11522 | (exit $ac_status); }; }; then | |
11523 | ac_header_compiler=yes | |
11524 | else | |
11525 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11526 | sed 's/^/| /' conftest.$ac_ext >&5 |
11527 | ||
c0d27fcc MR |
11528 | ac_header_compiler=no |
11529 | fi | |
35996d22 | 11530 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11531 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11532 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11533 | ||
11534 | # Is the header present? | |
11535 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
11536 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
11537 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11538 | /* confdefs.h. */ |
11539 | _ACEOF | |
11540 | cat confdefs.h >>conftest.$ac_ext | |
11541 | cat >>conftest.$ac_ext <<_ACEOF | |
11542 | /* end confdefs.h. */ | |
98418dba CW |
11543 | #include <tiffio.h> |
11544 | _ACEOF | |
c0d27fcc | 11545 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
11546 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11547 | ac_status=$? | |
6bae0ccf | 11548 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
11549 | rm -f conftest.er1 |
11550 | cat conftest.err >&5 | |
c0d27fcc | 11551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
11552 | (exit $ac_status); } >/dev/null; then |
11553 | if test -s conftest.err; then | |
11554 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11555 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
11556 | else |
11557 | ac_cpp_err= | |
11558 | fi | |
11559 | else | |
11560 | ac_cpp_err=yes | |
11561 | fi | |
11562 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11563 | ac_header_preproc=yes |
98418dba CW |
11564 | else |
11565 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11566 | sed 's/^/| /' conftest.$ac_ext >&5 |
11567 | ||
c0d27fcc | 11568 | ac_header_preproc=no |
98418dba CW |
11569 | fi |
11570 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
11571 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11572 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11573 | ||
11574 | # So? What about this header? | |
35996d22 AS |
11575 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11576 | yes:no: ) | |
c0d27fcc MR |
11577 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
11578 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11579 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
11580 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
11581 | ac_header_preproc=yes | |
19650fd6 | 11582 | ;; |
35996d22 | 11583 | no:yes:* ) |
c0d27fcc MR |
11584 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
11585 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
11586 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
11587 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
11588 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
11589 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
11590 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11591 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 11592 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11593 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11594 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
11595 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11596 | ( |
11597 | cat <<\_ASBOX | |
35996d22 AS |
11598 | ## ------------------------------------------ ## |
11599 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11600 | ## ------------------------------------------ ## | |
19650fd6 AS |
11601 | _ASBOX |
11602 | ) | | |
11603 | sed "s/^/$as_me: WARNING: /" >&2 | |
11604 | ;; | |
c0d27fcc MR |
11605 | esac |
11606 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
11607 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
11608 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
11609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11610 | else | |
11611 | ac_cv_header_tiffio_h=$ac_header_preproc | |
98418dba | 11612 | fi |
c0d27fcc | 11613 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
98418dba | 11614 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
c0d27fcc MR |
11615 | |
11616 | fi | |
98418dba CW |
11617 | if test $ac_cv_header_tiffio_h = yes; then |
11618 | tifflibs="-lz -lm" | |
11619 | # At least one tiff package requires the jpeg library. | |
11620 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
c0d27fcc | 11621 | echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 |
98418dba CW |
11622 | echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 |
11623 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | |
503d2be0 | 11624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 11625 | else |
503d2be0 | 11626 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 11627 | LIBS="-ltiff $tifflibs $LIBS" |
503d2be0 | 11628 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
11629 | /* confdefs.h. */ |
11630 | _ACEOF | |
11631 | cat confdefs.h >>conftest.$ac_ext | |
11632 | cat >>conftest.$ac_ext <<_ACEOF | |
11633 | /* end confdefs.h. */ | |
503d2be0 | 11634 | |
73b77ee5 | 11635 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
11636 | #ifdef __cplusplus |
11637 | extern "C" | |
11638 | #endif | |
73b77ee5 | 11639 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 11640 | builtin and then its argument prototype would still apply. */ |
98418dba | 11641 | char TIFFGetVersion (); |
503d2be0 AS |
11642 | int |
11643 | main () | |
11644 | { | |
98418dba | 11645 | TIFFGetVersion (); |
503d2be0 AS |
11646 | ; |
11647 | return 0; | |
11648 | } | |
11649 | _ACEOF | |
11650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 11652 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 11653 | ac_status=$? |
35996d22 AS |
11654 | grep -v '^ *+' conftest.er1 >conftest.err |
11655 | rm -f conftest.er1 | |
11656 | cat conftest.err >&5 | |
c0d27fcc | 11657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11658 | (exit $ac_status); } && |
4494a266 JD |
11659 | { ac_try='test -z "$ac_c_werror_flag" |
11660 | || test ! -s conftest.err' | |
35996d22 AS |
11661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11662 | (eval $ac_try) 2>&5 | |
11663 | ac_status=$? | |
11664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11665 | (exit $ac_status); }; } && | |
11666 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 11667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
11668 | (eval $ac_try) 2>&5 |
11669 | ac_status=$? | |
c0d27fcc | 11670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 11671 | (exit $ac_status); }; }; then |
98418dba | 11672 | ac_cv_lib_tiff_TIFFGetVersion=yes |
503d2be0 AS |
11673 | else |
11674 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11675 | sed 's/^/| /' conftest.$ac_ext >&5 |
11676 | ||
98418dba | 11677 | ac_cv_lib_tiff_TIFFGetVersion=no |
503d2be0 | 11678 | fi |
35996d22 AS |
11679 | rm -f conftest.err conftest.$ac_objext \ |
11680 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
11681 | LIBS=$ac_check_lib_save_LIBS |
11682 | fi | |
c0d27fcc | 11683 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
98418dba CW |
11684 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 |
11685 | if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | |
11686 | HAVE_TIFF=yes | |
11687 | fi | |
11688 | ||
11689 | fi | |
73b77ee5 | 11690 | |
c0d27fcc | 11691 | |
98418dba CW |
11692 | fi |
11693 | ||
11694 | if test "${HAVE_TIFF}" = "yes"; then | |
b936fae4 | 11695 | |
c0d27fcc | 11696 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11697 | #define HAVE_TIFF 1 |
c0d27fcc | 11698 | _ACEOF |
98418dba CW |
11699 | |
11700 | fi | |
73b77ee5 GM |
11701 | fi |
11702 | ||
98418dba CW |
11703 | ### Use -lgif if available, unless `--with-gif=no'. |
11704 | HAVE_GIF=no | |
11705 | if test "${HAVE_X11}" = "yes"; then | |
11706 | if test "${with_gif}" != "no"; then | |
c0d27fcc MR |
11707 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
11708 | echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
98418dba CW |
11709 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 |
11710 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
11711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
11712 | fi |
11713 | echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 | |
11714 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 | |
98418dba | 11715 | else |
c0d27fcc MR |
11716 | # Is the header compilable? |
11717 | echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 | |
11718 | echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6 | |
11719 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11720 | /* confdefs.h. */ |
11721 | _ACEOF | |
11722 | cat confdefs.h >>conftest.$ac_ext | |
11723 | cat >>conftest.$ac_ext <<_ACEOF | |
11724 | /* end confdefs.h. */ | |
c0d27fcc MR |
11725 | $ac_includes_default |
11726 | #include <gif_lib.h> | |
11727 | _ACEOF | |
11728 | rm -f conftest.$ac_objext | |
11729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11730 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11731 | ac_status=$? |
35996d22 AS |
11732 | grep -v '^ *+' conftest.er1 >conftest.err |
11733 | rm -f conftest.er1 | |
11734 | cat conftest.err >&5 | |
c0d27fcc MR |
11735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11736 | (exit $ac_status); } && | |
4494a266 JD |
11737 | { ac_try='test -z "$ac_c_werror_flag" |
11738 | || test ! -s conftest.err' | |
35996d22 AS |
11739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11740 | (eval $ac_try) 2>&5 | |
11741 | ac_status=$? | |
11742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11743 | (exit $ac_status); }; } && | |
11744 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11746 | (eval $ac_try) 2>&5 | |
11747 | ac_status=$? | |
11748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11749 | (exit $ac_status); }; }; then | |
11750 | ac_header_compiler=yes | |
11751 | else | |
11752 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11753 | sed 's/^/| /' conftest.$ac_ext >&5 |
11754 | ||
c0d27fcc MR |
11755 | ac_header_compiler=no |
11756 | fi | |
35996d22 | 11757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11758 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11759 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11760 | ||
11761 | # Is the header present? | |
11762 | echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 | |
11763 | echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6 | |
11764 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11765 | /* confdefs.h. */ |
11766 | _ACEOF | |
11767 | cat confdefs.h >>conftest.$ac_ext | |
11768 | cat >>conftest.$ac_ext <<_ACEOF | |
11769 | /* end confdefs.h. */ | |
98418dba CW |
11770 | #include <gif_lib.h> |
11771 | _ACEOF | |
c0d27fcc | 11772 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
11773 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11774 | ac_status=$? | |
6bae0ccf | 11775 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
11776 | rm -f conftest.er1 |
11777 | cat conftest.err >&5 | |
c0d27fcc | 11778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
11779 | (exit $ac_status); } >/dev/null; then |
11780 | if test -s conftest.err; then | |
11781 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 11782 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
11783 | else |
11784 | ac_cpp_err= | |
11785 | fi | |
11786 | else | |
11787 | ac_cpp_err=yes | |
11788 | fi | |
11789 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 11790 | ac_header_preproc=yes |
98418dba CW |
11791 | else |
11792 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11793 | sed 's/^/| /' conftest.$ac_ext >&5 |
11794 | ||
c0d27fcc | 11795 | ac_header_preproc=no |
98418dba CW |
11796 | fi |
11797 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
11798 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11799 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11800 | ||
11801 | # So? What about this header? | |
35996d22 AS |
11802 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11803 | yes:no: ) | |
c0d27fcc MR |
11804 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
11805 | echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
11806 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5 |
11807 | echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;} | |
11808 | ac_header_preproc=yes | |
19650fd6 | 11809 | ;; |
35996d22 | 11810 | no:yes:* ) |
c0d27fcc MR |
11811 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 |
11812 | echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
11813 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 |
11814 | echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} | |
11815 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5 | |
11816 | echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;} | |
11817 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11818 | echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 11819 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 11820 | echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
11821 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5 |
11822 | echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
11823 | ( |
11824 | cat <<\_ASBOX | |
35996d22 AS |
11825 | ## ------------------------------------------ ## |
11826 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11827 | ## ------------------------------------------ ## | |
19650fd6 AS |
11828 | _ASBOX |
11829 | ) | | |
11830 | sed "s/^/$as_me: WARNING: /" >&2 | |
11831 | ;; | |
c0d27fcc MR |
11832 | esac |
11833 | echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
11834 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 | |
11835 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
11836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11837 | else | |
11838 | ac_cv_header_gif_lib_h=$ac_header_preproc | |
98418dba | 11839 | fi |
c0d27fcc | 11840 | echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 |
98418dba | 11841 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 |
c0d27fcc MR |
11842 | |
11843 | fi | |
98418dba CW |
11844 | if test $ac_cv_header_gif_lib_h = yes; then |
11845 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | |
11846 | # Earlier versions can crash Emacs. | |
c0d27fcc | 11847 | echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 |
98418dba CW |
11848 | echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6 |
11849 | if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | |
503d2be0 | 11850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 11851 | else |
503d2be0 | 11852 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 11853 | LIBS="-lungif $LIBS" |
503d2be0 | 11854 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
11855 | /* confdefs.h. */ |
11856 | _ACEOF | |
11857 | cat confdefs.h >>conftest.$ac_ext | |
11858 | cat >>conftest.$ac_ext <<_ACEOF | |
11859 | /* end confdefs.h. */ | |
73b77ee5 | 11860 | |
98418dba CW |
11861 | /* Override any gcc2 internal prototype to avoid an error. */ |
11862 | #ifdef __cplusplus | |
11863 | extern "C" | |
11864 | #endif | |
11865 | /* We use char because int might match the return type of a gcc2 | |
11866 | builtin and then its argument prototype would still apply. */ | |
11867 | char EGifPutExtensionLast (); | |
503d2be0 AS |
11868 | int |
11869 | main () | |
11870 | { | |
98418dba | 11871 | EGifPutExtensionLast (); |
503d2be0 AS |
11872 | ; |
11873 | return 0; | |
11874 | } | |
11875 | _ACEOF | |
11876 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 11877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 11878 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 11879 | ac_status=$? |
35996d22 AS |
11880 | grep -v '^ *+' conftest.er1 >conftest.err |
11881 | rm -f conftest.er1 | |
11882 | cat conftest.err >&5 | |
c0d27fcc | 11883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 11884 | (exit $ac_status); } && |
4494a266 JD |
11885 | { ac_try='test -z "$ac_c_werror_flag" |
11886 | || test ! -s conftest.err' | |
c0d27fcc | 11887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
11888 | (eval $ac_try) 2>&5 |
11889 | ac_status=$? | |
c0d27fcc | 11890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996d22 AS |
11891 | (exit $ac_status); }; } && |
11892 | { ac_try='test -s conftest$ac_exeext' | |
11893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11894 | (eval $ac_try) 2>&5 | |
11895 | ac_status=$? | |
11896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11897 | (exit $ac_status); }; }; then | |
11898 | ac_cv_lib_ungif_EGifPutExtensionLast=yes | |
11899 | else | |
98418dba | 11900 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
11901 | sed 's/^/| /' conftest.$ac_ext >&5 |
11902 | ||
98418dba CW |
11903 | ac_cv_lib_ungif_EGifPutExtensionLast=no |
11904 | fi | |
35996d22 AS |
11905 | rm -f conftest.err conftest.$ac_objext \ |
11906 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
11907 | LIBS=$ac_check_lib_save_LIBS |
11908 | fi | |
c0d27fcc | 11909 | echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
98418dba CW |
11910 | echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6 |
11911 | if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | |
11912 | HAVE_GIF=yes | |
11913 | fi | |
11914 | ||
11915 | fi | |
11916 | ||
c0d27fcc | 11917 | |
98418dba CW |
11918 | fi |
11919 | ||
11920 | if test "${HAVE_GIF}" = "yes"; then | |
b936fae4 | 11921 | |
c0d27fcc | 11922 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11923 | #define HAVE_GIF 1 |
c0d27fcc | 11924 | _ACEOF |
98418dba CW |
11925 | |
11926 | fi | |
11927 | fi | |
11928 | ||
c0d27fcc MR |
11929 | ### Use Mac OS X Carbon API to implement GUI. |
11930 | HAVE_CARBON=no | |
11931 | if test "${with_carbon}" != "no"; then | |
11932 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
11933 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 | |
11934 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 | |
11935 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
11936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11937 | fi | |
11938 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 | |
11939 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 | |
11940 | else | |
11941 | # Is the header compilable? | |
11942 | echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 | |
11943 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 | |
11944 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11945 | /* confdefs.h. */ |
11946 | _ACEOF | |
11947 | cat confdefs.h >>conftest.$ac_ext | |
11948 | cat >>conftest.$ac_ext <<_ACEOF | |
11949 | /* end confdefs.h. */ | |
c0d27fcc MR |
11950 | $ac_includes_default |
11951 | #include <Carbon/Carbon.h> | |
11952 | _ACEOF | |
11953 | rm -f conftest.$ac_objext | |
11954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 11955 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 11956 | ac_status=$? |
35996d22 AS |
11957 | grep -v '^ *+' conftest.er1 >conftest.err |
11958 | rm -f conftest.er1 | |
11959 | cat conftest.err >&5 | |
c0d27fcc MR |
11960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11961 | (exit $ac_status); } && | |
4494a266 JD |
11962 | { ac_try='test -z "$ac_c_werror_flag" |
11963 | || test ! -s conftest.err' | |
35996d22 AS |
11964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11965 | (eval $ac_try) 2>&5 | |
11966 | ac_status=$? | |
11967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11968 | (exit $ac_status); }; } && | |
11969 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
11970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11971 | (eval $ac_try) 2>&5 | |
11972 | ac_status=$? | |
11973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11974 | (exit $ac_status); }; }; then | |
11975 | ac_header_compiler=yes | |
11976 | else | |
11977 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11978 | sed 's/^/| /' conftest.$ac_ext >&5 |
11979 | ||
c0d27fcc MR |
11980 | ac_header_compiler=no |
11981 | fi | |
35996d22 | 11982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
11983 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11984 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11985 | ||
11986 | # Is the header present? | |
11987 | echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 | |
11988 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 | |
11989 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11990 | /* confdefs.h. */ |
11991 | _ACEOF | |
11992 | cat confdefs.h >>conftest.$ac_ext | |
11993 | cat >>conftest.$ac_ext <<_ACEOF | |
11994 | /* end confdefs.h. */ | |
e0f712ba AC |
11995 | #include <Carbon/Carbon.h> |
11996 | _ACEOF | |
c0d27fcc | 11997 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
e0f712ba AC |
11998 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11999 | ac_status=$? | |
6bae0ccf | 12000 | grep -v '^ *+' conftest.er1 >conftest.err |
e0f712ba AC |
12001 | rm -f conftest.er1 |
12002 | cat conftest.err >&5 | |
c0d27fcc | 12003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e0f712ba AC |
12004 | (exit $ac_status); } >/dev/null; then |
12005 | if test -s conftest.err; then | |
12006 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 12007 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e0f712ba AC |
12008 | else |
12009 | ac_cpp_err= | |
12010 | fi | |
12011 | else | |
12012 | ac_cpp_err=yes | |
12013 | fi | |
12014 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 12015 | ac_header_preproc=yes |
e0f712ba AC |
12016 | else |
12017 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12018 | sed 's/^/| /' conftest.$ac_ext >&5 |
12019 | ||
c0d27fcc | 12020 | ac_header_preproc=no |
e0f712ba AC |
12021 | fi |
12022 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
12023 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12024 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12025 | ||
12026 | # So? What about this header? | |
35996d22 AS |
12027 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12028 | yes:no: ) | |
c0d27fcc MR |
12029 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
12030 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
12031 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
12032 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} | |
12033 | ac_header_preproc=yes | |
19650fd6 | 12034 | ;; |
35996d22 | 12035 | no:yes:* ) |
c0d27fcc MR |
12036 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
12037 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
12038 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
12039 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} | |
12040 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 | |
12041 | echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} | |
12042 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 | |
12043 | echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 12044 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 12045 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
12046 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
12047 | echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
12048 | ( |
12049 | cat <<\_ASBOX | |
35996d22 AS |
12050 | ## ------------------------------------------ ## |
12051 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12052 | ## ------------------------------------------ ## | |
19650fd6 AS |
12053 | _ASBOX |
12054 | ) | | |
12055 | sed "s/^/$as_me: WARNING: /" >&2 | |
12056 | ;; | |
c0d27fcc MR |
12057 | esac |
12058 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 | |
12059 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 | |
12060 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
12061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12062 | else | |
12063 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc | |
e0f712ba | 12064 | fi |
c0d27fcc | 12065 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
e0f712ba | 12066 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
c0d27fcc MR |
12067 | |
12068 | fi | |
e0f712ba AC |
12069 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
12070 | HAVE_CARBON=yes | |
12071 | fi | |
12072 | ||
c0d27fcc | 12073 | |
e0f712ba AC |
12074 | fi |
12075 | ||
cef11da2 ST |
12076 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then |
12077 | echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 | |
12078 | echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6 | |
12079 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then | |
12080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12081 | fi | |
12082 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 | |
12083 | echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6 | |
12084 | else | |
12085 | # Is the header compilable? | |
12086 | echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5 | |
12087 | echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6 | |
12088 | cat >conftest.$ac_ext <<_ACEOF | |
12089 | /* confdefs.h. */ | |
12090 | _ACEOF | |
12091 | cat confdefs.h >>conftest.$ac_ext | |
12092 | cat >>conftest.$ac_ext <<_ACEOF | |
12093 | /* end confdefs.h. */ | |
12094 | $ac_includes_default | |
12095 | #include <malloc/malloc.h> | |
12096 | _ACEOF | |
12097 | rm -f conftest.$ac_objext | |
12098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12099 | (eval $ac_compile) 2>conftest.er1 | |
12100 | ac_status=$? | |
12101 | grep -v '^ *+' conftest.er1 >conftest.err | |
12102 | rm -f conftest.er1 | |
12103 | cat conftest.err >&5 | |
12104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12105 | (exit $ac_status); } && | |
12106 | { ac_try='test -z "$ac_c_werror_flag" | |
12107 | || test ! -s conftest.err' | |
12108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12109 | (eval $ac_try) 2>&5 | |
12110 | ac_status=$? | |
12111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12112 | (exit $ac_status); }; } && | |
12113 | { ac_try='test -s conftest.$ac_objext' | |
12114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12115 | (eval $ac_try) 2>&5 | |
12116 | ac_status=$? | |
12117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12118 | (exit $ac_status); }; }; then | |
12119 | ac_header_compiler=yes | |
12120 | else | |
12121 | echo "$as_me: failed program was:" >&5 | |
12122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12123 | ||
12124 | ac_header_compiler=no | |
12125 | fi | |
12126 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12127 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12128 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12129 | ||
12130 | # Is the header present? | |
12131 | echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5 | |
12132 | echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6 | |
12133 | cat >conftest.$ac_ext <<_ACEOF | |
12134 | /* confdefs.h. */ | |
12135 | _ACEOF | |
12136 | cat confdefs.h >>conftest.$ac_ext | |
12137 | cat >>conftest.$ac_ext <<_ACEOF | |
12138 | /* end confdefs.h. */ | |
12139 | #include <malloc/malloc.h> | |
12140 | _ACEOF | |
12141 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12142 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12143 | ac_status=$? | |
12144 | grep -v '^ *+' conftest.er1 >conftest.err | |
12145 | rm -f conftest.er1 | |
12146 | cat conftest.err >&5 | |
12147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12148 | (exit $ac_status); } >/dev/null; then | |
12149 | if test -s conftest.err; then | |
12150 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12151 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12152 | else | |
12153 | ac_cpp_err= | |
12154 | fi | |
12155 | else | |
12156 | ac_cpp_err=yes | |
12157 | fi | |
12158 | if test -z "$ac_cpp_err"; then | |
12159 | ac_header_preproc=yes | |
12160 | else | |
12161 | echo "$as_me: failed program was:" >&5 | |
12162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12163 | ||
12164 | ac_header_preproc=no | |
12165 | fi | |
12166 | rm -f conftest.err conftest.$ac_ext | |
12167 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12168 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12169 | ||
12170 | # So? What about this header? | |
12171 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12172 | yes:no: ) | |
12173 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12174 | echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12175 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5 | |
12176 | echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;} | |
12177 | ac_header_preproc=yes | |
12178 | ;; | |
12179 | no:yes:* ) | |
12180 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5 | |
12181 | echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;} | |
12182 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5 | |
12183 | echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;} | |
12184 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5 | |
12185 | echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;} | |
12186 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5 | |
12187 | echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
12188 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5 | |
12189 | echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;} | |
12190 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5 | |
12191 | echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;} | |
12192 | ( | |
12193 | cat <<\_ASBOX | |
12194 | ## ------------------------------------------ ## | |
12195 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12196 | ## ------------------------------------------ ## | |
12197 | _ASBOX | |
12198 | ) | | |
12199 | sed "s/^/$as_me: WARNING: /" >&2 | |
12200 | ;; | |
12201 | esac | |
12202 | echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 | |
12203 | echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6 | |
12204 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then | |
12205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12206 | else | |
12207 | ac_cv_header_malloc_malloc_h=$ac_header_preproc | |
12208 | fi | |
12209 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 | |
12210 | echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6 | |
12211 | ||
12212 | fi | |
12213 | if test $ac_cv_header_malloc_malloc_h = yes; then | |
12214 | ||
12215 | cat >>confdefs.h <<\_ACEOF | |
12216 | #define HAVE_MALLOC_MALLOC_H 1 | |
12217 | _ACEOF | |
12218 | ||
12219 | fi | |
12220 | ||
12221 | ||
12222 | ||
e0f712ba | 12223 | if test "${HAVE_CARBON}" = "yes"; then |
e3ba1015 | 12224 | |
c0d27fcc | 12225 | cat >>confdefs.h <<\_ACEOF |
e0f712ba | 12226 | #define HAVE_CARBON 1 |
c0d27fcc | 12227 | _ACEOF |
e0f712ba | 12228 | |
6a3a24fa JD |
12229 | window_system=mac |
12230 | ## Specify the install directory | |
12231 | carbon_appdir= | |
12232 | if test "${carbon_appdir_x}" != ""; then | |
12233 | case ${carbon_appdir_x} in | |
12234 | y | ye | yes) carbon_appdir=/Applications ;; | |
12235 | * ) carbon_appdir=${carbon_appdir_x} ;; | |
12236 | esac | |
12237 | fi | |
8f417b3b AS |
12238 | # We also have mouse menus. |
12239 | HAVE_MENUS=yes | |
e0f712ba AC |
12240 | fi |
12241 | ||
98418dba CW |
12242 | ### Use session management (-lSM -lICE) if available |
12243 | HAVE_X_SM=no | |
12244 | if test "${HAVE_X11}" = "yes"; then | |
c0d27fcc MR |
12245 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
12246 | echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
98418dba CW |
12247 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 |
12248 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
12249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
12250 | fi |
12251 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 | |
12252 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 | |
503d2be0 | 12253 | else |
c0d27fcc MR |
12254 | # Is the header compilable? |
12255 | echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 | |
12256 | echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6 | |
12257 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12258 | /* confdefs.h. */ |
12259 | _ACEOF | |
12260 | cat confdefs.h >>conftest.$ac_ext | |
12261 | cat >>conftest.$ac_ext <<_ACEOF | |
12262 | /* end confdefs.h. */ | |
c0d27fcc MR |
12263 | $ac_includes_default |
12264 | #include <X11/SM/SMlib.h> | |
12265 | _ACEOF | |
12266 | rm -f conftest.$ac_objext | |
12267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 12268 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 12269 | ac_status=$? |
35996d22 AS |
12270 | grep -v '^ *+' conftest.er1 >conftest.err |
12271 | rm -f conftest.er1 | |
12272 | cat conftest.err >&5 | |
c0d27fcc MR |
12273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12274 | (exit $ac_status); } && | |
4494a266 JD |
12275 | { ac_try='test -z "$ac_c_werror_flag" |
12276 | || test ! -s conftest.err' | |
35996d22 AS |
12277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12278 | (eval $ac_try) 2>&5 | |
12279 | ac_status=$? | |
12280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12281 | (exit $ac_status); }; } && | |
12282 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
12283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12284 | (eval $ac_try) 2>&5 | |
12285 | ac_status=$? | |
12286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12287 | (exit $ac_status); }; }; then | |
12288 | ac_header_compiler=yes | |
12289 | else | |
12290 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12291 | sed 's/^/| /' conftest.$ac_ext >&5 |
12292 | ||
c0d27fcc MR |
12293 | ac_header_compiler=no |
12294 | fi | |
35996d22 | 12295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
12296 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12297 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12298 | ||
12299 | # Is the header present? | |
12300 | echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 | |
12301 | echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6 | |
12302 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12303 | /* confdefs.h. */ |
12304 | _ACEOF | |
12305 | cat confdefs.h >>conftest.$ac_ext | |
12306 | cat >>conftest.$ac_ext <<_ACEOF | |
12307 | /* end confdefs.h. */ | |
98418dba CW |
12308 | #include <X11/SM/SMlib.h> |
12309 | _ACEOF | |
c0d27fcc | 12310 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
12311 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12312 | ac_status=$? | |
6bae0ccf | 12313 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
12314 | rm -f conftest.er1 |
12315 | cat conftest.err >&5 | |
c0d27fcc | 12316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
12317 | (exit $ac_status); } >/dev/null; then |
12318 | if test -s conftest.err; then | |
12319 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 12320 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
12321 | else |
12322 | ac_cpp_err= | |
12323 | fi | |
12324 | else | |
12325 | ac_cpp_err=yes | |
503d2be0 | 12326 | fi |
98418dba | 12327 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 12328 | ac_header_preproc=yes |
98418dba CW |
12329 | else |
12330 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12331 | sed 's/^/| /' conftest.$ac_ext >&5 |
12332 | ||
c0d27fcc | 12333 | ac_header_preproc=no |
98418dba CW |
12334 | fi |
12335 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
12336 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12337 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12338 | ||
12339 | # So? What about this header? | |
35996d22 AS |
12340 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12341 | yes:no: ) | |
c0d27fcc MR |
12342 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
12343 | echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
12344 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5 |
12345 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;} | |
12346 | ac_header_preproc=yes | |
19650fd6 | 12347 | ;; |
35996d22 | 12348 | no:yes:* ) |
c0d27fcc MR |
12349 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 |
12350 | echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
12351 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 |
12352 | echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} | |
12353 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5 | |
12354 | echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;} | |
12355 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
12356 | echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 12357 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 12358 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
12359 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5 |
12360 | echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
12361 | ( |
12362 | cat <<\_ASBOX | |
35996d22 AS |
12363 | ## ------------------------------------------ ## |
12364 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12365 | ## ------------------------------------------ ## | |
19650fd6 AS |
12366 | _ASBOX |
12367 | ) | | |
12368 | sed "s/^/$as_me: WARNING: /" >&2 | |
12369 | ;; | |
c0d27fcc MR |
12370 | esac |
12371 | echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
12372 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 | |
12373 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
12374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12375 | else | |
12376 | ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc | |
73b77ee5 | 12377 | fi |
c0d27fcc | 12378 | echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
98418dba | 12379 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 |
c0d27fcc MR |
12380 | |
12381 | fi | |
98418dba | 12382 | if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
c0d27fcc | 12383 | echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 |
98418dba CW |
12384 | echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6 |
12385 | if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then | |
503d2be0 | 12386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 12387 | else |
503d2be0 | 12388 | ac_check_lib_save_LIBS=$LIBS |
1660500f | 12389 | LIBS="-lSM -lICE $LIBS" |
503d2be0 | 12390 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12391 | /* confdefs.h. */ |
12392 | _ACEOF | |
12393 | cat confdefs.h >>conftest.$ac_ext | |
12394 | cat >>conftest.$ac_ext <<_ACEOF | |
12395 | /* end confdefs.h. */ | |
503d2be0 | 12396 | |
73b77ee5 | 12397 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12398 | #ifdef __cplusplus |
12399 | extern "C" | |
12400 | #endif | |
73b77ee5 | 12401 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 12402 | builtin and then its argument prototype would still apply. */ |
98418dba | 12403 | char SmcOpenConnection (); |
503d2be0 AS |
12404 | int |
12405 | main () | |
12406 | { | |
98418dba | 12407 | SmcOpenConnection (); |
503d2be0 AS |
12408 | ; |
12409 | return 0; | |
12410 | } | |
12411 | _ACEOF | |
12412 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12414 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12415 | ac_status=$? |
35996d22 AS |
12416 | grep -v '^ *+' conftest.er1 >conftest.err |
12417 | rm -f conftest.er1 | |
12418 | cat conftest.err >&5 | |
c0d27fcc | 12419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12420 | (exit $ac_status); } && |
4494a266 JD |
12421 | { ac_try='test -z "$ac_c_werror_flag" |
12422 | || test ! -s conftest.err' | |
35996d22 AS |
12423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12424 | (eval $ac_try) 2>&5 | |
12425 | ac_status=$? | |
12426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12427 | (exit $ac_status); }; } && | |
12428 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12430 | (eval $ac_try) 2>&5 |
12431 | ac_status=$? | |
c0d27fcc | 12432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12433 | (exit $ac_status); }; }; then |
98418dba | 12434 | ac_cv_lib_SM_SmcOpenConnection=yes |
503d2be0 AS |
12435 | else |
12436 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12437 | sed 's/^/| /' conftest.$ac_ext >&5 |
12438 | ||
98418dba | 12439 | ac_cv_lib_SM_SmcOpenConnection=no |
503d2be0 | 12440 | fi |
35996d22 AS |
12441 | rm -f conftest.err conftest.$ac_objext \ |
12442 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
12443 | LIBS=$ac_check_lib_save_LIBS |
12444 | fi | |
c0d27fcc | 12445 | echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
98418dba CW |
12446 | echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6 |
12447 | if test $ac_cv_lib_SM_SmcOpenConnection = yes; then | |
12448 | HAVE_X_SM=yes | |
73b77ee5 GM |
12449 | fi |
12450 | ||
73b77ee5 | 12451 | fi |
73b77ee5 | 12452 | |
c0d27fcc MR |
12453 | |
12454 | ||
98418dba | 12455 | if test "${HAVE_X_SM}" = "yes"; then |
b936fae4 | 12456 | |
c0d27fcc | 12457 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12458 | #define HAVE_X_SM 1 |
c0d27fcc | 12459 | _ACEOF |
73b77ee5 | 12460 | |
98418dba CW |
12461 | case "$LIBS" in |
12462 | *-lSM*) ;; | |
12463 | *) LIBS="-lSM -lICE $LIBS" ;; | |
12464 | esac | |
73b77ee5 | 12465 | fi |
98418dba | 12466 | fi |
73b77ee5 | 12467 | |
98418dba | 12468 | # If netdb.h doesn't declare h_errno, we must declare it by hand. |
c0d27fcc | 12469 | echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 |
98418dba CW |
12470 | echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 |
12471 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | |
12472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12473 | else | |
12474 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12475 | /* confdefs.h. */ |
12476 | _ACEOF | |
12477 | cat confdefs.h >>conftest.$ac_ext | |
12478 | cat >>conftest.$ac_ext <<_ACEOF | |
12479 | /* end confdefs.h. */ | |
98418dba | 12480 | #include <netdb.h> |
503d2be0 AS |
12481 | int |
12482 | main () | |
12483 | { | |
98418dba | 12484 | return h_errno; |
503d2be0 AS |
12485 | ; |
12486 | return 0; | |
12487 | } | |
12488 | _ACEOF | |
12489 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12491 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12492 | ac_status=$? |
35996d22 AS |
12493 | grep -v '^ *+' conftest.er1 >conftest.err |
12494 | rm -f conftest.er1 | |
12495 | cat conftest.err >&5 | |
c0d27fcc | 12496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12497 | (exit $ac_status); } && |
4494a266 JD |
12498 | { ac_try='test -z "$ac_c_werror_flag" |
12499 | || test ! -s conftest.err' | |
35996d22 AS |
12500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12501 | (eval $ac_try) 2>&5 | |
12502 | ac_status=$? | |
12503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12504 | (exit $ac_status); }; } && | |
12505 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12507 | (eval $ac_try) 2>&5 |
12508 | ac_status=$? | |
c0d27fcc | 12509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12510 | (exit $ac_status); }; }; then |
98418dba | 12511 | emacs_cv_netdb_declares_h_errno=yes |
73b77ee5 | 12512 | else |
503d2be0 | 12513 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12514 | sed 's/^/| /' conftest.$ac_ext >&5 |
12515 | ||
98418dba | 12516 | emacs_cv_netdb_declares_h_errno=no |
73b77ee5 | 12517 | fi |
35996d22 AS |
12518 | rm -f conftest.err conftest.$ac_objext \ |
12519 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12520 | fi |
c0d27fcc | 12521 | echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 |
98418dba CW |
12522 | echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
12523 | if test $emacs_cv_netdb_declares_h_errno = yes; then | |
b936fae4 | 12524 | |
c0d27fcc | 12525 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12526 | #define HAVE_H_ERRNO 1 |
c0d27fcc | 12527 | _ACEOF |
73b77ee5 | 12528 | |
98418dba CW |
12529 | fi |
12530 | ||
12531 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
12532 | # for constant arguments. Useless! | |
c0d27fcc | 12533 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
98418dba CW |
12534 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
12535 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
12536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12537 | else | |
12538 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12539 | /* confdefs.h. */ |
12540 | _ACEOF | |
12541 | cat confdefs.h >>conftest.$ac_ext | |
12542 | cat >>conftest.$ac_ext <<_ACEOF | |
12543 | /* end confdefs.h. */ | |
98418dba | 12544 | #include <alloca.h> |
503d2be0 AS |
12545 | int |
12546 | main () | |
12547 | { | |
98418dba | 12548 | char *p = (char *) alloca (2 * sizeof (int)); |
503d2be0 AS |
12549 | ; |
12550 | return 0; | |
12551 | } | |
12552 | _ACEOF | |
12553 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12555 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12556 | ac_status=$? |
35996d22 AS |
12557 | grep -v '^ *+' conftest.er1 >conftest.err |
12558 | rm -f conftest.er1 | |
12559 | cat conftest.err >&5 | |
c0d27fcc | 12560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12561 | (exit $ac_status); } && |
4494a266 JD |
12562 | { ac_try='test -z "$ac_c_werror_flag" |
12563 | || test ! -s conftest.err' | |
35996d22 AS |
12564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12565 | (eval $ac_try) 2>&5 | |
12566 | ac_status=$? | |
12567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12568 | (exit $ac_status); }; } && | |
12569 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12571 | (eval $ac_try) 2>&5 |
12572 | ac_status=$? | |
c0d27fcc | 12573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12574 | (exit $ac_status); }; }; then |
98418dba | 12575 | ac_cv_working_alloca_h=yes |
73b77ee5 | 12576 | else |
503d2be0 | 12577 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12578 | sed 's/^/| /' conftest.$ac_ext >&5 |
12579 | ||
98418dba | 12580 | ac_cv_working_alloca_h=no |
73b77ee5 | 12581 | fi |
35996d22 AS |
12582 | rm -f conftest.err conftest.$ac_objext \ |
12583 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12584 | fi |
c0d27fcc | 12585 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
98418dba CW |
12586 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
12587 | if test $ac_cv_working_alloca_h = yes; then | |
73b77ee5 | 12588 | |
c0d27fcc | 12589 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12590 | #define HAVE_ALLOCA_H 1 |
c0d27fcc | 12591 | _ACEOF |
98418dba CW |
12592 | |
12593 | fi | |
12594 | ||
c0d27fcc | 12595 | echo "$as_me:$LINENO: checking for alloca" >&5 |
98418dba CW |
12596 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
12597 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
12598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12599 | else | |
503d2be0 | 12600 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12601 | /* confdefs.h. */ |
12602 | _ACEOF | |
12603 | cat confdefs.h >>conftest.$ac_ext | |
12604 | cat >>conftest.$ac_ext <<_ACEOF | |
12605 | /* end confdefs.h. */ | |
98418dba CW |
12606 | #ifdef __GNUC__ |
12607 | # define alloca __builtin_alloca | |
12608 | #else | |
12609 | # ifdef _MSC_VER | |
12610 | # include <malloc.h> | |
12611 | # define alloca _alloca | |
12612 | # else | |
12613 | # if HAVE_ALLOCA_H | |
12614 | # include <alloca.h> | |
12615 | # else | |
12616 | # ifdef _AIX | |
12617 | #pragma alloca | |
12618 | # else | |
12619 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
12620 | char *alloca (); | |
12621 | # endif | |
12622 | # endif | |
12623 | # endif | |
12624 | # endif | |
12625 | #endif | |
12626 | ||
503d2be0 AS |
12627 | int |
12628 | main () | |
12629 | { | |
98418dba | 12630 | char *p = (char *) alloca (1); |
503d2be0 AS |
12631 | ; |
12632 | return 0; | |
12633 | } | |
12634 | _ACEOF | |
12635 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12637 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12638 | ac_status=$? |
35996d22 AS |
12639 | grep -v '^ *+' conftest.er1 >conftest.err |
12640 | rm -f conftest.er1 | |
12641 | cat conftest.err >&5 | |
c0d27fcc | 12642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12643 | (exit $ac_status); } && |
4494a266 JD |
12644 | { ac_try='test -z "$ac_c_werror_flag" |
12645 | || test ! -s conftest.err' | |
35996d22 AS |
12646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12647 | (eval $ac_try) 2>&5 | |
12648 | ac_status=$? | |
12649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12650 | (exit $ac_status); }; } && | |
12651 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12653 | (eval $ac_try) 2>&5 |
12654 | ac_status=$? | |
c0d27fcc | 12655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12656 | (exit $ac_status); }; }; then |
98418dba | 12657 | ac_cv_func_alloca_works=yes |
ac95a621 | 12658 | else |
503d2be0 | 12659 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12660 | sed 's/^/| /' conftest.$ac_ext >&5 |
12661 | ||
98418dba | 12662 | ac_cv_func_alloca_works=no |
ac95a621 | 12663 | fi |
35996d22 AS |
12664 | rm -f conftest.err conftest.$ac_objext \ |
12665 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12666 | fi |
c0d27fcc | 12667 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
98418dba | 12668 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
ac95a621 | 12669 | |
98418dba CW |
12670 | if test $ac_cv_func_alloca_works = yes; then |
12671 | ||
c0d27fcc | 12672 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12673 | #define HAVE_ALLOCA 1 |
c0d27fcc | 12674 | _ACEOF |
98418dba CW |
12675 | |
12676 | else | |
12677 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
12678 | # that cause trouble. Some versions do not even contain alloca or | |
12679 | # contain a buggy version. If you still want to use their alloca, | |
12680 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
12681 | ||
12682 | ALLOCA=alloca.$ac_objext | |
12683 | ||
c0d27fcc | 12684 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12685 | #define C_ALLOCA 1 |
c0d27fcc | 12686 | _ACEOF |
98418dba | 12687 | |
c0d27fcc MR |
12688 | |
12689 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
98418dba CW |
12690 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
12691 | if test "${ac_cv_os_cray+set}" = set; then | |
12692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12693 | else | |
12694 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12695 | /* confdefs.h. */ |
12696 | _ACEOF | |
12697 | cat confdefs.h >>conftest.$ac_ext | |
12698 | cat >>conftest.$ac_ext <<_ACEOF | |
12699 | /* end confdefs.h. */ | |
98418dba CW |
12700 | #if defined(CRAY) && ! defined(CRAY2) |
12701 | webecray | |
12702 | #else | |
12703 | wenotbecray | |
12704 | #endif | |
12705 | ||
12706 | _ACEOF | |
12707 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 12708 | $EGREP "webecray" >/dev/null 2>&1; then |
98418dba CW |
12709 | ac_cv_os_cray=yes |
12710 | else | |
12711 | ac_cv_os_cray=no | |
12712 | fi | |
12713 | rm -f conftest* | |
ac95a621 | 12714 | |
98418dba | 12715 | fi |
c0d27fcc | 12716 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
98418dba CW |
12717 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
12718 | if test $ac_cv_os_cray = yes; then | |
12719 | for ac_func in _getb67 GETB67 getb67; do | |
12720 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 12721 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
12722 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12723 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
73b77ee5 | 12725 | else |
503d2be0 | 12726 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12727 | /* confdefs.h. */ |
12728 | _ACEOF | |
12729 | cat confdefs.h >>conftest.$ac_ext | |
12730 | cat >>conftest.$ac_ext <<_ACEOF | |
12731 | /* end confdefs.h. */ | |
35996d22 AS |
12732 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
12733 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12734 | #define $ac_func innocuous_$ac_func | |
12735 | ||
73b77ee5 | 12736 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
12737 | which can conflict with char $ac_func (); below. |
12738 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12739 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 12740 | |
19650fd6 AS |
12741 | #ifdef __STDC__ |
12742 | # include <limits.h> | |
12743 | #else | |
12744 | # include <assert.h> | |
12745 | #endif | |
35996d22 AS |
12746 | |
12747 | #undef $ac_func | |
12748 | ||
73b77ee5 | 12749 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
12750 | #ifdef __cplusplus |
12751 | extern "C" | |
19650fd6 | 12752 | { |
503d2be0 | 12753 | #endif |
73b77ee5 | 12754 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
12755 | builtin and then its argument prototype would still apply. */ |
12756 | char $ac_func (); | |
73b77ee5 GM |
12757 | /* The GNU C library defines this for functions which it implements |
12758 | to always fail with ENOSYS. Some functions are actually named | |
12759 | something starting with __ and the normal name is an alias. */ | |
12760 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12761 | choke me | |
12762 | #else | |
19650fd6 AS |
12763 | char (*f) () = $ac_func; |
12764 | #endif | |
12765 | #ifdef __cplusplus | |
12766 | } | |
73b77ee5 GM |
12767 | #endif |
12768 | ||
19650fd6 AS |
12769 | int |
12770 | main () | |
12771 | { | |
12772 | return f != $ac_func; | |
503d2be0 AS |
12773 | ; |
12774 | return 0; | |
12775 | } | |
12776 | _ACEOF | |
12777 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12779 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12780 | ac_status=$? |
35996d22 AS |
12781 | grep -v '^ *+' conftest.er1 >conftest.err |
12782 | rm -f conftest.er1 | |
12783 | cat conftest.err >&5 | |
c0d27fcc | 12784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12785 | (exit $ac_status); } && |
4494a266 JD |
12786 | { ac_try='test -z "$ac_c_werror_flag" |
12787 | || test ! -s conftest.err' | |
35996d22 AS |
12788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12789 | (eval $ac_try) 2>&5 | |
12790 | ac_status=$? | |
12791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12792 | (exit $ac_status); }; } && | |
12793 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12795 | (eval $ac_try) 2>&5 |
12796 | ac_status=$? | |
c0d27fcc | 12797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
12798 | (exit $ac_status); }; }; then |
12799 | eval "$as_ac_var=yes" | |
12800 | else | |
12801 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12802 | sed 's/^/| /' conftest.$ac_ext >&5 |
12803 | ||
503d2be0 AS |
12804 | eval "$as_ac_var=no" |
12805 | fi | |
35996d22 AS |
12806 | rm -f conftest.err conftest.$ac_objext \ |
12807 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 12808 | fi |
c0d27fcc | 12809 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
12810 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12811 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
73b77ee5 | 12812 | |
c0d27fcc | 12813 | cat >>confdefs.h <<_ACEOF |
98418dba | 12814 | #define CRAY_STACKSEG_END $ac_func |
c0d27fcc | 12815 | _ACEOF |
98418dba CW |
12816 | |
12817 | break | |
73b77ee5 | 12818 | fi |
73b77ee5 | 12819 | |
98418dba | 12820 | done |
73b77ee5 GM |
12821 | fi |
12822 | ||
c0d27fcc | 12823 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
98418dba CW |
12824 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
12825 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
503d2be0 | 12826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
98418dba CW |
12827 | else |
12828 | if test "$cross_compiling" = yes; then | |
12829 | ac_cv_c_stack_direction=0 | |
73b77ee5 | 12830 | else |
503d2be0 | 12831 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12832 | /* confdefs.h. */ |
12833 | _ACEOF | |
12834 | cat confdefs.h >>conftest.$ac_ext | |
12835 | cat >>conftest.$ac_ext <<_ACEOF | |
12836 | /* end confdefs.h. */ | |
503d2be0 | 12837 | int |
98418dba | 12838 | find_stack_direction () |
503d2be0 | 12839 | { |
98418dba CW |
12840 | static char *addr = 0; |
12841 | auto char dummy; | |
12842 | if (addr == 0) | |
12843 | { | |
12844 | addr = &dummy; | |
12845 | return find_stack_direction (); | |
12846 | } | |
73b77ee5 | 12847 | else |
98418dba CW |
12848 | return (&dummy > addr) ? 1 : -1; |
12849 | } | |
ba4481b5 | 12850 | |
503d2be0 AS |
12851 | int |
12852 | main () | |
12853 | { | |
98418dba | 12854 | exit (find_stack_direction () < 0); |
503d2be0 AS |
12855 | } |
12856 | _ACEOF | |
98418dba | 12857 | rm -f conftest$ac_exeext |
c0d27fcc | 12858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
12859 | (eval $ac_link) 2>&5 |
12860 | ac_status=$? | |
c0d27fcc | 12861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 12862 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 12863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12864 | (eval $ac_try) 2>&5 |
12865 | ac_status=$? | |
c0d27fcc | 12866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12867 | (exit $ac_status); }; }; then |
98418dba | 12868 | ac_cv_c_stack_direction=1 |
ba4481b5 | 12869 | else |
98418dba CW |
12870 | echo "$as_me: program exited with status $ac_status" >&5 |
12871 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12872 | sed 's/^/| /' conftest.$ac_ext >&5 |
12873 | ||
c0d27fcc | 12874 | ( exit $ac_status ) |
98418dba | 12875 | ac_cv_c_stack_direction=-1 |
ba4481b5 | 12876 | fi |
35996d22 | 12877 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 12878 | fi |
98418dba | 12879 | fi |
c0d27fcc | 12880 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
98418dba CW |
12881 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
12882 | ||
c0d27fcc | 12883 | cat >>confdefs.h <<_ACEOF |
98418dba | 12884 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
c0d27fcc MR |
12885 | _ACEOF |
12886 | ||
ba4481b5 | 12887 | |
ba4481b5 DL |
12888 | fi |
12889 | ||
c0d27fcc | 12890 | |
98418dba CW |
12891 | # fmod, logb, and frexp are found in -lm on most systems. |
12892 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
12893 | ||
c0d27fcc | 12894 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
98418dba CW |
12895 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
12896 | if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
503d2be0 | 12897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12898 | else |
98418dba CW |
12899 | ac_check_lib_save_LIBS=$LIBS |
12900 | LIBS="-lm $LIBS" | |
12901 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12902 | /* confdefs.h. */ |
12903 | _ACEOF | |
12904 | cat confdefs.h >>conftest.$ac_ext | |
12905 | cat >>conftest.$ac_ext <<_ACEOF | |
12906 | /* end confdefs.h. */ | |
ba4481b5 | 12907 | |
98418dba CW |
12908 | /* Override any gcc2 internal prototype to avoid an error. */ |
12909 | #ifdef __cplusplus | |
12910 | extern "C" | |
12911 | #endif | |
12912 | /* We use char because int might match the return type of a gcc2 | |
12913 | builtin and then its argument prototype would still apply. */ | |
12914 | char sqrt (); | |
503d2be0 AS |
12915 | int |
12916 | main () | |
12917 | { | |
98418dba | 12918 | sqrt (); |
503d2be0 AS |
12919 | ; |
12920 | return 0; | |
12921 | } | |
12922 | _ACEOF | |
12923 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 12924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 12925 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 12926 | ac_status=$? |
35996d22 AS |
12927 | grep -v '^ *+' conftest.er1 >conftest.err |
12928 | rm -f conftest.er1 | |
12929 | cat conftest.err >&5 | |
c0d27fcc | 12930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12931 | (exit $ac_status); } && |
4494a266 JD |
12932 | { ac_try='test -z "$ac_c_werror_flag" |
12933 | || test ! -s conftest.err' | |
35996d22 AS |
12934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12935 | (eval $ac_try) 2>&5 | |
12936 | ac_status=$? | |
12937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12938 | (exit $ac_status); }; } && | |
12939 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 12940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
12941 | (eval $ac_try) 2>&5 |
12942 | ac_status=$? | |
c0d27fcc | 12943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 12944 | (exit $ac_status); }; }; then |
98418dba | 12945 | ac_cv_lib_m_sqrt=yes |
ba4481b5 | 12946 | else |
503d2be0 | 12947 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12948 | sed 's/^/| /' conftest.$ac_ext >&5 |
12949 | ||
98418dba | 12950 | ac_cv_lib_m_sqrt=no |
ba4481b5 | 12951 | fi |
35996d22 AS |
12952 | rm -f conftest.err conftest.$ac_objext \ |
12953 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 12954 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 12955 | fi |
c0d27fcc | 12956 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
98418dba CW |
12957 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
12958 | if test $ac_cv_lib_m_sqrt = yes; then | |
c0d27fcc | 12959 | cat >>confdefs.h <<_ACEOF |
98418dba | 12960 | #define HAVE_LIBM 1 |
c0d27fcc | 12961 | _ACEOF |
98418dba CW |
12962 | |
12963 | LIBS="-lm $LIBS" | |
ba4481b5 | 12964 | |
ba4481b5 DL |
12965 | fi |
12966 | ||
c0d27fcc | 12967 | |
55597d70 DL |
12968 | # Check for mail-locking functions in a "mail" library. Probably this should |
12969 | # have the same check as for liblockfile below. | |
98418dba | 12970 | |
c0d27fcc | 12971 | echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 |
98418dba CW |
12972 | echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 |
12973 | if test "${ac_cv_lib_mail_maillock+set}" = set; then | |
503d2be0 | 12974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12975 | else |
98418dba CW |
12976 | ac_check_lib_save_LIBS=$LIBS |
12977 | LIBS="-lmail $LIBS" | |
12978 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12979 | /* confdefs.h. */ |
12980 | _ACEOF | |
12981 | cat confdefs.h >>conftest.$ac_ext | |
12982 | cat >>conftest.$ac_ext <<_ACEOF | |
12983 | /* end confdefs.h. */ | |
98418dba CW |
12984 | |
12985 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12986 | #ifdef __cplusplus | |
12987 | extern "C" | |
12988 | #endif | |
12989 | /* We use char because int might match the return type of a gcc2 | |
12990 | builtin and then its argument prototype would still apply. */ | |
12991 | char maillock (); | |
503d2be0 AS |
12992 | int |
12993 | main () | |
12994 | { | |
98418dba | 12995 | maillock (); |
503d2be0 AS |
12996 | ; |
12997 | return 0; | |
12998 | } | |
12999 | _ACEOF | |
13000 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 13002 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 13003 | ac_status=$? |
35996d22 AS |
13004 | grep -v '^ *+' conftest.er1 >conftest.err |
13005 | rm -f conftest.er1 | |
13006 | cat conftest.err >&5 | |
c0d27fcc | 13007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13008 | (exit $ac_status); } && |
4494a266 JD |
13009 | { ac_try='test -z "$ac_c_werror_flag" |
13010 | || test ! -s conftest.err' | |
35996d22 AS |
13011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13012 | (eval $ac_try) 2>&5 | |
13013 | ac_status=$? | |
13014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13015 | (exit $ac_status); }; } && | |
13016 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 13017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13018 | (eval $ac_try) 2>&5 |
13019 | ac_status=$? | |
c0d27fcc | 13020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13021 | (exit $ac_status); }; }; then |
98418dba | 13022 | ac_cv_lib_mail_maillock=yes |
ba4481b5 | 13023 | else |
503d2be0 | 13024 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13025 | sed 's/^/| /' conftest.$ac_ext >&5 |
13026 | ||
98418dba | 13027 | ac_cv_lib_mail_maillock=no |
ba4481b5 | 13028 | fi |
35996d22 AS |
13029 | rm -f conftest.err conftest.$ac_objext \ |
13030 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 13031 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 13032 | fi |
c0d27fcc | 13033 | echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 |
98418dba CW |
13034 | echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 |
13035 | if test $ac_cv_lib_mail_maillock = yes; then | |
c0d27fcc | 13036 | cat >>confdefs.h <<_ACEOF |
98418dba | 13037 | #define HAVE_LIBMAIL 1 |
c0d27fcc | 13038 | _ACEOF |
ba4481b5 | 13039 | |
98418dba | 13040 | LIBS="-lmail $LIBS" |
ba4481b5 | 13041 | |
98418dba | 13042 | fi |
ba4481b5 | 13043 | |
c0d27fcc MR |
13044 | |
13045 | echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 | |
98418dba CW |
13046 | echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 |
13047 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | |
503d2be0 | 13048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13049 | else |
503d2be0 | 13050 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 13051 | LIBS="-llockfile $LIBS" |
503d2be0 | 13052 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13053 | /* confdefs.h. */ |
13054 | _ACEOF | |
13055 | cat confdefs.h >>conftest.$ac_ext | |
13056 | cat >>conftest.$ac_ext <<_ACEOF | |
13057 | /* end confdefs.h. */ | |
503d2be0 | 13058 | |
ba4481b5 | 13059 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
13060 | #ifdef __cplusplus |
13061 | extern "C" | |
13062 | #endif | |
ba4481b5 | 13063 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 13064 | builtin and then its argument prototype would still apply. */ |
98418dba | 13065 | char maillock (); |
503d2be0 AS |
13066 | int |
13067 | main () | |
13068 | { | |
98418dba | 13069 | maillock (); |
503d2be0 AS |
13070 | ; |
13071 | return 0; | |
13072 | } | |
13073 | _ACEOF | |
13074 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 13076 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 13077 | ac_status=$? |
35996d22 AS |
13078 | grep -v '^ *+' conftest.er1 >conftest.err |
13079 | rm -f conftest.er1 | |
13080 | cat conftest.err >&5 | |
c0d27fcc | 13081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13082 | (exit $ac_status); } && |
4494a266 JD |
13083 | { ac_try='test -z "$ac_c_werror_flag" |
13084 | || test ! -s conftest.err' | |
35996d22 AS |
13085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13086 | (eval $ac_try) 2>&5 | |
13087 | ac_status=$? | |
13088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13089 | (exit $ac_status); }; } && | |
13090 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 13091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13092 | (eval $ac_try) 2>&5 |
13093 | ac_status=$? | |
c0d27fcc | 13094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13095 | (exit $ac_status); }; }; then |
98418dba | 13096 | ac_cv_lib_lockfile_maillock=yes |
503d2be0 AS |
13097 | else |
13098 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13099 | sed 's/^/| /' conftest.$ac_ext >&5 |
13100 | ||
98418dba CW |
13101 | ac_cv_lib_lockfile_maillock=no |
13102 | fi | |
35996d22 AS |
13103 | rm -f conftest.err conftest.$ac_objext \ |
13104 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
13105 | LIBS=$ac_check_lib_save_LIBS |
13106 | fi | |
c0d27fcc | 13107 | echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 |
98418dba CW |
13108 | echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 |
13109 | if test $ac_cv_lib_lockfile_maillock = yes; then | |
c0d27fcc | 13110 | cat >>confdefs.h <<_ACEOF |
98418dba | 13111 | #define HAVE_LIBLOCKFILE 1 |
c0d27fcc | 13112 | _ACEOF |
98418dba CW |
13113 | |
13114 | LIBS="-llockfile $LIBS" | |
13115 | ||
13116 | fi | |
13117 | ||
13118 | # If we have the shared liblockfile, assume we must use it for mail | |
13119 | # locking (e.g. Debian). If we couldn't link against liblockfile | |
13120 | # (no liblockfile.a installed), ensure that we don't need to. | |
13121 | if test "$ac_cv_lib_lockfile_maillock" = no; then | |
13122 | # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
13123 | set dummy liblockfile.so; ac_word=$2 | |
c0d27fcc | 13124 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
98418dba CW |
13125 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
13126 | if test "${ac_cv_prog_liblockfile+set}" = set; then | |
13127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13128 | else | |
13129 | if test -n "$liblockfile"; then | |
13130 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
13131 | else | |
c0d27fcc | 13132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6bae0ccf DL |
13133 | as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
13134 | for as_dir in $as_dummy | |
c0d27fcc MR |
13135 | do |
13136 | IFS=$as_save_IFS | |
13137 | test -z "$as_dir" && as_dir=. | |
13138 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13139 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13140 | ac_cv_prog_liblockfile="yes" | |
13141 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13142 | break 2 | |
13143 | fi | |
13144 | done | |
98418dba CW |
13145 | done |
13146 | ||
13147 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
503d2be0 | 13148 | fi |
503d2be0 | 13149 | fi |
98418dba CW |
13150 | liblockfile=$ac_cv_prog_liblockfile |
13151 | if test -n "$liblockfile"; then | |
c0d27fcc | 13152 | echo "$as_me:$LINENO: result: $liblockfile" >&5 |
98418dba CW |
13153 | echo "${ECHO_T}$liblockfile" >&6 |
13154 | else | |
c0d27fcc | 13155 | echo "$as_me:$LINENO: result: no" >&5 |
98418dba | 13156 | echo "${ECHO_T}no" >&6 |
ba4481b5 DL |
13157 | fi |
13158 | ||
98418dba | 13159 | if test $ac_cv_prog_liblockfile = yes; then |
c0d27fcc | 13160 | { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. |
98418dba CW |
13161 | This probably means that movemail could lose mail. |
13162 | There may be a \`development' package to install containing liblockfile." >&5 | |
13163 | echo "$as_me: error: Shared liblockfile found but can't link against it. | |
13164 | This probably means that movemail could lose mail. | |
13165 | There may be a \`development' package to install containing liblockfile." >&2;} | |
13166 | { (exit 1); exit 1; }; } | |
98418dba | 13167 | else : |
55597d70 | 13168 | fi |
98418dba | 13169 | fi |
503d2be0 | 13170 | |
98418dba CW |
13171 | for ac_func in touchlock |
13172 | do | |
13173 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 13174 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
13175 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
13176 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 13177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
457b792c | 13178 | else |
98418dba | 13179 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13180 | /* confdefs.h. */ |
13181 | _ACEOF | |
13182 | cat confdefs.h >>conftest.$ac_ext | |
13183 | cat >>conftest.$ac_ext <<_ACEOF | |
13184 | /* end confdefs.h. */ | |
35996d22 AS |
13185 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13186 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13187 | #define $ac_func innocuous_$ac_func | |
13188 | ||
98418dba | 13189 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
13190 | which can conflict with char $ac_func (); below. |
13191 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13192 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 13193 | |
19650fd6 AS |
13194 | #ifdef __STDC__ |
13195 | # include <limits.h> | |
13196 | #else | |
13197 | # include <assert.h> | |
13198 | #endif | |
35996d22 AS |
13199 | |
13200 | #undef $ac_func | |
13201 | ||
457b792c | 13202 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
13203 | #ifdef __cplusplus |
13204 | extern "C" | |
19650fd6 | 13205 | { |
503d2be0 | 13206 | #endif |
457b792c | 13207 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 13208 | builtin and then its argument prototype would still apply. */ |
98418dba | 13209 | char $ac_func (); |
98418dba CW |
13210 | /* The GNU C library defines this for functions which it implements |
13211 | to always fail with ENOSYS. Some functions are actually named | |
13212 | something starting with __ and the normal name is an alias. */ | |
13213 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13214 | choke me | |
13215 | #else | |
19650fd6 AS |
13216 | char (*f) () = $ac_func; |
13217 | #endif | |
13218 | #ifdef __cplusplus | |
13219 | } | |
cd958eb3 MB |
13220 | #endif |
13221 | ||
19650fd6 AS |
13222 | int |
13223 | main () | |
13224 | { | |
13225 | return f != $ac_func; | |
503d2be0 AS |
13226 | ; |
13227 | return 0; | |
13228 | } | |
13229 | _ACEOF | |
13230 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 13232 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 13233 | ac_status=$? |
35996d22 AS |
13234 | grep -v '^ *+' conftest.er1 >conftest.err |
13235 | rm -f conftest.er1 | |
13236 | cat conftest.err >&5 | |
c0d27fcc | 13237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13238 | (exit $ac_status); } && |
4494a266 JD |
13239 | { ac_try='test -z "$ac_c_werror_flag" |
13240 | || test ! -s conftest.err' | |
35996d22 AS |
13241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13242 | (eval $ac_try) 2>&5 | |
13243 | ac_status=$? | |
13244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13245 | (exit $ac_status); }; } && | |
13246 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 13247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13248 | (eval $ac_try) 2>&5 |
13249 | ac_status=$? | |
c0d27fcc | 13250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13251 | (exit $ac_status); }; }; then |
98418dba | 13252 | eval "$as_ac_var=yes" |
503d2be0 AS |
13253 | else |
13254 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13255 | sed 's/^/| /' conftest.$ac_ext >&5 |
13256 | ||
98418dba | 13257 | eval "$as_ac_var=no" |
503d2be0 | 13258 | fi |
35996d22 AS |
13259 | rm -f conftest.err conftest.$ac_objext \ |
13260 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 13261 | fi |
c0d27fcc | 13262 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
13263 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13264 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 13265 | cat >>confdefs.h <<_ACEOF |
98418dba | 13266 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 13267 | _ACEOF |
457b792c | 13268 | |
457b792c | 13269 | fi |
98418dba | 13270 | done |
457b792c | 13271 | |
c0d27fcc | 13272 | |
98418dba CW |
13273 | for ac_header in maillock.h |
13274 | do | |
13275 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
13276 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13277 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
13278 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13279 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
503d2be0 | 13280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
13281 | fi |
13282 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13283 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
ba4481b5 | 13284 | else |
c0d27fcc MR |
13285 | # Is the header compilable? |
13286 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13287 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13288 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13289 | /* confdefs.h. */ |
13290 | _ACEOF | |
13291 | cat confdefs.h >>conftest.$ac_ext | |
13292 | cat >>conftest.$ac_ext <<_ACEOF | |
13293 | /* end confdefs.h. */ | |
c0d27fcc MR |
13294 | $ac_includes_default |
13295 | #include <$ac_header> | |
13296 | _ACEOF | |
13297 | rm -f conftest.$ac_objext | |
13298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 13299 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 13300 | ac_status=$? |
35996d22 AS |
13301 | grep -v '^ *+' conftest.er1 >conftest.err |
13302 | rm -f conftest.er1 | |
13303 | cat conftest.err >&5 | |
c0d27fcc MR |
13304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13305 | (exit $ac_status); } && | |
4494a266 JD |
13306 | { ac_try='test -z "$ac_c_werror_flag" |
13307 | || test ! -s conftest.err' | |
35996d22 AS |
13308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13309 | (eval $ac_try) 2>&5 | |
13310 | ac_status=$? | |
13311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13312 | (exit $ac_status); }; } && | |
13313 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
13314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13315 | (eval $ac_try) 2>&5 | |
13316 | ac_status=$? | |
13317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13318 | (exit $ac_status); }; }; then | |
13319 | ac_header_compiler=yes | |
13320 | else | |
13321 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13322 | sed 's/^/| /' conftest.$ac_ext >&5 |
13323 | ||
c0d27fcc MR |
13324 | ac_header_compiler=no |
13325 | fi | |
35996d22 | 13326 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
13327 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13328 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13329 | ||
13330 | # Is the header present? | |
13331 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13332 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13333 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13334 | /* confdefs.h. */ |
13335 | _ACEOF | |
13336 | cat confdefs.h >>conftest.$ac_ext | |
13337 | cat >>conftest.$ac_ext <<_ACEOF | |
13338 | /* end confdefs.h. */ | |
98418dba | 13339 | #include <$ac_header> |
503d2be0 | 13340 | _ACEOF |
c0d27fcc | 13341 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 13342 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 13343 | ac_status=$? |
6bae0ccf | 13344 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13345 | rm -f conftest.er1 |
13346 | cat conftest.err >&5 | |
c0d27fcc | 13347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
13348 | (exit $ac_status); } >/dev/null; then |
13349 | if test -s conftest.err; then | |
13350 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 13351 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
13352 | else |
13353 | ac_cpp_err= | |
13354 | fi | |
503d2be0 | 13355 | else |
98418dba | 13356 | ac_cpp_err=yes |
503d2be0 | 13357 | fi |
98418dba | 13358 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 13359 | ac_header_preproc=yes |
98418dba CW |
13360 | else |
13361 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13362 | sed 's/^/| /' conftest.$ac_ext >&5 |
13363 | ||
c0d27fcc | 13364 | ac_header_preproc=no |
503d2be0 | 13365 | fi |
98418dba | 13366 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
13367 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13368 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13369 | ||
13370 | # So? What about this header? | |
35996d22 AS |
13371 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13372 | yes:no: ) | |
c0d27fcc MR |
13373 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13374 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
13375 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13376 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13377 | ac_header_preproc=yes | |
19650fd6 | 13378 | ;; |
35996d22 | 13379 | no:yes:* ) |
c0d27fcc MR |
13380 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13381 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
13382 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13383 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13384 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13385 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13386 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13387 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13388 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13389 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
13390 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13391 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
13392 | ( |
13393 | cat <<\_ASBOX | |
35996d22 AS |
13394 | ## ------------------------------------------ ## |
13395 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13396 | ## ------------------------------------------ ## | |
19650fd6 AS |
13397 | _ASBOX |
13398 | ) | | |
13399 | sed "s/^/$as_me: WARNING: /" >&2 | |
13400 | ;; | |
c0d27fcc MR |
13401 | esac |
13402 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13403 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13404 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13406 | else | |
35996d22 | 13407 | eval "$as_ac_Header=\$ac_header_preproc" |
ba4481b5 | 13408 | fi |
c0d27fcc | 13409 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 13410 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
13411 | |
13412 | fi | |
98418dba | 13413 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 13414 | cat >>confdefs.h <<_ACEOF |
98418dba | 13415 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 13416 | _ACEOF |
48d4b120 | 13417 | |
ba4481b5 | 13418 | fi |
c0d27fcc | 13419 | |
98418dba CW |
13420 | done |
13421 | ||
c0d27fcc MR |
13422 | |
13423 | ||
13424 | ||
13425 | ||
13426 | ||
13427 | ||
13428 | ||
13429 | ||
13430 | ||
13431 | ||
13432 | ||
13433 | ||
13434 | ||
13435 | ||
13436 | ||
13437 | ||
13438 | ||
13439 | ||
13440 | ||
13441 | ||
13442 | ||
13443 | ||
13444 | ||
13445 | ||
13446 | ||
13447 | ||
13448 | ||
13449 | ||
13450 | ||
13451 | ||
13452 | ||
13453 | ||
13454 | ||
13455 | ||
13456 | ||
13457 | ||
13458 | ||
13459 | ||
13460 | ||
13461 | ||
13462 | ||
13463 | ||
13464 | ||
13465 | ||
13466 | ||
13467 | ||
13468 | ||
13469 | ||
13470 | ||
13471 | ||
13472 | ||
13473 | ||
13474 | ||
13475 | ||
13476 | ||
22044edf DL |
13477 | |
13478 | ||
c0d27fcc | 13479 | |
b0e44248 RB |
13480 | |
13481 | ||
973a76b1 DL |
13482 | |
13483 | ||
13484 | ||
cd958eb3 | 13485 | |
25ca0bca | 13486 | |
c0d27fcc MR |
13487 | |
13488 | ||
98418dba CW |
13489 | for ac_func in gethostname getdomainname dup2 \ |
13490 | rename closedir mkdir rmdir sysinfo \ | |
13491 | random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
13492 | strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
973a76b1 | 13493 | utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \ |
98418dba CW |
13494 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
13495 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ | |
b0e44248 | 13496 | gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \ |
4489ece2 | 13497 | memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign |
98418dba CW |
13498 | do |
13499 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 13500 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
13501 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
13502 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 13503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13504 | else |
503d2be0 | 13505 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13506 | /* confdefs.h. */ |
13507 | _ACEOF | |
13508 | cat confdefs.h >>conftest.$ac_ext | |
13509 | cat >>conftest.$ac_ext <<_ACEOF | |
13510 | /* end confdefs.h. */ | |
35996d22 AS |
13511 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13512 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13513 | #define $ac_func innocuous_$ac_func | |
13514 | ||
98418dba | 13515 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
13516 | which can conflict with char $ac_func (); below. |
13517 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13518 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 13519 | |
19650fd6 AS |
13520 | #ifdef __STDC__ |
13521 | # include <limits.h> | |
13522 | #else | |
13523 | # include <assert.h> | |
13524 | #endif | |
35996d22 AS |
13525 | |
13526 | #undef $ac_func | |
13527 | ||
ba4481b5 | 13528 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
13529 | #ifdef __cplusplus |
13530 | extern "C" | |
19650fd6 | 13531 | { |
503d2be0 | 13532 | #endif |
ba4481b5 | 13533 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 13534 | builtin and then its argument prototype would still apply. */ |
98418dba | 13535 | char $ac_func (); |
98418dba CW |
13536 | /* The GNU C library defines this for functions which it implements |
13537 | to always fail with ENOSYS. Some functions are actually named | |
13538 | something starting with __ and the normal name is an alias. */ | |
13539 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13540 | choke me | |
13541 | #else | |
19650fd6 AS |
13542 | char (*f) () = $ac_func; |
13543 | #endif | |
13544 | #ifdef __cplusplus | |
13545 | } | |
98418dba CW |
13546 | #endif |
13547 | ||
19650fd6 AS |
13548 | int |
13549 | main () | |
13550 | { | |
13551 | return f != $ac_func; | |
503d2be0 AS |
13552 | ; |
13553 | return 0; | |
13554 | } | |
13555 | _ACEOF | |
13556 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 13558 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 13559 | ac_status=$? |
35996d22 AS |
13560 | grep -v '^ *+' conftest.er1 >conftest.err |
13561 | rm -f conftest.er1 | |
13562 | cat conftest.err >&5 | |
c0d27fcc | 13563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13564 | (exit $ac_status); } && |
4494a266 JD |
13565 | { ac_try='test -z "$ac_c_werror_flag" |
13566 | || test ! -s conftest.err' | |
35996d22 AS |
13567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13568 | (eval $ac_try) 2>&5 | |
13569 | ac_status=$? | |
13570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13571 | (exit $ac_status); }; } && | |
13572 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 13573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13574 | (eval $ac_try) 2>&5 |
13575 | ac_status=$? | |
c0d27fcc | 13576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13577 | (exit $ac_status); }; }; then |
98418dba | 13578 | eval "$as_ac_var=yes" |
503d2be0 AS |
13579 | else |
13580 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13581 | sed 's/^/| /' conftest.$ac_ext >&5 |
13582 | ||
98418dba | 13583 | eval "$as_ac_var=no" |
503d2be0 | 13584 | fi |
35996d22 AS |
13585 | rm -f conftest.err conftest.$ac_objext \ |
13586 | conftest$ac_exeext conftest.$ac_ext | |
ba4481b5 | 13587 | fi |
c0d27fcc | 13588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
13589 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13590 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 13591 | cat >>confdefs.h <<_ACEOF |
98418dba | 13592 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 13593 | _ACEOF |
ba4481b5 | 13594 | |
ba4481b5 | 13595 | fi |
98418dba | 13596 | done |
ba4481b5 | 13597 | |
c0d27fcc MR |
13598 | |
13599 | ||
98418dba CW |
13600 | for ac_header in sys/un.h |
13601 | do | |
13602 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
13603 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13604 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
98418dba CW |
13605 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13606 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
13608 | fi |
13609 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13610 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 13611 | else |
c0d27fcc MR |
13612 | # Is the header compilable? |
13613 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13614 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13615 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13616 | /* confdefs.h. */ |
13617 | _ACEOF | |
13618 | cat confdefs.h >>conftest.$ac_ext | |
13619 | cat >>conftest.$ac_ext <<_ACEOF | |
13620 | /* end confdefs.h. */ | |
c0d27fcc MR |
13621 | $ac_includes_default |
13622 | #include <$ac_header> | |
13623 | _ACEOF | |
13624 | rm -f conftest.$ac_objext | |
13625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 13626 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 13627 | ac_status=$? |
35996d22 AS |
13628 | grep -v '^ *+' conftest.er1 >conftest.err |
13629 | rm -f conftest.er1 | |
13630 | cat conftest.err >&5 | |
c0d27fcc MR |
13631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13632 | (exit $ac_status); } && | |
4494a266 JD |
13633 | { ac_try='test -z "$ac_c_werror_flag" |
13634 | || test ! -s conftest.err' | |
35996d22 AS |
13635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13636 | (eval $ac_try) 2>&5 | |
13637 | ac_status=$? | |
13638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13639 | (exit $ac_status); }; } && | |
13640 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
13641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13642 | (eval $ac_try) 2>&5 | |
13643 | ac_status=$? | |
13644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13645 | (exit $ac_status); }; }; then | |
13646 | ac_header_compiler=yes | |
13647 | else | |
13648 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13649 | sed 's/^/| /' conftest.$ac_ext >&5 |
13650 | ||
c0d27fcc MR |
13651 | ac_header_compiler=no |
13652 | fi | |
35996d22 | 13653 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
13654 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13655 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13656 | ||
13657 | # Is the header present? | |
13658 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13659 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13660 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13661 | /* confdefs.h. */ |
13662 | _ACEOF | |
13663 | cat confdefs.h >>conftest.$ac_ext | |
13664 | cat >>conftest.$ac_ext <<_ACEOF | |
13665 | /* end confdefs.h. */ | |
98418dba | 13666 | #include <$ac_header> |
503d2be0 | 13667 | _ACEOF |
c0d27fcc | 13668 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
13669 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13670 | ac_status=$? | |
6bae0ccf | 13671 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
13672 | rm -f conftest.er1 |
13673 | cat conftest.err >&5 | |
c0d27fcc | 13674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13675 | (exit $ac_status); } >/dev/null; then |
13676 | if test -s conftest.err; then | |
13677 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 13678 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
13679 | else |
13680 | ac_cpp_err= | |
13681 | fi | |
13682 | else | |
13683 | ac_cpp_err=yes | |
13684 | fi | |
13685 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 13686 | ac_header_preproc=yes |
ba4481b5 | 13687 | else |
503d2be0 | 13688 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13689 | sed 's/^/| /' conftest.$ac_ext >&5 |
13690 | ||
c0d27fcc | 13691 | ac_header_preproc=no |
ba4481b5 | 13692 | fi |
503d2be0 | 13693 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
13694 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13695 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13696 | ||
13697 | # So? What about this header? | |
35996d22 AS |
13698 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13699 | yes:no: ) | |
c0d27fcc MR |
13700 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13701 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
13702 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13703 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13704 | ac_header_preproc=yes | |
19650fd6 | 13705 | ;; |
35996d22 | 13706 | no:yes:* ) |
c0d27fcc MR |
13707 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13708 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
13709 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13710 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13711 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13712 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13713 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13714 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13715 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13716 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
13717 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13718 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
13719 | ( |
13720 | cat <<\_ASBOX | |
35996d22 AS |
13721 | ## ------------------------------------------ ## |
13722 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13723 | ## ------------------------------------------ ## | |
19650fd6 AS |
13724 | _ASBOX |
13725 | ) | | |
13726 | sed "s/^/$as_me: WARNING: /" >&2 | |
13727 | ;; | |
c0d27fcc MR |
13728 | esac |
13729 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13730 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13731 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13733 | else | |
35996d22 | 13734 | eval "$as_ac_Header=\$ac_header_preproc" |
ba4481b5 | 13735 | fi |
c0d27fcc | 13736 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
925c2f3f | 13737 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
13738 | |
13739 | fi | |
925c2f3f | 13740 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 13741 | cat >>confdefs.h <<_ACEOF |
925c2f3f | 13742 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 13743 | _ACEOF |
503d2be0 | 13744 | |
925c2f3f | 13745 | fi |
c0d27fcc | 13746 | |
925c2f3f EZ |
13747 | done |
13748 | ||
c0d27fcc MR |
13749 | |
13750 | ||
13751 | ||
35996d22 AS |
13752 | |
13753 | for ac_header in stdlib.h sys/time.h unistd.h | |
925c2f3f EZ |
13754 | do |
13755 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
13756 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13757 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
925c2f3f EZ |
13758 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13759 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
13761 | fi |
13762 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13763 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
925c2f3f | 13764 | else |
c0d27fcc MR |
13765 | # Is the header compilable? |
13766 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13767 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13768 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13769 | /* confdefs.h. */ |
13770 | _ACEOF | |
13771 | cat confdefs.h >>conftest.$ac_ext | |
13772 | cat >>conftest.$ac_ext <<_ACEOF | |
13773 | /* end confdefs.h. */ | |
c0d27fcc MR |
13774 | $ac_includes_default |
13775 | #include <$ac_header> | |
13776 | _ACEOF | |
13777 | rm -f conftest.$ac_objext | |
13778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 13779 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 13780 | ac_status=$? |
35996d22 AS |
13781 | grep -v '^ *+' conftest.er1 >conftest.err |
13782 | rm -f conftest.er1 | |
13783 | cat conftest.err >&5 | |
c0d27fcc MR |
13784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13785 | (exit $ac_status); } && | |
4494a266 JD |
13786 | { ac_try='test -z "$ac_c_werror_flag" |
13787 | || test ! -s conftest.err' | |
35996d22 AS |
13788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13789 | (eval $ac_try) 2>&5 | |
13790 | ac_status=$? | |
13791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13792 | (exit $ac_status); }; } && | |
13793 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
13794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13795 | (eval $ac_try) 2>&5 | |
13796 | ac_status=$? | |
13797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13798 | (exit $ac_status); }; }; then | |
13799 | ac_header_compiler=yes | |
13800 | else | |
13801 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13802 | sed 's/^/| /' conftest.$ac_ext >&5 |
13803 | ||
c0d27fcc MR |
13804 | ac_header_compiler=no |
13805 | fi | |
35996d22 | 13806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
13807 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13808 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13809 | ||
13810 | # Is the header present? | |
13811 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13812 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13813 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13814 | /* confdefs.h. */ |
13815 | _ACEOF | |
13816 | cat confdefs.h >>conftest.$ac_ext | |
13817 | cat >>conftest.$ac_ext <<_ACEOF | |
13818 | /* end confdefs.h. */ | |
98418dba | 13819 | #include <$ac_header> |
503d2be0 | 13820 | _ACEOF |
c0d27fcc | 13821 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
13822 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13823 | ac_status=$? | |
6bae0ccf | 13824 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
13825 | rm -f conftest.er1 |
13826 | cat conftest.err >&5 | |
c0d27fcc | 13827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
13828 | (exit $ac_status); } >/dev/null; then |
13829 | if test -s conftest.err; then | |
13830 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 13831 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
13832 | else |
13833 | ac_cpp_err= | |
13834 | fi | |
13835 | else | |
13836 | ac_cpp_err=yes | |
13837 | fi | |
13838 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 13839 | ac_header_preproc=yes |
98418dba CW |
13840 | else |
13841 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13842 | sed 's/^/| /' conftest.$ac_ext >&5 |
13843 | ||
c0d27fcc | 13844 | ac_header_preproc=no |
98418dba CW |
13845 | fi |
13846 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
13847 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13848 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13849 | ||
13850 | # So? What about this header? | |
35996d22 AS |
13851 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13852 | yes:no: ) | |
c0d27fcc MR |
13853 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13854 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
13855 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13856 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13857 | ac_header_preproc=yes | |
19650fd6 | 13858 | ;; |
35996d22 | 13859 | no:yes:* ) |
c0d27fcc MR |
13860 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13861 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
13862 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13863 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13864 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13865 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13866 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13867 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13868 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13869 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
13870 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13871 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
13872 | ( |
13873 | cat <<\_ASBOX | |
35996d22 AS |
13874 | ## ------------------------------------------ ## |
13875 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13876 | ## ------------------------------------------ ## | |
19650fd6 AS |
13877 | _ASBOX |
13878 | ) | | |
13879 | sed "s/^/$as_me: WARNING: /" >&2 | |
13880 | ;; | |
c0d27fcc MR |
13881 | esac |
13882 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13883 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13884 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13886 | else | |
35996d22 | 13887 | eval "$as_ac_Header=\$ac_header_preproc" |
ffe36136 | 13888 | fi |
c0d27fcc | 13889 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
98418dba | 13890 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
13891 | |
13892 | fi | |
98418dba | 13893 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 13894 | cat >>confdefs.h <<_ACEOF |
98418dba | 13895 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 13896 | _ACEOF |
98418dba CW |
13897 | |
13898 | fi | |
c0d27fcc | 13899 | |
98418dba CW |
13900 | done |
13901 | ||
c0d27fcc | 13902 | |
98418dba CW |
13903 | for ac_func in alarm |
13904 | do | |
13905 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 13906 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
13907 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
13908 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 13909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13910 | else |
98418dba | 13911 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13912 | /* confdefs.h. */ |
13913 | _ACEOF | |
13914 | cat confdefs.h >>conftest.$ac_ext | |
13915 | cat >>conftest.$ac_ext <<_ACEOF | |
13916 | /* end confdefs.h. */ | |
35996d22 AS |
13917 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13918 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13919 | #define $ac_func innocuous_$ac_func | |
13920 | ||
98418dba | 13921 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
13922 | which can conflict with char $ac_func (); below. |
13923 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13924 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 13925 | |
19650fd6 AS |
13926 | #ifdef __STDC__ |
13927 | # include <limits.h> | |
13928 | #else | |
13929 | # include <assert.h> | |
13930 | #endif | |
35996d22 AS |
13931 | |
13932 | #undef $ac_func | |
13933 | ||
ba4481b5 | 13934 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
13935 | #ifdef __cplusplus |
13936 | extern "C" | |
19650fd6 | 13937 | { |
503d2be0 | 13938 | #endif |
ba4481b5 | 13939 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 13940 | builtin and then its argument prototype would still apply. */ |
98418dba | 13941 | char $ac_func (); |
98418dba CW |
13942 | /* The GNU C library defines this for functions which it implements |
13943 | to always fail with ENOSYS. Some functions are actually named | |
13944 | something starting with __ and the normal name is an alias. */ | |
13945 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13946 | choke me | |
13947 | #else | |
19650fd6 AS |
13948 | char (*f) () = $ac_func; |
13949 | #endif | |
13950 | #ifdef __cplusplus | |
13951 | } | |
98418dba CW |
13952 | #endif |
13953 | ||
19650fd6 AS |
13954 | int |
13955 | main () | |
13956 | { | |
13957 | return f != $ac_func; | |
503d2be0 AS |
13958 | ; |
13959 | return 0; | |
13960 | } | |
13961 | _ACEOF | |
13962 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 13963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 13964 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 13965 | ac_status=$? |
35996d22 AS |
13966 | grep -v '^ *+' conftest.er1 >conftest.err |
13967 | rm -f conftest.er1 | |
13968 | cat conftest.err >&5 | |
c0d27fcc | 13969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13970 | (exit $ac_status); } && |
4494a266 JD |
13971 | { ac_try='test -z "$ac_c_werror_flag" |
13972 | || test ! -s conftest.err' | |
35996d22 AS |
13973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13974 | (eval $ac_try) 2>&5 | |
13975 | ac_status=$? | |
13976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13977 | (exit $ac_status); }; } && | |
13978 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 13979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
13980 | (eval $ac_try) 2>&5 |
13981 | ac_status=$? | |
c0d27fcc | 13982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 13983 | (exit $ac_status); }; }; then |
98418dba | 13984 | eval "$as_ac_var=yes" |
503d2be0 AS |
13985 | else |
13986 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13987 | sed 's/^/| /' conftest.$ac_ext >&5 |
13988 | ||
98418dba | 13989 | eval "$as_ac_var=no" |
503d2be0 | 13990 | fi |
35996d22 AS |
13991 | rm -f conftest.err conftest.$ac_objext \ |
13992 | conftest$ac_exeext conftest.$ac_ext | |
ffe36136 | 13993 | fi |
c0d27fcc | 13994 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
13995 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13996 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 13997 | cat >>confdefs.h <<_ACEOF |
98418dba | 13998 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 13999 | _ACEOF |
ffe36136 | 14000 | |
ba4481b5 | 14001 | fi |
98418dba | 14002 | done |
ba4481b5 | 14003 | |
c0d27fcc | 14004 | echo "$as_me:$LINENO: checking for working mktime" >&5 |
98418dba CW |
14005 | echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
14006 | if test "${ac_cv_func_working_mktime+set}" = set; then | |
14007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14008 | else | |
14009 | if test "$cross_compiling" = yes; then | |
14010 | ac_cv_func_working_mktime=no | |
14011 | else | |
14012 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14013 | /* confdefs.h. */ |
14014 | _ACEOF | |
14015 | cat confdefs.h >>conftest.$ac_ext | |
14016 | cat >>conftest.$ac_ext <<_ACEOF | |
14017 | /* end confdefs.h. */ | |
98418dba CW |
14018 | /* Test program from Paul Eggert and Tony Leneis. */ |
14019 | #if TIME_WITH_SYS_TIME | |
14020 | # include <sys/time.h> | |
14021 | # include <time.h> | |
14022 | #else | |
14023 | # if HAVE_SYS_TIME_H | |
14024 | # include <sys/time.h> | |
14025 | # else | |
14026 | # include <time.h> | |
14027 | # endif | |
14028 | #endif | |
ba4481b5 | 14029 | |
35996d22 AS |
14030 | #if HAVE_STDLIB_H |
14031 | # include <stdlib.h> | |
14032 | #endif | |
14033 | ||
98418dba CW |
14034 | #if HAVE_UNISTD_H |
14035 | # include <unistd.h> | |
14036 | #endif | |
ba4481b5 | 14037 | |
98418dba CW |
14038 | #if !HAVE_ALARM |
14039 | # define alarm(X) /* empty */ | |
14040 | #endif | |
df645f7c | 14041 | |
98418dba CW |
14042 | /* Work around redefinition to rpl_putenv by other config tests. */ |
14043 | #undef putenv | |
df645f7c | 14044 | |
98418dba | 14045 | static time_t time_t_max; |
35996d22 | 14046 | static time_t time_t_min; |
df645f7c | 14047 | |
98418dba | 14048 | /* Values we'll use to set the TZ environment variable. */ |
35996d22 AS |
14049 | static char *tz_strings[] = { |
14050 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | |
98418dba CW |
14051 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
14052 | }; | |
14053 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
503d2be0 | 14054 | |
98418dba CW |
14055 | /* Fail if mktime fails to convert a date in the spring-forward gap. |
14056 | Based on a problem report from Andreas Jaeger. */ | |
14057 | static void | |
14058 | spring_forward_gap () | |
14059 | { | |
14060 | /* glibc (up to about 1998-10-07) failed this test. */ | |
14061 | struct tm tm; | |
14062 | ||
14063 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
14064 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
14065 | on systems that don't support the Olson extension, or don't have the | |
14066 | full zoneinfo tables installed. */ | |
14067 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
14068 | ||
14069 | tm.tm_year = 98; | |
14070 | tm.tm_mon = 3; | |
14071 | tm.tm_mday = 5; | |
14072 | tm.tm_hour = 2; | |
14073 | tm.tm_min = 0; | |
14074 | tm.tm_sec = 0; | |
14075 | tm.tm_isdst = -1; | |
14076 | if (mktime (&tm) == (time_t)-1) | |
14077 | exit (1); | |
14078 | } | |
14079 | ||
14080 | static void | |
35996d22 | 14081 | mktime_test1 (now) |
98418dba CW |
14082 | time_t now; |
14083 | { | |
14084 | struct tm *lt; | |
14085 | if ((lt = localtime (&now)) && mktime (lt) != now) | |
14086 | exit (1); | |
35996d22 AS |
14087 | } |
14088 | ||
14089 | static void | |
14090 | mktime_test (now) | |
14091 | time_t now; | |
14092 | { | |
14093 | mktime_test1 (now); | |
14094 | mktime_test1 ((time_t) (time_t_max - now)); | |
14095 | mktime_test1 ((time_t) (time_t_min + now)); | |
98418dba CW |
14096 | } |
14097 | ||
14098 | static void | |
14099 | irix_6_4_bug () | |
14100 | { | |
14101 | /* Based on code from Ariel Faigon. */ | |
14102 | struct tm tm; | |
14103 | tm.tm_year = 96; | |
14104 | tm.tm_mon = 3; | |
14105 | tm.tm_mday = 0; | |
14106 | tm.tm_hour = 0; | |
14107 | tm.tm_min = 0; | |
14108 | tm.tm_sec = 0; | |
14109 | tm.tm_isdst = -1; | |
14110 | mktime (&tm); | |
14111 | if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
14112 | exit (1); | |
14113 | } | |
14114 | ||
14115 | static void | |
14116 | bigtime_test (j) | |
14117 | int j; | |
14118 | { | |
14119 | struct tm tm; | |
14120 | time_t now; | |
14121 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
14122 | now = mktime (&tm); | |
14123 | if (now != (time_t) -1) | |
14124 | { | |
14125 | struct tm *lt = localtime (&now); | |
14126 | if (! (lt | |
14127 | && lt->tm_year == tm.tm_year | |
14128 | && lt->tm_mon == tm.tm_mon | |
14129 | && lt->tm_mday == tm.tm_mday | |
14130 | && lt->tm_hour == tm.tm_hour | |
14131 | && lt->tm_min == tm.tm_min | |
14132 | && lt->tm_sec == tm.tm_sec | |
14133 | && lt->tm_yday == tm.tm_yday | |
14134 | && lt->tm_wday == tm.tm_wday | |
14135 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
14136 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
14137 | exit (1); | |
14138 | } | |
14139 | } | |
14140 | ||
14141 | int | |
14142 | main () | |
14143 | { | |
14144 | time_t t, delta; | |
14145 | int i, j; | |
14146 | ||
14147 | /* This test makes some buggy mktime implementations loop. | |
14148 | Give up after 60 seconds; a mktime slower than that | |
14149 | isn't worth using anyway. */ | |
14150 | alarm (60); | |
14151 | ||
14152 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
14153 | continue; | |
14154 | time_t_max--; | |
35996d22 AS |
14155 | if ((time_t) -1 < 0) |
14156 | for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) | |
14157 | continue; | |
98418dba CW |
14158 | delta = time_t_max / 997; /* a suitable prime number */ |
14159 | for (i = 0; i < N_STRINGS; i++) | |
14160 | { | |
14161 | if (tz_strings[i]) | |
14162 | putenv (tz_strings[i]); | |
503d2be0 | 14163 | |
98418dba CW |
14164 | for (t = 0; t <= time_t_max - delta; t += delta) |
14165 | mktime_test (t); | |
35996d22 AS |
14166 | mktime_test ((time_t) 1); |
14167 | mktime_test ((time_t) (60 * 60)); | |
14168 | mktime_test ((time_t) (60 * 60 * 24)); | |
98418dba CW |
14169 | |
14170 | for (j = 1; 0 < j; j *= 2) | |
35996d22 | 14171 | bigtime_test (j); |
98418dba CW |
14172 | bigtime_test (j - 1); |
14173 | } | |
14174 | irix_6_4_bug (); | |
14175 | spring_forward_gap (); | |
14176 | exit (0); | |
503d2be0 AS |
14177 | } |
14178 | _ACEOF | |
98418dba | 14179 | rm -f conftest$ac_exeext |
c0d27fcc | 14180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
14181 | (eval $ac_link) 2>&5 |
14182 | ac_status=$? | |
c0d27fcc | 14183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 14184 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 14185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14186 | (eval $ac_try) 2>&5 |
14187 | ac_status=$? | |
c0d27fcc | 14188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14189 | (exit $ac_status); }; }; then |
98418dba | 14190 | ac_cv_func_working_mktime=yes |
503d2be0 | 14191 | else |
98418dba CW |
14192 | echo "$as_me: program exited with status $ac_status" >&5 |
14193 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14194 | sed 's/^/| /' conftest.$ac_ext >&5 |
14195 | ||
c0d27fcc | 14196 | ( exit $ac_status ) |
98418dba | 14197 | ac_cv_func_working_mktime=no |
503d2be0 | 14198 | fi |
35996d22 | 14199 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 14200 | fi |
ba4481b5 | 14201 | fi |
c0d27fcc | 14202 | echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
98418dba CW |
14203 | echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
14204 | if test $ac_cv_func_working_mktime = no; then | |
35996d22 AS |
14205 | case $LIBOBJS in |
14206 | "mktime.$ac_objext" | \ | |
14207 | *" mktime.$ac_objext" | \ | |
14208 | "mktime.$ac_objext "* | \ | |
14209 | *" mktime.$ac_objext "* ) ;; | |
14210 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;; | |
14211 | esac | |
14212 | ||
ba4481b5 DL |
14213 | fi |
14214 | ||
98418dba | 14215 | if test "$ac_cv_func_working_mktime" = no; then |
b936fae4 | 14216 | |
c0d27fcc | 14217 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14218 | #define BROKEN_MKTIME 1 |
c0d27fcc | 14219 | _ACEOF |
ba4481b5 | 14220 | |
ba4481b5 | 14221 | fi |
503d2be0 | 14222 | |
98418dba CW |
14223 | ac_have_func=no # yes means we've found a way to get the load average. |
14224 | ||
6bae0ccf DL |
14225 | # Make sure getloadavg.c is where it belongs, at configure-time. |
14226 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || | |
14227 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 | |
14228 | echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;} | |
14229 | { (exit 1); exit 1; }; } | |
14230 | ||
98418dba CW |
14231 | ac_save_LIBS=$LIBS |
14232 | ||
14233 | # Check for getloadavg, but be sure not to touch the cache variable. | |
c0d27fcc | 14234 | (echo "$as_me:$LINENO: checking for getloadavg" >&5 |
98418dba CW |
14235 | echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 |
14236 | if test "${ac_cv_func_getloadavg+set}" = set; then | |
503d2be0 | 14237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14238 | else |
503d2be0 | 14239 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14240 | /* confdefs.h. */ |
14241 | _ACEOF | |
14242 | cat confdefs.h >>conftest.$ac_ext | |
14243 | cat >>conftest.$ac_ext <<_ACEOF | |
14244 | /* end confdefs.h. */ | |
35996d22 AS |
14245 | /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg. |
14246 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14247 | #define getloadavg innocuous_getloadavg | |
14248 | ||
98418dba | 14249 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14250 | which can conflict with char getloadavg (); below. |
14251 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14252 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 14253 | |
19650fd6 AS |
14254 | #ifdef __STDC__ |
14255 | # include <limits.h> | |
14256 | #else | |
14257 | # include <assert.h> | |
14258 | #endif | |
35996d22 AS |
14259 | |
14260 | #undef getloadavg | |
14261 | ||
ba4481b5 | 14262 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14263 | #ifdef __cplusplus |
14264 | extern "C" | |
19650fd6 | 14265 | { |
503d2be0 | 14266 | #endif |
ba4481b5 | 14267 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 14268 | builtin and then its argument prototype would still apply. */ |
98418dba | 14269 | char getloadavg (); |
98418dba CW |
14270 | /* The GNU C library defines this for functions which it implements |
14271 | to always fail with ENOSYS. Some functions are actually named | |
14272 | something starting with __ and the normal name is an alias. */ | |
14273 | #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | |
14274 | choke me | |
14275 | #else | |
19650fd6 AS |
14276 | char (*f) () = getloadavg; |
14277 | #endif | |
14278 | #ifdef __cplusplus | |
14279 | } | |
cd958eb3 MB |
14280 | #endif |
14281 | ||
19650fd6 AS |
14282 | int |
14283 | main () | |
14284 | { | |
14285 | return f != getloadavg; | |
503d2be0 AS |
14286 | ; |
14287 | return 0; | |
14288 | } | |
14289 | _ACEOF | |
14290 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14292 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14293 | ac_status=$? |
35996d22 AS |
14294 | grep -v '^ *+' conftest.er1 >conftest.err |
14295 | rm -f conftest.er1 | |
14296 | cat conftest.err >&5 | |
c0d27fcc | 14297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14298 | (exit $ac_status); } && |
4494a266 JD |
14299 | { ac_try='test -z "$ac_c_werror_flag" |
14300 | || test ! -s conftest.err' | |
35996d22 AS |
14301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14302 | (eval $ac_try) 2>&5 | |
14303 | ac_status=$? | |
14304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14305 | (exit $ac_status); }; } && | |
14306 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14308 | (eval $ac_try) 2>&5 |
14309 | ac_status=$? | |
c0d27fcc | 14310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14311 | (exit $ac_status); }; }; then |
98418dba | 14312 | ac_cv_func_getloadavg=yes |
503d2be0 AS |
14313 | else |
14314 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14315 | sed 's/^/| /' conftest.$ac_ext >&5 |
14316 | ||
98418dba | 14317 | ac_cv_func_getloadavg=no |
503d2be0 | 14318 | fi |
35996d22 AS |
14319 | rm -f conftest.err conftest.$ac_objext \ |
14320 | conftest$ac_exeext conftest.$ac_ext | |
ba4481b5 | 14321 | fi |
c0d27fcc | 14322 | echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 |
98418dba CW |
14323 | echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 |
14324 | if test $ac_cv_func_getloadavg = yes; then | |
14325 | exit 0 | |
14326 | else | |
14327 | exit 1 | |
ba4481b5 | 14328 | fi |
98418dba | 14329 | ) && ac_have_func=yes |
ba4481b5 | 14330 | |
98418dba | 14331 | # On HPUX9, an unprivileged user can get load averages through this function. |
503d2be0 | 14332 | |
98418dba CW |
14333 | for ac_func in pstat_getdynamic |
14334 | do | |
14335 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 14336 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
98418dba CW |
14337 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
14338 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 14339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14340 | else |
503d2be0 | 14341 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14342 | /* confdefs.h. */ |
14343 | _ACEOF | |
14344 | cat confdefs.h >>conftest.$ac_ext | |
14345 | cat >>conftest.$ac_ext <<_ACEOF | |
14346 | /* end confdefs.h. */ | |
35996d22 AS |
14347 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14348 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14349 | #define $ac_func innocuous_$ac_func | |
14350 | ||
98418dba | 14351 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14352 | which can conflict with char $ac_func (); below. |
14353 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14354 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 14355 | |
19650fd6 AS |
14356 | #ifdef __STDC__ |
14357 | # include <limits.h> | |
14358 | #else | |
14359 | # include <assert.h> | |
14360 | #endif | |
35996d22 AS |
14361 | |
14362 | #undef $ac_func | |
14363 | ||
ba4481b5 | 14364 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14365 | #ifdef __cplusplus |
14366 | extern "C" | |
19650fd6 | 14367 | { |
503d2be0 | 14368 | #endif |
ba4481b5 | 14369 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 14370 | builtin and then its argument prototype would still apply. */ |
98418dba | 14371 | char $ac_func (); |
98418dba CW |
14372 | /* The GNU C library defines this for functions which it implements |
14373 | to always fail with ENOSYS. Some functions are actually named | |
14374 | something starting with __ and the normal name is an alias. */ | |
14375 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14376 | choke me | |
14377 | #else | |
19650fd6 AS |
14378 | char (*f) () = $ac_func; |
14379 | #endif | |
14380 | #ifdef __cplusplus | |
14381 | } | |
98418dba CW |
14382 | #endif |
14383 | ||
19650fd6 AS |
14384 | int |
14385 | main () | |
14386 | { | |
14387 | return f != $ac_func; | |
98418dba CW |
14388 | ; |
14389 | return 0; | |
14390 | } | |
f21fadcc | 14391 | _ACEOF |
98418dba | 14392 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 14393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14394 | (eval $ac_link) 2>conftest.er1 |
f21fadcc | 14395 | ac_status=$? |
35996d22 AS |
14396 | grep -v '^ *+' conftest.er1 >conftest.err |
14397 | rm -f conftest.er1 | |
14398 | cat conftest.err >&5 | |
c0d27fcc | 14399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 14400 | (exit $ac_status); } && |
4494a266 JD |
14401 | { ac_try='test -z "$ac_c_werror_flag" |
14402 | || test ! -s conftest.err' | |
35996d22 AS |
14403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14404 | (eval $ac_try) 2>&5 | |
14405 | ac_status=$? | |
14406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14407 | (exit $ac_status); }; } && | |
14408 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
14410 | (eval $ac_try) 2>&5 |
14411 | ac_status=$? | |
c0d27fcc | 14412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
14413 | (exit $ac_status); }; }; then |
14414 | eval "$as_ac_var=yes" | |
f21fadcc JD |
14415 | else |
14416 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14417 | sed 's/^/| /' conftest.$ac_ext >&5 |
14418 | ||
98418dba | 14419 | eval "$as_ac_var=no" |
f21fadcc | 14420 | fi |
35996d22 AS |
14421 | rm -f conftest.err conftest.$ac_objext \ |
14422 | conftest$ac_exeext conftest.$ac_ext | |
f21fadcc | 14423 | fi |
c0d27fcc | 14424 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
98418dba CW |
14425 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
14426 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 14427 | cat >>confdefs.h <<_ACEOF |
98418dba | 14428 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 14429 | _ACEOF |
98418dba CW |
14430 | |
14431 | fi | |
14432 | done | |
14433 | ||
c0d27fcc | 14434 | |
98418dba CW |
14435 | # Solaris has libkstat which does not require root. |
14436 | ||
c0d27fcc | 14437 | echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 |
98418dba CW |
14438 | echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 |
14439 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
f21fadcc JD |
14440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14441 | else | |
14442 | ac_check_lib_save_LIBS=$LIBS | |
98418dba | 14443 | LIBS="-lkstat $LIBS" |
f21fadcc | 14444 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14445 | /* confdefs.h. */ |
14446 | _ACEOF | |
14447 | cat confdefs.h >>conftest.$ac_ext | |
14448 | cat >>conftest.$ac_ext <<_ACEOF | |
14449 | /* end confdefs.h. */ | |
f21fadcc JD |
14450 | |
14451 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14452 | #ifdef __cplusplus | |
14453 | extern "C" | |
14454 | #endif | |
14455 | /* We use char because int might match the return type of a gcc2 | |
14456 | builtin and then its argument prototype would still apply. */ | |
98418dba | 14457 | char kstat_open (); |
f21fadcc JD |
14458 | int |
14459 | main () | |
14460 | { | |
98418dba | 14461 | kstat_open (); |
f21fadcc JD |
14462 | ; |
14463 | return 0; | |
14464 | } | |
14465 | _ACEOF | |
14466 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14468 | (eval $ac_link) 2>conftest.er1 |
f21fadcc | 14469 | ac_status=$? |
35996d22 AS |
14470 | grep -v '^ *+' conftest.er1 >conftest.err |
14471 | rm -f conftest.er1 | |
14472 | cat conftest.err >&5 | |
c0d27fcc | 14473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f21fadcc | 14474 | (exit $ac_status); } && |
4494a266 JD |
14475 | { ac_try='test -z "$ac_c_werror_flag" |
14476 | || test ! -s conftest.err' | |
35996d22 AS |
14477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14478 | (eval $ac_try) 2>&5 | |
14479 | ac_status=$? | |
14480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14481 | (exit $ac_status); }; } && | |
14482 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f21fadcc JD |
14484 | (eval $ac_try) 2>&5 |
14485 | ac_status=$? | |
c0d27fcc | 14486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f21fadcc | 14487 | (exit $ac_status); }; }; then |
98418dba | 14488 | ac_cv_lib_kstat_kstat_open=yes |
f21fadcc JD |
14489 | else |
14490 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14491 | sed 's/^/| /' conftest.$ac_ext >&5 |
14492 | ||
98418dba | 14493 | ac_cv_lib_kstat_kstat_open=no |
f21fadcc | 14494 | fi |
35996d22 AS |
14495 | rm -f conftest.err conftest.$ac_objext \ |
14496 | conftest$ac_exeext conftest.$ac_ext | |
f21fadcc JD |
14497 | LIBS=$ac_check_lib_save_LIBS |
14498 | fi | |
c0d27fcc | 14499 | echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 |
98418dba CW |
14500 | echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 |
14501 | if test $ac_cv_lib_kstat_kstat_open = yes; then | |
c0d27fcc | 14502 | cat >>confdefs.h <<_ACEOF |
98418dba | 14503 | #define HAVE_LIBKSTAT 1 |
c0d27fcc | 14504 | _ACEOF |
f21fadcc | 14505 | |
98418dba | 14506 | LIBS="-lkstat $LIBS" |
f21fadcc | 14507 | |
f21fadcc JD |
14508 | fi |
14509 | ||
98418dba CW |
14510 | test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes |
14511 | ||
14512 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
14513 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
14514 | # to get the right answer into the cache. | |
14515 | # For kstat on solaris, we need libelf to force the definition of SVR4 below. | |
14516 | if test $ac_have_func = no; then | |
c0d27fcc | 14517 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
98418dba CW |
14518 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
14519 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
503d2be0 | 14520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14521 | else |
98418dba CW |
14522 | ac_check_lib_save_LIBS=$LIBS |
14523 | LIBS="-lelf $LIBS" | |
14524 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14525 | /* confdefs.h. */ |
14526 | _ACEOF | |
14527 | cat confdefs.h >>conftest.$ac_ext | |
14528 | cat >>conftest.$ac_ext <<_ACEOF | |
14529 | /* end confdefs.h. */ | |
98418dba CW |
14530 | |
14531 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14532 | #ifdef __cplusplus | |
14533 | extern "C" | |
14534 | #endif | |
14535 | /* We use char because int might match the return type of a gcc2 | |
14536 | builtin and then its argument prototype would still apply. */ | |
14537 | char elf_begin (); | |
503d2be0 AS |
14538 | int |
14539 | main () | |
14540 | { | |
98418dba | 14541 | elf_begin (); |
503d2be0 AS |
14542 | ; |
14543 | return 0; | |
14544 | } | |
14545 | _ACEOF | |
14546 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14548 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14549 | ac_status=$? |
35996d22 AS |
14550 | grep -v '^ *+' conftest.er1 >conftest.err |
14551 | rm -f conftest.er1 | |
14552 | cat conftest.err >&5 | |
c0d27fcc | 14553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14554 | (exit $ac_status); } && |
4494a266 JD |
14555 | { ac_try='test -z "$ac_c_werror_flag" |
14556 | || test ! -s conftest.err' | |
35996d22 AS |
14557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14558 | (eval $ac_try) 2>&5 | |
14559 | ac_status=$? | |
14560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14561 | (exit $ac_status); }; } && | |
14562 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14564 | (eval $ac_try) 2>&5 |
14565 | ac_status=$? | |
c0d27fcc | 14566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14567 | (exit $ac_status); }; }; then |
98418dba | 14568 | ac_cv_lib_elf_elf_begin=yes |
ba4481b5 | 14569 | else |
503d2be0 | 14570 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14571 | sed 's/^/| /' conftest.$ac_ext >&5 |
14572 | ||
98418dba | 14573 | ac_cv_lib_elf_elf_begin=no |
ba4481b5 | 14574 | fi |
35996d22 AS |
14575 | rm -f conftest.err conftest.$ac_objext \ |
14576 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 14577 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 14578 | fi |
c0d27fcc | 14579 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
98418dba CW |
14580 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
14581 | if test $ac_cv_lib_elf_elf_begin = yes; then | |
14582 | LIBS="-lelf $LIBS" | |
ba4481b5 DL |
14583 | fi |
14584 | ||
98418dba CW |
14585 | fi |
14586 | if test $ac_have_func = no; then | |
c0d27fcc | 14587 | echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 |
98418dba CW |
14588 | echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 |
14589 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
503d2be0 | 14590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14591 | else |
98418dba CW |
14592 | ac_check_lib_save_LIBS=$LIBS |
14593 | LIBS="-lkvm $LIBS" | |
14594 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14595 | /* confdefs.h. */ |
14596 | _ACEOF | |
14597 | cat confdefs.h >>conftest.$ac_ext | |
14598 | cat >>conftest.$ac_ext <<_ACEOF | |
14599 | /* end confdefs.h. */ | |
98418dba CW |
14600 | |
14601 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14602 | #ifdef __cplusplus | |
14603 | extern "C" | |
14604 | #endif | |
14605 | /* We use char because int might match the return type of a gcc2 | |
14606 | builtin and then its argument prototype would still apply. */ | |
14607 | char kvm_open (); | |
503d2be0 AS |
14608 | int |
14609 | main () | |
14610 | { | |
98418dba | 14611 | kvm_open (); |
503d2be0 AS |
14612 | ; |
14613 | return 0; | |
14614 | } | |
14615 | _ACEOF | |
14616 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14618 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14619 | ac_status=$? |
35996d22 AS |
14620 | grep -v '^ *+' conftest.er1 >conftest.err |
14621 | rm -f conftest.er1 | |
14622 | cat conftest.err >&5 | |
c0d27fcc | 14623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14624 | (exit $ac_status); } && |
4494a266 JD |
14625 | { ac_try='test -z "$ac_c_werror_flag" |
14626 | || test ! -s conftest.err' | |
35996d22 AS |
14627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14628 | (eval $ac_try) 2>&5 | |
14629 | ac_status=$? | |
14630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14631 | (exit $ac_status); }; } && | |
14632 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14634 | (eval $ac_try) 2>&5 |
14635 | ac_status=$? | |
c0d27fcc | 14636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14637 | (exit $ac_status); }; }; then |
98418dba | 14638 | ac_cv_lib_kvm_kvm_open=yes |
503d2be0 AS |
14639 | else |
14640 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14641 | sed 's/^/| /' conftest.$ac_ext >&5 |
14642 | ||
98418dba | 14643 | ac_cv_lib_kvm_kvm_open=no |
503d2be0 | 14644 | fi |
35996d22 AS |
14645 | rm -f conftest.err conftest.$ac_objext \ |
14646 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 14647 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 14648 | fi |
c0d27fcc | 14649 | echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 |
98418dba CW |
14650 | echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 |
14651 | if test $ac_cv_lib_kvm_kvm_open = yes; then | |
14652 | LIBS="-lkvm $LIBS" | |
ba4481b5 DL |
14653 | fi |
14654 | ||
98418dba | 14655 | # Check for the 4.4BSD definition of getloadavg. |
c0d27fcc | 14656 | echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 |
98418dba CW |
14657 | echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 |
14658 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
503d2be0 | 14659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14660 | else |
98418dba CW |
14661 | ac_check_lib_save_LIBS=$LIBS |
14662 | LIBS="-lutil $LIBS" | |
14663 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14664 | /* confdefs.h. */ |
14665 | _ACEOF | |
14666 | cat confdefs.h >>conftest.$ac_ext | |
14667 | cat >>conftest.$ac_ext <<_ACEOF | |
14668 | /* end confdefs.h. */ | |
98418dba CW |
14669 | |
14670 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14671 | #ifdef __cplusplus | |
14672 | extern "C" | |
14673 | #endif | |
14674 | /* We use char because int might match the return type of a gcc2 | |
14675 | builtin and then its argument prototype would still apply. */ | |
14676 | char getloadavg (); | |
503d2be0 AS |
14677 | int |
14678 | main () | |
14679 | { | |
98418dba | 14680 | getloadavg (); |
503d2be0 AS |
14681 | ; |
14682 | return 0; | |
14683 | } | |
14684 | _ACEOF | |
14685 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14687 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14688 | ac_status=$? |
35996d22 AS |
14689 | grep -v '^ *+' conftest.er1 >conftest.err |
14690 | rm -f conftest.er1 | |
14691 | cat conftest.err >&5 | |
c0d27fcc | 14692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14693 | (exit $ac_status); } && |
4494a266 JD |
14694 | { ac_try='test -z "$ac_c_werror_flag" |
14695 | || test ! -s conftest.err' | |
c0d27fcc | 14696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14697 | (eval $ac_try) 2>&5 |
14698 | ac_status=$? | |
c0d27fcc | 14699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35996d22 AS |
14700 | (exit $ac_status); }; } && |
14701 | { ac_try='test -s conftest$ac_exeext' | |
14702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14703 | (eval $ac_try) 2>&5 | |
14704 | ac_status=$? | |
14705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14706 | (exit $ac_status); }; }; then | |
14707 | ac_cv_lib_util_getloadavg=yes | |
14708 | else | |
503d2be0 | 14709 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14710 | sed 's/^/| /' conftest.$ac_ext >&5 |
14711 | ||
98418dba | 14712 | ac_cv_lib_util_getloadavg=no |
ba4481b5 | 14713 | fi |
35996d22 AS |
14714 | rm -f conftest.err conftest.$ac_objext \ |
14715 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
14716 | LIBS=$ac_check_lib_save_LIBS |
14717 | fi | |
c0d27fcc | 14718 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 |
98418dba CW |
14719 | echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 |
14720 | if test $ac_cv_lib_util_getloadavg = yes; then | |
14721 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
ba4481b5 | 14722 | fi |
503d2be0 | 14723 | |
98418dba | 14724 | fi |
ba4481b5 | 14725 | |
98418dba CW |
14726 | if test $ac_have_func = no; then |
14727 | # There is a commonly available library for RS/6000 AIX. | |
14728 | # Since it is not a standard part of AIX, it might be installed locally. | |
14729 | ac_getloadavg_LIBS=$LIBS | |
14730 | LIBS="-L/usr/local/lib $LIBS" | |
c0d27fcc | 14731 | echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 |
98418dba CW |
14732 | echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 |
14733 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
503d2be0 | 14734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14735 | else |
98418dba CW |
14736 | ac_check_lib_save_LIBS=$LIBS |
14737 | LIBS="-lgetloadavg $LIBS" | |
14738 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14739 | /* confdefs.h. */ |
14740 | _ACEOF | |
14741 | cat confdefs.h >>conftest.$ac_ext | |
14742 | cat >>conftest.$ac_ext <<_ACEOF | |
14743 | /* end confdefs.h. */ | |
ba4481b5 | 14744 | |
98418dba CW |
14745 | /* Override any gcc2 internal prototype to avoid an error. */ |
14746 | #ifdef __cplusplus | |
14747 | extern "C" | |
14748 | #endif | |
14749 | /* We use char because int might match the return type of a gcc2 | |
14750 | builtin and then its argument prototype would still apply. */ | |
14751 | char getloadavg (); | |
98418dba CW |
14752 | int |
14753 | main () | |
14754 | { | |
14755 | getloadavg (); | |
14756 | ; | |
14757 | return 0; | |
14758 | } | |
503d2be0 | 14759 | _ACEOF |
98418dba | 14760 | rm -f conftest.$ac_objext conftest$ac_exeext |
c0d27fcc | 14761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14762 | (eval $ac_link) 2>conftest.er1 |
98418dba | 14763 | ac_status=$? |
35996d22 AS |
14764 | grep -v '^ *+' conftest.er1 >conftest.err |
14765 | rm -f conftest.er1 | |
14766 | cat conftest.err >&5 | |
c0d27fcc | 14767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 14768 | (exit $ac_status); } && |
4494a266 JD |
14769 | { ac_try='test -z "$ac_c_werror_flag" |
14770 | || test ! -s conftest.err' | |
35996d22 AS |
14771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14772 | (eval $ac_try) 2>&5 | |
14773 | ac_status=$? | |
14774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14775 | (exit $ac_status); }; } && | |
14776 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
98418dba CW |
14778 | (eval $ac_try) 2>&5 |
14779 | ac_status=$? | |
c0d27fcc | 14780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
14781 | (exit $ac_status); }; }; then |
14782 | ac_cv_lib_getloadavg_getloadavg=yes | |
ba4481b5 | 14783 | else |
98418dba | 14784 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14785 | sed 's/^/| /' conftest.$ac_ext >&5 |
14786 | ||
98418dba CW |
14787 | ac_cv_lib_getloadavg_getloadavg=no |
14788 | fi | |
35996d22 AS |
14789 | rm -f conftest.err conftest.$ac_objext \ |
14790 | conftest$ac_exeext conftest.$ac_ext | |
98418dba CW |
14791 | LIBS=$ac_check_lib_save_LIBS |
14792 | fi | |
c0d27fcc | 14793 | echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
98418dba CW |
14794 | echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 |
14795 | if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
14796 | LIBS="-lgetloadavg $LIBS" | |
14797 | else | |
14798 | LIBS=$ac_getloadavg_LIBS | |
ba4481b5 | 14799 | fi |
ba4481b5 DL |
14800 | |
14801 | fi | |
98418dba CW |
14802 | |
14803 | # Make sure it is really in the library, if we think we found it, | |
14804 | # otherwise set up the replacement function. | |
14805 | ||
14806 | for ac_func in getloadavg | |
14807 | do | |
14808 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 14809 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
14810 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
14811 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 14813 | else |
503d2be0 | 14814 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14815 | /* confdefs.h. */ |
14816 | _ACEOF | |
14817 | cat confdefs.h >>conftest.$ac_ext | |
14818 | cat >>conftest.$ac_ext <<_ACEOF | |
14819 | /* end confdefs.h. */ | |
35996d22 AS |
14820 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14821 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14822 | #define $ac_func innocuous_$ac_func | |
14823 | ||
ba4481b5 | 14824 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14825 | which can conflict with char $ac_func (); below. |
14826 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14827 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 14828 | |
19650fd6 AS |
14829 | #ifdef __STDC__ |
14830 | # include <limits.h> | |
14831 | #else | |
14832 | # include <assert.h> | |
14833 | #endif | |
35996d22 AS |
14834 | |
14835 | #undef $ac_func | |
14836 | ||
ba4481b5 | 14837 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
14838 | #ifdef __cplusplus |
14839 | extern "C" | |
19650fd6 | 14840 | { |
503d2be0 | 14841 | #endif |
ba4481b5 | 14842 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
14843 | builtin and then its argument prototype would still apply. */ |
14844 | char $ac_func (); | |
ba4481b5 DL |
14845 | /* The GNU C library defines this for functions which it implements |
14846 | to always fail with ENOSYS. Some functions are actually named | |
14847 | something starting with __ and the normal name is an alias. */ | |
14848 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14849 | choke me | |
14850 | #else | |
19650fd6 AS |
14851 | char (*f) () = $ac_func; |
14852 | #endif | |
14853 | #ifdef __cplusplus | |
14854 | } | |
cd958eb3 MB |
14855 | #endif |
14856 | ||
19650fd6 AS |
14857 | int |
14858 | main () | |
14859 | { | |
14860 | return f != $ac_func; | |
503d2be0 AS |
14861 | ; |
14862 | return 0; | |
14863 | } | |
14864 | _ACEOF | |
14865 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 14866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 14867 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 14868 | ac_status=$? |
35996d22 AS |
14869 | grep -v '^ *+' conftest.er1 >conftest.err |
14870 | rm -f conftest.er1 | |
14871 | cat conftest.err >&5 | |
c0d27fcc | 14872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14873 | (exit $ac_status); } && |
4494a266 JD |
14874 | { ac_try='test -z "$ac_c_werror_flag" |
14875 | || test ! -s conftest.err' | |
35996d22 AS |
14876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14877 | (eval $ac_try) 2>&5 | |
14878 | ac_status=$? | |
14879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14880 | (exit $ac_status); }; } && | |
14881 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 14882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
14883 | (eval $ac_try) 2>&5 |
14884 | ac_status=$? | |
c0d27fcc | 14885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
14886 | (exit $ac_status); }; }; then |
14887 | eval "$as_ac_var=yes" | |
14888 | else | |
14889 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14890 | sed 's/^/| /' conftest.$ac_ext >&5 |
14891 | ||
503d2be0 AS |
14892 | eval "$as_ac_var=no" |
14893 | fi | |
35996d22 AS |
14894 | rm -f conftest.err conftest.$ac_objext \ |
14895 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 14896 | fi |
c0d27fcc | 14897 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
14898 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
14899 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 14900 | cat >>confdefs.h <<_ACEOF |
98418dba | 14901 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 14902 | _ACEOF |
503d2be0 | 14903 | |
98418dba | 14904 | else |
35996d22 AS |
14905 | case $LIBOBJS in |
14906 | "getloadavg.$ac_objext" | \ | |
14907 | *" getloadavg.$ac_objext" | \ | |
14908 | "getloadavg.$ac_objext "* | \ | |
14909 | *" getloadavg.$ac_objext "* ) ;; | |
14910 | *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;; | |
14911 | esac | |
14912 | ||
ba4481b5 | 14913 | |
c0d27fcc | 14914 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14915 | #define C_GETLOADAVG 1 |
c0d27fcc | 14916 | _ACEOF |
ba4481b5 | 14917 | |
98418dba CW |
14918 | # Figure out what our getloadavg.c needs. |
14919 | ac_have_func=no | |
c0d27fcc MR |
14920 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
14921 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
98418dba CW |
14922 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 |
14923 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
503d2be0 | 14924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
14925 | fi |
14926 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
14927 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 | |
ba4481b5 | 14928 | else |
c0d27fcc MR |
14929 | # Is the header compilable? |
14930 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 | |
14931 | echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6 | |
14932 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14933 | /* confdefs.h. */ |
14934 | _ACEOF | |
14935 | cat confdefs.h >>conftest.$ac_ext | |
14936 | cat >>conftest.$ac_ext <<_ACEOF | |
14937 | /* end confdefs.h. */ | |
c0d27fcc MR |
14938 | $ac_includes_default |
14939 | #include <sys/dg_sys_info.h> | |
14940 | _ACEOF | |
14941 | rm -f conftest.$ac_objext | |
14942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 14943 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 14944 | ac_status=$? |
35996d22 AS |
14945 | grep -v '^ *+' conftest.er1 >conftest.err |
14946 | rm -f conftest.er1 | |
14947 | cat conftest.err >&5 | |
c0d27fcc MR |
14948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14949 | (exit $ac_status); } && | |
4494a266 JD |
14950 | { ac_try='test -z "$ac_c_werror_flag" |
14951 | || test ! -s conftest.err' | |
35996d22 AS |
14952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14953 | (eval $ac_try) 2>&5 | |
14954 | ac_status=$? | |
14955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14956 | (exit $ac_status); }; } && | |
14957 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
14958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14959 | (eval $ac_try) 2>&5 | |
14960 | ac_status=$? | |
14961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14962 | (exit $ac_status); }; }; then | |
14963 | ac_header_compiler=yes | |
14964 | else | |
14965 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14966 | sed 's/^/| /' conftest.$ac_ext >&5 |
14967 | ||
c0d27fcc MR |
14968 | ac_header_compiler=no |
14969 | fi | |
35996d22 | 14970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
14971 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14972 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14973 | ||
14974 | # Is the header present? | |
14975 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 | |
14976 | echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6 | |
14977 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14978 | /* confdefs.h. */ |
14979 | _ACEOF | |
14980 | cat confdefs.h >>conftest.$ac_ext | |
14981 | cat >>conftest.$ac_ext <<_ACEOF | |
14982 | /* end confdefs.h. */ | |
98418dba CW |
14983 | #include <sys/dg_sys_info.h> |
14984 | _ACEOF | |
c0d27fcc | 14985 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
14986 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
14987 | ac_status=$? | |
6bae0ccf | 14988 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
14989 | rm -f conftest.er1 |
14990 | cat conftest.err >&5 | |
c0d27fcc | 14991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
14992 | (exit $ac_status); } >/dev/null; then |
14993 | if test -s conftest.err; then | |
14994 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 14995 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
14996 | else |
14997 | ac_cpp_err= | |
14998 | fi | |
14999 | else | |
15000 | ac_cpp_err=yes | |
ba4481b5 | 15001 | fi |
98418dba | 15002 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 15003 | ac_header_preproc=yes |
98418dba CW |
15004 | else |
15005 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15006 | sed 's/^/| /' conftest.$ac_ext >&5 |
15007 | ||
c0d27fcc | 15008 | ac_header_preproc=no |
ba4481b5 | 15009 | fi |
98418dba | 15010 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15011 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15012 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15013 | ||
15014 | # So? What about this header? | |
35996d22 AS |
15015 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15016 | yes:no: ) | |
c0d27fcc MR |
15017 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
15018 | echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15019 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5 |
15020 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;} | |
15021 | ac_header_preproc=yes | |
19650fd6 | 15022 | ;; |
35996d22 | 15023 | no:yes:* ) |
c0d27fcc MR |
15024 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 |
15025 | echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
15026 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 |
15027 | echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
15028 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5 | |
15029 | echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;} | |
15030 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15031 | echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15032 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15033 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15034 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5 |
15035 | echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15036 | ( |
15037 | cat <<\_ASBOX | |
35996d22 AS |
15038 | ## ------------------------------------------ ## |
15039 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15040 | ## ------------------------------------------ ## | |
19650fd6 AS |
15041 | _ASBOX |
15042 | ) | | |
15043 | sed "s/^/$as_me: WARNING: /" >&2 | |
15044 | ;; | |
c0d27fcc MR |
15045 | esac |
15046 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
15047 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 | |
15048 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
15049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15050 | else | |
15051 | ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
98418dba | 15052 | fi |
c0d27fcc | 15053 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
98418dba | 15054 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 |
c0d27fcc MR |
15055 | |
15056 | fi | |
98418dba CW |
15057 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then |
15058 | ac_have_func=yes | |
ba4481b5 | 15059 | |
c0d27fcc | 15060 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15061 | #define DGUX 1 |
c0d27fcc MR |
15062 | _ACEOF |
15063 | ||
503d2be0 | 15064 | |
c0d27fcc | 15065 | echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 |
98418dba CW |
15066 | echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 |
15067 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
503d2be0 | 15068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 15069 | else |
503d2be0 | 15070 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 15071 | LIBS="-ldgc $LIBS" |
503d2be0 | 15072 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15073 | /* confdefs.h. */ |
15074 | _ACEOF | |
15075 | cat confdefs.h >>conftest.$ac_ext | |
15076 | cat >>conftest.$ac_ext <<_ACEOF | |
15077 | /* end confdefs.h. */ | |
503d2be0 | 15078 | |
ba4481b5 | 15079 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
15080 | #ifdef __cplusplus |
15081 | extern "C" | |
15082 | #endif | |
ba4481b5 | 15083 | /* We use char because int might match the return type of a gcc2 |
503d2be0 | 15084 | builtin and then its argument prototype would still apply. */ |
98418dba | 15085 | char dg_sys_info (); |
503d2be0 AS |
15086 | int |
15087 | main () | |
15088 | { | |
98418dba | 15089 | dg_sys_info (); |
503d2be0 AS |
15090 | ; |
15091 | return 0; | |
15092 | } | |
15093 | _ACEOF | |
15094 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 15095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 15096 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 15097 | ac_status=$? |
35996d22 AS |
15098 | grep -v '^ *+' conftest.er1 >conftest.err |
15099 | rm -f conftest.er1 | |
15100 | cat conftest.err >&5 | |
c0d27fcc | 15101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15102 | (exit $ac_status); } && |
4494a266 JD |
15103 | { ac_try='test -z "$ac_c_werror_flag" |
15104 | || test ! -s conftest.err' | |
35996d22 AS |
15105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15106 | (eval $ac_try) 2>&5 | |
15107 | ac_status=$? | |
15108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15109 | (exit $ac_status); }; } && | |
15110 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 15111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
15112 | (eval $ac_try) 2>&5 |
15113 | ac_status=$? | |
c0d27fcc | 15114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15115 | (exit $ac_status); }; }; then |
98418dba | 15116 | ac_cv_lib_dgc_dg_sys_info=yes |
503d2be0 AS |
15117 | else |
15118 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15119 | sed 's/^/| /' conftest.$ac_ext >&5 |
15120 | ||
98418dba | 15121 | ac_cv_lib_dgc_dg_sys_info=no |
503d2be0 | 15122 | fi |
35996d22 AS |
15123 | rm -f conftest.err conftest.$ac_objext \ |
15124 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
15125 | LIBS=$ac_check_lib_save_LIBS |
15126 | fi | |
c0d27fcc | 15127 | echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
98418dba CW |
15128 | echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 |
15129 | if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
c0d27fcc | 15130 | cat >>confdefs.h <<_ACEOF |
98418dba | 15131 | #define HAVE_LIBDGC 1 |
c0d27fcc | 15132 | _ACEOF |
ba4481b5 | 15133 | |
98418dba | 15134 | LIBS="-ldgc $LIBS" |
ba4481b5 | 15135 | |
ba4481b5 DL |
15136 | fi |
15137 | ||
98418dba | 15138 | fi |
503d2be0 | 15139 | |
c0d27fcc MR |
15140 | |
15141 | ||
15142 | if test "${ac_cv_header_locale_h+set}" = set; then | |
15143 | echo "$as_me:$LINENO: checking for locale.h" >&5 | |
98418dba CW |
15144 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 |
15145 | if test "${ac_cv_header_locale_h+set}" = set; then | |
503d2be0 | 15146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
15147 | fi |
15148 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
15149 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 | |
503d2be0 | 15150 | else |
c0d27fcc MR |
15151 | # Is the header compilable? |
15152 | echo "$as_me:$LINENO: checking locale.h usability" >&5 | |
15153 | echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 | |
15154 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15155 | /* confdefs.h. */ |
15156 | _ACEOF | |
15157 | cat confdefs.h >>conftest.$ac_ext | |
15158 | cat >>conftest.$ac_ext <<_ACEOF | |
15159 | /* end confdefs.h. */ | |
c0d27fcc MR |
15160 | $ac_includes_default |
15161 | #include <locale.h> | |
15162 | _ACEOF | |
15163 | rm -f conftest.$ac_objext | |
15164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15165 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15166 | ac_status=$? |
35996d22 AS |
15167 | grep -v '^ *+' conftest.er1 >conftest.err |
15168 | rm -f conftest.er1 | |
15169 | cat conftest.err >&5 | |
c0d27fcc MR |
15170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15171 | (exit $ac_status); } && | |
4494a266 JD |
15172 | { ac_try='test -z "$ac_c_werror_flag" |
15173 | || test ! -s conftest.err' | |
35996d22 AS |
15174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15175 | (eval $ac_try) 2>&5 | |
15176 | ac_status=$? | |
15177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15178 | (exit $ac_status); }; } && | |
15179 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15181 | (eval $ac_try) 2>&5 | |
15182 | ac_status=$? | |
15183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15184 | (exit $ac_status); }; }; then | |
15185 | ac_header_compiler=yes | |
15186 | else | |
15187 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15188 | sed 's/^/| /' conftest.$ac_ext >&5 |
15189 | ||
c0d27fcc MR |
15190 | ac_header_compiler=no |
15191 | fi | |
35996d22 | 15192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15193 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15194 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15195 | ||
15196 | # Is the header present? | |
15197 | echo "$as_me:$LINENO: checking locale.h presence" >&5 | |
15198 | echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 | |
15199 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15200 | /* confdefs.h. */ |
15201 | _ACEOF | |
15202 | cat confdefs.h >>conftest.$ac_ext | |
15203 | cat >>conftest.$ac_ext <<_ACEOF | |
15204 | /* end confdefs.h. */ | |
98418dba | 15205 | #include <locale.h> |
503d2be0 | 15206 | _ACEOF |
c0d27fcc | 15207 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba | 15208 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
503d2be0 | 15209 | ac_status=$? |
6bae0ccf | 15210 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
15211 | rm -f conftest.er1 |
15212 | cat conftest.err >&5 | |
c0d27fcc | 15213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
15214 | (exit $ac_status); } >/dev/null; then |
15215 | if test -s conftest.err; then | |
15216 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15217 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
15218 | else |
15219 | ac_cpp_err= | |
15220 | fi | |
503d2be0 | 15221 | else |
98418dba | 15222 | ac_cpp_err=yes |
503d2be0 | 15223 | fi |
98418dba | 15224 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 15225 | ac_header_preproc=yes |
98418dba CW |
15226 | else |
15227 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15228 | sed 's/^/| /' conftest.$ac_ext >&5 |
15229 | ||
c0d27fcc | 15230 | ac_header_preproc=no |
ba4481b5 | 15231 | fi |
98418dba | 15232 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15233 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15234 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15235 | ||
15236 | # So? What about this header? | |
35996d22 AS |
15237 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15238 | yes:no: ) | |
c0d27fcc MR |
15239 | { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
15240 | echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15241 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 |
15242 | echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} | |
15243 | ac_header_preproc=yes | |
19650fd6 | 15244 | ;; |
35996d22 | 15245 | no:yes:* ) |
c0d27fcc MR |
15246 | { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 |
15247 | echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
15248 | { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 |
15249 | echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
15250 | { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 | |
15251 | echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} | |
15252 | { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15253 | echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15254 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15255 | echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15256 | { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 |
15257 | echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15258 | ( |
15259 | cat <<\_ASBOX | |
35996d22 AS |
15260 | ## ------------------------------------------ ## |
15261 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15262 | ## ------------------------------------------ ## | |
19650fd6 AS |
15263 | _ASBOX |
15264 | ) | | |
15265 | sed "s/^/$as_me: WARNING: /" >&2 | |
15266 | ;; | |
c0d27fcc MR |
15267 | esac |
15268 | echo "$as_me:$LINENO: checking for locale.h" >&5 | |
15269 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 | |
15270 | if test "${ac_cv_header_locale_h+set}" = set; then | |
15271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15272 | else | |
15273 | ac_cv_header_locale_h=$ac_header_preproc | |
ba4481b5 | 15274 | fi |
c0d27fcc | 15275 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 |
98418dba CW |
15276 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6 |
15277 | ||
c0d27fcc MR |
15278 | fi |
15279 | ||
15280 | ||
15281 | ||
98418dba | 15282 | for ac_func in setlocale |
ba4481b5 | 15283 | do |
503d2be0 | 15284 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
c0d27fcc | 15285 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
15286 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
15287 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 15289 | else |
503d2be0 | 15290 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15291 | /* confdefs.h. */ |
15292 | _ACEOF | |
15293 | cat confdefs.h >>conftest.$ac_ext | |
15294 | cat >>conftest.$ac_ext <<_ACEOF | |
15295 | /* end confdefs.h. */ | |
35996d22 AS |
15296 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15297 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15298 | #define $ac_func innocuous_$ac_func | |
15299 | ||
ba4481b5 | 15300 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
15301 | which can conflict with char $ac_func (); below. |
15302 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15303 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 15304 | |
19650fd6 AS |
15305 | #ifdef __STDC__ |
15306 | # include <limits.h> | |
15307 | #else | |
15308 | # include <assert.h> | |
15309 | #endif | |
35996d22 AS |
15310 | |
15311 | #undef $ac_func | |
15312 | ||
ba4481b5 | 15313 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
15314 | #ifdef __cplusplus |
15315 | extern "C" | |
19650fd6 | 15316 | { |
503d2be0 | 15317 | #endif |
ba4481b5 | 15318 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
15319 | builtin and then its argument prototype would still apply. */ |
15320 | char $ac_func (); | |
ba4481b5 DL |
15321 | /* The GNU C library defines this for functions which it implements |
15322 | to always fail with ENOSYS. Some functions are actually named | |
15323 | something starting with __ and the normal name is an alias. */ | |
15324 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15325 | choke me | |
15326 | #else | |
19650fd6 AS |
15327 | char (*f) () = $ac_func; |
15328 | #endif | |
15329 | #ifdef __cplusplus | |
15330 | } | |
ba4481b5 DL |
15331 | #endif |
15332 | ||
19650fd6 AS |
15333 | int |
15334 | main () | |
15335 | { | |
15336 | return f != $ac_func; | |
503d2be0 AS |
15337 | ; |
15338 | return 0; | |
15339 | } | |
15340 | _ACEOF | |
15341 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 15342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 15343 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 15344 | ac_status=$? |
35996d22 AS |
15345 | grep -v '^ *+' conftest.er1 >conftest.err |
15346 | rm -f conftest.er1 | |
15347 | cat conftest.err >&5 | |
c0d27fcc | 15348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15349 | (exit $ac_status); } && |
4494a266 JD |
15350 | { ac_try='test -z "$ac_c_werror_flag" |
15351 | || test ! -s conftest.err' | |
35996d22 AS |
15352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15353 | (eval $ac_try) 2>&5 | |
15354 | ac_status=$? | |
15355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15356 | (exit $ac_status); }; } && | |
15357 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 15358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
15359 | (eval $ac_try) 2>&5 |
15360 | ac_status=$? | |
c0d27fcc | 15361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15362 | (exit $ac_status); }; }; then |
15363 | eval "$as_ac_var=yes" | |
15364 | else | |
15365 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15366 | sed 's/^/| /' conftest.$ac_ext >&5 |
15367 | ||
503d2be0 AS |
15368 | eval "$as_ac_var=no" |
15369 | fi | |
35996d22 AS |
15370 | rm -f conftest.err conftest.$ac_objext \ |
15371 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 15372 | fi |
c0d27fcc | 15373 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
15374 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
15375 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 15376 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 15377 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 15378 | _ACEOF |
ba4481b5 | 15379 | |
ba4481b5 DL |
15380 | fi |
15381 | done | |
15382 | ||
c0d27fcc | 15383 | |
98418dba CW |
15384 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
15385 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
15386 | # Irix 4.0.5F has the header but not the library. | |
15387 | if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
15388 | ac_have_func=yes | |
15389 | ||
c0d27fcc | 15390 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15391 | #define SVR4 1 |
c0d27fcc | 15392 | _ACEOF |
98418dba CW |
15393 | |
15394 | fi | |
15395 | ||
15396 | if test $ac_have_func = no; then | |
c0d27fcc MR |
15397 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
15398 | echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
98418dba CW |
15399 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 |
15400 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
503d2be0 | 15401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
15402 | fi |
15403 | echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
15404 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 | |
98418dba | 15405 | else |
c0d27fcc MR |
15406 | # Is the header compilable? |
15407 | echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 | |
15408 | echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6 | |
15409 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15410 | /* confdefs.h. */ |
15411 | _ACEOF | |
15412 | cat confdefs.h >>conftest.$ac_ext | |
15413 | cat >>conftest.$ac_ext <<_ACEOF | |
15414 | /* end confdefs.h. */ | |
c0d27fcc MR |
15415 | $ac_includes_default |
15416 | #include <inq_stats/cpustats.h> | |
15417 | _ACEOF | |
15418 | rm -f conftest.$ac_objext | |
15419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15420 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15421 | ac_status=$? |
35996d22 AS |
15422 | grep -v '^ *+' conftest.er1 >conftest.err |
15423 | rm -f conftest.er1 | |
15424 | cat conftest.err >&5 | |
c0d27fcc MR |
15425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15426 | (exit $ac_status); } && | |
4494a266 JD |
15427 | { ac_try='test -z "$ac_c_werror_flag" |
15428 | || test ! -s conftest.err' | |
35996d22 AS |
15429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15430 | (eval $ac_try) 2>&5 | |
15431 | ac_status=$? | |
15432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15433 | (exit $ac_status); }; } && | |
15434 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15436 | (eval $ac_try) 2>&5 | |
15437 | ac_status=$? | |
15438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15439 | (exit $ac_status); }; }; then | |
15440 | ac_header_compiler=yes | |
15441 | else | |
15442 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15443 | sed 's/^/| /' conftest.$ac_ext >&5 |
15444 | ||
c0d27fcc MR |
15445 | ac_header_compiler=no |
15446 | fi | |
35996d22 | 15447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15448 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15449 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15450 | ||
15451 | # Is the header present? | |
15452 | echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 | |
15453 | echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6 | |
15454 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15455 | /* confdefs.h. */ |
15456 | _ACEOF | |
15457 | cat confdefs.h >>conftest.$ac_ext | |
15458 | cat >>conftest.$ac_ext <<_ACEOF | |
15459 | /* end confdefs.h. */ | |
98418dba | 15460 | #include <inq_stats/cpustats.h> |
503d2be0 | 15461 | _ACEOF |
c0d27fcc | 15462 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15463 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15464 | ac_status=$? | |
6bae0ccf | 15465 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15466 | rm -f conftest.er1 |
15467 | cat conftest.err >&5 | |
c0d27fcc | 15468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15469 | (exit $ac_status); } >/dev/null; then |
15470 | if test -s conftest.err; then | |
15471 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15472 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
15473 | else |
15474 | ac_cpp_err= | |
15475 | fi | |
15476 | else | |
15477 | ac_cpp_err=yes | |
15478 | fi | |
15479 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15480 | ac_header_preproc=yes |
503d2be0 AS |
15481 | else |
15482 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15483 | sed 's/^/| /' conftest.$ac_ext >&5 |
15484 | ||
c0d27fcc | 15485 | ac_header_preproc=no |
ba4481b5 | 15486 | fi |
503d2be0 | 15487 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15488 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15489 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15490 | ||
15491 | # So? What about this header? | |
35996d22 AS |
15492 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15493 | yes:no: ) | |
c0d27fcc MR |
15494 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
15495 | echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15496 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5 |
15497 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;} | |
15498 | ac_header_preproc=yes | |
19650fd6 | 15499 | ;; |
35996d22 | 15500 | no:yes:* ) |
c0d27fcc MR |
15501 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 |
15502 | echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
15503 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 |
15504 | echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
15505 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5 | |
15506 | echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;} | |
15507 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15508 | echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15509 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15510 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15511 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5 |
15512 | echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15513 | ( |
15514 | cat <<\_ASBOX | |
35996d22 AS |
15515 | ## ------------------------------------------ ## |
15516 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15517 | ## ------------------------------------------ ## | |
19650fd6 AS |
15518 | _ASBOX |
15519 | ) | | |
15520 | sed "s/^/$as_me: WARNING: /" >&2 | |
15521 | ;; | |
c0d27fcc MR |
15522 | esac |
15523 | echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
15524 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 | |
15525 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
15526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15527 | else | |
15528 | ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
ba4481b5 | 15529 | fi |
c0d27fcc | 15530 | echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
98418dba | 15531 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 |
c0d27fcc MR |
15532 | |
15533 | fi | |
98418dba CW |
15534 | if test $ac_cv_header_inq_stats_cpustats_h = yes; then |
15535 | ac_have_func=yes | |
ba4481b5 | 15536 | |
c0d27fcc | 15537 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15538 | #define UMAX 1 |
c0d27fcc | 15539 | _ACEOF |
98418dba | 15540 | |
c0d27fcc MR |
15541 | |
15542 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 15543 | #define UMAX4_3 1 |
c0d27fcc | 15544 | _ACEOF |
98418dba CW |
15545 | |
15546 | fi | |
15547 | ||
c0d27fcc | 15548 | |
98418dba CW |
15549 | fi |
15550 | ||
15551 | if test $ac_have_func = no; then | |
c0d27fcc MR |
15552 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
15553 | echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
98418dba CW |
15554 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 |
15555 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
503d2be0 | 15556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc MR |
15557 | fi |
15558 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
15559 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 | |
503d2be0 | 15560 | else |
c0d27fcc MR |
15561 | # Is the header compilable? |
15562 | echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 | |
15563 | echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6 | |
15564 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15565 | /* confdefs.h. */ |
15566 | _ACEOF | |
15567 | cat confdefs.h >>conftest.$ac_ext | |
15568 | cat >>conftest.$ac_ext <<_ACEOF | |
15569 | /* end confdefs.h. */ | |
c0d27fcc MR |
15570 | $ac_includes_default |
15571 | #include <sys/cpustats.h> | |
15572 | _ACEOF | |
15573 | rm -f conftest.$ac_objext | |
15574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15575 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15576 | ac_status=$? |
35996d22 AS |
15577 | grep -v '^ *+' conftest.er1 >conftest.err |
15578 | rm -f conftest.er1 | |
15579 | cat conftest.err >&5 | |
c0d27fcc MR |
15580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15581 | (exit $ac_status); } && | |
4494a266 JD |
15582 | { ac_try='test -z "$ac_c_werror_flag" |
15583 | || test ! -s conftest.err' | |
35996d22 AS |
15584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15585 | (eval $ac_try) 2>&5 | |
15586 | ac_status=$? | |
15587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15588 | (exit $ac_status); }; } && | |
15589 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15591 | (eval $ac_try) 2>&5 | |
15592 | ac_status=$? | |
15593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15594 | (exit $ac_status); }; }; then | |
15595 | ac_header_compiler=yes | |
15596 | else | |
15597 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15598 | sed 's/^/| /' conftest.$ac_ext >&5 |
15599 | ||
c0d27fcc MR |
15600 | ac_header_compiler=no |
15601 | fi | |
35996d22 | 15602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15603 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15604 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15605 | ||
15606 | # Is the header present? | |
15607 | echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 | |
15608 | echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6 | |
15609 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15610 | /* confdefs.h. */ |
15611 | _ACEOF | |
15612 | cat confdefs.h >>conftest.$ac_ext | |
15613 | cat >>conftest.$ac_ext <<_ACEOF | |
15614 | /* end confdefs.h. */ | |
98418dba CW |
15615 | #include <sys/cpustats.h> |
15616 | _ACEOF | |
c0d27fcc | 15617 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
98418dba CW |
15618 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15619 | ac_status=$? | |
6bae0ccf | 15620 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
15621 | rm -f conftest.er1 |
15622 | cat conftest.err >&5 | |
c0d27fcc | 15623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
15624 | (exit $ac_status); } >/dev/null; then |
15625 | if test -s conftest.err; then | |
15626 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15627 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
98418dba CW |
15628 | else |
15629 | ac_cpp_err= | |
15630 | fi | |
15631 | else | |
15632 | ac_cpp_err=yes | |
503d2be0 | 15633 | fi |
98418dba | 15634 | if test -z "$ac_cpp_err"; then |
c0d27fcc | 15635 | ac_header_preproc=yes |
98418dba CW |
15636 | else |
15637 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15638 | sed 's/^/| /' conftest.$ac_ext >&5 |
15639 | ||
c0d27fcc | 15640 | ac_header_preproc=no |
98418dba CW |
15641 | fi |
15642 | rm -f conftest.err conftest.$ac_ext | |
c0d27fcc MR |
15643 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15644 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15645 | ||
15646 | # So? What about this header? | |
35996d22 AS |
15647 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15648 | yes:no: ) | |
c0d27fcc MR |
15649 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
15650 | echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15651 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5 |
15652 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;} | |
15653 | ac_header_preproc=yes | |
19650fd6 | 15654 | ;; |
35996d22 | 15655 | no:yes:* ) |
c0d27fcc MR |
15656 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 |
15657 | echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
15658 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 |
15659 | echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
15660 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5 | |
15661 | echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;} | |
15662 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15663 | echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15664 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15665 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15666 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5 |
15667 | echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15668 | ( |
15669 | cat <<\_ASBOX | |
35996d22 AS |
15670 | ## ------------------------------------------ ## |
15671 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15672 | ## ------------------------------------------ ## | |
19650fd6 AS |
15673 | _ASBOX |
15674 | ) | | |
15675 | sed "s/^/$as_me: WARNING: /" >&2 | |
15676 | ;; | |
c0d27fcc MR |
15677 | esac |
15678 | echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
15679 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 | |
15680 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
15681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15682 | else | |
15683 | ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
98418dba | 15684 | fi |
c0d27fcc | 15685 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 |
98418dba | 15686 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 |
c0d27fcc MR |
15687 | |
15688 | fi | |
98418dba | 15689 | if test $ac_cv_header_sys_cpustats_h = yes; then |
c0d27fcc | 15690 | ac_have_func=yes; cat >>confdefs.h <<\_ACEOF |
98418dba | 15691 | #define UMAX 1 |
c0d27fcc | 15692 | _ACEOF |
ba4481b5 | 15693 | |
98418dba CW |
15694 | fi |
15695 | ||
c0d27fcc | 15696 | |
98418dba CW |
15697 | fi |
15698 | ||
15699 | if test $ac_have_func = no; then | |
15700 | ||
15701 | for ac_header in mach/mach.h | |
2c9dccc9 PJ |
15702 | do |
15703 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
15704 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15705 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2c9dccc9 PJ |
15706 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15707 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
15709 | fi |
15710 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15711 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 15712 | else |
c0d27fcc MR |
15713 | # Is the header compilable? |
15714 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15715 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15716 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15717 | /* confdefs.h. */ |
15718 | _ACEOF | |
15719 | cat confdefs.h >>conftest.$ac_ext | |
15720 | cat >>conftest.$ac_ext <<_ACEOF | |
15721 | /* end confdefs.h. */ | |
c0d27fcc MR |
15722 | $ac_includes_default |
15723 | #include <$ac_header> | |
15724 | _ACEOF | |
15725 | rm -f conftest.$ac_objext | |
15726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15727 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15728 | ac_status=$? |
35996d22 AS |
15729 | grep -v '^ *+' conftest.er1 >conftest.err |
15730 | rm -f conftest.er1 | |
15731 | cat conftest.err >&5 | |
c0d27fcc MR |
15732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15733 | (exit $ac_status); } && | |
4494a266 JD |
15734 | { ac_try='test -z "$ac_c_werror_flag" |
15735 | || test ! -s conftest.err' | |
35996d22 AS |
15736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15737 | (eval $ac_try) 2>&5 | |
15738 | ac_status=$? | |
15739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15740 | (exit $ac_status); }; } && | |
15741 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15743 | (eval $ac_try) 2>&5 | |
15744 | ac_status=$? | |
15745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15746 | (exit $ac_status); }; }; then | |
15747 | ac_header_compiler=yes | |
15748 | else | |
15749 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15750 | sed 's/^/| /' conftest.$ac_ext >&5 |
15751 | ||
c0d27fcc MR |
15752 | ac_header_compiler=no |
15753 | fi | |
35996d22 | 15754 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15755 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15756 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15757 | ||
15758 | # Is the header present? | |
15759 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15760 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15761 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15762 | /* confdefs.h. */ |
15763 | _ACEOF | |
15764 | cat confdefs.h >>conftest.$ac_ext | |
15765 | cat >>conftest.$ac_ext <<_ACEOF | |
15766 | /* end confdefs.h. */ | |
2c9dccc9 PJ |
15767 | #include <$ac_header> |
15768 | _ACEOF | |
c0d27fcc | 15769 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2c9dccc9 PJ |
15770 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15771 | ac_status=$? | |
6bae0ccf | 15772 | grep -v '^ *+' conftest.er1 >conftest.err |
2c9dccc9 PJ |
15773 | rm -f conftest.er1 |
15774 | cat conftest.err >&5 | |
c0d27fcc | 15775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2c9dccc9 PJ |
15776 | (exit $ac_status); } >/dev/null; then |
15777 | if test -s conftest.err; then | |
15778 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15779 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2c9dccc9 PJ |
15780 | else |
15781 | ac_cpp_err= | |
15782 | fi | |
15783 | else | |
15784 | ac_cpp_err=yes | |
15785 | fi | |
15786 | if test -z "$ac_cpp_err"; then | |
c0d27fcc MR |
15787 | ac_header_preproc=yes |
15788 | else | |
15789 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15790 | sed 's/^/| /' conftest.$ac_ext >&5 |
15791 | ||
c0d27fcc MR |
15792 | ac_header_preproc=no |
15793 | fi | |
15794 | rm -f conftest.err conftest.$ac_ext | |
15795 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15796 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15797 | ||
15798 | # So? What about this header? | |
35996d22 AS |
15799 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15800 | yes:no: ) | |
c0d27fcc MR |
15801 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15802 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15803 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15804 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15805 | ac_header_preproc=yes | |
19650fd6 | 15806 | ;; |
35996d22 | 15807 | no:yes:* ) |
c0d27fcc MR |
15808 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15809 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
15810 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15811 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15812 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15813 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15814 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15815 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15816 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15817 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15818 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15819 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15820 | ( |
15821 | cat <<\_ASBOX | |
35996d22 AS |
15822 | ## ------------------------------------------ ## |
15823 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15824 | ## ------------------------------------------ ## | |
19650fd6 AS |
15825 | _ASBOX |
15826 | ) | | |
15827 | sed "s/^/$as_me: WARNING: /" >&2 | |
15828 | ;; | |
c0d27fcc MR |
15829 | esac |
15830 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15831 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15832 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15834 | else | |
35996d22 | 15835 | eval "$as_ac_Header=\$ac_header_preproc" |
c0d27fcc MR |
15836 | fi |
15837 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15838 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15839 | ||
15840 | fi | |
15841 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15842 | cat >>confdefs.h <<_ACEOF | |
15843 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15844 | _ACEOF | |
15845 | ||
15846 | fi | |
15847 | ||
15848 | done | |
15849 | ||
15850 | fi | |
15851 | ||
15852 | ||
15853 | for ac_header in nlist.h | |
15854 | do | |
15855 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15856 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15857 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15858 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15859 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15861 | fi | |
15862 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15863 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15864 | else | |
15865 | # Is the header compilable? | |
15866 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15867 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15868 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15869 | /* confdefs.h. */ |
15870 | _ACEOF | |
15871 | cat confdefs.h >>conftest.$ac_ext | |
15872 | cat >>conftest.$ac_ext <<_ACEOF | |
15873 | /* end confdefs.h. */ | |
c0d27fcc MR |
15874 | $ac_includes_default |
15875 | #include <$ac_header> | |
15876 | _ACEOF | |
15877 | rm -f conftest.$ac_objext | |
15878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 15879 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 15880 | ac_status=$? |
35996d22 AS |
15881 | grep -v '^ *+' conftest.er1 >conftest.err |
15882 | rm -f conftest.er1 | |
15883 | cat conftest.err >&5 | |
c0d27fcc MR |
15884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15885 | (exit $ac_status); } && | |
4494a266 JD |
15886 | { ac_try='test -z "$ac_c_werror_flag" |
15887 | || test ! -s conftest.err' | |
35996d22 AS |
15888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15889 | (eval $ac_try) 2>&5 | |
15890 | ac_status=$? | |
15891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15892 | (exit $ac_status); }; } && | |
15893 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
15894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15895 | (eval $ac_try) 2>&5 | |
15896 | ac_status=$? | |
15897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15898 | (exit $ac_status); }; }; then | |
15899 | ac_header_compiler=yes | |
2c9dccc9 PJ |
15900 | else |
15901 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15902 | sed 's/^/| /' conftest.$ac_ext >&5 |
15903 | ||
c0d27fcc | 15904 | ac_header_compiler=no |
98418dba | 15905 | fi |
35996d22 | 15906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
15907 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15908 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
98418dba | 15909 | |
c0d27fcc MR |
15910 | # Is the header present? |
15911 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15912 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15913 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15914 | /* confdefs.h. */ |
15915 | _ACEOF | |
15916 | cat confdefs.h >>conftest.$ac_ext | |
15917 | cat >>conftest.$ac_ext <<_ACEOF | |
15918 | /* end confdefs.h. */ | |
503d2be0 AS |
15919 | #include <$ac_header> |
15920 | _ACEOF | |
c0d27fcc | 15921 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
15922 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15923 | ac_status=$? | |
6bae0ccf | 15924 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15925 | rm -f conftest.er1 |
15926 | cat conftest.err >&5 | |
c0d27fcc | 15927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
15928 | (exit $ac_status); } >/dev/null; then |
15929 | if test -s conftest.err; then | |
15930 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 15931 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
15932 | else |
15933 | ac_cpp_err= | |
15934 | fi | |
15935 | else | |
15936 | ac_cpp_err=yes | |
15937 | fi | |
15938 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 15939 | ac_header_preproc=yes |
503d2be0 AS |
15940 | else |
15941 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15942 | sed 's/^/| /' conftest.$ac_ext >&5 |
15943 | ||
c0d27fcc | 15944 | ac_header_preproc=no |
b5de8dc0 | 15945 | fi |
503d2be0 | 15946 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
15947 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15948 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15949 | ||
15950 | # So? What about this header? | |
35996d22 AS |
15951 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15952 | yes:no: ) | |
c0d27fcc MR |
15953 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15954 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
15955 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15956 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15957 | ac_header_preproc=yes | |
19650fd6 | 15958 | ;; |
35996d22 | 15959 | no:yes:* ) |
c0d27fcc MR |
15960 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15961 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
15962 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15963 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15964 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15965 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15966 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15967 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15968 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15969 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
15970 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15971 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
15972 | ( |
15973 | cat <<\_ASBOX | |
35996d22 AS |
15974 | ## ------------------------------------------ ## |
15975 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15976 | ## ------------------------------------------ ## | |
19650fd6 AS |
15977 | _ASBOX |
15978 | ) | | |
15979 | sed "s/^/$as_me: WARNING: /" >&2 | |
15980 | ;; | |
c0d27fcc MR |
15981 | esac |
15982 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15983 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15984 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15986 | else | |
35996d22 | 15987 | eval "$as_ac_Header=\$ac_header_preproc" |
b5de8dc0 | 15988 | fi |
c0d27fcc | 15989 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 15990 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
15991 | |
15992 | fi | |
98418dba | 15993 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15994 | cat >>confdefs.h <<_ACEOF |
98418dba | 15995 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc MR |
15996 | _ACEOF |
15997 | echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 | |
98418dba CW |
15998 | echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 |
15999 | if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
503d2be0 | 16000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b5de8dc0 | 16001 | else |
503d2be0 | 16002 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16003 | /* confdefs.h. */ |
16004 | _ACEOF | |
16005 | cat confdefs.h >>conftest.$ac_ext | |
16006 | cat >>conftest.$ac_ext <<_ACEOF | |
16007 | /* end confdefs.h. */ | |
98418dba | 16008 | #include <nlist.h> |
b5de8dc0 | 16009 | |
503d2be0 AS |
16010 | int |
16011 | main () | |
16012 | { | |
98418dba CW |
16013 | static struct nlist ac_aggr; |
16014 | if (ac_aggr.n_un.n_name) | |
16015 | return 0; | |
503d2be0 AS |
16016 | ; |
16017 | return 0; | |
16018 | } | |
16019 | _ACEOF | |
98418dba | 16020 | rm -f conftest.$ac_objext |
c0d27fcc | 16021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 16022 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 16023 | ac_status=$? |
35996d22 AS |
16024 | grep -v '^ *+' conftest.er1 >conftest.err |
16025 | rm -f conftest.er1 | |
16026 | cat conftest.err >&5 | |
c0d27fcc | 16027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16028 | (exit $ac_status); } && |
4494a266 JD |
16029 | { ac_try='test -z "$ac_c_werror_flag" |
16030 | || test ! -s conftest.err' | |
35996d22 AS |
16031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16032 | (eval $ac_try) 2>&5 | |
16033 | ac_status=$? | |
16034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16035 | (exit $ac_status); }; } && | |
16036 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 16037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16038 | (eval $ac_try) 2>&5 |
16039 | ac_status=$? | |
c0d27fcc | 16040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16041 | (exit $ac_status); }; }; then |
98418dba | 16042 | ac_cv_member_struct_nlist_n_un_n_name=yes |
503d2be0 AS |
16043 | else |
16044 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16045 | sed 's/^/| /' conftest.$ac_ext >&5 |
16046 | ||
6bae0ccf | 16047 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16048 | /* confdefs.h. */ |
16049 | _ACEOF | |
16050 | cat confdefs.h >>conftest.$ac_ext | |
16051 | cat >>conftest.$ac_ext <<_ACEOF | |
16052 | /* end confdefs.h. */ | |
6bae0ccf DL |
16053 | #include <nlist.h> |
16054 | ||
16055 | int | |
16056 | main () | |
16057 | { | |
16058 | static struct nlist ac_aggr; | |
16059 | if (sizeof ac_aggr.n_un.n_name) | |
16060 | return 0; | |
16061 | ; | |
16062 | return 0; | |
16063 | } | |
16064 | _ACEOF | |
16065 | rm -f conftest.$ac_objext | |
16066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 16067 | (eval $ac_compile) 2>conftest.er1 |
6bae0ccf | 16068 | ac_status=$? |
35996d22 AS |
16069 | grep -v '^ *+' conftest.er1 >conftest.err |
16070 | rm -f conftest.er1 | |
16071 | cat conftest.err >&5 | |
6bae0ccf DL |
16072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16073 | (exit $ac_status); } && | |
4494a266 JD |
16074 | { ac_try='test -z "$ac_c_werror_flag" |
16075 | || test ! -s conftest.err' | |
35996d22 AS |
16076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16077 | (eval $ac_try) 2>&5 | |
16078 | ac_status=$? | |
16079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16080 | (exit $ac_status); }; } && | |
16081 | { ac_try='test -s conftest.$ac_objext' | |
6bae0ccf DL |
16082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16083 | (eval $ac_try) 2>&5 | |
16084 | ac_status=$? | |
16085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16086 | (exit $ac_status); }; }; then | |
16087 | ac_cv_member_struct_nlist_n_un_n_name=yes | |
16088 | else | |
16089 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16090 | sed 's/^/| /' conftest.$ac_ext >&5 |
16091 | ||
98418dba | 16092 | ac_cv_member_struct_nlist_n_un_n_name=no |
503d2be0 | 16093 | fi |
35996d22 | 16094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b5de8dc0 | 16095 | fi |
35996d22 | 16096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6bae0ccf | 16097 | fi |
c0d27fcc | 16098 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
98418dba CW |
16099 | echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 |
16100 | if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
b5de8dc0 | 16101 | |
c0d27fcc | 16102 | cat >>confdefs.h <<_ACEOF |
98418dba | 16103 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
c0d27fcc | 16104 | _ACEOF |
b5de8dc0 | 16105 | |
c0d27fcc MR |
16106 | |
16107 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 16108 | #define NLIST_NAME_UNION 1 |
c0d27fcc | 16109 | _ACEOF |
b5de8dc0 | 16110 | |
98418dba | 16111 | fi |
b5de8dc0 | 16112 | |
c0d27fcc | 16113 | |
98418dba | 16114 | fi |
c0d27fcc | 16115 | |
98418dba | 16116 | done |
b5de8dc0 | 16117 | |
98418dba CW |
16118 | fi |
16119 | done | |
b5de8dc0 | 16120 | |
c0d27fcc | 16121 | |
98418dba | 16122 | # Some definitions of getloadavg require that the program be installed setgid. |
c0d27fcc | 16123 | echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 |
98418dba CW |
16124 | echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 |
16125 | if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
16126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16127 | else | |
16128 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16129 | /* confdefs.h. */ |
16130 | _ACEOF | |
16131 | cat confdefs.h >>conftest.$ac_ext | |
16132 | cat >>conftest.$ac_ext <<_ACEOF | |
16133 | /* end confdefs.h. */ | |
6bae0ccf | 16134 | #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" |
98418dba CW |
16135 | #ifdef LDAV_PRIVILEGED |
16136 | Yowza Am I SETGID yet | |
16137 | #endif | |
16138 | _ACEOF | |
16139 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 16140 | $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then |
98418dba CW |
16141 | ac_cv_func_getloadavg_setgid=yes |
16142 | else | |
16143 | ac_cv_func_getloadavg_setgid=no | |
16144 | fi | |
16145 | rm -f conftest* | |
b5de8dc0 | 16146 | |
98418dba | 16147 | fi |
c0d27fcc | 16148 | echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 |
98418dba CW |
16149 | echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 |
16150 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
16151 | NEED_SETGID=true | |
b5de8dc0 | 16152 | |
c0d27fcc | 16153 | cat >>confdefs.h <<\_ACEOF |
98418dba | 16154 | #define GETLOADAVG_PRIVILEGED 1 |
c0d27fcc | 16155 | _ACEOF |
98418dba | 16156 | |
b5de8dc0 | 16157 | else |
98418dba | 16158 | NEED_SETGID=false |
b5de8dc0 | 16159 | fi |
98418dba CW |
16160 | |
16161 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
c0d27fcc | 16162 | echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 |
98418dba CW |
16163 | echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 |
16164 | if test "${ac_cv_group_kmem+set}" = set; then | |
16165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16166 | else | |
16167 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
16168 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
16169 | # If we got an error (system does not support symlinks), try without -L. | |
16170 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
16171 | ac_cv_group_kmem=`echo $ac_ls_output \ | |
35996d22 | 16172 | | sed -ne 's/[ ][ ]*/ /g; |
98418dba CW |
16173 | s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; |
16174 | / /s/.* //;p;'` | |
16175 | ||
b5de8dc0 | 16176 | fi |
c0d27fcc | 16177 | echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 |
98418dba CW |
16178 | echo "${ECHO_T}$ac_cv_group_kmem" >&6 |
16179 | KMEM_GROUP=$ac_cv_group_kmem | |
b5de8dc0 | 16180 | fi |
98418dba CW |
16181 | if test "x$ac_save_LIBS" = x; then |
16182 | GETLOADAVG_LIBS=$LIBS | |
16183 | else | |
16184 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
b5de8dc0 | 16185 | fi |
98418dba | 16186 | LIBS=$ac_save_LIBS |
b5de8dc0 | 16187 | |
c0d27fcc MR |
16188 | |
16189 | ||
16190 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
b936fae4 AS |
16191 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
16192 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
503d2be0 | 16193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 16194 | else |
b936fae4 AS |
16195 | while :; do |
16196 | ac_cv_sys_largefile_source=no | |
503d2be0 | 16197 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16198 | /* confdefs.h. */ |
16199 | _ACEOF | |
16200 | cat confdefs.h >>conftest.$ac_ext | |
16201 | cat >>conftest.$ac_ext <<_ACEOF | |
16202 | /* end confdefs.h. */ | |
b936fae4 | 16203 | #include <stdio.h> |
503d2be0 AS |
16204 | int |
16205 | main () | |
16206 | { | |
b936fae4 AS |
16207 | return !fseeko; |
16208 | ; | |
16209 | return 0; | |
16210 | } | |
16211 | _ACEOF | |
16212 | rm -f conftest.$ac_objext | |
c0d27fcc | 16213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 16214 | (eval $ac_compile) 2>conftest.er1 |
b936fae4 | 16215 | ac_status=$? |
35996d22 AS |
16216 | grep -v '^ *+' conftest.er1 >conftest.err |
16217 | rm -f conftest.er1 | |
16218 | cat conftest.err >&5 | |
c0d27fcc | 16219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 | 16220 | (exit $ac_status); } && |
4494a266 JD |
16221 | { ac_try='test -z "$ac_c_werror_flag" |
16222 | || test ! -s conftest.err' | |
35996d22 AS |
16223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16224 | (eval $ac_try) 2>&5 | |
16225 | ac_status=$? | |
16226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16227 | (exit $ac_status); }; } && | |
16228 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 16229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
b936fae4 AS |
16230 | (eval $ac_try) 2>&5 |
16231 | ac_status=$? | |
c0d27fcc | 16232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 AS |
16233 | (exit $ac_status); }; }; then |
16234 | break | |
16235 | else | |
16236 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16237 | sed 's/^/| /' conftest.$ac_ext >&5 |
16238 | ||
b936fae4 | 16239 | fi |
35996d22 | 16240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b936fae4 | 16241 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16242 | /* confdefs.h. */ |
16243 | _ACEOF | |
16244 | cat confdefs.h >>conftest.$ac_ext | |
16245 | cat >>conftest.$ac_ext <<_ACEOF | |
16246 | /* end confdefs.h. */ | |
b936fae4 AS |
16247 | #define _LARGEFILE_SOURCE 1 |
16248 | #include <stdio.h> | |
b936fae4 AS |
16249 | int |
16250 | main () | |
16251 | { | |
16252 | return !fseeko; | |
16253 | ; | |
16254 | return 0; | |
16255 | } | |
16256 | _ACEOF | |
16257 | rm -f conftest.$ac_objext | |
c0d27fcc | 16258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 16259 | (eval $ac_compile) 2>conftest.er1 |
b936fae4 | 16260 | ac_status=$? |
35996d22 AS |
16261 | grep -v '^ *+' conftest.er1 >conftest.err |
16262 | rm -f conftest.er1 | |
16263 | cat conftest.err >&5 | |
c0d27fcc | 16264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 | 16265 | (exit $ac_status); } && |
4494a266 JD |
16266 | { ac_try='test -z "$ac_c_werror_flag" |
16267 | || test ! -s conftest.err' | |
35996d22 AS |
16268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16269 | (eval $ac_try) 2>&5 | |
16270 | ac_status=$? | |
16271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16272 | (exit $ac_status); }; } && | |
16273 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 16274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
b936fae4 AS |
16275 | (eval $ac_try) 2>&5 |
16276 | ac_status=$? | |
c0d27fcc | 16277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b936fae4 AS |
16278 | (exit $ac_status); }; }; then |
16279 | ac_cv_sys_largefile_source=1; break | |
16280 | else | |
16281 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16282 | sed 's/^/| /' conftest.$ac_ext >&5 |
16283 | ||
b936fae4 | 16284 | fi |
35996d22 | 16285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b936fae4 AS |
16286 | break |
16287 | done | |
16288 | fi | |
c0d27fcc | 16289 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
b936fae4 AS |
16290 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 |
16291 | if test "$ac_cv_sys_largefile_source" != no; then | |
16292 | ||
c0d27fcc | 16293 | cat >>confdefs.h <<_ACEOF |
b936fae4 | 16294 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
c0d27fcc | 16295 | _ACEOF |
b936fae4 AS |
16296 | |
16297 | fi | |
16298 | rm -f conftest* | |
4c343001 | 16299 | |
b936fae4 AS |
16300 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
16301 | # in glibc 2.1.3, but that breaks too many other things. | |
16302 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
c0d27fcc | 16303 | echo "$as_me:$LINENO: checking for fseeko" >&5 |
b936fae4 AS |
16304 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 |
16305 | if test "${ac_cv_func_fseeko+set}" = set; then | |
16306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16307 | else | |
16308 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16309 | /* confdefs.h. */ |
16310 | _ACEOF | |
16311 | cat confdefs.h >>conftest.$ac_ext | |
16312 | cat >>conftest.$ac_ext <<_ACEOF | |
16313 | /* end confdefs.h. */ | |
b936fae4 | 16314 | #include <stdio.h> |
b936fae4 AS |
16315 | int |
16316 | main () | |
16317 | { | |
16318 | return fseeko && fseeko (stdin, 0, 0); | |
503d2be0 AS |
16319 | ; |
16320 | return 0; | |
16321 | } | |
16322 | _ACEOF | |
16323 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16325 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 16326 | ac_status=$? |
35996d22 AS |
16327 | grep -v '^ *+' conftest.er1 >conftest.err |
16328 | rm -f conftest.er1 | |
16329 | cat conftest.err >&5 | |
c0d27fcc | 16330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16331 | (exit $ac_status); } && |
4494a266 JD |
16332 | { ac_try='test -z "$ac_c_werror_flag" |
16333 | || test ! -s conftest.err' | |
35996d22 AS |
16334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16335 | (eval $ac_try) 2>&5 | |
16336 | ac_status=$? | |
16337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16338 | (exit $ac_status); }; } && | |
16339 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16341 | (eval $ac_try) 2>&5 |
16342 | ac_status=$? | |
c0d27fcc | 16343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16344 | (exit $ac_status); }; }; then |
b936fae4 | 16345 | ac_cv_func_fseeko=yes |
503d2be0 AS |
16346 | else |
16347 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16348 | sed 's/^/| /' conftest.$ac_ext >&5 |
16349 | ||
b936fae4 | 16350 | ac_cv_func_fseeko=no |
503d2be0 | 16351 | fi |
35996d22 AS |
16352 | rm -f conftest.err conftest.$ac_objext \ |
16353 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 16354 | fi |
c0d27fcc | 16355 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 |
b936fae4 AS |
16356 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
16357 | if test $ac_cv_func_fseeko = yes; then | |
16358 | ||
c0d27fcc | 16359 | cat >>confdefs.h <<\_ACEOF |
b936fae4 | 16360 | #define HAVE_FSEEKO 1 |
c0d27fcc | 16361 | _ACEOF |
b936fae4 | 16362 | |
4c343001 DL |
16363 | fi |
16364 | ||
c0d27fcc | 16365 | |
cd958eb3 MB |
16366 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
16367 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | |
16368 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | |
16369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16370 | else | |
16371 | # Use it with a single arg. | |
16372 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16373 | /* confdefs.h. */ |
16374 | _ACEOF | |
16375 | cat confdefs.h >>conftest.$ac_ext | |
16376 | cat >>conftest.$ac_ext <<_ACEOF | |
16377 | /* end confdefs.h. */ | |
cd958eb3 MB |
16378 | $ac_includes_default |
16379 | int | |
16380 | main () | |
16381 | { | |
16382 | getpgrp (0); | |
16383 | ; | |
16384 | return 0; | |
16385 | } | |
16386 | _ACEOF | |
16387 | rm -f conftest.$ac_objext | |
16388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 16389 | (eval $ac_compile) 2>conftest.er1 |
cd958eb3 | 16390 | ac_status=$? |
35996d22 AS |
16391 | grep -v '^ *+' conftest.er1 >conftest.err |
16392 | rm -f conftest.er1 | |
16393 | cat conftest.err >&5 | |
cd958eb3 MB |
16394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16395 | (exit $ac_status); } && | |
4494a266 JD |
16396 | { ac_try='test -z "$ac_c_werror_flag" |
16397 | || test ! -s conftest.err' | |
35996d22 AS |
16398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16399 | (eval $ac_try) 2>&5 | |
16400 | ac_status=$? | |
16401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16402 | (exit $ac_status); }; } && | |
16403 | { ac_try='test -s conftest.$ac_objext' | |
cd958eb3 MB |
16404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16405 | (eval $ac_try) 2>&5 | |
16406 | ac_status=$? | |
16407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16408 | (exit $ac_status); }; }; then | |
16409 | ac_cv_func_getpgrp_void=no | |
16410 | else | |
16411 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16412 | sed 's/^/| /' conftest.$ac_ext >&5 |
16413 | ||
cd958eb3 MB |
16414 | ac_cv_func_getpgrp_void=yes |
16415 | fi | |
35996d22 | 16416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cd958eb3 MB |
16417 | |
16418 | fi | |
16419 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | |
16420 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | |
16421 | if test $ac_cv_func_getpgrp_void = yes; then | |
16422 | ||
16423 | cat >>confdefs.h <<\_ACEOF | |
16424 | #define GETPGRP_VOID 1 | |
16425 | _ACEOF | |
16426 | ||
16427 | fi | |
16428 | ||
16429 | ||
973a76b1 DL |
16430 | |
16431 | for ac_func in strftime | |
16432 | do | |
16433 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16434 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16435 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16436 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16438 | else | |
16439 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16440 | /* confdefs.h. */ |
16441 | _ACEOF | |
16442 | cat confdefs.h >>conftest.$ac_ext | |
16443 | cat >>conftest.$ac_ext <<_ACEOF | |
16444 | /* end confdefs.h. */ | |
35996d22 AS |
16445 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16446 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16447 | #define $ac_func innocuous_$ac_func | |
16448 | ||
973a76b1 | 16449 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16450 | which can conflict with char $ac_func (); below. |
16451 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16452 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16453 | |
19650fd6 AS |
16454 | #ifdef __STDC__ |
16455 | # include <limits.h> | |
16456 | #else | |
16457 | # include <assert.h> | |
16458 | #endif | |
35996d22 AS |
16459 | |
16460 | #undef $ac_func | |
16461 | ||
973a76b1 DL |
16462 | /* Override any gcc2 internal prototype to avoid an error. */ |
16463 | #ifdef __cplusplus | |
16464 | extern "C" | |
19650fd6 | 16465 | { |
973a76b1 DL |
16466 | #endif |
16467 | /* We use char because int might match the return type of a gcc2 | |
16468 | builtin and then its argument prototype would still apply. */ | |
16469 | char $ac_func (); | |
16470 | /* The GNU C library defines this for functions which it implements | |
16471 | to always fail with ENOSYS. Some functions are actually named | |
16472 | something starting with __ and the normal name is an alias. */ | |
16473 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16474 | choke me | |
16475 | #else | |
19650fd6 AS |
16476 | char (*f) () = $ac_func; |
16477 | #endif | |
16478 | #ifdef __cplusplus | |
16479 | } | |
973a76b1 DL |
16480 | #endif |
16481 | ||
19650fd6 AS |
16482 | int |
16483 | main () | |
16484 | { | |
16485 | return f != $ac_func; | |
973a76b1 DL |
16486 | ; |
16487 | return 0; | |
16488 | } | |
16489 | _ACEOF | |
16490 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 16492 | (eval $ac_link) 2>conftest.er1 |
973a76b1 | 16493 | ac_status=$? |
35996d22 AS |
16494 | grep -v '^ *+' conftest.er1 >conftest.err |
16495 | rm -f conftest.er1 | |
16496 | cat conftest.err >&5 | |
973a76b1 DL |
16497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16498 | (exit $ac_status); } && | |
4494a266 JD |
16499 | { ac_try='test -z "$ac_c_werror_flag" |
16500 | || test ! -s conftest.err' | |
35996d22 AS |
16501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16502 | (eval $ac_try) 2>&5 | |
16503 | ac_status=$? | |
16504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16505 | (exit $ac_status); }; } && | |
16506 | { ac_try='test -s conftest$ac_exeext' | |
973a76b1 DL |
16507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16508 | (eval $ac_try) 2>&5 | |
16509 | ac_status=$? | |
16510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16511 | (exit $ac_status); }; }; then | |
16512 | eval "$as_ac_var=yes" | |
16513 | else | |
16514 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16515 | sed 's/^/| /' conftest.$ac_ext >&5 |
16516 | ||
973a76b1 DL |
16517 | eval "$as_ac_var=no" |
16518 | fi | |
35996d22 AS |
16519 | rm -f conftest.err conftest.$ac_objext \ |
16520 | conftest$ac_exeext conftest.$ac_ext | |
973a76b1 DL |
16521 | fi |
16522 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16523 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16524 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16525 | cat >>confdefs.h <<_ACEOF | |
16526 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16527 | _ACEOF | |
16528 | ||
16529 | else | |
16530 | # strftime is in -lintl on SCO UNIX. | |
16531 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | |
16532 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | |
16533 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | |
16534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16535 | else | |
16536 | ac_check_lib_save_LIBS=$LIBS | |
16537 | LIBS="-lintl $LIBS" | |
16538 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16539 | /* confdefs.h. */ |
16540 | _ACEOF | |
16541 | cat confdefs.h >>conftest.$ac_ext | |
16542 | cat >>conftest.$ac_ext <<_ACEOF | |
16543 | /* end confdefs.h. */ | |
973a76b1 DL |
16544 | |
16545 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16546 | #ifdef __cplusplus | |
16547 | extern "C" | |
16548 | #endif | |
16549 | /* We use char because int might match the return type of a gcc2 | |
16550 | builtin and then its argument prototype would still apply. */ | |
16551 | char strftime (); | |
16552 | int | |
16553 | main () | |
16554 | { | |
16555 | strftime (); | |
16556 | ; | |
16557 | return 0; | |
16558 | } | |
16559 | _ACEOF | |
16560 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 16562 | (eval $ac_link) 2>conftest.er1 |
973a76b1 | 16563 | ac_status=$? |
35996d22 AS |
16564 | grep -v '^ *+' conftest.er1 >conftest.err |
16565 | rm -f conftest.er1 | |
16566 | cat conftest.err >&5 | |
973a76b1 DL |
16567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16568 | (exit $ac_status); } && | |
4494a266 JD |
16569 | { ac_try='test -z "$ac_c_werror_flag" |
16570 | || test ! -s conftest.err' | |
35996d22 AS |
16571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16572 | (eval $ac_try) 2>&5 | |
16573 | ac_status=$? | |
16574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16575 | (exit $ac_status); }; } && | |
16576 | { ac_try='test -s conftest$ac_exeext' | |
973a76b1 DL |
16577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16578 | (eval $ac_try) 2>&5 | |
16579 | ac_status=$? | |
16580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16581 | (exit $ac_status); }; }; then | |
16582 | ac_cv_lib_intl_strftime=yes | |
16583 | else | |
16584 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16585 | sed 's/^/| /' conftest.$ac_ext >&5 |
16586 | ||
973a76b1 DL |
16587 | ac_cv_lib_intl_strftime=no |
16588 | fi | |
35996d22 AS |
16589 | rm -f conftest.err conftest.$ac_objext \ |
16590 | conftest$ac_exeext conftest.$ac_ext | |
973a76b1 DL |
16591 | LIBS=$ac_check_lib_save_LIBS |
16592 | fi | |
16593 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | |
16594 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | |
16595 | if test $ac_cv_lib_intl_strftime = yes; then | |
16596 | cat >>confdefs.h <<\_ACEOF | |
16597 | #define HAVE_STRFTIME 1 | |
16598 | _ACEOF | |
16599 | ||
16600 | LIBS="-lintl $LIBS" | |
16601 | fi | |
16602 | ||
16603 | fi | |
16604 | done | |
16605 | ||
16606 | ||
b936fae4 AS |
16607 | # UNIX98 PTYs. |
16608 | ||
16609 | for ac_func in grantpt | |
503d2be0 AS |
16610 | do |
16611 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 16612 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
16613 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16614 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4c343001 | 16616 | else |
503d2be0 | 16617 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16618 | /* confdefs.h. */ |
16619 | _ACEOF | |
16620 | cat confdefs.h >>conftest.$ac_ext | |
16621 | cat >>conftest.$ac_ext <<_ACEOF | |
16622 | /* end confdefs.h. */ | |
35996d22 AS |
16623 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16624 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16625 | #define $ac_func innocuous_$ac_func | |
16626 | ||
503d2be0 | 16627 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16628 | which can conflict with char $ac_func (); below. |
16629 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16630 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16631 | |
19650fd6 AS |
16632 | #ifdef __STDC__ |
16633 | # include <limits.h> | |
16634 | #else | |
16635 | # include <assert.h> | |
16636 | #endif | |
35996d22 AS |
16637 | |
16638 | #undef $ac_func | |
16639 | ||
4c343001 | 16640 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16641 | #ifdef __cplusplus |
16642 | extern "C" | |
19650fd6 | 16643 | { |
503d2be0 | 16644 | #endif |
4c343001 | 16645 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16646 | builtin and then its argument prototype would still apply. */ |
16647 | char $ac_func (); | |
503d2be0 AS |
16648 | /* The GNU C library defines this for functions which it implements |
16649 | to always fail with ENOSYS. Some functions are actually named | |
16650 | something starting with __ and the normal name is an alias. */ | |
16651 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16652 | choke me | |
16653 | #else | |
19650fd6 AS |
16654 | char (*f) () = $ac_func; |
16655 | #endif | |
16656 | #ifdef __cplusplus | |
16657 | } | |
503d2be0 | 16658 | #endif |
4c343001 | 16659 | |
19650fd6 AS |
16660 | int |
16661 | main () | |
16662 | { | |
16663 | return f != $ac_func; | |
503d2be0 AS |
16664 | ; |
16665 | return 0; | |
16666 | } | |
16667 | _ACEOF | |
16668 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16670 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 16671 | ac_status=$? |
35996d22 AS |
16672 | grep -v '^ *+' conftest.er1 >conftest.err |
16673 | rm -f conftest.er1 | |
16674 | cat conftest.err >&5 | |
c0d27fcc | 16675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16676 | (exit $ac_status); } && |
4494a266 JD |
16677 | { ac_try='test -z "$ac_c_werror_flag" |
16678 | || test ! -s conftest.err' | |
35996d22 AS |
16679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16680 | (eval $ac_try) 2>&5 | |
16681 | ac_status=$? | |
16682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16683 | (exit $ac_status); }; } && | |
16684 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16686 | (eval $ac_try) 2>&5 |
16687 | ac_status=$? | |
c0d27fcc | 16688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16689 | (exit $ac_status); }; }; then |
16690 | eval "$as_ac_var=yes" | |
16691 | else | |
16692 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16693 | sed 's/^/| /' conftest.$ac_ext >&5 |
16694 | ||
503d2be0 AS |
16695 | eval "$as_ac_var=no" |
16696 | fi | |
35996d22 AS |
16697 | rm -f conftest.err conftest.$ac_objext \ |
16698 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 16699 | fi |
c0d27fcc | 16700 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
16701 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
16702 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 16703 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16704 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16705 | _ACEOF |
4c343001 DL |
16706 | |
16707 | fi | |
503d2be0 AS |
16708 | done |
16709 | ||
c0d27fcc | 16710 | |
b936fae4 | 16711 | # PTY-related GNU extensions. |
4c343001 | 16712 | |
b936fae4 AS |
16713 | for ac_func in getpt |
16714 | do | |
16715 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 16716 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
b936fae4 AS |
16717 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16718 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
503d2be0 | 16719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 16720 | else |
b936fae4 | 16721 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16722 | /* confdefs.h. */ |
16723 | _ACEOF | |
16724 | cat confdefs.h >>conftest.$ac_ext | |
16725 | cat >>conftest.$ac_ext <<_ACEOF | |
16726 | /* end confdefs.h. */ | |
35996d22 AS |
16727 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16728 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16729 | #define $ac_func innocuous_$ac_func | |
16730 | ||
087121cc | 16731 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16732 | which can conflict with char $ac_func (); below. |
16733 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16734 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16735 | |
19650fd6 AS |
16736 | #ifdef __STDC__ |
16737 | # include <limits.h> | |
16738 | #else | |
16739 | # include <assert.h> | |
16740 | #endif | |
35996d22 AS |
16741 | |
16742 | #undef $ac_func | |
16743 | ||
087121cc | 16744 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16745 | #ifdef __cplusplus |
16746 | extern "C" | |
19650fd6 | 16747 | { |
503d2be0 | 16748 | #endif |
087121cc | 16749 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16750 | builtin and then its argument prototype would still apply. */ |
16751 | char $ac_func (); | |
087121cc GM |
16752 | /* The GNU C library defines this for functions which it implements |
16753 | to always fail with ENOSYS. Some functions are actually named | |
16754 | something starting with __ and the normal name is an alias. */ | |
16755 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16756 | choke me | |
16757 | #else | |
19650fd6 AS |
16758 | char (*f) () = $ac_func; |
16759 | #endif | |
16760 | #ifdef __cplusplus | |
16761 | } | |
087121cc GM |
16762 | #endif |
16763 | ||
19650fd6 AS |
16764 | int |
16765 | main () | |
16766 | { | |
16767 | return f != $ac_func; | |
503d2be0 AS |
16768 | ; |
16769 | return 0; | |
16770 | } | |
16771 | _ACEOF | |
16772 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16774 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 16775 | ac_status=$? |
35996d22 AS |
16776 | grep -v '^ *+' conftest.er1 >conftest.err |
16777 | rm -f conftest.er1 | |
16778 | cat conftest.err >&5 | |
c0d27fcc | 16779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16780 | (exit $ac_status); } && |
4494a266 JD |
16781 | { ac_try='test -z "$ac_c_werror_flag" |
16782 | || test ! -s conftest.err' | |
35996d22 AS |
16783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16784 | (eval $ac_try) 2>&5 | |
16785 | ac_status=$? | |
16786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16787 | (exit $ac_status); }; } && | |
16788 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16790 | (eval $ac_try) 2>&5 |
16791 | ac_status=$? | |
c0d27fcc | 16792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16793 | (exit $ac_status); }; }; then |
16794 | eval "$as_ac_var=yes" | |
16795 | else | |
16796 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16797 | sed 's/^/| /' conftest.$ac_ext >&5 |
16798 | ||
503d2be0 AS |
16799 | eval "$as_ac_var=no" |
16800 | fi | |
35996d22 AS |
16801 | rm -f conftest.err conftest.$ac_objext \ |
16802 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 16803 | fi |
c0d27fcc | 16804 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
16805 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
16806 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 16807 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16808 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16809 | _ACEOF |
087121cc | 16810 | |
087121cc GM |
16811 | fi |
16812 | done | |
16813 | ||
c0d27fcc | 16814 | |
ba4481b5 DL |
16815 | # Check this now, so that we will NOT find the above functions in ncurses. |
16816 | # That is because we have not set up to link ncurses in lib-src. | |
16817 | # It's better to believe a function is not available | |
16818 | # than to expect to find it in ncurses. | |
503d2be0 | 16819 | |
c0d27fcc | 16820 | echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5 |
503d2be0 AS |
16821 | echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 |
16822 | if test "${ac_cv_lib_ncurses_tparm+set}" = set; then | |
16823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 16824 | else |
503d2be0 | 16825 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 16826 | LIBS="-lncurses $LIBS" |
503d2be0 | 16827 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16828 | /* confdefs.h. */ |
16829 | _ACEOF | |
16830 | cat confdefs.h >>conftest.$ac_ext | |
16831 | cat >>conftest.$ac_ext <<_ACEOF | |
16832 | /* end confdefs.h. */ | |
503d2be0 | 16833 | |
ba4481b5 | 16834 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
16835 | #ifdef __cplusplus |
16836 | extern "C" | |
16837 | #endif | |
ba4481b5 | 16838 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
16839 | builtin and then its argument prototype would still apply. */ |
16840 | char tparm (); | |
16841 | int | |
16842 | main () | |
16843 | { | |
16844 | tparm (); | |
16845 | ; | |
16846 | return 0; | |
16847 | } | |
16848 | _ACEOF | |
16849 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16851 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 16852 | ac_status=$? |
35996d22 AS |
16853 | grep -v '^ *+' conftest.er1 >conftest.err |
16854 | rm -f conftest.er1 | |
16855 | cat conftest.err >&5 | |
c0d27fcc | 16856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16857 | (exit $ac_status); } && |
4494a266 JD |
16858 | { ac_try='test -z "$ac_c_werror_flag" |
16859 | || test ! -s conftest.err' | |
35996d22 AS |
16860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16861 | (eval $ac_try) 2>&5 | |
16862 | ac_status=$? | |
16863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16864 | (exit $ac_status); }; } && | |
16865 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
16867 | (eval $ac_try) 2>&5 |
16868 | ac_status=$? | |
c0d27fcc | 16869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
16870 | (exit $ac_status); }; }; then |
16871 | ac_cv_lib_ncurses_tparm=yes | |
16872 | else | |
16873 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16874 | sed 's/^/| /' conftest.$ac_ext >&5 |
16875 | ||
503d2be0 AS |
16876 | ac_cv_lib_ncurses_tparm=no |
16877 | fi | |
35996d22 AS |
16878 | rm -f conftest.err conftest.$ac_objext \ |
16879 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
16880 | LIBS=$ac_check_lib_save_LIBS |
16881 | fi | |
c0d27fcc | 16882 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5 |
503d2be0 AS |
16883 | echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 |
16884 | if test $ac_cv_lib_ncurses_tparm = yes; then | |
c0d27fcc | 16885 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 16886 | #define HAVE_LIBNCURSES 1 |
c0d27fcc | 16887 | _ACEOF |
ba4481b5 DL |
16888 | |
16889 | LIBS="-lncurses $LIBS" | |
16890 | ||
ba4481b5 DL |
16891 | fi |
16892 | ||
c0d27fcc | 16893 | |
84e70f78 KR |
16894 | # Do we need the Hesiod library to provide the support routines? |
16895 | if test "$with_hesiod" = yes ; then | |
16896 | # Don't set $LIBS here -- see comments above. | |
16897 | resolv=no | |
c0d27fcc | 16898 | echo "$as_me:$LINENO: checking for res_send" >&5 |
84e70f78 KR |
16899 | echo $ECHO_N "checking for res_send... $ECHO_C" >&6 |
16900 | if test "${ac_cv_func_res_send+set}" = set; then | |
16901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16902 | else | |
16903 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16904 | /* confdefs.h. */ |
16905 | _ACEOF | |
16906 | cat confdefs.h >>conftest.$ac_ext | |
16907 | cat >>conftest.$ac_ext <<_ACEOF | |
16908 | /* end confdefs.h. */ | |
35996d22 AS |
16909 | /* Define res_send to an innocuous variant, in case <limits.h> declares res_send. |
16910 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16911 | #define res_send innocuous_res_send | |
16912 | ||
84e70f78 | 16913 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16914 | which can conflict with char res_send (); below. |
16915 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16916 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 16917 | |
19650fd6 AS |
16918 | #ifdef __STDC__ |
16919 | # include <limits.h> | |
16920 | #else | |
16921 | # include <assert.h> | |
16922 | #endif | |
35996d22 AS |
16923 | |
16924 | #undef res_send | |
16925 | ||
84e70f78 KR |
16926 | /* Override any gcc2 internal prototype to avoid an error. */ |
16927 | #ifdef __cplusplus | |
16928 | extern "C" | |
19650fd6 | 16929 | { |
84e70f78 KR |
16930 | #endif |
16931 | /* We use char because int might match the return type of a gcc2 | |
16932 | builtin and then its argument prototype would still apply. */ | |
16933 | char res_send (); | |
84e70f78 KR |
16934 | /* The GNU C library defines this for functions which it implements |
16935 | to always fail with ENOSYS. Some functions are actually named | |
16936 | something starting with __ and the normal name is an alias. */ | |
16937 | #if defined (__stub_res_send) || defined (__stub___res_send) | |
16938 | choke me | |
16939 | #else | |
19650fd6 AS |
16940 | char (*f) () = res_send; |
16941 | #endif | |
16942 | #ifdef __cplusplus | |
16943 | } | |
cd958eb3 MB |
16944 | #endif |
16945 | ||
19650fd6 AS |
16946 | int |
16947 | main () | |
16948 | { | |
16949 | return f != res_send; | |
84e70f78 KR |
16950 | ; |
16951 | return 0; | |
16952 | } | |
16953 | _ACEOF | |
16954 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 16955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 16956 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 16957 | ac_status=$? |
35996d22 AS |
16958 | grep -v '^ *+' conftest.er1 >conftest.err |
16959 | rm -f conftest.er1 | |
16960 | cat conftest.err >&5 | |
c0d27fcc | 16961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 16962 | (exit $ac_status); } && |
4494a266 JD |
16963 | { ac_try='test -z "$ac_c_werror_flag" |
16964 | || test ! -s conftest.err' | |
35996d22 AS |
16965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16966 | (eval $ac_try) 2>&5 | |
16967 | ac_status=$? | |
16968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16969 | (exit $ac_status); }; } && | |
16970 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 16971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
16972 | (eval $ac_try) 2>&5 |
16973 | ac_status=$? | |
c0d27fcc | 16974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
16975 | (exit $ac_status); }; }; then |
16976 | ac_cv_func_res_send=yes | |
16977 | else | |
16978 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16979 | sed 's/^/| /' conftest.$ac_ext >&5 |
16980 | ||
84e70f78 KR |
16981 | ac_cv_func_res_send=no |
16982 | fi | |
35996d22 AS |
16983 | rm -f conftest.err conftest.$ac_objext \ |
16984 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 | 16985 | fi |
c0d27fcc | 16986 | echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 |
84e70f78 KR |
16987 | echo "${ECHO_T}$ac_cv_func_res_send" >&6 |
16988 | if test $ac_cv_func_res_send = yes; then | |
16989 | : | |
16990 | else | |
c0d27fcc | 16991 | echo "$as_me:$LINENO: checking for __res_send" >&5 |
84e70f78 KR |
16992 | echo $ECHO_N "checking for __res_send... $ECHO_C" >&6 |
16993 | if test "${ac_cv_func___res_send+set}" = set; then | |
16994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16995 | else | |
16996 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16997 | /* confdefs.h. */ |
16998 | _ACEOF | |
16999 | cat confdefs.h >>conftest.$ac_ext | |
17000 | cat >>conftest.$ac_ext <<_ACEOF | |
17001 | /* end confdefs.h. */ | |
35996d22 AS |
17002 | /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send. |
17003 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17004 | #define __res_send innocuous___res_send | |
17005 | ||
84e70f78 | 17006 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
17007 | which can conflict with char __res_send (); below. |
17008 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17009 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 17010 | |
19650fd6 AS |
17011 | #ifdef __STDC__ |
17012 | # include <limits.h> | |
17013 | #else | |
17014 | # include <assert.h> | |
17015 | #endif | |
35996d22 AS |
17016 | |
17017 | #undef __res_send | |
17018 | ||
84e70f78 KR |
17019 | /* Override any gcc2 internal prototype to avoid an error. */ |
17020 | #ifdef __cplusplus | |
17021 | extern "C" | |
19650fd6 | 17022 | { |
84e70f78 KR |
17023 | #endif |
17024 | /* We use char because int might match the return type of a gcc2 | |
17025 | builtin and then its argument prototype would still apply. */ | |
17026 | char __res_send (); | |
84e70f78 KR |
17027 | /* The GNU C library defines this for functions which it implements |
17028 | to always fail with ENOSYS. Some functions are actually named | |
17029 | something starting with __ and the normal name is an alias. */ | |
17030 | #if defined (__stub___res_send) || defined (__stub_____res_send) | |
17031 | choke me | |
17032 | #else | |
19650fd6 AS |
17033 | char (*f) () = __res_send; |
17034 | #endif | |
17035 | #ifdef __cplusplus | |
17036 | } | |
84e70f78 KR |
17037 | #endif |
17038 | ||
19650fd6 AS |
17039 | int |
17040 | main () | |
17041 | { | |
17042 | return f != __res_send; | |
84e70f78 KR |
17043 | ; |
17044 | return 0; | |
17045 | } | |
17046 | _ACEOF | |
17047 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17049 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 17050 | ac_status=$? |
35996d22 AS |
17051 | grep -v '^ *+' conftest.er1 >conftest.err |
17052 | rm -f conftest.er1 | |
17053 | cat conftest.err >&5 | |
c0d27fcc | 17054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 17055 | (exit $ac_status); } && |
4494a266 JD |
17056 | { ac_try='test -z "$ac_c_werror_flag" |
17057 | || test ! -s conftest.err' | |
35996d22 AS |
17058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17059 | (eval $ac_try) 2>&5 | |
17060 | ac_status=$? | |
17061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17062 | (exit $ac_status); }; } && | |
17063 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
17065 | (eval $ac_try) 2>&5 |
17066 | ac_status=$? | |
c0d27fcc | 17067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
17068 | (exit $ac_status); }; }; then |
17069 | ac_cv_func___res_send=yes | |
17070 | else | |
17071 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17072 | sed 's/^/| /' conftest.$ac_ext >&5 |
17073 | ||
84e70f78 KR |
17074 | ac_cv_func___res_send=no |
17075 | fi | |
35996d22 AS |
17076 | rm -f conftest.err conftest.$ac_objext \ |
17077 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 | 17078 | fi |
c0d27fcc | 17079 | echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5 |
84e70f78 KR |
17080 | echo "${ECHO_T}$ac_cv_func___res_send" >&6 |
17081 | if test $ac_cv_func___res_send = yes; then | |
17082 | : | |
17083 | else | |
c0d27fcc | 17084 | echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 |
84e70f78 KR |
17085 | echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6 |
17086 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then | |
17087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17088 | else | |
17089 | ac_check_lib_save_LIBS=$LIBS | |
17090 | LIBS="-lresolv $LIBS" | |
17091 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17092 | /* confdefs.h. */ |
17093 | _ACEOF | |
17094 | cat confdefs.h >>conftest.$ac_ext | |
17095 | cat >>conftest.$ac_ext <<_ACEOF | |
17096 | /* end confdefs.h. */ | |
84e70f78 KR |
17097 | |
17098 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17099 | #ifdef __cplusplus | |
17100 | extern "C" | |
17101 | #endif | |
17102 | /* We use char because int might match the return type of a gcc2 | |
17103 | builtin and then its argument prototype would still apply. */ | |
17104 | char res_send (); | |
17105 | int | |
17106 | main () | |
17107 | { | |
17108 | res_send (); | |
17109 | ; | |
17110 | return 0; | |
17111 | } | |
17112 | _ACEOF | |
17113 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17115 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 17116 | ac_status=$? |
35996d22 AS |
17117 | grep -v '^ *+' conftest.er1 >conftest.err |
17118 | rm -f conftest.er1 | |
17119 | cat conftest.err >&5 | |
c0d27fcc | 17120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 17121 | (exit $ac_status); } && |
4494a266 JD |
17122 | { ac_try='test -z "$ac_c_werror_flag" |
17123 | || test ! -s conftest.err' | |
35996d22 AS |
17124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17125 | (eval $ac_try) 2>&5 | |
17126 | ac_status=$? | |
17127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17128 | (exit $ac_status); }; } && | |
17129 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
17131 | (eval $ac_try) 2>&5 |
17132 | ac_status=$? | |
c0d27fcc | 17133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
17134 | (exit $ac_status); }; }; then |
17135 | ac_cv_lib_resolv_res_send=yes | |
17136 | else | |
17137 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17138 | sed 's/^/| /' conftest.$ac_ext >&5 |
17139 | ||
84e70f78 KR |
17140 | ac_cv_lib_resolv_res_send=no |
17141 | fi | |
35996d22 AS |
17142 | rm -f conftest.err conftest.$ac_objext \ |
17143 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 KR |
17144 | LIBS=$ac_check_lib_save_LIBS |
17145 | fi | |
c0d27fcc | 17146 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 |
84e70f78 KR |
17147 | echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6 |
17148 | if test $ac_cv_lib_resolv_res_send = yes; then | |
17149 | resolv=yes | |
17150 | else | |
c0d27fcc | 17151 | echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 |
84e70f78 KR |
17152 | echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6 |
17153 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then | |
17154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17155 | else | |
17156 | ac_check_lib_save_LIBS=$LIBS | |
17157 | LIBS="-lresolv $LIBS" | |
17158 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17159 | /* confdefs.h. */ |
17160 | _ACEOF | |
17161 | cat confdefs.h >>conftest.$ac_ext | |
17162 | cat >>conftest.$ac_ext <<_ACEOF | |
17163 | /* end confdefs.h. */ | |
84e70f78 KR |
17164 | |
17165 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17166 | #ifdef __cplusplus | |
17167 | extern "C" | |
17168 | #endif | |
17169 | /* We use char because int might match the return type of a gcc2 | |
17170 | builtin and then its argument prototype would still apply. */ | |
17171 | char __res_send (); | |
17172 | int | |
17173 | main () | |
17174 | { | |
17175 | __res_send (); | |
17176 | ; | |
17177 | return 0; | |
17178 | } | |
17179 | _ACEOF | |
17180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17182 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 17183 | ac_status=$? |
35996d22 AS |
17184 | grep -v '^ *+' conftest.er1 >conftest.err |
17185 | rm -f conftest.er1 | |
17186 | cat conftest.err >&5 | |
c0d27fcc | 17187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 17188 | (exit $ac_status); } && |
4494a266 JD |
17189 | { ac_try='test -z "$ac_c_werror_flag" |
17190 | || test ! -s conftest.err' | |
35996d22 AS |
17191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17192 | (eval $ac_try) 2>&5 | |
17193 | ac_status=$? | |
17194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17195 | (exit $ac_status); }; } && | |
17196 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
17198 | (eval $ac_try) 2>&5 |
17199 | ac_status=$? | |
c0d27fcc | 17200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
17201 | (exit $ac_status); }; }; then |
17202 | ac_cv_lib_resolv___res_send=yes | |
17203 | else | |
17204 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17205 | sed 's/^/| /' conftest.$ac_ext >&5 |
17206 | ||
84e70f78 KR |
17207 | ac_cv_lib_resolv___res_send=no |
17208 | fi | |
35996d22 AS |
17209 | rm -f conftest.err conftest.$ac_objext \ |
17210 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 KR |
17211 | LIBS=$ac_check_lib_save_LIBS |
17212 | fi | |
c0d27fcc | 17213 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 |
84e70f78 KR |
17214 | echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6 |
17215 | if test $ac_cv_lib_resolv___res_send = yes; then | |
17216 | resolv=yes | |
17217 | fi | |
17218 | ||
17219 | fi | |
17220 | ||
17221 | fi | |
17222 | ||
17223 | fi | |
17224 | ||
17225 | if test "$resolv" = yes ; then | |
17226 | RESOLVLIB=-lresolv | |
b936fae4 | 17227 | |
c0d27fcc | 17228 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 17229 | #define HAVE_LIBRESOLV 1 |
c0d27fcc | 17230 | _ACEOF |
84e70f78 KR |
17231 | |
17232 | else | |
17233 | RESOLVLIB= | |
17234 | fi | |
c0d27fcc | 17235 | echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 |
84e70f78 KR |
17236 | echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6 |
17237 | if test "${ac_cv_func_hes_getmailhost+set}" = set; then | |
17238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17239 | else | |
17240 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17241 | /* confdefs.h. */ |
17242 | _ACEOF | |
17243 | cat confdefs.h >>conftest.$ac_ext | |
17244 | cat >>conftest.$ac_ext <<_ACEOF | |
17245 | /* end confdefs.h. */ | |
35996d22 AS |
17246 | /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost. |
17247 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17248 | #define hes_getmailhost innocuous_hes_getmailhost | |
17249 | ||
84e70f78 | 17250 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
17251 | which can conflict with char hes_getmailhost (); below. |
17252 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17253 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 17254 | |
19650fd6 AS |
17255 | #ifdef __STDC__ |
17256 | # include <limits.h> | |
17257 | #else | |
17258 | # include <assert.h> | |
17259 | #endif | |
35996d22 AS |
17260 | |
17261 | #undef hes_getmailhost | |
17262 | ||
84e70f78 KR |
17263 | /* Override any gcc2 internal prototype to avoid an error. */ |
17264 | #ifdef __cplusplus | |
17265 | extern "C" | |
19650fd6 | 17266 | { |
84e70f78 KR |
17267 | #endif |
17268 | /* We use char because int might match the return type of a gcc2 | |
17269 | builtin and then its argument prototype would still apply. */ | |
17270 | char hes_getmailhost (); | |
84e70f78 KR |
17271 | /* The GNU C library defines this for functions which it implements |
17272 | to always fail with ENOSYS. Some functions are actually named | |
17273 | something starting with __ and the normal name is an alias. */ | |
17274 | #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost) | |
17275 | choke me | |
17276 | #else | |
19650fd6 AS |
17277 | char (*f) () = hes_getmailhost; |
17278 | #endif | |
17279 | #ifdef __cplusplus | |
17280 | } | |
cd958eb3 MB |
17281 | #endif |
17282 | ||
19650fd6 AS |
17283 | int |
17284 | main () | |
17285 | { | |
17286 | return f != hes_getmailhost; | |
84e70f78 KR |
17287 | ; |
17288 | return 0; | |
17289 | } | |
17290 | _ACEOF | |
17291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17293 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 17294 | ac_status=$? |
35996d22 AS |
17295 | grep -v '^ *+' conftest.er1 >conftest.err |
17296 | rm -f conftest.er1 | |
17297 | cat conftest.err >&5 | |
c0d27fcc | 17298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 17299 | (exit $ac_status); } && |
4494a266 JD |
17300 | { ac_try='test -z "$ac_c_werror_flag" |
17301 | || test ! -s conftest.err' | |
35996d22 AS |
17302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17303 | (eval $ac_try) 2>&5 | |
17304 | ac_status=$? | |
17305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17306 | (exit $ac_status); }; } && | |
17307 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
17309 | (eval $ac_try) 2>&5 |
17310 | ac_status=$? | |
c0d27fcc | 17311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
17312 | (exit $ac_status); }; }; then |
17313 | ac_cv_func_hes_getmailhost=yes | |
17314 | else | |
17315 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17316 | sed 's/^/| /' conftest.$ac_ext >&5 |
17317 | ||
84e70f78 KR |
17318 | ac_cv_func_hes_getmailhost=no |
17319 | fi | |
35996d22 AS |
17320 | rm -f conftest.err conftest.$ac_objext \ |
17321 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 | 17322 | fi |
c0d27fcc | 17323 | echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5 |
84e70f78 KR |
17324 | echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6 |
17325 | if test $ac_cv_func_hes_getmailhost = yes; then | |
17326 | : | |
17327 | else | |
c0d27fcc | 17328 | echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5 |
84e70f78 KR |
17329 | echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6 |
17330 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then | |
17331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17332 | else | |
17333 | ac_check_lib_save_LIBS=$LIBS | |
17334 | LIBS="-lhesiod $RESOLVLIB $LIBS" | |
17335 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17336 | /* confdefs.h. */ |
17337 | _ACEOF | |
17338 | cat confdefs.h >>conftest.$ac_ext | |
17339 | cat >>conftest.$ac_ext <<_ACEOF | |
17340 | /* end confdefs.h. */ | |
84e70f78 KR |
17341 | |
17342 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17343 | #ifdef __cplusplus | |
17344 | extern "C" | |
17345 | #endif | |
17346 | /* We use char because int might match the return type of a gcc2 | |
17347 | builtin and then its argument prototype would still apply. */ | |
17348 | char hes_getmailhost (); | |
17349 | int | |
17350 | main () | |
17351 | { | |
17352 | hes_getmailhost (); | |
17353 | ; | |
17354 | return 0; | |
17355 | } | |
17356 | _ACEOF | |
17357 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17359 | (eval $ac_link) 2>conftest.er1 |
84e70f78 | 17360 | ac_status=$? |
35996d22 AS |
17361 | grep -v '^ *+' conftest.er1 >conftest.err |
17362 | rm -f conftest.er1 | |
17363 | cat conftest.err >&5 | |
c0d27fcc | 17364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 | 17365 | (exit $ac_status); } && |
4494a266 JD |
17366 | { ac_try='test -z "$ac_c_werror_flag" |
17367 | || test ! -s conftest.err' | |
35996d22 AS |
17368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17369 | (eval $ac_try) 2>&5 | |
17370 | ac_status=$? | |
17371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17372 | (exit $ac_status); }; } && | |
17373 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
84e70f78 KR |
17375 | (eval $ac_try) 2>&5 |
17376 | ac_status=$? | |
c0d27fcc | 17377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
84e70f78 KR |
17378 | (exit $ac_status); }; }; then |
17379 | ac_cv_lib_hesiod_hes_getmailhost=yes | |
17380 | else | |
17381 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17382 | sed 's/^/| /' conftest.$ac_ext >&5 |
17383 | ||
84e70f78 KR |
17384 | ac_cv_lib_hesiod_hes_getmailhost=no |
17385 | fi | |
35996d22 AS |
17386 | rm -f conftest.err conftest.$ac_objext \ |
17387 | conftest$ac_exeext conftest.$ac_ext | |
84e70f78 KR |
17388 | LIBS=$ac_check_lib_save_LIBS |
17389 | fi | |
c0d27fcc | 17390 | echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
84e70f78 KR |
17391 | echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6 |
17392 | if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then | |
b936fae4 | 17393 | |
c0d27fcc | 17394 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 17395 | #define HAVE_LIBHESIOD 1 |
c0d27fcc | 17396 | _ACEOF |
84e70f78 KR |
17397 | |
17398 | else | |
17399 | : | |
17400 | fi | |
17401 | ||
17402 | fi | |
17403 | ||
17404 | fi | |
17405 | ||
a21616bd KR |
17406 | # These tell us which Kerberos-related libraries to use. |
17407 | if test "${with_kerberos+set}" = set; then | |
503d2be0 | 17408 | |
c0d27fcc | 17409 | echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 |
503d2be0 AS |
17410 | echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
17411 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then | |
17412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17413 | else |
503d2be0 | 17414 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17415 | LIBS="-lcom_err $LIBS" |
503d2be0 | 17416 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17417 | /* confdefs.h. */ |
17418 | _ACEOF | |
17419 | cat confdefs.h >>conftest.$ac_ext | |
17420 | cat >>conftest.$ac_ext <<_ACEOF | |
17421 | /* end confdefs.h. */ | |
503d2be0 | 17422 | |
a21616bd | 17423 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17424 | #ifdef __cplusplus |
17425 | extern "C" | |
17426 | #endif | |
a21616bd | 17427 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17428 | builtin and then its argument prototype would still apply. */ |
17429 | char com_err (); | |
17430 | int | |
17431 | main () | |
17432 | { | |
17433 | com_err (); | |
17434 | ; | |
17435 | return 0; | |
17436 | } | |
17437 | _ACEOF | |
17438 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17440 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17441 | ac_status=$? |
35996d22 AS |
17442 | grep -v '^ *+' conftest.er1 >conftest.err |
17443 | rm -f conftest.er1 | |
17444 | cat conftest.err >&5 | |
c0d27fcc | 17445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17446 | (exit $ac_status); } && |
4494a266 JD |
17447 | { ac_try='test -z "$ac_c_werror_flag" |
17448 | || test ! -s conftest.err' | |
35996d22 AS |
17449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17450 | (eval $ac_try) 2>&5 | |
17451 | ac_status=$? | |
17452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17453 | (exit $ac_status); }; } && | |
17454 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17456 | (eval $ac_try) 2>&5 |
17457 | ac_status=$? | |
c0d27fcc | 17458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17459 | (exit $ac_status); }; }; then |
17460 | ac_cv_lib_com_err_com_err=yes | |
17461 | else | |
17462 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17463 | sed 's/^/| /' conftest.$ac_ext >&5 |
17464 | ||
503d2be0 AS |
17465 | ac_cv_lib_com_err_com_err=no |
17466 | fi | |
35996d22 AS |
17467 | rm -f conftest.err conftest.$ac_objext \ |
17468 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17469 | LIBS=$ac_check_lib_save_LIBS |
17470 | fi | |
c0d27fcc | 17471 | echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 |
503d2be0 AS |
17472 | echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 |
17473 | if test $ac_cv_lib_com_err_com_err = yes; then | |
c0d27fcc | 17474 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17475 | #define HAVE_LIBCOM_ERR 1 |
c0d27fcc | 17476 | _ACEOF |
a21616bd KR |
17477 | |
17478 | LIBS="-lcom_err $LIBS" | |
17479 | ||
a21616bd KR |
17480 | fi |
17481 | ||
c0d27fcc MR |
17482 | |
17483 | echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | |
503d2be0 AS |
17484 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
17485 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | |
17486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17487 | else |
503d2be0 | 17488 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17489 | LIBS="-lk5crypto $LIBS" |
503d2be0 | 17490 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17491 | /* confdefs.h. */ |
17492 | _ACEOF | |
17493 | cat confdefs.h >>conftest.$ac_ext | |
17494 | cat >>conftest.$ac_ext <<_ACEOF | |
17495 | /* end confdefs.h. */ | |
503d2be0 | 17496 | |
a21616bd | 17497 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17498 | #ifdef __cplusplus |
17499 | extern "C" | |
17500 | #endif | |
a21616bd | 17501 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17502 | builtin and then its argument prototype would still apply. */ |
17503 | char mit_des_cbc_encrypt (); | |
17504 | int | |
17505 | main () | |
17506 | { | |
17507 | mit_des_cbc_encrypt (); | |
17508 | ; | |
17509 | return 0; | |
17510 | } | |
17511 | _ACEOF | |
17512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17514 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17515 | ac_status=$? |
35996d22 AS |
17516 | grep -v '^ *+' conftest.er1 >conftest.err |
17517 | rm -f conftest.er1 | |
17518 | cat conftest.err >&5 | |
c0d27fcc | 17519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17520 | (exit $ac_status); } && |
4494a266 JD |
17521 | { ac_try='test -z "$ac_c_werror_flag" |
17522 | || test ! -s conftest.err' | |
35996d22 AS |
17523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17524 | (eval $ac_try) 2>&5 | |
17525 | ac_status=$? | |
17526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17527 | (exit $ac_status); }; } && | |
17528 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17530 | (eval $ac_try) 2>&5 |
17531 | ac_status=$? | |
c0d27fcc | 17532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17533 | (exit $ac_status); }; }; then |
17534 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
17535 | else | |
17536 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17537 | sed 's/^/| /' conftest.$ac_ext >&5 |
17538 | ||
503d2be0 AS |
17539 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no |
17540 | fi | |
35996d22 AS |
17541 | rm -f conftest.err conftest.$ac_objext \ |
17542 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17543 | LIBS=$ac_check_lib_save_LIBS |
17544 | fi | |
c0d27fcc | 17545 | echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
503d2be0 AS |
17546 | echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 |
17547 | if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | |
c0d27fcc | 17548 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17549 | #define HAVE_LIBK5CRYPTO 1 |
c0d27fcc | 17550 | _ACEOF |
a21616bd KR |
17551 | |
17552 | LIBS="-lk5crypto $LIBS" | |
17553 | ||
a21616bd KR |
17554 | fi |
17555 | ||
c0d27fcc MR |
17556 | |
17557 | echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | |
503d2be0 AS |
17558 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
17559 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | |
17560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17561 | else |
503d2be0 | 17562 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17563 | LIBS="-lcrypto $LIBS" |
503d2be0 | 17564 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17565 | /* confdefs.h. */ |
17566 | _ACEOF | |
17567 | cat confdefs.h >>conftest.$ac_ext | |
17568 | cat >>conftest.$ac_ext <<_ACEOF | |
17569 | /* end confdefs.h. */ | |
503d2be0 | 17570 | |
a21616bd | 17571 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17572 | #ifdef __cplusplus |
17573 | extern "C" | |
17574 | #endif | |
a21616bd | 17575 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17576 | builtin and then its argument prototype would still apply. */ |
17577 | char mit_des_cbc_encrypt (); | |
17578 | int | |
17579 | main () | |
17580 | { | |
17581 | mit_des_cbc_encrypt (); | |
17582 | ; | |
17583 | return 0; | |
17584 | } | |
17585 | _ACEOF | |
17586 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17588 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17589 | ac_status=$? |
35996d22 AS |
17590 | grep -v '^ *+' conftest.er1 >conftest.err |
17591 | rm -f conftest.er1 | |
17592 | cat conftest.err >&5 | |
c0d27fcc | 17593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17594 | (exit $ac_status); } && |
4494a266 JD |
17595 | { ac_try='test -z "$ac_c_werror_flag" |
17596 | || test ! -s conftest.err' | |
35996d22 AS |
17597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17598 | (eval $ac_try) 2>&5 | |
17599 | ac_status=$? | |
17600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17601 | (exit $ac_status); }; } && | |
17602 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17604 | (eval $ac_try) 2>&5 |
17605 | ac_status=$? | |
c0d27fcc | 17606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17607 | (exit $ac_status); }; }; then |
17608 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
17609 | else | |
17610 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17611 | sed 's/^/| /' conftest.$ac_ext >&5 |
17612 | ||
503d2be0 AS |
17613 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no |
17614 | fi | |
35996d22 AS |
17615 | rm -f conftest.err conftest.$ac_objext \ |
17616 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17617 | LIBS=$ac_check_lib_save_LIBS |
17618 | fi | |
c0d27fcc | 17619 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
503d2be0 AS |
17620 | echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 |
17621 | if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | |
c0d27fcc | 17622 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17623 | #define HAVE_LIBCRYPTO 1 |
c0d27fcc | 17624 | _ACEOF |
a21616bd KR |
17625 | |
17626 | LIBS="-lcrypto $LIBS" | |
17627 | ||
a21616bd KR |
17628 | fi |
17629 | ||
c0d27fcc MR |
17630 | |
17631 | echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 | |
503d2be0 AS |
17632 | echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
17633 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | |
17634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17635 | else |
503d2be0 | 17636 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17637 | LIBS="-lkrb5 $LIBS" |
503d2be0 | 17638 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17639 | /* confdefs.h. */ |
17640 | _ACEOF | |
17641 | cat confdefs.h >>conftest.$ac_ext | |
17642 | cat >>conftest.$ac_ext <<_ACEOF | |
17643 | /* end confdefs.h. */ | |
a21616bd | 17644 | |
503d2be0 AS |
17645 | /* Override any gcc2 internal prototype to avoid an error. */ |
17646 | #ifdef __cplusplus | |
17647 | extern "C" | |
17648 | #endif | |
17649 | /* We use char because int might match the return type of a gcc2 | |
17650 | builtin and then its argument prototype would still apply. */ | |
17651 | char krb5_init_context (); | |
17652 | int | |
17653 | main () | |
17654 | { | |
17655 | krb5_init_context (); | |
17656 | ; | |
17657 | return 0; | |
17658 | } | |
17659 | _ACEOF | |
17660 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17662 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17663 | ac_status=$? |
35996d22 AS |
17664 | grep -v '^ *+' conftest.er1 >conftest.err |
17665 | rm -f conftest.er1 | |
17666 | cat conftest.err >&5 | |
c0d27fcc | 17667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17668 | (exit $ac_status); } && |
4494a266 JD |
17669 | { ac_try='test -z "$ac_c_werror_flag" |
17670 | || test ! -s conftest.err' | |
35996d22 AS |
17671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17672 | (eval $ac_try) 2>&5 | |
17673 | ac_status=$? | |
17674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17675 | (exit $ac_status); }; } && | |
17676 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17678 | (eval $ac_try) 2>&5 |
17679 | ac_status=$? | |
c0d27fcc | 17680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17681 | (exit $ac_status); }; }; then |
17682 | ac_cv_lib_krb5_krb5_init_context=yes | |
17683 | else | |
17684 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17685 | sed 's/^/| /' conftest.$ac_ext >&5 |
17686 | ||
503d2be0 AS |
17687 | ac_cv_lib_krb5_krb5_init_context=no |
17688 | fi | |
35996d22 AS |
17689 | rm -f conftest.err conftest.$ac_objext \ |
17690 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17691 | LIBS=$ac_check_lib_save_LIBS |
17692 | fi | |
c0d27fcc | 17693 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
503d2be0 AS |
17694 | echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 |
17695 | if test $ac_cv_lib_krb5_krb5_init_context = yes; then | |
c0d27fcc | 17696 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17697 | #define HAVE_LIBKRB5 1 |
c0d27fcc | 17698 | _ACEOF |
a21616bd KR |
17699 | |
17700 | LIBS="-lkrb5 $LIBS" | |
17701 | ||
a21616bd KR |
17702 | fi |
17703 | ||
17704 | if test "${with_kerberos5+set}" != set; then | |
503d2be0 | 17705 | |
c0d27fcc | 17706 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 |
503d2be0 AS |
17707 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
17708 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
17709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17710 | else |
503d2be0 | 17711 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17712 | LIBS="-ldes425 $LIBS" |
503d2be0 | 17713 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17714 | /* confdefs.h. */ |
17715 | _ACEOF | |
17716 | cat confdefs.h >>conftest.$ac_ext | |
17717 | cat >>conftest.$ac_ext <<_ACEOF | |
17718 | /* end confdefs.h. */ | |
503d2be0 | 17719 | |
a21616bd | 17720 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17721 | #ifdef __cplusplus |
17722 | extern "C" | |
17723 | #endif | |
a21616bd | 17724 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17725 | builtin and then its argument prototype would still apply. */ |
17726 | char des_cbc_encrypt (); | |
17727 | int | |
17728 | main () | |
17729 | { | |
17730 | des_cbc_encrypt (); | |
17731 | ; | |
17732 | return 0; | |
17733 | } | |
17734 | _ACEOF | |
17735 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17737 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17738 | ac_status=$? |
35996d22 AS |
17739 | grep -v '^ *+' conftest.er1 >conftest.err |
17740 | rm -f conftest.er1 | |
17741 | cat conftest.err >&5 | |
c0d27fcc | 17742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17743 | (exit $ac_status); } && |
4494a266 JD |
17744 | { ac_try='test -z "$ac_c_werror_flag" |
17745 | || test ! -s conftest.err' | |
35996d22 AS |
17746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17747 | (eval $ac_try) 2>&5 | |
17748 | ac_status=$? | |
17749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17750 | (exit $ac_status); }; } && | |
17751 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17753 | (eval $ac_try) 2>&5 |
17754 | ac_status=$? | |
c0d27fcc | 17755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17756 | (exit $ac_status); }; }; then |
17757 | ac_cv_lib_des425_des_cbc_encrypt=yes | |
17758 | else | |
17759 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17760 | sed 's/^/| /' conftest.$ac_ext >&5 |
17761 | ||
503d2be0 AS |
17762 | ac_cv_lib_des425_des_cbc_encrypt=no |
17763 | fi | |
35996d22 AS |
17764 | rm -f conftest.err conftest.$ac_objext \ |
17765 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17766 | LIBS=$ac_check_lib_save_LIBS |
17767 | fi | |
c0d27fcc | 17768 | echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
503d2be0 AS |
17769 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 |
17770 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
c0d27fcc | 17771 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17772 | #define HAVE_LIBDES425 1 |
c0d27fcc | 17773 | _ACEOF |
a21616bd KR |
17774 | |
17775 | LIBS="-ldes425 $LIBS" | |
17776 | ||
17777 | else | |
503d2be0 | 17778 | |
c0d27fcc | 17779 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 |
503d2be0 AS |
17780 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
17781 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
17782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17783 | else |
503d2be0 | 17784 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17785 | LIBS="-ldes $LIBS" |
503d2be0 | 17786 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17787 | /* confdefs.h. */ |
17788 | _ACEOF | |
17789 | cat confdefs.h >>conftest.$ac_ext | |
17790 | cat >>conftest.$ac_ext <<_ACEOF | |
17791 | /* end confdefs.h. */ | |
503d2be0 | 17792 | |
a21616bd | 17793 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17794 | #ifdef __cplusplus |
17795 | extern "C" | |
17796 | #endif | |
a21616bd | 17797 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17798 | builtin and then its argument prototype would still apply. */ |
17799 | char des_cbc_encrypt (); | |
17800 | int | |
17801 | main () | |
17802 | { | |
17803 | des_cbc_encrypt (); | |
17804 | ; | |
17805 | return 0; | |
17806 | } | |
17807 | _ACEOF | |
17808 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17810 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17811 | ac_status=$? |
35996d22 AS |
17812 | grep -v '^ *+' conftest.er1 >conftest.err |
17813 | rm -f conftest.er1 | |
17814 | cat conftest.err >&5 | |
c0d27fcc | 17815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17816 | (exit $ac_status); } && |
4494a266 JD |
17817 | { ac_try='test -z "$ac_c_werror_flag" |
17818 | || test ! -s conftest.err' | |
35996d22 AS |
17819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17820 | (eval $ac_try) 2>&5 | |
17821 | ac_status=$? | |
17822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17823 | (exit $ac_status); }; } && | |
17824 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17826 | (eval $ac_try) 2>&5 |
17827 | ac_status=$? | |
c0d27fcc | 17828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17829 | (exit $ac_status); }; }; then |
17830 | ac_cv_lib_des_des_cbc_encrypt=yes | |
17831 | else | |
17832 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17833 | sed 's/^/| /' conftest.$ac_ext >&5 |
17834 | ||
503d2be0 AS |
17835 | ac_cv_lib_des_des_cbc_encrypt=no |
17836 | fi | |
35996d22 AS |
17837 | rm -f conftest.err conftest.$ac_objext \ |
17838 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17839 | LIBS=$ac_check_lib_save_LIBS |
17840 | fi | |
c0d27fcc | 17841 | echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
503d2be0 AS |
17842 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 |
17843 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
c0d27fcc | 17844 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17845 | #define HAVE_LIBDES 1 |
c0d27fcc | 17846 | _ACEOF |
a21616bd KR |
17847 | |
17848 | LIBS="-ldes $LIBS" | |
17849 | ||
a21616bd KR |
17850 | fi |
17851 | ||
17852 | fi | |
17853 | ||
c0d27fcc MR |
17854 | |
17855 | echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 | |
503d2be0 AS |
17856 | echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
17857 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | |
17858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17859 | else |
503d2be0 | 17860 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17861 | LIBS="-lkrb4 $LIBS" |
503d2be0 | 17862 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17863 | /* confdefs.h. */ |
17864 | _ACEOF | |
17865 | cat confdefs.h >>conftest.$ac_ext | |
17866 | cat >>conftest.$ac_ext <<_ACEOF | |
17867 | /* end confdefs.h. */ | |
503d2be0 | 17868 | |
a21616bd | 17869 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17870 | #ifdef __cplusplus |
17871 | extern "C" | |
17872 | #endif | |
a21616bd | 17873 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17874 | builtin and then its argument prototype would still apply. */ |
17875 | char krb_get_cred (); | |
17876 | int | |
17877 | main () | |
17878 | { | |
17879 | krb_get_cred (); | |
17880 | ; | |
17881 | return 0; | |
17882 | } | |
17883 | _ACEOF | |
17884 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17886 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17887 | ac_status=$? |
35996d22 AS |
17888 | grep -v '^ *+' conftest.er1 >conftest.err |
17889 | rm -f conftest.er1 | |
17890 | cat conftest.err >&5 | |
c0d27fcc | 17891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17892 | (exit $ac_status); } && |
4494a266 JD |
17893 | { ac_try='test -z "$ac_c_werror_flag" |
17894 | || test ! -s conftest.err' | |
35996d22 AS |
17895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17896 | (eval $ac_try) 2>&5 | |
17897 | ac_status=$? | |
17898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17899 | (exit $ac_status); }; } && | |
17900 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17902 | (eval $ac_try) 2>&5 |
17903 | ac_status=$? | |
c0d27fcc | 17904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17905 | (exit $ac_status); }; }; then |
17906 | ac_cv_lib_krb4_krb_get_cred=yes | |
17907 | else | |
17908 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17909 | sed 's/^/| /' conftest.$ac_ext >&5 |
17910 | ||
503d2be0 AS |
17911 | ac_cv_lib_krb4_krb_get_cred=no |
17912 | fi | |
35996d22 AS |
17913 | rm -f conftest.err conftest.$ac_objext \ |
17914 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17915 | LIBS=$ac_check_lib_save_LIBS |
17916 | fi | |
c0d27fcc | 17917 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
503d2be0 AS |
17918 | echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 |
17919 | if test $ac_cv_lib_krb4_krb_get_cred = yes; then | |
c0d27fcc | 17920 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17921 | #define HAVE_LIBKRB4 1 |
c0d27fcc | 17922 | _ACEOF |
a21616bd KR |
17923 | |
17924 | LIBS="-lkrb4 $LIBS" | |
17925 | ||
17926 | else | |
503d2be0 | 17927 | |
c0d27fcc | 17928 | echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 |
503d2be0 AS |
17929 | echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
17930 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | |
17931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 17932 | else |
503d2be0 | 17933 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 17934 | LIBS="-lkrb $LIBS" |
503d2be0 | 17935 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17936 | /* confdefs.h. */ |
17937 | _ACEOF | |
17938 | cat confdefs.h >>conftest.$ac_ext | |
17939 | cat >>conftest.$ac_ext <<_ACEOF | |
17940 | /* end confdefs.h. */ | |
503d2be0 | 17941 | |
a21616bd | 17942 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
17943 | #ifdef __cplusplus |
17944 | extern "C" | |
17945 | #endif | |
a21616bd | 17946 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
17947 | builtin and then its argument prototype would still apply. */ |
17948 | char krb_get_cred (); | |
17949 | int | |
17950 | main () | |
17951 | { | |
17952 | krb_get_cred (); | |
17953 | ; | |
17954 | return 0; | |
17955 | } | |
17956 | _ACEOF | |
17957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 17958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 17959 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 17960 | ac_status=$? |
35996d22 AS |
17961 | grep -v '^ *+' conftest.er1 >conftest.err |
17962 | rm -f conftest.er1 | |
17963 | cat conftest.err >&5 | |
c0d27fcc | 17964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17965 | (exit $ac_status); } && |
4494a266 JD |
17966 | { ac_try='test -z "$ac_c_werror_flag" |
17967 | || test ! -s conftest.err' | |
35996d22 AS |
17968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17969 | (eval $ac_try) 2>&5 | |
17970 | ac_status=$? | |
17971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17972 | (exit $ac_status); }; } && | |
17973 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 17974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
17975 | (eval $ac_try) 2>&5 |
17976 | ac_status=$? | |
c0d27fcc | 17977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
17978 | (exit $ac_status); }; }; then |
17979 | ac_cv_lib_krb_krb_get_cred=yes | |
17980 | else | |
17981 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17982 | sed 's/^/| /' conftest.$ac_ext >&5 |
17983 | ||
503d2be0 AS |
17984 | ac_cv_lib_krb_krb_get_cred=no |
17985 | fi | |
35996d22 AS |
17986 | rm -f conftest.err conftest.$ac_objext \ |
17987 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
17988 | LIBS=$ac_check_lib_save_LIBS |
17989 | fi | |
c0d27fcc | 17990 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
503d2be0 AS |
17991 | echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 |
17992 | if test $ac_cv_lib_krb_krb_get_cred = yes; then | |
c0d27fcc | 17993 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17994 | #define HAVE_LIBKRB 1 |
c0d27fcc | 17995 | _ACEOF |
a21616bd KR |
17996 | |
17997 | LIBS="-lkrb $LIBS" | |
17998 | ||
a21616bd KR |
17999 | fi |
18000 | ||
18001 | fi | |
18002 | ||
18003 | fi | |
18004 | ||
18005 | if test "${with_kerberos5+set}" = set; then | |
503d2be0 AS |
18006 | |
18007 | for ac_header in krb5.h | |
a21616bd | 18008 | do |
503d2be0 | 18009 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18010 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18011 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18012 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18013 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18015 | fi |
18016 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18017 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18018 | else |
c0d27fcc MR |
18019 | # Is the header compilable? |
18020 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18021 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18022 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18023 | /* confdefs.h. */ |
18024 | _ACEOF | |
18025 | cat confdefs.h >>conftest.$ac_ext | |
18026 | cat >>conftest.$ac_ext <<_ACEOF | |
18027 | /* end confdefs.h. */ | |
c0d27fcc MR |
18028 | $ac_includes_default |
18029 | #include <$ac_header> | |
18030 | _ACEOF | |
18031 | rm -f conftest.$ac_objext | |
18032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18033 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18034 | ac_status=$? |
35996d22 AS |
18035 | grep -v '^ *+' conftest.er1 >conftest.err |
18036 | rm -f conftest.er1 | |
18037 | cat conftest.err >&5 | |
c0d27fcc MR |
18038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18039 | (exit $ac_status); } && | |
4494a266 JD |
18040 | { ac_try='test -z "$ac_c_werror_flag" |
18041 | || test ! -s conftest.err' | |
35996d22 AS |
18042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18043 | (eval $ac_try) 2>&5 | |
18044 | ac_status=$? | |
18045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18046 | (exit $ac_status); }; } && | |
18047 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18049 | (eval $ac_try) 2>&5 | |
18050 | ac_status=$? | |
18051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18052 | (exit $ac_status); }; }; then | |
18053 | ac_header_compiler=yes | |
18054 | else | |
18055 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18056 | sed 's/^/| /' conftest.$ac_ext >&5 |
18057 | ||
c0d27fcc MR |
18058 | ac_header_compiler=no |
18059 | fi | |
35996d22 | 18060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18061 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18062 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18063 | ||
18064 | # Is the header present? | |
18065 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18066 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18067 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18068 | /* confdefs.h. */ |
18069 | _ACEOF | |
18070 | cat confdefs.h >>conftest.$ac_ext | |
18071 | cat >>conftest.$ac_ext <<_ACEOF | |
18072 | /* end confdefs.h. */ | |
503d2be0 AS |
18073 | #include <$ac_header> |
18074 | _ACEOF | |
c0d27fcc | 18075 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18076 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18077 | ac_status=$? | |
6bae0ccf | 18078 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18079 | rm -f conftest.er1 |
18080 | cat conftest.err >&5 | |
c0d27fcc | 18081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18082 | (exit $ac_status); } >/dev/null; then |
18083 | if test -s conftest.err; then | |
18084 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18085 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18086 | else |
18087 | ac_cpp_err= | |
18088 | fi | |
18089 | else | |
18090 | ac_cpp_err=yes | |
18091 | fi | |
18092 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18093 | ac_header_preproc=yes |
503d2be0 AS |
18094 | else |
18095 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18096 | sed 's/^/| /' conftest.$ac_ext >&5 |
18097 | ||
c0d27fcc | 18098 | ac_header_preproc=no |
a21616bd | 18099 | fi |
503d2be0 | 18100 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18101 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18102 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18103 | ||
18104 | # So? What about this header? | |
35996d22 AS |
18105 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18106 | yes:no: ) | |
c0d27fcc MR |
18107 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18108 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18109 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18110 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18111 | ac_header_preproc=yes | |
19650fd6 | 18112 | ;; |
35996d22 | 18113 | no:yes:* ) |
c0d27fcc MR |
18114 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18115 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18116 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18117 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18118 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18119 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18120 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18121 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18122 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18123 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18124 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18125 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18126 | ( |
18127 | cat <<\_ASBOX | |
35996d22 AS |
18128 | ## ------------------------------------------ ## |
18129 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18130 | ## ------------------------------------------ ## | |
19650fd6 AS |
18131 | _ASBOX |
18132 | ) | | |
18133 | sed "s/^/$as_me: WARNING: /" >&2 | |
18134 | ;; | |
c0d27fcc MR |
18135 | esac |
18136 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18137 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18138 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18140 | else | |
35996d22 | 18141 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18142 | fi |
c0d27fcc | 18143 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18144 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18145 | |
18146 | fi | |
503d2be0 | 18147 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18148 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18149 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18150 | _ACEOF |
503d2be0 | 18151 | |
a21616bd | 18152 | fi |
c0d27fcc | 18153 | |
a21616bd KR |
18154 | done |
18155 | ||
18156 | else | |
503d2be0 AS |
18157 | |
18158 | for ac_header in des.h | |
a21616bd | 18159 | do |
503d2be0 | 18160 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18161 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18162 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18163 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18164 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18166 | fi |
18167 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18168 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18169 | else |
c0d27fcc MR |
18170 | # Is the header compilable? |
18171 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18172 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18173 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18174 | /* confdefs.h. */ |
18175 | _ACEOF | |
18176 | cat confdefs.h >>conftest.$ac_ext | |
18177 | cat >>conftest.$ac_ext <<_ACEOF | |
18178 | /* end confdefs.h. */ | |
c0d27fcc MR |
18179 | $ac_includes_default |
18180 | #include <$ac_header> | |
18181 | _ACEOF | |
18182 | rm -f conftest.$ac_objext | |
18183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18184 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18185 | ac_status=$? |
35996d22 AS |
18186 | grep -v '^ *+' conftest.er1 >conftest.err |
18187 | rm -f conftest.er1 | |
18188 | cat conftest.err >&5 | |
c0d27fcc MR |
18189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18190 | (exit $ac_status); } && | |
4494a266 JD |
18191 | { ac_try='test -z "$ac_c_werror_flag" |
18192 | || test ! -s conftest.err' | |
35996d22 AS |
18193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18194 | (eval $ac_try) 2>&5 | |
18195 | ac_status=$? | |
18196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18197 | (exit $ac_status); }; } && | |
18198 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18200 | (eval $ac_try) 2>&5 | |
18201 | ac_status=$? | |
18202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18203 | (exit $ac_status); }; }; then | |
18204 | ac_header_compiler=yes | |
18205 | else | |
18206 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18207 | sed 's/^/| /' conftest.$ac_ext >&5 |
18208 | ||
c0d27fcc MR |
18209 | ac_header_compiler=no |
18210 | fi | |
35996d22 | 18211 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18212 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18213 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18214 | ||
18215 | # Is the header present? | |
18216 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18217 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18218 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18219 | /* confdefs.h. */ |
18220 | _ACEOF | |
18221 | cat confdefs.h >>conftest.$ac_ext | |
18222 | cat >>conftest.$ac_ext <<_ACEOF | |
18223 | /* end confdefs.h. */ | |
503d2be0 AS |
18224 | #include <$ac_header> |
18225 | _ACEOF | |
c0d27fcc | 18226 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18227 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18228 | ac_status=$? | |
6bae0ccf | 18229 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18230 | rm -f conftest.er1 |
18231 | cat conftest.err >&5 | |
c0d27fcc | 18232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18233 | (exit $ac_status); } >/dev/null; then |
18234 | if test -s conftest.err; then | |
18235 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18236 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18237 | else |
18238 | ac_cpp_err= | |
18239 | fi | |
18240 | else | |
18241 | ac_cpp_err=yes | |
18242 | fi | |
18243 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18244 | ac_header_preproc=yes |
503d2be0 AS |
18245 | else |
18246 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18247 | sed 's/^/| /' conftest.$ac_ext >&5 |
18248 | ||
c0d27fcc | 18249 | ac_header_preproc=no |
a21616bd | 18250 | fi |
503d2be0 | 18251 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18252 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18253 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18254 | ||
18255 | # So? What about this header? | |
35996d22 AS |
18256 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18257 | yes:no: ) | |
c0d27fcc MR |
18258 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18259 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18260 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18261 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18262 | ac_header_preproc=yes | |
19650fd6 | 18263 | ;; |
35996d22 | 18264 | no:yes:* ) |
c0d27fcc MR |
18265 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18266 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18267 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18268 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18269 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18270 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18271 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18272 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18273 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18274 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18275 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18276 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18277 | ( |
18278 | cat <<\_ASBOX | |
35996d22 AS |
18279 | ## ------------------------------------------ ## |
18280 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18281 | ## ------------------------------------------ ## | |
19650fd6 AS |
18282 | _ASBOX |
18283 | ) | | |
18284 | sed "s/^/$as_me: WARNING: /" >&2 | |
18285 | ;; | |
c0d27fcc MR |
18286 | esac |
18287 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18288 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18289 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18291 | else | |
35996d22 | 18292 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18293 | fi |
c0d27fcc | 18294 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18295 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18296 | |
18297 | fi | |
503d2be0 | 18298 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18299 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18300 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18301 | _ACEOF |
503d2be0 | 18302 | |
a21616bd | 18303 | else |
503d2be0 AS |
18304 | |
18305 | for ac_header in kerberosIV/des.h | |
a21616bd | 18306 | do |
503d2be0 | 18307 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18309 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18311 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18313 | fi |
18314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18315 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18316 | else |
c0d27fcc MR |
18317 | # Is the header compilable? |
18318 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18319 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18320 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18321 | /* confdefs.h. */ |
18322 | _ACEOF | |
18323 | cat confdefs.h >>conftest.$ac_ext | |
18324 | cat >>conftest.$ac_ext <<_ACEOF | |
18325 | /* end confdefs.h. */ | |
c0d27fcc MR |
18326 | $ac_includes_default |
18327 | #include <$ac_header> | |
18328 | _ACEOF | |
18329 | rm -f conftest.$ac_objext | |
18330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18331 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18332 | ac_status=$? |
35996d22 AS |
18333 | grep -v '^ *+' conftest.er1 >conftest.err |
18334 | rm -f conftest.er1 | |
18335 | cat conftest.err >&5 | |
c0d27fcc MR |
18336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18337 | (exit $ac_status); } && | |
4494a266 JD |
18338 | { ac_try='test -z "$ac_c_werror_flag" |
18339 | || test ! -s conftest.err' | |
35996d22 AS |
18340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18341 | (eval $ac_try) 2>&5 | |
18342 | ac_status=$? | |
18343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18344 | (exit $ac_status); }; } && | |
18345 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18347 | (eval $ac_try) 2>&5 | |
18348 | ac_status=$? | |
18349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18350 | (exit $ac_status); }; }; then | |
18351 | ac_header_compiler=yes | |
18352 | else | |
18353 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18354 | sed 's/^/| /' conftest.$ac_ext >&5 |
18355 | ||
c0d27fcc MR |
18356 | ac_header_compiler=no |
18357 | fi | |
35996d22 | 18358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18359 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18360 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18361 | ||
18362 | # Is the header present? | |
18363 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18364 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18365 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18366 | /* confdefs.h. */ |
18367 | _ACEOF | |
18368 | cat confdefs.h >>conftest.$ac_ext | |
18369 | cat >>conftest.$ac_ext <<_ACEOF | |
18370 | /* end confdefs.h. */ | |
503d2be0 AS |
18371 | #include <$ac_header> |
18372 | _ACEOF | |
c0d27fcc | 18373 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18374 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18375 | ac_status=$? | |
6bae0ccf | 18376 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18377 | rm -f conftest.er1 |
18378 | cat conftest.err >&5 | |
c0d27fcc | 18379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18380 | (exit $ac_status); } >/dev/null; then |
18381 | if test -s conftest.err; then | |
18382 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18383 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18384 | else |
18385 | ac_cpp_err= | |
18386 | fi | |
18387 | else | |
18388 | ac_cpp_err=yes | |
18389 | fi | |
18390 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18391 | ac_header_preproc=yes |
503d2be0 AS |
18392 | else |
18393 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18394 | sed 's/^/| /' conftest.$ac_ext >&5 |
18395 | ||
c0d27fcc | 18396 | ac_header_preproc=no |
a21616bd | 18397 | fi |
503d2be0 | 18398 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18399 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18400 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18401 | ||
18402 | # So? What about this header? | |
35996d22 AS |
18403 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18404 | yes:no: ) | |
c0d27fcc MR |
18405 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18406 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18407 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18408 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18409 | ac_header_preproc=yes | |
19650fd6 | 18410 | ;; |
35996d22 | 18411 | no:yes:* ) |
c0d27fcc MR |
18412 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18413 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18414 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18415 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18416 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18417 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18418 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18419 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18420 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18421 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18422 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18423 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18424 | ( |
18425 | cat <<\_ASBOX | |
35996d22 AS |
18426 | ## ------------------------------------------ ## |
18427 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18428 | ## ------------------------------------------ ## | |
19650fd6 AS |
18429 | _ASBOX |
18430 | ) | | |
18431 | sed "s/^/$as_me: WARNING: /" >&2 | |
18432 | ;; | |
c0d27fcc MR |
18433 | esac |
18434 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18435 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18436 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18438 | else | |
35996d22 | 18439 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18440 | fi |
c0d27fcc | 18441 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18442 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18443 | |
18444 | fi | |
503d2be0 | 18445 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18446 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18447 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18448 | _ACEOF |
503d2be0 | 18449 | |
a21616bd | 18450 | else |
503d2be0 AS |
18451 | |
18452 | for ac_header in kerberos/des.h | |
a21616bd | 18453 | do |
503d2be0 | 18454 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18455 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18456 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18457 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18458 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18460 | fi |
18461 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18462 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18463 | else |
c0d27fcc MR |
18464 | # Is the header compilable? |
18465 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18466 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18467 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18468 | /* confdefs.h. */ |
18469 | _ACEOF | |
18470 | cat confdefs.h >>conftest.$ac_ext | |
18471 | cat >>conftest.$ac_ext <<_ACEOF | |
18472 | /* end confdefs.h. */ | |
c0d27fcc MR |
18473 | $ac_includes_default |
18474 | #include <$ac_header> | |
18475 | _ACEOF | |
18476 | rm -f conftest.$ac_objext | |
18477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18478 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18479 | ac_status=$? |
35996d22 AS |
18480 | grep -v '^ *+' conftest.er1 >conftest.err |
18481 | rm -f conftest.er1 | |
18482 | cat conftest.err >&5 | |
c0d27fcc MR |
18483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18484 | (exit $ac_status); } && | |
4494a266 JD |
18485 | { ac_try='test -z "$ac_c_werror_flag" |
18486 | || test ! -s conftest.err' | |
35996d22 AS |
18487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18488 | (eval $ac_try) 2>&5 | |
18489 | ac_status=$? | |
18490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18491 | (exit $ac_status); }; } && | |
18492 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18494 | (eval $ac_try) 2>&5 | |
18495 | ac_status=$? | |
18496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18497 | (exit $ac_status); }; }; then | |
18498 | ac_header_compiler=yes | |
18499 | else | |
18500 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18501 | sed 's/^/| /' conftest.$ac_ext >&5 |
18502 | ||
c0d27fcc MR |
18503 | ac_header_compiler=no |
18504 | fi | |
35996d22 | 18505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18506 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18507 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18508 | ||
18509 | # Is the header present? | |
18510 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18511 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18512 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18513 | /* confdefs.h. */ |
18514 | _ACEOF | |
18515 | cat confdefs.h >>conftest.$ac_ext | |
18516 | cat >>conftest.$ac_ext <<_ACEOF | |
18517 | /* end confdefs.h. */ | |
503d2be0 AS |
18518 | #include <$ac_header> |
18519 | _ACEOF | |
c0d27fcc | 18520 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18521 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18522 | ac_status=$? | |
6bae0ccf | 18523 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18524 | rm -f conftest.er1 |
18525 | cat conftest.err >&5 | |
c0d27fcc | 18526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18527 | (exit $ac_status); } >/dev/null; then |
18528 | if test -s conftest.err; then | |
18529 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18530 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18531 | else |
18532 | ac_cpp_err= | |
18533 | fi | |
18534 | else | |
18535 | ac_cpp_err=yes | |
18536 | fi | |
18537 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18538 | ac_header_preproc=yes |
503d2be0 AS |
18539 | else |
18540 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18541 | sed 's/^/| /' conftest.$ac_ext >&5 |
18542 | ||
c0d27fcc | 18543 | ac_header_preproc=no |
a21616bd | 18544 | fi |
503d2be0 | 18545 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18546 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18547 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18548 | ||
18549 | # So? What about this header? | |
35996d22 AS |
18550 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18551 | yes:no: ) | |
c0d27fcc MR |
18552 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18553 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18554 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18555 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18556 | ac_header_preproc=yes | |
19650fd6 | 18557 | ;; |
35996d22 | 18558 | no:yes:* ) |
c0d27fcc MR |
18559 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18560 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18561 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18562 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18563 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18564 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18565 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18566 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18567 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18568 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18569 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18570 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18571 | ( |
18572 | cat <<\_ASBOX | |
35996d22 AS |
18573 | ## ------------------------------------------ ## |
18574 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18575 | ## ------------------------------------------ ## | |
19650fd6 AS |
18576 | _ASBOX |
18577 | ) | | |
18578 | sed "s/^/$as_me: WARNING: /" >&2 | |
18579 | ;; | |
c0d27fcc MR |
18580 | esac |
18581 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18582 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18583 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18585 | else | |
35996d22 | 18586 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18587 | fi |
c0d27fcc | 18588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18589 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18590 | |
18591 | fi | |
503d2be0 | 18592 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18593 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18594 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18595 | _ACEOF |
a21616bd KR |
18596 | |
18597 | fi | |
c0d27fcc | 18598 | |
a21616bd KR |
18599 | done |
18600 | ||
98418dba | 18601 | fi |
c0d27fcc | 18602 | |
925c2f3f EZ |
18603 | done |
18604 | ||
98418dba | 18605 | fi |
c0d27fcc | 18606 | |
925c2f3f | 18607 | done |
98418dba | 18608 | |
c0d27fcc | 18609 | |
925c2f3f EZ |
18610 | for ac_header in krb.h |
18611 | do | |
18612 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
18613 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18614 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
925c2f3f EZ |
18615 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18618 | fi |
18619 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18620 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18621 | else | |
18622 | # Is the header compilable? | |
18623 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18624 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18625 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18626 | /* confdefs.h. */ |
18627 | _ACEOF | |
18628 | cat confdefs.h >>conftest.$ac_ext | |
18629 | cat >>conftest.$ac_ext <<_ACEOF | |
18630 | /* end confdefs.h. */ | |
c0d27fcc MR |
18631 | $ac_includes_default |
18632 | #include <$ac_header> | |
18633 | _ACEOF | |
18634 | rm -f conftest.$ac_objext | |
18635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18636 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18637 | ac_status=$? |
35996d22 AS |
18638 | grep -v '^ *+' conftest.er1 >conftest.err |
18639 | rm -f conftest.er1 | |
18640 | cat conftest.err >&5 | |
c0d27fcc MR |
18641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18642 | (exit $ac_status); } && | |
4494a266 JD |
18643 | { ac_try='test -z "$ac_c_werror_flag" |
18644 | || test ! -s conftest.err' | |
35996d22 AS |
18645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18646 | (eval $ac_try) 2>&5 | |
18647 | ac_status=$? | |
18648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18649 | (exit $ac_status); }; } && | |
18650 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18652 | (eval $ac_try) 2>&5 | |
18653 | ac_status=$? | |
18654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18655 | (exit $ac_status); }; }; then | |
18656 | ac_header_compiler=yes | |
925c2f3f | 18657 | else |
c0d27fcc | 18658 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
18659 | sed 's/^/| /' conftest.$ac_ext >&5 |
18660 | ||
c0d27fcc MR |
18661 | ac_header_compiler=no |
18662 | fi | |
35996d22 | 18663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18664 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18665 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18666 | ||
18667 | # Is the header present? | |
18668 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18669 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18670 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18671 | /* confdefs.h. */ |
18672 | _ACEOF | |
18673 | cat confdefs.h >>conftest.$ac_ext | |
18674 | cat >>conftest.$ac_ext <<_ACEOF | |
18675 | /* end confdefs.h. */ | |
503d2be0 AS |
18676 | #include <$ac_header> |
18677 | _ACEOF | |
c0d27fcc | 18678 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18679 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18680 | ac_status=$? | |
6bae0ccf | 18681 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18682 | rm -f conftest.er1 |
18683 | cat conftest.err >&5 | |
c0d27fcc | 18684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18685 | (exit $ac_status); } >/dev/null; then |
18686 | if test -s conftest.err; then | |
18687 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18688 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18689 | else |
18690 | ac_cpp_err= | |
18691 | fi | |
18692 | else | |
18693 | ac_cpp_err=yes | |
18694 | fi | |
18695 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18696 | ac_header_preproc=yes |
503d2be0 AS |
18697 | else |
18698 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18699 | sed 's/^/| /' conftest.$ac_ext >&5 |
18700 | ||
c0d27fcc | 18701 | ac_header_preproc=no |
a21616bd | 18702 | fi |
503d2be0 | 18703 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18704 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18705 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18706 | ||
18707 | # So? What about this header? | |
35996d22 AS |
18708 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18709 | yes:no: ) | |
c0d27fcc MR |
18710 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18711 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18712 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18713 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18714 | ac_header_preproc=yes | |
19650fd6 | 18715 | ;; |
35996d22 | 18716 | no:yes:* ) |
c0d27fcc MR |
18717 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18718 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18719 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18720 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18721 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18722 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18723 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18724 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18725 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18726 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18727 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18728 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18729 | ( |
18730 | cat <<\_ASBOX | |
35996d22 AS |
18731 | ## ------------------------------------------ ## |
18732 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18733 | ## ------------------------------------------ ## | |
19650fd6 AS |
18734 | _ASBOX |
18735 | ) | | |
18736 | sed "s/^/$as_me: WARNING: /" >&2 | |
18737 | ;; | |
c0d27fcc MR |
18738 | esac |
18739 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18740 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18741 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18743 | else | |
35996d22 | 18744 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18745 | fi |
c0d27fcc | 18746 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18747 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18748 | |
18749 | fi | |
503d2be0 | 18750 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18751 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18752 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18753 | _ACEOF |
503d2be0 | 18754 | |
a21616bd | 18755 | else |
503d2be0 AS |
18756 | |
18757 | for ac_header in kerberosIV/krb.h | |
a21616bd | 18758 | do |
503d2be0 | 18759 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18760 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18761 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18762 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18763 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18765 | fi |
18766 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18767 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18768 | else |
c0d27fcc MR |
18769 | # Is the header compilable? |
18770 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18771 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18772 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18773 | /* confdefs.h. */ |
18774 | _ACEOF | |
18775 | cat confdefs.h >>conftest.$ac_ext | |
18776 | cat >>conftest.$ac_ext <<_ACEOF | |
18777 | /* end confdefs.h. */ | |
c0d27fcc MR |
18778 | $ac_includes_default |
18779 | #include <$ac_header> | |
18780 | _ACEOF | |
18781 | rm -f conftest.$ac_objext | |
18782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18783 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18784 | ac_status=$? |
35996d22 AS |
18785 | grep -v '^ *+' conftest.er1 >conftest.err |
18786 | rm -f conftest.er1 | |
18787 | cat conftest.err >&5 | |
c0d27fcc MR |
18788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18789 | (exit $ac_status); } && | |
4494a266 JD |
18790 | { ac_try='test -z "$ac_c_werror_flag" |
18791 | || test ! -s conftest.err' | |
35996d22 AS |
18792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18793 | (eval $ac_try) 2>&5 | |
18794 | ac_status=$? | |
18795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18796 | (exit $ac_status); }; } && | |
18797 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18799 | (eval $ac_try) 2>&5 | |
18800 | ac_status=$? | |
18801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18802 | (exit $ac_status); }; }; then | |
18803 | ac_header_compiler=yes | |
18804 | else | |
18805 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18806 | sed 's/^/| /' conftest.$ac_ext >&5 |
18807 | ||
c0d27fcc MR |
18808 | ac_header_compiler=no |
18809 | fi | |
35996d22 | 18810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18811 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18812 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18813 | ||
18814 | # Is the header present? | |
18815 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18816 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18817 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18818 | /* confdefs.h. */ |
18819 | _ACEOF | |
18820 | cat confdefs.h >>conftest.$ac_ext | |
18821 | cat >>conftest.$ac_ext <<_ACEOF | |
18822 | /* end confdefs.h. */ | |
503d2be0 AS |
18823 | #include <$ac_header> |
18824 | _ACEOF | |
c0d27fcc | 18825 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18826 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18827 | ac_status=$? | |
6bae0ccf | 18828 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18829 | rm -f conftest.er1 |
18830 | cat conftest.err >&5 | |
c0d27fcc | 18831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18832 | (exit $ac_status); } >/dev/null; then |
18833 | if test -s conftest.err; then | |
18834 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18835 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18836 | else |
18837 | ac_cpp_err= | |
18838 | fi | |
18839 | else | |
18840 | ac_cpp_err=yes | |
18841 | fi | |
18842 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18843 | ac_header_preproc=yes |
503d2be0 AS |
18844 | else |
18845 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18846 | sed 's/^/| /' conftest.$ac_ext >&5 |
18847 | ||
c0d27fcc | 18848 | ac_header_preproc=no |
a21616bd | 18849 | fi |
503d2be0 | 18850 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18851 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18852 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18853 | ||
18854 | # So? What about this header? | |
35996d22 AS |
18855 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18856 | yes:no: ) | |
c0d27fcc MR |
18857 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18858 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
18859 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18860 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18861 | ac_header_preproc=yes | |
19650fd6 | 18862 | ;; |
35996d22 | 18863 | no:yes:* ) |
c0d27fcc MR |
18864 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18865 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
18866 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18867 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18868 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18869 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18870 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18871 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18872 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18873 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
18874 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18875 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
18876 | ( |
18877 | cat <<\_ASBOX | |
35996d22 AS |
18878 | ## ------------------------------------------ ## |
18879 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
18880 | ## ------------------------------------------ ## | |
19650fd6 AS |
18881 | _ASBOX |
18882 | ) | | |
18883 | sed "s/^/$as_me: WARNING: /" >&2 | |
18884 | ;; | |
c0d27fcc MR |
18885 | esac |
18886 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18887 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18888 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18890 | else | |
35996d22 | 18891 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 18892 | fi |
c0d27fcc | 18893 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 18894 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
18895 | |
18896 | fi | |
503d2be0 | 18897 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18898 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18899 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18900 | _ACEOF |
503d2be0 | 18901 | |
a21616bd | 18902 | else |
503d2be0 AS |
18903 | |
18904 | for ac_header in kerberos/krb.h | |
a21616bd | 18905 | do |
503d2be0 | 18906 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
18907 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18908 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
18909 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
18910 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
18912 | fi |
18913 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18914 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 18915 | else |
c0d27fcc MR |
18916 | # Is the header compilable? |
18917 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18918 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18919 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18920 | /* confdefs.h. */ |
18921 | _ACEOF | |
18922 | cat confdefs.h >>conftest.$ac_ext | |
18923 | cat >>conftest.$ac_ext <<_ACEOF | |
18924 | /* end confdefs.h. */ | |
c0d27fcc MR |
18925 | $ac_includes_default |
18926 | #include <$ac_header> | |
18927 | _ACEOF | |
18928 | rm -f conftest.$ac_objext | |
18929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 18930 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 18931 | ac_status=$? |
35996d22 AS |
18932 | grep -v '^ *+' conftest.er1 >conftest.err |
18933 | rm -f conftest.er1 | |
18934 | cat conftest.err >&5 | |
c0d27fcc MR |
18935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18936 | (exit $ac_status); } && | |
4494a266 JD |
18937 | { ac_try='test -z "$ac_c_werror_flag" |
18938 | || test ! -s conftest.err' | |
35996d22 AS |
18939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18940 | (eval $ac_try) 2>&5 | |
18941 | ac_status=$? | |
18942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18943 | (exit $ac_status); }; } && | |
18944 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
18945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18946 | (eval $ac_try) 2>&5 | |
18947 | ac_status=$? | |
18948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18949 | (exit $ac_status); }; }; then | |
18950 | ac_header_compiler=yes | |
18951 | else | |
18952 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18953 | sed 's/^/| /' conftest.$ac_ext >&5 |
18954 | ||
c0d27fcc MR |
18955 | ac_header_compiler=no |
18956 | fi | |
35996d22 | 18957 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
18958 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18959 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18960 | ||
18961 | # Is the header present? | |
18962 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18963 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18964 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18965 | /* confdefs.h. */ |
18966 | _ACEOF | |
18967 | cat confdefs.h >>conftest.$ac_ext | |
18968 | cat >>conftest.$ac_ext <<_ACEOF | |
18969 | /* end confdefs.h. */ | |
503d2be0 AS |
18970 | #include <$ac_header> |
18971 | _ACEOF | |
c0d27fcc | 18972 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
18973 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18974 | ac_status=$? | |
6bae0ccf | 18975 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18976 | rm -f conftest.er1 |
18977 | cat conftest.err >&5 | |
c0d27fcc | 18978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
18979 | (exit $ac_status); } >/dev/null; then |
18980 | if test -s conftest.err; then | |
18981 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 18982 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
18983 | else |
18984 | ac_cpp_err= | |
18985 | fi | |
18986 | else | |
18987 | ac_cpp_err=yes | |
18988 | fi | |
18989 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 18990 | ac_header_preproc=yes |
503d2be0 AS |
18991 | else |
18992 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18993 | sed 's/^/| /' conftest.$ac_ext >&5 |
18994 | ||
c0d27fcc | 18995 | ac_header_preproc=no |
a21616bd | 18996 | fi |
503d2be0 | 18997 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
18998 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18999 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35996d22 AS |
19000 | |
19001 | # So? What about this header? | |
19002 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19003 | yes:no: ) | |
19004 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19005 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19006 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
19007 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19008 | ac_header_preproc=yes | |
19650fd6 | 19009 | ;; |
35996d22 | 19010 | no:yes:* ) |
c0d27fcc MR |
19011 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19012 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
19013 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19014 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19015 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19016 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19017 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19018 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 19019 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 19020 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
19021 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19022 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
19023 | ( |
19024 | cat <<\_ASBOX | |
35996d22 AS |
19025 | ## ------------------------------------------ ## |
19026 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
19027 | ## ------------------------------------------ ## | |
19650fd6 AS |
19028 | _ASBOX |
19029 | ) | | |
19030 | sed "s/^/$as_me: WARNING: /" >&2 | |
19031 | ;; | |
c0d27fcc MR |
19032 | esac |
19033 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19034 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19035 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19037 | else | |
35996d22 | 19038 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 19039 | fi |
c0d27fcc | 19040 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 19041 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
19042 | |
19043 | fi | |
503d2be0 | 19044 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 19045 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19046 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 19047 | _ACEOF |
503d2be0 | 19048 | |
a21616bd | 19049 | fi |
c0d27fcc | 19050 | |
a21616bd KR |
19051 | done |
19052 | ||
19053 | fi | |
c0d27fcc | 19054 | |
a21616bd KR |
19055 | done |
19056 | ||
19057 | fi | |
c0d27fcc | 19058 | |
a21616bd KR |
19059 | done |
19060 | ||
19061 | fi | |
503d2be0 AS |
19062 | |
19063 | for ac_header in com_err.h | |
a21616bd | 19064 | do |
503d2be0 | 19065 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
c0d27fcc MR |
19066 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
19067 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
19068 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
19069 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
19071 | fi |
19072 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19073 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 19074 | else |
c0d27fcc MR |
19075 | # Is the header compilable? |
19076 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19077 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19078 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19079 | /* confdefs.h. */ |
19080 | _ACEOF | |
19081 | cat confdefs.h >>conftest.$ac_ext | |
19082 | cat >>conftest.$ac_ext <<_ACEOF | |
19083 | /* end confdefs.h. */ | |
c0d27fcc MR |
19084 | $ac_includes_default |
19085 | #include <$ac_header> | |
19086 | _ACEOF | |
19087 | rm -f conftest.$ac_objext | |
19088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 19089 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 19090 | ac_status=$? |
35996d22 AS |
19091 | grep -v '^ *+' conftest.er1 >conftest.err |
19092 | rm -f conftest.er1 | |
19093 | cat conftest.err >&5 | |
c0d27fcc MR |
19094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19095 | (exit $ac_status); } && | |
4494a266 JD |
19096 | { ac_try='test -z "$ac_c_werror_flag" |
19097 | || test ! -s conftest.err' | |
35996d22 AS |
19098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19099 | (eval $ac_try) 2>&5 | |
19100 | ac_status=$? | |
19101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19102 | (exit $ac_status); }; } && | |
19103 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
19104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19105 | (eval $ac_try) 2>&5 | |
19106 | ac_status=$? | |
19107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19108 | (exit $ac_status); }; }; then | |
19109 | ac_header_compiler=yes | |
19110 | else | |
19111 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19112 | sed 's/^/| /' conftest.$ac_ext >&5 |
19113 | ||
c0d27fcc MR |
19114 | ac_header_compiler=no |
19115 | fi | |
35996d22 | 19116 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
19117 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19118 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19119 | ||
19120 | # Is the header present? | |
19121 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19122 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19123 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19124 | /* confdefs.h. */ |
19125 | _ACEOF | |
19126 | cat confdefs.h >>conftest.$ac_ext | |
19127 | cat >>conftest.$ac_ext <<_ACEOF | |
19128 | /* end confdefs.h. */ | |
503d2be0 AS |
19129 | #include <$ac_header> |
19130 | _ACEOF | |
c0d27fcc | 19131 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
19132 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
19133 | ac_status=$? | |
6bae0ccf | 19134 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
19135 | rm -f conftest.er1 |
19136 | cat conftest.err >&5 | |
c0d27fcc | 19137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19138 | (exit $ac_status); } >/dev/null; then |
19139 | if test -s conftest.err; then | |
19140 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 19141 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
19142 | else |
19143 | ac_cpp_err= | |
19144 | fi | |
19145 | else | |
19146 | ac_cpp_err=yes | |
19147 | fi | |
19148 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 19149 | ac_header_preproc=yes |
503d2be0 AS |
19150 | else |
19151 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19152 | sed 's/^/| /' conftest.$ac_ext >&5 |
19153 | ||
c0d27fcc | 19154 | ac_header_preproc=no |
a21616bd | 19155 | fi |
503d2be0 | 19156 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
19157 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19158 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19159 | ||
19160 | # So? What about this header? | |
35996d22 AS |
19161 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19162 | yes:no: ) | |
c0d27fcc MR |
19163 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19164 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
19165 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19166 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19167 | ac_header_preproc=yes | |
19650fd6 | 19168 | ;; |
35996d22 | 19169 | no:yes:* ) |
c0d27fcc MR |
19170 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19171 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
19172 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19173 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19174 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19175 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19176 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19177 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 19178 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 19179 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
19180 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19181 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
19182 | ( |
19183 | cat <<\_ASBOX | |
35996d22 AS |
19184 | ## ------------------------------------------ ## |
19185 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
19186 | ## ------------------------------------------ ## | |
19650fd6 AS |
19187 | _ASBOX |
19188 | ) | | |
19189 | sed "s/^/$as_me: WARNING: /" >&2 | |
19190 | ;; | |
c0d27fcc MR |
19191 | esac |
19192 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19193 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19194 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19196 | else | |
35996d22 | 19197 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 19198 | fi |
c0d27fcc | 19199 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 19200 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
19201 | |
19202 | fi | |
503d2be0 | 19203 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 19204 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19205 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 19206 | _ACEOF |
503d2be0 | 19207 | |
a21616bd | 19208 | fi |
c0d27fcc | 19209 | |
a21616bd KR |
19210 | done |
19211 | ||
19212 | fi | |
19213 | ||
ba4481b5 DL |
19214 | # Solaris requires -lintl if you want strerror (which calls dgettext) |
19215 | # to return localized messages. | |
503d2be0 | 19216 | |
c0d27fcc | 19217 | echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 |
503d2be0 AS |
19218 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
19219 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then | |
19220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 19221 | else |
503d2be0 | 19222 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 19223 | LIBS="-lintl $LIBS" |
503d2be0 | 19224 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19225 | /* confdefs.h. */ |
19226 | _ACEOF | |
19227 | cat confdefs.h >>conftest.$ac_ext | |
19228 | cat >>conftest.$ac_ext <<_ACEOF | |
19229 | /* end confdefs.h. */ | |
503d2be0 | 19230 | |
ba4481b5 | 19231 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
19232 | #ifdef __cplusplus |
19233 | extern "C" | |
19234 | #endif | |
ba4481b5 | 19235 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
19236 | builtin and then its argument prototype would still apply. */ |
19237 | char dgettext (); | |
19238 | int | |
19239 | main () | |
19240 | { | |
19241 | dgettext (); | |
19242 | ; | |
19243 | return 0; | |
19244 | } | |
19245 | _ACEOF | |
19246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 19247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 19248 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 19249 | ac_status=$? |
35996d22 AS |
19250 | grep -v '^ *+' conftest.er1 >conftest.err |
19251 | rm -f conftest.er1 | |
19252 | cat conftest.err >&5 | |
c0d27fcc | 19253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19254 | (exit $ac_status); } && |
4494a266 JD |
19255 | { ac_try='test -z "$ac_c_werror_flag" |
19256 | || test ! -s conftest.err' | |
35996d22 AS |
19257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19258 | (eval $ac_try) 2>&5 | |
19259 | ac_status=$? | |
19260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19261 | (exit $ac_status); }; } && | |
19262 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 19263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19264 | (eval $ac_try) 2>&5 |
19265 | ac_status=$? | |
c0d27fcc | 19266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19267 | (exit $ac_status); }; }; then |
19268 | ac_cv_lib_intl_dgettext=yes | |
19269 | else | |
19270 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19271 | sed 's/^/| /' conftest.$ac_ext >&5 |
19272 | ||
503d2be0 AS |
19273 | ac_cv_lib_intl_dgettext=no |
19274 | fi | |
35996d22 AS |
19275 | rm -f conftest.err conftest.$ac_objext \ |
19276 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
19277 | LIBS=$ac_check_lib_save_LIBS |
19278 | fi | |
c0d27fcc | 19279 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 |
503d2be0 AS |
19280 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
19281 | if test $ac_cv_lib_intl_dgettext = yes; then | |
c0d27fcc | 19282 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19283 | #define HAVE_LIBINTL 1 |
c0d27fcc | 19284 | _ACEOF |
ba4481b5 DL |
19285 | |
19286 | LIBS="-lintl $LIBS" | |
19287 | ||
ba4481b5 DL |
19288 | fi |
19289 | ||
c0d27fcc MR |
19290 | |
19291 | echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 | |
503d2be0 AS |
19292 | echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
19293 | if test "${emacs_cv_localtime_cache+set}" = set; then | |
19294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
19295 | else |
19296 | if test x$ac_cv_func_tzset = xyes; then | |
19297 | if test "$cross_compiling" = yes; then | |
19298 | # If we have tzset, assume the worst when cross-compiling. | |
19299 | emacs_cv_localtime_cache=yes | |
19300 | else | |
503d2be0 | 19301 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19302 | /* confdefs.h. */ |
19303 | _ACEOF | |
19304 | cat confdefs.h >>conftest.$ac_ext | |
19305 | cat >>conftest.$ac_ext <<_ACEOF | |
19306 | /* end confdefs.h. */ | |
ba4481b5 | 19307 | #include <time.h> |
ba4481b5 DL |
19308 | extern char **environ; |
19309 | unset_TZ () | |
19310 | { | |
19311 | char **from, **to; | |
19312 | for (to = from = environ; (*to = *from); from++) | |
19313 | if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
19314 | to++; | |
19315 | } | |
19316 | char TZ_GMT0[] = "TZ=GMT0"; | |
19317 | char TZ_PST8[] = "TZ=PST8"; | |
19318 | main() | |
19319 | { | |
19320 | time_t now = time ((time_t *) 0); | |
19321 | int hour_GMT0, hour_unset; | |
19322 | if (putenv (TZ_GMT0) != 0) | |
19323 | exit (1); | |
19324 | hour_GMT0 = localtime (&now)->tm_hour; | |
19325 | unset_TZ (); | |
19326 | hour_unset = localtime (&now)->tm_hour; | |
19327 | if (putenv (TZ_PST8) != 0) | |
19328 | exit (1); | |
19329 | if (localtime (&now)->tm_hour == hour_GMT0) | |
19330 | exit (1); | |
19331 | unset_TZ (); | |
19332 | if (localtime (&now)->tm_hour != hour_unset) | |
19333 | exit (1); | |
19334 | exit (0); | |
19335 | } | |
503d2be0 AS |
19336 | _ACEOF |
19337 | rm -f conftest$ac_exeext | |
c0d27fcc | 19338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
19339 | (eval $ac_link) 2>&5 |
19340 | ac_status=$? | |
c0d27fcc | 19341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19342 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 19343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19344 | (eval $ac_try) 2>&5 |
19345 | ac_status=$? | |
c0d27fcc | 19346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19347 | (exit $ac_status); }; }; then |
ba4481b5 DL |
19348 | emacs_cv_localtime_cache=no |
19349 | else | |
503d2be0 AS |
19350 | echo "$as_me: program exited with status $ac_status" >&5 |
19351 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19352 | sed 's/^/| /' conftest.$ac_ext >&5 |
19353 | ||
c0d27fcc | 19354 | ( exit $ac_status ) |
503d2be0 | 19355 | emacs_cv_localtime_cache=yes |
ba4481b5 | 19356 | fi |
35996d22 | 19357 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 19358 | fi |
ba4481b5 DL |
19359 | else |
19360 | # If we lack tzset, report that localtime does not cache TZ, | |
19361 | # since we can't invalidate the cache if we don't have tzset. | |
19362 | emacs_cv_localtime_cache=no | |
19363 | fi | |
19364 | fi | |
c0d27fcc | 19365 | echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 |
503d2be0 | 19366 | echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
ba4481b5 | 19367 | if test $emacs_cv_localtime_cache = yes; then |
b936fae4 | 19368 | |
c0d27fcc | 19369 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 19370 | #define LOCALTIME_CACHE 1 |
c0d27fcc | 19371 | _ACEOF |
ba4481b5 DL |
19372 | |
19373 | fi | |
19374 | ||
19375 | if test "x$HAVE_TIMEVAL" = xyes; then | |
503d2be0 AS |
19376 | |
19377 | for ac_func in gettimeofday | |
48d4b120 | 19378 | do |
503d2be0 | 19379 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
c0d27fcc | 19380 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
19381 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
19382 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
19383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d4b120 | 19384 | else |
503d2be0 | 19385 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19386 | /* confdefs.h. */ |
19387 | _ACEOF | |
19388 | cat confdefs.h >>conftest.$ac_ext | |
19389 | cat >>conftest.$ac_ext <<_ACEOF | |
19390 | /* end confdefs.h. */ | |
35996d22 AS |
19391 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19392 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19393 | #define $ac_func innocuous_$ac_func | |
19394 | ||
48d4b120 | 19395 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19396 | which can conflict with char $ac_func (); below. |
19397 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19398 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 19399 | |
19650fd6 AS |
19400 | #ifdef __STDC__ |
19401 | # include <limits.h> | |
19402 | #else | |
19403 | # include <assert.h> | |
19404 | #endif | |
35996d22 AS |
19405 | |
19406 | #undef $ac_func | |
19407 | ||
48d4b120 | 19408 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
19409 | #ifdef __cplusplus |
19410 | extern "C" | |
19650fd6 | 19411 | { |
503d2be0 | 19412 | #endif |
48d4b120 | 19413 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
19414 | builtin and then its argument prototype would still apply. */ |
19415 | char $ac_func (); | |
48d4b120 DL |
19416 | /* The GNU C library defines this for functions which it implements |
19417 | to always fail with ENOSYS. Some functions are actually named | |
19418 | something starting with __ and the normal name is an alias. */ | |
19419 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19420 | choke me | |
19421 | #else | |
19650fd6 AS |
19422 | char (*f) () = $ac_func; |
19423 | #endif | |
19424 | #ifdef __cplusplus | |
19425 | } | |
cd958eb3 MB |
19426 | #endif |
19427 | ||
19650fd6 AS |
19428 | int |
19429 | main () | |
19430 | { | |
19431 | return f != $ac_func; | |
503d2be0 AS |
19432 | ; |
19433 | return 0; | |
19434 | } | |
19435 | _ACEOF | |
19436 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 19437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 19438 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 19439 | ac_status=$? |
35996d22 AS |
19440 | grep -v '^ *+' conftest.er1 >conftest.err |
19441 | rm -f conftest.er1 | |
19442 | cat conftest.err >&5 | |
c0d27fcc | 19443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19444 | (exit $ac_status); } && |
4494a266 JD |
19445 | { ac_try='test -z "$ac_c_werror_flag" |
19446 | || test ! -s conftest.err' | |
35996d22 AS |
19447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19448 | (eval $ac_try) 2>&5 | |
19449 | ac_status=$? | |
19450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19451 | (exit $ac_status); }; } && | |
19452 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 19453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19454 | (eval $ac_try) 2>&5 |
19455 | ac_status=$? | |
c0d27fcc | 19456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19457 | (exit $ac_status); }; }; then |
19458 | eval "$as_ac_var=yes" | |
19459 | else | |
19460 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19461 | sed 's/^/| /' conftest.$ac_ext >&5 |
19462 | ||
503d2be0 AS |
19463 | eval "$as_ac_var=no" |
19464 | fi | |
35996d22 AS |
19465 | rm -f conftest.err conftest.$ac_objext \ |
19466 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 19467 | fi |
c0d27fcc | 19468 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
19469 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
19470 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 19471 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19472 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 19473 | _ACEOF |
48d4b120 | 19474 | |
48d4b120 DL |
19475 | fi |
19476 | done | |
19477 | ||
b936fae4 | 19478 | if test $ac_cv_func_gettimeofday = yes; then |
c0d27fcc | 19479 | echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 |
503d2be0 AS |
19480 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
19481 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
19482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 19483 | else |
503d2be0 | 19484 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19485 | /* confdefs.h. */ |
19486 | _ACEOF | |
19487 | cat confdefs.h >>conftest.$ac_ext | |
19488 | cat >>conftest.$ac_ext <<_ACEOF | |
19489 | /* end confdefs.h. */ | |
ba4481b5 | 19490 | |
a3f08d9e DL |
19491 | #ifdef TIME_WITH_SYS_TIME |
19492 | #include <sys/time.h> | |
19493 | #include <time.h> | |
19494 | #else | |
19495 | #ifdef HAVE_SYS_TIME_H | |
19496 | #include <sys/time.h> | |
19497 | #else | |
19498 | #include <time.h> | |
19499 | #endif | |
19500 | #endif | |
503d2be0 AS |
19501 | int |
19502 | main () | |
19503 | { | |
a3f08d9e | 19504 | struct timeval time; |
b936fae4 | 19505 | gettimeofday (&time, 0); |
503d2be0 AS |
19506 | ; |
19507 | return 0; | |
19508 | } | |
19509 | _ACEOF | |
19510 | rm -f conftest.$ac_objext | |
c0d27fcc | 19511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 19512 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 19513 | ac_status=$? |
35996d22 AS |
19514 | grep -v '^ *+' conftest.er1 >conftest.err |
19515 | rm -f conftest.er1 | |
19516 | cat conftest.err >&5 | |
c0d27fcc | 19517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19518 | (exit $ac_status); } && |
4494a266 JD |
19519 | { ac_try='test -z "$ac_c_werror_flag" |
19520 | || test ! -s conftest.err' | |
35996d22 AS |
19521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19522 | (eval $ac_try) 2>&5 | |
19523 | ac_status=$? | |
19524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19525 | (exit $ac_status); }; } && | |
19526 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 19527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19528 | (eval $ac_try) 2>&5 |
19529 | ac_status=$? | |
c0d27fcc | 19530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19531 | (exit $ac_status); }; }; then |
ba4481b5 DL |
19532 | emacs_cv_gettimeofday_two_arguments=yes |
19533 | else | |
503d2be0 | 19534 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
19535 | sed 's/^/| /' conftest.$ac_ext >&5 |
19536 | ||
503d2be0 | 19537 | emacs_cv_gettimeofday_two_arguments=no |
ba4481b5 | 19538 | fi |
35996d22 | 19539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 19540 | fi |
c0d27fcc | 19541 | echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
503d2be0 | 19542 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
b936fae4 AS |
19543 | if test $emacs_cv_gettimeofday_two_arguments = no; then |
19544 | ||
c0d27fcc | 19545 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 19546 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
c0d27fcc | 19547 | _ACEOF |
ba4481b5 | 19548 | |
b936fae4 | 19549 | fi |
ba4481b5 DL |
19550 | fi |
19551 | fi | |
19552 | ||
973a76b1 DL |
19553 | # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. |
19554 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 | |
19555 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 | |
19556 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
19557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19558 | else | |
19559 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19560 | /* confdefs.h. */ |
19561 | _ACEOF | |
19562 | cat confdefs.h >>conftest.$ac_ext | |
19563 | cat >>conftest.$ac_ext <<_ACEOF | |
19564 | /* end confdefs.h. */ | |
973a76b1 DL |
19565 | #include <sys/types.h> |
19566 | #include <$ac_cv_struct_tm> | |
19567 | ||
19568 | ||
19569 | int | |
19570 | main () | |
19571 | { | |
19572 | static struct tm ac_aggr; | |
19573 | if (ac_aggr.tm_zone) | |
19574 | return 0; | |
19575 | ; | |
19576 | return 0; | |
19577 | } | |
19578 | _ACEOF | |
19579 | rm -f conftest.$ac_objext | |
19580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 19581 | (eval $ac_compile) 2>conftest.er1 |
973a76b1 | 19582 | ac_status=$? |
35996d22 AS |
19583 | grep -v '^ *+' conftest.er1 >conftest.err |
19584 | rm -f conftest.er1 | |
19585 | cat conftest.err >&5 | |
973a76b1 DL |
19586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19587 | (exit $ac_status); } && | |
4494a266 JD |
19588 | { ac_try='test -z "$ac_c_werror_flag" |
19589 | || test ! -s conftest.err' | |
35996d22 AS |
19590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19591 | (eval $ac_try) 2>&5 | |
19592 | ac_status=$? | |
19593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19594 | (exit $ac_status); }; } && | |
19595 | { ac_try='test -s conftest.$ac_objext' | |
973a76b1 DL |
19596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19597 | (eval $ac_try) 2>&5 | |
19598 | ac_status=$? | |
19599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19600 | (exit $ac_status); }; }; then | |
19601 | ac_cv_member_struct_tm_tm_zone=yes | |
19602 | else | |
19603 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19604 | sed 's/^/| /' conftest.$ac_ext >&5 |
19605 | ||
973a76b1 | 19606 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19607 | /* confdefs.h. */ |
19608 | _ACEOF | |
19609 | cat confdefs.h >>conftest.$ac_ext | |
19610 | cat >>conftest.$ac_ext <<_ACEOF | |
19611 | /* end confdefs.h. */ | |
973a76b1 DL |
19612 | #include <sys/types.h> |
19613 | #include <$ac_cv_struct_tm> | |
19614 | ||
19615 | ||
19616 | int | |
19617 | main () | |
19618 | { | |
19619 | static struct tm ac_aggr; | |
19620 | if (sizeof ac_aggr.tm_zone) | |
19621 | return 0; | |
19622 | ; | |
19623 | return 0; | |
19624 | } | |
19625 | _ACEOF | |
19626 | rm -f conftest.$ac_objext | |
19627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 19628 | (eval $ac_compile) 2>conftest.er1 |
973a76b1 | 19629 | ac_status=$? |
35996d22 AS |
19630 | grep -v '^ *+' conftest.er1 >conftest.err |
19631 | rm -f conftest.er1 | |
19632 | cat conftest.err >&5 | |
973a76b1 DL |
19633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19634 | (exit $ac_status); } && | |
4494a266 JD |
19635 | { ac_try='test -z "$ac_c_werror_flag" |
19636 | || test ! -s conftest.err' | |
35996d22 AS |
19637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19638 | (eval $ac_try) 2>&5 | |
19639 | ac_status=$? | |
19640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19641 | (exit $ac_status); }; } && | |
19642 | { ac_try='test -s conftest.$ac_objext' | |
973a76b1 DL |
19643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19644 | (eval $ac_try) 2>&5 | |
19645 | ac_status=$? | |
19646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19647 | (exit $ac_status); }; }; then | |
19648 | ac_cv_member_struct_tm_tm_zone=yes | |
19649 | else | |
19650 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19651 | sed 's/^/| /' conftest.$ac_ext >&5 |
19652 | ||
973a76b1 DL |
19653 | ac_cv_member_struct_tm_tm_zone=no |
19654 | fi | |
35996d22 | 19655 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
973a76b1 | 19656 | fi |
35996d22 | 19657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
973a76b1 DL |
19658 | fi |
19659 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 | |
19660 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 | |
19661 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
19662 | ||
19663 | cat >>confdefs.h <<_ACEOF | |
19664 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
19665 | _ACEOF | |
19666 | ||
19667 | ||
19668 | fi | |
19669 | ||
19670 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
19671 | ||
19672 | cat >>confdefs.h <<\_ACEOF | |
19673 | #define HAVE_TM_ZONE 1 | |
19674 | _ACEOF | |
19675 | ||
19676 | else | |
19677 | echo "$as_me:$LINENO: checking for tzname" >&5 | |
19678 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 | |
19679 | if test "${ac_cv_var_tzname+set}" = set; then | |
19680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19681 | else | |
19682 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19683 | /* confdefs.h. */ |
19684 | _ACEOF | |
19685 | cat confdefs.h >>conftest.$ac_ext | |
19686 | cat >>conftest.$ac_ext <<_ACEOF | |
19687 | /* end confdefs.h. */ | |
973a76b1 DL |
19688 | #include <time.h> |
19689 | #ifndef tzname /* For SGI. */ | |
19690 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
19691 | #endif | |
19692 | ||
19693 | int | |
19694 | main () | |
19695 | { | |
19696 | atoi(*tzname); | |
19697 | ; | |
19698 | return 0; | |
19699 | } | |
19700 | _ACEOF | |
19701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 19703 | (eval $ac_link) 2>conftest.er1 |
973a76b1 | 19704 | ac_status=$? |
35996d22 AS |
19705 | grep -v '^ *+' conftest.er1 >conftest.err |
19706 | rm -f conftest.er1 | |
19707 | cat conftest.err >&5 | |
973a76b1 DL |
19708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19709 | (exit $ac_status); } && | |
4494a266 JD |
19710 | { ac_try='test -z "$ac_c_werror_flag" |
19711 | || test ! -s conftest.err' | |
35996d22 AS |
19712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19713 | (eval $ac_try) 2>&5 | |
19714 | ac_status=$? | |
19715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19716 | (exit $ac_status); }; } && | |
19717 | { ac_try='test -s conftest$ac_exeext' | |
973a76b1 DL |
19718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19719 | (eval $ac_try) 2>&5 | |
19720 | ac_status=$? | |
19721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19722 | (exit $ac_status); }; }; then | |
19723 | ac_cv_var_tzname=yes | |
19724 | else | |
19725 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19726 | sed 's/^/| /' conftest.$ac_ext >&5 |
19727 | ||
973a76b1 DL |
19728 | ac_cv_var_tzname=no |
19729 | fi | |
35996d22 AS |
19730 | rm -f conftest.err conftest.$ac_objext \ |
19731 | conftest$ac_exeext conftest.$ac_ext | |
973a76b1 DL |
19732 | fi |
19733 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 | |
19734 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 | |
19735 | if test $ac_cv_var_tzname = yes; then | |
19736 | ||
19737 | cat >>confdefs.h <<\_ACEOF | |
19738 | #define HAVE_TZNAME 1 | |
19739 | _ACEOF | |
19740 | ||
19741 | fi | |
19742 | fi | |
19743 | ||
19744 | ||
48d4b120 | 19745 | if test "$ac_cv_func_gettimeofday" = yes; then |
c0d27fcc | 19746 | echo "$as_me:$LINENO: checking for struct timezone" >&5 |
503d2be0 AS |
19747 | echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
19748 | if test "${emacs_cv_struct_timezone+set}" = set; then | |
19749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d4b120 | 19750 | else |
503d2be0 | 19751 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19752 | /* confdefs.h. */ |
19753 | _ACEOF | |
19754 | cat confdefs.h >>conftest.$ac_ext | |
19755 | cat >>conftest.$ac_ext <<_ACEOF | |
19756 | /* end confdefs.h. */ | |
48d4b120 | 19757 | #include <sys/time.h> |
503d2be0 AS |
19758 | int |
19759 | main () | |
19760 | { | |
48d4b120 | 19761 | struct timezone tz; |
503d2be0 AS |
19762 | ; |
19763 | return 0; | |
19764 | } | |
19765 | _ACEOF | |
19766 | rm -f conftest.$ac_objext | |
c0d27fcc | 19767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 19768 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 19769 | ac_status=$? |
35996d22 AS |
19770 | grep -v '^ *+' conftest.er1 >conftest.err |
19771 | rm -f conftest.er1 | |
19772 | cat conftest.err >&5 | |
c0d27fcc | 19773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19774 | (exit $ac_status); } && |
4494a266 JD |
19775 | { ac_try='test -z "$ac_c_werror_flag" |
19776 | || test ! -s conftest.err' | |
35996d22 AS |
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); }; } && | |
19782 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 19783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19784 | (eval $ac_try) 2>&5 |
19785 | ac_status=$? | |
c0d27fcc | 19786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19787 | (exit $ac_status); }; }; then |
48d4b120 DL |
19788 | if test "$cross_compiling" = yes; then |
19789 | emacs_cv_struct_timezone=yes | |
19790 | else | |
503d2be0 | 19791 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19792 | /* confdefs.h. */ |
19793 | _ACEOF | |
19794 | cat confdefs.h >>conftest.$ac_ext | |
19795 | cat >>conftest.$ac_ext <<_ACEOF | |
19796 | /* end confdefs.h. */ | |
48d4b120 DL |
19797 | |
19798 | #ifdef TIME_WITH_SYS_TIME | |
19799 | #include <sys/time.h> | |
19800 | #include <time.h> | |
19801 | #else | |
19802 | #ifdef HAVE_SYS_TIME_H | |
19803 | #include <sys/time.h> | |
19804 | #else | |
19805 | #include <time.h> | |
19806 | #endif | |
19807 | #endif | |
19808 | main () { | |
19809 | struct timeval time; | |
19810 | struct timezone dummy; | |
19811 | exit (gettimeofday (&time, &dummy)); | |
19812 | } | |
503d2be0 AS |
19813 | _ACEOF |
19814 | rm -f conftest$ac_exeext | |
c0d27fcc | 19815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
19816 | (eval $ac_link) 2>&5 |
19817 | ac_status=$? | |
c0d27fcc | 19818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19819 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 19820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19821 | (eval $ac_try) 2>&5 |
19822 | ac_status=$? | |
c0d27fcc | 19823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19824 | (exit $ac_status); }; }; then |
48d4b120 DL |
19825 | emacs_cv_struct_timezone=yes |
19826 | else | |
503d2be0 AS |
19827 | echo "$as_me: program exited with status $ac_status" >&5 |
19828 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19829 | sed 's/^/| /' conftest.$ac_ext >&5 |
19830 | ||
c0d27fcc | 19831 | ( exit $ac_status ) |
503d2be0 | 19832 | emacs_cv_struct_timezone=no |
48d4b120 | 19833 | fi |
35996d22 | 19834 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
48d4b120 | 19835 | fi |
48d4b120 | 19836 | else |
503d2be0 | 19837 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
19838 | sed 's/^/| /' conftest.$ac_ext >&5 |
19839 | ||
503d2be0 | 19840 | emacs_cv_struct_timezone=no |
48d4b120 | 19841 | fi |
35996d22 | 19842 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
48d4b120 | 19843 | fi |
c0d27fcc | 19844 | echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5 |
503d2be0 | 19845 | echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
48d4b120 DL |
19846 | fi |
19847 | ||
ba4481b5 | 19848 | ok_so_far=yes |
c0d27fcc | 19849 | echo "$as_me:$LINENO: checking for socket" >&5 |
503d2be0 AS |
19850 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
19851 | if test "${ac_cv_func_socket+set}" = set; then | |
19852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 19853 | else |
503d2be0 | 19854 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19855 | /* confdefs.h. */ |
19856 | _ACEOF | |
19857 | cat confdefs.h >>conftest.$ac_ext | |
19858 | cat >>conftest.$ac_ext <<_ACEOF | |
19859 | /* end confdefs.h. */ | |
35996d22 AS |
19860 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
19861 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19862 | #define socket innocuous_socket | |
19863 | ||
ba4481b5 | 19864 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19865 | which can conflict with char socket (); below. |
19866 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19867 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 19868 | |
19650fd6 AS |
19869 | #ifdef __STDC__ |
19870 | # include <limits.h> | |
19871 | #else | |
19872 | # include <assert.h> | |
19873 | #endif | |
35996d22 AS |
19874 | |
19875 | #undef socket | |
19876 | ||
ba4481b5 | 19877 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
19878 | #ifdef __cplusplus |
19879 | extern "C" | |
19650fd6 | 19880 | { |
503d2be0 | 19881 | #endif |
ba4481b5 | 19882 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
19883 | builtin and then its argument prototype would still apply. */ |
19884 | char socket (); | |
ba4481b5 DL |
19885 | /* The GNU C library defines this for functions which it implements |
19886 | to always fail with ENOSYS. Some functions are actually named | |
19887 | something starting with __ and the normal name is an alias. */ | |
19888 | #if defined (__stub_socket) || defined (__stub___socket) | |
19889 | choke me | |
19890 | #else | |
19650fd6 AS |
19891 | char (*f) () = socket; |
19892 | #endif | |
19893 | #ifdef __cplusplus | |
19894 | } | |
cd958eb3 MB |
19895 | #endif |
19896 | ||
19650fd6 AS |
19897 | int |
19898 | main () | |
19899 | { | |
19900 | return f != socket; | |
503d2be0 AS |
19901 | ; |
19902 | return 0; | |
19903 | } | |
19904 | _ACEOF | |
19905 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 19906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 19907 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 19908 | ac_status=$? |
35996d22 AS |
19909 | grep -v '^ *+' conftest.er1 >conftest.err |
19910 | rm -f conftest.er1 | |
19911 | cat conftest.err >&5 | |
c0d27fcc | 19912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 19913 | (exit $ac_status); } && |
4494a266 JD |
19914 | { ac_try='test -z "$ac_c_werror_flag" |
19915 | || test ! -s conftest.err' | |
35996d22 AS |
19916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19917 | (eval $ac_try) 2>&5 | |
19918 | ac_status=$? | |
19919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19920 | (exit $ac_status); }; } && | |
19921 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 19922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
19923 | (eval $ac_try) 2>&5 |
19924 | ac_status=$? | |
c0d27fcc | 19925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
19926 | (exit $ac_status); }; }; then |
19927 | ac_cv_func_socket=yes | |
19928 | else | |
19929 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19930 | sed 's/^/| /' conftest.$ac_ext >&5 |
19931 | ||
503d2be0 AS |
19932 | ac_cv_func_socket=no |
19933 | fi | |
35996d22 AS |
19934 | rm -f conftest.err conftest.$ac_objext \ |
19935 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 19936 | fi |
c0d27fcc | 19937 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
503d2be0 AS |
19938 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
19939 | if test $ac_cv_func_socket = yes; then | |
ba4481b5 DL |
19940 | : |
19941 | else | |
503d2be0 | 19942 | ok_so_far=no |
ba4481b5 DL |
19943 | fi |
19944 | ||
19945 | if test $ok_so_far = yes; then | |
c0d27fcc MR |
19946 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
19947 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
503d2be0 AS |
19948 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
19949 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
19950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
19951 | fi |
19952 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 | |
19953 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 | |
98418dba | 19954 | else |
c0d27fcc MR |
19955 | # Is the header compilable? |
19956 | echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 | |
19957 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 | |
19958 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19959 | /* confdefs.h. */ |
19960 | _ACEOF | |
19961 | cat confdefs.h >>conftest.$ac_ext | |
19962 | cat >>conftest.$ac_ext <<_ACEOF | |
19963 | /* end confdefs.h. */ | |
c0d27fcc MR |
19964 | $ac_includes_default |
19965 | #include <netinet/in.h> | |
19966 | _ACEOF | |
19967 | rm -f conftest.$ac_objext | |
19968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 19969 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 19970 | ac_status=$? |
35996d22 AS |
19971 | grep -v '^ *+' conftest.er1 >conftest.err |
19972 | rm -f conftest.er1 | |
19973 | cat conftest.err >&5 | |
c0d27fcc MR |
19974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19975 | (exit $ac_status); } && | |
4494a266 JD |
19976 | { ac_try='test -z "$ac_c_werror_flag" |
19977 | || test ! -s conftest.err' | |
35996d22 AS |
19978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19979 | (eval $ac_try) 2>&5 | |
19980 | ac_status=$? | |
19981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19982 | (exit $ac_status); }; } && | |
19983 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
19984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19985 | (eval $ac_try) 2>&5 | |
19986 | ac_status=$? | |
19987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19988 | (exit $ac_status); }; }; then | |
19989 | ac_header_compiler=yes | |
19990 | else | |
19991 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19992 | sed 's/^/| /' conftest.$ac_ext >&5 |
19993 | ||
c0d27fcc MR |
19994 | ac_header_compiler=no |
19995 | fi | |
35996d22 | 19996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
19997 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19998 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19999 | ||
20000 | # Is the header present? | |
20001 | echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 | |
20002 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 | |
20003 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20004 | /* confdefs.h. */ |
20005 | _ACEOF | |
20006 | cat confdefs.h >>conftest.$ac_ext | |
20007 | cat >>conftest.$ac_ext <<_ACEOF | |
20008 | /* end confdefs.h. */ | |
ba4481b5 | 20009 | #include <netinet/in.h> |
503d2be0 | 20010 | _ACEOF |
c0d27fcc | 20011 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
20012 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
20013 | ac_status=$? | |
6bae0ccf | 20014 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20015 | rm -f conftest.er1 |
20016 | cat conftest.err >&5 | |
c0d27fcc | 20017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
20018 | (exit $ac_status); } >/dev/null; then |
20019 | if test -s conftest.err; then | |
20020 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 20021 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
20022 | else |
20023 | ac_cpp_err= | |
20024 | fi | |
20025 | else | |
20026 | ac_cpp_err=yes | |
20027 | fi | |
20028 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 20029 | ac_header_preproc=yes |
ba4481b5 | 20030 | else |
503d2be0 | 20031 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
20032 | sed 's/^/| /' conftest.$ac_ext >&5 |
20033 | ||
c0d27fcc | 20034 | ac_header_preproc=no |
ba4481b5 | 20035 | fi |
503d2be0 | 20036 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
20037 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20038 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20039 | ||
20040 | # So? What about this header? | |
35996d22 AS |
20041 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20042 | yes:no: ) | |
c0d27fcc MR |
20043 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20044 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
20045 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
20046 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} | |
20047 | ac_header_preproc=yes | |
19650fd6 | 20048 | ;; |
35996d22 | 20049 | no:yes:* ) |
c0d27fcc MR |
20050 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
20051 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
20052 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
20053 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} | |
20054 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 | |
20055 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} | |
20056 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20057 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20058 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20059 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
20060 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
20061 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
20062 | ( |
20063 | cat <<\_ASBOX | |
35996d22 AS |
20064 | ## ------------------------------------------ ## |
20065 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20066 | ## ------------------------------------------ ## | |
19650fd6 AS |
20067 | _ASBOX |
20068 | ) | | |
20069 | sed "s/^/$as_me: WARNING: /" >&2 | |
20070 | ;; | |
c0d27fcc MR |
20071 | esac |
20072 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
20073 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 | |
20074 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
20075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20076 | else | |
20077 | ac_cv_header_netinet_in_h=$ac_header_preproc | |
ba4481b5 | 20078 | fi |
c0d27fcc | 20079 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
503d2be0 | 20080 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
c0d27fcc MR |
20081 | |
20082 | fi | |
503d2be0 | 20083 | if test $ac_cv_header_netinet_in_h = yes; then |
ba4481b5 DL |
20084 | : |
20085 | else | |
503d2be0 | 20086 | ok_so_far=no |
ba4481b5 DL |
20087 | fi |
20088 | ||
c0d27fcc | 20089 | |
ba4481b5 DL |
20090 | fi |
20091 | if test $ok_so_far = yes; then | |
c0d27fcc MR |
20092 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
20093 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
503d2be0 AS |
20094 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
20095 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
20096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
20097 | fi |
20098 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 | |
20099 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 | |
98418dba | 20100 | else |
c0d27fcc MR |
20101 | # Is the header compilable? |
20102 | echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 | |
20103 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 | |
20104 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20105 | /* confdefs.h. */ |
20106 | _ACEOF | |
20107 | cat confdefs.h >>conftest.$ac_ext | |
20108 | cat >>conftest.$ac_ext <<_ACEOF | |
20109 | /* end confdefs.h. */ | |
c0d27fcc MR |
20110 | $ac_includes_default |
20111 | #include <arpa/inet.h> | |
20112 | _ACEOF | |
20113 | rm -f conftest.$ac_objext | |
20114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 20115 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 20116 | ac_status=$? |
35996d22 AS |
20117 | grep -v '^ *+' conftest.er1 >conftest.err |
20118 | rm -f conftest.er1 | |
20119 | cat conftest.err >&5 | |
c0d27fcc MR |
20120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20121 | (exit $ac_status); } && | |
4494a266 JD |
20122 | { ac_try='test -z "$ac_c_werror_flag" |
20123 | || test ! -s conftest.err' | |
35996d22 AS |
20124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20125 | (eval $ac_try) 2>&5 | |
20126 | ac_status=$? | |
20127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20128 | (exit $ac_status); }; } && | |
20129 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
20130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20131 | (eval $ac_try) 2>&5 | |
20132 | ac_status=$? | |
20133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20134 | (exit $ac_status); }; }; then | |
20135 | ac_header_compiler=yes | |
20136 | else | |
20137 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20138 | sed 's/^/| /' conftest.$ac_ext >&5 |
20139 | ||
c0d27fcc MR |
20140 | ac_header_compiler=no |
20141 | fi | |
35996d22 | 20142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
20143 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20144 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20145 | ||
20146 | # Is the header present? | |
20147 | echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 | |
20148 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 | |
20149 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20150 | /* confdefs.h. */ |
20151 | _ACEOF | |
20152 | cat confdefs.h >>conftest.$ac_ext | |
20153 | cat >>conftest.$ac_ext <<_ACEOF | |
20154 | /* end confdefs.h. */ | |
ba4481b5 | 20155 | #include <arpa/inet.h> |
503d2be0 | 20156 | _ACEOF |
c0d27fcc | 20157 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
20158 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
20159 | ac_status=$? | |
6bae0ccf | 20160 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20161 | rm -f conftest.er1 |
20162 | cat conftest.err >&5 | |
c0d27fcc | 20163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
20164 | (exit $ac_status); } >/dev/null; then |
20165 | if test -s conftest.err; then | |
20166 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 20167 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
20168 | else |
20169 | ac_cpp_err= | |
20170 | fi | |
20171 | else | |
20172 | ac_cpp_err=yes | |
20173 | fi | |
20174 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 20175 | ac_header_preproc=yes |
ba4481b5 | 20176 | else |
503d2be0 | 20177 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
20178 | sed 's/^/| /' conftest.$ac_ext >&5 |
20179 | ||
c0d27fcc | 20180 | ac_header_preproc=no |
ba4481b5 | 20181 | fi |
503d2be0 | 20182 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
20183 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20184 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20185 | ||
20186 | # So? What about this header? | |
35996d22 AS |
20187 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20188 | yes:no: ) | |
c0d27fcc MR |
20189 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20190 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
20191 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
20192 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} | |
20193 | ac_header_preproc=yes | |
19650fd6 | 20194 | ;; |
35996d22 | 20195 | no:yes:* ) |
c0d27fcc MR |
20196 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
20197 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} | |
35996d22 AS |
20198 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
20199 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} | |
20200 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 | |
20201 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} | |
20202 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20203 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20204 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20205 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
20206 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
20207 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
20208 | ( |
20209 | cat <<\_ASBOX | |
35996d22 AS |
20210 | ## ------------------------------------------ ## |
20211 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20212 | ## ------------------------------------------ ## | |
19650fd6 AS |
20213 | _ASBOX |
20214 | ) | | |
20215 | sed "s/^/$as_me: WARNING: /" >&2 | |
20216 | ;; | |
c0d27fcc MR |
20217 | esac |
20218 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
20219 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 | |
20220 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
20221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20222 | else | |
20223 | ac_cv_header_arpa_inet_h=$ac_header_preproc | |
ba4481b5 | 20224 | fi |
c0d27fcc | 20225 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
503d2be0 | 20226 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
c0d27fcc MR |
20227 | |
20228 | fi | |
503d2be0 | 20229 | if test $ac_cv_header_arpa_inet_h = yes; then |
ba4481b5 DL |
20230 | : |
20231 | else | |
503d2be0 | 20232 | ok_so_far=no |
ba4481b5 DL |
20233 | fi |
20234 | ||
c0d27fcc | 20235 | |
ba4481b5 DL |
20236 | fi |
20237 | if test $ok_so_far = yes; then | |
b936fae4 | 20238 | |
c0d27fcc | 20239 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 20240 | #define HAVE_INET_SOCKETS 1 |
c0d27fcc | 20241 | _ACEOF |
ba4481b5 DL |
20242 | |
20243 | fi | |
20244 | ||
2d2b6695 | 20245 | |
7862d3a8 | 20246 | for ac_header in sys/ioctl.h |
2d2b6695 KS |
20247 | do |
20248 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20249 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20250 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20251 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20252 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20254 | fi | |
20255 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20256 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20257 | else | |
20258 | # Is the header compilable? | |
20259 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20260 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20261 | cat >conftest.$ac_ext <<_ACEOF | |
2d2b6695 KS |
20262 | /* confdefs.h. */ |
20263 | _ACEOF | |
20264 | cat confdefs.h >>conftest.$ac_ext | |
20265 | cat >>conftest.$ac_ext <<_ACEOF | |
20266 | /* end confdefs.h. */ | |
20267 | $ac_includes_default | |
20268 | #include <$ac_header> | |
20269 | _ACEOF | |
20270 | rm -f conftest.$ac_objext | |
20271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 20272 | (eval $ac_compile) 2>conftest.er1 |
2d2b6695 | 20273 | ac_status=$? |
35996d22 AS |
20274 | grep -v '^ *+' conftest.er1 >conftest.err |
20275 | rm -f conftest.er1 | |
20276 | cat conftest.err >&5 | |
2d2b6695 KS |
20277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20278 | (exit $ac_status); } && | |
4494a266 JD |
20279 | { ac_try='test -z "$ac_c_werror_flag" |
20280 | || test ! -s conftest.err' | |
35996d22 AS |
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); }; } && | |
20286 | { ac_try='test -s conftest.$ac_objext' | |
2d2b6695 KS |
20287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20288 | (eval $ac_try) 2>&5 | |
20289 | ac_status=$? | |
20290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20291 | (exit $ac_status); }; }; then | |
20292 | ac_header_compiler=yes | |
20293 | else | |
20294 | echo "$as_me: failed program was:" >&5 | |
20295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20296 | ||
20297 | ac_header_compiler=no | |
20298 | fi | |
35996d22 | 20299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2d2b6695 KS |
20300 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20301 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20302 | ||
20303 | # Is the header present? | |
20304 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20305 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20306 | cat >conftest.$ac_ext <<_ACEOF | |
2d2b6695 KS |
20307 | /* confdefs.h. */ |
20308 | _ACEOF | |
20309 | cat confdefs.h >>conftest.$ac_ext | |
20310 | cat >>conftest.$ac_ext <<_ACEOF | |
20311 | /* end confdefs.h. */ | |
20312 | #include <$ac_header> | |
20313 | _ACEOF | |
20314 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20315 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20316 | ac_status=$? | |
20317 | grep -v '^ *+' conftest.er1 >conftest.err | |
20318 | rm -f conftest.er1 | |
20319 | cat conftest.err >&5 | |
20320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20321 | (exit $ac_status); } >/dev/null; then | |
20322 | if test -s conftest.err; then | |
20323 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 20324 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
2d2b6695 KS |
20325 | else |
20326 | ac_cpp_err= | |
20327 | fi | |
20328 | else | |
20329 | ac_cpp_err=yes | |
20330 | fi | |
20331 | if test -z "$ac_cpp_err"; then | |
20332 | ac_header_preproc=yes | |
20333 | else | |
20334 | echo "$as_me: failed program was:" >&5 | |
20335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20336 | ||
20337 | ac_header_preproc=no | |
20338 | fi | |
20339 | rm -f conftest.err conftest.$ac_ext | |
20340 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20341 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20342 | ||
20343 | # So? What about this header? | |
35996d22 AS |
20344 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20345 | yes:no: ) | |
2d2b6695 KS |
20346 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20347 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
20348 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20349 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20350 | ac_header_preproc=yes | |
2d2b6695 | 20351 | ;; |
35996d22 | 20352 | no:yes:* ) |
2d2b6695 KS |
20353 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20354 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
20355 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20356 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20357 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20358 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20359 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20360 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
2d2b6695 KS |
20361 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20362 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
35996d22 AS |
20363 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20364 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
2d2b6695 KS |
20365 | ( |
20366 | cat <<\_ASBOX | |
35996d22 AS |
20367 | ## ------------------------------------------ ## |
20368 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20369 | ## ------------------------------------------ ## | |
2d2b6695 KS |
20370 | _ASBOX |
20371 | ) | | |
20372 | sed "s/^/$as_me: WARNING: /" >&2 | |
20373 | ;; | |
20374 | esac | |
20375 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20376 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20377 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20379 | else | |
35996d22 | 20380 | eval "$as_ac_Header=\$ac_header_preproc" |
2d2b6695 KS |
20381 | fi |
20382 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20383 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20384 | ||
20385 | fi | |
20386 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20387 | cat >>confdefs.h <<_ACEOF | |
20388 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20389 | _ACEOF | |
20390 | ||
20391 | fi | |
20392 | ||
20393 | done | |
20394 | ||
20395 | ||
ba4481b5 | 20396 | if test -f /usr/lpp/X11/bin/smt.exp; then |
b936fae4 | 20397 | |
c0d27fcc | 20398 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 20399 | #define HAVE_AIX_SMT_EXP 1 |
c0d27fcc | 20400 | _ACEOF |
ba4481b5 DL |
20401 | |
20402 | fi | |
20403 | ||
c0d27fcc | 20404 | echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 |
503d2be0 | 20405 | echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 |
3d9fec71 | 20406 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
c0d27fcc | 20407 | echo "$as_me:$LINENO: result: yes" >&5 |
503d2be0 | 20408 | echo "${ECHO_T}yes" >&6 |
b936fae4 | 20409 | |
c0d27fcc | 20410 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 20411 | #define HAVE_DEV_PTMX 1 |
c0d27fcc | 20412 | _ACEOF |
3d9fec71 DL |
20413 | |
20414 | else | |
c0d27fcc | 20415 | echo "$as_me:$LINENO: result: no" >&5 |
503d2be0 | 20416 | echo "${ECHO_T}no" >&6 |
3d9fec71 DL |
20417 | fi |
20418 | ||
c0d27fcc | 20419 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
503d2be0 AS |
20420 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
20421 | if test "${ac_cv_type_pid_t+set}" = set; then | |
20422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
647847ea | 20423 | else |
503d2be0 | 20424 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20425 | /* confdefs.h. */ |
20426 | _ACEOF | |
20427 | cat confdefs.h >>conftest.$ac_ext | |
20428 | cat >>conftest.$ac_ext <<_ACEOF | |
20429 | /* end confdefs.h. */ | |
503d2be0 AS |
20430 | $ac_includes_default |
20431 | int | |
20432 | main () | |
20433 | { | |
20434 | if ((pid_t *) 0) | |
20435 | return 0; | |
20436 | if (sizeof (pid_t)) | |
20437 | return 0; | |
20438 | ; | |
20439 | return 0; | |
20440 | } | |
20441 | _ACEOF | |
20442 | rm -f conftest.$ac_objext | |
c0d27fcc | 20443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 20444 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 20445 | ac_status=$? |
35996d22 AS |
20446 | grep -v '^ *+' conftest.er1 >conftest.err |
20447 | rm -f conftest.er1 | |
20448 | cat conftest.err >&5 | |
c0d27fcc | 20449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20450 | (exit $ac_status); } && |
4494a266 JD |
20451 | { ac_try='test -z "$ac_c_werror_flag" |
20452 | || test ! -s conftest.err' | |
35996d22 AS |
20453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20454 | (eval $ac_try) 2>&5 | |
20455 | ac_status=$? | |
20456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20457 | (exit $ac_status); }; } && | |
20458 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 20459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20460 | (eval $ac_try) 2>&5 |
20461 | ac_status=$? | |
c0d27fcc | 20462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20463 | (exit $ac_status); }; }; then |
647847ea DL |
20464 | ac_cv_type_pid_t=yes |
20465 | else | |
503d2be0 | 20466 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
20467 | sed 's/^/| /' conftest.$ac_ext >&5 |
20468 | ||
503d2be0 | 20469 | ac_cv_type_pid_t=no |
647847ea | 20470 | fi |
35996d22 | 20471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
647847ea | 20472 | fi |
c0d27fcc | 20473 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
503d2be0 AS |
20474 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
20475 | if test $ac_cv_type_pid_t = yes; then | |
20476 | : | |
20477 | else | |
20478 | ||
c0d27fcc | 20479 | cat >>confdefs.h <<_ACEOF |
647847ea | 20480 | #define pid_t int |
c0d27fcc | 20481 | _ACEOF |
647847ea DL |
20482 | |
20483 | fi | |
20484 | ||
c0d27fcc MR |
20485 | |
20486 | ||
503d2be0 AS |
20487 | for ac_header in unistd.h vfork.h |
20488 | do | |
20489 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
c0d27fcc MR |
20490 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
20491 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
503d2be0 AS |
20492 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
20493 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc MR |
20495 | fi |
20496 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20497 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
98418dba | 20498 | else |
c0d27fcc MR |
20499 | # Is the header compilable? |
20500 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20501 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20502 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20503 | /* confdefs.h. */ |
20504 | _ACEOF | |
20505 | cat confdefs.h >>conftest.$ac_ext | |
20506 | cat >>conftest.$ac_ext <<_ACEOF | |
20507 | /* end confdefs.h. */ | |
c0d27fcc MR |
20508 | $ac_includes_default |
20509 | #include <$ac_header> | |
20510 | _ACEOF | |
20511 | rm -f conftest.$ac_objext | |
20512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 20513 | (eval $ac_compile) 2>conftest.er1 |
c0d27fcc | 20514 | ac_status=$? |
35996d22 AS |
20515 | grep -v '^ *+' conftest.er1 >conftest.err |
20516 | rm -f conftest.er1 | |
20517 | cat conftest.err >&5 | |
c0d27fcc MR |
20518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20519 | (exit $ac_status); } && | |
4494a266 JD |
20520 | { ac_try='test -z "$ac_c_werror_flag" |
20521 | || test ! -s conftest.err' | |
35996d22 AS |
20522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20523 | (eval $ac_try) 2>&5 | |
20524 | ac_status=$? | |
20525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20526 | (exit $ac_status); }; } && | |
20527 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc MR |
20528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20529 | (eval $ac_try) 2>&5 | |
20530 | ac_status=$? | |
20531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20532 | (exit $ac_status); }; }; then | |
20533 | ac_header_compiler=yes | |
20534 | else | |
20535 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20536 | sed 's/^/| /' conftest.$ac_ext >&5 |
20537 | ||
c0d27fcc MR |
20538 | ac_header_compiler=no |
20539 | fi | |
35996d22 | 20540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c0d27fcc MR |
20541 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20542 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20543 | ||
20544 | # Is the header present? | |
20545 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20546 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20547 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20548 | /* confdefs.h. */ |
20549 | _ACEOF | |
20550 | cat confdefs.h >>conftest.$ac_ext | |
20551 | cat >>conftest.$ac_ext <<_ACEOF | |
20552 | /* end confdefs.h. */ | |
503d2be0 AS |
20553 | #include <$ac_header> |
20554 | _ACEOF | |
c0d27fcc | 20555 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
503d2be0 AS |
20556 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
20557 | ac_status=$? | |
6bae0ccf | 20558 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20559 | rm -f conftest.er1 |
20560 | cat conftest.err >&5 | |
c0d27fcc | 20561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
20562 | (exit $ac_status); } >/dev/null; then |
20563 | if test -s conftest.err; then | |
20564 | ac_cpp_err=$ac_c_preproc_warn_flag | |
35996d22 | 20565 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
503d2be0 AS |
20566 | else |
20567 | ac_cpp_err= | |
20568 | fi | |
647847ea | 20569 | else |
503d2be0 AS |
20570 | ac_cpp_err=yes |
20571 | fi | |
20572 | if test -z "$ac_cpp_err"; then | |
c0d27fcc | 20573 | ac_header_preproc=yes |
647847ea | 20574 | else |
503d2be0 | 20575 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
20576 | sed 's/^/| /' conftest.$ac_ext >&5 |
20577 | ||
c0d27fcc | 20578 | ac_header_preproc=no |
647847ea | 20579 | fi |
503d2be0 | 20580 | rm -f conftest.err conftest.$ac_ext |
c0d27fcc MR |
20581 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20582 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20583 | ||
20584 | # So? What about this header? | |
35996d22 AS |
20585 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20586 | yes:no: ) | |
c0d27fcc MR |
20587 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20588 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
35996d22 AS |
20589 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20590 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20591 | ac_header_preproc=yes | |
19650fd6 | 20592 | ;; |
35996d22 | 20593 | no:yes:* ) |
c0d27fcc MR |
20594 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20595 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
35996d22 AS |
20596 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20597 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20598 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20599 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20600 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20601 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20602 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20603 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
35996d22 AS |
20604 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20605 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 AS |
20606 | ( |
20607 | cat <<\_ASBOX | |
35996d22 AS |
20608 | ## ------------------------------------------ ## |
20609 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20610 | ## ------------------------------------------ ## | |
19650fd6 AS |
20611 | _ASBOX |
20612 | ) | | |
20613 | sed "s/^/$as_me: WARNING: /" >&2 | |
20614 | ;; | |
c0d27fcc MR |
20615 | esac |
20616 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20617 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20618 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20620 | else | |
35996d22 | 20621 | eval "$as_ac_Header=\$ac_header_preproc" |
647847ea | 20622 | fi |
c0d27fcc | 20623 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
503d2be0 | 20624 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
c0d27fcc MR |
20625 | |
20626 | fi | |
503d2be0 | 20627 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 20628 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20629 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 20630 | _ACEOF |
647847ea | 20631 | |
73b77ee5 | 20632 | fi |
c0d27fcc | 20633 | |
503d2be0 | 20634 | done |
73b77ee5 | 20635 | |
c0d27fcc MR |
20636 | |
20637 | ||
503d2be0 AS |
20638 | for ac_func in fork vfork |
20639 | do | |
20640 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
c0d27fcc | 20641 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
503d2be0 AS |
20642 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
20643 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 20645 | else |
503d2be0 | 20646 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20647 | /* confdefs.h. */ |
20648 | _ACEOF | |
20649 | cat confdefs.h >>conftest.$ac_ext | |
20650 | cat >>conftest.$ac_ext <<_ACEOF | |
20651 | /* end confdefs.h. */ | |
35996d22 AS |
20652 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20653 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20654 | #define $ac_func innocuous_$ac_func | |
20655 | ||
fa0b693c | 20656 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
20657 | which can conflict with char $ac_func (); below. |
20658 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20659 | <limits.h> exists even on freestanding compilers. */ | |
35996d22 | 20660 | |
19650fd6 AS |
20661 | #ifdef __STDC__ |
20662 | # include <limits.h> | |
20663 | #else | |
20664 | # include <assert.h> | |
20665 | #endif | |
35996d22 AS |
20666 | |
20667 | #undef $ac_func | |
20668 | ||
fa0b693c | 20669 | /* Override any gcc2 internal prototype to avoid an error. */ |
503d2be0 AS |
20670 | #ifdef __cplusplus |
20671 | extern "C" | |
19650fd6 | 20672 | { |
503d2be0 | 20673 | #endif |
fa0b693c | 20674 | /* We use char because int might match the return type of a gcc2 |
503d2be0 AS |
20675 | builtin and then its argument prototype would still apply. */ |
20676 | char $ac_func (); | |
fa0b693c GM |
20677 | /* The GNU C library defines this for functions which it implements |
20678 | to always fail with ENOSYS. Some functions are actually named | |
20679 | something starting with __ and the normal name is an alias. */ | |
503d2be0 | 20680 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
fa0b693c GM |
20681 | choke me |
20682 | #else | |
19650fd6 AS |
20683 | char (*f) () = $ac_func; |
20684 | #endif | |
20685 | #ifdef __cplusplus | |
20686 | } | |
fa0b693c GM |
20687 | #endif |
20688 | ||
19650fd6 AS |
20689 | int |
20690 | main () | |
20691 | { | |
20692 | return f != $ac_func; | |
503d2be0 AS |
20693 | ; |
20694 | return 0; | |
20695 | } | |
20696 | _ACEOF | |
20697 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c0d27fcc | 20698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
35996d22 | 20699 | (eval $ac_link) 2>conftest.er1 |
503d2be0 | 20700 | ac_status=$? |
35996d22 AS |
20701 | grep -v '^ *+' conftest.er1 >conftest.err |
20702 | rm -f conftest.er1 | |
20703 | cat conftest.err >&5 | |
c0d27fcc | 20704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20705 | (exit $ac_status); } && |
4494a266 JD |
20706 | { ac_try='test -z "$ac_c_werror_flag" |
20707 | || test ! -s conftest.err' | |
35996d22 AS |
20708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20709 | (eval $ac_try) 2>&5 | |
20710 | ac_status=$? | |
20711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20712 | (exit $ac_status); }; } && | |
20713 | { ac_try='test -s conftest$ac_exeext' | |
c0d27fcc | 20714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20715 | (eval $ac_try) 2>&5 |
20716 | ac_status=$? | |
c0d27fcc | 20717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
20718 | (exit $ac_status); }; }; then |
20719 | eval "$as_ac_var=yes" | |
20720 | else | |
20721 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20722 | sed 's/^/| /' conftest.$ac_ext >&5 |
20723 | ||
503d2be0 AS |
20724 | eval "$as_ac_var=no" |
20725 | fi | |
35996d22 AS |
20726 | rm -f conftest.err conftest.$ac_objext \ |
20727 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 20728 | fi |
c0d27fcc | 20729 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
503d2be0 AS |
20730 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
20731 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
c0d27fcc | 20732 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20733 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 20734 | _ACEOF |
503d2be0 | 20735 | |
fa0b693c | 20736 | fi |
503d2be0 | 20737 | done |
fa0b693c | 20738 | |
503d2be0 | 20739 | if test "x$ac_cv_func_fork" = xyes; then |
c0d27fcc | 20740 | echo "$as_me:$LINENO: checking for working fork" >&5 |
503d2be0 AS |
20741 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
20742 | if test "${ac_cv_func_fork_works+set}" = set; then | |
20743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 20744 | else |
503d2be0 AS |
20745 | if test "$cross_compiling" = yes; then |
20746 | ac_cv_func_fork_works=cross | |
20747 | else | |
20748 | cat >conftest.$ac_ext <<_ACEOF | |
c0d27fcc | 20749 | /* By Ruediger Kuhlmann. */ |
503d2be0 AS |
20750 | #include <sys/types.h> |
20751 | #if HAVE_UNISTD_H | |
20752 | # include <unistd.h> | |
20753 | #endif | |
20754 | /* Some systems only have a dummy stub for fork() */ | |
20755 | int main () | |
20756 | { | |
35996d22 AS |
20757 | if (fork() < 0) |
20758 | exit (1); | |
20759 | exit (0); | |
503d2be0 AS |
20760 | } |
20761 | _ACEOF | |
20762 | rm -f conftest$ac_exeext | |
c0d27fcc | 20763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
20764 | (eval $ac_link) 2>&5 |
20765 | ac_status=$? | |
c0d27fcc | 20766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20767 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 20768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20769 | (eval $ac_try) 2>&5 |
20770 | ac_status=$? | |
c0d27fcc | 20771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
20772 | (exit $ac_status); }; }; then |
20773 | ac_cv_func_fork_works=yes | |
20774 | else | |
20775 | echo "$as_me: program exited with status $ac_status" >&5 | |
20776 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20777 | sed 's/^/| /' conftest.$ac_ext >&5 |
20778 | ||
c0d27fcc | 20779 | ( exit $ac_status ) |
503d2be0 AS |
20780 | ac_cv_func_fork_works=no |
20781 | fi | |
35996d22 | 20782 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
20783 | fi |
20784 | fi | |
c0d27fcc | 20785 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
503d2be0 AS |
20786 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
20787 | ||
6bae0ccf DL |
20788 | else |
20789 | ac_cv_func_fork_works=$ac_cv_func_fork | |
503d2be0 AS |
20790 | fi |
20791 | if test "x$ac_cv_func_fork_works" = xcross; then | |
20792 | case $host in | |
20793 | *-*-amigaos* | *-*-msdosdjgpp*) | |
20794 | # Override, as these systems have only a dummy fork() stub | |
20795 | ac_cv_func_fork_works=no | |
20796 | ;; | |
20797 | *) | |
20798 | ac_cv_func_fork_works=yes | |
20799 | ;; | |
20800 | esac | |
c0d27fcc MR |
20801 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
20802 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
fa0b693c | 20803 | fi |
73b77ee5 | 20804 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
503d2be0 | 20805 | if test "x$ac_cv_func_vfork" = xyes; then |
c0d27fcc | 20806 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
503d2be0 AS |
20807 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
20808 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
20809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20810 | else | |
20811 | if test "$cross_compiling" = yes; then | |
20812 | ac_cv_func_vfork_works=cross | |
fa0b693c | 20813 | else |
503d2be0 | 20814 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20815 | /* confdefs.h. */ |
20816 | _ACEOF | |
20817 | cat confdefs.h >>conftest.$ac_ext | |
20818 | cat >>conftest.$ac_ext <<_ACEOF | |
20819 | /* end confdefs.h. */ | |
73b77ee5 GM |
20820 | /* Thanks to Paul Eggert for this test. */ |
20821 | #include <stdio.h> | |
19650fd6 | 20822 | #include <stdlib.h> |
fa0b693c | 20823 | #include <sys/types.h> |
73b77ee5 | 20824 | #include <sys/stat.h> |
19650fd6 | 20825 | #include <sys/wait.h> |
503d2be0 AS |
20826 | #if HAVE_UNISTD_H |
20827 | # include <unistd.h> | |
73b77ee5 | 20828 | #endif |
503d2be0 AS |
20829 | #if HAVE_VFORK_H |
20830 | # include <vfork.h> | |
73b77ee5 GM |
20831 | #endif |
20832 | /* On some sparc systems, changes by the child to local and incoming | |
503d2be0 AS |
20833 | argument registers are propagated back to the parent. The compiler |
20834 | is told about this with #include <vfork.h>, but some compilers | |
20835 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
20836 | static variable whose address is put into a register that is | |
20837 | clobbered by the vfork. */ | |
19650fd6 | 20838 | static void |
fa0b693c | 20839 | #ifdef __cplusplus |
73b77ee5 | 20840 | sparc_address_test (int arg) |
503d2be0 | 20841 | # else |
73b77ee5 | 20842 | sparc_address_test (arg) int arg; |
fa0b693c | 20843 | #endif |
fa0b693c | 20844 | { |
73b77ee5 GM |
20845 | static pid_t child; |
20846 | if (!child) { | |
20847 | child = vfork (); | |
20848 | if (child < 0) { | |
20849 | perror ("vfork"); | |
20850 | _exit(2); | |
20851 | } | |
20852 | if (!child) { | |
20853 | arg = getpid(); | |
20854 | write(-1, "", 0); | |
20855 | _exit (arg); | |
20856 | } | |
20857 | } | |
20858 | } | |
503d2be0 AS |
20859 | |
20860 | int | |
20861 | main () | |
20862 | { | |
73b77ee5 GM |
20863 | pid_t parent = getpid (); |
20864 | pid_t child; | |
fa0b693c | 20865 | |
19650fd6 | 20866 | sparc_address_test (0); |
fa0b693c | 20867 | |
73b77ee5 | 20868 | child = vfork (); |
fa0b693c | 20869 | |
73b77ee5 | 20870 | if (child == 0) { |
503d2be0 AS |
20871 | /* Here is another test for sparc vfork register problems. This |
20872 | test uses lots of local variables, at least as many local | |
20873 | variables as main has allocated so far including compiler | |
20874 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
20875 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
20876 | reuse the register of parent for one of the local variables, | |
20877 | since it will think that parent can't possibly be used any more | |
20878 | in this routine. Assigning to the local variable will thus | |
20879 | munge parent in the parent process. */ | |
73b77ee5 GM |
20880 | pid_t |
20881 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
20882 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
20883 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
20884 | use the same hardware register for all 8 local variables. */ | |
20885 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
20886 | || p != p5 || p != p6 || p != p7) | |
20887 | _exit(1); | |
fa0b693c | 20888 | |
503d2be0 AS |
20889 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
20890 | from child file descriptors. If the child closes a descriptor | |
20891 | before it execs or exits, this munges the parent's descriptor | |
20892 | as well. Test for this by closing stdout in the child. */ | |
73b77ee5 GM |
20893 | _exit(close(fileno(stdout)) != 0); |
20894 | } else { | |
20895 | int status; | |
20896 | struct stat st; | |
20897 | ||
20898 | while (wait(&status) != child) | |
20899 | ; | |
20900 | exit( | |
20901 | /* Was there some problem with vforking? */ | |
20902 | child < 0 | |
20903 | ||
20904 | /* Did the child fail? (This shouldn't happen.) */ | |
20905 | || status | |
20906 | ||
20907 | /* Did the vfork/compiler bug occur? */ | |
20908 | || parent != getpid() | |
fa0b693c | 20909 | |
73b77ee5 GM |
20910 | /* Did the file descriptor bug occur? */ |
20911 | || fstat(fileno(stdout), &st) != 0 | |
20912 | ); | |
20913 | } | |
20914 | } | |
503d2be0 AS |
20915 | _ACEOF |
20916 | rm -f conftest$ac_exeext | |
c0d27fcc | 20917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
503d2be0 AS |
20918 | (eval $ac_link) 2>&5 |
20919 | ac_status=$? | |
c0d27fcc | 20920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20921 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
c0d27fcc | 20922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
20923 | (eval $ac_try) 2>&5 |
20924 | ac_status=$? | |
c0d27fcc | 20925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 20926 | (exit $ac_status); }; }; then |
73b77ee5 | 20927 | ac_cv_func_vfork_works=yes |
fa0b693c | 20928 | else |
503d2be0 AS |
20929 | echo "$as_me: program exited with status $ac_status" >&5 |
20930 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20931 | sed 's/^/| /' conftest.$ac_ext >&5 |
20932 | ||
c0d27fcc | 20933 | ( exit $ac_status ) |
503d2be0 AS |
20934 | ac_cv_func_vfork_works=no |
20935 | fi | |
35996d22 | 20936 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
fa0b693c | 20937 | fi |
fa0b693c | 20938 | fi |
c0d27fcc | 20939 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
503d2be0 | 20940 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
fa0b693c | 20941 | |
503d2be0 AS |
20942 | fi; |
20943 | if test "x$ac_cv_func_fork_works" = xcross; then | |
35996d22 | 20944 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
c0d27fcc MR |
20945 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
20946 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
fa0b693c GM |
20947 | fi |
20948 | ||
503d2be0 AS |
20949 | if test "x$ac_cv_func_vfork_works" = xyes; then |
20950 | ||
c0d27fcc | 20951 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 20952 | #define HAVE_WORKING_VFORK 1 |
c0d27fcc | 20953 | _ACEOF |
503d2be0 AS |
20954 | |
20955 | else | |
20956 | ||
c0d27fcc | 20957 | cat >>confdefs.h <<\_ACEOF |
73b77ee5 | 20958 | #define vfork fork |
c0d27fcc | 20959 | _ACEOF |
fa0b693c GM |
20960 | |
20961 | fi | |
503d2be0 AS |
20962 | if test "x$ac_cv_func_fork_works" = xyes; then |
20963 | ||
c0d27fcc | 20964 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 20965 | #define HAVE_WORKING_FORK 1 |
c0d27fcc | 20966 | _ACEOF |
fa0b693c | 20967 | |
503d2be0 | 20968 | fi |
647847ea | 20969 | |
c0d27fcc | 20970 | |
6a3a24fa JD |
20971 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
20972 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 | |
20973 | if test "${emacs_cv_langinfo_codeset+set}" = set; then | |
20974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20975 | else | |
20976 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20977 | /* confdefs.h. */ |
20978 | _ACEOF | |
20979 | cat confdefs.h >>conftest.$ac_ext | |
20980 | cat >>conftest.$ac_ext <<_ACEOF | |
20981 | /* end confdefs.h. */ | |
6a3a24fa JD |
20982 | #include <langinfo.h> |
20983 | int | |
20984 | main () | |
20985 | { | |
20986 | char* cs = nl_langinfo(CODESET); | |
20987 | ; | |
20988 | return 0; | |
20989 | } | |
20990 | _ACEOF | |
20991 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35996d22 | 20993 | (eval $ac_link) 2>conftest.er1 |
6a3a24fa | 20994 | ac_status=$? |
35996d22 AS |
20995 | grep -v '^ *+' conftest.er1 >conftest.err |
20996 | rm -f conftest.er1 | |
20997 | cat conftest.err >&5 | |
6a3a24fa JD |
20998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20999 | (exit $ac_status); } && | |
4494a266 JD |
21000 | { ac_try='test -z "$ac_c_werror_flag" |
21001 | || test ! -s conftest.err' | |
35996d22 AS |
21002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21003 | (eval $ac_try) 2>&5 | |
21004 | ac_status=$? | |
21005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21006 | (exit $ac_status); }; } && | |
21007 | { ac_try='test -s conftest$ac_exeext' | |
6a3a24fa JD |
21008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21009 | (eval $ac_try) 2>&5 | |
21010 | ac_status=$? | |
21011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21012 | (exit $ac_status); }; }; then | |
21013 | emacs_cv_langinfo_codeset=yes | |
21014 | else | |
21015 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21016 | sed 's/^/| /' conftest.$ac_ext >&5 |
21017 | ||
6a3a24fa JD |
21018 | emacs_cv_langinfo_codeset=no |
21019 | fi | |
35996d22 AS |
21020 | rm -f conftest.err conftest.$ac_objext \ |
21021 | conftest$ac_exeext conftest.$ac_ext | |
6a3a24fa JD |
21022 | |
21023 | fi | |
21024 | echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5 | |
21025 | echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6 | |
21026 | if test $emacs_cv_langinfo_codeset = yes; then | |
21027 | ||
21028 | cat >>confdefs.h <<\_ACEOF | |
21029 | #define HAVE_LANGINFO_CODESET 1 | |
21030 | _ACEOF | |
21031 | ||
21032 | fi | |
21033 | ||
c0d27fcc | 21034 | echo "$as_me:$LINENO: checking for size_t" >&5 |
503d2be0 AS |
21035 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
21036 | if test "${ac_cv_type_size_t+set}" = set; then | |
21037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8730a8da | 21038 | else |
503d2be0 | 21039 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21040 | /* confdefs.h. */ |
21041 | _ACEOF | |
21042 | cat confdefs.h >>conftest.$ac_ext | |
21043 | cat >>conftest.$ac_ext <<_ACEOF | |
21044 | /* end confdefs.h. */ | |
503d2be0 AS |
21045 | $ac_includes_default |
21046 | int | |
21047 | main () | |
21048 | { | |
21049 | if ((size_t *) 0) | |
21050 | return 0; | |
21051 | if (sizeof (size_t)) | |
21052 | return 0; | |
21053 | ; | |
21054 | return 0; | |
21055 | } | |
21056 | _ACEOF | |
21057 | rm -f conftest.$ac_objext | |
c0d27fcc | 21058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
35996d22 | 21059 | (eval $ac_compile) 2>conftest.er1 |
503d2be0 | 21060 | ac_status=$? |
35996d22 AS |
21061 | grep -v '^ *+' conftest.er1 >conftest.err |
21062 | rm -f conftest.er1 | |
21063 | cat conftest.err >&5 | |
c0d27fcc | 21064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 21065 | (exit $ac_status); } && |
4494a266 JD |
21066 | { ac_try='test -z "$ac_c_werror_flag" |
21067 | || test ! -s conftest.err' | |
35996d22 AS |
21068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21069 | (eval $ac_try) 2>&5 | |
21070 | ac_status=$? | |
21071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21072 | (exit $ac_status); }; } && | |
21073 | { ac_try='test -s conftest.$ac_objext' | |
c0d27fcc | 21074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
503d2be0 AS |
21075 | (eval $ac_try) 2>&5 |
21076 | ac_status=$? | |
c0d27fcc | 21077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 21078 | (exit $ac_status); }; }; then |
8730a8da DL |
21079 | ac_cv_type_size_t=yes |
21080 | else | |
503d2be0 | 21081 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
21082 | sed 's/^/| /' conftest.$ac_ext >&5 |
21083 | ||
503d2be0 | 21084 | ac_cv_type_size_t=no |
8730a8da | 21085 | fi |
35996d22 | 21086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8730a8da | 21087 | fi |
c0d27fcc | 21088 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
503d2be0 AS |
21089 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
21090 | if test $ac_cv_type_size_t = yes; then | |
503d2be0 | 21091 | |
c0d27fcc MR |
21092 | cat >>confdefs.h <<_ACEOF |
21093 | #define HAVE_SIZE_T 1 | |
21094 | _ACEOF | |
21095 | ||
8730a8da DL |
21096 | |
21097 | fi | |
21098 | ||
c0d27fcc | 21099 | |
973a76b1 DL |
21100 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
21101 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
21102 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
21103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21104 | else | |
21105 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
21106 | /* confdefs.h. */ |
21107 | _ACEOF | |
21108 | cat confdefs.h >>conftest.$ac_ext | |
21109 | cat >>conftest.$ac_ext <<_ACEOF | |
21110 | /* end confdefs.h. */ | |
973a76b1 DL |
21111 | $ac_includes_default |
21112 | # include <wchar.h> | |
21113 | int | |
21114 | main () | |
21115 | { | |
21116 | mbstate_t x; return sizeof x; | |
21117 | ; | |
21118 | return 0; | |
21119 | } | |
21120 | _ACEOF | |
21121 | rm -f conftest.$ac_objext | |
21122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 21123 | (eval $ac_compile) 2>conftest.er1 |
973a76b1 | 21124 | ac_status=$? |
35996d22 AS |
21125 | grep -v '^ *+' conftest.er1 >conftest.err |
21126 | rm -f conftest.er1 | |
21127 | cat conftest.err >&5 | |
973a76b1 DL |
21128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21129 | (exit $ac_status); } && | |
4494a266 JD |
21130 | { ac_try='test -z "$ac_c_werror_flag" |
21131 | || test ! -s conftest.err' | |
35996d22 AS |
21132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21133 | (eval $ac_try) 2>&5 | |
21134 | ac_status=$? | |
21135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21136 | (exit $ac_status); }; } && | |
21137 | { ac_try='test -s conftest.$ac_objext' | |
973a76b1 DL |
21138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21139 | (eval $ac_try) 2>&5 | |
21140 | ac_status=$? | |
21141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21142 | (exit $ac_status); }; }; then | |
21143 | ac_cv_type_mbstate_t=yes | |
21144 | else | |
21145 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21146 | sed 's/^/| /' conftest.$ac_ext >&5 |
21147 | ||
973a76b1 DL |
21148 | ac_cv_type_mbstate_t=no |
21149 | fi | |
35996d22 | 21150 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
973a76b1 DL |
21151 | fi |
21152 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
21153 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
21154 | if test $ac_cv_type_mbstate_t = yes; then | |
21155 | ||
21156 | cat >>confdefs.h <<\_ACEOF | |
21157 | #define HAVE_MBSTATE_T 1 | |
21158 | _ACEOF | |
21159 | ||
21160 | else | |
21161 | ||
21162 | cat >>confdefs.h <<\_ACEOF | |
21163 | #define mbstate_t int | |
21164 | _ACEOF | |
21165 | ||
21166 | fi | |
21167 | ||
22044edf DL |
21168 | echo "$as_me:$LINENO: checking for C restrict keyword" >&5 |
21169 | echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6 | |
21170 | if test "${emacs_cv_c_restrict+set}" = set; then | |
21171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21172 | else | |
21173 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
21174 | /* confdefs.h. */ |
21175 | _ACEOF | |
21176 | cat confdefs.h >>conftest.$ac_ext | |
21177 | cat >>conftest.$ac_ext <<_ACEOF | |
21178 | /* end confdefs.h. */ | |
22044edf DL |
21179 | void fred (int *restrict x); |
21180 | int | |
21181 | main () | |
21182 | { | |
b936fae4 | 21183 | |
22044edf DL |
21184 | ; |
21185 | return 0; | |
21186 | } | |
c0d27fcc | 21187 | _ACEOF |
22044edf DL |
21188 | rm -f conftest.$ac_objext |
21189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 21190 | (eval $ac_compile) 2>conftest.er1 |
22044edf | 21191 | ac_status=$? |
35996d22 AS |
21192 | grep -v '^ *+' conftest.er1 >conftest.err |
21193 | rm -f conftest.er1 | |
21194 | cat conftest.err >&5 | |
22044edf DL |
21195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21196 | (exit $ac_status); } && | |
4494a266 JD |
21197 | { ac_try='test -z "$ac_c_werror_flag" |
21198 | || test ! -s conftest.err' | |
35996d22 AS |
21199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21200 | (eval $ac_try) 2>&5 | |
21201 | ac_status=$? | |
21202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21203 | (exit $ac_status); }; } && | |
21204 | { ac_try='test -s conftest.$ac_objext' | |
22044edf DL |
21205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21206 | (eval $ac_try) 2>&5 | |
21207 | ac_status=$? | |
21208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21209 | (exit $ac_status); }; }; then | |
21210 | emacs_cv_c_restrict=yes | |
21211 | else | |
21212 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21213 | sed 's/^/| /' conftest.$ac_ext >&5 |
21214 | ||
22044edf | 21215 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21216 | /* confdefs.h. */ |
21217 | _ACEOF | |
21218 | cat confdefs.h >>conftest.$ac_ext | |
21219 | cat >>conftest.$ac_ext <<_ACEOF | |
21220 | /* end confdefs.h. */ | |
22044edf DL |
21221 | void fred (int *__restrict x); |
21222 | int | |
21223 | main () | |
21224 | { | |
c0d27fcc | 21225 | |
22044edf DL |
21226 | ; |
21227 | return 0; | |
21228 | } | |
c0d27fcc | 21229 | _ACEOF |
22044edf DL |
21230 | rm -f conftest.$ac_objext |
21231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 21232 | (eval $ac_compile) 2>conftest.er1 |
22044edf | 21233 | ac_status=$? |
35996d22 AS |
21234 | grep -v '^ *+' conftest.er1 >conftest.err |
21235 | rm -f conftest.er1 | |
21236 | cat conftest.err >&5 | |
22044edf DL |
21237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21238 | (exit $ac_status); } && | |
4494a266 JD |
21239 | { ac_try='test -z "$ac_c_werror_flag" |
21240 | || test ! -s conftest.err' | |
35996d22 AS |
21241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21242 | (eval $ac_try) 2>&5 | |
21243 | ac_status=$? | |
21244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21245 | (exit $ac_status); }; } && | |
21246 | { ac_try='test -s conftest.$ac_objext' | |
22044edf DL |
21247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21248 | (eval $ac_try) 2>&5 | |
21249 | ac_status=$? | |
21250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21251 | (exit $ac_status); }; }; then | |
21252 | emacs_cv_c_restrict=__restrict | |
21253 | else | |
21254 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21255 | sed 's/^/| /' conftest.$ac_ext >&5 |
21256 | ||
22044edf | 21257 | emacs_cv_c_restrict=no |
ba4481b5 | 21258 | fi |
35996d22 | 21259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 21260 | fi |
35996d22 | 21261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 21262 | fi |
22044edf DL |
21263 | echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 |
21264 | echo "${ECHO_T}$emacs_cv_c_restrict" >&6 | |
21265 | case "$emacs_cv_c_restrict" in | |
21266 | yes) emacs_restrict=restrict;; | |
21267 | no) emacs_restrict="";; | |
21268 | *) emacs_restrict="$emacs_cv_c_restrict";; | |
21269 | esac | |
21270 | if test "$emacs_restrict" != __restrict; then | |
b936fae4 | 21271 | |
22044edf DL |
21272 | cat >>confdefs.h <<_ACEOF |
21273 | #define __restrict $emacs_restrict | |
c0d27fcc | 21274 | _ACEOF |
ba4481b5 DL |
21275 | |
21276 | fi | |
ba4481b5 | 21277 | |
22044edf DL |
21278 | echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 |
21279 | echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6 | |
21280 | if test "${emacs_cv_c_restrict_arr+set}" = set; then | |
21281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21282 | else | |
21283 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
21284 | /* confdefs.h. */ |
21285 | _ACEOF | |
21286 | cat confdefs.h >>conftest.$ac_ext | |
21287 | cat >>conftest.$ac_ext <<_ACEOF | |
21288 | /* end confdefs.h. */ | |
22044edf DL |
21289 | void fred (int x[__restrict]); |
21290 | int | |
21291 | main () | |
21292 | { | |
b936fae4 | 21293 | |
22044edf DL |
21294 | ; |
21295 | return 0; | |
21296 | } | |
c0d27fcc | 21297 | _ACEOF |
22044edf DL |
21298 | rm -f conftest.$ac_objext |
21299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35996d22 | 21300 | (eval $ac_compile) 2>conftest.er1 |
22044edf | 21301 | ac_status=$? |
35996d22 AS |
21302 | grep -v '^ *+' conftest.er1 >conftest.err |
21303 | rm -f conftest.er1 | |
21304 | cat conftest.err >&5 | |
22044edf DL |
21305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21306 | (exit $ac_status); } && | |
4494a266 JD |
21307 | { ac_try='test -z "$ac_c_werror_flag" |
21308 | || test ! -s conftest.err' | |
35996d22 AS |
21309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21310 | (eval $ac_try) 2>&5 | |
21311 | ac_status=$? | |
21312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21313 | (exit $ac_status); }; } && | |
21314 | { ac_try='test -s conftest.$ac_objext' | |
22044edf DL |
21315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21316 | (eval $ac_try) 2>&5 | |
21317 | ac_status=$? | |
21318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21319 | (exit $ac_status); }; }; then | |
21320 | emacs_cv_c_restrict_arr=yes | |
21321 | else | |
21322 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21323 | sed 's/^/| /' conftest.$ac_ext >&5 |
21324 | ||
22044edf | 21325 | emacs_cv_c_restrict_arr=no |
ba4481b5 | 21326 | fi |
35996d22 | 21327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
22044edf DL |
21328 | fi |
21329 | echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 | |
21330 | echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6 | |
21331 | if test "$emacs_cv_c_restrict_arr" = yes; then | |
b936fae4 | 21332 | |
c0d27fcc | 21333 | cat >>confdefs.h <<\_ACEOF |
22044edf | 21334 | #define __restrict_arr __restrict |
c0d27fcc | 21335 | _ACEOF |
ba4481b5 | 21336 | |
ba4481b5 DL |
21337 | fi |
21338 | ||
c0d27fcc | 21339 | |
c0d27fcc | 21340 | |
22044edf DL |
21341 | # Set up the CFLAGS for real compilation, so we can substitute it. |
21342 | CFLAGS="$REAL_CFLAGS" | |
21343 | CPPFLAGS="$REAL_CPPFLAGS" | |
21344 | ||
21345 | #### Find out which version of Emacs this is. | |
21346 | version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
21347 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
21348 | if test x"${version}" = x; then | |
21349 | { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 | |
21350 | echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} | |
21351 | { (exit 1); exit 1; }; } | |
21352 | fi | |
21353 | ||
21354 | ### Specify what sort of things we'll be editing into Makefile and config.h. | |
21355 | ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
21356 | ||
21357 | ||
21358 | ||
21359 | ||
21360 | ||
21361 | ||
21362 | ||
21363 | ||
21364 | ||
21365 | ||
21366 | ||
21367 | ||
21368 | ||
21369 | ||
21370 | ||
21371 | ||
21372 | ||
21373 | ||
21374 | ||
21375 | ||
21376 | ||
21377 | ||
21378 | ||
21379 | ||
21380 | ||
21381 | ||
21382 | ||
21383 | ||
21384 | ||
21385 | ||
21386 | ||
21387 | ||
6a3a24fa | 21388 | |
22044edf DL |
21389 | |
21390 | ||
21391 | cat >>confdefs.h <<_ACEOF | |
21392 | #define EMACS_CONFIGURATION "${canonical}" | |
21393 | _ACEOF | |
21394 | ||
21395 | ||
21396 | cat >>confdefs.h <<_ACEOF | |
21397 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
21398 | _ACEOF | |
21399 | ||
21400 | ||
21401 | cat >>confdefs.h <<_ACEOF | |
21402 | #define config_machfile "${machfile}" | |
21403 | _ACEOF | |
21404 | ||
21405 | ||
21406 | cat >>confdefs.h <<_ACEOF | |
21407 | #define config_opsysfile "${opsysfile}" | |
21408 | _ACEOF | |
21409 | ||
21410 | ||
21411 | cat >>confdefs.h <<_ACEOF | |
21412 | #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
21413 | _ACEOF | |
21414 | ||
21415 | ||
21416 | cat >>confdefs.h <<_ACEOF | |
21417 | #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
21418 | _ACEOF | |
21419 | ||
21420 | ||
21421 | cat >>confdefs.h <<_ACEOF | |
21422 | #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
21423 | _ACEOF | |
21424 | ||
21425 | ||
21426 | cat >>confdefs.h <<_ACEOF | |
21427 | #define UNEXEC_SRC ${UNEXEC_SRC} | |
21428 | _ACEOF | |
21429 | ||
21430 | ||
21431 | if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
21432 | ||
21433 | cat >>confdefs.h <<\_ACEOF | |
21434 | #define HAVE_X_WINDOWS 1 | |
21435 | _ACEOF | |
21436 | ||
21437 | fi | |
21438 | if test "${USE_X_TOOLKIT}" != "none" ; then | |
21439 | ||
21440 | cat >>confdefs.h <<\_ACEOF | |
21441 | #define USE_X_TOOLKIT 1 | |
21442 | _ACEOF | |
21443 | ||
21444 | fi | |
21445 | if test "${HAVE_X11}" = "yes" ; then | |
21446 | ||
21447 | cat >>confdefs.h <<\_ACEOF | |
21448 | #define HAVE_X11 1 | |
21449 | _ACEOF | |
21450 | ||
21451 | fi | |
21452 | if test "${HAVE_XFREE386}" = "yes" ; then | |
21453 | ||
21454 | cat >>confdefs.h <<\_ACEOF | |
21455 | #define HAVE_XFREE386 1 | |
21456 | _ACEOF | |
21457 | ||
21458 | fi | |
21459 | if test "${HAVE_MENUS}" = "yes" ; then | |
21460 | ||
21461 | cat >>confdefs.h <<\_ACEOF | |
21462 | #define HAVE_MENUS 1 | |
21463 | _ACEOF | |
21464 | ||
21465 | fi | |
21466 | if test "${GNU_MALLOC}" = "yes" ; then | |
21467 | ||
21468 | cat >>confdefs.h <<\_ACEOF | |
21469 | #define GNU_MALLOC 1 | |
21470 | _ACEOF | |
21471 | ||
21472 | fi | |
21473 | if test "${REL_ALLOC}" = "yes" ; then | |
21474 | ||
21475 | cat >>confdefs.h <<\_ACEOF | |
21476 | #define REL_ALLOC 1 | |
21477 | _ACEOF | |
21478 | ||
21479 | fi | |
21480 | ||
21481 | ||
21482 | ||
c0d27fcc MR |
21483 | |
21484 | ||
ba4481b5 | 21485 | #### Report on what we decided to do. |
488dd4c4 JD |
21486 | #### Report GTK as a toolkit, even if it doesn't use Xt. |
21487 | #### It makes printing result more understandable as using GTK sets | |
21488 | #### toolkit_scroll_bars to yes by default. | |
21489 | if test "${HAVE_GTK}" = "yes"; then | |
21490 | USE_X_TOOLKIT=GTK | |
21491 | fi | |
21492 | ||
ba4481b5 DL |
21493 | echo " |
21494 | Configured for \`${canonical}'. | |
21495 | ||
21496 | Where should the build process find the source code? ${srcdir} | |
21497 | What operating system and machine description files should Emacs use? | |
21498 | \`${opsysfile}' and \`${machfile}' | |
21499 | What compiler should emacs be built with? ${CC} ${CFLAGS} | |
21500 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
73b77ee5 | 21501 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
ef9e4345 | 21502 | Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
ba4481b5 | 21503 | What window system should Emacs use? ${window_system} |
8e967cf7 | 21504 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
ba4481b5 DL |
21505 | |
21506 | if test -n "${x_includes}"; then | |
21507 | echo " Where do we find X Windows header files? ${x_includes}" | |
21508 | else | |
21509 | echo " Where do we find X Windows header files? Standard dirs" | |
21510 | fi | |
21511 | if test -n "${x_libraries}"; then | |
21512 | echo " Where do we find X Windows libraries? ${x_libraries}" | |
21513 | else | |
21514 | echo " Where do we find X Windows libraries? Standard dirs" | |
21515 | fi | |
21516 | ||
21517 | echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
21518 | echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
21519 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
21520 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
21521 | echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
21522 | echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
21523 | echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
21524 | echo | |
21525 | ||
05cf15c6 JD |
21526 | if test "$emacs_cv_randomheap" = warn; then |
21527 | { echo "$as_me:$LINENO: WARNING: | |
21528 | ********************************************************************** | |
21529 | ||
21530 | Heap start address is randomized and no workaround is known. | |
21531 | Emacs will probably dump core when temacs is run in the build phase. | |
21532 | Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS' | |
21533 | for further information. | |
21534 | ||
21535 | ********************************************************************** | |
21536 | " >&5 | |
21537 | echo "$as_me: WARNING: | |
21538 | ********************************************************************** | |
21539 | ||
21540 | Heap start address is randomized and no workaround is known. | |
21541 | Emacs will probably dump core when temacs is run in the build phase. | |
21542 | Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS' | |
21543 | for further information. | |
21544 | ||
21545 | ********************************************************************** | |
21546 | " >&2;} | |
21547 | fi | |
21548 | ||
ba4481b5 DL |
21549 | # Remove any trailing slashes in these variables. |
21550 | test "${prefix}" != NONE && | |
21551 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
21552 | test "${exec_prefix}" != NONE && | |
21553 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
21554 | ||
d0e9bfd2 GM |
21555 | ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
21556 | ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
21557 | ## from Makefile.c can correctly provide the arg `-traditional' to the | |
21558 | ## C preprocessor. | |
21559 | ||
503d2be0 | 21560 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21561 | /* confdefs.h. */ |
21562 | _ACEOF | |
21563 | cat confdefs.h >>conftest.$ac_ext | |
21564 | cat >>conftest.$ac_ext <<_ACEOF | |
21565 | /* end confdefs.h. */ | |
d0e9bfd2 | 21566 | yes..yes |
503d2be0 | 21567 | _ACEOF |
d0e9bfd2 | 21568 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bae0ccf | 21569 | $EGREP "yes..yes" >/dev/null 2>&1; then |
d0e9bfd2 GM |
21570 | CPP_NEED_TRADITIONAL=no |
21571 | else | |
d0e9bfd2 GM |
21572 | CPP_NEED_TRADITIONAL=yes |
21573 | fi | |
21574 | rm -f conftest* | |
21575 | ||
c0d27fcc | 21576 | |
6bae0ccf DL |
21577 | ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile" |
21578 | ac_config_commands="$ac_config_commands default" | |
503d2be0 | 21579 | cat >confcache <<\_ACEOF |
ba4481b5 DL |
21580 | # This file is a shell script that caches the results of configure |
21581 | # tests run on this system so they can be shared between configure | |
503d2be0 AS |
21582 | # scripts and configure runs, see configure's option --config-cache. |
21583 | # It is not useful on other systems. If it contains results you don't | |
21584 | # want to keep, you may remove or edit it. | |
ba4481b5 | 21585 | # |
503d2be0 AS |
21586 | # config.status only pays attention to the cache file if you give it |
21587 | # the --recheck option to rerun configure. | |
ba4481b5 | 21588 | # |
6bae0ccf | 21589 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
503d2be0 AS |
21590 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
21591 | # following values. | |
21592 | ||
21593 | _ACEOF | |
21594 | ||
ba4481b5 DL |
21595 | # The following way of writing the cache mishandles newlines in values, |
21596 | # but we know of no workaround that is simple, portable, and efficient. | |
21597 | # So, don't put newlines in cache variables' values. | |
21598 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21599 | # and sets the high bit in the cache file unless we assign to the vars. | |
503d2be0 AS |
21600 | { |
21601 | (set) 2>&1 | | |
21602 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21603 | *ac_space=\ *) | |
21604 | # `set' does not quote correctly, so add quotes (double-quote | |
21605 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21606 | sed -n \ | |
35996d22 AS |
21607 | "s/'/'\\\\''/g; |
21608 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
503d2be0 AS |
21609 | ;; |
21610 | *) | |
21611 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21612 | sed -n \ | |
35996d22 | 21613 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
503d2be0 AS |
21614 | ;; |
21615 | esac; | |
21616 | } | | |
21617 | sed ' | |
21618 | t clear | |
21619 | : clear | |
21620 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21621 | t end | |
21622 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21623 | : end' >>confcache | |
19650fd6 | 21624 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
ba4481b5 | 21625 | if test -w $cache_file; then |
503d2be0 AS |
21626 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
21627 | cat confcache >$cache_file | |
ba4481b5 DL |
21628 | else |
21629 | echo "not updating unwritable cache $cache_file" | |
21630 | fi | |
21631 | fi | |
21632 | rm -f confcache | |
21633 | ||
ba4481b5 DL |
21634 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
21635 | # Let make expand exec_prefix. | |
21636 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21637 | ||
503d2be0 AS |
21638 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
21639 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
21640 | # trailing colons and then remove the whole line if VPATH becomes empty | |
21641 | # (actually we leave an empty line to preserve line numbers). | |
ba4481b5 | 21642 | if test "x$srcdir" = x.; then |
35996d22 | 21643 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
503d2be0 AS |
21644 | s/:*\$(srcdir):*/:/; |
21645 | s/:*\${srcdir}:*/:/; | |
21646 | s/:*@srcdir@:*/:/; | |
35996d22 | 21647 | s/^\([^=]*=[ ]*\):*/\1/; |
503d2be0 | 21648 | s/:*$//; |
35996d22 | 21649 | s/^[^=]*=[ ]*$//; |
503d2be0 | 21650 | }' |
ba4481b5 DL |
21651 | fi |
21652 | ||
ba4481b5 DL |
21653 | DEFS=-DHAVE_CONFIG_H |
21654 | ||
6bae0ccf DL |
21655 | ac_libobjs= |
21656 | ac_ltlibobjs= | |
21657 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
21658 | # 1. Remove the extension, and $U if already installed. | |
21659 | ac_i=`echo "$ac_i" | | |
35996d22 | 21660 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
6bae0ccf DL |
21661 | # 2. Add them. |
21662 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
21663 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
21664 | done | |
21665 | LIBOBJS=$ac_libobjs | |
21666 | ||
21667 | LTLIBOBJS=$ac_ltlibobjs | |
21668 | ||
21669 | ||
c0d27fcc | 21670 | |
ba4481b5 | 21671 | : ${CONFIG_STATUS=./config.status} |
503d2be0 AS |
21672 | ac_clean_files_save=$ac_clean_files |
21673 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
c0d27fcc | 21674 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
503d2be0 AS |
21675 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
21676 | cat >$CONFIG_STATUS <<_ACEOF | |
21677 | #! $SHELL | |
c0d27fcc | 21678 | # Generated by $as_me. |
ba4481b5 | 21679 | # Run this file to recreate the current configuration. |
ba4481b5 | 21680 | # Compiler output produced by configure, useful for debugging |
503d2be0 | 21681 | # configure, is in config.log if it exists. |
ba4481b5 | 21682 | |
503d2be0 | 21683 | debug=false |
19650fd6 AS |
21684 | ac_cs_recheck=false |
21685 | ac_cs_silent=false | |
503d2be0 | 21686 | SHELL=\${CONFIG_SHELL-$SHELL} |
503d2be0 AS |
21687 | _ACEOF |
21688 | ||
21689 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c0d27fcc MR |
21690 | ## --------------------- ## |
21691 | ## M4sh Initialization. ## | |
21692 | ## --------------------- ## | |
21693 | ||
503d2be0 AS |
21694 | # Be Bourne compatible |
21695 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
21696 | emulate sh | |
21697 | NULLCMD=: | |
6bae0ccf DL |
21698 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21699 | # is contrary to our usage. Disable this feature. | |
21700 | alias -g '${1+"$@"}'='"$@"' | |
503d2be0 AS |
21701 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
21702 | set -o posix | |
21703 | fi | |
35996d22 | 21704 | DUALCASE=1; export DUALCASE # for MKS sh |
503d2be0 | 21705 | |
c0d27fcc | 21706 | # Support unset when possible. |
35996d22 | 21707 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
c0d27fcc MR |
21708 | as_unset=unset |
21709 | else | |
21710 | as_unset=false | |
21711 | fi | |
21712 | ||
6bae0ccf DL |
21713 | |
21714 | # Work around bugs in pre-3.0 UWIN ksh. | |
21715 | $as_unset ENV MAIL MAILPATH | |
21716 | PS1='$ ' | |
21717 | PS2='> ' | |
21718 | PS4='+ ' | |
21719 | ||
21720 | # NLS nuisances. | |
19650fd6 AS |
21721 | for as_var in \ |
21722 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
21723 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
21724 | LC_TELEPHONE LC_TIME | |
6bae0ccf | 21725 | do |
35996d22 | 21726 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6bae0ccf DL |
21727 | eval $as_var=C; export $as_var |
21728 | else | |
21729 | $as_unset $as_var | |
21730 | fi | |
21731 | done | |
21732 | ||
21733 | # Required to use basename. | |
21734 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
21735 | as_expr=expr | |
21736 | else | |
21737 | as_expr=false | |
21738 | fi | |
21739 | ||
21740 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
21741 | as_basename=basename | |
21742 | else | |
21743 | as_basename=false | |
21744 | fi | |
c0d27fcc MR |
21745 | |
21746 | ||
503d2be0 | 21747 | # Name of the executable. |
6bae0ccf | 21748 | as_me=`$as_basename "$0" || |
c0d27fcc MR |
21749 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
21750 | X"$0" : 'X\(//\)$' \| \ | |
21751 | X"$0" : 'X\(/\)$' \| \ | |
21752 | . : '\(.\)' 2>/dev/null || | |
21753 | echo X/"$0" | | |
21754 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
21755 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
21756 | /^X\/\(\/\).*/{ s//\1/; q; } | |
21757 | s/.*/./; q'` | |
21758 | ||
6bae0ccf | 21759 | |
c0d27fcc MR |
21760 | # PATH needs CR, and LINENO needs CR and PATH. |
21761 | # Avoid depending upon Character Ranges. | |
21762 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
21763 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
21764 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
21765 | as_cr_digits='0123456789' | |
21766 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
21767 | ||
21768 | # The user is always right. | |
21769 | if test "${PATH_SEPARATOR+set}" != set; then | |
19650fd6 AS |
21770 | echo "#! /bin/sh" >conf$$.sh |
21771 | echo "exit 0" >>conf$$.sh | |
21772 | chmod +x conf$$.sh | |
21773 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
c0d27fcc MR |
21774 | PATH_SEPARATOR=';' |
21775 | else | |
21776 | PATH_SEPARATOR=: | |
21777 | fi | |
19650fd6 | 21778 | rm -f conf$$.sh |
c0d27fcc MR |
21779 | fi |
21780 | ||
21781 | ||
21782 | as_lineno_1=$LINENO | |
21783 | as_lineno_2=$LINENO | |
21784 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21785 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21786 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
21787 | # Find who we are. Look in the path if we contain no path at all | |
21788 | # relative or not. | |
21789 | case $0 in | |
21790 | *[\\/]* ) as_myself=$0 ;; | |
21791 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21792 | for as_dir in $PATH | |
21793 | do | |
21794 | IFS=$as_save_IFS | |
21795 | test -z "$as_dir" && as_dir=. | |
21796 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
21797 | done | |
21798 | ||
21799 | ;; | |
21800 | esac | |
21801 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
21802 | # in which case we are not to be found in the path. | |
21803 | if test "x$as_myself" = x; then | |
21804 | as_myself=$0 | |
21805 | fi | |
21806 | if test ! -f "$as_myself"; then | |
21807 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
21808 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
21809 | { (exit 1); exit 1; }; } | |
21810 | fi | |
21811 | case $CONFIG_SHELL in | |
21812 | '') | |
21813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21814 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
21815 | do | |
21816 | IFS=$as_save_IFS | |
21817 | test -z "$as_dir" && as_dir=. | |
21818 | for as_base in sh bash ksh sh5; do | |
21819 | case $as_dir in | |
21820 | /*) | |
21821 | if ("$as_dir/$as_base" -c ' | |
21822 | as_lineno_1=$LINENO | |
21823 | as_lineno_2=$LINENO | |
21824 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21825 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21826 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
6bae0ccf DL |
21827 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
21828 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
c0d27fcc MR |
21829 | CONFIG_SHELL=$as_dir/$as_base |
21830 | export CONFIG_SHELL | |
21831 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
21832 | fi;; | |
21833 | esac | |
21834 | done | |
21835 | done | |
21836 | ;; | |
21837 | esac | |
21838 | ||
21839 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
21840 | # uniformly replaced by the line number. The first 'sed' inserts a | |
21841 | # line-number line before each line; the second 'sed' does the real | |
21842 | # work. The second script uses 'N' to pair each line-number line | |
21843 | # with the numbered line, and appends trailing '-' during | |
21844 | # substitution so that $LINENO is not a special case at line end. | |
21845 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
21846 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
21847 | sed '=' <$as_myself | | |
21848 | sed ' | |
21849 | N | |
21850 | s,$,-, | |
21851 | : loop | |
21852 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
21853 | t loop | |
21854 | s,-$,, | |
21855 | s,^['$as_cr_digits']*\n,, | |
21856 | ' >$as_me.lineno && | |
21857 | chmod +x $as_me.lineno || | |
21858 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
21859 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
21860 | { (exit 1); exit 1; }; } | |
21861 | ||
21862 | # Don't try to exec as it changes $[0], causing all sort of problems | |
21863 | # (the dirname of $[0] is not the place where we might find the | |
21864 | # original and so on. Autoconf is especially sensible to this). | |
21865 | . ./$as_me.lineno | |
21866 | # Exit status is that of the last command. | |
21867 | exit | |
21868 | } | |
21869 | ||
21870 | ||
21871 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
21872 | *c*,-n*) ECHO_N= ECHO_C=' | |
21873 | ' ECHO_T=' ' ;; | |
21874 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
21875 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
21876 | esac | |
503d2be0 AS |
21877 | |
21878 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
21879 | as_expr=expr | |
21880 | else | |
21881 | as_expr=false | |
21882 | fi | |
21883 | ||
21884 | rm -f conf$$ conf$$.exe conf$$.file | |
21885 | echo >conf$$.file | |
21886 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
21887 | # We could just check for DJGPP; but this test a) works b) is more generic | |
21888 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
21889 | if test -f conf$$.exe; then | |
21890 | # Don't use ln at all; we don't have any links | |
21891 | as_ln_s='cp -p' | |
21892 | else | |
21893 | as_ln_s='ln -s' | |
21894 | fi | |
21895 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
21896 | as_ln_s=ln | |
21897 | else | |
21898 | as_ln_s='cp -p' | |
21899 | fi | |
21900 | rm -f conf$$ conf$$.exe conf$$.file | |
21901 | ||
6bae0ccf DL |
21902 | if mkdir -p . 2>/dev/null; then |
21903 | as_mkdir_p=: | |
21904 | else | |
35996d22 | 21905 | test -d ./-p && rmdir ./-p |
6bae0ccf DL |
21906 | as_mkdir_p=false |
21907 | fi | |
21908 | ||
503d2be0 AS |
21909 | as_executable_p="test -f" |
21910 | ||
c0d27fcc | 21911 | # Sed expression to map a string onto a valid CPP name. |
35996d22 | 21912 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
c0d27fcc MR |
21913 | |
21914 | # Sed expression to map a string onto a valid variable name. | |
35996d22 | 21915 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
503d2be0 | 21916 | |
503d2be0 AS |
21917 | |
21918 | # IFS | |
21919 | # We need space, tab and new line, in precisely that order. | |
21920 | as_nl=' | |
21921 | ' | |
21922 | IFS=" $as_nl" | |
21923 | ||
21924 | # CDPATH. | |
6bae0ccf | 21925 | $as_unset CDPATH |
503d2be0 AS |
21926 | |
21927 | exec 6>&1 | |
21928 | ||
c0d27fcc MR |
21929 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
21930 | # report actual input values of CONFIG_FILES etc. instead of their | |
21931 | # values after options handling. Logging --version etc. is OK. | |
21932 | exec 5>>config.log | |
21933 | { | |
21934 | echo | |
21935 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
21936 | ## Running $as_me. ## | |
21937 | _ASBOX | |
21938 | } >&5 | |
21939 | cat >&5 <<_CSEOF | |
21940 | ||
21941 | This file was extended by $as_me, which was | |
35996d22 | 21942 | generated by GNU Autoconf 2.59. Invocation command line was |
c0d27fcc MR |
21943 | |
21944 | CONFIG_FILES = $CONFIG_FILES | |
21945 | CONFIG_HEADERS = $CONFIG_HEADERS | |
21946 | CONFIG_LINKS = $CONFIG_LINKS | |
21947 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
21948 | $ $0 $@ | |
21949 | ||
21950 | _CSEOF | |
21951 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
21952 | echo >&5 | |
503d2be0 AS |
21953 | _ACEOF |
21954 | ||
21955 | # Files that config.status was made for. | |
21956 | if test -n "$ac_config_files"; then | |
21957 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
21958 | fi | |
21959 | ||
21960 | if test -n "$ac_config_headers"; then | |
21961 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
21962 | fi | |
21963 | ||
21964 | if test -n "$ac_config_links"; then | |
21965 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
21966 | fi | |
21967 | ||
21968 | if test -n "$ac_config_commands"; then | |
21969 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
21970 | fi | |
21971 | ||
c0d27fcc | 21972 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
21973 | |
21974 | ac_cs_usage="\ | |
21975 | \`$as_me' instantiates files from templates according to the | |
21976 | current configuration. | |
21977 | ||
21978 | Usage: $0 [OPTIONS] [FILE]... | |
21979 | ||
21980 | -h, --help print this help, then exit | |
21981 | -V, --version print version number, then exit | |
19650fd6 | 21982 | -q, --quiet do not print progress messages |
503d2be0 AS |
21983 | -d, --debug don't remove temporary files |
21984 | --recheck update $as_me by reconfiguring in the same conditions | |
21985 | --file=FILE[:TEMPLATE] | |
35996d22 | 21986 | instantiate the configuration file FILE |
503d2be0 | 21987 | --header=FILE[:TEMPLATE] |
35996d22 | 21988 | instantiate the configuration header FILE |
503d2be0 AS |
21989 | |
21990 | Configuration files: | |
21991 | $config_files | |
21992 | ||
21993 | Configuration headers: | |
21994 | $config_headers | |
21995 | ||
21996 | Configuration commands: | |
21997 | $config_commands | |
21998 | ||
21999 | Report bugs to <bug-autoconf@gnu.org>." | |
c0d27fcc | 22000 | _ACEOF |
503d2be0 | 22001 | |
c0d27fcc | 22002 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
22003 | ac_cs_version="\\ |
22004 | config.status | |
35996d22 | 22005 | configured by $0, generated by GNU Autoconf 2.59, |
503d2be0 AS |
22006 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
22007 | ||
35996d22 | 22008 | Copyright (C) 2003 Free Software Foundation, Inc. |
503d2be0 AS |
22009 | This config.status script is free software; the Free Software Foundation |
22010 | gives unlimited permission to copy, distribute and modify it." | |
22011 | srcdir=$srcdir | |
22012 | INSTALL="$INSTALL" | |
c0d27fcc | 22013 | _ACEOF |
503d2be0 | 22014 | |
c0d27fcc | 22015 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
22016 | # If no file are specified by the user, then we need to provide default |
22017 | # value. By we need to know if files were specified by the user. | |
22018 | ac_need_defaults=: | |
22019 | while test $# != 0 | |
ba4481b5 | 22020 | do |
503d2be0 AS |
22021 | case $1 in |
22022 | --*=*) | |
22023 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
22024 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
6bae0ccf DL |
22025 | ac_shift=: |
22026 | ;; | |
22027 | -*) | |
22028 | ac_option=$1 | |
22029 | ac_optarg=$2 | |
22030 | ac_shift=shift | |
503d2be0 | 22031 | ;; |
503d2be0 AS |
22032 | *) # This is not an option, so the user has probably given explicit |
22033 | # arguments. | |
6bae0ccf | 22034 | ac_option=$1 |
503d2be0 AS |
22035 | ac_need_defaults=false;; |
22036 | esac | |
22037 | ||
6bae0ccf | 22038 | case $ac_option in |
503d2be0 | 22039 | # Handling of the options. |
c0d27fcc | 22040 | _ACEOF |
f57bd967 | 22041 | cat >>$CONFIG_STATUS <<\_ACEOF |
19650fd6 AS |
22042 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
22043 | ac_cs_recheck=: ;; | |
503d2be0 AS |
22044 | --version | --vers* | -V ) |
22045 | echo "$ac_cs_version"; exit 0 ;; | |
22046 | --he | --h) | |
22047 | # Conflict between --help and --header | |
c0d27fcc | 22048 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
503d2be0 AS |
22049 | Try \`$0 --help' for more information." >&5 |
22050 | echo "$as_me: error: ambiguous option: $1 | |
22051 | Try \`$0 --help' for more information." >&2;} | |
22052 | { (exit 1); exit 1; }; };; | |
22053 | --help | --hel | -h ) | |
22054 | echo "$ac_cs_usage"; exit 0 ;; | |
22055 | --debug | --d* | -d ) | |
22056 | debug=: ;; | |
22057 | --file | --fil | --fi | --f ) | |
6bae0ccf DL |
22058 | $ac_shift |
22059 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
503d2be0 AS |
22060 | ac_need_defaults=false;; |
22061 | --header | --heade | --head | --hea ) | |
6bae0ccf DL |
22062 | $ac_shift |
22063 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
503d2be0 | 22064 | ac_need_defaults=false;; |
19650fd6 AS |
22065 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
22066 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
22067 | ac_cs_silent=: ;; | |
503d2be0 AS |
22068 | |
22069 | # This is an error. | |
c0d27fcc | 22070 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
503d2be0 AS |
22071 | Try \`$0 --help' for more information." >&5 |
22072 | echo "$as_me: error: unrecognized option: $1 | |
22073 | Try \`$0 --help' for more information." >&2;} | |
22074 | { (exit 1); exit 1; }; } ;; | |
22075 | ||
22076 | *) ac_config_targets="$ac_config_targets $1" ;; | |
22077 | ||
ba4481b5 | 22078 | esac |
503d2be0 | 22079 | shift |
ba4481b5 DL |
22080 | done |
22081 | ||
19650fd6 AS |
22082 | ac_configure_extra_args= |
22083 | ||
22084 | if $ac_cs_silent; then | |
22085 | exec 6>/dev/null | |
22086 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
22087 | fi | |
22088 | ||
22089 | _ACEOF | |
22090 | cat >>$CONFIG_STATUS <<_ACEOF | |
22091 | if \$ac_cs_recheck; then | |
22092 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
22093 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
22094 | fi | |
22095 | ||
503d2be0 | 22096 | _ACEOF |
ba4481b5 | 22097 | |
c0d27fcc | 22098 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
22099 | # |
22100 | # INIT-COMMANDS section. | |
22101 | # | |
ba4481b5 | 22102 | |
503d2be0 AS |
22103 | GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" |
22104 | ||
c0d27fcc MR |
22105 | _ACEOF |
22106 | ||
503d2be0 | 22107 | |
c0d27fcc MR |
22108 | |
22109 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
22110 | for ac_config_target in $ac_config_targets |
22111 | do | |
22112 | case "$ac_config_target" in | |
22113 | # Handling of arguments. | |
22114 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
22115 | "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
22116 | "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
22117 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
22118 | "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | |
22119 | "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; | |
22120 | "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | |
23b24859 | 22121 | "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;; |
981626b7 | 22122 | "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;; |
503d2be0 AS |
22123 | "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
22124 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
22125 | "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
c0d27fcc | 22126 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
503d2be0 AS |
22127 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
22128 | { (exit 1); exit 1; }; };; | |
22129 | esac | |
ba4481b5 | 22130 | done |
503d2be0 AS |
22131 | |
22132 | # If the user did not use the arguments to specify the items to instantiate, | |
22133 | # then the envvar interface is used. Set only those that are not. | |
22134 | # We use the long form for the default assignment because of an extremely | |
22135 | # bizarre bug on SunOS 4.1.3. | |
22136 | if $ac_need_defaults; then | |
22137 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
22138 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
22139 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
ba4481b5 | 22140 | fi |
503d2be0 | 22141 | |
19650fd6 AS |
22142 | # Have a temporary directory for convenience. Make it in the build tree |
22143 | # simply because there is no reason to put it here, and in addition, | |
22144 | # creating and moving files from /tmp can sometimes cause problems. | |
503d2be0 AS |
22145 | # Create a temporary directory, and hook for its removal unless debugging. |
22146 | $debug || | |
22147 | { | |
22148 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
22149 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
22150 | } | |
22151 | ||
22152 | # Create a (secure) tmp directory for tmp files. | |
19650fd6 | 22153 | |
503d2be0 | 22154 | { |
19650fd6 | 22155 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
503d2be0 AS |
22156 | test -n "$tmp" && test -d "$tmp" |
22157 | } || | |
22158 | { | |
19650fd6 | 22159 | tmp=./confstat$$-$RANDOM |
503d2be0 AS |
22160 | (umask 077 && mkdir $tmp) |
22161 | } || | |
22162 | { | |
19650fd6 | 22163 | echo "$me: cannot create a temporary directory in ." >&2 |
503d2be0 AS |
22164 | { (exit 1); exit 1; } |
22165 | } | |
22166 | ||
c0d27fcc | 22167 | _ACEOF |
503d2be0 | 22168 | |
c0d27fcc | 22169 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
22170 | |
22171 | # | |
22172 | # CONFIG_FILES section. | |
22173 | # | |
22174 | ||
22175 | # No need to generate the scripts if there are no CONFIG_FILES. | |
22176 | # This happens for instance when ./config.status config.h | |
22177 | if test -n "\$CONFIG_FILES"; then | |
22178 | # Protect against being on the right side of a sed subst in config.status. | |
22179 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
22180 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
22181 | s,@SHELL@,$SHELL,;t t | |
c0d27fcc MR |
22182 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
22183 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
22184 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
22185 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
22186 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
22187 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
503d2be0 AS |
22188 | s,@exec_prefix@,$exec_prefix,;t t |
22189 | s,@prefix@,$prefix,;t t | |
22190 | s,@program_transform_name@,$program_transform_name,;t t | |
22191 | s,@bindir@,$bindir,;t t | |
22192 | s,@sbindir@,$sbindir,;t t | |
22193 | s,@libexecdir@,$libexecdir,;t t | |
22194 | s,@datadir@,$datadir,;t t | |
22195 | s,@sysconfdir@,$sysconfdir,;t t | |
22196 | s,@sharedstatedir@,$sharedstatedir,;t t | |
22197 | s,@localstatedir@,$localstatedir,;t t | |
22198 | s,@libdir@,$libdir,;t t | |
22199 | s,@includedir@,$includedir,;t t | |
22200 | s,@oldincludedir@,$oldincludedir,;t t | |
22201 | s,@infodir@,$infodir,;t t | |
22202 | s,@mandir@,$mandir,;t t | |
503d2be0 AS |
22203 | s,@build_alias@,$build_alias,;t t |
22204 | s,@host_alias@,$host_alias,;t t | |
22205 | s,@target_alias@,$target_alias,;t t | |
c0d27fcc | 22206 | s,@DEFS@,$DEFS,;t t |
503d2be0 AS |
22207 | s,@ECHO_C@,$ECHO_C,;t t |
22208 | s,@ECHO_N@,$ECHO_N,;t t | |
22209 | s,@ECHO_T@,$ECHO_T,;t t | |
503d2be0 | 22210 | s,@LIBS@,$LIBS,;t t |
19650fd6 | 22211 | s,@MAINT@,$MAINT,;t t |
503d2be0 AS |
22212 | s,@build@,$build,;t t |
22213 | s,@build_cpu@,$build_cpu,;t t | |
22214 | s,@build_vendor@,$build_vendor,;t t | |
22215 | s,@build_os@,$build_os,;t t | |
22216 | s,@host@,$host,;t t | |
22217 | s,@host_cpu@,$host_cpu,;t t | |
22218 | s,@host_vendor@,$host_vendor,;t t | |
22219 | s,@host_os@,$host_os,;t t | |
22220 | s,@CC@,$CC,;t t | |
22221 | s,@CFLAGS@,$CFLAGS,;t t | |
22222 | s,@LDFLAGS@,$LDFLAGS,;t t | |
22223 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
22224 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
22225 | s,@EXEEXT@,$EXEEXT,;t t | |
22226 | s,@OBJEXT@,$OBJEXT,;t t | |
22227 | s,@LN_S@,$LN_S,;t t | |
22228 | s,@CPP@,$CPP,;t t | |
22229 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
22230 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
22231 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
503d2be0 AS |
22232 | s,@RANLIB@,$RANLIB,;t t |
22233 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
9e71690e | 22234 | s,@INSTALL_INFO@,$INSTALL_INFO,;t t |
6bae0ccf | 22235 | s,@EGREP@,$EGREP,;t t |
503d2be0 AS |
22236 | s,@LIBSOUND@,$LIBSOUND,;t t |
22237 | s,@SET_MAKE@,$SET_MAKE,;t t | |
488dd4c4 JD |
22238 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
22239 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
22240 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
503d2be0 AS |
22241 | s,@ALLOCA@,$ALLOCA,;t t |
22242 | s,@liblockfile@,$liblockfile,;t t | |
22243 | s,@LIBOBJS@,$LIBOBJS,;t t | |
22244 | s,@NEED_SETGID@,$NEED_SETGID,;t t | |
22245 | s,@KMEM_GROUP@,$KMEM_GROUP,;t t | |
22246 | s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t | |
22247 | s,@version@,$version,;t t | |
22248 | s,@configuration@,$configuration,;t t | |
22249 | s,@canonical@,$canonical,;t t | |
22250 | s,@srcdir@,$srcdir,;t t | |
22251 | s,@lispdir@,$lispdir,;t t | |
22252 | s,@locallisppath@,$locallisppath,;t t | |
22253 | s,@lisppath@,$lisppath,;t t | |
22254 | s,@x_default_search_path@,$x_default_search_path,;t t | |
22255 | s,@etcdir@,$etcdir,;t t | |
22256 | s,@archlibdir@,$archlibdir,;t t | |
22257 | s,@docdir@,$docdir,;t t | |
22258 | s,@bitmapdir@,$bitmapdir,;t t | |
98418dba CW |
22259 | s,@gamedir@,$gamedir,;t t |
22260 | s,@gameuser@,$gameuser,;t t | |
503d2be0 AS |
22261 | s,@c_switch_system@,$c_switch_system,;t t |
22262 | s,@c_switch_machine@,$c_switch_machine,;t t | |
22263 | s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t | |
22264 | s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t | |
22265 | s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t | |
22266 | s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t | |
22267 | s,@machfile@,$machfile,;t t | |
22268 | s,@opsysfile@,$opsysfile,;t t | |
6a3a24fa | 22269 | s,@carbon_appdir@,$carbon_appdir,;t t |
6bae0ccf | 22270 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
503d2be0 AS |
22271 | CEOF |
22272 | ||
c0d27fcc | 22273 | _ACEOF |
ba4481b5 | 22274 | |
c0d27fcc | 22275 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
22276 | # Split the substitutions into bite-sized pieces for seds with |
22277 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22278 | ac_max_sed_lines=48 | |
22279 | ac_sed_frag=1 # Number of current file. | |
22280 | ac_beg=1 # First line for current file. | |
22281 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
22282 | ac_more_lines=: | |
22283 | ac_sed_cmds= | |
22284 | while $ac_more_lines; do | |
22285 | if test $ac_beg -gt 1; then | |
22286 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22287 | else | |
22288 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22289 | fi | |
22290 | if test ! -s $tmp/subs.frag; then | |
22291 | ac_more_lines=false | |
22292 | else | |
22293 | # The purpose of the label and of the branching condition is to | |
22294 | # speed up the sed processing (if there are no `@' at all, there | |
22295 | # is no need to browse any of the substitutions). | |
22296 | # These are the two extra sed commands mentioned above. | |
22297 | (echo ':t | |
22298 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
22299 | if test -z "$ac_sed_cmds"; then | |
35996d22 | 22300 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
503d2be0 | 22301 | else |
35996d22 | 22302 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
503d2be0 AS |
22303 | fi |
22304 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
22305 | ac_beg=$ac_end | |
22306 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
22307 | fi | |
22308 | done | |
22309 | if test -z "$ac_sed_cmds"; then | |
22310 | ac_sed_cmds=cat | |
22311 | fi | |
22312 | fi # test -n "$CONFIG_FILES" | |
ba4481b5 | 22313 | |
c0d27fcc MR |
22314 | _ACEOF |
22315 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 | 22316 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
ba4481b5 | 22317 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
503d2be0 AS |
22318 | case $ac_file in |
22319 | - | *:- | *:-:* ) # input from stdin | |
35996d22 AS |
22320 | cat >$tmp/stdin |
22321 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22322 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
503d2be0 | 22323 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
35996d22 | 22324 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
503d2be0 | 22325 | * ) ac_file_in=$ac_file.in ;; |
ba4481b5 DL |
22326 | esac |
22327 | ||
503d2be0 | 22328 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
c0d27fcc MR |
22329 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
22330 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22331 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
22332 | X"$ac_file" : 'X\(//\)$' \| \ | |
22333 | X"$ac_file" : 'X\(/\)' \| \ | |
22334 | . : '\(.\)' 2>/dev/null || | |
503d2be0 AS |
22335 | echo X"$ac_file" | |
22336 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22337 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22338 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22339 | /^X\(\/\).*/{ s//\1/; q; } | |
22340 | s/.*/./; q'` | |
6bae0ccf DL |
22341 | { if $as_mkdir_p; then |
22342 | mkdir -p "$ac_dir" | |
22343 | else | |
22344 | as_dir="$ac_dir" | |
22345 | as_dirs= | |
22346 | while test ! -d "$as_dir"; do | |
22347 | as_dirs="$as_dir $as_dirs" | |
22348 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22349 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22350 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
22351 | X"$as_dir" : 'X\(//\)$' \| \ | |
22352 | X"$as_dir" : 'X\(/\)' \| \ | |
22353 | . : '\(.\)' 2>/dev/null || | |
6bae0ccf DL |
22354 | echo X"$as_dir" | |
22355 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22356 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22357 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22358 | /^X\(\/\).*/{ s//\1/; q; } | |
22359 | s/.*/./; q'` | |
22360 | done | |
22361 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22362 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22363 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22364 | { (exit 1); exit 1; }; }; } | |
503d2be0 | 22365 | |
c0d27fcc | 22366 | ac_builddir=. |
98418dba | 22367 | |
c0d27fcc MR |
22368 | if test "$ac_dir" != .; then |
22369 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22370 | # A "../" for each directory in $ac_dir_suffix. | |
22371 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22372 | else | |
22373 | ac_dir_suffix= ac_top_builddir= | |
22374 | fi | |
22375 | ||
22376 | case $srcdir in | |
22377 | .) # No --srcdir option. We are building in place. | |
22378 | ac_srcdir=. | |
22379 | if test -z "$ac_top_builddir"; then | |
22380 | ac_top_srcdir=. | |
22381 | else | |
22382 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22383 | fi ;; | |
22384 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22385 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22386 | ac_top_srcdir=$srcdir ;; | |
ba4481b5 | 22387 | *) # Relative path. |
c0d27fcc MR |
22388 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
22389 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22390 | esac | |
35996d22 AS |
22391 | |
22392 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22393 | # the directories may not exist. | |
22394 | case `pwd` in | |
22395 | .) ac_abs_builddir="$ac_dir";; | |
22396 | *) | |
22397 | case "$ac_dir" in | |
22398 | .) ac_abs_builddir=`pwd`;; | |
22399 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22400 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22401 | esac;; | |
22402 | esac | |
22403 | case $ac_abs_builddir in | |
22404 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22405 | *) | |
22406 | case ${ac_top_builddir}. in | |
22407 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22408 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22409 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22410 | esac;; | |
22411 | esac | |
22412 | case $ac_abs_builddir in | |
22413 | .) ac_abs_srcdir=$ac_srcdir;; | |
22414 | *) | |
22415 | case $ac_srcdir in | |
22416 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22417 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22418 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22419 | esac;; | |
22420 | esac | |
22421 | case $ac_abs_builddir in | |
22422 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22423 | *) | |
22424 | case $ac_top_srcdir in | |
22425 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22426 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22427 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22428 | esac;; | |
22429 | esac | |
c0d27fcc | 22430 | |
ba4481b5 | 22431 | |
503d2be0 AS |
22432 | case $INSTALL in |
22433 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
c0d27fcc | 22434 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
ba4481b5 DL |
22435 | esac |
22436 | ||
4494a266 JD |
22437 | if test x"$ac_file" != x-; then |
22438 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
22439 | echo "$as_me: creating $ac_file" >&6;} | |
22440 | rm -f "$ac_file" | |
22441 | fi | |
503d2be0 AS |
22442 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
22443 | # use $as_me), people would be surprised to read: | |
c0d27fcc MR |
22444 | # /* config.h. Generated by config.status. */ |
22445 | if test x"$ac_file" = x-; then | |
22446 | configure_input= | |
22447 | else | |
22448 | configure_input="$ac_file. " | |
22449 | fi | |
22450 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
35996d22 | 22451 | sed 's,.*/,,'` by configure." |
503d2be0 AS |
22452 | |
22453 | # First look for the input files in the build tree, otherwise in the | |
22454 | # src tree. | |
22455 | ac_file_inputs=`IFS=: | |
22456 | for f in $ac_file_in; do | |
22457 | case $f in | |
22458 | -) echo $tmp/stdin ;; | |
22459 | [\\/$]*) | |
35996d22 AS |
22460 | # Absolute (can't be DOS-style, as IFS=:) |
22461 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
22462 | echo "$as_me: error: cannot find input file: $f" >&2;} |
22463 | { (exit 1); exit 1; }; } | |
35996d22 | 22464 | echo "$f";; |
503d2be0 | 22465 | *) # Relative |
35996d22 AS |
22466 | if test -f "$f"; then |
22467 | # Build tree | |
22468 | echo "$f" | |
22469 | elif test -f "$srcdir/$f"; then | |
22470 | # Source tree | |
22471 | echo "$srcdir/$f" | |
22472 | else | |
22473 | # /dev/null tree | |
22474 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
22475 | echo "$as_me: error: cannot find input file: $f" >&2;} |
22476 | { (exit 1); exit 1; }; } | |
35996d22 | 22477 | fi;; |
503d2be0 AS |
22478 | esac |
22479 | done` || { (exit 1); exit 1; } | |
c0d27fcc MR |
22480 | _ACEOF |
22481 | cat >>$CONFIG_STATUS <<_ACEOF | |
503d2be0 AS |
22482 | sed "$ac_vpsub |
22483 | $extrasub | |
c0d27fcc MR |
22484 | _ACEOF |
22485 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
22486 | :t |
22487 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
22488 | s,@configure_input@,$configure_input,;t t | |
22489 | s,@srcdir@,$ac_srcdir,;t t | |
c0d27fcc | 22490 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
503d2be0 | 22491 | s,@top_srcdir@,$ac_top_srcdir,;t t |
c0d27fcc MR |
22492 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
22493 | s,@builddir@,$ac_builddir,;t t | |
22494 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
22495 | s,@top_builddir@,$ac_top_builddir,;t t | |
22496 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
503d2be0 AS |
22497 | s,@INSTALL@,$ac_INSTALL,;t t |
22498 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
22499 | rm -f $tmp/stdin | |
22500 | if test x"$ac_file" != x-; then | |
22501 | mv $tmp/out $ac_file | |
22502 | else | |
22503 | cat $tmp/out | |
22504 | rm -f $tmp/out | |
22505 | fi | |
22506 | ||
22507 | done | |
c0d27fcc MR |
22508 | _ACEOF |
22509 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ba4481b5 | 22510 | |
503d2be0 AS |
22511 | # |
22512 | # CONFIG_HEADER section. | |
22513 | # | |
ba4481b5 DL |
22514 | |
22515 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22516 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22517 | # | |
22518 | # ac_d sets the value in "#define NAME VALUE" lines. | |
35996d22 AS |
22519 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22520 | ac_dB='[ ].*$,\1#\2' | |
503d2be0 AS |
22521 | ac_dC=' ' |
22522 | ac_dD=',;t' | |
22523 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
35996d22 | 22524 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
503d2be0 | 22525 | ac_uB='$,\1#\2define\3' |
ba4481b5 | 22526 | ac_uC=' ' |
503d2be0 | 22527 | ac_uD=',;t' |
ba4481b5 | 22528 | |
503d2be0 | 22529 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
ba4481b5 | 22530 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
503d2be0 AS |
22531 | case $ac_file in |
22532 | - | *:- | *:-:* ) # input from stdin | |
35996d22 AS |
22533 | cat >$tmp/stdin |
22534 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22535 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
503d2be0 | 22536 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
35996d22 | 22537 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
503d2be0 | 22538 | * ) ac_file_in=$ac_file.in ;; |
ba4481b5 DL |
22539 | esac |
22540 | ||
c0d27fcc | 22541 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
503d2be0 AS |
22542 | echo "$as_me: creating $ac_file" >&6;} |
22543 | ||
22544 | # First look for the input files in the build tree, otherwise in the | |
22545 | # src tree. | |
22546 | ac_file_inputs=`IFS=: | |
22547 | for f in $ac_file_in; do | |
22548 | case $f in | |
22549 | -) echo $tmp/stdin ;; | |
22550 | [\\/$]*) | |
35996d22 AS |
22551 | # Absolute (can't be DOS-style, as IFS=:) |
22552 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
22553 | echo "$as_me: error: cannot find input file: $f" >&2;} |
22554 | { (exit 1); exit 1; }; } | |
35996d22 AS |
22555 | # Do quote $f, to prevent DOS paths from being IFS'd. |
22556 | echo "$f";; | |
503d2be0 | 22557 | *) # Relative |
35996d22 AS |
22558 | if test -f "$f"; then |
22559 | # Build tree | |
22560 | echo "$f" | |
22561 | elif test -f "$srcdir/$f"; then | |
22562 | # Source tree | |
22563 | echo "$srcdir/$f" | |
22564 | else | |
22565 | # /dev/null tree | |
22566 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
503d2be0 AS |
22567 | echo "$as_me: error: cannot find input file: $f" >&2;} |
22568 | { (exit 1); exit 1; }; } | |
35996d22 | 22569 | fi;; |
503d2be0 AS |
22570 | esac |
22571 | done` || { (exit 1); exit 1; } | |
22572 | # Remove the trailing spaces. | |
35996d22 | 22573 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
503d2be0 | 22574 | |
c0d27fcc | 22575 | _ACEOF |
503d2be0 AS |
22576 | |
22577 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
22578 | # `conftest.undefs', that substitutes the proper values into | |
22579 | # config.h.in to produce config.h. The first handles `#define' | |
22580 | # templates, and the second `#undef' templates. | |
22581 | # And first: Protect against being on the right side of a sed subst in | |
22582 | # config.status. Protect against being in an unquoted here document | |
22583 | # in config.status. | |
22584 | rm -f conftest.defines conftest.undefs | |
22585 | # Using a here document instead of a string reduces the quoting nightmare. | |
22586 | # Putting comments in sed scripts is not portable. | |
22587 | # | |
22588 | # `end' is used to avoid that the second main sed command (meant for | |
22589 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
22590 | # See the Autoconf documentation for `clear'. | |
c0d27fcc | 22591 | cat >confdef2sed.sed <<\_ACEOF |
503d2be0 AS |
22592 | s/[\\&,]/\\&/g |
22593 | s,[\\$`],\\&,g | |
22594 | t clear | |
22595 | : clear | |
35996d22 | 22596 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
503d2be0 | 22597 | t end |
35996d22 | 22598 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
503d2be0 | 22599 | : end |
c0d27fcc | 22600 | _ACEOF |
503d2be0 AS |
22601 | # If some macros were called several times there might be several times |
22602 | # the same #defines, which is useless. Nevertheless, we may not want to | |
22603 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
22604 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
22605 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
22606 | rm -f confdef2sed.sed | |
ba4481b5 DL |
22607 | |
22608 | # This sed command replaces #undef with comments. This is necessary, for | |
22609 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22610 | # on some systems where configure will not decide to define it. | |
c0d27fcc | 22611 | cat >>conftest.undefs <<\_ACEOF |
35996d22 | 22612 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
c0d27fcc | 22613 | _ACEOF |
ba4481b5 | 22614 | |
503d2be0 AS |
22615 | # Break up conftest.defines because some shells have a limit on the size |
22616 | # of here documents, and old seds have small limits too (100 cmds). | |
22617 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
35996d22 | 22618 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
503d2be0 AS |
22619 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
22620 | echo ' :' >>$CONFIG_STATUS | |
22621 | rm -f conftest.tail | |
22622 | while grep . conftest.defines >/dev/null | |
22623 | do | |
22624 | # Write a limited-size here document to $tmp/defines.sed. | |
22625 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
22626 | # Speed up: don't consider the non `#define' lines. | |
35996d22 | 22627 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
503d2be0 AS |
22628 | # Work around the forget-to-reset-the-flag bug. |
22629 | echo 't clr' >>$CONFIG_STATUS | |
22630 | echo ': clr' >>$CONFIG_STATUS | |
22631 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
22632 | echo 'CEOF | |
22633 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
22634 | rm -f $tmp/in | |
22635 | mv $tmp/out $tmp/in | |
22636 | ' >>$CONFIG_STATUS | |
22637 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
22638 | rm -f conftest.defines | |
22639 | mv conftest.tail conftest.defines | |
22640 | done | |
22641 | rm -f conftest.defines | |
6bae0ccf | 22642 | echo ' fi # grep' >>$CONFIG_STATUS |
503d2be0 | 22643 | echo >>$CONFIG_STATUS |
ba4481b5 | 22644 | |
503d2be0 AS |
22645 | # Break up conftest.undefs because some shells have a limit on the size |
22646 | # of here documents, and old seds have small limits too (100 cmds). | |
22647 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
ba4481b5 | 22648 | rm -f conftest.tail |
503d2be0 | 22649 | while grep . conftest.undefs >/dev/null |
ba4481b5 | 22650 | do |
503d2be0 AS |
22651 | # Write a limited-size here document to $tmp/undefs.sed. |
22652 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
22653 | # Speed up: don't consider the non `#undef' | |
35996d22 | 22654 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
503d2be0 AS |
22655 | # Work around the forget-to-reset-the-flag bug. |
22656 | echo 't clr' >>$CONFIG_STATUS | |
22657 | echo ': clr' >>$CONFIG_STATUS | |
22658 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
ba4481b5 | 22659 | echo 'CEOF |
503d2be0 AS |
22660 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
22661 | rm -f $tmp/in | |
22662 | mv $tmp/out $tmp/in | |
22663 | ' >>$CONFIG_STATUS | |
22664 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
22665 | rm -f conftest.undefs | |
22666 | mv conftest.tail conftest.undefs | |
ba4481b5 | 22667 | done |
503d2be0 AS |
22668 | rm -f conftest.undefs |
22669 | ||
c0d27fcc | 22670 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
22671 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
22672 | # use $as_me), people would be surprised to read: | |
c0d27fcc | 22673 | # /* config.h. Generated by config.status. */ |
503d2be0 | 22674 | if test x"$ac_file" = x-; then |
c0d27fcc | 22675 | echo "/* Generated by configure. */" >$tmp/config.h |
ba4481b5 | 22676 | else |
c0d27fcc | 22677 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
503d2be0 AS |
22678 | fi |
22679 | cat $tmp/in >>$tmp/config.h | |
22680 | rm -f $tmp/in | |
22681 | if test x"$ac_file" != x-; then | |
19650fd6 | 22682 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
c0d27fcc | 22683 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
503d2be0 AS |
22684 | echo "$as_me: $ac_file is unchanged" >&6;} |
22685 | else | |
c0d27fcc MR |
22686 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
22687 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22688 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
22689 | X"$ac_file" : 'X\(//\)$' \| \ | |
22690 | X"$ac_file" : 'X\(/\)' \| \ | |
22691 | . : '\(.\)' 2>/dev/null || | |
503d2be0 AS |
22692 | echo X"$ac_file" | |
22693 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22694 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22695 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22696 | /^X\(\/\).*/{ s//\1/; q; } | |
22697 | s/.*/./; q'` | |
6bae0ccf DL |
22698 | { if $as_mkdir_p; then |
22699 | mkdir -p "$ac_dir" | |
22700 | else | |
22701 | as_dir="$ac_dir" | |
22702 | as_dirs= | |
22703 | while test ! -d "$as_dir"; do | |
22704 | as_dirs="$as_dir $as_dirs" | |
22705 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22706 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22707 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
22708 | X"$as_dir" : 'X\(//\)$' \| \ | |
22709 | X"$as_dir" : 'X\(/\)' \| \ | |
22710 | . : '\(.\)' 2>/dev/null || | |
6bae0ccf DL |
22711 | echo X"$as_dir" | |
22712 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22713 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22714 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22715 | /^X\(\/\).*/{ s//\1/; q; } | |
22716 | s/.*/./; q'` | |
22717 | done | |
22718 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22719 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22720 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22721 | { (exit 1); exit 1; }; }; } | |
503d2be0 | 22722 | |
503d2be0 AS |
22723 | rm -f $ac_file |
22724 | mv $tmp/config.h $ac_file | |
ba4481b5 | 22725 | fi |
503d2be0 AS |
22726 | else |
22727 | cat $tmp/config.h | |
22728 | rm -f $tmp/config.h | |
ba4481b5 | 22729 | fi |
503d2be0 | 22730 | done |
c0d27fcc MR |
22731 | _ACEOF |
22732 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
22733 | |
22734 | # | |
22735 | # CONFIG_COMMANDS section. | |
22736 | # | |
22737 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
22738 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
22739 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c0d27fcc MR |
22740 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
22741 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35996d22 AS |
22742 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
22743 | X"$ac_dest" : 'X\(//\)$' \| \ | |
22744 | X"$ac_dest" : 'X\(/\)' \| \ | |
22745 | . : '\(.\)' 2>/dev/null || | |
c0d27fcc MR |
22746 | echo X"$ac_dest" | |
22747 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22748 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22749 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22750 | /^X\(\/\).*/{ s//\1/; q; } | |
22751 | s/.*/./; q'` | |
35996d22 AS |
22752 | { if $as_mkdir_p; then |
22753 | mkdir -p "$ac_dir" | |
22754 | else | |
22755 | as_dir="$ac_dir" | |
22756 | as_dirs= | |
22757 | while test ! -d "$as_dir"; do | |
22758 | as_dirs="$as_dir $as_dirs" | |
22759 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22760 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22761 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22762 | X"$as_dir" : 'X\(//\)$' \| \ | |
22763 | X"$as_dir" : 'X\(/\)' \| \ | |
22764 | . : '\(.\)' 2>/dev/null || | |
22765 | echo X"$as_dir" | | |
22766 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22767 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22768 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22769 | /^X\(\/\).*/{ s//\1/; q; } | |
22770 | s/.*/./; q'` | |
22771 | done | |
22772 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22773 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22774 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22775 | { (exit 1); exit 1; }; }; } | |
22776 | ||
c0d27fcc MR |
22777 | ac_builddir=. |
22778 | ||
22779 | if test "$ac_dir" != .; then | |
22780 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22781 | # A "../" for each directory in $ac_dir_suffix. | |
22782 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22783 | else | |
22784 | ac_dir_suffix= ac_top_builddir= | |
22785 | fi | |
22786 | ||
22787 | case $srcdir in | |
22788 | .) # No --srcdir option. We are building in place. | |
22789 | ac_srcdir=. | |
22790 | if test -z "$ac_top_builddir"; then | |
22791 | ac_top_srcdir=. | |
22792 | else | |
22793 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22794 | fi ;; | |
22795 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22796 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22797 | ac_top_srcdir=$srcdir ;; | |
22798 | *) # Relative path. | |
22799 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22800 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22801 | esac | |
35996d22 AS |
22802 | |
22803 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22804 | # the directories may not exist. | |
22805 | case `pwd` in | |
22806 | .) ac_abs_builddir="$ac_dir";; | |
22807 | *) | |
22808 | case "$ac_dir" in | |
22809 | .) ac_abs_builddir=`pwd`;; | |
22810 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22811 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22812 | esac;; | |
22813 | esac | |
22814 | case $ac_abs_builddir in | |
22815 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22816 | *) | |
22817 | case ${ac_top_builddir}. in | |
22818 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22819 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22820 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22821 | esac;; | |
22822 | esac | |
22823 | case $ac_abs_builddir in | |
22824 | .) ac_abs_srcdir=$ac_srcdir;; | |
22825 | *) | |
22826 | case $ac_srcdir in | |
22827 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22828 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22829 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22830 | esac;; | |
22831 | esac | |
22832 | case $ac_abs_builddir in | |
22833 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22834 | *) | |
22835 | case $ac_top_srcdir in | |
22836 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22837 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22838 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22839 | esac;; | |
22840 | esac | |
ba4481b5 | 22841 | |
c0d27fcc MR |
22842 | |
22843 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
22844 | echo "$as_me: executing $ac_dest commands" >&6;} | |
503d2be0 AS |
22845 | case $ac_dest in |
22846 | default ) | |
ba4481b5 DL |
22847 | |
22848 | ### Make the necessary directories, if they don't exist. | |
22849 | for dir in etc lisp ; do | |
22850 | test -d ${dir} || mkdir ${dir} | |
22851 | done | |
22852 | ||
22853 | # Build src/Makefile from ${srcdir}/src/Makefile.c | |
22854 | # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
22855 | # This must be done after src/config.h is built, since we rely on that file. | |
22856 | ||
22857 | # Now get this: Some word that is part of the ${srcdir} directory name | |
22858 | # or the ${configuration} value might, just might, happen to be an | |
22859 | # identifier like `sun4' or `i386' or something, and be predefined by | |
22860 | # the C preprocessor to some helpful value like 1, or maybe the empty | |
22861 | # string. Needless to say consequent macro substitutions are less | |
22862 | # than conducive to the makefile finding the correct directory. | |
22863 | undefs="`echo $top_srcdir $configuration $canonical | | |
22864 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
22865 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
22866 | `" | |
22867 | ||
22868 | echo creating src/epaths.h | |
4aa6b955 | 22869 | ${MAKE-make} epaths-force |
ba4481b5 | 22870 | |
1c203d4c DL |
22871 | # As of 2000-11-19, newest development versions of GNU cpp preprocess |
22872 | # `..' to `. .' unless invoked with -traditional | |
22873 | ||
d0e9bfd2 | 22874 | if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
1c203d4c DL |
22875 | CPPFLAGS="$CPPFLAGS -traditional" |
22876 | fi | |
22877 | ||
ba4481b5 DL |
22878 | echo creating lib-src/Makefile |
22879 | ( cd lib-src | |
22880 | rm -f junk.c junk1.c junk2.c | |
22881 | sed -e '/start of cpp stuff/q' \ | |
22882 | < Makefile.c > junk1.c | |
22883 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 22884 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 22885 | < Makefile.c > junk.c |
503d2be0 | 22886 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
22887 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
22888 | cat junk1.c junk2.c > Makefile.new | |
22889 | rm -f junk.c junk1.c junk2.c | |
22890 | chmod 444 Makefile.new | |
22891 | mv -f Makefile.new Makefile | |
22892 | ) | |
22893 | ||
22894 | echo creating src/Makefile | |
22895 | ( cd src | |
22896 | rm -f junk.c junk1.c junk2.c | |
22897 | sed -e '/start of cpp stuff/q' \ | |
22898 | < Makefile.c > junk1.c | |
22899 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 22900 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 22901 | < Makefile.c > junk.c |
503d2be0 | 22902 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
22903 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
22904 | cat junk1.c junk2.c > Makefile.new | |
22905 | rm -f junk.c junk1.c junk2.c | |
22906 | chmod 444 Makefile.new | |
22907 | mv -f Makefile.new Makefile | |
22908 | ) | |
22909 | ||
503d2be0 | 22910 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
ba4481b5 | 22911 | echo creating src/.gdbinit |
503d2be0 | 22912 | echo source $srcdir/src/.gdbinit > src/.gdbinit |
ba4481b5 DL |
22913 | fi |
22914 | ||
22915 | # This is how we know whether to re-run configure in certain cases. | |
22916 | touch src/config.stamp | |
22917 | ||
503d2be0 AS |
22918 | ;; |
22919 | esac | |
22920 | done | |
c0d27fcc | 22921 | _ACEOF |
503d2be0 | 22922 | |
c0d27fcc | 22923 | cat >>$CONFIG_STATUS <<\_ACEOF |
ba4481b5 | 22924 | |
503d2be0 | 22925 | { (exit 0); exit 0; } |
c0d27fcc | 22926 | _ACEOF |
ba4481b5 | 22927 | chmod +x $CONFIG_STATUS |
503d2be0 AS |
22928 | ac_clean_files=$ac_clean_files_save |
22929 | ||
c0d27fcc | 22930 | |
503d2be0 AS |
22931 | # configure is writing to config.log, and then calls config.status. |
22932 | # config.status does its own redirection, appending to config.log. | |
22933 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
22934 | # by configure, so config.status won't be able to write to it; its | |
22935 | # output is simply discarded. So we exec the FD to /dev/null, | |
22936 | # effectively closing config.log, so it can be properly (re)opened and | |
22937 | # appended to by config.status. When coming back to configure, we | |
22938 | # need to make the FD available again. | |
22939 | if test "$no_create" != yes; then | |
22940 | ac_cs_success=: | |
19650fd6 AS |
22941 | ac_config_status_args= |
22942 | test "$silent" = yes && | |
22943 | ac_config_status_args="$ac_config_status_args --quiet" | |
503d2be0 | 22944 | exec 5>/dev/null |
19650fd6 | 22945 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
503d2be0 AS |
22946 | exec 5>>config.log |
22947 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
22948 | # would make configure fail if this is the last instruction. | |
22949 | $ac_cs_success || { (exit 1); exit 1; } | |
22950 | fi | |
f5f47add | 22951 | |
c0d27fcc | 22952 |