Commit | Line | Data |
---|---|---|
ba4481b5 | 1 | #! /bin/sh |
ba4481b5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
f053c89f | 3 | # Generated by GNU Autoconf 2.61. |
ba4481b5 | 4 | # |
ca81d7a0 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
040c474e | 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
ba4481b5 DL |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc MR |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
503d2be0 | 12 | |
f053c89f CY |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
503d2be0 AS |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
6bae0ccf DL |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19 | # is contrary to our usage. Disable this feature. | |
20 | alias -g '${1+"$@"}'='"$@"' | |
ca81d7a0 JD |
21 | setopt NO_GLOB_SUBST |
22 | else | |
f053c89f CY |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
503d2be0 | 27 | fi |
f053c89f CY |
28 | |
29 | ||
503d2be0 | 30 | |
ca81d7a0 JD |
31 | |
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
40 | # The user is always right. | |
41 | if test "${PATH_SEPARATOR+set}" != set; then | |
42 | echo "#! /bin/sh" >conf$$.sh | |
43 | echo "exit 0" >>conf$$.sh | |
44 | chmod +x conf$$.sh | |
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
46 | PATH_SEPARATOR=';' | |
47 | else | |
48 | PATH_SEPARATOR=: | |
49 | fi | |
50 | rm -f conf$$.sh | |
51 | fi | |
52 | ||
c0d27fcc | 53 | # Support unset when possible. |
edfaf76d | 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
c0d27fcc MR |
55 | as_unset=unset |
56 | else | |
57 | as_unset=false | |
58 | fi | |
59 | ||
6bae0ccf | 60 | |
ca81d7a0 JD |
61 | # IFS |
62 | # We need space, tab and new line, in precisely that order. Quoting is | |
63 | # there to prevent editors from complaining about space-tab. | |
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
65 | # splitting by setting IFS to empty value.) | |
66 | as_nl=' | |
67 | ' | |
68 | IFS=" "" $as_nl" | |
69 | ||
70 | # Find who we are. Look in the path if we contain no directory separator. | |
71 | case $0 in | |
72 | *[\\/]* ) as_myself=$0 ;; | |
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
74 | for as_dir in $PATH | |
75 | do | |
76 | IFS=$as_save_IFS | |
77 | test -z "$as_dir" && as_dir=. | |
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
79 | done | |
80 | IFS=$as_save_IFS | |
81 | ||
82 | ;; | |
83 | esac | |
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
85 | # in which case we are not to be found in the path. | |
86 | if test "x$as_myself" = x; then | |
87 | as_myself=$0 | |
88 | fi | |
89 | if test ! -f "$as_myself"; then | |
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
91 | { (exit 1); exit 1; } | |
92 | fi | |
93 | ||
6bae0ccf | 94 | # Work around bugs in pre-3.0 UWIN ksh. |
ca81d7a0 JD |
95 | for as_var in ENV MAIL MAILPATH |
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
97 | done | |
6bae0ccf DL |
98 | PS1='$ ' |
99 | PS2='> ' | |
100 | PS4='+ ' | |
101 | ||
102 | # NLS nuisances. | |
19650fd6 AS |
103 | for as_var in \ |
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
106 | LC_TELEPHONE LC_TIME | |
6bae0ccf | 107 | do |
edfaf76d | 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6bae0ccf DL |
109 | eval $as_var=C; export $as_var |
110 | else | |
ca81d7a0 | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
6bae0ccf DL |
112 | fi |
113 | done | |
114 | ||
115 | # Required to use basename. | |
ca81d7a0 JD |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6bae0ccf DL |
118 | as_expr=expr |
119 | else | |
120 | as_expr=false | |
121 | fi | |
122 | ||
ca81d7a0 | 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6bae0ccf DL |
124 | as_basename=basename |
125 | else | |
126 | as_basename=false | |
127 | fi | |
c0d27fcc MR |
128 | |
129 | ||
503d2be0 | 130 | # Name of the executable. |
ca81d7a0 | 131 | as_me=`$as_basename -- "$0" || |
c0d27fcc MR |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 | X"$0" : 'X\(//\)$' \| \ | |
ca81d7a0 | 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c0d27fcc | 135 | echo X/"$0" | |
ca81d7a0 JD |
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
137 | s//\1/ | |
138 | q | |
139 | } | |
140 | /^X\/\(\/\/\)$/{ | |
141 | s//\1/ | |
142 | q | |
143 | } | |
144 | /^X\/\(\/\).*/{ | |
145 | s//\1/ | |
146 | q | |
147 | } | |
148 | s/.*/./; q'` | |
c0d27fcc | 149 | |
ca81d7a0 JD |
150 | # CDPATH. |
151 | $as_unset CDPATH | |
8eeae1c9 | 152 | |
8eeae1c9 | 153 | |
ca81d7a0 JD |
154 | if test "x$CONFIG_SHELL" = x; then |
155 | if (eval ":") 2>/dev/null; then | |
156 | as_have_required=yes | |
157 | else | |
158 | as_have_required=no | |
8eeae1c9 JD |
159 | fi |
160 | ||
ca81d7a0 JD |
161 | if test $as_have_required = yes && (eval ": |
162 | (as_func_return () { | |
163 | (exit \$1) | |
164 | } | |
165 | as_func_success () { | |
166 | as_func_return 0 | |
167 | } | |
168 | as_func_failure () { | |
169 | as_func_return 1 | |
170 | } | |
171 | as_func_ret_success () { | |
172 | return 0 | |
173 | } | |
174 | as_func_ret_failure () { | |
175 | return 1 | |
176 | } | |
8eeae1c9 | 177 | |
ca81d7a0 JD |
178 | exitcode=0 |
179 | if as_func_success; then | |
180 | : | |
181 | else | |
182 | exitcode=1 | |
183 | echo as_func_success failed. | |
184 | fi | |
8eeae1c9 | 185 | |
ca81d7a0 JD |
186 | if as_func_failure; then |
187 | exitcode=1 | |
188 | echo as_func_failure succeeded. | |
189 | fi | |
190 | ||
191 | if as_func_ret_success; then | |
192 | : | |
193 | else | |
194 | exitcode=1 | |
195 | echo as_func_ret_success failed. | |
196 | fi | |
197 | ||
198 | if as_func_ret_failure; then | |
199 | exitcode=1 | |
200 | echo as_func_ret_failure succeeded. | |
201 | fi | |
202 | ||
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
204 | : | |
205 | else | |
206 | exitcode=1 | |
207 | echo positional parameters were not saved. | |
208 | fi | |
209 | ||
210 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
211 | ||
212 | ( | |
213 | as_lineno_1=\$LINENO | |
214 | as_lineno_2=\$LINENO | |
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
217 | ") 2> /dev/null; then | |
218 | : | |
219 | else | |
220 | as_candidate_shells= | |
c0d27fcc | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
f053c89f | 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
c0d27fcc MR |
223 | do |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
ca81d7a0 | 226 | case $as_dir in |
c0d27fcc | 227 | /*) |
ca81d7a0 JD |
228 | for as_base in sh bash ksh sh5; do |
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
230 | done;; | |
231 | esac | |
232 | done | |
233 | IFS=$as_save_IFS | |
234 | ||
235 | ||
236 | for as_shell in $as_candidate_shells $SHELL; do | |
237 | # Try only shells that exist, to save several forks. | |
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
ca81d7a0 JD |
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
241 | emulate sh | |
242 | NULLCMD=: | |
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
244 | # is contrary to our usage. Disable this feature. | |
245 | alias -g '${1+"$@"}'='"$@"' | |
246 | setopt NO_GLOB_SUBST | |
247 | else | |
f053c89f CY |
248 | case `(set -o) 2>/dev/null` in |
249 | *posix*) set -o posix ;; | |
250 | esac | |
251 | ||
ca81d7a0 | 252 | fi |
f053c89f | 253 | |
ca81d7a0 JD |
254 | |
255 | : | |
256 | _ASEOF | |
257 | }; then | |
258 | CONFIG_SHELL=$as_shell | |
259 | as_have_required=yes | |
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
ca81d7a0 JD |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
262 | emulate sh | |
263 | NULLCMD=: | |
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
265 | # is contrary to our usage. Disable this feature. | |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
f053c89f CY |
269 | case `(set -o) 2>/dev/null` in |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
ca81d7a0 | 273 | fi |
f053c89f | 274 | |
ca81d7a0 JD |
275 | |
276 | : | |
277 | (as_func_return () { | |
278 | (exit $1) | |
279 | } | |
280 | as_func_success () { | |
281 | as_func_return 0 | |
282 | } | |
283 | as_func_failure () { | |
284 | as_func_return 1 | |
285 | } | |
286 | as_func_ret_success () { | |
287 | return 0 | |
288 | } | |
289 | as_func_ret_failure () { | |
290 | return 1 | |
291 | } | |
292 | ||
293 | exitcode=0 | |
294 | if as_func_success; then | |
295 | : | |
296 | else | |
297 | exitcode=1 | |
298 | echo as_func_success failed. | |
299 | fi | |
300 | ||
301 | if as_func_failure; then | |
302 | exitcode=1 | |
303 | echo as_func_failure succeeded. | |
304 | fi | |
305 | ||
306 | if as_func_ret_success; then | |
307 | : | |
308 | else | |
309 | exitcode=1 | |
310 | echo as_func_ret_success failed. | |
311 | fi | |
312 | ||
313 | if as_func_ret_failure; then | |
314 | exitcode=1 | |
315 | echo as_func_ret_failure succeeded. | |
316 | fi | |
317 | ||
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
319 | : | |
320 | else | |
321 | exitcode=1 | |
322 | echo positional parameters were not saved. | |
323 | fi | |
324 | ||
325 | test $exitcode = 0) || { (exit 1); exit 1; } | |
326 | ||
327 | ( | |
8eeae1c9 JD |
328 | as_lineno_1=$LINENO |
329 | as_lineno_2=$LINENO | |
330 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
ca81d7a0 JD |
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
332 | ||
333 | _ASEOF | |
334 | }; then | |
335 | break | |
336 | fi | |
337 | ||
338 | fi | |
339 | ||
340 | done | |
341 | ||
342 | if test "x$CONFIG_SHELL" != x; then | |
343 | for as_var in BASH_ENV ENV | |
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
345 | done | |
346 | export CONFIG_SHELL | |
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
348 | fi | |
349 | ||
350 | ||
351 | if test $as_have_required = no; then | |
352 | echo This script requires a shell more modern than all the | |
353 | echo shells that I found on your system. Please install a | |
354 | echo modern shell, or manually run the script under such a | |
355 | echo shell if you do have one. | |
356 | { (exit 1); exit 1; } | |
357 | fi | |
358 | ||
359 | ||
360 | fi | |
361 | ||
362 | fi | |
363 | ||
364 | ||
365 | ||
366 | (eval "as_func_return () { | |
367 | (exit \$1) | |
368 | } | |
369 | as_func_success () { | |
370 | as_func_return 0 | |
371 | } | |
372 | as_func_failure () { | |
373 | as_func_return 1 | |
374 | } | |
375 | as_func_ret_success () { | |
376 | return 0 | |
377 | } | |
378 | as_func_ret_failure () { | |
379 | return 1 | |
380 | } | |
381 | ||
382 | exitcode=0 | |
383 | if as_func_success; then | |
384 | : | |
385 | else | |
386 | exitcode=1 | |
387 | echo as_func_success failed. | |
388 | fi | |
389 | ||
390 | if as_func_failure; then | |
391 | exitcode=1 | |
392 | echo as_func_failure succeeded. | |
393 | fi | |
394 | ||
395 | if as_func_ret_success; then | |
396 | : | |
397 | else | |
398 | exitcode=1 | |
399 | echo as_func_ret_success failed. | |
400 | fi | |
401 | ||
402 | if as_func_ret_failure; then | |
403 | exitcode=1 | |
404 | echo as_func_ret_failure succeeded. | |
405 | fi | |
406 | ||
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
408 | : | |
409 | else | |
410 | exitcode=1 | |
411 | echo positional parameters were not saved. | |
412 | fi | |
413 | ||
414 | test \$exitcode = 0") || { | |
7cc04609 DN |
415 | echo No shell found that supports shell functions. |
416 | echo Please tell autoconf@gnu.org about your system, | |
417 | echo including any error possibly output before this | |
418 | echo message | |
ca81d7a0 JD |
419 | } |
420 | ||
421 | ||
422 | ||
423 | as_lineno_1=$LINENO | |
424 | as_lineno_2=$LINENO | |
425 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
c0d27fcc MR |
427 | |
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
429 | # uniformly replaced by the line number. The first 'sed' inserts a | |
ca81d7a0 JD |
430 | # line-number line after each line using $LINENO; the second 'sed' |
431 | # does the real work. The second script uses 'N' to pair each | |
432 | # line-number line with the line containing $LINENO, and appends | |
433 | # trailing '-' during substitution so that $LINENO is not a special | |
434 | # case at line end. | |
c0d27fcc | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
ca81d7a0 JD |
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
437 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
438 | sed -n ' | |
439 | p | |
440 | /[$]LINENO/= | |
441 | ' <$as_myself | | |
c0d27fcc | 442 | sed ' |
ca81d7a0 JD |
443 | s/[$]LINENO.*/&-/ |
444 | t lineno | |
445 | b | |
446 | :lineno | |
c0d27fcc | 447 | N |
ca81d7a0 JD |
448 | :loop |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c0d27fcc | 450 | t loop |
ca81d7a0 | 451 | s/-\n.*// |
c0d27fcc | 452 | ' >$as_me.lineno && |
ca81d7a0 | 453 | chmod +x "$as_me.lineno" || |
c0d27fcc MR |
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
455 | { (exit 1); exit 1; }; } | |
456 | ||
457 | # Don't try to exec as it changes $[0], causing all sort of problems | |
458 | # (the dirname of $[0] is not the place where we might find the | |
ca81d7a0 JD |
459 | # original and so on. Autoconf is especially sensitive to this). |
460 | . "./$as_me.lineno" | |
c0d27fcc MR |
461 | # Exit status is that of the last command. |
462 | exit | |
463 | } | |
464 | ||
465 | ||
ca81d7a0 JD |
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
467 | as_dirname=dirname | |
468 | else | |
469 | as_dirname=false | |
470 | fi | |
471 | ||
472 | ECHO_C= ECHO_N= ECHO_T= | |
473 | case `echo -n x` in | |
474 | -n*) | |
475 | case `echo 'x\c'` in | |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
477 | *) ECHO_C='\c';; | |
478 | esac;; | |
479 | *) | |
480 | ECHO_N='-n';; | |
c0d27fcc | 481 | esac |
503d2be0 | 482 | |
ca81d7a0 JD |
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
503d2be0 AS |
485 | as_expr=expr |
486 | else | |
487 | as_expr=false | |
488 | fi | |
489 | ||
490 | rm -f conf$$ conf$$.exe conf$$.file | |
ca81d7a0 JD |
491 | if test -d conf$$.dir; then |
492 | rm -f conf$$.dir/conf$$.file | |
493 | else | |
494 | rm -f conf$$.dir | |
495 | mkdir conf$$.dir | |
496 | fi | |
503d2be0 AS |
497 | echo >conf$$.file |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
ca81d7a0 JD |
499 | as_ln_s='ln -s' |
500 | # ... but there are two gotchas: | |
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
503 | # In both cases, we have to default to `cp -p'. | |
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
503d2be0 | 505 | as_ln_s='cp -p' |
503d2be0 AS |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
507 | as_ln_s=ln | |
508 | else | |
509 | as_ln_s='cp -p' | |
510 | fi | |
ca81d7a0 JD |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
512 | rmdir conf$$.dir 2>/dev/null | |
503d2be0 | 513 | |
6bae0ccf DL |
514 | if mkdir -p . 2>/dev/null; then |
515 | as_mkdir_p=: | |
516 | else | |
edfaf76d | 517 | test -d ./-p && rmdir ./-p |
6bae0ccf DL |
518 | as_mkdir_p=false |
519 | fi | |
520 | ||
f053c89f CY |
521 | if test -x / >/dev/null 2>&1; then |
522 | as_test_x='test -x' | |
ca81d7a0 | 523 | else |
f053c89f CY |
524 | if ls -dL / >/dev/null 2>&1; then |
525 | as_ls_L_option=L | |
526 | else | |
527 | as_ls_L_option= | |
528 | fi | |
529 | as_test_x=' | |
530 | eval sh -c '\'' | |
531 | if test -d "$1"; then | |
532 | test -d "$1/."; | |
533 | else | |
534 | case $1 in | |
535 | -*)set "./$1";; | |
536 | esac; | |
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
538 | ???[sx]*):;;*)false;;esac;fi | |
539 | '\'' sh | |
540 | ' | |
ca81d7a0 | 541 | fi |
f053c89f | 542 | as_executable_p=$as_test_x |
503d2be0 | 543 | |
c0d27fcc | 544 | # Sed expression to map a string onto a valid CPP name. |
edfaf76d | 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
c0d27fcc MR |
546 | |
547 | # Sed expression to map a string onto a valid variable name. | |
edfaf76d | 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
503d2be0 | 549 | |
503d2be0 | 550 | |
c0d27fcc | 551 | |
ca81d7a0 | 552 | exec 7<&0 </dev/null 6>&1 |
503d2be0 AS |
553 | |
554 | # Name of the host. | |
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
556 | # so uname gets run too. | |
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
558 | ||
503d2be0 AS |
559 | # |
560 | # Initializations. | |
561 | # | |
ba4481b5 | 562 | ac_default_prefix=/usr/local |
ca81d7a0 | 563 | ac_clean_files= |
6bae0ccf | 564 | ac_config_libobj_dir=. |
ca81d7a0 | 565 | LIBOBJS= |
503d2be0 AS |
566 | cross_compiling=no |
567 | subdirs= | |
c0d27fcc MR |
568 | MFLAGS= |
569 | MAKEFLAGS= | |
503d2be0 AS |
570 | SHELL=${CONFIG_SHELL-/bin/sh} |
571 | ||
c0d27fcc MR |
572 | # Identity of this package. |
573 | PACKAGE_NAME= | |
574 | PACKAGE_TARNAME= | |
575 | PACKAGE_VERSION= | |
576 | PACKAGE_STRING= | |
577 | PACKAGE_BUGREPORT= | |
578 | ||
503d2be0 | 579 | ac_unique_file="src/lisp.h" |
6bae0ccf | 580 | ac_config_libobj_dir=src |
503d2be0 AS |
581 | # Factoring default headers for most tests. |
582 | ac_includes_default="\ | |
583 | #include <stdio.h> | |
f053c89f | 584 | #ifdef HAVE_SYS_TYPES_H |
503d2be0 AS |
585 | # include <sys/types.h> |
586 | #endif | |
f053c89f | 587 | #ifdef HAVE_SYS_STAT_H |
503d2be0 AS |
588 | # include <sys/stat.h> |
589 | #endif | |
f053c89f | 590 | #ifdef STDC_HEADERS |
503d2be0 AS |
591 | # include <stdlib.h> |
592 | # include <stddef.h> | |
593 | #else | |
f053c89f | 594 | # ifdef HAVE_STDLIB_H |
503d2be0 AS |
595 | # include <stdlib.h> |
596 | # endif | |
597 | #endif | |
f053c89f CY |
598 | #ifdef HAVE_STRING_H |
599 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
503d2be0 AS |
600 | # include <memory.h> |
601 | # endif | |
602 | # include <string.h> | |
603 | #endif | |
f053c89f | 604 | #ifdef HAVE_STRINGS_H |
503d2be0 AS |
605 | # include <strings.h> |
606 | #endif | |
f053c89f | 607 | #ifdef HAVE_INTTYPES_H |
503d2be0 | 608 | # include <inttypes.h> |
ca81d7a0 | 609 | #endif |
f053c89f | 610 | #ifdef HAVE_STDINT_H |
ca81d7a0 | 611 | # include <stdint.h> |
503d2be0 | 612 | #endif |
f053c89f | 613 | #ifdef HAVE_UNISTD_H |
503d2be0 AS |
614 | # include <unistd.h> |
615 | #endif" | |
ba4481b5 | 616 | |
f053c89f CY |
617 | ac_header_list= |
618 | ac_func_list= | |
ca81d7a0 JD |
619 | ac_subst_vars='SHELL |
620 | PATH_SEPARATOR | |
621 | PACKAGE_NAME | |
622 | PACKAGE_TARNAME | |
623 | PACKAGE_VERSION | |
624 | PACKAGE_STRING | |
625 | PACKAGE_BUGREPORT | |
626 | exec_prefix | |
627 | prefix | |
628 | program_transform_name | |
629 | bindir | |
630 | sbindir | |
631 | libexecdir | |
632 | datarootdir | |
633 | datadir | |
634 | sysconfdir | |
635 | sharedstatedir | |
636 | localstatedir | |
637 | includedir | |
638 | oldincludedir | |
639 | docdir | |
640 | infodir | |
641 | htmldir | |
642 | dvidir | |
643 | pdfdir | |
644 | psdir | |
645 | libdir | |
646 | localedir | |
647 | mandir | |
648 | DEFS | |
649 | ECHO_C | |
650 | ECHO_N | |
651 | ECHO_T | |
652 | LIBS | |
653 | build_alias | |
654 | host_alias | |
655 | target_alias | |
656 | MAINT | |
657 | build | |
658 | build_cpu | |
659 | build_vendor | |
660 | build_os | |
661 | host | |
662 | host_cpu | |
663 | host_vendor | |
664 | host_os | |
665 | CC | |
666 | CFLAGS | |
667 | LDFLAGS | |
668 | CPPFLAGS | |
669 | ac_ct_CC | |
670 | EXEEXT | |
671 | OBJEXT | |
672 | CPP | |
673 | GREP | |
674 | EGREP | |
675 | LN_S | |
676 | INSTALL_PROGRAM | |
677 | INSTALL_SCRIPT | |
678 | INSTALL_DATA | |
679 | RANLIB | |
680 | INSTALL_INFO | |
681 | GZIP_PROG | |
682 | LIBSOUND | |
683 | PKG_CONFIG | |
684 | ALSA_CFLAGS | |
685 | ALSA_LIBS | |
ca81d7a0 JD |
686 | CFLAGS_SOUND |
687 | SET_MAKE | |
688 | XMKMF | |
689 | GTK_CFLAGS | |
690 | GTK_LIBS | |
9d89ffd0 JD |
691 | XFT_CFLAGS |
692 | XFT_LIBS | |
ca81d7a0 JD |
693 | ALLOCA |
694 | liblockfile | |
695 | LIBOBJS | |
696 | NEED_SETGID | |
697 | KMEM_GROUP | |
698 | GETLOADAVG_LIBS | |
699 | GETOPT_H | |
700 | GETOPTOBJS | |
701 | version | |
702 | configuration | |
703 | canonical | |
704 | srcdir | |
705 | lispdir | |
706 | locallisppath | |
707 | lisppath | |
708 | x_default_search_path | |
709 | etcdir | |
710 | archlibdir | |
711 | bitmapdir | |
712 | gamedir | |
713 | gameuser | |
714 | c_switch_system | |
715 | c_switch_machine | |
716 | LD_SWITCH_X_SITE | |
717 | LD_SWITCH_X_SITE_AUX | |
718 | C_SWITCH_X_SITE | |
719 | X_TOOLKIT_TYPE | |
720 | machfile | |
721 | opsysfile | |
722 | carbon_appdir | |
723 | LTLIBOBJS' | |
6bae0ccf | 724 | ac_subst_files='' |
ca81d7a0 JD |
725 | ac_precious_vars='build_alias |
726 | host_alias | |
727 | target_alias | |
728 | CC | |
729 | CFLAGS | |
730 | LDFLAGS | |
f053c89f | 731 | LIBS |
ca81d7a0 JD |
732 | CPPFLAGS |
733 | CPP | |
734 | XMKMF' | |
735 | ||
c0d27fcc | 736 | |
ba4481b5 | 737 | # Initialize some variables set by options. |
503d2be0 AS |
738 | ac_init_help= |
739 | ac_init_version=false | |
ba4481b5 DL |
740 | # The variables have the same names as the options, with |
741 | # dashes changed to underlines. | |
503d2be0 | 742 | cache_file=/dev/null |
ba4481b5 | 743 | exec_prefix=NONE |
ba4481b5 | 744 | no_create= |
ba4481b5 DL |
745 | no_recursion= |
746 | prefix=NONE | |
747 | program_prefix=NONE | |
748 | program_suffix=NONE | |
749 | program_transform_name=s,x,x, | |
750 | silent= | |
751 | site= | |
752 | srcdir= | |
ba4481b5 DL |
753 | verbose= |
754 | x_includes=NONE | |
755 | x_libraries=NONE | |
503d2be0 AS |
756 | |
757 | # Installation directory options. | |
758 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
759 | # and all the variables that are supposed to be based on exec_prefix | |
760 | # by default will actually change. | |
761 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
ca81d7a0 | 762 | # (The list follows the same order as the GNU Coding Standards.) |
ba4481b5 DL |
763 | bindir='${exec_prefix}/bin' |
764 | sbindir='${exec_prefix}/sbin' | |
765 | libexecdir='${exec_prefix}/libexec' | |
ca81d7a0 JD |
766 | datarootdir='${prefix}/share' |
767 | datadir='${datarootdir}' | |
ba4481b5 DL |
768 | sysconfdir='${prefix}/etc' |
769 | sharedstatedir='${prefix}/com' | |
770 | localstatedir='${prefix}/var' | |
ba4481b5 DL |
771 | includedir='${prefix}/include' |
772 | oldincludedir='/usr/include' | |
ca81d7a0 JD |
773 | docdir='${datarootdir}/doc/${PACKAGE}' |
774 | infodir='${datarootdir}/info' | |
775 | htmldir='${docdir}' | |
776 | dvidir='${docdir}' | |
777 | pdfdir='${docdir}' | |
778 | psdir='${docdir}' | |
779 | libdir='${exec_prefix}/lib' | |
780 | localedir='${datarootdir}/locale' | |
781 | mandir='${datarootdir}/man' | |
ba4481b5 | 782 | |
ba4481b5 | 783 | ac_prev= |
ca81d7a0 | 784 | ac_dashdash= |
ba4481b5 DL |
785 | for ac_option |
786 | do | |
ba4481b5 DL |
787 | # If the previous option needs an argument, assign it. |
788 | if test -n "$ac_prev"; then | |
ca81d7a0 | 789 | eval $ac_prev=\$ac_option |
ba4481b5 DL |
790 | ac_prev= |
791 | continue | |
792 | fi | |
793 | ||
ca81d7a0 JD |
794 | case $ac_option in |
795 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
796 | *) ac_optarg=yes ;; | |
797 | esac | |
ba4481b5 DL |
798 | |
799 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
800 | ||
ca81d7a0 JD |
801 | case $ac_dashdash$ac_option in |
802 | --) | |
803 | ac_dashdash=yes ;; | |
ba4481b5 DL |
804 | |
805 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
806 | ac_prev=bindir ;; | |
807 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
503d2be0 | 808 | bindir=$ac_optarg ;; |
ba4481b5 DL |
809 | |
810 | -build | --build | --buil | --bui | --bu) | |
503d2be0 | 811 | ac_prev=build_alias ;; |
ba4481b5 | 812 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
503d2be0 | 813 | build_alias=$ac_optarg ;; |
ba4481b5 DL |
814 | |
815 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
816 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
817 | ac_prev=cache_file ;; | |
818 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
819 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
503d2be0 AS |
820 | cache_file=$ac_optarg ;; |
821 | ||
822 | --config-cache | -C) | |
823 | cache_file=config.cache ;; | |
ba4481b5 | 824 | |
ca81d7a0 | 825 | -datadir | --datadir | --datadi | --datad) |
ba4481b5 | 826 | ac_prev=datadir ;; |
ca81d7a0 | 827 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
503d2be0 | 828 | datadir=$ac_optarg ;; |
ba4481b5 | 829 | |
ca81d7a0 JD |
830 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
831 | | --dataroo | --dataro | --datar) | |
832 | ac_prev=datarootdir ;; | |
833 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
834 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
835 | datarootdir=$ac_optarg ;; | |
836 | ||
ba4481b5 | 837 | -disable-* | --disable-*) |
503d2be0 | 838 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ba4481b5 | 839 | # Reject names that are not valid shell variable names. |
f053c89f | 840 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
503d2be0 AS |
841 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
842 | { (exit 1); exit 1; }; } | |
f053c89f | 843 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
ca81d7a0 JD |
844 | eval enable_$ac_feature=no ;; |
845 | ||
846 | -docdir | --docdir | --docdi | --doc | --do) | |
847 | ac_prev=docdir ;; | |
848 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
849 | docdir=$ac_optarg ;; | |
850 | ||
851 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
852 | ac_prev=dvidir ;; | |
853 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
854 | dvidir=$ac_optarg ;; | |
ba4481b5 DL |
855 | |
856 | -enable-* | --enable-*) | |
503d2be0 | 857 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ba4481b5 | 858 | # Reject names that are not valid shell variable names. |
f053c89f | 859 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
503d2be0 AS |
860 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
861 | { (exit 1); exit 1; }; } | |
f053c89f | 862 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
ca81d7a0 | 863 | eval enable_$ac_feature=\$ac_optarg ;; |
ba4481b5 DL |
864 | |
865 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
866 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
867 | | --exec | --exe | --ex) | |
868 | ac_prev=exec_prefix ;; | |
869 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
870 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
871 | | --exec=* | --exe=* | --ex=*) | |
503d2be0 | 872 | exec_prefix=$ac_optarg ;; |
ba4481b5 DL |
873 | |
874 | -gas | --gas | --ga | --g) | |
875 | # Obsolete; use --with-gas. | |
876 | with_gas=yes ;; | |
877 | ||
503d2be0 AS |
878 | -help | --help | --hel | --he | -h) |
879 | ac_init_help=long ;; | |
880 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
881 | ac_init_help=recursive ;; | |
882 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
883 | ac_init_help=short ;; | |
ba4481b5 DL |
884 | |
885 | -host | --host | --hos | --ho) | |
503d2be0 | 886 | ac_prev=host_alias ;; |
ba4481b5 | 887 | -host=* | --host=* | --hos=* | --ho=*) |
503d2be0 | 888 | host_alias=$ac_optarg ;; |
ba4481b5 | 889 | |
ca81d7a0 JD |
890 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
891 | ac_prev=htmldir ;; | |
892 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
893 | | --ht=*) | |
894 | htmldir=$ac_optarg ;; | |
895 | ||
ba4481b5 DL |
896 | -includedir | --includedir | --includedi | --included | --include \ |
897 | | --includ | --inclu | --incl | --inc) | |
898 | ac_prev=includedir ;; | |
899 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
900 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
503d2be0 | 901 | includedir=$ac_optarg ;; |
ba4481b5 DL |
902 | |
903 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
904 | ac_prev=infodir ;; | |
905 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
503d2be0 | 906 | infodir=$ac_optarg ;; |
ba4481b5 DL |
907 | |
908 | -libdir | --libdir | --libdi | --libd) | |
909 | ac_prev=libdir ;; | |
910 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
503d2be0 | 911 | libdir=$ac_optarg ;; |
ba4481b5 DL |
912 | |
913 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
914 | | --libexe | --libex | --libe) | |
915 | ac_prev=libexecdir ;; | |
916 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
917 | | --libexe=* | --libex=* | --libe=*) | |
503d2be0 | 918 | libexecdir=$ac_optarg ;; |
ba4481b5 | 919 | |
ca81d7a0 JD |
920 | -localedir | --localedir | --localedi | --localed | --locale) |
921 | ac_prev=localedir ;; | |
922 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
923 | localedir=$ac_optarg ;; | |
924 | ||
ba4481b5 | 925 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
ca81d7a0 | 926 | | --localstate | --localstat | --localsta | --localst | --locals) |
ba4481b5 DL |
927 | ac_prev=localstatedir ;; |
928 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
ca81d7a0 | 929 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
503d2be0 | 930 | localstatedir=$ac_optarg ;; |
ba4481b5 DL |
931 | |
932 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
933 | ac_prev=mandir ;; | |
934 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
503d2be0 | 935 | mandir=$ac_optarg ;; |
ba4481b5 DL |
936 | |
937 | -nfp | --nfp | --nf) | |
938 | # Obsolete; use --without-fp. | |
939 | with_fp=no ;; | |
940 | ||
941 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c0d27fcc | 942 | | --no-cr | --no-c | -n) |
ba4481b5 DL |
943 | no_create=yes ;; |
944 | ||
945 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
946 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
947 | no_recursion=yes ;; | |
948 | ||
949 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
950 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
951 | | --oldin | --oldi | --old | --ol | --o) | |
952 | ac_prev=oldincludedir ;; | |
953 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
954 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
955 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503d2be0 | 956 | oldincludedir=$ac_optarg ;; |
ba4481b5 DL |
957 | |
958 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
959 | ac_prev=prefix ;; | |
960 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
503d2be0 | 961 | prefix=$ac_optarg ;; |
ba4481b5 DL |
962 | |
963 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
964 | | --program-pre | --program-pr | --program-p) | |
965 | ac_prev=program_prefix ;; | |
966 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
967 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
503d2be0 | 968 | program_prefix=$ac_optarg ;; |
ba4481b5 DL |
969 | |
970 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
971 | | --program-suf | --program-su | --program-s) | |
972 | ac_prev=program_suffix ;; | |
973 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
974 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
503d2be0 | 975 | program_suffix=$ac_optarg ;; |
ba4481b5 DL |
976 | |
977 | -program-transform-name | --program-transform-name \ | |
978 | | --program-transform-nam | --program-transform-na \ | |
979 | | --program-transform-n | --program-transform- \ | |
980 | | --program-transform | --program-transfor \ | |
981 | | --program-transfo | --program-transf \ | |
982 | | --program-trans | --program-tran \ | |
983 | | --progr-tra | --program-tr | --program-t) | |
984 | ac_prev=program_transform_name ;; | |
985 | -program-transform-name=* | --program-transform-name=* \ | |
986 | | --program-transform-nam=* | --program-transform-na=* \ | |
987 | | --program-transform-n=* | --program-transform-=* \ | |
988 | | --program-transform=* | --program-transfor=* \ | |
989 | | --program-transfo=* | --program-transf=* \ | |
990 | | --program-trans=* | --program-tran=* \ | |
991 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
503d2be0 | 992 | program_transform_name=$ac_optarg ;; |
ba4481b5 | 993 | |
ca81d7a0 JD |
994 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
995 | ac_prev=pdfdir ;; | |
996 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
997 | pdfdir=$ac_optarg ;; | |
998 | ||
999 | -psdir | --psdir | --psdi | --psd | --ps) | |
1000 | ac_prev=psdir ;; | |
1001 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1002 | psdir=$ac_optarg ;; | |
1003 | ||
ba4481b5 DL |
1004 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1005 | | -silent | --silent | --silen | --sile | --sil) | |
1006 | silent=yes ;; | |
1007 | ||
1008 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1009 | ac_prev=sbindir ;; | |
1010 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1011 | | --sbi=* | --sb=*) | |
503d2be0 | 1012 | sbindir=$ac_optarg ;; |
ba4481b5 DL |
1013 | |
1014 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1015 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1016 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1017 | | --sha | --sh) | |
1018 | ac_prev=sharedstatedir ;; | |
1019 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1020 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1021 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1022 | | --sha=* | --sh=*) | |
503d2be0 | 1023 | sharedstatedir=$ac_optarg ;; |
ba4481b5 DL |
1024 | |
1025 | -site | --site | --sit) | |
1026 | ac_prev=site ;; | |
1027 | -site=* | --site=* | --sit=*) | |
503d2be0 | 1028 | site=$ac_optarg ;; |
ba4481b5 DL |
1029 | |
1030 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1031 | ac_prev=srcdir ;; | |
1032 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
503d2be0 | 1033 | srcdir=$ac_optarg ;; |
ba4481b5 DL |
1034 | |
1035 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1036 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1037 | ac_prev=sysconfdir ;; | |
1038 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1039 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
503d2be0 | 1040 | sysconfdir=$ac_optarg ;; |
ba4481b5 DL |
1041 | |
1042 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
503d2be0 | 1043 | ac_prev=target_alias ;; |
ba4481b5 | 1044 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
503d2be0 | 1045 | target_alias=$ac_optarg ;; |
ba4481b5 DL |
1046 | |
1047 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1048 | verbose=yes ;; | |
1049 | ||
503d2be0 AS |
1050 | -version | --version | --versio | --versi | --vers | -V) |
1051 | ac_init_version=: ;; | |
ba4481b5 DL |
1052 | |
1053 | -with-* | --with-*) | |
503d2be0 | 1054 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ba4481b5 | 1055 | # Reject names that are not valid shell variable names. |
f053c89f | 1056 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
503d2be0 AS |
1057 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1058 | { (exit 1); exit 1; }; } | |
f053c89f | 1059 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
ca81d7a0 | 1060 | eval with_$ac_package=\$ac_optarg ;; |
ba4481b5 DL |
1061 | |
1062 | -without-* | --without-*) | |
503d2be0 | 1063 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ba4481b5 | 1064 | # Reject names that are not valid shell variable names. |
f053c89f | 1065 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
503d2be0 AS |
1066 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1067 | { (exit 1); exit 1; }; } | |
f053c89f | 1068 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
ca81d7a0 | 1069 | eval with_$ac_package=no ;; |
ba4481b5 DL |
1070 | |
1071 | --x) | |
1072 | # Obsolete; use --with-x. | |
1073 | with_x=yes ;; | |
1074 | ||
1075 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1076 | | --x-incl | --x-inc | --x-in | --x-i) | |
1077 | ac_prev=x_includes ;; | |
1078 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1079 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
503d2be0 | 1080 | x_includes=$ac_optarg ;; |
ba4481b5 DL |
1081 | |
1082 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1083 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1084 | ac_prev=x_libraries ;; | |
1085 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1086 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
503d2be0 | 1087 | x_libraries=$ac_optarg ;; |
ba4481b5 | 1088 | |
503d2be0 AS |
1089 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1090 | Try \`$0 --help' for more information." >&2 | |
1091 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1092 | ;; |
1093 | ||
503d2be0 AS |
1094 | *=*) |
1095 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1096 | # Reject names that are not valid shell variable names. | |
1097 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1098 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1099 | { (exit 1); exit 1; }; } | |
ca81d7a0 | 1100 | eval $ac_envvar=\$ac_optarg |
503d2be0 AS |
1101 | export $ac_envvar ;; |
1102 | ||
ba4481b5 | 1103 | *) |
503d2be0 AS |
1104 | # FIXME: should be removed in autoconf 3.0. |
1105 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1106 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1107 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1108 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
ba4481b5 DL |
1109 | ;; |
1110 | ||
1111 | esac | |
1112 | done | |
1113 | ||
1114 | if test -n "$ac_prev"; then | |
503d2be0 AS |
1115 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1116 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1117 | { (exit 1); exit 1; }; } | |
ba4481b5 | 1118 | fi |
ba4481b5 | 1119 | |
ca81d7a0 JD |
1120 | # Be sure to have absolute directory names. |
1121 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1122 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1123 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1124 | libdir localedir mandir | |
4b411bfe | 1125 | do |
ca81d7a0 | 1126 | eval ac_val=\$$ac_var |
4b411bfe | 1127 | case $ac_val in |
ca81d7a0 JD |
1128 | [\\/$]* | ?:[\\/]* ) continue;; |
1129 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
ba4481b5 | 1130 | esac |
ca81d7a0 JD |
1131 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1132 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1133 | done |
1134 | ||
503d2be0 AS |
1135 | # There might be people who depend on the old broken behavior: `$host' |
1136 | # used to hold the argument of --host etc. | |
c0d27fcc | 1137 | # FIXME: To remove some day. |
503d2be0 AS |
1138 | build=$build_alias |
1139 | host=$host_alias | |
1140 | target=$target_alias | |
1141 | ||
c0d27fcc | 1142 | # FIXME: To remove some day. |
503d2be0 AS |
1143 | if test "x$host_alias" != x; then |
1144 | if test "x$build_alias" = x; then | |
1145 | cross_compiling=maybe | |
1146 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1147 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1148 | elif test "x$build_alias" != "x$host_alias"; then | |
1149 | cross_compiling=yes | |
1150 | fi | |
1151 | fi | |
ba4481b5 | 1152 | |
503d2be0 AS |
1153 | ac_tool_prefix= |
1154 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
ba4481b5 | 1155 | |
503d2be0 | 1156 | test "$silent" = yes && exec 6>/dev/null |
ba4481b5 | 1157 | |
c0d27fcc | 1158 | |
ca81d7a0 JD |
1159 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1160 | ac_ls_di=`ls -di .` && | |
1161 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1162 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1163 | { (exit 1); exit 1; }; } | |
1164 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1165 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1166 | { (exit 1); exit 1; }; } | |
1167 | ||
1168 | ||
ba4481b5 DL |
1169 | # Find the source files, if location was not specified. |
1170 | if test -z "$srcdir"; then | |
1171 | ac_srcdir_defaulted=yes | |
ca81d7a0 JD |
1172 | # Try the directory containing this script, then the parent directory. |
1173 | ac_confdir=`$as_dirname -- "$0" || | |
c0d27fcc | 1174 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
edfaf76d LK |
1175 | X"$0" : 'X\(//\)[^/]' \| \ |
1176 | X"$0" : 'X\(//\)$' \| \ | |
ca81d7a0 | 1177 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c0d27fcc | 1178 | echo X"$0" | |
ca81d7a0 JD |
1179 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1180 | s//\1/ | |
1181 | q | |
1182 | } | |
1183 | /^X\(\/\/\)[^/].*/{ | |
1184 | s//\1/ | |
1185 | q | |
1186 | } | |
1187 | /^X\(\/\/\)$/{ | |
1188 | s//\1/ | |
1189 | q | |
1190 | } | |
1191 | /^X\(\/\).*/{ | |
1192 | s//\1/ | |
1193 | q | |
1194 | } | |
1195 | s/.*/./; q'` | |
ba4481b5 | 1196 | srcdir=$ac_confdir |
ca81d7a0 | 1197 | if test ! -r "$srcdir/$ac_unique_file"; then |
ba4481b5 DL |
1198 | srcdir=.. |
1199 | fi | |
1200 | else | |
1201 | ac_srcdir_defaulted=no | |
1202 | fi | |
ca81d7a0 JD |
1203 | if test ! -r "$srcdir/$ac_unique_file"; then |
1204 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1205 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
503d2be0 | 1206 | { (exit 1); exit 1; }; } |
ba4481b5 | 1207 | fi |
ca81d7a0 JD |
1208 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1209 | ac_abs_confdir=`( | |
1210 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
6bae0ccf | 1211 | { (exit 1); exit 1; }; } |
ca81d7a0 JD |
1212 | pwd)` |
1213 | # When building in place, set srcdir=. | |
1214 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1215 | srcdir=. | |
1216 | fi | |
1217 | # Remove unnecessary trailing slashes from srcdir. | |
1218 | # Double slashes in file names in object file debugging info | |
1219 | # mess up M-x gdb in Emacs. | |
1220 | case $srcdir in | |
1221 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1222 | esac | |
1223 | for ac_var in $ac_precious_vars; do | |
1224 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1225 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1226 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1227 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1228 | done | |
503d2be0 AS |
1229 | |
1230 | # | |
1231 | # Report the --help message. | |
1232 | # | |
1233 | if test "$ac_init_help" = "long"; then | |
1234 | # Omit some internal or obsolete options to make the list less imposing. | |
1235 | # This message is too long to be a string in the A/UX 3.1 sh. | |
c0d27fcc | 1236 | cat <<_ACEOF |
503d2be0 AS |
1237 | \`configure' configures this package to adapt to many kinds of systems. |
1238 | ||
1239 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1240 | ||
1241 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1242 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1243 | ||
1244 | Defaults for the options are specified in brackets. | |
1245 | ||
1246 | Configuration: | |
1247 | -h, --help display this help and exit | |
1248 | --help=short display options specific to this package | |
1249 | --help=recursive display the short help of all the included packages | |
1250 | -V, --version display version information and exit | |
1251 | -q, --quiet, --silent do not print \`checking...' messages | |
1252 | --cache-file=FILE cache test results in FILE [disabled] | |
1253 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1254 | -n, --no-create do not create output files | |
1255 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1256 | ||
503d2be0 AS |
1257 | Installation directories: |
1258 | --prefix=PREFIX install architecture-independent files in PREFIX | |
edfaf76d | 1259 | [$ac_default_prefix] |
503d2be0 | 1260 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
edfaf76d | 1261 | [PREFIX] |
503d2be0 AS |
1262 | |
1263 | By default, \`make install' will install all the files in | |
1264 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1265 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1266 | for instance \`--prefix=\$HOME'. | |
1267 | ||
1268 | For better control, use the options below. | |
1269 | ||
1270 | Fine tuning of the installation directories: | |
1271 | --bindir=DIR user executables [EPREFIX/bin] | |
1272 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1273 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
503d2be0 AS |
1274 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1275 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1276 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1277 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1278 | --includedir=DIR C header files [PREFIX/include] | |
1279 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
ca81d7a0 JD |
1280 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1281 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1282 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1283 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1284 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1285 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1286 | --htmldir=DIR html documentation [DOCDIR] | |
1287 | --dvidir=DIR dvi documentation [DOCDIR] | |
1288 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1289 | --psdir=DIR ps documentation [DOCDIR] | |
c0d27fcc | 1290 | _ACEOF |
503d2be0 | 1291 | |
c0d27fcc | 1292 | cat <<\_ACEOF |
503d2be0 | 1293 | |
ba5da88a PJ |
1294 | Program names: |
1295 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1296 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1297 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1298 | ||
503d2be0 AS |
1299 | X features: |
1300 | --x-includes=DIR X include files are in DIR | |
1301 | --x-libraries=DIR X library files are in DIR | |
1302 | ||
1303 | System types: | |
1304 | --build=BUILD configure for building on BUILD [guessed] | |
c0d27fcc MR |
1305 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1306 | _ACEOF | |
503d2be0 AS |
1307 | fi |
1308 | ||
1309 | if test -n "$ac_init_help"; then | |
1310 | ||
c0d27fcc | 1311 | cat <<\_ACEOF |
503d2be0 AS |
1312 | |
1313 | Optional Features: | |
1314 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1315 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6a3a24fa JD |
1316 | --enable-carbon-app[=DIR] [DIR=/Application] |
1317 | specify install directory for Emacs.app on Mac OS X | |
d0098f13 | 1318 | --enable-asserts compile code with asserts enabled |
19650fd6 AS |
1319 | --enable-maintainer-mode enable make rules and dependencies not useful |
1320 | (and sometimes confusing) to the casual installer | |
9adfabc2 LK |
1321 | --enable-locallisppath=PATH |
1322 | directories Emacs should search for lisp files | |
1323 | specific to this site | |
503d2be0 AS |
1324 | --disable-largefile omit support for large files |
1325 | ||
1326 | Optional Packages: | |
1327 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1328 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1329 | --without-gcc don't use GCC to compile Emacs if GCC is found | |
1330 | --without-pop don't support POP mail retrieval with movemail | |
1331 | --with-kerberos support Kerberos-authenticated POP | |
1332 | --with-kerberos5 support Kerberos version 5 authenticated POP | |
1333 | --with-hesiod support Hesiod to get the POP server host | |
2c9dccc9 | 1334 | --without-sound don't compile with sound support |
488dd4c4 JD |
1335 | --with-x-toolkit=KIT use an X toolkit |
1336 | (KIT = yes/lucid/athena/motif/gtk/no) | |
503d2be0 AS |
1337 | --with-xpm use -lXpm for displaying XPM images |
1338 | --with-jpeg use -ljpeg for displaying JPEG images | |
1339 | --with-tiff use -ltiff for displaying TIFF images | |
1340 | --with-gif use -lungif for displaying GIF images | |
1341 | --with-png use -lpng for displaying PNG images | |
488dd4c4 JD |
1342 | --with-gtk use GTK (same as --with-x-toolkit=gtk) |
1343 | --with-pkg-config-prog Path to pkg-config to use for finding GTK | |
503d2be0 | 1344 | --without-toolkit-scroll-bars |
cc227489 MB |
1345 | don't use Motif or Xaw3d scroll bars |
1346 | --without-xim don't use X11 XIM | |
e0f712ba | 1347 | --without-carbon don't use Carbon GUI on Mac OS X |
503d2be0 AS |
1348 | --with-x use the X Window System |
1349 | ||
1350 | Some influential environment variables: | |
1351 | CC C compiler command | |
1352 | CFLAGS C compiler flags | |
1353 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1354 | nonstandard directory <lib dir> | |
f053c89f | 1355 | LIBS libraries to pass to the linker, e.g. -l<library> |
ca81d7a0 JD |
1356 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1357 | you have headers in a nonstandard directory <include dir> | |
503d2be0 | 1358 | CPP C preprocessor |
ca81d7a0 | 1359 | XMKMF Path to xmkmf, Makefile generator for X Window System |
503d2be0 AS |
1360 | |
1361 | Use these variables to override the choices made by `configure' or to help | |
1362 | it to find libraries and programs with nonstandard names/locations. | |
1363 | ||
c0d27fcc | 1364 | _ACEOF |
ca81d7a0 | 1365 | ac_status=$? |
503d2be0 AS |
1366 | fi |
1367 | ||
1368 | if test "$ac_init_help" = "recursive"; then | |
1369 | # If there are subdirs, report their specific --help. | |
c0d27fcc | 1370 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ca81d7a0 | 1371 | test -d "$ac_dir" || continue |
c0d27fcc MR |
1372 | ac_builddir=. |
1373 | ||
ca81d7a0 JD |
1374 | case "$ac_dir" in |
1375 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1376 | *) | |
c0d27fcc | 1377 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
ca81d7a0 JD |
1378 | # A ".." for each directory in $ac_dir_suffix. |
1379 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1380 | case $ac_top_builddir_sub in | |
1381 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1382 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1383 | esac ;; | |
1384 | esac | |
1385 | ac_abs_top_builddir=$ac_pwd | |
1386 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1387 | # for backward compatibility: | |
1388 | ac_top_builddir=$ac_top_build_prefix | |
503d2be0 | 1389 | |
c0d27fcc | 1390 | case $srcdir in |
ca81d7a0 | 1391 | .) # We are building in place. |
c0d27fcc | 1392 | ac_srcdir=. |
ca81d7a0 JD |
1393 | ac_top_srcdir=$ac_top_builddir_sub |
1394 | ac_abs_top_srcdir=$ac_pwd ;; | |
1395 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c0d27fcc | 1396 | ac_srcdir=$srcdir$ac_dir_suffix; |
ca81d7a0 JD |
1397 | ac_top_srcdir=$srcdir |
1398 | ac_abs_top_srcdir=$srcdir ;; | |
1399 | *) # Relative name. | |
1400 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1401 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1402 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
edfaf76d | 1403 | esac |
ca81d7a0 JD |
1404 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1405 | ||
1406 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1407 | # Check for guested configure. | |
1408 | if test -f "$ac_srcdir/configure.gnu"; then | |
1409 | echo && | |
1410 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1411 | elif test -f "$ac_srcdir/configure"; then | |
1412 | echo && | |
1413 | $SHELL "$ac_srcdir/configure" --help=recursive | |
503d2be0 | 1414 | else |
c0d27fcc | 1415 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
ca81d7a0 JD |
1416 | fi || ac_status=$? |
1417 | cd "$ac_pwd" || { ac_status=$?; break; } | |
503d2be0 AS |
1418 | done |
1419 | fi | |
1420 | ||
ca81d7a0 | 1421 | test -n "$ac_init_help" && exit $ac_status |
503d2be0 | 1422 | if $ac_init_version; then |
c0d27fcc | 1423 | cat <<\_ACEOF |
ca81d7a0 | 1424 | configure |
f053c89f | 1425 | generated by GNU Autoconf 2.61 |
503d2be0 | 1426 | |
ca81d7a0 | 1427 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
040c474e | 1428 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
503d2be0 AS |
1429 | This configure script is free software; the Free Software Foundation |
1430 | gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc | 1431 | _ACEOF |
ca81d7a0 | 1432 | exit |
503d2be0 | 1433 | fi |
ca81d7a0 | 1434 | cat >config.log <<_ACEOF |
503d2be0 AS |
1435 | This file contains any messages produced by compilers while |
1436 | running configure, to aid debugging if configure makes a mistake. | |
1437 | ||
1438 | It was created by $as_me, which was | |
f053c89f | 1439 | generated by GNU Autoconf 2.61. Invocation command line was |
503d2be0 AS |
1440 | |
1441 | $ $0 $@ | |
1442 | ||
c0d27fcc | 1443 | _ACEOF |
ca81d7a0 | 1444 | exec 5>>config.log |
503d2be0 AS |
1445 | { |
1446 | cat <<_ASUNAME | |
c0d27fcc MR |
1447 | ## --------- ## |
1448 | ## Platform. ## | |
1449 | ## --------- ## | |
503d2be0 AS |
1450 | |
1451 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1452 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1453 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1454 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1455 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1456 | ||
1457 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1458 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1459 | ||
1460 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1461 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1462 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
ca81d7a0 | 1463 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
503d2be0 AS |
1464 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1465 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1466 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1467 | ||
925c2f3f | 1468 | _ASUNAME |
c0d27fcc MR |
1469 | |
1470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1471 | for as_dir in $PATH | |
1472 | do | |
1473 | IFS=$as_save_IFS | |
1474 | test -z "$as_dir" && as_dir=. | |
1475 | echo "PATH: $as_dir" | |
1476 | done | |
ca81d7a0 | 1477 | IFS=$as_save_IFS |
c0d27fcc | 1478 | |
503d2be0 AS |
1479 | } >&5 |
1480 | ||
c0d27fcc MR |
1481 | cat >&5 <<_ACEOF |
1482 | ||
1483 | ||
1484 | ## ----------- ## | |
1485 | ## Core tests. ## | |
1486 | ## ----------- ## | |
1487 | ||
1488 | _ACEOF | |
503d2be0 | 1489 | |
503d2be0 AS |
1490 | |
1491 | # Keep a trace of the command line. | |
1492 | # Strip out --no-create and --no-recursion so they do not pile up. | |
19650fd6 | 1493 | # Strip out --silent because we don't want to record it for future runs. |
503d2be0 | 1494 | # Also quote any args containing shell meta-characters. |
19650fd6 | 1495 | # Make two passes to allow for proper duplicate-argument suppression. |
503d2be0 | 1496 | ac_configure_args= |
19650fd6 AS |
1497 | ac_configure_args0= |
1498 | ac_configure_args1= | |
19650fd6 AS |
1499 | ac_must_keep_next=false |
1500 | for ac_pass in 1 2 | |
503d2be0 | 1501 | do |
19650fd6 AS |
1502 | for ac_arg |
1503 | do | |
1504 | case $ac_arg in | |
1505 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1506 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1507 | | -silent | --silent | --silen | --sile | --sil) | |
1508 | continue ;; | |
ca81d7a0 | 1509 | *\'*) |
19650fd6 AS |
1510 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1511 | esac | |
1512 | case $ac_pass in | |
1513 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1514 | 2) | |
1515 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1516 | if test $ac_must_keep_next = true; then | |
edfaf76d | 1517 | ac_must_keep_next=false # Got value, back to normal. |
19650fd6 | 1518 | else |
edfaf76d LK |
1519 | case $ac_arg in |
1520 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1521 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1522 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1523 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1524 | case "$ac_configure_args0 " in | |
1525 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1526 | esac | |
1527 | ;; | |
1528 | -* ) ac_must_keep_next=true ;; | |
1529 | esac | |
19650fd6 | 1530 | fi |
ca81d7a0 | 1531 | ac_configure_args="$ac_configure_args '$ac_arg'" |
19650fd6 AS |
1532 | ;; |
1533 | esac | |
1534 | done | |
503d2be0 | 1535 | done |
19650fd6 AS |
1536 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1537 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
503d2be0 AS |
1538 | |
1539 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1540 | # config.log. We remove comments because anyway the quotes in there | |
1541 | # would cause problems or look ugly. | |
ca81d7a0 JD |
1542 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1543 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
503d2be0 AS |
1544 | trap 'exit_status=$? |
1545 | # Save into config.log some information that might help in debugging. | |
c0d27fcc MR |
1546 | { |
1547 | echo | |
6bae0ccf | 1548 | |
c0d27fcc MR |
1549 | cat <<\_ASBOX |
1550 | ## ---------------- ## | |
1551 | ## Cache variables. ## | |
1552 | ## ---------------- ## | |
1553 | _ASBOX | |
1554 | echo | |
1555 | # The following way of writing the cache mishandles newlines in values, | |
ca81d7a0 JD |
1556 | ( |
1557 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1558 | eval ac_val=\$$ac_var | |
1559 | case $ac_val in #( | |
1560 | *${as_nl}*) | |
1561 | case $ac_var in #( | |
1562 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1563 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1564 | esac | |
1565 | case $ac_var in #( | |
1566 | _ | IFS | as_nl) ;; #( | |
1567 | *) $as_unset $ac_var ;; | |
1568 | esac ;; | |
1569 | esac | |
1570 | done | |
503d2be0 | 1571 | (set) 2>&1 | |
ca81d7a0 JD |
1572 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1573 | *${as_nl}ac_space=\ *) | |
503d2be0 | 1574 | sed -n \ |
ca81d7a0 JD |
1575 | "s/'\''/'\''\\\\'\'''\''/g; |
1576 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1577 | ;; #( | |
503d2be0 | 1578 | *) |
ca81d7a0 | 1579 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
503d2be0 | 1580 | ;; |
ca81d7a0 JD |
1581 | esac | |
1582 | sort | |
1583 | ) | |
c0d27fcc | 1584 | echo |
6bae0ccf DL |
1585 | |
1586 | cat <<\_ASBOX | |
1587 | ## ----------------- ## | |
1588 | ## Output variables. ## | |
1589 | ## ----------------- ## | |
1590 | _ASBOX | |
1591 | echo | |
1592 | for ac_var in $ac_subst_vars | |
1593 | do | |
ca81d7a0 JD |
1594 | eval ac_val=\$$ac_var |
1595 | case $ac_val in | |
1596 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1597 | esac | |
1598 | echo "$ac_var='\''$ac_val'\''" | |
6bae0ccf DL |
1599 | done | sort |
1600 | echo | |
1601 | ||
1602 | if test -n "$ac_subst_files"; then | |
1603 | cat <<\_ASBOX | |
ca81d7a0 JD |
1604 | ## ------------------- ## |
1605 | ## File substitutions. ## | |
1606 | ## ------------------- ## | |
6bae0ccf DL |
1607 | _ASBOX |
1608 | echo | |
1609 | for ac_var in $ac_subst_files | |
1610 | do | |
ca81d7a0 JD |
1611 | eval ac_val=\$$ac_var |
1612 | case $ac_val in | |
1613 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1614 | esac | |
1615 | echo "$ac_var='\''$ac_val'\''" | |
6bae0ccf DL |
1616 | done | sort |
1617 | echo | |
1618 | fi | |
1619 | ||
c0d27fcc MR |
1620 | if test -s confdefs.h; then |
1621 | cat <<\_ASBOX | |
1622 | ## ----------- ## | |
1623 | ## confdefs.h. ## | |
1624 | ## ----------- ## | |
1625 | _ASBOX | |
1626 | echo | |
ca81d7a0 | 1627 | cat confdefs.h |
c0d27fcc MR |
1628 | echo |
1629 | fi | |
1630 | test "$ac_signal" != 0 && | |
1631 | echo "$as_me: caught signal $ac_signal" | |
1632 | echo "$as_me: exit $exit_status" | |
1633 | } >&5 | |
ca81d7a0 JD |
1634 | rm -f core *.core core.conftest.* && |
1635 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
503d2be0 | 1636 | exit $exit_status |
ca81d7a0 | 1637 | ' 0 |
503d2be0 AS |
1638 | for ac_signal in 1 2 13 15; do |
1639 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1640 | done | |
1641 | ac_signal=0 | |
1642 | ||
1643 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
ca81d7a0 | 1644 | rm -f -r conftest* confdefs.h |
ba4481b5 | 1645 | |
c0d27fcc MR |
1646 | # Predefined preprocessor variables. |
1647 | ||
1648 | cat >>confdefs.h <<_ACEOF | |
1649 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1650 | _ACEOF | |
1651 | ||
1652 | ||
1653 | cat >>confdefs.h <<_ACEOF | |
1654 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1655 | _ACEOF | |
1656 | ||
1657 | ||
1658 | cat >>confdefs.h <<_ACEOF | |
1659 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1660 | _ACEOF | |
1661 | ||
1662 | ||
1663 | cat >>confdefs.h <<_ACEOF | |
1664 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1665 | _ACEOF | |
1666 | ||
1667 | ||
1668 | cat >>confdefs.h <<_ACEOF | |
1669 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1670 | _ACEOF | |
1671 | ||
1672 | ||
503d2be0 | 1673 | # Let the site file select an alternate cache file if it wants to. |
ba4481b5 | 1674 | # Prefer explicitly selected file to automatically selected ones. |
ca81d7a0 JD |
1675 | if test -n "$CONFIG_SITE"; then |
1676 | set x "$CONFIG_SITE" | |
1677 | elif test "x$prefix" != xNONE; then | |
1678 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1679 | else | |
1680 | set x "$ac_default_prefix/share/config.site" \ | |
1681 | "$ac_default_prefix/etc/config.site" | |
ba4481b5 | 1682 | fi |
ca81d7a0 JD |
1683 | shift |
1684 | for ac_site_file | |
1685 | do | |
ba4481b5 | 1686 | if test -r "$ac_site_file"; then |
c0d27fcc | 1687 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
503d2be0 | 1688 | echo "$as_me: loading site script $ac_site_file" >&6;} |
c0d27fcc | 1689 | sed 's/^/| /' "$ac_site_file" >&5 |
ba4481b5 DL |
1690 | . "$ac_site_file" |
1691 | fi | |
1692 | done | |
1693 | ||
1694 | if test -r "$cache_file"; then | |
503d2be0 AS |
1695 | # Some versions of bash will fail to source /dev/null (special |
1696 | # files actually), so we avoid doing that. | |
1697 | if test -f "$cache_file"; then | |
c0d27fcc | 1698 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
503d2be0 AS |
1699 | echo "$as_me: loading cache $cache_file" >&6;} |
1700 | case $cache_file in | |
ca81d7a0 JD |
1701 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1702 | *) . "./$cache_file";; | |
503d2be0 AS |
1703 | esac |
1704 | fi | |
ba4481b5 | 1705 | else |
c0d27fcc | 1706 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
503d2be0 AS |
1707 | echo "$as_me: creating cache $cache_file" >&6;} |
1708 | >$cache_file | |
1709 | fi | |
1710 | ||
f053c89f CY |
1711 | ac_header_list="$ac_header_list sys/time.h" |
1712 | ac_header_list="$ac_header_list unistd.h" | |
1713 | ac_func_list="$ac_func_list alarm" | |
503d2be0 AS |
1714 | # Check that the precious variables saved in the cache have kept the same |
1715 | # value. | |
1716 | ac_cache_corrupted=false | |
ca81d7a0 | 1717 | for ac_var in $ac_precious_vars; do |
503d2be0 AS |
1718 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1719 | eval ac_new_set=\$ac_env_${ac_var}_set | |
ca81d7a0 JD |
1720 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1721 | eval ac_new_val=\$ac_env_${ac_var}_value | |
503d2be0 AS |
1722 | case $ac_old_set,$ac_new_set in |
1723 | set,) | |
c0d27fcc | 1724 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
503d2be0 AS |
1725 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1726 | ac_cache_corrupted=: ;; | |
1727 | ,set) | |
c0d27fcc | 1728 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
503d2be0 AS |
1729 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1730 | ac_cache_corrupted=: ;; | |
1731 | ,);; | |
1732 | *) | |
1733 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
edfaf76d | 1734 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
503d2be0 | 1735 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
edfaf76d | 1736 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
503d2be0 | 1737 | echo "$as_me: former value: $ac_old_val" >&2;} |
edfaf76d | 1738 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
503d2be0 | 1739 | echo "$as_me: current value: $ac_new_val" >&2;} |
edfaf76d | 1740 | ac_cache_corrupted=: |
503d2be0 AS |
1741 | fi;; |
1742 | esac | |
c0d27fcc | 1743 | # Pass precious variables to config.status. |
503d2be0 AS |
1744 | if test "$ac_new_set" = set; then |
1745 | case $ac_new_val in | |
ca81d7a0 | 1746 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c0d27fcc MR |
1747 | *) ac_arg=$ac_var=$ac_new_val ;; |
1748 | esac | |
1749 | case " $ac_configure_args " in | |
1750 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1751 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
503d2be0 AS |
1752 | esac |
1753 | fi | |
1754 | done | |
1755 | if $ac_cache_corrupted; then | |
c0d27fcc | 1756 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
503d2be0 | 1757 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
c0d27fcc | 1758 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
503d2be0 AS |
1759 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1760 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1761 | fi |
1762 | ||
c0d27fcc MR |
1763 | |
1764 | ||
1765 | ||
1766 | ||
1767 | ||
1768 | ||
1769 | ||
1770 | ||
1771 | ||
1772 | ||
1773 | ||
1774 | ||
1775 | ||
1776 | ||
1777 | ||
ba4481b5 | 1778 | |
ca81d7a0 JD |
1779 | ac_ext=c |
1780 | ac_cpp='$CPP $CPPFLAGS' | |
1781 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1782 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1783 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6bae0ccf | 1784 | |
4b411bfe | 1785 | |
ca81d7a0 | 1786 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" |
ba4481b5 | 1787 | |
c0d27fcc | 1788 | |
ba5da88a | 1789 | test "$program_prefix" != NONE && |
ca81d7a0 | 1790 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
ba5da88a PJ |
1791 | # Use a double $ so make ignores it. |
1792 | test "$program_suffix" != NONE && | |
ca81d7a0 | 1793 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
ba5da88a PJ |
1794 | # Double any \ or $. echo might interpret backslashes. |
1795 | # By default was `s,x,x', remove it if useless. | |
1796 | cat <<\_ACEOF >conftest.sed | |
1797 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1798 | _ACEOF | |
1799 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
ca81d7a0 | 1800 | rm -f conftest.sed |
ba5da88a | 1801 | |
c0d27fcc | 1802 | |
ba4481b5 DL |
1803 | lispdir='${datadir}/emacs/${version}/lisp' |
1804 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
e9291f09 EZ |
1805 | '${datadir}/emacs/site-lisp' |
1806 | lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim' | |
ba4481b5 DL |
1807 | etcdir='${datadir}/emacs/${version}/etc' |
1808 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
1809 | docdir='${datadir}/emacs/${version}/etc' | |
24b01ec4 | 1810 | gamedir='${localstatedir}/games/emacs' |
98418dba CW |
1811 | |
1812 | gameuser=games | |
1813 | ||
c0d27fcc | 1814 | |
ca81d7a0 | 1815 | # Check whether --with-gcc was given. |
ba4481b5 | 1816 | if test "${with_gcc+set}" = set; then |
ca81d7a0 JD |
1817 | withval=$with_gcc; |
1818 | fi | |
503d2be0 | 1819 | |
ba4481b5 | 1820 | |
ca81d7a0 | 1821 | # Check whether --with-pop was given. |
ba4481b5 | 1822 | if test "${with_pop+set}" = set; then |
ca81d7a0 | 1823 | withval=$with_pop; if test "$withval" = yes; then |
c0d27fcc | 1824 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1825 | #define MAIL_USE_POP 1 |
c0d27fcc | 1826 | _ACEOF |
ba4481b5 | 1827 | |
243cf185 DL |
1828 | else : |
1829 | fi | |
3d9fec71 | 1830 | else |
c0d27fcc | 1831 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 1832 | #define MAIL_USE_POP 1 |
c0d27fcc | 1833 | _ACEOF |
3d9fec71 | 1834 | |
ca81d7a0 JD |
1835 | fi |
1836 | ||
ba4481b5 | 1837 | |
c0d27fcc | 1838 | |
ca81d7a0 | 1839 | # Check whether --with-kerberos was given. |
a21616bd | 1840 | if test "${with_kerberos+set}" = set; then |
54e6585f CY |
1841 | withval=$with_kerberos; if test "$withval" = yes; then |
1842 | cat >>confdefs.h <<\_ACEOF | |
a21616bd | 1843 | #define KERBEROS 1 |
c0d27fcc | 1844 | _ACEOF |
a21616bd | 1845 | |
ca81d7a0 | 1846 | fi |
54e6585f | 1847 | fi |
ca81d7a0 | 1848 | |
a21616bd | 1849 | |
c0d27fcc | 1850 | |
ca81d7a0 | 1851 | # Check whether --with-kerberos5 was given. |
a21616bd | 1852 | if test "${with_kerberos5+set}" = set; then |
ca81d7a0 | 1853 | withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then |
a21616bd KR |
1854 | if test "${with_kerberos+set}" != set; then |
1855 | with_kerberos=yes | |
c0d27fcc | 1856 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1857 | #define KERBEROS 1 |
c0d27fcc | 1858 | _ACEOF |
a21616bd KR |
1859 | |
1860 | fi | |
b936fae4 | 1861 | |
c0d27fcc | 1862 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1863 | #define KERBEROS5 1 |
c0d27fcc | 1864 | _ACEOF |
a21616bd | 1865 | |
ca81d7a0 | 1866 | fi |
54e6585f | 1867 | fi |
b936fae4 | 1868 | |
4b411bfe | 1869 | |
ca81d7a0 JD |
1870 | # Check whether --with-hesiod was given. |
1871 | if test "${with_hesiod+set}" = set; then | |
54e6585f CY |
1872 | withval=$with_hesiod; if test "$withval" = yes; then |
1873 | ||
c0d27fcc | 1874 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1875 | #define HESIOD 1 |
c0d27fcc | 1876 | _ACEOF |
ba4481b5 | 1877 | |
ca81d7a0 | 1878 | fi |
54e6585f | 1879 | fi |
ca81d7a0 | 1880 | |
ba4481b5 | 1881 | |
c0d27fcc | 1882 | |
ca81d7a0 | 1883 | # Check whether --with-sound was given. |
2c9dccc9 | 1884 | if test "${with_sound+set}" = set; then |
ca81d7a0 JD |
1885 | withval=$with_sound; |
1886 | fi | |
2c9dccc9 | 1887 | |
2c9dccc9 | 1888 | |
c0d27fcc | 1889 | |
ca81d7a0 | 1890 | # Check whether --with-x-toolkit was given. |
ba4481b5 | 1891 | if test "${with_x_toolkit+set}" = set; then |
ca81d7a0 | 1892 | withval=$with_x_toolkit; case "${withval}" in |
ba4481b5 DL |
1893 | y | ye | yes ) val=athena ;; |
1894 | n | no ) val=no ;; | |
1895 | l | lu | luc | luci | lucid ) val=lucid ;; | |
1896 | a | at | ath | athe | athen | athena ) val=athena ;; | |
1897 | m | mo | mot | moti | motif ) val=motif ;; | |
488dd4c4 | 1898 | g | gt | gtk ) val=gtk ;; |
ba4481b5 | 1899 | * ) |
c0d27fcc | 1900 | { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\; |
488dd4c4 | 1901 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
503d2be0 AS |
1902 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 |
1903 | echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; | |
488dd4c4 | 1904 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
503d2be0 AS |
1905 | Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} |
1906 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1907 | ;; |
1908 | esac | |
1909 | with_x_toolkit=$val | |
1910 | ||
ca81d7a0 | 1911 | fi |
8eeae1c9 | 1912 | |
ca81d7a0 JD |
1913 | |
1914 | # Check whether --with-xpm was given. | |
ba4481b5 | 1915 | if test "${with_xpm+set}" = set; then |
ca81d7a0 JD |
1916 | withval=$with_xpm; |
1917 | fi | |
503d2be0 | 1918 | |
ba4481b5 | 1919 | |
ca81d7a0 | 1920 | # Check whether --with-jpeg was given. |
ba4481b5 | 1921 | if test "${with_jpeg+set}" = set; then |
ca81d7a0 JD |
1922 | withval=$with_jpeg; |
1923 | fi | |
503d2be0 | 1924 | |
ba4481b5 | 1925 | |
ca81d7a0 | 1926 | # Check whether --with-tiff was given. |
ba4481b5 | 1927 | if test "${with_tiff+set}" = set; then |
ca81d7a0 JD |
1928 | withval=$with_tiff; |
1929 | fi | |
503d2be0 | 1930 | |
ba4481b5 | 1931 | |
ca81d7a0 | 1932 | # Check whether --with-gif was given. |
ba4481b5 | 1933 | if test "${with_gif+set}" = set; then |
ca81d7a0 JD |
1934 | withval=$with_gif; |
1935 | fi | |
503d2be0 | 1936 | |
ba4481b5 | 1937 | |
ca81d7a0 | 1938 | # Check whether --with-png was given. |
ba4481b5 | 1939 | if test "${with_png+set}" = set; then |
ca81d7a0 JD |
1940 | withval=$with_png; |
1941 | fi | |
503d2be0 | 1942 | |
ba4481b5 | 1943 | |
ca81d7a0 | 1944 | # Check whether --with-gtk was given. |
488dd4c4 | 1945 | if test "${with_gtk+set}" = set; then |
ca81d7a0 JD |
1946 | withval=$with_gtk; |
1947 | fi | |
488dd4c4 | 1948 | |
488dd4c4 | 1949 | |
ca81d7a0 | 1950 | # Check whether --with-pkg-config-prog was given. |
488dd4c4 | 1951 | if test "${with_pkg_config_prog+set}" = set; then |
ca81d7a0 JD |
1952 | withval=$with_pkg_config_prog; |
1953 | fi | |
488dd4c4 | 1954 | |
488dd4c4 | 1955 | |
ca81d7a0 | 1956 | # Check whether --with-toolkit-scroll-bars was given. |
ba4481b5 | 1957 | if test "${with_toolkit_scroll_bars+set}" = set; then |
ca81d7a0 JD |
1958 | withval=$with_toolkit_scroll_bars; |
1959 | fi | |
503d2be0 | 1960 | |
ba4481b5 | 1961 | |
ca81d7a0 | 1962 | # Check whether --with-xim was given. |
1d36487c | 1963 | if test "${with_xim+set}" = set; then |
ca81d7a0 JD |
1964 | withval=$with_xim; |
1965 | fi | |
1d36487c | 1966 | |
ba4481b5 | 1967 | |
ca81d7a0 | 1968 | # Check whether --with-carbon was given. |
e0f712ba | 1969 | if test "${with_carbon+set}" = set; then |
ca81d7a0 JD |
1970 | withval=$with_carbon; |
1971 | fi | |
e0f712ba | 1972 | |
ca81d7a0 | 1973 | # Check whether --enable-carbon-app was given. |
6a3a24fa | 1974 | if test "${enable_carbon_app+set}" = set; then |
ca81d7a0 JD |
1975 | enableval=$enable_carbon_app; carbon_appdir_x=${enableval} |
1976 | fi | |
1977 | ||
e0f712ba | 1978 | |
ca81d7a0 | 1979 | # Check whether --enable-asserts was given. |
d0098f13 | 1980 | if test "${enable_asserts+set}" = set; then |
ca81d7a0 | 1981 | enableval=$enable_asserts; USE_XASSERTS=$enableval |
d0098f13 JD |
1982 | else |
1983 | USE_XASSERTS=no | |
ca81d7a0 | 1984 | fi |
8eeae1c9 | 1985 | |
ca81d7a0 JD |
1986 | |
1987 | # Check whether --enable-maintainer-mode was given. | |
19650fd6 | 1988 | if test "${enable_maintainer_mode+set}" = set; then |
ca81d7a0 | 1989 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
19650fd6 AS |
1990 | else |
1991 | USE_MAINTAINER_MODE=no | |
ca81d7a0 JD |
1992 | fi |
1993 | ||
19650fd6 AS |
1994 | if test $USE_MAINTAINER_MODE = yes; then |
1995 | MAINT= | |
1996 | else | |
1997 | MAINT=# | |
1998 | fi | |
1999 | ||
2000 | ||
ca81d7a0 | 2001 | # Check whether --enable-locallisppath was given. |
9adfabc2 | 2002 | if test "${enable_locallisppath+set}" = set; then |
ca81d7a0 | 2003 | enableval=$enable_locallisppath; if test "${enableval}" = "no"; then |
9adfabc2 LK |
2004 | locallisppath= |
2005 | elif test "${enableval}" != "yes"; then | |
2006 | locallisppath=${enableval} | |
2007 | fi | |
ca81d7a0 JD |
2008 | fi |
2009 | ||
9adfabc2 | 2010 | |
ba4481b5 | 2011 | #### Make srcdir absolute, if it isn't already. It's important to |
17494071 | 2012 | #### avoid running the path through pwd unnecessarily, since pwd can |
ba4481b5 DL |
2013 | #### give you automounter prefixes, which can go away. We do all this |
2014 | #### so Emacs can find its files when run uninstalled. | |
17494071 GM |
2015 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
2016 | unset CDPATH | |
ba4481b5 DL |
2017 | case "${srcdir}" in |
2018 | /* ) ;; | |
2019 | . ) | |
2020 | ## We may be able to use the $PWD environment variable to make this | |
2021 | ## absolute. But sometimes PWD is inaccurate. | |
df645f7c AS |
2022 | ## Note: we used to use ${PWD} at the end instead of `pwd`, |
2023 | ## but that tested only for a well-formed and valid PWD, | |
2024 | ## it did not object when PWD was well-formed and valid but just wrong. | |
2025 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
ba4481b5 DL |
2026 | then |
2027 | srcdir="$PWD" | |
2028 | else | |
2029 | srcdir="`(cd ${srcdir}; pwd)`" | |
2030 | fi | |
2031 | ;; | |
2032 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
2033 | esac | |
2034 | ||
2035 | #### Check if the source directory already has a configured system in it. | |
2036 | if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
2037 | && test -f "${srcdir}/src/config.h" ; then | |
c0d27fcc | 2038 | { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used |
503d2be0 AS |
2039 | as a build directory right now; it has been configured in its own |
2040 | right. To configure in another directory as well, you MUST | |
2041 | use GNU make. If you do not have GNU make, then you must | |
2042 | now do \`make distclean' in ${srcdir}, | |
2043 | and then run $0 again." >&5 | |
2044 | echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
ba4481b5 DL |
2045 | as a build directory right now; it has been configured in its own |
2046 | right. To configure in another directory as well, you MUST | |
2047 | use GNU make. If you do not have GNU make, then you must | |
2048 | now do \`make distclean' in ${srcdir}, | |
503d2be0 | 2049 | and then run $0 again." >&2;} |
ba4481b5 DL |
2050 | fi |
2051 | ||
2052 | #### Given the configuration name, set machfile and opsysfile to the | |
2053 | #### names of the m/*.h and s/*.h files we should use. | |
2054 | ||
2055 | ### Canonicalize the configuration name. | |
2056 | ||
2057 | ac_aux_dir= | |
ca81d7a0 JD |
2058 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2059 | if test -f "$ac_dir/install-sh"; then | |
ba4481b5 DL |
2060 | ac_aux_dir=$ac_dir |
2061 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2062 | break | |
ca81d7a0 | 2063 | elif test -f "$ac_dir/install.sh"; then |
ba4481b5 DL |
2064 | ac_aux_dir=$ac_dir |
2065 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2066 | break | |
ca81d7a0 | 2067 | elif test -f "$ac_dir/shtool"; then |
503d2be0 AS |
2068 | ac_aux_dir=$ac_dir |
2069 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2070 | break | |
ba4481b5 DL |
2071 | fi |
2072 | done | |
2073 | if test -z "$ac_aux_dir"; then | |
ca81d7a0 JD |
2074 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2075 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
503d2be0 | 2076 | { (exit 1); exit 1; }; } |
ba4481b5 | 2077 | fi |
ca81d7a0 JD |
2078 | |
2079 | # These three variables are undocumented and unsupported, | |
2080 | # and are intended to be withdrawn in a future Autoconf release. | |
2081 | # They can cause serious problems if a builder's source tree is in a directory | |
2082 | # whose full name contains unusual characters. | |
2083 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2084 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2085 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2086 | ||
ba4481b5 DL |
2087 | |
2088 | # Make sure we can run config.sub. | |
ca81d7a0 JD |
2089 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2090 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
2091 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
503d2be0 AS |
2092 | { (exit 1); exit 1; }; } |
2093 | ||
ca81d7a0 JD |
2094 | { echo "$as_me:$LINENO: checking build system type" >&5 |
2095 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
503d2be0 AS |
2096 | if test "${ac_cv_build+set}" = set; then |
2097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2098 | else | |
ca81d7a0 JD |
2099 | ac_build_alias=$build_alias |
2100 | test "x$ac_build_alias" = x && | |
2101 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2102 | test "x$ac_build_alias" = x && | |
c0d27fcc | 2103 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
503d2be0 AS |
2104 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
2105 | { (exit 1); exit 1; }; } | |
ca81d7a0 JD |
2106 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2107 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
2108 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
503d2be0 AS |
2109 | { (exit 1); exit 1; }; } |
2110 | ||
2111 | fi | |
ca81d7a0 JD |
2112 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2113 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
2114 | case $ac_cv_build in | |
2115 | *-*-*) ;; | |
2116 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
2117 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
2118 | { (exit 1); exit 1; }; };; | |
2119 | esac | |
503d2be0 | 2120 | build=$ac_cv_build |
ca81d7a0 JD |
2121 | ac_save_IFS=$IFS; IFS='-' |
2122 | set x $ac_cv_build | |
2123 | shift | |
2124 | build_cpu=$1 | |
2125 | build_vendor=$2 | |
2126 | shift; shift | |
2127 | # Remember, the first character of IFS is used to create $*, | |
2128 | # except with old shells: | |
2129 | build_os=$* | |
2130 | IFS=$ac_save_IFS | |
2131 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2132 | ||
2133 | ||
2134 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
2135 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
503d2be0 AS |
2136 | if test "${ac_cv_host+set}" = set; then |
2137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2138 | else | |
ca81d7a0 JD |
2139 | if test "x$host_alias" = x; then |
2140 | ac_cv_host=$ac_cv_build | |
2141 | else | |
2142 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2143 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
2144 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
503d2be0 | 2145 | { (exit 1); exit 1; }; } |
ca81d7a0 | 2146 | fi |
503d2be0 AS |
2147 | |
2148 | fi | |
ca81d7a0 JD |
2149 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2150 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
2151 | case $ac_cv_host in | |
2152 | *-*-*) ;; | |
2153 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
2154 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
2155 | { (exit 1); exit 1; }; };; | |
2156 | esac | |
503d2be0 | 2157 | host=$ac_cv_host |
ca81d7a0 JD |
2158 | ac_save_IFS=$IFS; IFS='-' |
2159 | set x $ac_cv_host | |
2160 | shift | |
2161 | host_cpu=$1 | |
2162 | host_vendor=$2 | |
2163 | shift; shift | |
2164 | # Remember, the first character of IFS is used to create $*, | |
2165 | # except with old shells: | |
2166 | host_os=$* | |
2167 | IFS=$ac_save_IFS | |
2168 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ba4481b5 | 2169 | |
c0d27fcc | 2170 | |
ba4481b5 | 2171 | canonical=$host |
531a3336 | 2172 | configuration=${host_alias-$host} |
ba4481b5 | 2173 | |
c0d27fcc | 2174 | |
22044edf | 2175 | |
ba4481b5 DL |
2176 | ### If you add support for a new configuration, add code to this |
2177 | ### switch statement to recognize your configuration name and select | |
2178 | ### the appropriate operating system and machine description files. | |
2179 | ||
2180 | ### You would hope that you could choose an m/*.h file pretty much | |
2181 | ### based on the machine portion of the configuration name, and an s- | |
2182 | ### file based on the operating system portion. However, it turns out | |
2183 | ### that each m/*.h file is pretty manufacturer-specific - for | |
2184 | ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
2185 | ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
2186 | ### machines. So we basically have to have a special case for each | |
2187 | ### configuration name. | |
2188 | ### | |
2189 | ### As far as handling version numbers on operating systems is | |
2190 | ### concerned, make sure things will fail in a fixable way. If | |
2191 | ### /etc/MACHINES doesn't say anything about version numbers, be | |
2192 | ### prepared to handle anything reasonably. If version numbers | |
2193 | ### matter, be sure /etc/MACHINES says something about it. | |
2194 | ### | |
2195 | ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
2196 | ### "System V Release 4"; he writes, "The old convention encouraged | |
2197 | ### confusion between `system' and `release' levels'." | |
2198 | ||
2199 | machine='' opsys='' unported=no | |
2200 | case "${canonical}" in | |
2201 | ||
1096bcc0 GM |
2202 | ## FreeBSD ports |
2203 | *-*-freebsd* ) | |
2204 | opsys=freebsd | |
2205 | case "${canonical}" in | |
2206 | alpha*-*-freebsd*) machine=alpha ;; | |
ece58427 | 2207 | arm*-*-freebsd*) machine=arm ;; |
ec8fcb10 YM |
2208 | ia64-*-freebsd*) machine=ia64 ;; |
2209 | sparc64-*-freebsd*) machine=sparc ;; | |
2210 | powerpc-*-freebsd*) machine=macppc ;; | |
1096bcc0 | 2211 | i[3456]86-*-freebsd*) machine=intel386 ;; |
01abe918 | 2212 | amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;; |
1096bcc0 GM |
2213 | esac |
2214 | ;; | |
2215 | ||
ce1b7801 GM |
2216 | ## FreeBSD kernel + glibc based userland |
2217 | *-*-kfreebsd*gnu* ) | |
2218 | opsys=gnu-kfreebsd | |
2219 | case "${canonical}" in | |
2220 | alpha*-*-kfreebsd*) machine=alpha ;; | |
2221 | ia64-*-kfreebsd*) machine=ia64 ;; | |
2222 | sparc64-*-kfreebsd*) machine=sparc ;; | |
2223 | powerpc-*-kfreebsd*) machine=macppc ;; | |
2224 | i[3456]86-*-kfreebsd*) machine=intel386 ;; | |
2225 | amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;; | |
2226 | esac | |
2227 | ;; | |
2228 | ||
ba4481b5 DL |
2229 | ## NetBSD ports |
2230 | *-*-netbsd* ) | |
2231 | opsys=netbsd | |
dd038e26 | 2232 | if test -f /usr/lib/crti.o; then |
f57bd967 DL |
2233 | |
2234 | cat >>confdefs.h <<\_ACEOF | |
2235 | #define HAVE_CRTIN | |
dd038e26 AS |
2236 | _ACEOF |
2237 | ||
2238 | fi | |
2239 | ||
ba4481b5 DL |
2240 | case "${canonical}" in |
2241 | alpha*-*-netbsd*) machine=alpha ;; | |
2242 | i[3456]86-*-netbsd*) machine=intel386 ;; | |
2243 | m68k-*-netbsd*) | |
2244 | # This is somewhat bogus. | |
2245 | machine=hp9000s300 ;; | |
ba4481b5 | 2246 | mips-*-netbsd*) machine=pmax ;; |
2df636f4 | 2247 | mipsel-*-netbsd*) machine=pmax ;; |
97836269 | 2248 | mipseb-*-netbsd*) machine=pmax ;; |
ba4481b5 | 2249 | ns32k-*-netbsd*) machine=ns32000 ;; |
3a64eef5 | 2250 | powerpc-*-netbsd*) machine=macppc ;; |
71c9ec51 | 2251 | sparc*-*-netbsd*) machine=sparc ;; |
ba4481b5 | 2252 | vax-*-netbsd*) machine=vax ;; |
2df636f4 | 2253 | arm-*-netbsd*) machine=arm ;; |
d54ee7b4 | 2254 | x86_64-*-netbsd*) machine=amdx86-64 ;; |
13aadc96 | 2255 | hppa-*-netbsd*) machine=hp800 ;; |
d54ee7b4 | 2256 | shle-*-netbsd*) machine=sh3el ;; |
ba4481b5 DL |
2257 | esac |
2258 | ;; | |
2259 | ||
2260 | ## OpenBSD ports | |
2261 | *-*-openbsd* ) | |
2262 | opsys=openbsd | |
2263 | case "${canonical}" in | |
2264 | alpha*-*-openbsd*) machine=alpha ;; | |
85410b02 CY |
2265 | arm-*-openbsd*) machine=arm ;; |
2266 | hppa-*-openbsd*) machine=hp9000s300 ;; | |
2267 | i386-*-openbsd*) machine=intel386 ;; | |
2268 | m68k-*-openbsd*) machine=hp9000s300 ;; | |
2269 | m88k-*-openbsd*) machine=aviion ;; | |
2270 | mips64-*-openbsd*) machine=mips64 ;; | |
2271 | powerpc-*-openbsd*) machine=macppc ;; | |
2272 | sh-*-openbsd*) machine=sh3el ;; | |
2273 | sparc*-*-openbsd*) machine=sparc ;; | |
2274 | vax-*-openbsd*) machine=vax ;; | |
2275 | x86_64-*-openbsd*) machine=amdx86-64 ;; | |
ba4481b5 DL |
2276 | esac |
2277 | ;; | |
2278 | ||
10a3b1a1 EZ |
2279 | ## LynxOS ports |
2280 | *-*-lynxos* ) | |
2281 | opsys=lynxos | |
2282 | case "${canonical}" in | |
2283 | i[3456]86-*-lynxos*) machine=intel386 ;; | |
2284 | powerpc-*-lynxos*) machine=powerpc ;; | |
2285 | esac | |
2286 | ;; | |
2287 | ||
ba4481b5 DL |
2288 | ## Acorn RISCiX: |
2289 | arm-acorn-riscix1.1* ) | |
2290 | machine=acorn opsys=riscix1-1 | |
2291 | ;; | |
2292 | arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
2293 | ## This name is riscix12 instead of riscix1.2 | |
2294 | ## to avoid a file name conflict on MSDOS. | |
2295 | machine=acorn opsys=riscix12 | |
2296 | ;; | |
2297 | ||
2298 | ## BSDI ports | |
2299 | *-*-bsdi* ) | |
2300 | opsys=bsdi | |
2301 | case "${canonical}" in | |
2302 | i[345]86-*-bsdi*) machine=intel386 ;; | |
2303 | sparc-*-bsdi*) machine=sparc ;; | |
3aeecf97 | 2304 | powerpc-*-bsdi*) machine=macppc ;; |
ba4481b5 DL |
2305 | esac |
2306 | case "${canonical}" in | |
2307 | *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
2308 | *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
2309 | *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
2310 | *-*-bsdi3* ) opsys=bsdos3 ;; | |
1d06fc82 | 2311 | *-*-bsdi[45]* ) opsys=bsdos4 ;; |
ba4481b5 DL |
2312 | esac |
2313 | ;; | |
2314 | ||
2315 | ## Alliant machines | |
2316 | ## Strictly speaking, we need the version of the alliant operating | |
2317 | ## system to choose the right machine file, but currently the | |
2318 | ## configuration name doesn't tell us enough to choose the right | |
2319 | ## one; we need to give alliants their own operating system name to | |
2320 | ## do this right. When someone cares, they can help us. | |
2321 | fx80-alliant-* ) | |
2322 | machine=alliant4 opsys=bsd4-2 | |
2323 | ;; | |
2324 | i860-alliant-* ) | |
2325 | machine=alliant-2800 opsys=bsd4-3 | |
2326 | ;; | |
2327 | ||
2328 | ## Alpha (DEC) machines. | |
2329 | alpha*-dec-osf* ) | |
2330 | machine=alpha opsys=osf1 | |
2331 | # This is needed to find X11R6.1 libraries for certain tests. | |
2332 | NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
2333 | GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34979055 DL |
2334 | # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
2335 | # due to non-traditional preprocessing with the current compiler | |
2336 | # defaults. OSF 4 can also have that compiler version, and there | |
2337 | # seems always to have been a usable /usr/bin/cpp. | |
2338 | NON_GNU_CPP=/usr/bin/cpp | |
ca512671 | 2339 | case "${canonical}" in |
a55b799a | 2340 | alpha*-dec-osf[5-9]*) |
bb17930d | 2341 | opsys=osf5-0 ;; |
ca512671 | 2342 | esac |
ba4481b5 DL |
2343 | ;; |
2344 | ||
2345 | alpha*-*-linux-gnu* ) | |
2346 | machine=alpha opsys=gnu-linux | |
2347 | ;; | |
2348 | ||
c4bb2108 DL |
2349 | arm*-*-linux-gnu* ) |
2350 | machine=arm opsys=gnu-linux | |
2351 | ;; | |
2352 | ||
ba4481b5 DL |
2353 | ## Altos 3068 |
2354 | m68*-altos-sysv* ) | |
2355 | machine=altos opsys=usg5-2 | |
2356 | ;; | |
2357 | ||
2358 | ## Amdahl UTS | |
2359 | 580-amdahl-sysv* ) | |
2360 | machine=amdahl opsys=usg5-2-2 | |
2361 | ;; | |
2362 | ||
2363 | ## Apollo, Domain/OS | |
2364 | m68*-apollo-* ) | |
2365 | machine=apollo opsys=bsd4-3 | |
2366 | ;; | |
2367 | ||
040c474e CY |
2368 | ## Apple Darwin / Mac OS X |
2369 | *-apple-darwin* ) | |
2370 | case "${canonical}" in | |
2371 | i[3456]86-* ) machine=intel386 ;; | |
2372 | powerpc-* ) machine=powermac ;; | |
2373 | * ) unported=yes ;; | |
2374 | esac | |
2375 | opsys=darwin | |
2376 | # Define CPP as follows to make autoconf work correctly. | |
2377 | CPP="${CC-cc} -E -no-cpp-precomp" | |
2378 | # Use fink packages if available. | |
2379 | if test -d /sw/include && test -d /sw/lib; then | |
2380 | GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" | |
2381 | CPP="${CPP} ${GCC_TEST_OPTIONS}" | |
2382 | NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} | |
2383 | fi | |
2384 | ;; | |
2385 | ||
ba4481b5 DL |
2386 | ## AT&T 3b2, 3b5, 3b15, 3b20 |
2387 | we32k-att-sysv* ) | |
2388 | machine=att3b opsys=usg5-2-2 | |
2389 | ;; | |
2390 | ||
2391 | ## AT&T 3b1 - The Mighty Unix PC! | |
2392 | m68*-att-sysv* ) | |
2393 | machine=7300 opsys=usg5-2-2 | |
2394 | ;; | |
2395 | ||
2396 | ## Bull dpx20 | |
2397 | rs6000-bull-bosx* ) | |
2398 | machine=ibmrs6000 opsys=aix3-2 | |
2399 | ;; | |
2400 | ||
2401 | ## Bull dpx2 | |
2402 | m68*-bull-sysv3* ) | |
2403 | machine=dpx2 opsys=usg5-3 | |
2404 | ;; | |
2405 | ||
2406 | ## Bull sps7 | |
2407 | m68*-bull-sysv2* ) | |
2408 | machine=sps7 opsys=usg5-2 | |
2409 | ;; | |
2410 | ||
2411 | ## CCI 5/32, 6/32 -- see "Tahoe". | |
2412 | ||
2413 | ## Celerity | |
2414 | ## I don't know what configuration name to use for this; config.sub | |
2415 | ## doesn't seem to know anything about it. Hey, Celerity users, get | |
2416 | ## in touch with us! | |
2417 | celerity-celerity-bsd* ) | |
2418 | machine=celerity opsys=bsd4-2 | |
2419 | ;; | |
2420 | ||
2421 | ## Clipper | |
2422 | ## What operating systems does this chip run that Emacs has been | |
2423 | ## tested on? | |
2424 | clipper-* ) | |
2425 | machine=clipper | |
2426 | ## We'll use the catch-all code at the bottom to guess the | |
2427 | ## operating system. | |
2428 | ;; | |
2429 | ||
df645f7c AS |
2430 | ## Compaq Nonstop |
2431 | mips-compaq-nonstopux* ) | |
2432 | machine=nonstopux opsys=nonstopux | |
2433 | ;; | |
2434 | ||
ba4481b5 DL |
2435 | ## Convex |
2436 | *-convex-bsd* | *-convex-convexos* ) | |
2437 | machine=convex opsys=bsd4-3 | |
2438 | ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
2439 | NON_GNU_CPP="cc -E -P" | |
2440 | ;; | |
2441 | ||
2442 | ## Cubix QBx/386 | |
2443 | i[3456]86-cubix-sysv* ) | |
2444 | machine=intel386 opsys=usg5-3 | |
2445 | ;; | |
2446 | ||
2447 | ## Cydra 5 | |
2448 | cydra*-cydrome-sysv* ) | |
2449 | machine=cydra5 opsys=usg5-3 | |
2450 | ;; | |
2451 | ||
2452 | ## Data General AViiON Machines | |
2453 | ## DG changed naming conventions with the release of 5.4.4.10, they | |
2454 | ## dropped the initial 5.4 but left the intervening R. Because of the | |
2455 | ## R this shouldn't conflict with older versions of the OS (which I | |
2456 | ## think were named like dgux4.*). In addition, DG new AViiONs series | |
2457 | ## uses either Motorola M88k or Intel Pentium CPUs. | |
2458 | m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
2459 | machine=aviion opsys=dgux4 | |
2460 | ;; | |
2461 | m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
2462 | ## This name is dgux5-4-3 instead of dgux5-4r3 | |
2463 | ## to avoid a file name conflict on MSDOS. | |
2464 | machine=aviion opsys=dgux5-4-3 | |
2465 | ;; | |
2466 | m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
2467 | machine=aviion opsys=dgux5-4r2 | |
2468 | ;; | |
2469 | m88k-dg-dgux* ) | |
2470 | machine=aviion opsys=dgux | |
2471 | ;; | |
2472 | ||
2473 | ## Data General AViiON Intel (x86) Machines | |
2474 | ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
2475 | ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
2476 | i[345]86-dg-dguxR4* ) | |
2477 | machine=aviion-intel opsys=dgux4 | |
2478 | ;; | |
2479 | ||
2480 | ## DECstations | |
2481 | mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
2482 | machine=pmax opsys=bsd4-2 | |
2483 | ;; | |
2484 | mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
2485 | machine=pmax opsys=bsd4-3 | |
2486 | ;; | |
2487 | mips-dec-ultrix* ) | |
2488 | machine=pmax opsys=ultrix4-3 | |
2489 | ;; | |
2490 | mips-dec-osf* ) | |
2491 | machine=pmax opsys=osf1 | |
2492 | ;; | |
2493 | mips-dec-mach_bsd4.3* ) | |
2494 | machine=pmax opsys=mach-bsd4-3 | |
2495 | ;; | |
2496 | ||
cd890796 JD |
2497 | ## Motorola Delta machines |
2498 | m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
2499 | machine=delta opsys=usg5-3 | |
2500 | if test -z "`type gnucc | grep 'not found'`" | |
2501 | then | |
2502 | if test -s /etc/167config | |
2503 | then CC="gnucc -m68040" | |
2504 | else CC="gnucc -m68881" | |
2505 | fi | |
2506 | else | |
2507 | if test -z "`type gcc | grep 'not found'`" | |
2508 | then CC=gcc | |
2509 | else CC=cc | |
2510 | fi | |
2511 | fi | |
2512 | ;; | |
ba4481b5 DL |
2513 | m88k-motorola-sysv4* ) |
2514 | # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
2515 | # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
2516 | # I hope there are not other 4.0 versions for this machine | |
2517 | # which really need usg5-4 instead. | |
2518 | machine=delta88k opsys=usg5-4-2 | |
2519 | ;; | |
2520 | m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
2521 | machine=delta88k opsys=usg5-3 | |
2522 | ;; | |
2523 | ||
2524 | ## Dual machines | |
2525 | m68*-dual-sysv* ) | |
2526 | machine=dual opsys=usg5-2 | |
2527 | ;; | |
2528 | m68*-dual-uniplus* ) | |
2529 | machine=dual opsys=unipl5-2 | |
2530 | ;; | |
2531 | ||
2532 | ## Elxsi 6400 | |
2533 | elxsi-elxsi-sysv* ) | |
2534 | machine=elxsi opsys=usg5-2 | |
2535 | ;; | |
2536 | ||
2537 | ## Encore machines | |
2538 | ns16k-encore-bsd* ) | |
2539 | machine=ns16000 opsys=umax | |
2540 | ;; | |
2541 | ||
65171e3a DL |
2542 | ## The GEC 63 - apparently, this port isn't really finished yet. |
2543 | # I'm sure we finished off the last of the machines, though. -- fx | |
ba4481b5 DL |
2544 | |
2545 | ## Gould Power Node and NP1 | |
2546 | pn-gould-bsd4.2* ) | |
2547 | machine=gould opsys=bsd4-2 | |
2548 | ;; | |
2549 | pn-gould-bsd4.3* ) | |
2550 | machine=gould opsys=bsd4-3 | |
2551 | ;; | |
2552 | np1-gould-bsd* ) | |
2553 | machine=gould-np1 opsys=bsd4-3 | |
2554 | ;; | |
2555 | ||
2556 | ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
2557 | ## as far as Emacs is concerned). | |
2558 | m88k-harris-cxux* ) | |
2559 | # Build needs to be different on 7.0 and later releases | |
2560 | case "`uname -r`" in | |
2561 | [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
2562 | [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
2563 | esac | |
2564 | NON_GNU_CPP="/lib/cpp" | |
2565 | ;; | |
2566 | ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
2567 | m68k-harris-cxux* ) | |
2568 | machine=nh3000 opsys=cxux | |
2569 | ;; | |
2570 | ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
2571 | powerpc-harris-powerunix ) | |
2572 | machine=nh6000 opsys=powerunix | |
2573 | NON_GNU_CPP="cc -Xo -E -P" | |
2574 | ;; | |
6fbb6db1 GM |
2575 | ## SR2001/SR2201 running HI-UX/MPP |
2576 | hppa1.1-hitachi-hiuxmpp* ) | |
2577 | machine=sr2k opsys=hiuxmpp | |
2578 | ;; | |
2579 | hppa1.1-hitachi-hiuxwe2* ) | |
2580 | machine=sr2k opsys=hiuxwe2 | |
2581 | ;; | |
ba4481b5 DL |
2582 | ## Honeywell XPS100 |
2583 | xps*-honeywell-sysv* ) | |
2584 | machine=xps100 opsys=usg5-2 | |
2585 | ;; | |
2586 | ||
2587 | ## HP 9000 series 200 or 300 | |
2588 | m68*-hp-bsd* ) | |
2589 | machine=hp9000s300 opsys=bsd4-3 | |
2590 | ;; | |
2591 | ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
2592 | m68*-hp-hpux* ) | |
2593 | case "`uname -r`" in | |
2594 | ## Someone's system reports A.B8.05 for this. | |
2595 | ## I wonder what other possibilities there are. | |
2596 | *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2597 | *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2598 | *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
2599 | *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
2600 | *) machine=hp9000s300 opsys=hpux ;; | |
2601 | esac | |
2602 | ;; | |
2603 | ||
6fbb6db1 GM |
2604 | ## HP 9000 series 700 and 800, running HP/UX |
2605 | hppa*-hp-hpux7* ) | |
2606 | machine=hp800 opsys=hpux | |
2607 | ;; | |
2608 | hppa*-hp-hpux8* ) | |
2609 | machine=hp800 opsys=hpux8 | |
2610 | ;; | |
2611 | hppa*-hp-hpux9shr* ) | |
2612 | machine=hp800 opsys=hpux9shr | |
2613 | ;; | |
2614 | hppa*-hp-hpux9* ) | |
2615 | machine=hp800 opsys=hpux9 | |
2616 | ;; | |
2617 | hppa*-hp-hpux10.2* ) | |
2618 | machine=hp800 opsys=hpux10-20 | |
2619 | ;; | |
2620 | hppa*-hp-hpux10* ) | |
2621 | machine=hp800 opsys=hpux10 | |
2622 | ;; | |
2623 | hppa*-hp-hpux1[1-9]* ) | |
2624 | machine=hp800 opsys=hpux11 | |
2625 | CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS" | |
2626 | ;; | |
2627 | ||
13aadc96 CY |
2628 | hppa*-*-linux-gnu* ) |
2629 | machine=hp800 opsys=gnu-linux | |
2630 | ;; | |
2631 | ||
6fbb6db1 GM |
2632 | ## HP 9000 series 700 and 800, running HP/UX |
2633 | hppa*-hp-hpux* ) | |
2634 | ## Cross-compilation? Nah! | |
2635 | case "`uname -r`" in | |
2636 | ## Someone's system reports A.B8.05 for this. | |
2637 | ## I wonder what other possibilities there are. | |
2638 | *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
2639 | *.08.* ) machine=hp800 opsys=hpux8 ;; | |
2640 | *.09.* ) machine=hp800 opsys=hpux9 ;; | |
2641 | *) machine=hp800 opsys=hpux10 ;; | |
2642 | esac | |
2643 | ;; | |
13aadc96 CY |
2644 | hppa*-*-nextstep* ) |
2645 | machine=hp800 opsys=nextstep | |
2646 | ;; | |
2647 | ||
ba4481b5 DL |
2648 | ## Orion machines |
2649 | orion-orion-bsd* ) | |
2650 | machine=orion opsys=bsd4-2 | |
2651 | ;; | |
2652 | clipper-orion-bsd* ) | |
2653 | machine=orion105 opsys=bsd4-2 | |
2654 | ;; | |
2655 | ||
2656 | ## IBM machines | |
2657 | i[3456]86-ibm-aix1.1* ) | |
2658 | machine=ibmps2-aix opsys=usg5-2-2 | |
2659 | ;; | |
2660 | i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
2661 | machine=ibmps2-aix opsys=usg5-3 | |
2662 | ;; | |
2663 | i370-ibm-aix*) | |
2664 | machine=ibm370aix opsys=usg5-3 | |
2665 | ;; | |
55597d70 | 2666 | s390-*-linux-gnu* ) |
138f0859 GM |
2667 | machine=ibms390 opsys=gnu-linux |
2668 | ;; | |
bcdb1378 EZ |
2669 | s390x-*-linux-gnu* ) |
2670 | machine=ibms390x opsys=gnu-linux | |
2671 | ;; | |
ba4481b5 DL |
2672 | rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
2673 | machine=ibmrs6000 opsys=aix3-1 | |
2674 | ;; | |
2675 | rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
2676 | machine=ibmrs6000 opsys=aix3-2-5 | |
2677 | ;; | |
2678 | rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
2679 | machine=ibmrs6000 opsys=aix4-1 | |
2680 | ;; | |
2681 | rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
2682 | machine=ibmrs6000 opsys=aix4-2 | |
2683 | ;; | |
67bf991b CY |
2684 | rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* ) |
2685 | machine=ibmrs6000 opsys=aix4-2 | |
2686 | ;; | |
55597d70 | 2687 | rs6000-ibm-aix5* | powerpc-ibm-aix5* ) |
d6b82250 EZ |
2688 | machine=ibmrs6000 opsys=aix4-2 |
2689 | ;; | |
ba4481b5 DL |
2690 | rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
2691 | machine=ibmrs6000 opsys=aix4 | |
2692 | ;; | |
2693 | rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
2694 | machine=ibmrs6000 opsys=aix4-1 | |
2695 | ;; | |
2696 | rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
2697 | machine=ibmrs6000 opsys=aix3-2 | |
2698 | ;; | |
2699 | romp-ibm-bsd4.3* ) | |
2700 | machine=ibmrt opsys=bsd4-3 | |
2701 | ;; | |
2702 | romp-ibm-bsd4.2* ) | |
2703 | machine=ibmrt opsys=bsd4-2 | |
2704 | ;; | |
2705 | romp-ibm-aos4.3* ) | |
2706 | machine=ibmrt opsys=bsd4-3 | |
2707 | ;; | |
2708 | romp-ibm-aos4.2* ) | |
2709 | machine=ibmrt opsys=bsd4-2 | |
2710 | ;; | |
2711 | romp-ibm-aos* ) | |
2712 | machine=ibmrt opsys=bsd4-3 | |
2713 | ;; | |
2714 | romp-ibm-bsd* ) | |
2715 | machine=ibmrt opsys=bsd4-3 | |
2716 | ;; | |
2717 | romp-ibm-aix* ) | |
2718 | machine=ibmrt-aix opsys=usg5-2-2 | |
2719 | ;; | |
2720 | ||
2721 | ## Integrated Solutions `Optimum V' | |
2722 | m68*-isi-bsd4.2* ) | |
2723 | machine=isi-ov opsys=bsd4-2 | |
2724 | ;; | |
2725 | m68*-isi-bsd4.3* ) | |
2726 | machine=isi-ov opsys=bsd4-3 | |
2727 | ;; | |
2728 | ||
2729 | ## Intel 386 machines where we do care about the manufacturer | |
2730 | i[3456]86-intsys-sysv* ) | |
2731 | machine=is386 opsys=usg5-2-2 | |
2732 | ;; | |
2733 | ||
2734 | ## Prime EXL | |
2735 | i[3456]86-prime-sysv* ) | |
2736 | machine=i386 opsys=usg5-3 | |
2737 | ;; | |
2738 | ||
2739 | ## Sequent Symmetry running Dynix | |
2740 | i[3456]86-sequent-bsd* ) | |
2741 | machine=symmetry opsys=bsd4-3 | |
2742 | ;; | |
2743 | ||
2744 | ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
2745 | i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
2746 | machine=sequent-ptx opsys=ptx4 | |
2747 | NON_GNU_CPP=/lib/cpp | |
2748 | ;; | |
2749 | ||
2750 | ## Sequent Symmetry running DYNIX/ptx | |
2751 | ## Use the old cpp rather than the newer ANSI one. | |
2752 | i[3456]86-sequent-ptx* ) | |
2753 | machine=sequent-ptx opsys=ptx | |
2754 | NON_GNU_CPP="/lib/cpp" | |
2755 | ;; | |
2756 | ||
2757 | ## ncr machine running svr4.3. | |
2758 | i[3456]86-ncr-sysv4.3 ) | |
2759 | machine=ncr386 opsys=usg5-4-3 | |
2760 | ;; | |
2761 | ||
2762 | ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
2763 | ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
2764 | i[3456]86-ncr-sysv* ) | |
2765 | machine=ncr386 opsys=usg5-4-2 | |
2766 | ;; | |
2767 | ||
2768 | ## Intel Paragon OSF/1 | |
2769 | i860-intel-osf1* ) | |
2770 | machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
2771 | ;; | |
2772 | ||
2773 | ## Intel 860 | |
2774 | i860-*-sysv4* ) | |
2775 | machine=i860 opsys=usg5-4 | |
2776 | NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
2777 | NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
2778 | ;; | |
2779 | ||
c76e04a8 GM |
2780 | ## Macintosh PowerPC |
2781 | powerpc*-*-linux-gnu* ) | |
2782 | machine=macppc opsys=gnu-linux | |
2783 | ;; | |
2784 | ||
ba4481b5 DL |
2785 | ## Masscomp machines |
2786 | m68*-masscomp-rtu* ) | |
2787 | machine=masscomp opsys=rtu | |
2788 | ;; | |
2789 | ||
2790 | ## Megatest machines | |
2791 | m68*-megatest-bsd* ) | |
2792 | machine=mega68 opsys=bsd4-2 | |
2793 | ;; | |
2794 | ||
2795 | ## Workstations sold by MIPS | |
2796 | ## This is not necessarily all workstations using the MIPS processor - | |
2797 | ## Irises are produced by SGI, and DECstations by DEC. | |
2798 | ||
2799 | ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
2800 | ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
2801 | ## it gives for choosing between the alternatives seems to be "Use | |
2802 | ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
2803 | ## the BSD world." I'll assume that these are instructions for | |
2804 | ## handling two odd situations, and that every other situation | |
2805 | ## should use mips.h and usg5-2-2, they being listed first. | |
2806 | mips-mips-usg* ) | |
2807 | machine=mips4 | |
2808 | ## Fall through to the general code at the bottom to decide on the OS. | |
2809 | ;; | |
2810 | mips-mips-riscos4* ) | |
2811 | machine=mips4 opsys=bsd4-3 | |
2812 | NON_GNU_CC="cc -systype bsd43" | |
2813 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2814 | ;; | |
2815 | mips-mips-riscos5* ) | |
2816 | machine=mips4 opsys=riscos5 | |
2817 | NON_GNU_CC="cc -systype bsd43" | |
2818 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2819 | ;; | |
2820 | mips-mips-bsd* ) | |
2821 | machine=mips opsys=bsd4-3 | |
2822 | ;; | |
2823 | mips-mips-* ) | |
2824 | machine=mips opsys=usg5-2-2 | |
2825 | ;; | |
2826 | ||
2827 | ## NeXT | |
2828 | m68*-next-* | m68k-*-nextstep* ) | |
2829 | machine=m68k opsys=nextstep | |
2830 | ;; | |
2831 | ||
2832 | ## The complete machine from National Semiconductor | |
2833 | ns32k-ns-genix* ) | |
2834 | machine=ns32000 opsys=usg5-2 | |
2835 | ;; | |
2836 | ||
2837 | ## NCR machines | |
2838 | m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
2839 | machine=tower32 opsys=usg5-2-2 | |
2840 | ;; | |
2841 | m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
2842 | machine=tower32v3 opsys=usg5-3 | |
2843 | ;; | |
2844 | ||
2845 | ## NEC EWS4800 | |
2846 | mips-nec-sysv4*) | |
2847 | machine=ews4800 opsys=ux4800 | |
2848 | ;; | |
2849 | ||
2850 | ## Nixdorf Targon 31 | |
2851 | m68*-nixdorf-sysv* ) | |
2852 | machine=targon31 opsys=usg5-2-2 | |
2853 | ;; | |
2854 | ||
2855 | ## Nu (TI or LMI) | |
2856 | m68*-nu-sysv* ) | |
2857 | machine=nu opsys=usg5-2 | |
2858 | ;; | |
2859 | ||
2860 | ## Plexus | |
2861 | m68*-plexus-sysv* ) | |
2862 | machine=plexus opsys=usg5-2 | |
2863 | ;; | |
2864 | ||
ba4481b5 DL |
2865 | ## Pyramid machines |
2866 | ## I don't really have any idea what sort of processor the Pyramid has, | |
2867 | ## so I'm assuming it is its own architecture. | |
2868 | pyramid-pyramid-bsd* ) | |
2869 | machine=pyramid opsys=bsd4-2 | |
2870 | ;; | |
2871 | ||
2872 | ## Sequent Balance | |
2873 | ns32k-sequent-bsd4.2* ) | |
2874 | machine=sequent opsys=bsd4-2 | |
2875 | ;; | |
2876 | ns32k-sequent-bsd4.3* ) | |
2877 | machine=sequent opsys=bsd4-3 | |
2878 | ;; | |
2879 | ||
2880 | ## Siemens Nixdorf | |
2881 | mips-siemens-sysv* | mips-sni-sysv*) | |
2882 | machine=mips-siemens opsys=usg5-4 | |
2883 | NON_GNU_CC=/usr/ccs/bin/cc | |
2884 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2885 | ;; | |
2886 | ||
2887 | ## Silicon Graphics machines | |
2888 | ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
2889 | m68*-sgi-iris3.5* ) | |
2890 | machine=irist opsys=iris3-5 | |
2891 | ;; | |
2892 | m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
2893 | machine=irist opsys=iris3-6 | |
2894 | ;; | |
2895 | ## Iris 4D | |
2896 | mips-sgi-irix3* ) | |
2897 | machine=iris4d opsys=irix3-3 | |
2898 | ;; | |
2899 | mips-sgi-irix4* ) | |
2900 | machine=iris4d opsys=irix4-0 | |
2901 | ;; | |
2902 | mips-sgi-irix6.5 ) | |
2903 | machine=iris4d opsys=irix6-5 | |
946173ad DL |
2904 | # Without defining _LANGUAGE_C, things get masked out in the headers |
2905 | # so that, for instance, grepping for `free' in stdlib.h fails and | |
2906 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
2907 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2908 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
ba4481b5 DL |
2909 | ;; |
2910 | mips-sgi-irix6* ) | |
2911 | machine=iris4d opsys=irix6-0 | |
c4bb2108 | 2912 | # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
946173ad DL |
2913 | # but presumably it does no harm. |
2914 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2915 | # -32 probably isn't necessary in later v.6s -- anyone know which? |
ba4481b5 DL |
2916 | NON_GCC_TEST_OPTIONS=-32 |
2917 | ;; | |
2918 | mips-sgi-irix5.[01]* ) | |
2919 | machine=iris4d opsys=irix5-0 | |
2920 | ;; | |
2921 | mips-sgi-irix5* | mips-sgi-irix* ) | |
2922 | machine=iris4d opsys=irix5-2 | |
2923 | ;; | |
2924 | ||
2925 | ## SONY machines | |
2926 | m68*-sony-bsd4.2* ) | |
2927 | machine=news opsys=bsd4-2 | |
2928 | ;; | |
2929 | m68*-sony-bsd4.3* ) | |
2930 | machine=news opsys=bsd4-3 | |
2931 | ;; | |
2932 | m68*-sony-newsos3* | m68*-sony-news3*) | |
2933 | machine=news opsys=bsd4-3 | |
2934 | ;; | |
2935 | mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
2936 | machine=news-risc opsys=bsd4-3 | |
2937 | ;; | |
2938 | mips-sony-newsos6* ) | |
2939 | machine=news-r6 opsys=newsos6 | |
2940 | ;; | |
2941 | mips-sony-news* ) | |
2942 | machine=news-risc opsys=newsos5 | |
2943 | ;; | |
2944 | ||
2945 | ## Stride | |
2946 | m68*-stride-sysv* ) | |
2947 | machine=stride opsys=usg5-2 | |
2948 | ;; | |
2949 | ||
2950 | ## Suns | |
2951 | sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
2952 | machine=sparc opsys=gnu-linux | |
2953 | ;; | |
2954 | ||
d054101f | 2955 | *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
ba4481b5 DL |
2956 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
2957 | | rs6000-*-solaris2*) | |
2958 | case "${canonical}" in | |
2959 | m68*-sunos1* ) machine=sun1 ;; | |
2960 | m68*-sunos2* ) machine=sun2 ;; | |
2961 | m68* ) machine=sun3 ;; | |
2962 | i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
2963 | i[3456]86-*-* ) machine=intel386 ;; | |
af46e133 | 2964 | amd64-*-*|x86_64-*-*) machine=amdx86-64 ;; |
ba4481b5 DL |
2965 | powerpcle* ) machine=powerpcle ;; |
2966 | powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
2967 | sparc* ) machine=sparc ;; | |
2968 | * ) unported=yes ;; | |
2969 | esac | |
2970 | case "${canonical}" in | |
2971 | ## The Sun386 didn't get past 4.0. | |
2972 | i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
2973 | *-sunos4.0* ) opsys=sunos4-0 ;; | |
2974 | *-sunos4.1.[3-9]*noshare ) | |
2975 | ## This name is sunos413 instead of sunos4-1-3 | |
2976 | ## to avoid a file name conflict on MSDOS. | |
2977 | opsys=sunos413 | |
2978 | NON_GNU_CPP=/usr/lib/cpp | |
2979 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2980 | GCC_TEST_OPTIONS=-static | |
2981 | ;; | |
2982 | *-sunos4.1.[3-9]* | *-sunos4shr*) | |
2983 | opsys=sunos4shr | |
2984 | NON_GNU_CPP=/usr/lib/cpp | |
2985 | ;; | |
2986 | *-sunos4* | *-sunos ) | |
2987 | opsys=sunos4-1 | |
2988 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2989 | GCC_TEST_OPTIONS=-static | |
2990 | ;; | |
2991 | *-sunos5.3* | *-solaris2.3* ) | |
2992 | opsys=sol2-3 | |
2993 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2994 | ;; | |
2995 | *-sunos5.4* | *-solaris2.4* ) | |
2996 | opsys=sol2-4 | |
2997 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2998 | RANLIB="ar -ts" | |
2999 | ;; | |
3000 | *-sunos5.5* | *-solaris2.5* ) | |
3001 | opsys=sol2-5 | |
3002 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
3003 | RANLIB="ar -ts" | |
3004 | ;; | |
8e967cf7 MR |
3005 | *-sunos5.6* | *-solaris2.6* ) |
3006 | opsys=sol2-6 | |
3007 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
3008 | RANLIB="ar -ts" | |
3009 | ;; | |
ba4481b5 | 3010 | *-sunos5* | *-solaris* ) |
9e71690e | 3011 | opsys=sol2-6 |
3685ba3f CY |
3012 | ## FIXME: make this into a proper fix that checks the compiler type, |
3013 | ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now? | |
d23b7a3f GM |
3014 | if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then |
3015 | ## -Xs prevents spurious whitespace. | |
3016 | NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs" | |
3017 | else | |
3018 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
3019 | fi | |
ba4481b5 DL |
3020 | ;; |
3021 | * ) opsys=bsd4-2 ;; | |
3022 | esac | |
3023 | ## Watch out for a compiler that we know will not work. | |
3024 | case "${canonical}" in | |
3025 | *-solaris* | *-sunos5* ) | |
3026 | if [ "x$CC" = x/usr/ucb/cc ]; then | |
3027 | ## /usr/ucb/cc doesn't work; | |
3028 | ## we should find some other compiler that does work. | |
3029 | unset CC | |
3030 | fi | |
3031 | ;; | |
3032 | *) ;; | |
3033 | esac | |
3034 | ;; | |
3035 | sparc-*-nextstep* ) | |
3036 | machine=sparc opsys=nextstep | |
3037 | ;; | |
3038 | ||
3039 | ## Tadpole 68k | |
3040 | m68*-tadpole-sysv* ) | |
3041 | machine=tad68k opsys=usg5-3 | |
3042 | ;; | |
3043 | ||
3044 | ## Tahoe machines | |
3045 | tahoe-tahoe-bsd4.2* ) | |
3046 | machine=tahoe opsys=bsd4-2 | |
3047 | ;; | |
3048 | tahoe-tahoe-bsd4.3* ) | |
3049 | machine=tahoe opsys=bsd4-3 | |
3050 | ;; | |
3051 | ||
3052 | ## Tandem Integrity S2 | |
3053 | mips-tandem-sysv* ) | |
3054 | machine=tandem-s2 opsys=usg5-3 | |
3055 | ;; | |
3056 | ||
3057 | ## Tektronix XD88 | |
3058 | m88k-tektronix-sysv3* ) | |
3059 | machine=tekxd88 opsys=usg5-3 | |
3060 | ;; | |
3061 | ||
3062 | ## Tektronix 16000 box (6130?) | |
3063 | ns16k-tektronix-bsd* ) | |
3064 | machine=ns16000 opsys=bsd4-2 | |
3065 | ;; | |
3066 | ## Tektronix 4300 | |
3067 | ## src/m/tek4300.h hints that this is a m68k machine. | |
3068 | m68*-tektronix-bsd* ) | |
3069 | machine=tek4300 opsys=bsd4-3 | |
3070 | ;; | |
3071 | ||
3072 | ## Titan P2 or P3 | |
3073 | ## We seem to have lost the machine-description file titan.h! | |
3074 | titan-titan-sysv* ) | |
3075 | machine=titan opsys=usg5-3 | |
3076 | ;; | |
3077 | ||
3078 | ## Ustation E30 (SS5E) | |
3079 | m68*-unisys-uniplus* ) | |
3080 | machine=ustation opsystem=unipl5-2 | |
3081 | ;; | |
3082 | ||
3083 | ## Vaxen. | |
3084 | vax-dec-* ) | |
3085 | machine=vax | |
3086 | case "${canonical}" in | |
3087 | *-bsd4.1* ) opsys=bsd4-1 ;; | |
3088 | *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
3089 | *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
3090 | *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
3091 | *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
3092 | *-vms* ) opsys=vms ;; | |
3093 | * ) unported=yes | |
3094 | esac | |
3095 | ;; | |
3096 | ||
3097 | ## Whitechapel MG1 | |
3098 | ns16k-whitechapel-* ) | |
3099 | machine=mg1 | |
3100 | ## We don't know what sort of OS runs on these; we'll let the | |
3101 | ## operating system guessing code below try. | |
3102 | ;; | |
3103 | ||
3104 | ## Wicat | |
3105 | m68*-wicat-sysv* ) | |
3106 | machine=wicat opsys=usg5-2 | |
3107 | ;; | |
3108 | ||
f4988be7 GM |
3109 | ## IA-64 |
3110 | ia64*-*-linux* ) | |
3111 | machine=ia64 opsys=gnu-linux | |
3112 | ;; | |
3113 | ||
ba4481b5 DL |
3114 | ## Intel 386 machines where we don't care about the manufacturer |
3115 | i[3456]86-*-* ) | |
3116 | machine=intel386 | |
3117 | case "${canonical}" in | |
c60ee5e7 | 3118 | *-cygwin ) opsys=cygwin ;; |
eae54018 | 3119 | *-darwin* ) opsys=darwin |
23fd4483 ST |
3120 | CPP="${CC-cc} -E -no-cpp-precomp" |
3121 | ;; | |
ba4481b5 DL |
3122 | *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
3123 | *-isc2.2* ) opsys=isc2-2 ;; | |
3124 | *-isc4.0* ) opsys=isc4-0 ;; | |
3125 | *-isc4.* ) opsys=isc4-1 | |
3126 | GCC_TEST_OPTIONS=-posix | |
3127 | NON_GCC_TEST_OPTIONS=-Xp | |
3128 | ;; | |
3129 | *-isc* ) opsys=isc3-0 ;; | |
3130 | *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
3131 | *-esix* ) opsys=esix ;; | |
3132 | *-xenix* ) opsys=xenix ;; | |
3133 | *-linux-gnu* ) opsys=gnu-linux ;; | |
3134 | *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
503d2be0 | 3135 | *-sco3.2v5* ) opsys=sco5 |
ba4481b5 DL |
3136 | NON_GNU_CPP=/lib/cpp |
3137 | # Prevent -belf from being passed to $CPP. | |
3138 | # /lib/cpp does not accept it. | |
3139 | OVERRIDE_CPPFLAGS=" " | |
3140 | ;; | |
3141 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
55597d70 DL |
3142 | *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
3143 | *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
ba4481b5 | 3144 | *-386bsd* ) opsys=386bsd ;; |
ba4481b5 DL |
3145 | *-nextstep* ) opsys=nextstep ;; |
3146 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
3147 | esac | |
3148 | ;; | |
3149 | ||
3150 | ## m68k Linux-based GNU system | |
3151 | m68k-*-linux-gnu* ) | |
3152 | machine=m68k opsys=gnu-linux | |
3153 | ;; | |
3154 | ||
3155 | ## Mips Linux-based GNU system | |
cd958eb3 | 3156 | mips-*-linux-gnu* | mipsel-*-linux-gnu* ) |
ba4481b5 DL |
3157 | machine=mips opsys=gnu-linux |
3158 | ;; | |
3159 | ||
3160 | ## UXP/DS | |
3161 | sparc-fujitsu-sysv4* ) | |
3162 | machine=sparc opsys=uxpds | |
3163 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
3164 | RANLIB="ar -ts" | |
3165 | ;; | |
3166 | ||
3167 | ## UXP/V | |
3168 | f301-fujitsu-uxpv4.1) | |
3169 | machine=f301 opsys=uxpv | |
3170 | ;; | |
3171 | ||
598a2813 AS |
3172 | ## AMD x86-64 Linux-based GNU system |
3173 | x86_64-*-linux-gnu* ) | |
24b01ec4 | 3174 | machine=amdx86-64 opsys=gnu-linux |
598a2813 AS |
3175 | ;; |
3176 | ||
94218e27 | 3177 | ## Tensilica Xtensa Linux-based GNU system |
7cc04609 | 3178 | xtensa*-*-linux-* ) |
94218e27 DN |
3179 | machine=xtensa opsys=gnu-linux |
3180 | ;; | |
3181 | ||
ba4481b5 DL |
3182 | * ) |
3183 | unported=yes | |
3184 | ;; | |
3185 | esac | |
3186 | ||
3187 | ### If the code above didn't choose an operating system, just choose | |
3188 | ### an operating system based on the configuration name. You really | |
3189 | ### only want to use this when you have no idea what the right | |
3190 | ### operating system is; if you know what operating systems a machine | |
3191 | ### runs, it's cleaner to make it explicit in the case statement | |
3192 | ### above. | |
3193 | if test x"${opsys}" = x; then | |
3194 | case "${canonical}" in | |
3195 | *-gnu* ) opsys=gnu ;; | |
3196 | *-bsd4.[01] ) opsys=bsd4-1 ;; | |
3197 | *-bsd4.2 ) opsys=bsd4-2 ;; | |
3198 | *-bsd4.3 ) opsys=bsd4-3 ;; | |
3199 | *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
3200 | *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
3201 | *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
3202 | *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
3203 | *-sysv4.2uw* ) opsys=unixware ;; | |
55597d70 DL |
3204 | *-sysv5uw* ) opsys=unixware ;; |
3205 | *-sysv5OpenUNIX* ) opsys=unixware ;; | |
ba4481b5 DL |
3206 | *-sysv4.1* | *-sysvr4.1* ) |
3207 | NON_GNU_CPP=/usr/lib/cpp | |
3208 | opsys=usg5-4 ;; | |
3209 | *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
3210 | if [ x$NON_GNU_CPP = x ]; then | |
3211 | if [ -f /usr/ccs/lib/cpp ]; then | |
3212 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
3213 | else | |
3214 | NON_GNU_CPP=/lib/cpp | |
3215 | fi | |
3216 | fi | |
3217 | opsys=usg5-4-2 ;; | |
3218 | *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
3219 | * ) | |
3220 | unported=yes | |
3221 | ;; | |
3222 | esac | |
3223 | fi | |
3224 | ||
1d202fc4 DN |
3225 | ### Tests for sytems that we beleive are obsolete and should be desupported. |
3226 | ||
3227 | case "${machine}" in | |
3228 | pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2 ) | |
3229 | echo "The system that you are configuring on: ${canonical} is considered to be obsolete" | |
3230 | echo "and it is planned to be desupported in the next version of Emacs" | |
3231 | echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use." | |
3232 | echo "The code is still functional, but you need to edit the 'configure' script and remove the" | |
3233 | echo "exit 33 line. After that you can run configure again and 'complete' the build." | |
3234 | exit 33 | |
3235 | ;; | |
3236 | esac | |
3237 | ||
3238 | case "${opsys}" in | |
3239 | bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 | 386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | hpux10-20 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv ) | |
3240 | echo "The system that you are configuring on: ${canonical} is considered to be obsolete" | |
3241 | echo "and it is planned to be desupported in the next version of Emacs" | |
3242 | echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use." | |
3243 | echo "The code is still functional, but you need to edit the 'configure' script and remove the" | |
3244 | echo "'exit 44' line. After that you can run 'configure' again and complete the build." | |
3245 | exit 44 | |
3246 | ;; | |
3247 | esac | |
3248 | ||
c0d27fcc | 3249 | |
22044edf | 3250 | |
ba4481b5 | 3251 | if test $unported = yes; then |
c0d27fcc | 3252 | { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. |
503d2be0 AS |
3253 | Check \`etc/MACHINES' for recognized configuration names." >&5 |
3254 | echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
3255 | Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
3256 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
3257 | fi |
3258 | ||
3259 | machfile="m/${machine}.h" | |
3260 | opsysfile="s/${opsys}.h" | |
3261 | ||
c0d27fcc | 3262 | |
ba4481b5 DL |
3263 | #### Choose a compiler. |
3264 | test -n "$CC" && cc_specified=yes | |
3265 | ||
3266 | # Save the value of CFLAGS that the user specified. | |
3267 | SPECIFIED_CFLAGS="$CFLAGS" | |
3268 | ||
3269 | case ${with_gcc} in | |
3270 | "yes" ) CC="gcc" GCC=yes ;; | |
3271 | "no" ) : ${CC=cc} ;; | |
503d2be0 AS |
3272 | * ) |
3273 | esac | |
3274 | ac_ext=c | |
3275 | ac_cpp='$CPP $CPPFLAGS' | |
3276 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3277 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3278 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3279 | if test -n "$ac_tool_prefix"; then | |
3280 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3281 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ca81d7a0 JD |
3282 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3283 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3284 | if test "${ac_cv_prog_CC+set}" = set; then |
3285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
3286 | else |
3287 | if test -n "$CC"; then | |
3288 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3289 | else | |
c0d27fcc MR |
3290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3291 | for as_dir in $PATH | |
3292 | do | |
3293 | IFS=$as_save_IFS | |
3294 | test -z "$as_dir" && as_dir=. | |
3295 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 3296 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3297 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3298 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3299 | break 2 | |
3300 | fi | |
3301 | done | |
503d2be0 | 3302 | done |
ca81d7a0 | 3303 | IFS=$as_save_IFS |
503d2be0 | 3304 | |
ba4481b5 DL |
3305 | fi |
3306 | fi | |
503d2be0 | 3307 | CC=$ac_cv_prog_CC |
ba4481b5 | 3308 | if test -n "$CC"; then |
ca81d7a0 JD |
3309 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3310 | echo "${ECHO_T}$CC" >&6; } | |
503d2be0 | 3311 | else |
ca81d7a0 JD |
3312 | { echo "$as_me:$LINENO: result: no" >&5 |
3313 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
3314 | fi |
3315 | ||
ca81d7a0 | 3316 | |
503d2be0 AS |
3317 | fi |
3318 | if test -z "$ac_cv_prog_CC"; then | |
3319 | ac_ct_CC=$CC | |
3320 | # Extract the first word of "gcc", so it can be a program name with args. | |
3321 | set dummy gcc; ac_word=$2 | |
ca81d7a0 JD |
3322 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3323 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3324 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3326 | else | |
3327 | if test -n "$ac_ct_CC"; then | |
3328 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3329 | else | |
c0d27fcc MR |
3330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3331 | for as_dir in $PATH | |
3332 | do | |
3333 | IFS=$as_save_IFS | |
3334 | test -z "$as_dir" && as_dir=. | |
3335 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 3336 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3337 | ac_cv_prog_ac_ct_CC="gcc" |
3338 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3339 | break 2 | |
3340 | fi | |
3341 | done | |
503d2be0 | 3342 | done |
ca81d7a0 | 3343 | IFS=$as_save_IFS |
503d2be0 AS |
3344 | |
3345 | fi | |
3346 | fi | |
3347 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3348 | if test -n "$ac_ct_CC"; then | |
ca81d7a0 JD |
3349 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3350 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ba4481b5 | 3351 | else |
ca81d7a0 JD |
3352 | { echo "$as_me:$LINENO: result: no" >&5 |
3353 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
3354 | fi |
3355 | ||
ca81d7a0 JD |
3356 | if test "x$ac_ct_CC" = x; then |
3357 | CC="" | |
3358 | else | |
3359 | case $cross_compiling:$ac_tool_warned in | |
3360 | yes:) | |
3361 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3362 | whose name does not start with the host triplet. If you think this | |
3363 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3364 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3365 | whose name does not start with the host triplet. If you think this | |
3366 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3367 | ac_tool_warned=yes ;; | |
3368 | esac | |
3369 | CC=$ac_ct_CC | |
3370 | fi | |
503d2be0 AS |
3371 | else |
3372 | CC="$ac_cv_prog_CC" | |
ba4481b5 DL |
3373 | fi |
3374 | ||
3375 | if test -z "$CC"; then | |
ca81d7a0 JD |
3376 | if test -n "$ac_tool_prefix"; then |
3377 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
503d2be0 | 3378 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ca81d7a0 JD |
3379 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3380 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3381 | if test "${ac_cv_prog_CC+set}" = set; then |
3382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
3383 | else |
3384 | if test -n "$CC"; then | |
3385 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3386 | else | |
c0d27fcc MR |
3387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3388 | for as_dir in $PATH | |
3389 | do | |
3390 | IFS=$as_save_IFS | |
3391 | test -z "$as_dir" && as_dir=. | |
3392 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 3393 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3394 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3395 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3396 | break 2 | |
3397 | fi | |
3398 | done | |
503d2be0 | 3399 | done |
ca81d7a0 | 3400 | IFS=$as_save_IFS |
503d2be0 AS |
3401 | |
3402 | fi | |
3403 | fi | |
3404 | CC=$ac_cv_prog_CC | |
3405 | if test -n "$CC"; then | |
ca81d7a0 JD |
3406 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3407 | echo "${ECHO_T}$CC" >&6; } | |
4b411bfe | 3408 | else |
ca81d7a0 JD |
3409 | { echo "$as_me:$LINENO: result: no" >&5 |
3410 | echo "${ECHO_T}no" >&6; } | |
4b411bfe CY |
3411 | fi |
3412 | ||
4b411bfe | 3413 | |
ca81d7a0 | 3414 | fi |
503d2be0 AS |
3415 | fi |
3416 | if test -z "$CC"; then | |
3417 | # Extract the first word of "cc", so it can be a program name with args. | |
3418 | set dummy cc; ac_word=$2 | |
ca81d7a0 JD |
3419 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3420 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3421 | if test "${ac_cv_prog_CC+set}" = set; then |
3422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3423 | else | |
3424 | if test -n "$CC"; then | |
3425 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3426 | else | |
3427 | ac_prog_rejected=no | |
c0d27fcc MR |
3428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3429 | for as_dir in $PATH | |
3430 | do | |
3431 | IFS=$as_save_IFS | |
3432 | test -z "$as_dir" && as_dir=. | |
3433 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 3434 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3435 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3436 | ac_prog_rejected=yes | |
3437 | continue | |
3438 | fi | |
3439 | ac_cv_prog_CC="cc" | |
3440 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3441 | break 2 | |
3442 | fi | |
3443 | done | |
503d2be0 | 3444 | done |
ca81d7a0 | 3445 | IFS=$as_save_IFS |
503d2be0 | 3446 | |
ba4481b5 DL |
3447 | if test $ac_prog_rejected = yes; then |
3448 | # We found a bogon in the path, so make sure we never use it. | |
3449 | set dummy $ac_cv_prog_CC | |
3450 | shift | |
503d2be0 | 3451 | if test $# != 0; then |
ba4481b5 DL |
3452 | # We chose a different compiler from the bogus one. |
3453 | # However, it has the same basename, so the bogon will be chosen | |
3454 | # first if we set CC to just the basename; use the full file name. | |
3455 | shift | |
6bae0ccf | 3456 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
ba4481b5 DL |
3457 | fi |
3458 | fi | |
3459 | fi | |
3460 | fi | |
503d2be0 | 3461 | CC=$ac_cv_prog_CC |
ba4481b5 | 3462 | if test -n "$CC"; then |
ca81d7a0 JD |
3463 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3464 | echo "${ECHO_T}$CC" >&6; } | |
ba4481b5 | 3465 | else |
ca81d7a0 JD |
3466 | { echo "$as_me:$LINENO: result: no" >&5 |
3467 | echo "${ECHO_T}no" >&6; } | |
ba4481b5 DL |
3468 | fi |
3469 | ||
ca81d7a0 | 3470 | |
503d2be0 AS |
3471 | fi |
3472 | if test -z "$CC"; then | |
3473 | if test -n "$ac_tool_prefix"; then | |
ca81d7a0 | 3474 | for ac_prog in cl.exe |
503d2be0 AS |
3475 | do |
3476 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3477 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ca81d7a0 JD |
3478 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3480 | if test "${ac_cv_prog_CC+set}" = set; then |
3481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c4bb2108 DL |
3482 | else |
3483 | if test -n "$CC"; then | |
3484 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3485 | else | |
c0d27fcc MR |
3486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3487 | for as_dir in $PATH | |
3488 | do | |
3489 | IFS=$as_save_IFS | |
3490 | test -z "$as_dir" && as_dir=. | |
3491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 3492 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3493 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3495 | break 2 | |
3496 | fi | |
3497 | done | |
503d2be0 | 3498 | done |
ca81d7a0 | 3499 | IFS=$as_save_IFS |
503d2be0 | 3500 | |
c4bb2108 DL |
3501 | fi |
3502 | fi | |
503d2be0 | 3503 | CC=$ac_cv_prog_CC |
c4bb2108 | 3504 | if test -n "$CC"; then |
ca81d7a0 JD |
3505 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3506 | echo "${ECHO_T}$CC" >&6; } | |
c4bb2108 | 3507 | else |
ca81d7a0 JD |
3508 | { echo "$as_me:$LINENO: result: no" >&5 |
3509 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
3510 | fi |
3511 | ||
ca81d7a0 | 3512 | |
503d2be0 AS |
3513 | test -n "$CC" && break |
3514 | done | |
3515 | fi | |
3516 | if test -z "$CC"; then | |
3517 | ac_ct_CC=$CC | |
ca81d7a0 | 3518 | for ac_prog in cl.exe |
503d2be0 AS |
3519 | do |
3520 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3521 | set dummy $ac_prog; ac_word=$2 | |
ca81d7a0 JD |
3522 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3524 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3526 | else | |
3527 | if test -n "$ac_ct_CC"; then | |
3528 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3529 | else | |
c0d27fcc MR |
3530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3531 | for as_dir in $PATH | |
3532 | do | |
3533 | IFS=$as_save_IFS | |
3534 | test -z "$as_dir" && as_dir=. | |
3535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 3536 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3537 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3539 | break 2 | |
3540 | fi | |
3541 | done | |
503d2be0 | 3542 | done |
ca81d7a0 | 3543 | IFS=$as_save_IFS |
503d2be0 | 3544 | |
c4bb2108 | 3545 | fi |
503d2be0 AS |
3546 | fi |
3547 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3548 | if test -n "$ac_ct_CC"; then | |
ca81d7a0 JD |
3549 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3550 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
503d2be0 | 3551 | else |
ca81d7a0 JD |
3552 | { echo "$as_me:$LINENO: result: no" >&5 |
3553 | echo "${ECHO_T}no" >&6; } | |
ba4481b5 DL |
3554 | fi |
3555 | ||
ca81d7a0 | 3556 | |
503d2be0 AS |
3557 | test -n "$ac_ct_CC" && break |
3558 | done | |
ba4481b5 | 3559 | |
ca81d7a0 JD |
3560 | if test "x$ac_ct_CC" = x; then |
3561 | CC="" | |
3562 | else | |
3563 | case $cross_compiling:$ac_tool_warned in | |
3564 | yes:) | |
3565 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3566 | whose name does not start with the host triplet. If you think this | |
3567 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3568 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3569 | whose name does not start with the host triplet. If you think this | |
3570 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3571 | ac_tool_warned=yes ;; | |
3572 | esac | |
3573 | CC=$ac_ct_CC | |
3574 | fi | |
503d2be0 AS |
3575 | fi |
3576 | ||
3577 | fi | |
ba4481b5 | 3578 | |
c0d27fcc | 3579 | |
19650fd6 AS |
3580 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
3581 | See \`config.log' for more details." >&5 | |
3582 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3583 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3584 | { (exit 1); exit 1; }; } |
c4bb2108 | 3585 | |
503d2be0 | 3586 | # Provide some information about the compiler. |
ca81d7a0 | 3587 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
503d2be0 | 3588 | ac_compiler=`set X $ac_compile; echo $2` |
ca81d7a0 JD |
3589 | { (ac_try="$ac_compiler --version >&5" |
3590 | case "(($ac_try" in | |
3591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3592 | *) ac_try_echo=$ac_try;; | |
3593 | esac | |
3594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3595 | (eval "$ac_compiler --version >&5") 2>&5 | |
503d2be0 | 3596 | ac_status=$? |
c0d27fcc | 3597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3598 | (exit $ac_status); } |
ca81d7a0 JD |
3599 | { (ac_try="$ac_compiler -v >&5" |
3600 | case "(($ac_try" in | |
3601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3602 | *) ac_try_echo=$ac_try;; | |
3603 | esac | |
3604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3605 | (eval "$ac_compiler -v >&5") 2>&5 | |
503d2be0 | 3606 | ac_status=$? |
c0d27fcc | 3607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3608 | (exit $ac_status); } |
ca81d7a0 JD |
3609 | { (ac_try="$ac_compiler -V >&5" |
3610 | case "(($ac_try" in | |
3611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3612 | *) ac_try_echo=$ac_try;; | |
3613 | esac | |
3614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3615 | (eval "$ac_compiler -V >&5") 2>&5 | |
503d2be0 | 3616 | ac_status=$? |
c0d27fcc | 3617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3618 | (exit $ac_status); } |
3619 | ||
3620 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3621 | /* confdefs.h. */ |
3622 | _ACEOF | |
3623 | cat confdefs.h >>conftest.$ac_ext | |
3624 | cat >>conftest.$ac_ext <<_ACEOF | |
3625 | /* end confdefs.h. */ | |
c4bb2108 | 3626 | |
503d2be0 AS |
3627 | int |
3628 | main () | |
3629 | { | |
3630 | ||
3631 | ; | |
3632 | return 0; | |
3633 | } | |
3634 | _ACEOF | |
3635 | ac_clean_files_save=$ac_clean_files | |
19650fd6 | 3636 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
503d2be0 AS |
3637 | # Try to create an executable without -o first, disregard a.out. |
3638 | # It will help us diagnose broken compilers, and finding out an intuition | |
3639 | # of exeext. | |
ca81d7a0 JD |
3640 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3641 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
503d2be0 | 3642 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
ca81d7a0 JD |
3643 | # |
3644 | # List of possible output files, starting from the most likely. | |
3645 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
3646 | # only as a last resort. b.out is created by i960 compilers. | |
3647 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
3648 | # | |
3649 | # The IRIX 6 linker writes into existing files which may not be | |
3650 | # executable, retaining their permissions. Remove them first so a | |
3651 | # subsequent execution test works. | |
3652 | ac_rmfiles= | |
3653 | for ac_file in $ac_files | |
3654 | do | |
3655 | case $ac_file in | |
3656 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
3657 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3658 | esac | |
3659 | done | |
3660 | rm -f $ac_rmfiles | |
3661 | ||
3662 | if { (ac_try="$ac_link_default" | |
3663 | case "(($ac_try" in | |
3664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3665 | *) ac_try_echo=$ac_try;; | |
3666 | esac | |
3667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3668 | (eval "$ac_link_default") 2>&5 | |
503d2be0 | 3669 | ac_status=$? |
c0d27fcc | 3670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3671 | (exit $ac_status); }; then |
ca81d7a0 JD |
3672 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3673 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3674 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3675 | # so that the user can short-circuit this test for compilers unknown to | |
3676 | # Autoconf. | |
f053c89f | 3677 | for ac_file in $ac_files '' |
19650fd6 | 3678 | do |
6bae0ccf | 3679 | test -f "$ac_file" || continue |
503d2be0 | 3680 | case $ac_file in |
ca81d7a0 | 3681 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
edfaf76d | 3682 | ;; |
19650fd6 | 3683 | [ab].out ) |
edfaf76d LK |
3684 | # We found the default executable, but exeext='' is most |
3685 | # certainly right. | |
3686 | break;; | |
19650fd6 | 3687 | *.* ) |
ca81d7a0 JD |
3688 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3689 | then :; else | |
3690 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3691 | fi | |
3692 | # We set ac_cv_exeext here because the later test for it is not | |
3693 | # safe: cross compilers may not add the suffix if given an `-o' | |
3694 | # argument, so we may need to know it at that point already. | |
3695 | # Even if this section looks crufty: it has the advantage of | |
3696 | # actually working. | |
edfaf76d | 3697 | break;; |
19650fd6 | 3698 | * ) |
edfaf76d | 3699 | break;; |
503d2be0 AS |
3700 | esac |
3701 | done | |
ca81d7a0 JD |
3702 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3703 | ||
503d2be0 | 3704 | else |
f053c89f CY |
3705 | ac_file='' |
3706 | fi | |
3707 | ||
3708 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3709 | echo "${ECHO_T}$ac_file" >&6; } | |
3710 | if test -z "$ac_file"; then | |
503d2be0 | 3711 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3712 | sed 's/^/| /' conftest.$ac_ext >&5 |
3713 | ||
6bae0ccf | 3714 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
19650fd6 | 3715 | See \`config.log' for more details." >&5 |
6bae0ccf | 3716 | echo "$as_me: error: C compiler cannot create executables |
19650fd6 | 3717 | See \`config.log' for more details." >&2;} |
503d2be0 AS |
3718 | { (exit 77); exit 77; }; } |
3719 | fi | |
3720 | ||
3721 | ac_exeext=$ac_cv_exeext | |
503d2be0 | 3722 | |
ca81d7a0 | 3723 | # Check that the compiler produces executables we can run. If not, either |
503d2be0 | 3724 | # the compiler is broken, or we cross compile. |
ca81d7a0 JD |
3725 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3726 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
503d2be0 AS |
3727 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3728 | # If not cross compiling, check that we can run a simple program. | |
3729 | if test "$cross_compiling" != yes; then | |
3730 | if { ac_try='./$ac_file' | |
ca81d7a0 JD |
3731 | { (case "(($ac_try" in |
3732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3733 | *) ac_try_echo=$ac_try;; | |
3734 | esac | |
3735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3736 | (eval "$ac_try") 2>&5 | |
503d2be0 | 3737 | ac_status=$? |
c0d27fcc | 3738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3739 | (exit $ac_status); }; }; then |
3740 | cross_compiling=no | |
ba4481b5 | 3741 | else |
503d2be0 AS |
3742 | if test "$cross_compiling" = maybe; then |
3743 | cross_compiling=yes | |
3744 | else | |
c0d27fcc | 3745 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
19650fd6 AS |
3746 | If you meant to cross compile, use \`--host'. |
3747 | See \`config.log' for more details." >&5 | |
503d2be0 | 3748 | echo "$as_me: error: cannot run C compiled programs. |
19650fd6 AS |
3749 | If you meant to cross compile, use \`--host'. |
3750 | See \`config.log' for more details." >&2;} | |
503d2be0 AS |
3751 | { (exit 1); exit 1; }; } |
3752 | fi | |
ba4481b5 | 3753 | fi |
503d2be0 | 3754 | fi |
ca81d7a0 JD |
3755 | { echo "$as_me:$LINENO: result: yes" >&5 |
3756 | echo "${ECHO_T}yes" >&6; } | |
503d2be0 | 3757 | |
19650fd6 | 3758 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
503d2be0 | 3759 | ac_clean_files=$ac_clean_files_save |
ca81d7a0 | 3760 | # Check that the compiler produces executables we can run. If not, either |
503d2be0 | 3761 | # the compiler is broken, or we cross compile. |
ca81d7a0 JD |
3762 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3763 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
3764 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3765 | echo "${ECHO_T}$cross_compiling" >&6; } | |
3766 | ||
3767 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3768 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
3769 | if { (ac_try="$ac_link" | |
3770 | case "(($ac_try" in | |
3771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3772 | *) ac_try_echo=$ac_try;; | |
3773 | esac | |
3774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3775 | (eval "$ac_link") 2>&5 | |
503d2be0 | 3776 | ac_status=$? |
c0d27fcc | 3777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3778 | (exit $ac_status); }; then |
3779 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3780 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3781 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3782 | # `rm'. | |
6bae0ccf DL |
3783 | for ac_file in conftest.exe conftest conftest.*; do |
3784 | test -f "$ac_file" || continue | |
503d2be0 | 3785 | case $ac_file in |
ca81d7a0 | 3786 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
503d2be0 | 3787 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
edfaf76d | 3788 | break;; |
503d2be0 AS |
3789 | * ) break;; |
3790 | esac | |
3791 | done | |
ba4481b5 | 3792 | else |
19650fd6 AS |
3793 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3794 | See \`config.log' for more details." >&5 | |
3795 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3796 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3797 | { (exit 1); exit 1; }; } |
ba4481b5 | 3798 | fi |
ba4481b5 | 3799 | |
503d2be0 | 3800 | rm -f conftest$ac_cv_exeext |
ca81d7a0 JD |
3801 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3802 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
ba4481b5 | 3803 | |
503d2be0 AS |
3804 | rm -f conftest.$ac_ext |
3805 | EXEEXT=$ac_cv_exeext | |
3806 | ac_exeext=$EXEEXT | |
ca81d7a0 JD |
3807 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3808 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
503d2be0 AS |
3809 | if test "${ac_cv_objext+set}" = set; then |
3810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3811 | else |
503d2be0 | 3812 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3813 | /* confdefs.h. */ |
3814 | _ACEOF | |
3815 | cat confdefs.h >>conftest.$ac_ext | |
3816 | cat >>conftest.$ac_ext <<_ACEOF | |
3817 | /* end confdefs.h. */ | |
ba4481b5 | 3818 | |
503d2be0 AS |
3819 | int |
3820 | main () | |
3821 | { | |
ba4481b5 | 3822 | |
503d2be0 AS |
3823 | ; |
3824 | return 0; | |
3825 | } | |
3826 | _ACEOF | |
3827 | rm -f conftest.o conftest.obj | |
ca81d7a0 JD |
3828 | if { (ac_try="$ac_compile" |
3829 | case "(($ac_try" in | |
3830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3831 | *) ac_try_echo=$ac_try;; | |
3832 | esac | |
3833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3834 | (eval "$ac_compile") 2>&5 | |
503d2be0 | 3835 | ac_status=$? |
c0d27fcc | 3836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3837 | (exit $ac_status); }; then |
ca81d7a0 JD |
3838 | for ac_file in conftest.o conftest.obj conftest.*; do |
3839 | test -f "$ac_file" || continue; | |
503d2be0 | 3840 | case $ac_file in |
ca81d7a0 | 3841 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
503d2be0 AS |
3842 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3843 | break;; | |
3844 | esac | |
3845 | done | |
c4bb2108 | 3846 | else |
503d2be0 | 3847 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3848 | sed 's/^/| /' conftest.$ac_ext >&5 |
3849 | ||
3850 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3851 | See \`config.log' for more details." >&5 | |
3852 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3853 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3854 | { (exit 1); exit 1; }; } |
c4bb2108 DL |
3855 | fi |
3856 | ||
503d2be0 AS |
3857 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3858 | fi | |
ca81d7a0 JD |
3859 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3860 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
503d2be0 AS |
3861 | OBJEXT=$ac_cv_objext |
3862 | ac_objext=$OBJEXT | |
ca81d7a0 JD |
3863 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3864 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
503d2be0 AS |
3865 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3867 | else |
503d2be0 | 3868 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3869 | /* confdefs.h. */ |
3870 | _ACEOF | |
3871 | cat confdefs.h >>conftest.$ac_ext | |
3872 | cat >>conftest.$ac_ext <<_ACEOF | |
3873 | /* end confdefs.h. */ | |
503d2be0 AS |
3874 | |
3875 | int | |
3876 | main () | |
3877 | { | |
3878 | #ifndef __GNUC__ | |
3879 | choke me | |
3880 | #endif | |
3881 | ||
3882 | ; | |
3883 | return 0; | |
3884 | } | |
3885 | _ACEOF | |
3886 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
3887 | if { (ac_try="$ac_compile" |
3888 | case "(($ac_try" in | |
3889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3890 | *) ac_try_echo=$ac_try;; | |
3891 | esac | |
3892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3893 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 3894 | ac_status=$? |
edfaf76d LK |
3895 | grep -v '^ *+' conftest.er1 >conftest.err |
3896 | rm -f conftest.er1 | |
3897 | cat conftest.err >&5 | |
c0d27fcc | 3898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
3899 | (exit $ac_status); } && { |
3900 | test -z "$ac_c_werror_flag" || | |
3901 | test ! -s conftest.err | |
3902 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
3903 | ac_compiler_gnu=yes |
3904 | else | |
3905 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3906 | sed 's/^/| /' conftest.$ac_ext >&5 |
3907 | ||
ca81d7a0 | 3908 | ac_compiler_gnu=no |
503d2be0 | 3909 | fi |
ca81d7a0 JD |
3910 | |
3911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 AS |
3912 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3913 | ||
3914 | fi | |
ca81d7a0 JD |
3915 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3916 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
503d2be0 AS |
3917 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3918 | ac_test_CFLAGS=${CFLAGS+set} | |
3919 | ac_save_CFLAGS=$CFLAGS | |
ca81d7a0 JD |
3920 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3921 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
503d2be0 AS |
3922 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3924 | else | |
ca81d7a0 JD |
3925 | ac_save_c_werror_flag=$ac_c_werror_flag |
3926 | ac_c_werror_flag=yes | |
3927 | ac_cv_prog_cc_g=no | |
3928 | CFLAGS="-g" | |
3929 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3930 | /* confdefs.h. */ |
3931 | _ACEOF | |
3932 | cat confdefs.h >>conftest.$ac_ext | |
3933 | cat >>conftest.$ac_ext <<_ACEOF | |
3934 | /* end confdefs.h. */ | |
503d2be0 AS |
3935 | |
3936 | int | |
3937 | main () | |
3938 | { | |
3939 | ||
3940 | ; | |
3941 | return 0; | |
3942 | } | |
3943 | _ACEOF | |
3944 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
3945 | if { (ac_try="$ac_compile" |
3946 | case "(($ac_try" in | |
3947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3948 | *) ac_try_echo=$ac_try;; | |
3949 | esac | |
3950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3951 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 3952 | ac_status=$? |
edfaf76d LK |
3953 | grep -v '^ *+' conftest.er1 >conftest.err |
3954 | rm -f conftest.er1 | |
3955 | cat conftest.err >&5 | |
c0d27fcc | 3956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
3957 | (exit $ac_status); } && { |
3958 | test -z "$ac_c_werror_flag" || | |
3959 | test ! -s conftest.err | |
3960 | } && test -s conftest.$ac_objext; then | |
ba4481b5 DL |
3961 | ac_cv_prog_cc_g=yes |
3962 | else | |
503d2be0 | 3963 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3964 | sed 's/^/| /' conftest.$ac_ext >&5 |
3965 | ||
ca81d7a0 JD |
3966 | CFLAGS="" |
3967 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3968 | /* confdefs.h. */ |
3969 | _ACEOF | |
3970 | cat confdefs.h >>conftest.$ac_ext | |
3971 | cat >>conftest.$ac_ext <<_ACEOF | |
3972 | /* end confdefs.h. */ | |
edfaf76d | 3973 | |
6bae0ccf DL |
3974 | int |
3975 | main () | |
3976 | { | |
ca81d7a0 | 3977 | |
6bae0ccf DL |
3978 | ; |
3979 | return 0; | |
3980 | } | |
3981 | _ACEOF | |
ca81d7a0 JD |
3982 | rm -f conftest.$ac_objext |
3983 | if { (ac_try="$ac_compile" | |
3984 | case "(($ac_try" in | |
3985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3986 | *) ac_try_echo=$ac_try;; | |
3987 | esac | |
3988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3989 | (eval "$ac_compile") 2>conftest.er1 | |
6bae0ccf | 3990 | ac_status=$? |
edfaf76d LK |
3991 | grep -v '^ *+' conftest.er1 >conftest.err |
3992 | rm -f conftest.er1 | |
3993 | cat conftest.err >&5 | |
6bae0ccf | 3994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
3995 | (exit $ac_status); } && { |
3996 | test -z "$ac_c_werror_flag" || | |
3997 | test ! -s conftest.err | |
3998 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 | 3999 | : |
6bae0ccf DL |
4000 | else |
4001 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4002 | sed 's/^/| /' conftest.$ac_ext >&5 |
4003 | ||
ca81d7a0 JD |
4004 | ac_c_werror_flag=$ac_save_c_werror_flag |
4005 | CFLAGS="-g" | |
4006 | cat >conftest.$ac_ext <<_ACEOF | |
4b411bfe | 4007 | /* confdefs.h. */ |
19650fd6 AS |
4008 | _ACEOF |
4009 | cat confdefs.h >>conftest.$ac_ext | |
4010 | cat >>conftest.$ac_ext <<_ACEOF | |
4011 | /* end confdefs.h. */ | |
ca81d7a0 | 4012 | |
503d2be0 AS |
4013 | int |
4014 | main () | |
4015 | { | |
ca81d7a0 | 4016 | |
503d2be0 AS |
4017 | ; |
4018 | return 0; | |
4019 | } | |
4020 | _ACEOF | |
4021 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
4022 | if { (ac_try="$ac_compile" |
4023 | case "(($ac_try" in | |
4024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4025 | *) ac_try_echo=$ac_try;; | |
4026 | esac | |
4027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4028 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 4029 | ac_status=$? |
edfaf76d LK |
4030 | grep -v '^ *+' conftest.er1 >conftest.err |
4031 | rm -f conftest.er1 | |
4032 | cat conftest.err >&5 | |
c0d27fcc | 4033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
4034 | (exit $ac_status); } && { |
4035 | test -z "$ac_c_werror_flag" || | |
4036 | test ! -s conftest.err | |
4037 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 | 4038 | ac_cv_prog_cc_g=yes |
503d2be0 AS |
4039 | else |
4040 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4041 | sed 's/^/| /' conftest.$ac_ext >&5 |
4042 | ||
ca81d7a0 | 4043 | |
8eeae1c9 | 4044 | fi |
ca81d7a0 JD |
4045 | |
4046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4047 | fi | |
4048 | ||
4049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4050 | fi | |
4051 | ||
4052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4053 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4054 | fi | |
4055 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
4056 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
4057 | if test "$ac_test_CFLAGS" = set; then | |
4058 | CFLAGS=$ac_save_CFLAGS | |
4059 | elif test $ac_cv_prog_cc_g = yes; then | |
4060 | if test "$GCC" = yes; then | |
4061 | CFLAGS="-g -O2" | |
4062 | else | |
4063 | CFLAGS="-g" | |
4064 | fi | |
4065 | else | |
4066 | if test "$GCC" = yes; then | |
4067 | CFLAGS="-O2" | |
4068 | else | |
4069 | CFLAGS= | |
4070 | fi | |
4071 | fi | |
4072 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
4073 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
4074 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
4075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4076 | else | |
4077 | ac_cv_prog_cc_c89=no | |
4078 | ac_save_CC=$CC | |
4079 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4080 | /* confdefs.h. */ |
4081 | _ACEOF | |
4082 | cat confdefs.h >>conftest.$ac_ext | |
4083 | cat >>conftest.$ac_ext <<_ACEOF | |
4084 | /* end confdefs.h. */ | |
ca81d7a0 JD |
4085 | #include <stdarg.h> |
4086 | #include <stdio.h> | |
4087 | #include <sys/types.h> | |
4088 | #include <sys/stat.h> | |
4089 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4090 | struct buf { int x; }; | |
4091 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4092 | static char *e (p, i) | |
4093 | char **p; | |
4094 | int i; | |
4095 | { | |
4096 | return p[i]; | |
4097 | } | |
4098 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4099 | { | |
4100 | char *s; | |
4101 | va_list v; | |
4102 | va_start (v,p); | |
4103 | s = g (p, va_arg (v,int)); | |
4104 | va_end (v); | |
4105 | return s; | |
4106 | } | |
4107 | ||
4108 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4109 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4110 | These don't provoke an error unfortunately, instead are silently treated | |
4111 | as 'x'. The following induces an error, until -std is added to get | |
4112 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4113 | array size at least. It's necessary to write '\x00'==0 to get something | |
4114 | that's true only with -std. */ | |
4115 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4116 | ||
4117 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4118 | inside strings and character constants. */ | |
4119 | #define FOO(x) 'x' | |
4120 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4121 | ||
4122 | int test (int i, double x); | |
4123 | struct s1 {int (*f) (int a);}; | |
4124 | struct s2 {int (*f) (double a);}; | |
4125 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4126 | int argc; | |
4127 | char **argv; | |
503d2be0 AS |
4128 | int |
4129 | main () | |
4130 | { | |
ca81d7a0 | 4131 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
503d2be0 AS |
4132 | ; |
4133 | return 0; | |
4134 | } | |
4135 | _ACEOF | |
ca81d7a0 JD |
4136 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4137 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4138 | do | |
4139 | CC="$ac_save_CC $ac_arg" | |
4140 | rm -f conftest.$ac_objext | |
4141 | if { (ac_try="$ac_compile" | |
4142 | case "(($ac_try" in | |
4143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4144 | *) ac_try_echo=$ac_try;; | |
4145 | esac | |
4146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4147 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 4148 | ac_status=$? |
edfaf76d LK |
4149 | grep -v '^ *+' conftest.er1 >conftest.err |
4150 | rm -f conftest.er1 | |
4151 | cat conftest.err >&5 | |
c0d27fcc | 4152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
4153 | (exit $ac_status); } && { |
4154 | test -z "$ac_c_werror_flag" || | |
4155 | test ! -s conftest.err | |
4156 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 | 4157 | ac_cv_prog_cc_c89=$ac_arg |
503d2be0 AS |
4158 | else |
4159 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4160 | sed 's/^/| /' conftest.$ac_ext >&5 |
4161 | ||
ca81d7a0 | 4162 | |
503d2be0 | 4163 | fi |
ca81d7a0 JD |
4164 | |
4165 | rm -f core conftest.err conftest.$ac_objext | |
4166 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
503d2be0 | 4167 | done |
ca81d7a0 JD |
4168 | rm -f conftest.$ac_ext |
4169 | CC=$ac_save_CC | |
4170 | ||
503d2be0 | 4171 | fi |
ca81d7a0 JD |
4172 | # AC_CACHE_VAL |
4173 | case "x$ac_cv_prog_cc_c89" in | |
4174 | x) | |
4175 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
4176 | echo "${ECHO_T}none needed" >&6; } ;; | |
4177 | xno) | |
4178 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
4179 | echo "${ECHO_T}unsupported" >&6; } ;; | |
4180 | *) | |
4181 | CC="$CC $ac_cv_prog_cc_c89" | |
4182 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
4183 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
4184 | esac | |
ba4481b5 | 4185 | |
19650fd6 | 4186 | |
503d2be0 AS |
4187 | ac_ext=c |
4188 | ac_cpp='$CPP $CPPFLAGS' | |
4189 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4190 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4191 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 | 4192 | |
c0d27fcc | 4193 | |
ba4481b5 DL |
4194 | # On Suns, sometimes $CPP names a directory. |
4195 | if test -n "$CPP" && test -d "$CPP"; then | |
4196 | CPP= | |
4197 | fi | |
4198 | ||
4199 | #### Some systems specify a CPP to use unless we are using GCC. | |
4200 | #### Now that we know whether we are using GCC, we can decide whether | |
4201 | #### to use that one. | |
4202 | if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
4203 | then | |
4204 | CPP="$NON_GNU_CPP" | |
4205 | fi | |
4206 | ||
4207 | #### Some systems specify a CC to use unless we are using GCC. | |
4208 | #### Now that we know whether we are using GCC, we can decide whether | |
4209 | #### to use that one. | |
4210 | if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
4211 | test x$cc_specified != xyes | |
4212 | then | |
4213 | CC="$NON_GNU_CC" | |
4214 | fi | |
4215 | ||
4216 | if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
4217 | then | |
4218 | CC="$CC $GCC_TEST_OPTIONS" | |
4219 | fi | |
4220 | ||
4221 | if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
4222 | then | |
4223 | CC="$CC $NON_GCC_TEST_OPTIONS" | |
4224 | fi | |
4225 | ||
e143ad11 AS |
4226 | |
4227 | ac_ext=c | |
4228 | ac_cpp='$CPP $CPPFLAGS' | |
4229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ca81d7a0 JD |
4232 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4233 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
e143ad11 AS |
4234 | # On Suns, sometimes $CPP names a directory. |
4235 | if test -n "$CPP" && test -d "$CPP"; then | |
4236 | CPP= | |
4237 | fi | |
4238 | if test -z "$CPP"; then | |
4239 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4241 | else | |
4242 | # Double quotes because CPP needs to be expanded | |
4243 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4244 | do | |
4245 | ac_preproc_ok=false | |
4246 | for ac_c_preproc_warn_flag in '' yes | |
4247 | do | |
4248 | # Use a header file that comes with gcc, so configuring glibc | |
4249 | # with a fresh cross-compiler works. | |
4250 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4251 | # <limits.h> exists even on freestanding compilers. | |
4252 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4253 | # not just through cpp. "Syntax error" is here to catch this case. | |
4254 | cat >conftest.$ac_ext <<_ACEOF | |
4255 | /* confdefs.h. */ | |
4256 | _ACEOF | |
4257 | cat confdefs.h >>conftest.$ac_ext | |
4258 | cat >>conftest.$ac_ext <<_ACEOF | |
4259 | /* end confdefs.h. */ | |
4260 | #ifdef __STDC__ | |
4261 | # include <limits.h> | |
4262 | #else | |
4263 | # include <assert.h> | |
4264 | #endif | |
4265 | Syntax error | |
4266 | _ACEOF | |
ca81d7a0 JD |
4267 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4268 | case "(($ac_try" in | |
4269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4270 | *) ac_try_echo=$ac_try;; | |
4271 | esac | |
4272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4273 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e143ad11 AS |
4274 | ac_status=$? |
4275 | grep -v '^ *+' conftest.er1 >conftest.err | |
4276 | rm -f conftest.er1 | |
4277 | cat conftest.err >&5 | |
4278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
4279 | (exit $ac_status); } >/dev/null && { |
4280 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4281 | test ! -s conftest.err | |
4282 | }; then | |
e143ad11 AS |
4283 | : |
4284 | else | |
4285 | echo "$as_me: failed program was:" >&5 | |
4286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4287 | ||
4288 | # Broken: fails on valid input. | |
4289 | continue | |
4290 | fi | |
ca81d7a0 | 4291 | |
e143ad11 AS |
4292 | rm -f conftest.err conftest.$ac_ext |
4293 | ||
ca81d7a0 | 4294 | # OK, works on sane cases. Now check whether nonexistent headers |
e143ad11 AS |
4295 | # can be detected and how. |
4296 | cat >conftest.$ac_ext <<_ACEOF | |
4297 | /* confdefs.h. */ | |
4298 | _ACEOF | |
4299 | cat confdefs.h >>conftest.$ac_ext | |
4300 | cat >>conftest.$ac_ext <<_ACEOF | |
4301 | /* end confdefs.h. */ | |
4302 | #include <ac_nonexistent.h> | |
4303 | _ACEOF | |
ca81d7a0 JD |
4304 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4305 | case "(($ac_try" in | |
4306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4307 | *) ac_try_echo=$ac_try;; | |
4308 | esac | |
4309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4310 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e143ad11 AS |
4311 | ac_status=$? |
4312 | grep -v '^ *+' conftest.er1 >conftest.err | |
4313 | rm -f conftest.er1 | |
4314 | cat conftest.err >&5 | |
4315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
4316 | (exit $ac_status); } >/dev/null && { |
4317 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4318 | test ! -s conftest.err | |
4319 | }; then | |
e143ad11 AS |
4320 | # Broken: success on invalid input. |
4321 | continue | |
4322 | else | |
4323 | echo "$as_me: failed program was:" >&5 | |
4324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4325 | ||
4326 | # Passes both tests. | |
4327 | ac_preproc_ok=: | |
4328 | break | |
4329 | fi | |
ca81d7a0 | 4330 | |
e143ad11 AS |
4331 | rm -f conftest.err conftest.$ac_ext |
4332 | ||
4333 | done | |
4334 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4335 | rm -f conftest.err conftest.$ac_ext | |
4336 | if $ac_preproc_ok; then | |
4337 | break | |
4338 | fi | |
4339 | ||
4340 | done | |
4341 | ac_cv_prog_CPP=$CPP | |
4342 | ||
4343 | fi | |
4344 | CPP=$ac_cv_prog_CPP | |
4345 | else | |
4346 | ac_cv_prog_CPP=$CPP | |
4347 | fi | |
ca81d7a0 JD |
4348 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4349 | echo "${ECHO_T}$CPP" >&6; } | |
e143ad11 AS |
4350 | ac_preproc_ok=false |
4351 | for ac_c_preproc_warn_flag in '' yes | |
4352 | do | |
4353 | # Use a header file that comes with gcc, so configuring glibc | |
4354 | # with a fresh cross-compiler works. | |
4355 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4356 | # <limits.h> exists even on freestanding compilers. | |
4357 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4358 | # not just through cpp. "Syntax error" is here to catch this case. | |
4359 | cat >conftest.$ac_ext <<_ACEOF | |
4360 | /* confdefs.h. */ | |
4361 | _ACEOF | |
4362 | cat confdefs.h >>conftest.$ac_ext | |
4363 | cat >>conftest.$ac_ext <<_ACEOF | |
4364 | /* end confdefs.h. */ | |
4365 | #ifdef __STDC__ | |
4366 | # include <limits.h> | |
4367 | #else | |
4368 | # include <assert.h> | |
4369 | #endif | |
4370 | Syntax error | |
4371 | _ACEOF | |
ca81d7a0 JD |
4372 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4373 | case "(($ac_try" in | |
4374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4375 | *) ac_try_echo=$ac_try;; | |
4376 | esac | |
4377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4378 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e143ad11 AS |
4379 | ac_status=$? |
4380 | grep -v '^ *+' conftest.er1 >conftest.err | |
4381 | rm -f conftest.er1 | |
4382 | cat conftest.err >&5 | |
4383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
4384 | (exit $ac_status); } >/dev/null && { |
4385 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4386 | test ! -s conftest.err | |
4387 | }; then | |
e143ad11 AS |
4388 | : |
4389 | else | |
4390 | echo "$as_me: failed program was:" >&5 | |
4391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4392 | ||
4393 | # Broken: fails on valid input. | |
4394 | continue | |
4395 | fi | |
ca81d7a0 | 4396 | |
e143ad11 AS |
4397 | rm -f conftest.err conftest.$ac_ext |
4398 | ||
ca81d7a0 | 4399 | # OK, works on sane cases. Now check whether nonexistent headers |
e143ad11 AS |
4400 | # can be detected and how. |
4401 | cat >conftest.$ac_ext <<_ACEOF | |
4402 | /* confdefs.h. */ | |
4403 | _ACEOF | |
4404 | cat confdefs.h >>conftest.$ac_ext | |
4405 | cat >>conftest.$ac_ext <<_ACEOF | |
4406 | /* end confdefs.h. */ | |
4407 | #include <ac_nonexistent.h> | |
4408 | _ACEOF | |
ca81d7a0 JD |
4409 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4410 | case "(($ac_try" in | |
4411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4412 | *) ac_try_echo=$ac_try;; | |
4413 | esac | |
4414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4415 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e143ad11 AS |
4416 | ac_status=$? |
4417 | grep -v '^ *+' conftest.er1 >conftest.err | |
4418 | rm -f conftest.er1 | |
4419 | cat conftest.err >&5 | |
4420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
4421 | (exit $ac_status); } >/dev/null && { |
4422 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4423 | test ! -s conftest.err | |
4424 | }; then | |
e143ad11 AS |
4425 | # Broken: success on invalid input. |
4426 | continue | |
4427 | else | |
4428 | echo "$as_me: failed program was:" >&5 | |
4429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4430 | ||
4431 | # Passes both tests. | |
4432 | ac_preproc_ok=: | |
4433 | break | |
4434 | fi | |
ca81d7a0 | 4435 | |
e143ad11 AS |
4436 | rm -f conftest.err conftest.$ac_ext |
4437 | ||
4438 | done | |
4439 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4440 | rm -f conftest.err conftest.$ac_ext | |
4441 | if $ac_preproc_ok; then | |
4442 | : | |
4443 | else | |
4444 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4445 | See \`config.log' for more details." >&5 | |
4446 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4447 | See \`config.log' for more details." >&2;} | |
4448 | { (exit 1); exit 1; }; } | |
4449 | fi | |
4450 | ||
4451 | ac_ext=c | |
4452 | ac_cpp='$CPP $CPPFLAGS' | |
4453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4456 | ||
4457 | ||
ca81d7a0 JD |
4458 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
4459 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
4460 | if test "${ac_cv_path_GREP+set}" = set; then | |
4461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4462 | else | |
4463 | # Extract the first word of "grep ggrep" to use in msg output | |
4464 | if test -z "$GREP"; then | |
4465 | set dummy grep ggrep; ac_prog_name=$2 | |
4466 | if test "${ac_cv_path_GREP+set}" = set; then | |
4467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4468 | else | |
4469 | ac_path_GREP_found=false | |
4470 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4472 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4473 | do | |
4474 | IFS=$as_save_IFS | |
4475 | test -z "$as_dir" && as_dir=. | |
4476 | for ac_prog in grep ggrep; do | |
4477 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4478 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
f053c89f | 4479 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
ca81d7a0 JD |
4480 | # Check for GNU ac_path_GREP and select it if it is found. |
4481 | # Check for GNU $ac_path_GREP | |
4482 | case `"$ac_path_GREP" --version 2>&1` in | |
4483 | *GNU*) | |
4484 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4485 | *) | |
4486 | ac_count=0 | |
4487 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4488 | while : | |
4489 | do | |
4490 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4491 | mv "conftest.tmp" "conftest.in" | |
4492 | cp "conftest.in" "conftest.nl" | |
4493 | echo 'GREP' >> "conftest.nl" | |
4494 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4495 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4496 | ac_count=`expr $ac_count + 1` | |
4497 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4498 | # Best one so far, save it but keep looking for a better one | |
4499 | ac_cv_path_GREP="$ac_path_GREP" | |
4500 | ac_path_GREP_max=$ac_count | |
4501 | fi | |
4502 | # 10*(2^10) chars as input seems more than enough | |
4503 | test $ac_count -gt 10 && break | |
4504 | done | |
4505 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4506 | esac | |
4507 | ||
4508 | ||
4509 | $ac_path_GREP_found && break 3 | |
4510 | done | |
4511 | done | |
4512 | ||
4513 | done | |
4514 | IFS=$as_save_IFS | |
4515 | ||
4516 | ||
4517 | fi | |
4518 | ||
4519 | GREP="$ac_cv_path_GREP" | |
4520 | if test -z "$GREP"; then | |
4521 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4522 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4523 | { (exit 1); exit 1; }; } | |
4524 | fi | |
4525 | ||
4526 | else | |
4527 | ac_cv_path_GREP=$GREP | |
4528 | fi | |
4529 | ||
4530 | ||
4531 | fi | |
4532 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
4533 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
4534 | GREP="$ac_cv_path_GREP" | |
4535 | ||
4536 | ||
4537 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
4538 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
4539 | if test "${ac_cv_path_EGREP+set}" = set; then | |
8eeae1c9 JD |
4540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4541 | else | |
ca81d7a0 JD |
4542 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4543 | then ac_cv_path_EGREP="$GREP -E" | |
4544 | else | |
4545 | # Extract the first word of "egrep" to use in msg output | |
4546 | if test -z "$EGREP"; then | |
4547 | set dummy egrep; ac_prog_name=$2 | |
4548 | if test "${ac_cv_path_EGREP+set}" = set; then | |
4549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4550 | else | |
4551 | ac_path_EGREP_found=false | |
4552 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4554 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4555 | do | |
4556 | IFS=$as_save_IFS | |
4557 | test -z "$as_dir" && as_dir=. | |
4558 | for ac_prog in egrep; do | |
4559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4560 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
f053c89f | 4561 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
ca81d7a0 JD |
4562 | # Check for GNU ac_path_EGREP and select it if it is found. |
4563 | # Check for GNU $ac_path_EGREP | |
4564 | case `"$ac_path_EGREP" --version 2>&1` in | |
4565 | *GNU*) | |
4566 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4567 | *) | |
4568 | ac_count=0 | |
4569 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4570 | while : | |
4571 | do | |
4572 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4573 | mv "conftest.tmp" "conftest.in" | |
4574 | cp "conftest.in" "conftest.nl" | |
4575 | echo 'EGREP' >> "conftest.nl" | |
4576 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4577 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4578 | ac_count=`expr $ac_count + 1` | |
4579 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4580 | # Best one so far, save it but keep looking for a better one | |
4581 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4582 | ac_path_EGREP_max=$ac_count | |
e143ad11 | 4583 | fi |
ca81d7a0 JD |
4584 | # 10*(2^10) chars as input seems more than enough |
4585 | test $ac_count -gt 10 && break | |
4586 | done | |
4587 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4588 | esac | |
4589 | ||
4590 | ||
4591 | $ac_path_EGREP_found && break 3 | |
4592 | done | |
4593 | done | |
4594 | ||
4595 | done | |
4596 | IFS=$as_save_IFS | |
4597 | ||
4598 | ||
4599 | fi | |
4600 | ||
4601 | EGREP="$ac_cv_path_EGREP" | |
4602 | if test -z "$EGREP"; then | |
4603 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4604 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4605 | { (exit 1); exit 1; }; } | |
4606 | fi | |
4607 | ||
4608 | else | |
4609 | ac_cv_path_EGREP=$EGREP | |
4610 | fi | |
4611 | ||
4612 | ||
4613 | fi | |
8eeae1c9 | 4614 | fi |
ca81d7a0 JD |
4615 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4616 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
4617 | EGREP="$ac_cv_path_EGREP" | |
e143ad11 AS |
4618 | |
4619 | ||
4620 | ||
ca81d7a0 JD |
4621 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
4622 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } | |
e143ad11 AS |
4623 | cat >conftest.$ac_ext <<_ACEOF |
4624 | /* confdefs.h. */ | |
4625 | _ACEOF | |
4626 | cat confdefs.h >>conftest.$ac_ext | |
4627 | cat >>conftest.$ac_ext <<_ACEOF | |
4628 | /* end confdefs.h. */ | |
4629 | #ifdef _AIX | |
4630 | yes | |
4631 | #endif | |
4632 | ||
4633 | _ACEOF | |
4634 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4635 | $EGREP "yes" >/dev/null 2>&1; then | |
ca81d7a0 JD |
4636 | { echo "$as_me:$LINENO: result: yes" >&5 |
4637 | echo "${ECHO_T}yes" >&6; } | |
e143ad11 AS |
4638 | cat >>confdefs.h <<\_ACEOF |
4639 | #define _ALL_SOURCE 1 | |
4640 | _ACEOF | |
4641 | ||
4642 | else | |
ca81d7a0 JD |
4643 | { echo "$as_me:$LINENO: result: no" >&5 |
4644 | echo "${ECHO_T}no" >&6; } | |
e143ad11 AS |
4645 | fi |
4646 | rm -f conftest* | |
4647 | ||
4648 | ||
4649 | ||
4650 | cat >>confdefs.h <<\_ACEOF | |
4651 | #define _GNU_SOURCE 1 | |
4652 | _ACEOF | |
4653 | ||
4654 | ||
4655 | ||
01abe918 | 4656 | ### Use -Wno-pointer-sign if the compiler supports it |
ca81d7a0 JD |
4657 | { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5 |
4658 | echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; } | |
01abe918 CY |
4659 | SAVE_CFLAGS="$CFLAGS" |
4660 | CFLAGS="$CFLAGS -Wno-pointer-sign" | |
01abe918 CY |
4661 | cat >conftest.$ac_ext <<_ACEOF |
4662 | /* confdefs.h. */ | |
4663 | _ACEOF | |
4664 | cat confdefs.h >>conftest.$ac_ext | |
4665 | cat >>conftest.$ac_ext <<_ACEOF | |
4666 | /* end confdefs.h. */ | |
4667 | ||
4668 | int | |
4669 | main () | |
4670 | { | |
4671 | ||
4672 | ; | |
4673 | return 0; | |
4674 | } | |
4675 | _ACEOF | |
4676 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
4677 | if { (ac_try="$ac_compile" |
4678 | case "(($ac_try" in | |
4679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4680 | *) ac_try_echo=$ac_try;; | |
4681 | esac | |
4682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4683 | (eval "$ac_compile") 2>conftest.er1 | |
01abe918 CY |
4684 | ac_status=$? |
4685 | grep -v '^ *+' conftest.er1 >conftest.err | |
4686 | rm -f conftest.er1 | |
4687 | cat conftest.err >&5 | |
4688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
4689 | (exit $ac_status); } && { |
4690 | test -z "$ac_c_werror_flag" || | |
4691 | test ! -s conftest.err | |
4692 | } && test -s conftest.$ac_objext; then | |
01abe918 CY |
4693 | has_option=yes |
4694 | else | |
4695 | echo "$as_me: failed program was:" >&5 | |
4696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4697 | ||
ca81d7a0 | 4698 | has_option=no |
01abe918 | 4699 | fi |
ca81d7a0 JD |
4700 | |
4701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
01abe918 CY |
4702 | if test $has_option = yes; then |
4703 | C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" | |
4704 | fi | |
ca81d7a0 JD |
4705 | { echo "$as_me:$LINENO: result: $has_option" >&5 |
4706 | echo "${ECHO_T}$has_option" >&6; } | |
01abe918 CY |
4707 | CFLAGS="$SAVE_CFLAGS" |
4708 | unset has_option | |
4709 | unset SAVE_CFLAGS | |
4710 | ||
6a3a24fa | 4711 | #### Some other nice autoconf tests. |
ba4481b5 | 4712 | |
ca81d7a0 JD |
4713 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4714 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
503d2be0 AS |
4715 | LN_S=$as_ln_s |
4716 | if test "$LN_S" = "ln -s"; then | |
ca81d7a0 JD |
4717 | { echo "$as_me:$LINENO: result: yes" >&5 |
4718 | echo "${ECHO_T}yes" >&6; } | |
ba4481b5 | 4719 | else |
ca81d7a0 JD |
4720 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4721 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
ba4481b5 DL |
4722 | fi |
4723 | ||
503d2be0 AS |
4724 | ac_ext=c |
4725 | ac_cpp='$CPP $CPPFLAGS' | |
4726 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4727 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4728 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ca81d7a0 JD |
4729 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4730 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
ba4481b5 DL |
4731 | # On Suns, sometimes $CPP names a directory. |
4732 | if test -n "$CPP" && test -d "$CPP"; then | |
4733 | CPP= | |
4734 | fi | |
4735 | if test -z "$CPP"; then | |
503d2be0 AS |
4736 | if test "${ac_cv_prog_CPP+set}" = set; then |
4737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4738 | else | |
4739 | # Double quotes because CPP needs to be expanded | |
4740 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4741 | do | |
4742 | ac_preproc_ok=false | |
4743 | for ac_c_preproc_warn_flag in '' yes | |
4744 | do | |
4745 | # Use a header file that comes with gcc, so configuring glibc | |
4746 | # with a fresh cross-compiler works. | |
19650fd6 AS |
4747 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4748 | # <limits.h> exists even on freestanding compilers. | |
ba4481b5 | 4749 | # On the NeXT, cc -E runs the code through the compiler's parser, |
503d2be0 AS |
4750 | # not just through cpp. "Syntax error" is here to catch this case. |
4751 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4752 | /* confdefs.h. */ |
4753 | _ACEOF | |
4754 | cat confdefs.h >>conftest.$ac_ext | |
4755 | cat >>conftest.$ac_ext <<_ACEOF | |
4756 | /* end confdefs.h. */ | |
4757 | #ifdef __STDC__ | |
4758 | # include <limits.h> | |
4759 | #else | |
4760 | # include <assert.h> | |
4761 | #endif | |
edfaf76d | 4762 | Syntax error |
503d2be0 | 4763 | _ACEOF |
ca81d7a0 JD |
4764 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4765 | case "(($ac_try" in | |
4766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4767 | *) ac_try_echo=$ac_try;; | |
4768 | esac | |
4769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4770 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 4771 | ac_status=$? |
6bae0ccf | 4772 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
4773 | rm -f conftest.er1 |
4774 | cat conftest.err >&5 | |
c0d27fcc | 4775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
4776 | (exit $ac_status); } >/dev/null && { |
4777 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4778 | test ! -s conftest.err | |
4779 | }; then | |
ba4481b5 DL |
4780 | : |
4781 | else | |
503d2be0 | 4782 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4783 | sed 's/^/| /' conftest.$ac_ext >&5 |
4784 | ||
503d2be0 AS |
4785 | # Broken: fails on valid input. |
4786 | continue | |
4787 | fi | |
ca81d7a0 | 4788 | |
503d2be0 AS |
4789 | rm -f conftest.err conftest.$ac_ext |
4790 | ||
ca81d7a0 | 4791 | # OK, works on sane cases. Now check whether nonexistent headers |
503d2be0 AS |
4792 | # can be detected and how. |
4793 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4794 | /* confdefs.h. */ |
4795 | _ACEOF | |
4796 | cat confdefs.h >>conftest.$ac_ext | |
4797 | cat >>conftest.$ac_ext <<_ACEOF | |
4798 | /* end confdefs.h. */ | |
503d2be0 AS |
4799 | #include <ac_nonexistent.h> |
4800 | _ACEOF | |
ca81d7a0 JD |
4801 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4802 | case "(($ac_try" in | |
4803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4804 | *) ac_try_echo=$ac_try;; | |
4805 | esac | |
4806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4807 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 4808 | ac_status=$? |
6bae0ccf | 4809 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
4810 | rm -f conftest.er1 |
4811 | cat conftest.err >&5 | |
c0d27fcc | 4812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
4813 | (exit $ac_status); } >/dev/null && { |
4814 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4815 | test ! -s conftest.err | |
4816 | }; then | |
503d2be0 AS |
4817 | # Broken: success on invalid input. |
4818 | continue | |
c4bb2108 | 4819 | else |
503d2be0 | 4820 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4821 | sed 's/^/| /' conftest.$ac_ext >&5 |
4822 | ||
503d2be0 AS |
4823 | # Passes both tests. |
4824 | ac_preproc_ok=: | |
4825 | break | |
4826 | fi | |
ca81d7a0 | 4827 | |
503d2be0 AS |
4828 | rm -f conftest.err conftest.$ac_ext |
4829 | ||
4830 | done | |
4831 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4832 | rm -f conftest.err conftest.$ac_ext | |
4833 | if $ac_preproc_ok; then | |
4834 | break | |
4835 | fi | |
4836 | ||
4837 | done | |
4838 | ac_cv_prog_CPP=$CPP | |
4839 | ||
4840 | fi | |
4841 | CPP=$ac_cv_prog_CPP | |
4842 | else | |
4843 | ac_cv_prog_CPP=$CPP | |
4844 | fi | |
ca81d7a0 JD |
4845 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4846 | echo "${ECHO_T}$CPP" >&6; } | |
503d2be0 AS |
4847 | ac_preproc_ok=false |
4848 | for ac_c_preproc_warn_flag in '' yes | |
4849 | do | |
4850 | # Use a header file that comes with gcc, so configuring glibc | |
4851 | # with a fresh cross-compiler works. | |
19650fd6 AS |
4852 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4853 | # <limits.h> exists even on freestanding compilers. | |
503d2be0 AS |
4854 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4855 | # not just through cpp. "Syntax error" is here to catch this case. | |
4856 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4857 | /* confdefs.h. */ |
4858 | _ACEOF | |
4859 | cat confdefs.h >>conftest.$ac_ext | |
4860 | cat >>conftest.$ac_ext <<_ACEOF | |
4861 | /* end confdefs.h. */ | |
4862 | #ifdef __STDC__ | |
4863 | # include <limits.h> | |
4864 | #else | |
4865 | # include <assert.h> | |
4866 | #endif | |
edfaf76d | 4867 | Syntax error |
503d2be0 | 4868 | _ACEOF |
ca81d7a0 JD |
4869 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4870 | case "(($ac_try" in | |
4871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4872 | *) ac_try_echo=$ac_try;; | |
4873 | esac | |
4874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4875 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 4876 | ac_status=$? |
6bae0ccf | 4877 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
4878 | rm -f conftest.er1 |
4879 | cat conftest.err >&5 | |
c0d27fcc | 4880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
4881 | (exit $ac_status); } >/dev/null && { |
4882 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4883 | test ! -s conftest.err | |
4884 | }; then | |
ba4481b5 DL |
4885 | : |
4886 | else | |
503d2be0 | 4887 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4888 | sed 's/^/| /' conftest.$ac_ext >&5 |
4889 | ||
503d2be0 AS |
4890 | # Broken: fails on valid input. |
4891 | continue | |
4892 | fi | |
ca81d7a0 | 4893 | |
503d2be0 AS |
4894 | rm -f conftest.err conftest.$ac_ext |
4895 | ||
ca81d7a0 | 4896 | # OK, works on sane cases. Now check whether nonexistent headers |
503d2be0 AS |
4897 | # can be detected and how. |
4898 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4899 | /* confdefs.h. */ |
4900 | _ACEOF | |
4901 | cat confdefs.h >>conftest.$ac_ext | |
4902 | cat >>conftest.$ac_ext <<_ACEOF | |
4903 | /* end confdefs.h. */ | |
503d2be0 AS |
4904 | #include <ac_nonexistent.h> |
4905 | _ACEOF | |
ca81d7a0 JD |
4906 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4907 | case "(($ac_try" in | |
4908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4909 | *) ac_try_echo=$ac_try;; | |
4910 | esac | |
4911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4912 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 4913 | ac_status=$? |
6bae0ccf | 4914 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
4915 | rm -f conftest.er1 |
4916 | cat conftest.err >&5 | |
c0d27fcc | 4917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
4918 | (exit $ac_status); } >/dev/null && { |
4919 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4920 | test ! -s conftest.err | |
4921 | }; then | |
503d2be0 AS |
4922 | # Broken: success on invalid input. |
4923 | continue | |
4924 | else | |
4925 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4926 | sed 's/^/| /' conftest.$ac_ext >&5 |
4927 | ||
503d2be0 AS |
4928 | # Passes both tests. |
4929 | ac_preproc_ok=: | |
4930 | break | |
ba4481b5 | 4931 | fi |
ca81d7a0 | 4932 | |
503d2be0 AS |
4933 | rm -f conftest.err conftest.$ac_ext |
4934 | ||
4935 | done | |
4936 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4937 | rm -f conftest.err conftest.$ac_ext | |
4938 | if $ac_preproc_ok; then | |
4939 | : | |
ba4481b5 | 4940 | else |
19650fd6 AS |
4941 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4942 | See \`config.log' for more details." >&5 | |
4943 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4944 | See \`config.log' for more details." >&2;} | |
503d2be0 | 4945 | { (exit 1); exit 1; }; } |
ba4481b5 | 4946 | fi |
503d2be0 AS |
4947 | |
4948 | ac_ext=c | |
4949 | ac_cpp='$CPP $CPPFLAGS' | |
4950 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4951 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4952 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 DL |
4953 | |
4954 | # Find a good install program. We prefer a C program (faster), | |
4955 | # so one script is as good as another. But avoid the broken or | |
4956 | # incompatible versions: | |
4957 | # SysV /etc/install, /usr/sbin/install | |
4958 | # SunOS /usr/etc/install | |
4959 | # IRIX /sbin/install | |
4960 | # AIX /bin/install | |
503d2be0 | 4961 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
c4bb2108 | 4962 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
ba4481b5 DL |
4963 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
4964 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
edfaf76d | 4965 | # OS/2's system install, which has a completely different semantic |
ba4481b5 | 4966 | # ./install, which can be erroneously created by make from ./install.sh. |
ca81d7a0 JD |
4967 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4968 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
ba4481b5 | 4969 | if test -z "$INSTALL"; then |
503d2be0 AS |
4970 | if test "${ac_cv_path_install+set}" = set; then |
4971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 4972 | else |
c0d27fcc MR |
4973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4974 | for as_dir in $PATH | |
4975 | do | |
4976 | IFS=$as_save_IFS | |
4977 | test -z "$as_dir" && as_dir=. | |
4978 | # Account for people who put trailing slashes in PATH elements. | |
4979 | case $as_dir/ in | |
4980 | ./ | .// | /cC/* | \ | |
4981 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
edfaf76d | 4982 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
c0d27fcc MR |
4983 | /usr/ucb/* ) ;; |
4984 | *) | |
4985 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4986 | # Don't use installbsd from OSF since it installs stuff as root | |
4987 | # by default. | |
4988 | for ac_prog in ginstall scoinst install; do | |
4989 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 4990 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
edfaf76d LK |
4991 | if test $ac_prog = install && |
4992 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4993 | # AIX install. It has an incompatible calling convention. | |
4994 | : | |
4995 | elif test $ac_prog = install && | |
4996 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4997 | # program-specific install script used by HP pwplus--don't use. | |
4998 | : | |
4999 | else | |
5000 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5001 | break 3 | |
5002 | fi | |
5003 | fi | |
ba4481b5 | 5004 | done |
c0d27fcc MR |
5005 | done |
5006 | ;; | |
5007 | esac | |
5008 | done | |
ca81d7a0 | 5009 | IFS=$as_save_IFS |
c0d27fcc | 5010 | |
ba4481b5 DL |
5011 | |
5012 | fi | |
5013 | if test "${ac_cv_path_install+set}" = set; then | |
503d2be0 | 5014 | INSTALL=$ac_cv_path_install |
ba4481b5 | 5015 | else |
ca81d7a0 JD |
5016 | # As a last resort, use the slow shell script. Don't cache a |
5017 | # value for INSTALL within a source directory, because that will | |
ba4481b5 | 5018 | # break other packages using the cache if that directory is |
ca81d7a0 | 5019 | # removed, or if the value is a relative name. |
503d2be0 | 5020 | INSTALL=$ac_install_sh |
ba4481b5 DL |
5021 | fi |
5022 | fi | |
ca81d7a0 JD |
5023 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5024 | echo "${ECHO_T}$INSTALL" >&6; } | |
ba4481b5 DL |
5025 | |
5026 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5027 | # It thinks the first close brace ends the variable substitution. | |
5028 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5029 | ||
503d2be0 | 5030 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c4bb2108 | 5031 | |
ba4481b5 DL |
5032 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
5033 | ||
c0d27fcc MR |
5034 | if test "x$RANLIB" = x; then |
5035 | if test -n "$ac_tool_prefix"; then | |
5036 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5037 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ca81d7a0 JD |
5038 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
c0d27fcc | 5040 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
503d2be0 | 5041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 DL |
5042 | else |
5043 | if test -n "$RANLIB"; then | |
5044 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5045 | else | |
c0d27fcc MR |
5046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5047 | for as_dir in $PATH | |
5048 | do | |
5049 | IFS=$as_save_IFS | |
5050 | test -z "$as_dir" && as_dir=. | |
5051 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
5053 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5055 | break 2 | |
5056 | fi | |
5057 | done | |
503d2be0 | 5058 | done |
ca81d7a0 | 5059 | IFS=$as_save_IFS |
503d2be0 | 5060 | |
7397acc4 DL |
5061 | fi |
5062 | fi | |
503d2be0 | 5063 | RANLIB=$ac_cv_prog_RANLIB |
7397acc4 | 5064 | if test -n "$RANLIB"; then |
ca81d7a0 JD |
5065 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5066 | echo "${ECHO_T}$RANLIB" >&6; } | |
503d2be0 | 5067 | else |
ca81d7a0 JD |
5068 | { echo "$as_me:$LINENO: result: no" >&5 |
5069 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
5070 | fi |
5071 | ||
ca81d7a0 | 5072 | |
503d2be0 AS |
5073 | fi |
5074 | if test -z "$ac_cv_prog_RANLIB"; then | |
5075 | ac_ct_RANLIB=$RANLIB | |
5076 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5077 | set dummy ranlib; ac_word=$2 | |
ca81d7a0 JD |
5078 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5079 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
5080 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
5081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5082 | else | |
5083 | if test -n "$ac_ct_RANLIB"; then | |
5084 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5085 | else | |
c0d27fcc MR |
5086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5087 | for as_dir in $PATH | |
5088 | do | |
5089 | IFS=$as_save_IFS | |
5090 | test -z "$as_dir" && as_dir=. | |
5091 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5092 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
5093 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5094 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5095 | break 2 | |
5096 | fi | |
5097 | done | |
503d2be0 | 5098 | done |
ca81d7a0 | 5099 | IFS=$as_save_IFS |
503d2be0 | 5100 | |
503d2be0 AS |
5101 | fi |
5102 | fi | |
5103 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5104 | if test -n "$ac_ct_RANLIB"; then | |
ca81d7a0 JD |
5105 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
5106 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
503d2be0 | 5107 | else |
ca81d7a0 JD |
5108 | { echo "$as_me:$LINENO: result: no" >&5 |
5109 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
5110 | fi |
5111 | ||
ca81d7a0 JD |
5112 | if test "x$ac_ct_RANLIB" = x; then |
5113 | RANLIB=":" | |
5114 | else | |
5115 | case $cross_compiling:$ac_tool_warned in | |
5116 | yes:) | |
5117 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5118 | whose name does not start with the host triplet. If you think this | |
5119 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5120 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5121 | whose name does not start with the host triplet. If you think this | |
5122 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5123 | ac_tool_warned=yes ;; | |
5124 | esac | |
5125 | RANLIB=$ac_ct_RANLIB | |
5126 | fi | |
7397acc4 | 5127 | else |
503d2be0 | 5128 | RANLIB="$ac_cv_prog_RANLIB" |
7397acc4 DL |
5129 | fi |
5130 | ||
5131 | fi | |
9e71690e DK |
5132 | # Extract the first word of "install-info", so it can be a program name with args. |
5133 | set dummy install-info; ac_word=$2 | |
ca81d7a0 JD |
5134 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5135 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
9e71690e DK |
5136 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
5137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5138 | else | |
5139 | case $INSTALL_INFO in | |
5140 | [\\/]* | ?:[\\/]*) | |
5141 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
5142 | ;; | |
5143 | *) | |
5144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5145 | for as_dir in $PATH | |
5146 | do | |
5147 | IFS=$as_save_IFS | |
5148 | test -z "$as_dir" && as_dir=. | |
5149 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5150 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9e71690e DK |
5151 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5152 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5153 | break 2 | |
5154 | fi | |
5155 | done | |
5156 | done | |
ca81d7a0 | 5157 | IFS=$as_save_IFS |
9e71690e DK |
5158 | |
5159 | ;; | |
5160 | esac | |
5161 | fi | |
5162 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
9e71690e | 5163 | if test -n "$INSTALL_INFO"; then |
ca81d7a0 JD |
5164 | { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
5165 | echo "${ECHO_T}$INSTALL_INFO" >&6; } | |
9e71690e | 5166 | else |
ca81d7a0 JD |
5167 | { echo "$as_me:$LINENO: result: no" >&5 |
5168 | echo "${ECHO_T}no" >&6; } | |
9e71690e DK |
5169 | fi |
5170 | ||
ca81d7a0 | 5171 | |
9e71690e DK |
5172 | # Extract the first word of "install-info", so it can be a program name with args. |
5173 | set dummy install-info; ac_word=$2 | |
ca81d7a0 JD |
5174 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5175 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
9e71690e DK |
5176 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
5177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5178 | else | |
5179 | case $INSTALL_INFO in | |
5180 | [\\/]* | ?:[\\/]*) | |
5181 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
5182 | ;; | |
5183 | *) | |
5184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5185 | for as_dir in /usr/sbin | |
5186 | do | |
5187 | IFS=$as_save_IFS | |
5188 | test -z "$as_dir" && as_dir=. | |
5189 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9e71690e DK |
5191 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5192 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5193 | break 2 | |
5194 | fi | |
5195 | done | |
5196 | done | |
ca81d7a0 | 5197 | IFS=$as_save_IFS |
9e71690e DK |
5198 | |
5199 | ;; | |
5200 | esac | |
5201 | fi | |
5202 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
9e71690e | 5203 | if test -n "$INSTALL_INFO"; then |
ca81d7a0 JD |
5204 | { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
5205 | echo "${ECHO_T}$INSTALL_INFO" >&6; } | |
9e71690e | 5206 | else |
ca81d7a0 JD |
5207 | { echo "$as_me:$LINENO: result: no" >&5 |
5208 | echo "${ECHO_T}no" >&6; } | |
9e71690e DK |
5209 | fi |
5210 | ||
ca81d7a0 | 5211 | |
9e71690e DK |
5212 | # Extract the first word of "install-info", so it can be a program name with args. |
5213 | set dummy install-info; ac_word=$2 | |
ca81d7a0 JD |
5214 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5215 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
9e71690e DK |
5216 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
5217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5218 | else | |
5219 | case $INSTALL_INFO in | |
5220 | [\\/]* | ?:[\\/]*) | |
5221 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
5222 | ;; | |
5223 | *) | |
5224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5225 | for as_dir in /sbin | |
5226 | do | |
5227 | IFS=$as_save_IFS | |
5228 | test -z "$as_dir" && as_dir=. | |
5229 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5230 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9e71690e DK |
5231 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5232 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5233 | break 2 | |
5234 | fi | |
5235 | done | |
5236 | done | |
ca81d7a0 | 5237 | IFS=$as_save_IFS |
9e71690e DK |
5238 | |
5239 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" | |
5240 | ;; | |
5241 | esac | |
5242 | fi | |
5243 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
9e71690e | 5244 | if test -n "$INSTALL_INFO"; then |
ca81d7a0 JD |
5245 | { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
5246 | echo "${ECHO_T}$INSTALL_INFO" >&6; } | |
9e71690e | 5247 | else |
ca81d7a0 JD |
5248 | { echo "$as_me:$LINENO: result: no" >&5 |
5249 | echo "${ECHO_T}no" >&6; } | |
9e71690e DK |
5250 | fi |
5251 | ||
ca81d7a0 | 5252 | |
8ae52ca6 RF |
5253 | # Extract the first word of "gzip", so it can be a program name with args. |
5254 | set dummy gzip; ac_word=$2 | |
ca81d7a0 JD |
5255 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
46e35e9f | 5257 | if test "${ac_cv_path_GZIP_PROG+set}" = set; then |
8ae52ca6 RF |
5258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5259 | else | |
46e35e9f | 5260 | case $GZIP_PROG in |
8ae52ca6 | 5261 | [\\/]* | ?:[\\/]*) |
46e35e9f | 5262 | ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. |
8ae52ca6 RF |
5263 | ;; |
5264 | *) | |
5265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5266 | for as_dir in $PATH | |
5267 | do | |
5268 | IFS=$as_save_IFS | |
5269 | test -z "$as_dir" && as_dir=. | |
5270 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5271 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
46e35e9f | 5272 | ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" |
8ae52ca6 RF |
5273 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5274 | break 2 | |
5275 | fi | |
5276 | done | |
5277 | done | |
ca81d7a0 | 5278 | IFS=$as_save_IFS |
8ae52ca6 RF |
5279 | |
5280 | ;; | |
5281 | esac | |
5282 | fi | |
46e35e9f | 5283 | GZIP_PROG=$ac_cv_path_GZIP_PROG |
46e35e9f | 5284 | if test -n "$GZIP_PROG"; then |
ca81d7a0 JD |
5285 | { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5 |
5286 | echo "${ECHO_T}$GZIP_PROG" >&6; } | |
8ae52ca6 | 5287 | else |
ca81d7a0 JD |
5288 | { echo "$as_me:$LINENO: result: no" >&5 |
5289 | echo "${ECHO_T}no" >&6; } | |
8ae52ca6 RF |
5290 | fi |
5291 | ||
ba4481b5 | 5292 | |
c0d27fcc | 5293 | |
ca81d7a0 | 5294 | |
8e967cf7 MR |
5295 | if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x |
5296 | then | |
5297 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
5298 | fi | |
5299 | ||
5300 | if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
5301 | then | |
5302 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
5303 | fi | |
5304 | ||
c0d27fcc | 5305 | |
fe239f0f | 5306 | late_LDFLAGS=$LDFLAGS |
4af002d6 | 5307 | if test "$GCC" = yes; then |
fe239f0f AS |
5308 | LDFLAGS="$LDFLAGS -Wl,-znocombreloc" |
5309 | else | |
5310 | LDFLAGS="$LDFLAGS -znocombreloc" | |
5311 | fi | |
5312 | ||
ca81d7a0 JD |
5313 | { echo "$as_me:$LINENO: checking for -znocombreloc" >&5 |
5314 | echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; } | |
fe239f0f AS |
5315 | cat >conftest.$ac_ext <<_ACEOF |
5316 | main(){return 0;} | |
5317 | _ACEOF | |
5318 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
5319 | if { (ac_try="$ac_link" |
5320 | case "(($ac_try" in | |
5321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5322 | *) ac_try_echo=$ac_try;; | |
5323 | esac | |
5324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5325 | (eval "$ac_link") 2>conftest.er1 | |
fe239f0f | 5326 | ac_status=$? |
edfaf76d LK |
5327 | grep -v '^ *+' conftest.er1 >conftest.err |
5328 | rm -f conftest.er1 | |
5329 | cat conftest.err >&5 | |
fe239f0f | 5330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5331 | (exit $ac_status); } && { |
5332 | test -z "$ac_c_werror_flag" || | |
5333 | test ! -s conftest.err | |
5334 | } && test -s conftest$ac_exeext && | |
5335 | $as_test_x conftest$ac_exeext; then | |
ca81d7a0 JD |
5336 | { echo "$as_me:$LINENO: result: yes" >&5 |
5337 | echo "${ECHO_T}yes" >&6; } | |
fe239f0f AS |
5338 | else |
5339 | echo "$as_me: failed program was:" >&5 | |
5340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5341 | ||
ca81d7a0 JD |
5342 | LDFLAGS=$late_LDFLAGS |
5343 | { echo "$as_me:$LINENO: result: no" >&5 | |
5344 | echo "${ECHO_T}no" >&6; } | |
fe239f0f | 5345 | fi |
ca81d7a0 | 5346 | |
f053c89f | 5347 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 5348 | conftest$ac_exeext conftest.$ac_ext |
fe239f0f | 5349 | |
3b33a005 DL |
5350 | #### Extract some information from the operating system and machine files. |
5351 | ||
c0d27fcc | 5352 | { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out |
3b33a005 | 5353 | - which libraries the lib-src programs will want, and |
503d2be0 AS |
5354 | - whether the GNU malloc routines are usable..." >&5 |
5355 | echo "$as_me: checking the machine- and system-dependent files to find out | |
3b33a005 | 5356 | - which libraries the lib-src programs will want, and |
503d2be0 | 5357 | - whether the GNU malloc routines are usable..." >&6;} |
3b33a005 DL |
5358 | |
5359 | ### First figure out CFLAGS (which we use for running the compiler here) | |
5360 | ### and REAL_CFLAGS (which we use for real compilation). | |
5361 | ### The two are the same except on a few systems, where they are made | |
5362 | ### different to work around various lossages. For example, | |
5363 | ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
5364 | ### as implying static linking. | |
5365 | ||
5366 | ### If the CFLAGS env var is specified, we use that value | |
5367 | ### instead of the default. | |
5368 | ||
5369 | ### It's not important that this name contain the PID; you can't run | |
5370 | ### two configures in the same directory and have anything work | |
5371 | ### anyway. | |
5372 | tempcname="conftest.c" | |
5373 | ||
5374 | echo ' | |
5375 | #include "'${srcdir}'/src/'${opsysfile}'" | |
5376 | #include "'${srcdir}'/src/'${machfile}'" | |
5377 | #ifndef LIBS_MACHINE | |
5378 | #define LIBS_MACHINE | |
5379 | #endif | |
5380 | #ifndef LIBS_SYSTEM | |
5381 | #define LIBS_SYSTEM | |
5382 | #endif | |
5383 | #ifndef C_SWITCH_SYSTEM | |
5384 | #define C_SWITCH_SYSTEM | |
5385 | #endif | |
5386 | #ifndef C_SWITCH_MACHINE | |
5387 | #define C_SWITCH_MACHINE | |
5388 | #endif | |
5389 | configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
5390 | configure___ c_switch_system=C_SWITCH_SYSTEM | |
5391 | configure___ c_switch_machine=C_SWITCH_MACHINE | |
5392 | ||
5393 | #ifndef LIB_X11_LIB | |
5394 | #define LIB_X11_LIB -lX11 | |
5395 | #endif | |
5396 | ||
5397 | #ifndef LIBX11_MACHINE | |
5398 | #define LIBX11_MACHINE | |
5399 | #endif | |
5400 | ||
5401 | #ifndef LIBX11_SYSTEM | |
5402 | #define LIBX11_SYSTEM | |
5403 | #endif | |
5404 | configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
5405 | ||
5406 | #ifdef UNEXEC | |
5407 | configure___ unexec=UNEXEC | |
5408 | #else | |
5409 | configure___ unexec=unexec.o | |
5410 | #endif | |
5411 | ||
5412 | #ifdef SYSTEM_MALLOC | |
5413 | configure___ system_malloc=yes | |
5414 | #else | |
5415 | configure___ system_malloc=no | |
5416 | #endif | |
5417 | ||
ef9e4345 GM |
5418 | #ifdef USE_MMAP_FOR_BUFFERS |
5419 | configure___ use_mmap_for_buffers=yes | |
73b77ee5 | 5420 | #else |
ef9e4345 | 5421 | configure___ use_mmap_for_buffers=no |
73b77ee5 GM |
5422 | #endif |
5423 | ||
3b33a005 DL |
5424 | #ifndef C_DEBUG_SWITCH |
5425 | #define C_DEBUG_SWITCH -g | |
5426 | #endif | |
5427 | ||
5428 | #ifndef C_OPTIMIZE_SWITCH | |
5429 | #ifdef __GNUC__ | |
5430 | #define C_OPTIMIZE_SWITCH -O2 | |
5431 | #else | |
5432 | #define C_OPTIMIZE_SWITCH -O | |
5433 | #endif | |
5434 | #endif | |
5435 | ||
01abe918 CY |
5436 | #ifndef C_WARNINGS_SWITCH |
5437 | #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH} | |
5438 | #endif | |
5439 | ||
3b33a005 DL |
5440 | #ifndef LD_SWITCH_MACHINE |
5441 | #define LD_SWITCH_MACHINE | |
5442 | #endif | |
5443 | ||
5444 | #ifndef LD_SWITCH_SYSTEM | |
5445 | #define LD_SWITCH_SYSTEM | |
5446 | #endif | |
5447 | ||
5448 | #ifndef LD_SWITCH_X_SITE_AUX | |
5449 | #define LD_SWITCH_X_SITE_AUX | |
503d2be0 | 5450 | #endif |
3b33a005 DL |
5451 | |
5452 | configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
5453 | configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
5454 | ||
5455 | #ifdef THIS_IS_CONFIGURE | |
5456 | ||
5457 | /* Get the CFLAGS for tests in configure. */ | |
5458 | #ifdef __GNUC__ | |
5459 | configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
5460 | #else | |
5461 | configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
5462 | #endif | |
5463 | ||
5464 | #else /* not THIS_IS_CONFIGURE */ | |
5465 | ||
5466 | /* Get the CFLAGS for real compilation. */ | |
5467 | #ifdef __GNUC__ | |
01abe918 | 5468 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}' |
3b33a005 DL |
5469 | #else |
5470 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
5471 | #endif | |
5472 | ||
5473 | #endif /* not THIS_IS_CONFIGURE */ | |
5474 | ' > ${tempcname} | |
5475 | ||
5476 | # The value of CPP is a quoted variable reference, so we need to do this | |
5477 | # to get its actual value... | |
5478 | CPP=`eval "echo $CPP"` | |
5479 | eval `${CPP} -Isrc ${tempcname} \ | |
5480 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
5481 | if test "x$SPECIFIED_CFLAGS" = x; then | |
5482 | eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
5483 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
5484 | else | |
5485 | REAL_CFLAGS="$CFLAGS" | |
5486 | fi | |
5487 | rm ${tempcname} | |
5488 | ||
5489 | ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
5490 | ||
5491 | ### Make sure subsequent tests use flags consistent with the build flags. | |
5492 | ||
5493 | if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
5494 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
5495 | else | |
5496 | CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
5497 | fi | |
5498 | ||
6bae0ccf DL |
5499 | |
5500 | ||
ca81d7a0 | 5501 | # Check whether --enable-largefile was given. |
f4988be7 | 5502 | if test "${enable_largefile+set}" = set; then |
ca81d7a0 JD |
5503 | enableval=$enable_largefile; |
5504 | fi | |
f4988be7 | 5505 | |
503d2be0 | 5506 | if test "$enable_largefile" != no; then |
f4988be7 | 5507 | |
ca81d7a0 JD |
5508 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
5509 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } | |
503d2be0 AS |
5510 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
5511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5512 | else |
f4988be7 | 5513 | ac_cv_sys_largefile_CC=no |
503d2be0 AS |
5514 | if test "$GCC" != yes; then |
5515 | ac_save_CC=$CC | |
5516 | while :; do | |
ca81d7a0 JD |
5517 | # IRIX 6.2 and later do not support large files by default, |
5518 | # so use the C compiler's -n32 option if that helps. | |
edfaf76d | 5519 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5520 | /* confdefs.h. */ |
5521 | _ACEOF | |
5522 | cat confdefs.h >>conftest.$ac_ext | |
5523 | cat >>conftest.$ac_ext <<_ACEOF | |
5524 | /* end confdefs.h. */ | |
f4988be7 | 5525 | #include <sys/types.h> |
503d2be0 AS |
5526 | /* Check that off_t can represent 2**63 - 1 correctly. |
5527 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5528 | since some C++ compilers masquerading as C compilers | |
5529 | incorrectly reject 9223372036854775807. */ | |
5530 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5531 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5532 | && LARGE_OFF_T % 2147483647 == 1) | |
5533 | ? 1 : -1]; | |
5534 | int | |
5535 | main () | |
5536 | { | |
f4988be7 | 5537 | |
503d2be0 AS |
5538 | ; |
5539 | return 0; | |
5540 | } | |
5541 | _ACEOF | |
ca81d7a0 JD |
5542 | rm -f conftest.$ac_objext |
5543 | if { (ac_try="$ac_compile" | |
5544 | case "(($ac_try" in | |
5545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5546 | *) ac_try_echo=$ac_try;; | |
5547 | esac | |
5548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5549 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5550 | ac_status=$? |
edfaf76d LK |
5551 | grep -v '^ *+' conftest.er1 >conftest.err |
5552 | rm -f conftest.er1 | |
5553 | cat conftest.err >&5 | |
c0d27fcc | 5554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5555 | (exit $ac_status); } && { |
5556 | test -z "$ac_c_werror_flag" || | |
5557 | test ! -s conftest.err | |
5558 | } && test -s conftest.$ac_objext; then | |
503d2be0 | 5559 | break |
b192d653 | 5560 | else |
503d2be0 | 5561 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5562 | sed 's/^/| /' conftest.$ac_ext >&5 |
5563 | ||
ca81d7a0 | 5564 | |
503d2be0 | 5565 | fi |
ca81d7a0 JD |
5566 | |
5567 | rm -f core conftest.err conftest.$ac_objext | |
5568 | CC="$CC -n32" | |
5569 | rm -f conftest.$ac_objext | |
5570 | if { (ac_try="$ac_compile" | |
5571 | case "(($ac_try" in | |
5572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5573 | *) ac_try_echo=$ac_try;; | |
5574 | esac | |
5575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5576 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5577 | ac_status=$? |
edfaf76d LK |
5578 | grep -v '^ *+' conftest.er1 >conftest.err |
5579 | rm -f conftest.er1 | |
5580 | cat conftest.err >&5 | |
c0d27fcc | 5581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5582 | (exit $ac_status); } && { |
5583 | test -z "$ac_c_werror_flag" || | |
5584 | test ! -s conftest.err | |
5585 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
5586 | ac_cv_sys_largefile_CC=' -n32'; break |
5587 | else | |
5588 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5589 | sed 's/^/| /' conftest.$ac_ext >&5 |
5590 | ||
ca81d7a0 | 5591 | |
503d2be0 | 5592 | fi |
ca81d7a0 JD |
5593 | |
5594 | rm -f core conftest.err conftest.$ac_objext | |
edfaf76d | 5595 | break |
503d2be0 AS |
5596 | done |
5597 | CC=$ac_save_CC | |
5598 | rm -f conftest.$ac_ext | |
5599 | fi | |
b192d653 | 5600 | fi |
ca81d7a0 JD |
5601 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
5602 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } | |
503d2be0 AS |
5603 | if test "$ac_cv_sys_largefile_CC" != no; then |
5604 | CC=$CC$ac_cv_sys_largefile_CC | |
5605 | fi | |
b192d653 | 5606 | |
ca81d7a0 JD |
5607 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
5608 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | |
503d2be0 AS |
5609 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
5610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5611 | else |
503d2be0 | 5612 | while :; do |
503d2be0 | 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. */ | |
f4988be7 | 5619 | #include <sys/types.h> |
503d2be0 AS |
5620 | /* Check that off_t can represent 2**63 - 1 correctly. |
5621 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5622 | since some C++ compilers masquerading as C compilers | |
5623 | incorrectly reject 9223372036854775807. */ | |
5624 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5625 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5626 | && LARGE_OFF_T % 2147483647 == 1) | |
5627 | ? 1 : -1]; | |
5628 | int | |
5629 | main () | |
5630 | { | |
f4988be7 | 5631 | |
503d2be0 AS |
5632 | ; |
5633 | return 0; | |
5634 | } | |
5635 | _ACEOF | |
5636 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
5637 | if { (ac_try="$ac_compile" |
5638 | case "(($ac_try" in | |
5639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5640 | *) ac_try_echo=$ac_try;; | |
5641 | esac | |
5642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5643 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5644 | ac_status=$? |
edfaf76d LK |
5645 | grep -v '^ *+' conftest.er1 >conftest.err |
5646 | rm -f conftest.er1 | |
5647 | cat conftest.err >&5 | |
c0d27fcc | 5648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5649 | (exit $ac_status); } && { |
5650 | test -z "$ac_c_werror_flag" || | |
5651 | test ! -s conftest.err | |
5652 | } && test -s conftest.$ac_objext; then | |
5653 | ac_cv_sys_file_offset_bits=no; break | |
f4988be7 | 5654 | else |
503d2be0 | 5655 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5656 | sed 's/^/| /' conftest.$ac_ext >&5 |
5657 | ||
ca81d7a0 | 5658 | |
503d2be0 | 5659 | fi |
ca81d7a0 JD |
5660 | |
5661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 | 5662 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5663 | /* confdefs.h. */ |
5664 | _ACEOF | |
5665 | cat confdefs.h >>conftest.$ac_ext | |
5666 | cat >>conftest.$ac_ext <<_ACEOF | |
5667 | /* end confdefs.h. */ | |
f4988be7 GM |
5668 | #define _FILE_OFFSET_BITS 64 |
5669 | #include <sys/types.h> | |
503d2be0 AS |
5670 | /* Check that off_t can represent 2**63 - 1 correctly. |
5671 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5672 | since some C++ compilers masquerading as C compilers | |
5673 | incorrectly reject 9223372036854775807. */ | |
5674 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5675 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5676 | && LARGE_OFF_T % 2147483647 == 1) | |
5677 | ? 1 : -1]; | |
5678 | int | |
5679 | main () | |
5680 | { | |
5681 | ||
5682 | ; | |
5683 | return 0; | |
5684 | } | |
5685 | _ACEOF | |
5686 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
5687 | if { (ac_try="$ac_compile" |
5688 | case "(($ac_try" in | |
5689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5690 | *) ac_try_echo=$ac_try;; | |
5691 | esac | |
5692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5693 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5694 | ac_status=$? |
edfaf76d LK |
5695 | grep -v '^ *+' conftest.er1 >conftest.err |
5696 | rm -f conftest.er1 | |
5697 | cat conftest.err >&5 | |
c0d27fcc | 5698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5699 | (exit $ac_status); } && { |
5700 | test -z "$ac_c_werror_flag" || | |
5701 | test ! -s conftest.err | |
5702 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
5703 | ac_cv_sys_file_offset_bits=64; break |
5704 | else | |
5705 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5706 | sed 's/^/| /' conftest.$ac_ext >&5 |
5707 | ||
ca81d7a0 | 5708 | |
503d2be0 | 5709 | fi |
ca81d7a0 JD |
5710 | |
5711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f053c89f | 5712 | ac_cv_sys_file_offset_bits=unknown |
503d2be0 AS |
5713 | break |
5714 | done | |
ba4481b5 | 5715 | fi |
ca81d7a0 JD |
5716 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
5717 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | |
f053c89f CY |
5718 | case $ac_cv_sys_file_offset_bits in #( |
5719 | no | unknown) ;; | |
5720 | *) | |
c0d27fcc | 5721 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 5722 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
c0d27fcc | 5723 | _ACEOF |
f053c89f CY |
5724 | ;; |
5725 | esac | |
503d2be0 | 5726 | rm -f conftest* |
f053c89f CY |
5727 | if test $ac_cv_sys_file_offset_bits = unknown; then |
5728 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
ca81d7a0 | 5729 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } |
503d2be0 AS |
5730 | if test "${ac_cv_sys_large_files+set}" = set; then |
5731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5732 | else |
503d2be0 | 5733 | while :; do |
503d2be0 | 5734 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5735 | /* confdefs.h. */ |
5736 | _ACEOF | |
5737 | cat confdefs.h >>conftest.$ac_ext | |
5738 | cat >>conftest.$ac_ext <<_ACEOF | |
5739 | /* end confdefs.h. */ | |
503d2be0 AS |
5740 | #include <sys/types.h> |
5741 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5742 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5743 | since some C++ compilers masquerading as C compilers | |
5744 | incorrectly reject 9223372036854775807. */ | |
5745 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5746 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5747 | && LARGE_OFF_T % 2147483647 == 1) | |
5748 | ? 1 : -1]; | |
5749 | int | |
5750 | main () | |
5751 | { | |
ba4481b5 | 5752 | |
503d2be0 AS |
5753 | ; |
5754 | return 0; | |
5755 | } | |
5756 | _ACEOF | |
5757 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
5758 | if { (ac_try="$ac_compile" |
5759 | case "(($ac_try" in | |
5760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5761 | *) ac_try_echo=$ac_try;; | |
5762 | esac | |
5763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5764 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5765 | ac_status=$? |
edfaf76d LK |
5766 | grep -v '^ *+' conftest.er1 >conftest.err |
5767 | rm -f conftest.er1 | |
5768 | cat conftest.err >&5 | |
c0d27fcc | 5769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5770 | (exit $ac_status); } && { |
5771 | test -z "$ac_c_werror_flag" || | |
5772 | test ! -s conftest.err | |
5773 | } && test -s conftest.$ac_objext; then | |
5774 | ac_cv_sys_large_files=no; break | |
ba4481b5 | 5775 | else |
503d2be0 | 5776 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5777 | sed 's/^/| /' conftest.$ac_ext >&5 |
5778 | ||
ca81d7a0 | 5779 | |
503d2be0 | 5780 | fi |
ca81d7a0 JD |
5781 | |
5782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 | 5783 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5784 | /* confdefs.h. */ |
5785 | _ACEOF | |
5786 | cat confdefs.h >>conftest.$ac_ext | |
5787 | cat >>conftest.$ac_ext <<_ACEOF | |
5788 | /* end confdefs.h. */ | |
f4988be7 | 5789 | #define _LARGE_FILES 1 |
503d2be0 AS |
5790 | #include <sys/types.h> |
5791 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5792 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5793 | since some C++ compilers masquerading as C compilers | |
5794 | incorrectly reject 9223372036854775807. */ | |
5795 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5796 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5797 | && LARGE_OFF_T % 2147483647 == 1) | |
5798 | ? 1 : -1]; | |
5799 | int | |
5800 | main () | |
5801 | { | |
f4988be7 | 5802 | |
503d2be0 AS |
5803 | ; |
5804 | return 0; | |
5805 | } | |
5806 | _ACEOF | |
5807 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
5808 | if { (ac_try="$ac_compile" |
5809 | case "(($ac_try" in | |
5810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5811 | *) ac_try_echo=$ac_try;; | |
5812 | esac | |
5813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5814 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5815 | ac_status=$? |
edfaf76d LK |
5816 | grep -v '^ *+' conftest.er1 >conftest.err |
5817 | rm -f conftest.er1 | |
5818 | cat conftest.err >&5 | |
c0d27fcc | 5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5820 | (exit $ac_status); } && { |
5821 | test -z "$ac_c_werror_flag" || | |
5822 | test ! -s conftest.err | |
5823 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
5824 | ac_cv_sys_large_files=1; break |
5825 | else | |
5826 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5827 | sed 's/^/| /' conftest.$ac_ext >&5 |
5828 | ||
ca81d7a0 | 5829 | |
503d2be0 | 5830 | fi |
ca81d7a0 JD |
5831 | |
5832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f053c89f | 5833 | ac_cv_sys_large_files=unknown |
503d2be0 AS |
5834 | break |
5835 | done | |
ba4481b5 | 5836 | fi |
ca81d7a0 JD |
5837 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
5838 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | |
f053c89f CY |
5839 | case $ac_cv_sys_large_files in #( |
5840 | no | unknown) ;; | |
5841 | *) | |
c0d27fcc | 5842 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 5843 | #define _LARGE_FILES $ac_cv_sys_large_files |
c0d27fcc | 5844 | _ACEOF |
f053c89f CY |
5845 | ;; |
5846 | esac | |
503d2be0 | 5847 | rm -f conftest* |
f053c89f | 5848 | fi |
503d2be0 | 5849 | fi |
ba4481b5 | 5850 | |
c0d27fcc | 5851 | |
439f58ee | 5852 | |
bc5d9888 CY |
5853 | ### The standard library on x86-64 GNU/Linux distributions can |
5854 | ### be located in either /usr/lib64 or /usr/lib. | |
5855 | case "${canonical}" in | |
eddedb15 | 5856 | x86_64-*-linux-gnu* | s390x-*-linux-gnu* ) |
bc5d9888 CY |
5857 | if test -d /usr/lib64; then |
5858 | ||
5859 | cat >>confdefs.h <<\_ACEOF | |
5860 | #define HAVE_X86_64_LIB64_DIR 1 | |
5861 | _ACEOF | |
5862 | ||
5863 | fi | |
5864 | esac | |
5865 | ||
439f58ee JD |
5866 | |
5867 | ||
5868 | ||
2c9dccc9 PJ |
5869 | if test "${with_sound}" != "no"; then |
5870 | # Sound support for GNU/Linux and the free BSDs. | |
ca81d7a0 JD |
5871 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5872 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
c0d27fcc MR |
5873 | if test "${ac_cv_header_stdc+set}" = set; then |
5874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5875 | else | |
5876 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5877 | /* confdefs.h. */ |
5878 | _ACEOF | |
5879 | cat confdefs.h >>conftest.$ac_ext | |
5880 | cat >>conftest.$ac_ext <<_ACEOF | |
5881 | /* end confdefs.h. */ | |
c0d27fcc MR |
5882 | #include <stdlib.h> |
5883 | #include <stdarg.h> | |
5884 | #include <string.h> | |
5885 | #include <float.h> | |
98418dba | 5886 | |
19650fd6 AS |
5887 | int |
5888 | main () | |
5889 | { | |
5890 | ||
5891 | ; | |
5892 | return 0; | |
5893 | } | |
c0d27fcc | 5894 | _ACEOF |
19650fd6 | 5895 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
5896 | if { (ac_try="$ac_compile" |
5897 | case "(($ac_try" in | |
5898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5899 | *) ac_try_echo=$ac_try;; | |
5900 | esac | |
5901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5902 | (eval "$ac_compile") 2>conftest.er1 | |
cd958eb3 | 5903 | ac_status=$? |
edfaf76d LK |
5904 | grep -v '^ *+' conftest.er1 >conftest.err |
5905 | rm -f conftest.er1 | |
5906 | cat conftest.err >&5 | |
cd958eb3 | 5907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5908 | (exit $ac_status); } && { |
5909 | test -z "$ac_c_werror_flag" || | |
5910 | test ! -s conftest.err | |
5911 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
5912 | ac_cv_header_stdc=yes |
5913 | else | |
5914 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5915 | sed 's/^/| /' conftest.$ac_ext >&5 |
5916 | ||
ca81d7a0 | 5917 | ac_cv_header_stdc=no |
c0d27fcc | 5918 | fi |
ca81d7a0 JD |
5919 | |
5920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c0d27fcc MR |
5921 | |
5922 | if test $ac_cv_header_stdc = yes; then | |
5923 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5924 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5925 | /* confdefs.h. */ |
5926 | _ACEOF | |
5927 | cat confdefs.h >>conftest.$ac_ext | |
5928 | cat >>conftest.$ac_ext <<_ACEOF | |
5929 | /* end confdefs.h. */ | |
c0d27fcc MR |
5930 | #include <string.h> |
5931 | ||
5932 | _ACEOF | |
5933 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 5934 | $EGREP "memchr" >/dev/null 2>&1; then |
c0d27fcc MR |
5935 | : |
5936 | else | |
5937 | ac_cv_header_stdc=no | |
5938 | fi | |
5939 | rm -f conftest* | |
5940 | ||
5941 | fi | |
5942 | ||
5943 | if test $ac_cv_header_stdc = yes; then | |
5944 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5945 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5946 | /* confdefs.h. */ |
5947 | _ACEOF | |
5948 | cat confdefs.h >>conftest.$ac_ext | |
5949 | cat >>conftest.$ac_ext <<_ACEOF | |
5950 | /* end confdefs.h. */ | |
c0d27fcc MR |
5951 | #include <stdlib.h> |
5952 | ||
5953 | _ACEOF | |
5954 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 5955 | $EGREP "free" >/dev/null 2>&1; then |
c0d27fcc MR |
5956 | : |
5957 | else | |
5958 | ac_cv_header_stdc=no | |
5959 | fi | |
5960 | rm -f conftest* | |
5961 | ||
5962 | fi | |
5963 | ||
5964 | if test $ac_cv_header_stdc = yes; then | |
5965 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5966 | if test "$cross_compiling" = yes; then | |
5967 | : | |
5968 | else | |
5969 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5970 | /* confdefs.h. */ |
5971 | _ACEOF | |
5972 | cat confdefs.h >>conftest.$ac_ext | |
5973 | cat >>conftest.$ac_ext <<_ACEOF | |
5974 | /* end confdefs.h. */ | |
c0d27fcc | 5975 | #include <ctype.h> |
ca81d7a0 | 5976 | #include <stdlib.h> |
c0d27fcc MR |
5977 | #if ((' ' & 0x0FF) == 0x020) |
5978 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5979 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5980 | #else | |
19650fd6 | 5981 | # define ISLOWER(c) \ |
edfaf76d LK |
5982 | (('a' <= (c) && (c) <= 'i') \ |
5983 | || ('j' <= (c) && (c) <= 'r') \ | |
5984 | || ('s' <= (c) && (c) <= 'z')) | |
c0d27fcc MR |
5985 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
5986 | #endif | |
5987 | ||
5988 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5989 | int | |
5990 | main () | |
5991 | { | |
5992 | int i; | |
5993 | for (i = 0; i < 256; i++) | |
5994 | if (XOR (islower (i), ISLOWER (i)) | |
edfaf76d | 5995 | || toupper (i) != TOUPPER (i)) |
ca81d7a0 JD |
5996 | return 2; |
5997 | return 0; | |
c0d27fcc MR |
5998 | } |
5999 | _ACEOF | |
6000 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
6001 | if { (ac_try="$ac_link" |
6002 | case "(($ac_try" in | |
6003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6004 | *) ac_try_echo=$ac_try;; | |
6005 | esac | |
6006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6007 | (eval "$ac_link") 2>&5 | |
c0d27fcc MR |
6008 | ac_status=$? |
6009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6010 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
ca81d7a0 JD |
6011 | { (case "(($ac_try" in |
6012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6013 | *) ac_try_echo=$ac_try;; | |
6014 | esac | |
6015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6016 | (eval "$ac_try") 2>&5 | |
c0d27fcc MR |
6017 | ac_status=$? |
6018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6019 | (exit $ac_status); }; }; then | |
6020 | : | |
6021 | else | |
6022 | echo "$as_me: program exited with status $ac_status" >&5 | |
6023 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6024 | sed 's/^/| /' conftest.$ac_ext >&5 |
6025 | ||
c0d27fcc MR |
6026 | ( exit $ac_status ) |
6027 | ac_cv_header_stdc=no | |
6028 | fi | |
ca81d7a0 | 6029 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c0d27fcc | 6030 | fi |
ca81d7a0 JD |
6031 | |
6032 | ||
c0d27fcc MR |
6033 | fi |
6034 | fi | |
ca81d7a0 JD |
6035 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6036 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
c0d27fcc MR |
6037 | if test $ac_cv_header_stdc = yes; then |
6038 | ||
6039 | cat >>confdefs.h <<\_ACEOF | |
6040 | #define STDC_HEADERS 1 | |
6041 | _ACEOF | |
6042 | ||
6043 | fi | |
6044 | ||
6045 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6046 | ||
6047 | ||
6048 | ||
6049 | ||
6050 | ||
6051 | ||
6052 | ||
6053 | ||
6054 | ||
6055 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
edfaf76d | 6056 | inttypes.h stdint.h unistd.h |
98418dba CW |
6057 | do |
6058 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
6059 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6060 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6061 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 6062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 6063 | else |
925c2f3f | 6064 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6065 | /* confdefs.h. */ |
6066 | _ACEOF | |
6067 | cat confdefs.h >>conftest.$ac_ext | |
6068 | cat >>conftest.$ac_ext <<_ACEOF | |
6069 | /* end confdefs.h. */ | |
c0d27fcc MR |
6070 | $ac_includes_default |
6071 | ||
6072 | #include <$ac_header> | |
6073 | _ACEOF | |
6074 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
6075 | if { (ac_try="$ac_compile" |
6076 | case "(($ac_try" in | |
6077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6078 | *) ac_try_echo=$ac_try;; | |
6079 | esac | |
6080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6081 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 6082 | ac_status=$? |
edfaf76d LK |
6083 | grep -v '^ *+' conftest.er1 >conftest.err |
6084 | rm -f conftest.er1 | |
6085 | cat conftest.err >&5 | |
c0d27fcc | 6086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6087 | (exit $ac_status); } && { |
6088 | test -z "$ac_c_werror_flag" || | |
6089 | test ! -s conftest.err | |
6090 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
6091 | eval "$as_ac_Header=yes" |
6092 | else | |
6093 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6094 | sed 's/^/| /' conftest.$ac_ext >&5 |
6095 | ||
ca81d7a0 | 6096 | eval "$as_ac_Header=no" |
c0d27fcc | 6097 | fi |
ca81d7a0 JD |
6098 | |
6099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c0d27fcc | 6100 | fi |
ca81d7a0 JD |
6101 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6102 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6103 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
6104 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6105 | cat >>confdefs.h <<_ACEOF | |
6106 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6107 | _ACEOF | |
6108 | ||
6109 | fi | |
6110 | ||
6111 | done | |
6112 | ||
6113 | ||
6114 | ||
6115 | ||
6116 | ||
6117 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
6118 | do | |
6119 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
6120 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6121 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6122 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6123 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
6124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6125 | fi | |
ca81d7a0 JD |
6126 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6127 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6128 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
6129 | else |
6130 | # Is the header compilable? | |
ca81d7a0 JD |
6131 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6132 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 6133 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6134 | /* confdefs.h. */ |
6135 | _ACEOF | |
6136 | cat confdefs.h >>conftest.$ac_ext | |
6137 | cat >>conftest.$ac_ext <<_ACEOF | |
6138 | /* end confdefs.h. */ | |
c0d27fcc | 6139 | $ac_includes_default |
98418dba | 6140 | #include <$ac_header> |
503d2be0 | 6141 | _ACEOF |
c0d27fcc | 6142 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
6143 | if { (ac_try="$ac_compile" |
6144 | case "(($ac_try" in | |
6145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6146 | *) ac_try_echo=$ac_try;; | |
6147 | esac | |
6148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6149 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 6150 | ac_status=$? |
edfaf76d LK |
6151 | grep -v '^ *+' conftest.er1 >conftest.err |
6152 | rm -f conftest.er1 | |
6153 | cat conftest.err >&5 | |
c0d27fcc | 6154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6155 | (exit $ac_status); } && { |
6156 | test -z "$ac_c_werror_flag" || | |
6157 | test ! -s conftest.err | |
6158 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
6159 | ac_header_compiler=yes |
6160 | else | |
6161 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6162 | sed 's/^/| /' conftest.$ac_ext >&5 |
6163 | ||
ca81d7a0 | 6164 | ac_header_compiler=no |
c0d27fcc | 6165 | fi |
ca81d7a0 JD |
6166 | |
6167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6168 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6169 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
6170 | |
6171 | # Is the header present? | |
ca81d7a0 JD |
6172 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6173 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 6174 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6175 | /* confdefs.h. */ |
6176 | _ACEOF | |
6177 | cat confdefs.h >>conftest.$ac_ext | |
6178 | cat >>conftest.$ac_ext <<_ACEOF | |
6179 | /* end confdefs.h. */ | |
c0d27fcc MR |
6180 | #include <$ac_header> |
6181 | _ACEOF | |
ca81d7a0 JD |
6182 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6183 | case "(($ac_try" in | |
6184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6185 | *) ac_try_echo=$ac_try;; | |
6186 | esac | |
6187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6188 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 6189 | ac_status=$? |
6bae0ccf | 6190 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
6191 | rm -f conftest.er1 |
6192 | cat conftest.err >&5 | |
c0d27fcc | 6193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6194 | (exit $ac_status); } >/dev/null && { |
6195 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6196 | test ! -s conftest.err | |
6197 | }; then | |
c0d27fcc | 6198 | ac_header_preproc=yes |
f4988be7 | 6199 | else |
503d2be0 | 6200 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6201 | sed 's/^/| /' conftest.$ac_ext >&5 |
6202 | ||
c0d27fcc | 6203 | ac_header_preproc=no |
f4988be7 | 6204 | fi |
ca81d7a0 | 6205 | |
98418dba | 6206 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
6207 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6208 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
6209 | |
6210 | # So? What about this header? | |
edfaf76d LK |
6211 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6212 | yes:no: ) | |
c0d27fcc MR |
6213 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6214 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
6215 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6216 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6217 | ac_header_preproc=yes | |
19650fd6 | 6218 | ;; |
edfaf76d | 6219 | no:yes:* ) |
c0d27fcc MR |
6220 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6221 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
6222 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6223 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6224 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6225 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6226 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6227 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 6228 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 6229 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
6230 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6231 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 6232 | |
19650fd6 | 6233 | ;; |
c0d27fcc | 6234 | esac |
ca81d7a0 JD |
6235 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6236 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6237 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
6238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6239 | else | |
edfaf76d | 6240 | eval "$as_ac_Header=\$ac_header_preproc" |
f4988be7 | 6241 | fi |
ca81d7a0 JD |
6242 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6243 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6244 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
6245 | |
6246 | fi | |
98418dba | 6247 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 6248 | cat >>confdefs.h <<_ACEOF |
98418dba | 6249 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 6250 | _ACEOF |
f4988be7 GM |
6251 | |
6252 | fi | |
c0d27fcc | 6253 | |
98418dba CW |
6254 | done |
6255 | ||
6256 | # Emulation library used on NetBSD. | |
ca81d7a0 JD |
6257 | { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
6258 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; } | |
98418dba | 6259 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
503d2be0 | 6260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 6261 | else |
98418dba CW |
6262 | ac_check_lib_save_LIBS=$LIBS |
6263 | LIBS="-lossaudio $LIBS" | |
6264 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6265 | /* confdefs.h. */ |
6266 | _ACEOF | |
6267 | cat confdefs.h >>conftest.$ac_ext | |
6268 | cat >>conftest.$ac_ext <<_ACEOF | |
6269 | /* end confdefs.h. */ | |
98418dba | 6270 | |
ca81d7a0 JD |
6271 | /* Override any GCC internal prototype to avoid an error. |
6272 | Use char because int might match the return type of a GCC | |
6273 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
6274 | #ifdef __cplusplus |
6275 | extern "C" | |
f4988be7 | 6276 | #endif |
98418dba | 6277 | char _oss_ioctl (); |
503d2be0 AS |
6278 | int |
6279 | main () | |
6280 | { | |
ca81d7a0 | 6281 | return _oss_ioctl (); |
503d2be0 AS |
6282 | ; |
6283 | return 0; | |
6284 | } | |
6285 | _ACEOF | |
98418dba | 6286 | rm -f conftest.$ac_objext conftest$ac_exeext |
ca81d7a0 JD |
6287 | if { (ac_try="$ac_link" |
6288 | case "(($ac_try" in | |
6289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6290 | *) ac_try_echo=$ac_try;; | |
6291 | esac | |
6292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6293 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 6294 | ac_status=$? |
edfaf76d LK |
6295 | grep -v '^ *+' conftest.er1 >conftest.err |
6296 | rm -f conftest.er1 | |
6297 | cat conftest.err >&5 | |
c0d27fcc | 6298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6299 | (exit $ac_status); } && { |
6300 | test -z "$ac_c_werror_flag" || | |
6301 | test ! -s conftest.err | |
6302 | } && test -s conftest$ac_exeext && | |
6303 | $as_test_x conftest$ac_exeext; then | |
98418dba | 6304 | ac_cv_lib_ossaudio__oss_ioctl=yes |
f4988be7 | 6305 | else |
503d2be0 | 6306 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6307 | sed 's/^/| /' conftest.$ac_ext >&5 |
6308 | ||
ca81d7a0 | 6309 | ac_cv_lib_ossaudio__oss_ioctl=no |
f4988be7 | 6310 | fi |
ca81d7a0 | 6311 | |
f053c89f | 6312 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 6313 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 6314 | LIBS=$ac_check_lib_save_LIBS |
f4988be7 | 6315 | fi |
ca81d7a0 JD |
6316 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
6317 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; } | |
98418dba CW |
6318 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
6319 | LIBSOUND=-lossaudio | |
6320 | else | |
6321 | LIBSOUND= | |
6322 | fi | |
6323 | ||
c0d27fcc | 6324 | |
439f58ee JD |
6325 | |
6326 | ALSA_REQUIRED=1.0.0 | |
6327 | ALSA_MODULES="alsa >= $ALSA_REQUIRED" | |
6328 | if test "X${with_pkg_config_prog}" != X; then | |
6329 | PKG_CONFIG="${with_pkg_config_prog}" | |
6330 | fi | |
6331 | ||
6332 | succeeded=no | |
6333 | ||
6334 | if test -z "$PKG_CONFIG"; then | |
6335 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
6336 | set dummy pkg-config; ac_word=$2 | |
ca81d7a0 JD |
6337 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6338 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
439f58ee JD |
6339 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
6340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6341 | else | |
6342 | case $PKG_CONFIG in | |
6343 | [\\/]* | ?:[\\/]*) | |
6344 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
6345 | ;; | |
6346 | *) | |
6347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6348 | for as_dir in $PATH | |
6349 | do | |
6350 | IFS=$as_save_IFS | |
6351 | test -z "$as_dir" && as_dir=. | |
6352 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 6353 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
439f58ee JD |
6354 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
6355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6356 | break 2 | |
6357 | fi | |
6358 | done | |
6359 | done | |
ca81d7a0 | 6360 | IFS=$as_save_IFS |
439f58ee JD |
6361 | |
6362 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
6363 | ;; | |
6364 | esac | |
6365 | fi | |
6366 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
439f58ee | 6367 | if test -n "$PKG_CONFIG"; then |
ca81d7a0 JD |
6368 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
6369 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
439f58ee | 6370 | else |
ca81d7a0 JD |
6371 | { echo "$as_me:$LINENO: result: no" >&5 |
6372 | echo "${ECHO_T}no" >&6; } | |
439f58ee JD |
6373 | fi |
6374 | ||
ca81d7a0 | 6375 | |
439f58ee JD |
6376 | fi |
6377 | ||
6378 | if test "$PKG_CONFIG" = "no" ; then | |
6379 | HAVE_ALSA=no | |
6380 | else | |
6381 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
6382 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ca81d7a0 JD |
6383 | { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5 |
6384 | echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; } | |
439f58ee | 6385 | |
67db6aa2 | 6386 | if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then |
ca81d7a0 JD |
6387 | { echo "$as_me:$LINENO: result: yes" >&5 |
6388 | echo "${ECHO_T}yes" >&6; } | |
439f58ee JD |
6389 | succeeded=yes |
6390 | ||
ca81d7a0 JD |
6391 | { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5 |
6392 | echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; } | |
94315858 | 6393 | ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` |
ca81d7a0 JD |
6394 | { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5 |
6395 | echo "${ECHO_T}$ALSA_CFLAGS" >&6; } | |
439f58ee | 6396 | |
ca81d7a0 JD |
6397 | { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5 |
6398 | echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; } | |
94315858 | 6399 | ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` |
ca81d7a0 JD |
6400 | { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5 |
6401 | echo "${ECHO_T}$ALSA_LIBS" >&6; } | |
439f58ee | 6402 | else |
ca81d7a0 JD |
6403 | { echo "$as_me:$LINENO: result: no" >&5 |
6404 | echo "${ECHO_T}no" >&6; } | |
439f58ee JD |
6405 | ALSA_CFLAGS="" |
6406 | ALSA_LIBS="" | |
6407 | ## If we have a custom action on failure, don't print errors, but | |
6408 | ## do set a variable so people can do so. | |
6409 | ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"` | |
6410 | ||
6411 | fi | |
6412 | ||
6413 | ||
6414 | ||
6415 | else | |
6416 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
6417 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
6418 | fi | |
6419 | fi | |
6420 | ||
6421 | if test $succeeded = yes; then | |
6422 | HAVE_ALSA=yes | |
6423 | else | |
6424 | HAVE_ALSA=no | |
6425 | fi | |
6426 | ||
6427 | if test $HAVE_ALSA = yes; then | |
ca81d7a0 JD |
6428 | SAVE_CFLAGS="$CFLAGS" |
6429 | SAVE_LDFLAGS="$LDFLAGS" | |
6430 | CFLAGS="$ALSA_CFLAGS $CFLAGS" | |
6431 | LDFLAGS="$ALSA_LIBS $LDFLAGS" | |
6432 | cat >conftest.$ac_ext <<_ACEOF | |
6433 | /* confdefs.h. */ | |
6434 | _ACEOF | |
6435 | cat confdefs.h >>conftest.$ac_ext | |
6436 | cat >>conftest.$ac_ext <<_ACEOF | |
6437 | /* end confdefs.h. */ | |
6438 | #include <asoundlib.h> | |
6439 | int | |
6440 | main () | |
6441 | { | |
6442 | snd_lib_error_set_handler (0); | |
6443 | ; | |
6444 | return 0; | |
6445 | } | |
6446 | _ACEOF | |
6447 | rm -f conftest.$ac_objext | |
6448 | if { (ac_try="$ac_compile" | |
6449 | case "(($ac_try" in | |
6450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6451 | *) ac_try_echo=$ac_try;; | |
6452 | esac | |
6453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6454 | (eval "$ac_compile") 2>conftest.er1 | |
6455 | ac_status=$? | |
6456 | grep -v '^ *+' conftest.er1 >conftest.err | |
6457 | rm -f conftest.er1 | |
6458 | cat conftest.err >&5 | |
6459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
6460 | (exit $ac_status); } && { |
6461 | test -z "$ac_c_werror_flag" || | |
6462 | test ! -s conftest.err | |
6463 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 JD |
6464 | emacs_alsa_normal=yes |
6465 | else | |
6466 | echo "$as_me: failed program was:" >&5 | |
6467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6468 | ||
6469 | emacs_alsa_normal=no | |
6470 | fi | |
6471 | ||
6472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6473 | if test "$emacs_alsa_normal" != yes; then | |
6474 | cat >conftest.$ac_ext <<_ACEOF | |
6475 | /* confdefs.h. */ | |
6476 | _ACEOF | |
6477 | cat confdefs.h >>conftest.$ac_ext | |
6478 | cat >>conftest.$ac_ext <<_ACEOF | |
6479 | /* end confdefs.h. */ | |
6480 | #include <alsa/asoundlib.h> | |
6481 | int | |
6482 | main () | |
6483 | { | |
6484 | snd_lib_error_set_handler (0); | |
6485 | ; | |
6486 | return 0; | |
6487 | } | |
6488 | _ACEOF | |
6489 | rm -f conftest.$ac_objext | |
6490 | if { (ac_try="$ac_compile" | |
6491 | case "(($ac_try" in | |
6492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6493 | *) ac_try_echo=$ac_try;; | |
6494 | esac | |
6495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6496 | (eval "$ac_compile") 2>conftest.er1 | |
6497 | ac_status=$? | |
6498 | grep -v '^ *+' conftest.er1 >conftest.err | |
6499 | rm -f conftest.er1 | |
6500 | cat conftest.err >&5 | |
6501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
6502 | (exit $ac_status); } && { |
6503 | test -z "$ac_c_werror_flag" || | |
6504 | test ! -s conftest.err | |
6505 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 JD |
6506 | emacs_alsa_subdir=yes |
6507 | else | |
6508 | echo "$as_me: failed program was:" >&5 | |
6509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6510 | ||
6511 | emacs_alsa_subdir=no | |
6512 | fi | |
6513 | ||
6514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6515 | if test "$emacs_alsa_subdir" != yes; then | |
6516 | { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5 | |
6517 | echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;} | |
6518 | { (exit 1); exit 1; }; } | |
6519 | fi | |
6520 | ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" | |
6521 | fi | |
6522 | ||
6523 | CFLAGS="$SAVE_CFLAGS" | |
6524 | LDFLAGS="$SAVE_LDFLAGS" | |
439f58ee JD |
6525 | LIBSOUND="$LIBSOUND $ALSA_LIBS" |
6526 | CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" | |
6527 | ||
6528 | cat >>confdefs.h <<\_ACEOF | |
6529 | #define HAVE_ALSA 1 | |
6530 | _ACEOF | |
6531 | ||
6532 | fi | |
6533 | ||
f4988be7 | 6534 | fi |
c0d27fcc MR |
6535 | |
6536 | ||
6537 | ||
6538 | ||
6539 | ||
6540 | ||
6541 | ||
6542 | ||
6543 | ||
6544 | ||
6545 | ||
6546 | ||
6547 | ||
6548 | ||
6549 | ||
6550 | ||
6551 | ||
6552 | ||
22044edf DL |
6553 | |
6554 | ||
973a76b1 | 6555 | |
cffcede7 | 6556 | |
551ffc27 | 6557 | |
226e2359 | 6558 | |
c0d27fcc | 6559 | |
f4988be7 | 6560 | |
98418dba CW |
6561 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
6562 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | |
25ca0bca | 6563 | termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
551ffc27 | 6564 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ |
226e2359 | 6565 | sys/utsname.h pwd.h |
98418dba CW |
6566 | do |
6567 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
6568 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6569 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6570 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6571 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 6572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 6573 | fi |
ca81d7a0 JD |
6574 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6575 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6576 | echo "${ECHO_T}$ac_res" >&6; } | |
f4988be7 | 6577 | else |
c0d27fcc | 6578 | # Is the header compilable? |
ca81d7a0 JD |
6579 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6580 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 6581 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6582 | /* confdefs.h. */ |
6583 | _ACEOF | |
6584 | cat confdefs.h >>conftest.$ac_ext | |
6585 | cat >>conftest.$ac_ext <<_ACEOF | |
6586 | /* end confdefs.h. */ | |
c0d27fcc MR |
6587 | $ac_includes_default |
6588 | #include <$ac_header> | |
6589 | _ACEOF | |
6590 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
6591 | if { (ac_try="$ac_compile" |
6592 | case "(($ac_try" in | |
6593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6594 | *) ac_try_echo=$ac_try;; | |
6595 | esac | |
6596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6597 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 6598 | ac_status=$? |
edfaf76d LK |
6599 | grep -v '^ *+' conftest.er1 >conftest.err |
6600 | rm -f conftest.er1 | |
6601 | cat conftest.err >&5 | |
c0d27fcc | 6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6603 | (exit $ac_status); } && { |
6604 | test -z "$ac_c_werror_flag" || | |
6605 | test ! -s conftest.err | |
6606 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
6607 | ac_header_compiler=yes |
6608 | else | |
6609 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6610 | sed 's/^/| /' conftest.$ac_ext >&5 |
6611 | ||
ca81d7a0 | 6612 | ac_header_compiler=no |
c0d27fcc | 6613 | fi |
ca81d7a0 JD |
6614 | |
6615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6616 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6617 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
6618 | |
6619 | # Is the header present? | |
ca81d7a0 JD |
6620 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6621 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 6622 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6623 | /* confdefs.h. */ |
6624 | _ACEOF | |
6625 | cat confdefs.h >>conftest.$ac_ext | |
6626 | cat >>conftest.$ac_ext <<_ACEOF | |
6627 | /* end confdefs.h. */ | |
98418dba | 6628 | #include <$ac_header> |
503d2be0 | 6629 | _ACEOF |
ca81d7a0 JD |
6630 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6631 | case "(($ac_try" in | |
6632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6633 | *) ac_try_echo=$ac_try;; | |
6634 | esac | |
6635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6636 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 6637 | ac_status=$? |
6bae0ccf | 6638 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
6639 | rm -f conftest.er1 |
6640 | cat conftest.err >&5 | |
c0d27fcc | 6641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6642 | (exit $ac_status); } >/dev/null && { |
6643 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6644 | test ! -s conftest.err | |
6645 | }; then | |
c0d27fcc | 6646 | ac_header_preproc=yes |
34ec9ebe | 6647 | else |
503d2be0 | 6648 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6649 | sed 's/^/| /' conftest.$ac_ext >&5 |
6650 | ||
c0d27fcc | 6651 | ac_header_preproc=no |
34ec9ebe | 6652 | fi |
ca81d7a0 | 6653 | |
98418dba | 6654 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
6655 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6656 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
6657 | |
6658 | # So? What about this header? | |
edfaf76d LK |
6659 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6660 | yes:no: ) | |
c0d27fcc MR |
6661 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6662 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
6663 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6664 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6665 | ac_header_preproc=yes | |
19650fd6 | 6666 | ;; |
edfaf76d | 6667 | no:yes:* ) |
c0d27fcc MR |
6668 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6669 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
6670 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6671 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6672 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6673 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6674 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6675 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 6676 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 6677 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
6678 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6679 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 6680 | |
19650fd6 | 6681 | ;; |
c0d27fcc | 6682 | esac |
ca81d7a0 JD |
6683 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6684 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6685 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
6686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6687 | else | |
edfaf76d | 6688 | eval "$as_ac_Header=\$ac_header_preproc" |
34ec9ebe | 6689 | fi |
ca81d7a0 JD |
6690 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6691 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6692 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
6693 | |
6694 | fi | |
98418dba | 6695 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 6696 | cat >>confdefs.h <<_ACEOF |
98418dba | 6697 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 6698 | _ACEOF |
34ec9ebe | 6699 | |
98418dba | 6700 | fi |
c0d27fcc | 6701 | |
98418dba CW |
6702 | done |
6703 | ||
22044edf | 6704 | |
ca81d7a0 JD |
6705 | { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5 |
6706 | echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; } | |
f17e308a JD |
6707 | cat >conftest.$ac_ext <<_ACEOF |
6708 | /* confdefs.h. */ | |
6709 | _ACEOF | |
6710 | cat confdefs.h >>conftest.$ac_ext | |
6711 | cat >>conftest.$ac_ext <<_ACEOF | |
6712 | /* end confdefs.h. */ | |
6713 | #include <sys/personality.h> | |
6714 | int | |
6715 | main () | |
6716 | { | |
6717 | personality (PER_LINUX32) | |
6718 | ; | |
6719 | return 0; | |
6720 | } | |
6721 | _ACEOF | |
6722 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
6723 | if { (ac_try="$ac_compile" |
6724 | case "(($ac_try" in | |
6725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6726 | *) ac_try_echo=$ac_try;; | |
6727 | esac | |
6728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6729 | (eval "$ac_compile") 2>conftest.er1 | |
f17e308a | 6730 | ac_status=$? |
edfaf76d LK |
6731 | grep -v '^ *+' conftest.er1 >conftest.err |
6732 | rm -f conftest.er1 | |
6733 | cat conftest.err >&5 | |
f17e308a | 6734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6735 | (exit $ac_status); } && { |
6736 | test -z "$ac_c_werror_flag" || | |
6737 | test ! -s conftest.err | |
6738 | } && test -s conftest.$ac_objext; then | |
f17e308a JD |
6739 | emacs_cv_personality_linux32=yes |
6740 | else | |
6741 | echo "$as_me: failed program was:" >&5 | |
6742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6743 | ||
ca81d7a0 | 6744 | emacs_cv_personality_linux32=no |
f17e308a | 6745 | fi |
ca81d7a0 JD |
6746 | |
6747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6748 | { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5 | |
6749 | echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; } | |
f17e308a JD |
6750 | |
6751 | if test $emacs_cv_personality_linux32 = yes; then | |
6752 | ||
6753 | cat >>confdefs.h <<\_ACEOF | |
6754 | #define HAVE_PERSONALITY_LINUX32 1 | |
6755 | _ACEOF | |
6756 | ||
6757 | fi | |
6758 | ||
6759 | ||
22044edf DL |
6760 | for ac_header in term.h |
6761 | do | |
6762 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
6763 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6764 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6765 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
22044edf DL |
6766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6767 | else | |
6768 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6769 | /* confdefs.h. */ |
6770 | _ACEOF | |
6771 | cat confdefs.h >>conftest.$ac_ext | |
6772 | cat >>conftest.$ac_ext <<_ACEOF | |
6773 | /* end confdefs.h. */ | |
22044edf DL |
6774 | #include <$ac_header> |
6775 | _ACEOF | |
ca81d7a0 JD |
6776 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6777 | case "(($ac_try" in | |
6778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6779 | *) ac_try_echo=$ac_try;; | |
6780 | esac | |
6781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6782 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
22044edf DL |
6783 | ac_status=$? |
6784 | grep -v '^ *+' conftest.er1 >conftest.err | |
6785 | rm -f conftest.er1 | |
6786 | cat conftest.err >&5 | |
6787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
6788 | (exit $ac_status); } >/dev/null && { |
6789 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6790 | test ! -s conftest.err | |
6791 | }; then | |
22044edf DL |
6792 | eval "$as_ac_Header=yes" |
6793 | else | |
6794 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6795 | sed 's/^/| /' conftest.$ac_ext >&5 |
6796 | ||
22044edf DL |
6797 | eval "$as_ac_Header=no" |
6798 | fi | |
ca81d7a0 | 6799 | |
22044edf DL |
6800 | rm -f conftest.err conftest.$ac_ext |
6801 | fi | |
ca81d7a0 JD |
6802 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6803 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6804 | echo "${ECHO_T}$ac_res" >&6; } | |
22044edf DL |
6805 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6806 | cat >>confdefs.h <<_ACEOF | |
6807 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6808 | _ACEOF | |
6809 | ||
6810 | fi | |
6811 | ||
6812 | done | |
6813 | ||
ca81d7a0 JD |
6814 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6815 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
98418dba | 6816 | if test "${ac_cv_header_stdc+set}" = set; then |
503d2be0 | 6817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6818 | else |
503d2be0 | 6819 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6820 | /* confdefs.h. */ |
6821 | _ACEOF | |
6822 | cat confdefs.h >>conftest.$ac_ext | |
6823 | cat >>conftest.$ac_ext <<_ACEOF | |
6824 | /* end confdefs.h. */ | |
98418dba CW |
6825 | #include <stdlib.h> |
6826 | #include <stdarg.h> | |
6827 | #include <string.h> | |
6828 | #include <float.h> | |
6829 | ||
19650fd6 AS |
6830 | int |
6831 | main () | |
6832 | { | |
6833 | ||
6834 | ; | |
6835 | return 0; | |
6836 | } | |
98418dba | 6837 | _ACEOF |
19650fd6 | 6838 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
6839 | if { (ac_try="$ac_compile" |
6840 | case "(($ac_try" in | |
6841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6842 | *) ac_try_echo=$ac_try;; | |
6843 | esac | |
6844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6845 | (eval "$ac_compile") 2>conftest.er1 | |
cd958eb3 | 6846 | ac_status=$? |
edfaf76d LK |
6847 | grep -v '^ *+' conftest.er1 >conftest.err |
6848 | rm -f conftest.er1 | |
6849 | cat conftest.err >&5 | |
cd958eb3 | 6850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6851 | (exit $ac_status); } && { |
6852 | test -z "$ac_c_werror_flag" || | |
6853 | test ! -s conftest.err | |
6854 | } && test -s conftest.$ac_objext; then | |
98418dba | 6855 | ac_cv_header_stdc=yes |
ba4481b5 | 6856 | else |
503d2be0 | 6857 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6858 | sed 's/^/| /' conftest.$ac_ext >&5 |
6859 | ||
ca81d7a0 | 6860 | ac_cv_header_stdc=no |
ba4481b5 | 6861 | fi |
ca81d7a0 JD |
6862 | |
6863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba CW |
6864 | |
6865 | if test $ac_cv_header_stdc = yes; then | |
6866 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6867 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6868 | /* confdefs.h. */ |
6869 | _ACEOF | |
6870 | cat confdefs.h >>conftest.$ac_ext | |
6871 | cat >>conftest.$ac_ext <<_ACEOF | |
6872 | /* end confdefs.h. */ | |
98418dba CW |
6873 | #include <string.h> |
6874 | ||
6875 | _ACEOF | |
6876 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 6877 | $EGREP "memchr" >/dev/null 2>&1; then |
98418dba CW |
6878 | : |
6879 | else | |
6880 | ac_cv_header_stdc=no | |
ba4481b5 | 6881 | fi |
98418dba | 6882 | rm -f conftest* |
ba4481b5 DL |
6883 | |
6884 | fi | |
6885 | ||
98418dba CW |
6886 | if test $ac_cv_header_stdc = yes; then |
6887 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6888 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6889 | /* confdefs.h. */ |
6890 | _ACEOF | |
6891 | cat confdefs.h >>conftest.$ac_ext | |
6892 | cat >>conftest.$ac_ext <<_ACEOF | |
6893 | /* end confdefs.h. */ | |
98418dba CW |
6894 | #include <stdlib.h> |
6895 | ||
6896 | _ACEOF | |
6897 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 6898 | $EGREP "free" >/dev/null 2>&1; then |
98418dba CW |
6899 | : |
6900 | else | |
6901 | ac_cv_header_stdc=no | |
6902 | fi | |
6903 | rm -f conftest* | |
6904 | ||
6905 | fi | |
6906 | ||
6907 | if test $ac_cv_header_stdc = yes; then | |
6908 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6909 | if test "$cross_compiling" = yes; then | |
6910 | : | |
d42122a3 | 6911 | else |
503d2be0 | 6912 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6913 | /* confdefs.h. */ |
6914 | _ACEOF | |
6915 | cat confdefs.h >>conftest.$ac_ext | |
6916 | cat >>conftest.$ac_ext <<_ACEOF | |
6917 | /* end confdefs.h. */ | |
98418dba | 6918 | #include <ctype.h> |
ca81d7a0 | 6919 | #include <stdlib.h> |
98418dba CW |
6920 | #if ((' ' & 0x0FF) == 0x020) |
6921 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6922 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6923 | #else | |
19650fd6 | 6924 | # define ISLOWER(c) \ |
edfaf76d LK |
6925 | (('a' <= (c) && (c) <= 'i') \ |
6926 | || ('j' <= (c) && (c) <= 'r') \ | |
6927 | || ('s' <= (c) && (c) <= 'z')) | |
98418dba CW |
6928 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
6929 | #endif | |
6930 | ||
6931 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
503d2be0 AS |
6932 | int |
6933 | main () | |
6934 | { | |
98418dba CW |
6935 | int i; |
6936 | for (i = 0; i < 256; i++) | |
6937 | if (XOR (islower (i), ISLOWER (i)) | |
edfaf76d | 6938 | || toupper (i) != TOUPPER (i)) |
ca81d7a0 JD |
6939 | return 2; |
6940 | return 0; | |
503d2be0 AS |
6941 | } |
6942 | _ACEOF | |
98418dba | 6943 | rm -f conftest$ac_exeext |
ca81d7a0 JD |
6944 | if { (ac_try="$ac_link" |
6945 | case "(($ac_try" in | |
6946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6947 | *) ac_try_echo=$ac_try;; | |
6948 | esac | |
6949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6950 | (eval "$ac_link") 2>&5 | |
503d2be0 | 6951 | ac_status=$? |
c0d27fcc | 6952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6953 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
6954 | { (case "(($ac_try" in |
6955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6956 | *) ac_try_echo=$ac_try;; | |
6957 | esac | |
6958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6959 | (eval "$ac_try") 2>&5 | |
503d2be0 | 6960 | ac_status=$? |
c0d27fcc | 6961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6962 | (exit $ac_status); }; }; then |
98418dba | 6963 | : |
d42122a3 | 6964 | else |
98418dba CW |
6965 | echo "$as_me: program exited with status $ac_status" >&5 |
6966 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6967 | sed 's/^/| /' conftest.$ac_ext >&5 |
6968 | ||
c0d27fcc | 6969 | ( exit $ac_status ) |
98418dba | 6970 | ac_cv_header_stdc=no |
d42122a3 | 6971 | fi |
ca81d7a0 | 6972 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d42122a3 | 6973 | fi |
ca81d7a0 JD |
6974 | |
6975 | ||
98418dba CW |
6976 | fi |
6977 | fi | |
ca81d7a0 JD |
6978 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6979 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
98418dba CW |
6980 | if test $ac_cv_header_stdc = yes; then |
6981 | ||
c0d27fcc | 6982 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6983 | #define STDC_HEADERS 1 |
c0d27fcc | 6984 | _ACEOF |
d42122a3 DL |
6985 | |
6986 | fi | |
6987 | ||
ca81d7a0 JD |
6988 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
6989 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
98418dba | 6990 | if test "${ac_cv_header_time+set}" = set; then |
503d2be0 | 6991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6992 | else |
503d2be0 | 6993 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6994 | /* confdefs.h. */ |
6995 | _ACEOF | |
6996 | cat confdefs.h >>conftest.$ac_ext | |
6997 | cat >>conftest.$ac_ext <<_ACEOF | |
6998 | /* end confdefs.h. */ | |
ba4481b5 | 6999 | #include <sys/types.h> |
98418dba | 7000 | #include <sys/time.h> |
ba4481b5 | 7001 | #include <time.h> |
503d2be0 AS |
7002 | |
7003 | int | |
7004 | main () | |
7005 | { | |
98418dba CW |
7006 | if ((struct tm *) 0) |
7007 | return 0; | |
503d2be0 AS |
7008 | ; |
7009 | return 0; | |
7010 | } | |
7011 | _ACEOF | |
7012 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7013 | if { (ac_try="$ac_compile" |
7014 | case "(($ac_try" in | |
7015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7016 | *) ac_try_echo=$ac_try;; | |
7017 | esac | |
7018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7019 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7020 | ac_status=$? |
edfaf76d LK |
7021 | grep -v '^ *+' conftest.er1 >conftest.err |
7022 | rm -f conftest.er1 | |
7023 | cat conftest.err >&5 | |
c0d27fcc | 7024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7025 | (exit $ac_status); } && { |
7026 | test -z "$ac_c_werror_flag" || | |
7027 | test ! -s conftest.err | |
7028 | } && test -s conftest.$ac_objext; then | |
98418dba | 7029 | ac_cv_header_time=yes |
ba4481b5 | 7030 | else |
503d2be0 | 7031 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7032 | sed 's/^/| /' conftest.$ac_ext >&5 |
7033 | ||
ca81d7a0 | 7034 | ac_cv_header_time=no |
ba4481b5 | 7035 | fi |
ca81d7a0 JD |
7036 | |
7037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 7038 | fi |
ca81d7a0 JD |
7039 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
7040 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
98418dba | 7041 | if test $ac_cv_header_time = yes; then |
503d2be0 | 7042 | |
c0d27fcc | 7043 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7044 | #define TIME_WITH_SYS_TIME 1 |
c0d27fcc | 7045 | _ACEOF |
ba4481b5 DL |
7046 | |
7047 | fi | |
7048 | ||
ca81d7a0 JD |
7049 | { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 |
7050 | echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; } | |
cd958eb3 | 7051 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then |
503d2be0 | 7052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7053 | else |
503d2be0 | 7054 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7055 | /* confdefs.h. */ |
7056 | _ACEOF | |
7057 | cat confdefs.h >>conftest.$ac_ext | |
7058 | cat >>conftest.$ac_ext <<_ACEOF | |
7059 | /* end confdefs.h. */ | |
cd958eb3 MB |
7060 | $ac_includes_default |
7061 | int | |
7062 | main () | |
7063 | { | |
7064 | #ifndef sys_siglist | |
f053c89f | 7065 | (void) sys_siglist; |
98418dba | 7066 | #endif |
503d2be0 | 7067 | |
cd958eb3 MB |
7068 | ; |
7069 | return 0; | |
7070 | } | |
7071 | _ACEOF | |
7072 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7073 | if { (ac_try="$ac_compile" |
7074 | case "(($ac_try" in | |
7075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7076 | *) ac_try_echo=$ac_try;; | |
7077 | esac | |
7078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7079 | (eval "$ac_compile") 2>conftest.er1 | |
cd958eb3 | 7080 | ac_status=$? |
edfaf76d LK |
7081 | grep -v '^ *+' conftest.er1 >conftest.err |
7082 | rm -f conftest.er1 | |
7083 | cat conftest.err >&5 | |
cd958eb3 | 7084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7085 | (exit $ac_status); } && { |
7086 | test -z "$ac_c_werror_flag" || | |
7087 | test ! -s conftest.err | |
7088 | } && test -s conftest.$ac_objext; then | |
cd958eb3 MB |
7089 | ac_cv_have_decl_sys_siglist=yes |
7090 | else | |
7091 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7092 | sed 's/^/| /' conftest.$ac_ext >&5 |
7093 | ||
ca81d7a0 | 7094 | ac_cv_have_decl_sys_siglist=no |
cd958eb3 | 7095 | fi |
ca81d7a0 JD |
7096 | |
7097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cd958eb3 | 7098 | fi |
ca81d7a0 JD |
7099 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 |
7100 | echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; } | |
cd958eb3 MB |
7101 | if test $ac_cv_have_decl_sys_siglist = yes; then |
7102 | ||
7103 | cat >>confdefs.h <<_ACEOF | |
7104 | #define HAVE_DECL_SYS_SIGLIST 1 | |
7105 | _ACEOF | |
7106 | ||
7107 | ||
7108 | else | |
7109 | cat >>confdefs.h <<_ACEOF | |
7110 | #define HAVE_DECL_SYS_SIGLIST 0 | |
7111 | _ACEOF | |
7112 | ||
7113 | ||
7114 | fi | |
7115 | ||
7116 | ||
7117 | if test $ac_cv_have_decl_sys_siglist != yes; then | |
7118 | # For Tru64, at least: | |
ca81d7a0 JD |
7119 | { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 |
7120 | echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; } | |
cd958eb3 MB |
7121 | if test "${ac_cv_have_decl___sys_siglist+set}" = set; then |
7122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7123 | else | |
7124 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7125 | /* confdefs.h. */ |
7126 | _ACEOF | |
7127 | cat confdefs.h >>conftest.$ac_ext | |
7128 | cat >>conftest.$ac_ext <<_ACEOF | |
7129 | /* end confdefs.h. */ | |
cd958eb3 | 7130 | $ac_includes_default |
503d2be0 AS |
7131 | int |
7132 | main () | |
7133 | { | |
cd958eb3 | 7134 | #ifndef __sys_siglist |
f053c89f | 7135 | (void) __sys_siglist; |
cd958eb3 MB |
7136 | #endif |
7137 | ||
503d2be0 AS |
7138 | ; |
7139 | return 0; | |
7140 | } | |
7141 | _ACEOF | |
7142 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7143 | if { (ac_try="$ac_compile" |
7144 | case "(($ac_try" in | |
7145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7146 | *) ac_try_echo=$ac_try;; | |
7147 | esac | |
7148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7149 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7150 | ac_status=$? |
edfaf76d LK |
7151 | grep -v '^ *+' conftest.er1 >conftest.err |
7152 | rm -f conftest.er1 | |
7153 | cat conftest.err >&5 | |
c0d27fcc | 7154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7155 | (exit $ac_status); } && { |
7156 | test -z "$ac_c_werror_flag" || | |
7157 | test ! -s conftest.err | |
7158 | } && test -s conftest.$ac_objext; then | |
cd958eb3 | 7159 | ac_cv_have_decl___sys_siglist=yes |
ba4481b5 | 7160 | else |
503d2be0 | 7161 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7162 | sed 's/^/| /' conftest.$ac_ext >&5 |
7163 | ||
ca81d7a0 | 7164 | ac_cv_have_decl___sys_siglist=no |
ba4481b5 | 7165 | fi |
ca81d7a0 JD |
7166 | |
7167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 | 7168 | fi |
ca81d7a0 JD |
7169 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 |
7170 | echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; } | |
cd958eb3 | 7171 | if test $ac_cv_have_decl___sys_siglist = yes; then |
503d2be0 | 7172 | |
cd958eb3 MB |
7173 | cat >>confdefs.h <<_ACEOF |
7174 | #define HAVE_DECL___SYS_SIGLIST 1 | |
7175 | _ACEOF | |
7176 | ||
7177 | ||
7178 | else | |
7179 | cat >>confdefs.h <<_ACEOF | |
7180 | #define HAVE_DECL___SYS_SIGLIST 0 | |
c0d27fcc | 7181 | _ACEOF |
503d2be0 | 7182 | |
cd958eb3 | 7183 | |
ba4481b5 DL |
7184 | fi |
7185 | ||
cd958eb3 MB |
7186 | |
7187 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
7188 | ||
7189 | cat >>confdefs.h <<\_ACEOF | |
7190 | #define sys_siglist __sys_siglist | |
7191 | _ACEOF | |
7192 | ||
7193 | fi | |
7194 | fi | |
ca81d7a0 JD |
7195 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
7196 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | |
98418dba | 7197 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
503d2be0 | 7198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7199 | else |
503d2be0 | 7200 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7201 | /* confdefs.h. */ |
7202 | _ACEOF | |
7203 | cat confdefs.h >>conftest.$ac_ext | |
7204 | cat >>conftest.$ac_ext <<_ACEOF | |
7205 | /* end confdefs.h. */ | |
98418dba CW |
7206 | #include <sys/types.h> |
7207 | #include <sys/wait.h> | |
7208 | #ifndef WEXITSTATUS | |
ca81d7a0 | 7209 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
98418dba CW |
7210 | #endif |
7211 | #ifndef WIFEXITED | |
7212 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
ba4481b5 | 7213 | #endif |
503d2be0 AS |
7214 | |
7215 | int | |
7216 | main () | |
7217 | { | |
98418dba CW |
7218 | int s; |
7219 | wait (&s); | |
7220 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
503d2be0 AS |
7221 | ; |
7222 | return 0; | |
7223 | } | |
7224 | _ACEOF | |
98418dba | 7225 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
7226 | if { (ac_try="$ac_compile" |
7227 | case "(($ac_try" in | |
7228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7229 | *) ac_try_echo=$ac_try;; | |
7230 | esac | |
7231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7232 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7233 | ac_status=$? |
edfaf76d LK |
7234 | grep -v '^ *+' conftest.er1 >conftest.err |
7235 | rm -f conftest.er1 | |
7236 | cat conftest.err >&5 | |
c0d27fcc | 7237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7238 | (exit $ac_status); } && { |
7239 | test -z "$ac_c_werror_flag" || | |
7240 | test ! -s conftest.err | |
7241 | } && test -s conftest.$ac_objext; then | |
98418dba | 7242 | ac_cv_header_sys_wait_h=yes |
ba4481b5 | 7243 | else |
503d2be0 | 7244 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7245 | sed 's/^/| /' conftest.$ac_ext >&5 |
7246 | ||
ca81d7a0 | 7247 | ac_cv_header_sys_wait_h=no |
ba4481b5 | 7248 | fi |
ca81d7a0 JD |
7249 | |
7250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 7251 | fi |
ca81d7a0 JD |
7252 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
7253 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | |
98418dba | 7254 | if test $ac_cv_header_sys_wait_h = yes; then |
503d2be0 | 7255 | |
c0d27fcc | 7256 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7257 | #define HAVE_SYS_WAIT_H 1 |
c0d27fcc | 7258 | _ACEOF |
ba4481b5 | 7259 | |
ba4481b5 DL |
7260 | fi |
7261 | ||
c0d27fcc | 7262 | |
ca81d7a0 JD |
7263 | { echo "$as_me:$LINENO: checking for struct utimbuf" >&5 |
7264 | echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; } | |
98418dba | 7265 | if test "${emacs_cv_struct_utimbuf+set}" = set; then |
503d2be0 | 7266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1113b624 | 7267 | else |
503d2be0 | 7268 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7269 | /* confdefs.h. */ |
7270 | _ACEOF | |
7271 | cat confdefs.h >>conftest.$ac_ext | |
7272 | cat >>conftest.$ac_ext <<_ACEOF | |
7273 | /* end confdefs.h. */ | |
98418dba CW |
7274 | #ifdef TIME_WITH_SYS_TIME |
7275 | #include <sys/time.h> | |
7276 | #include <time.h> | |
7277 | #else | |
7278 | #ifdef HAVE_SYS_TIME_H | |
7279 | #include <sys/time.h> | |
7280 | #else | |
1113b624 | 7281 | #include <time.h> |
98418dba CW |
7282 | #endif |
7283 | #endif | |
7284 | #ifdef HAVE_UTIME_H | |
7285 | #include <utime.h> | |
7286 | #endif | |
503d2be0 AS |
7287 | int |
7288 | main () | |
7289 | { | |
98418dba | 7290 | static struct utimbuf x; x.actime = x.modtime; |
503d2be0 AS |
7291 | ; |
7292 | return 0; | |
7293 | } | |
7294 | _ACEOF | |
98418dba | 7295 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
7296 | if { (ac_try="$ac_compile" |
7297 | case "(($ac_try" in | |
7298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7299 | *) ac_try_echo=$ac_try;; | |
7300 | esac | |
7301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7302 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7303 | ac_status=$? |
edfaf76d LK |
7304 | grep -v '^ *+' conftest.er1 >conftest.err |
7305 | rm -f conftest.er1 | |
7306 | cat conftest.err >&5 | |
c0d27fcc | 7307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7308 | (exit $ac_status); } && { |
7309 | test -z "$ac_c_werror_flag" || | |
7310 | test ! -s conftest.err | |
7311 | } && test -s conftest.$ac_objext; then | |
98418dba | 7312 | emacs_cv_struct_utimbuf=yes |
1113b624 | 7313 | else |
503d2be0 | 7314 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7315 | sed 's/^/| /' conftest.$ac_ext >&5 |
7316 | ||
ca81d7a0 | 7317 | emacs_cv_struct_utimbuf=no |
1113b624 | 7318 | fi |
ca81d7a0 JD |
7319 | |
7320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1113b624 | 7321 | fi |
ca81d7a0 JD |
7322 | { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 |
7323 | echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; } | |
98418dba | 7324 | if test $emacs_cv_struct_utimbuf = yes; then |
b936fae4 | 7325 | |
c0d27fcc | 7326 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7327 | #define HAVE_STRUCT_UTIMBUF 1 |
c0d27fcc | 7328 | _ACEOF |
1113b624 PE |
7329 | |
7330 | fi | |
ba4481b5 | 7331 | |
ca81d7a0 JD |
7332 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
7333 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
98418dba | 7334 | if test "${ac_cv_type_signal+set}" = set; then |
503d2be0 | 7335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 7336 | else |
98418dba | 7337 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7338 | /* confdefs.h. */ |
7339 | _ACEOF | |
7340 | cat confdefs.h >>conftest.$ac_ext | |
7341 | cat >>conftest.$ac_ext <<_ACEOF | |
7342 | /* end confdefs.h. */ | |
7397acc4 | 7343 | #include <sys/types.h> |
98418dba | 7344 | #include <signal.h> |
98418dba | 7345 | |
503d2be0 AS |
7346 | int |
7347 | main () | |
7348 | { | |
ca81d7a0 | 7349 | return *(signal (0, 0)) (0) == 1; |
503d2be0 AS |
7350 | ; |
7351 | return 0; | |
7352 | } | |
7353 | _ACEOF | |
98418dba | 7354 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
7355 | if { (ac_try="$ac_compile" |
7356 | case "(($ac_try" in | |
7357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7358 | *) ac_try_echo=$ac_try;; | |
7359 | esac | |
7360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7361 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7362 | ac_status=$? |
edfaf76d LK |
7363 | grep -v '^ *+' conftest.er1 >conftest.err |
7364 | rm -f conftest.er1 | |
7365 | cat conftest.err >&5 | |
c0d27fcc | 7366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7367 | (exit $ac_status); } && { |
7368 | test -z "$ac_c_werror_flag" || | |
7369 | test ! -s conftest.err | |
7370 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 | 7371 | ac_cv_type_signal=int |
503d2be0 AS |
7372 | else |
7373 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7374 | sed 's/^/| /' conftest.$ac_ext >&5 |
7375 | ||
ca81d7a0 | 7376 | ac_cv_type_signal=void |
503d2be0 | 7377 | fi |
ca81d7a0 JD |
7378 | |
7379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7397acc4 | 7380 | fi |
ca81d7a0 JD |
7381 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
7382 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
7397acc4 | 7383 | |
c0d27fcc | 7384 | cat >>confdefs.h <<_ACEOF |
98418dba | 7385 | #define RETSIGTYPE $ac_cv_type_signal |
c0d27fcc MR |
7386 | _ACEOF |
7387 | ||
503d2be0 | 7388 | |
c0d27fcc | 7389 | |
ca81d7a0 JD |
7390 | { echo "$as_me:$LINENO: checking for speed_t" >&5 |
7391 | echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; } | |
98418dba CW |
7392 | if test "${emacs_cv_speed_t+set}" = set; then |
7393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7397acc4 | 7394 | else |
98418dba | 7395 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7396 | /* confdefs.h. */ |
7397 | _ACEOF | |
7398 | cat confdefs.h >>conftest.$ac_ext | |
7399 | cat >>conftest.$ac_ext <<_ACEOF | |
7400 | /* end confdefs.h. */ | |
98418dba | 7401 | #include <termios.h> |
98418dba CW |
7402 | int |
7403 | main () | |
7404 | { | |
7405 | speed_t x = 1; | |
7406 | ; | |
7407 | return 0; | |
7408 | } | |
7409 | _ACEOF | |
7410 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7411 | if { (ac_try="$ac_compile" |
7412 | case "(($ac_try" in | |
7413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7414 | *) ac_try_echo=$ac_try;; | |
7415 | esac | |
7416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7417 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 7418 | ac_status=$? |
edfaf76d LK |
7419 | grep -v '^ *+' conftest.er1 >conftest.err |
7420 | rm -f conftest.er1 | |
7421 | cat conftest.err >&5 | |
c0d27fcc | 7422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7423 | (exit $ac_status); } && { |
7424 | test -z "$ac_c_werror_flag" || | |
7425 | test ! -s conftest.err | |
7426 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
7427 | emacs_cv_speed_t=yes |
7428 | else | |
7429 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7430 | sed 's/^/| /' conftest.$ac_ext >&5 |
7431 | ||
ca81d7a0 | 7432 | emacs_cv_speed_t=no |
98418dba | 7433 | fi |
ca81d7a0 JD |
7434 | |
7435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 7436 | fi |
ca81d7a0 JD |
7437 | { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 |
7438 | echo "${ECHO_T}$emacs_cv_speed_t" >&6; } | |
98418dba | 7439 | if test $emacs_cv_speed_t = yes; then |
b936fae4 | 7440 | |
c0d27fcc | 7441 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7442 | #define HAVE_SPEED_T 1 |
c0d27fcc | 7443 | _ACEOF |
98418dba | 7444 | |
7397acc4 DL |
7445 | fi |
7446 | ||
ca81d7a0 JD |
7447 | { echo "$as_me:$LINENO: checking for struct timeval" >&5 |
7448 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } | |
98418dba | 7449 | if test "${emacs_cv_struct_timeval+set}" = set; then |
503d2be0 | 7450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 7451 | else |
503d2be0 | 7452 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7453 | /* confdefs.h. */ |
7454 | _ACEOF | |
7455 | cat confdefs.h >>conftest.$ac_ext | |
7456 | cat >>conftest.$ac_ext <<_ACEOF | |
7457 | /* end confdefs.h. */ | |
98418dba CW |
7458 | #ifdef TIME_WITH_SYS_TIME |
7459 | #include <sys/time.h> | |
7460 | #include <time.h> | |
7461 | #else | |
7462 | #ifdef HAVE_SYS_TIME_H | |
7463 | #include <sys/time.h> | |
7464 | #else | |
7465 | #include <time.h> | |
7466 | #endif | |
7467 | #endif | |
503d2be0 AS |
7468 | int |
7469 | main () | |
7470 | { | |
98418dba | 7471 | static struct timeval x; x.tv_sec = x.tv_usec; |
503d2be0 AS |
7472 | ; |
7473 | return 0; | |
7474 | } | |
7475 | _ACEOF | |
7476 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7477 | if { (ac_try="$ac_compile" |
7478 | case "(($ac_try" in | |
7479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7480 | *) ac_try_echo=$ac_try;; | |
7481 | esac | |
7482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7483 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7484 | ac_status=$? |
edfaf76d LK |
7485 | grep -v '^ *+' conftest.er1 >conftest.err |
7486 | rm -f conftest.er1 | |
7487 | cat conftest.err >&5 | |
c0d27fcc | 7488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7489 | (exit $ac_status); } && { |
7490 | test -z "$ac_c_werror_flag" || | |
7491 | test ! -s conftest.err | |
7492 | } && test -s conftest.$ac_objext; then | |
edfaf76d LK |
7493 | emacs_cv_struct_timeval=yes |
7494 | else | |
503d2be0 | 7495 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7496 | sed 's/^/| /' conftest.$ac_ext >&5 |
7497 | ||
ca81d7a0 | 7498 | emacs_cv_struct_timeval=no |
7397acc4 | 7499 | fi |
ca81d7a0 JD |
7500 | |
7501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7397acc4 | 7502 | fi |
ca81d7a0 JD |
7503 | { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 |
7504 | echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; } | |
98418dba CW |
7505 | HAVE_TIMEVAL=$emacs_cv_struct_timeval |
7506 | if test $emacs_cv_struct_timeval = yes; then | |
b936fae4 | 7507 | |
c0d27fcc | 7508 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7509 | #define HAVE_TIMEVAL 1 |
c0d27fcc | 7510 | _ACEOF |
7397acc4 DL |
7511 | |
7512 | fi | |
7513 | ||
ca81d7a0 JD |
7514 | { echo "$as_me:$LINENO: checking for struct exception" >&5 |
7515 | echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; } | |
98418dba | 7516 | if test "${emacs_cv_struct_exception+set}" = set; then |
503d2be0 | 7517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7518 | else |
503d2be0 | 7519 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7520 | /* confdefs.h. */ |
7521 | _ACEOF | |
7522 | cat confdefs.h >>conftest.$ac_ext | |
7523 | cat >>conftest.$ac_ext <<_ACEOF | |
7524 | /* end confdefs.h. */ | |
98418dba | 7525 | #include <math.h> |
503d2be0 AS |
7526 | int |
7527 | main () | |
7528 | { | |
98418dba | 7529 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
503d2be0 AS |
7530 | ; |
7531 | return 0; | |
ba4481b5 | 7532 | } |
503d2be0 AS |
7533 | _ACEOF |
7534 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7535 | if { (ac_try="$ac_compile" |
7536 | case "(($ac_try" in | |
7537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7538 | *) ac_try_echo=$ac_try;; | |
7539 | esac | |
7540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7541 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7542 | ac_status=$? |
edfaf76d LK |
7543 | grep -v '^ *+' conftest.er1 >conftest.err |
7544 | rm -f conftest.er1 | |
7545 | cat conftest.err >&5 | |
c0d27fcc | 7546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7547 | (exit $ac_status); } && { |
7548 | test -z "$ac_c_werror_flag" || | |
7549 | test ! -s conftest.err | |
7550 | } && test -s conftest.$ac_objext; then | |
98418dba | 7551 | emacs_cv_struct_exception=yes |
ba4481b5 | 7552 | else |
503d2be0 | 7553 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7554 | sed 's/^/| /' conftest.$ac_ext >&5 |
7555 | ||
ca81d7a0 | 7556 | emacs_cv_struct_exception=no |
ba4481b5 | 7557 | fi |
ca81d7a0 JD |
7558 | |
7559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 7560 | fi |
ca81d7a0 JD |
7561 | { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 |
7562 | echo "${ECHO_T}$emacs_cv_struct_exception" >&6; } | |
98418dba CW |
7563 | HAVE_EXCEPTION=$emacs_cv_struct_exception |
7564 | if test $emacs_cv_struct_exception != yes; then | |
b936fae4 | 7565 | |
c0d27fcc | 7566 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7567 | #define NO_MATHERR 1 |
c0d27fcc | 7568 | _ACEOF |
ba4481b5 DL |
7569 | |
7570 | fi | |
7571 | ||
7862d3a8 AS |
7572 | |
7573 | for ac_header in sys/socket.h | |
7574 | do | |
7575 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
7576 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7577 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7578 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7579 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7862d3a8 AS |
7580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7581 | fi | |
ca81d7a0 JD |
7582 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7583 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7584 | echo "${ECHO_T}$ac_res" >&6; } | |
7862d3a8 AS |
7585 | else |
7586 | # Is the header compilable? | |
ca81d7a0 JD |
7587 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7588 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
7862d3a8 AS |
7589 | cat >conftest.$ac_ext <<_ACEOF |
7590 | /* confdefs.h. */ | |
7591 | _ACEOF | |
7592 | cat confdefs.h >>conftest.$ac_ext | |
7593 | cat >>conftest.$ac_ext <<_ACEOF | |
7594 | /* end confdefs.h. */ | |
7595 | $ac_includes_default | |
7596 | #include <$ac_header> | |
7597 | _ACEOF | |
7598 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7599 | if { (ac_try="$ac_compile" |
7600 | case "(($ac_try" in | |
7601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7602 | *) ac_try_echo=$ac_try;; | |
7603 | esac | |
7604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7605 | (eval "$ac_compile") 2>conftest.er1 | |
7862d3a8 | 7606 | ac_status=$? |
edfaf76d LK |
7607 | grep -v '^ *+' conftest.er1 >conftest.err |
7608 | rm -f conftest.er1 | |
7609 | cat conftest.err >&5 | |
7862d3a8 | 7610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7611 | (exit $ac_status); } && { |
7612 | test -z "$ac_c_werror_flag" || | |
7613 | test ! -s conftest.err | |
7614 | } && test -s conftest.$ac_objext; then | |
7862d3a8 AS |
7615 | ac_header_compiler=yes |
7616 | else | |
7617 | echo "$as_me: failed program was:" >&5 | |
7618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7619 | ||
ca81d7a0 | 7620 | ac_header_compiler=no |
7862d3a8 | 7621 | fi |
ca81d7a0 JD |
7622 | |
7623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7624 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7625 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
7862d3a8 AS |
7626 | |
7627 | # Is the header present? | |
ca81d7a0 JD |
7628 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7629 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
7862d3a8 AS |
7630 | cat >conftest.$ac_ext <<_ACEOF |
7631 | /* confdefs.h. */ | |
7632 | _ACEOF | |
7633 | cat confdefs.h >>conftest.$ac_ext | |
7634 | cat >>conftest.$ac_ext <<_ACEOF | |
7635 | /* end confdefs.h. */ | |
7636 | #include <$ac_header> | |
7637 | _ACEOF | |
ca81d7a0 JD |
7638 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7639 | case "(($ac_try" in | |
7640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7641 | *) ac_try_echo=$ac_try;; | |
7642 | esac | |
7643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7644 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7862d3a8 AS |
7645 | ac_status=$? |
7646 | grep -v '^ *+' conftest.er1 >conftest.err | |
7647 | rm -f conftest.er1 | |
7648 | cat conftest.err >&5 | |
7649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
7650 | (exit $ac_status); } >/dev/null && { |
7651 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7652 | test ! -s conftest.err | |
7653 | }; then | |
7862d3a8 AS |
7654 | ac_header_preproc=yes |
7655 | else | |
7656 | echo "$as_me: failed program was:" >&5 | |
7657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7658 | ||
7659 | ac_header_preproc=no | |
7660 | fi | |
ca81d7a0 | 7661 | |
7862d3a8 | 7662 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
7663 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7664 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
7862d3a8 AS |
7665 | |
7666 | # So? What about this header? | |
edfaf76d LK |
7667 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7668 | yes:no: ) | |
7862d3a8 AS |
7669 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7670 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
7671 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
7672 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7673 | ac_header_preproc=yes | |
7862d3a8 | 7674 | ;; |
edfaf76d | 7675 | no:yes:* ) |
7862d3a8 AS |
7676 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7677 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
7678 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
7679 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7680 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7681 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7682 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7683 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7862d3a8 AS |
7684 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7685 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
7686 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
7687 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 7688 | |
7862d3a8 AS |
7689 | ;; |
7690 | esac | |
ca81d7a0 JD |
7691 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7692 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7693 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7862d3a8 AS |
7694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7695 | else | |
edfaf76d | 7696 | eval "$as_ac_Header=\$ac_header_preproc" |
7862d3a8 | 7697 | fi |
ca81d7a0 JD |
7698 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7699 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7700 | echo "${ECHO_T}$ac_res" >&6; } | |
7862d3a8 AS |
7701 | |
7702 | fi | |
7703 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7704 | cat >>confdefs.h <<_ACEOF | |
7705 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7706 | _ACEOF | |
7707 | ||
7708 | fi | |
7709 | ||
7710 | done | |
7711 | ||
7712 | ||
7713 | for ac_header in net/if.h | |
7714 | do | |
7715 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
7716 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7717 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7718 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7862d3a8 AS |
7719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7720 | else | |
7721 | cat >conftest.$ac_ext <<_ACEOF | |
7722 | /* confdefs.h. */ | |
7723 | _ACEOF | |
7724 | cat confdefs.h >>conftest.$ac_ext | |
7725 | cat >>conftest.$ac_ext <<_ACEOF | |
7726 | /* end confdefs.h. */ | |
7727 | $ac_includes_default | |
7728 | #if HAVE_SYS_SOCKET_H | |
7729 | #include <sys/socket.h> | |
7730 | #endif | |
7731 | ||
7732 | #include <$ac_header> | |
7733 | _ACEOF | |
7734 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7735 | if { (ac_try="$ac_compile" |
7736 | case "(($ac_try" in | |
7737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7738 | *) ac_try_echo=$ac_try;; | |
7739 | esac | |
7740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7741 | (eval "$ac_compile") 2>conftest.er1 | |
7862d3a8 | 7742 | ac_status=$? |
edfaf76d LK |
7743 | grep -v '^ *+' conftest.er1 >conftest.err |
7744 | rm -f conftest.er1 | |
7745 | cat conftest.err >&5 | |
7862d3a8 | 7746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7747 | (exit $ac_status); } && { |
7748 | test -z "$ac_c_werror_flag" || | |
7749 | test ! -s conftest.err | |
7750 | } && test -s conftest.$ac_objext; then | |
7862d3a8 AS |
7751 | eval "$as_ac_Header=yes" |
7752 | else | |
7753 | echo "$as_me: failed program was:" >&5 | |
7754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7755 | ||
ca81d7a0 | 7756 | eval "$as_ac_Header=no" |
7862d3a8 | 7757 | fi |
ca81d7a0 JD |
7758 | |
7759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7862d3a8 | 7760 | fi |
ca81d7a0 JD |
7761 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7762 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7763 | echo "${ECHO_T}$ac_res" >&6; } | |
7862d3a8 AS |
7764 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7765 | cat >>confdefs.h <<_ACEOF | |
7766 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7767 | _ACEOF | |
7768 | ||
7769 | fi | |
7770 | ||
7771 | done | |
7772 | ||
7773 | ||
ca81d7a0 JD |
7774 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
7775 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
98418dba | 7776 | if test "${ac_cv_struct_tm+set}" = set; then |
503d2be0 | 7777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 7778 | else |
503d2be0 | 7779 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7780 | /* confdefs.h. */ |
7781 | _ACEOF | |
7782 | cat confdefs.h >>conftest.$ac_ext | |
7783 | cat >>conftest.$ac_ext <<_ACEOF | |
7784 | /* end confdefs.h. */ | |
98418dba CW |
7785 | #include <sys/types.h> |
7786 | #include <time.h> | |
7397acc4 | 7787 | |
503d2be0 AS |
7788 | int |
7789 | main () | |
7790 | { | |
f053c89f CY |
7791 | struct tm tm; |
7792 | int *p = &tm.tm_sec; | |
7793 | return !p; | |
503d2be0 AS |
7794 | ; |
7795 | return 0; | |
7796 | } | |
7797 | _ACEOF | |
7798 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7799 | if { (ac_try="$ac_compile" |
7800 | case "(($ac_try" in | |
7801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7802 | *) ac_try_echo=$ac_try;; | |
7803 | esac | |
7804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7805 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7806 | ac_status=$? |
edfaf76d LK |
7807 | grep -v '^ *+' conftest.er1 >conftest.err |
7808 | rm -f conftest.er1 | |
7809 | cat conftest.err >&5 | |
c0d27fcc | 7810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7811 | (exit $ac_status); } && { |
7812 | test -z "$ac_c_werror_flag" || | |
7813 | test ! -s conftest.err | |
7814 | } && test -s conftest.$ac_objext; then | |
35996d22 AS |
7815 | ac_cv_struct_tm=time.h |
7816 | else | |
503d2be0 | 7817 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7818 | sed 's/^/| /' conftest.$ac_ext >&5 |
7819 | ||
ca81d7a0 | 7820 | ac_cv_struct_tm=sys/time.h |
7397acc4 | 7821 | fi |
ca81d7a0 JD |
7822 | |
7823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7397acc4 | 7824 | fi |
ca81d7a0 JD |
7825 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
7826 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
98418dba | 7827 | if test $ac_cv_struct_tm = sys/time.h; then |
7397acc4 | 7828 | |
c0d27fcc | 7829 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7830 | #define TM_IN_SYS_TIME 1 |
c0d27fcc | 7831 | _ACEOF |
7397acc4 DL |
7832 | |
7833 | fi | |
ba4481b5 | 7834 | |
ca81d7a0 JD |
7835 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
7836 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } | |
98418dba | 7837 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
503d2be0 | 7838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7839 | else |
98418dba | 7840 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7841 | /* confdefs.h. */ |
7842 | _ACEOF | |
7843 | cat confdefs.h >>conftest.$ac_ext | |
7844 | cat >>conftest.$ac_ext <<_ACEOF | |
7845 | /* end confdefs.h. */ | |
98418dba CW |
7846 | #include <sys/types.h> |
7847 | #include <$ac_cv_struct_tm> | |
ba4481b5 | 7848 | |
c0d27fcc | 7849 | |
98418dba CW |
7850 | int |
7851 | main () | |
7852 | { | |
7853 | static struct tm ac_aggr; | |
7854 | if (ac_aggr.tm_zone) | |
7855 | return 0; | |
7856 | ; | |
7857 | return 0; | |
7858 | } | |
7859 | _ACEOF | |
7860 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7861 | if { (ac_try="$ac_compile" |
7862 | case "(($ac_try" in | |
7863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7864 | *) ac_try_echo=$ac_try;; | |
7865 | esac | |
7866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7867 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 7868 | ac_status=$? |
edfaf76d LK |
7869 | grep -v '^ *+' conftest.er1 >conftest.err |
7870 | rm -f conftest.er1 | |
7871 | cat conftest.err >&5 | |
c0d27fcc | 7872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7873 | (exit $ac_status); } && { |
7874 | test -z "$ac_c_werror_flag" || | |
7875 | test ! -s conftest.err | |
7876 | } && test -s conftest.$ac_objext; then | |
98418dba | 7877 | ac_cv_member_struct_tm_tm_zone=yes |
ba4481b5 | 7878 | else |
98418dba | 7879 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7880 | sed 's/^/| /' conftest.$ac_ext >&5 |
7881 | ||
ca81d7a0 | 7882 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7883 | /* confdefs.h. */ |
7884 | _ACEOF | |
7885 | cat confdefs.h >>conftest.$ac_ext | |
7886 | cat >>conftest.$ac_ext <<_ACEOF | |
7887 | /* end confdefs.h. */ | |
6bae0ccf DL |
7888 | #include <sys/types.h> |
7889 | #include <$ac_cv_struct_tm> | |
7890 | ||
7891 | ||
7892 | int | |
7893 | main () | |
7894 | { | |
7895 | static struct tm ac_aggr; | |
7896 | if (sizeof ac_aggr.tm_zone) | |
7897 | return 0; | |
7898 | ; | |
7899 | return 0; | |
7900 | } | |
7901 | _ACEOF | |
7902 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7903 | if { (ac_try="$ac_compile" |
7904 | case "(($ac_try" in | |
7905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7906 | *) ac_try_echo=$ac_try;; | |
7907 | esac | |
7908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7909 | (eval "$ac_compile") 2>conftest.er1 | |
6bae0ccf | 7910 | ac_status=$? |
edfaf76d LK |
7911 | grep -v '^ *+' conftest.er1 >conftest.err |
7912 | rm -f conftest.er1 | |
7913 | cat conftest.err >&5 | |
6bae0ccf | 7914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7915 | (exit $ac_status); } && { |
7916 | test -z "$ac_c_werror_flag" || | |
7917 | test ! -s conftest.err | |
7918 | } && test -s conftest.$ac_objext; then | |
6bae0ccf DL |
7919 | ac_cv_member_struct_tm_tm_zone=yes |
7920 | else | |
7921 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7922 | sed 's/^/| /' conftest.$ac_ext >&5 |
7923 | ||
ca81d7a0 | 7924 | ac_cv_member_struct_tm_tm_zone=no |
ba4481b5 | 7925 | fi |
ca81d7a0 JD |
7926 | |
7927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 7928 | fi |
ca81d7a0 JD |
7929 | |
7930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bae0ccf | 7931 | fi |
ca81d7a0 JD |
7932 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
7933 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } | |
98418dba | 7934 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
503d2be0 | 7935 | |
c0d27fcc | 7936 | cat >>confdefs.h <<_ACEOF |
98418dba | 7937 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
c0d27fcc MR |
7938 | _ACEOF |
7939 | ||
ba4481b5 | 7940 | |
98418dba | 7941 | fi |
ba4481b5 | 7942 | |
98418dba | 7943 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
ba4481b5 | 7944 | |
c0d27fcc | 7945 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7946 | #define HAVE_TM_ZONE 1 |
c0d27fcc | 7947 | _ACEOF |
ba4481b5 | 7948 | |
ba4481b5 | 7949 | else |
ca81d7a0 JD |
7950 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
7951 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } | |
7952 | if test "${ac_cv_have_decl_tzname+set}" = set; then | |
503d2be0 | 7953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7954 | else |
98418dba | 7955 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7956 | /* confdefs.h. */ |
7957 | _ACEOF | |
7958 | cat confdefs.h >>conftest.$ac_ext | |
7959 | cat >>conftest.$ac_ext <<_ACEOF | |
7960 | /* end confdefs.h. */ | |
98418dba | 7961 | #include <time.h> |
98418dba | 7962 | |
98418dba CW |
7963 | int |
7964 | main () | |
7965 | { | |
ca81d7a0 | 7966 | #ifndef tzname |
f053c89f | 7967 | (void) tzname; |
ca81d7a0 JD |
7968 | #endif |
7969 | ||
98418dba CW |
7970 | ; |
7971 | return 0; | |
7972 | } | |
7973 | _ACEOF | |
ca81d7a0 JD |
7974 | rm -f conftest.$ac_objext |
7975 | if { (ac_try="$ac_compile" | |
7976 | case "(($ac_try" in | |
7977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7978 | *) ac_try_echo=$ac_try;; | |
7979 | esac | |
7980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7981 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 7982 | ac_status=$? |
edfaf76d LK |
7983 | grep -v '^ *+' conftest.er1 >conftest.err |
7984 | rm -f conftest.er1 | |
7985 | cat conftest.err >&5 | |
c0d27fcc | 7986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7987 | (exit $ac_status); } && { |
7988 | test -z "$ac_c_werror_flag" || | |
7989 | test ! -s conftest.err | |
7990 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 | 7991 | ac_cv_have_decl_tzname=yes |
98418dba CW |
7992 | else |
7993 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7994 | sed 's/^/| /' conftest.$ac_ext >&5 |
7995 | ||
ca81d7a0 | 7996 | ac_cv_have_decl_tzname=no |
ba4481b5 | 7997 | fi |
ca81d7a0 JD |
7998 | |
7999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 8000 | fi |
ca81d7a0 JD |
8001 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
8002 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } | |
8003 | if test $ac_cv_have_decl_tzname = yes; then | |
ba4481b5 | 8004 | |
ca81d7a0 JD |
8005 | cat >>confdefs.h <<_ACEOF |
8006 | #define HAVE_DECL_TZNAME 1 | |
c0d27fcc | 8007 | _ACEOF |
503d2be0 | 8008 | |
ca81d7a0 JD |
8009 | |
8010 | else | |
8011 | cat >>confdefs.h <<_ACEOF | |
8012 | #define HAVE_DECL_TZNAME 0 | |
8013 | _ACEOF | |
8014 | ||
8015 | ||
98418dba | 8016 | fi |
503d2be0 | 8017 | |
ca81d7a0 JD |
8018 | |
8019 | { echo "$as_me:$LINENO: checking for tzname" >&5 | |
8020 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } | |
8021 | if test "${ac_cv_var_tzname+set}" = set; then | |
98418dba CW |
8022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8023 | else | |
8024 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8025 | /* confdefs.h. */ |
8026 | _ACEOF | |
8027 | cat confdefs.h >>conftest.$ac_ext | |
8028 | cat >>conftest.$ac_ext <<_ACEOF | |
8029 | /* end confdefs.h. */ | |
98418dba | 8030 | #include <time.h> |
ca81d7a0 JD |
8031 | #if !HAVE_DECL_TZNAME |
8032 | extern char *tzname[]; | |
8033 | #endif | |
b936fae4 | 8034 | |
98418dba CW |
8035 | int |
8036 | main () | |
8037 | { | |
ca81d7a0 | 8038 | return tzname[0][0]; |
98418dba CW |
8039 | ; |
8040 | return 0; | |
8041 | } | |
8042 | _ACEOF | |
ca81d7a0 JD |
8043 | rm -f conftest.$ac_objext conftest$ac_exeext |
8044 | if { (ac_try="$ac_link" | |
8045 | case "(($ac_try" in | |
8046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8047 | *) ac_try_echo=$ac_try;; | |
8048 | esac | |
8049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8050 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 8051 | ac_status=$? |
edfaf76d LK |
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 |
f053c89f CY |
8056 | (exit $ac_status); } && { |
8057 | test -z "$ac_c_werror_flag" || | |
8058 | test ! -s conftest.err | |
8059 | } && test -s conftest$ac_exeext && | |
8060 | $as_test_x conftest$ac_exeext; then | |
ca81d7a0 | 8061 | ac_cv_var_tzname=yes |
98418dba CW |
8062 | else |
8063 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8064 | sed 's/^/| /' conftest.$ac_ext >&5 |
8065 | ||
ca81d7a0 JD |
8066 | ac_cv_var_tzname=no |
8067 | fi | |
6bae0ccf | 8068 | |
f053c89f | 8069 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
ca81d7a0 JD |
8070 | conftest$ac_exeext conftest.$ac_ext |
8071 | fi | |
8072 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 | |
8073 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } | |
8074 | if test $ac_cv_var_tzname = yes; then | |
8075 | ||
8076 | cat >>confdefs.h <<\_ACEOF | |
8077 | #define HAVE_TZNAME 1 | |
8078 | _ACEOF | |
8079 | ||
8080 | fi | |
8081 | fi | |
8082 | ||
8083 | { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 | |
8084 | echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; } | |
8085 | if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then | |
8086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8087 | else | |
8088 | cat >conftest.$ac_ext <<_ACEOF | |
8089 | /* confdefs.h. */ | |
8090 | _ACEOF | |
8091 | cat confdefs.h >>conftest.$ac_ext | |
8092 | cat >>conftest.$ac_ext <<_ACEOF | |
8093 | /* end confdefs.h. */ | |
8094 | #include <time.h> | |
8095 | ||
8096 | int | |
8097 | main () | |
8098 | { | |
8099 | static struct tm ac_aggr; | |
8100 | if (ac_aggr.tm_gmtoff) | |
8101 | return 0; | |
8102 | ; | |
8103 | return 0; | |
8104 | } | |
8105 | _ACEOF | |
8106 | rm -f conftest.$ac_objext | |
8107 | if { (ac_try="$ac_compile" | |
8108 | case "(($ac_try" in | |
8109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8110 | *) ac_try_echo=$ac_try;; | |
8111 | esac | |
8112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8113 | (eval "$ac_compile") 2>conftest.er1 | |
8114 | ac_status=$? | |
8115 | grep -v '^ *+' conftest.er1 >conftest.err | |
8116 | rm -f conftest.er1 | |
8117 | cat conftest.err >&5 | |
8118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
8119 | (exit $ac_status); } && { |
8120 | test -z "$ac_c_werror_flag" || | |
8121 | test ! -s conftest.err | |
8122 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 JD |
8123 | ac_cv_member_struct_tm_tm_gmtoff=yes |
8124 | else | |
8125 | echo "$as_me: failed program was:" >&5 | |
8126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8127 | ||
8128 | cat >conftest.$ac_ext <<_ACEOF | |
8129 | /* confdefs.h. */ | |
8130 | _ACEOF | |
8131 | cat confdefs.h >>conftest.$ac_ext | |
8132 | cat >>conftest.$ac_ext <<_ACEOF | |
8133 | /* end confdefs.h. */ | |
8134 | #include <time.h> | |
8135 | ||
8136 | int | |
8137 | main () | |
8138 | { | |
8139 | static struct tm ac_aggr; | |
8140 | if (sizeof ac_aggr.tm_gmtoff) | |
6bae0ccf | 8141 | return 0; |
8799b3e4 CW |
8142 | ; |
8143 | return 0; | |
8144 | } | |
8145 | _ACEOF | |
6bae0ccf | 8146 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
8147 | if { (ac_try="$ac_compile" |
8148 | case "(($ac_try" in | |
8149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8150 | *) ac_try_echo=$ac_try;; | |
8151 | esac | |
8152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8153 | (eval "$ac_compile") 2>conftest.er1 | |
8799b3e4 | 8154 | ac_status=$? |
edfaf76d LK |
8155 | grep -v '^ *+' conftest.er1 >conftest.err |
8156 | rm -f conftest.er1 | |
8157 | cat conftest.err >&5 | |
c0d27fcc | 8158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8159 | (exit $ac_status); } && { |
8160 | test -z "$ac_c_werror_flag" || | |
8161 | test ! -s conftest.err | |
8162 | } && test -s conftest.$ac_objext; then | |
6bae0ccf | 8163 | ac_cv_member_struct_tm_tm_gmtoff=yes |
8799b3e4 CW |
8164 | else |
8165 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8166 | sed 's/^/| /' conftest.$ac_ext >&5 |
8167 | ||
ca81d7a0 | 8168 | ac_cv_member_struct_tm_tm_gmtoff=no |
8799b3e4 | 8169 | fi |
ca81d7a0 JD |
8170 | |
8171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bae0ccf | 8172 | fi |
ca81d7a0 JD |
8173 | |
8174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8799b3e4 | 8175 | fi |
ca81d7a0 JD |
8176 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 |
8177 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; } | |
6bae0ccf DL |
8178 | if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then |
8179 | ||
8180 | cat >>confdefs.h <<\_ACEOF | |
8181 | #define HAVE_TM_GMTOFF 1 | |
8182 | _ACEOF | |
8183 | ||
8184 | fi | |
8185 | ||
ca81d7a0 JD |
8186 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5 |
8187 | echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; } | |
96f3a036 DL |
8188 | if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then |
8189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8190 | else | |
8191 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8192 | /* confdefs.h. */ |
8193 | _ACEOF | |
8194 | cat confdefs.h >>conftest.$ac_ext | |
8195 | cat >>conftest.$ac_ext <<_ACEOF | |
8196 | /* end confdefs.h. */ | |
7862d3a8 AS |
8197 | $ac_includes_default |
8198 | #if HAVE_SYS_SOCKET_H | |
8199 | #include <sys/socket.h> | |
8200 | #endif | |
8201 | #if HAVE_NET_IF_H | |
96f3a036 | 8202 | #include <net/if.h> |
7862d3a8 | 8203 | #endif |
96f3a036 DL |
8204 | |
8205 | int | |
8206 | main () | |
8207 | { | |
8208 | static struct ifreq ac_aggr; | |
8209 | if (ac_aggr.ifr_flags) | |
8210 | return 0; | |
8211 | ; | |
8212 | return 0; | |
8213 | } | |
8214 | _ACEOF | |
8215 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8216 | if { (ac_try="$ac_compile" |
8217 | case "(($ac_try" in | |
8218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8219 | *) ac_try_echo=$ac_try;; | |
8220 | esac | |
8221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8222 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8223 | ac_status=$? |
edfaf76d LK |
8224 | grep -v '^ *+' conftest.er1 >conftest.err |
8225 | rm -f conftest.er1 | |
8226 | cat conftest.err >&5 | |
96f3a036 | 8227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8228 | (exit $ac_status); } && { |
8229 | test -z "$ac_c_werror_flag" || | |
8230 | test ! -s conftest.err | |
8231 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8232 | ac_cv_member_struct_ifreq_ifr_flags=yes |
8233 | else | |
8234 | echo "$as_me: failed program was:" >&5 | |
8235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8236 | ||
ca81d7a0 | 8237 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8238 | /* confdefs.h. */ |
8239 | _ACEOF | |
8240 | cat confdefs.h >>conftest.$ac_ext | |
8241 | cat >>conftest.$ac_ext <<_ACEOF | |
8242 | /* end confdefs.h. */ | |
7862d3a8 AS |
8243 | $ac_includes_default |
8244 | #if HAVE_SYS_SOCKET_H | |
8245 | #include <sys/socket.h> | |
8246 | #endif | |
8247 | #if HAVE_NET_IF_H | |
96f3a036 | 8248 | #include <net/if.h> |
7862d3a8 | 8249 | #endif |
96f3a036 DL |
8250 | |
8251 | int | |
8252 | main () | |
8253 | { | |
8254 | static struct ifreq ac_aggr; | |
8255 | if (sizeof ac_aggr.ifr_flags) | |
8256 | return 0; | |
8257 | ; | |
8258 | return 0; | |
8259 | } | |
8260 | _ACEOF | |
8261 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8262 | if { (ac_try="$ac_compile" |
8263 | case "(($ac_try" in | |
8264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8265 | *) ac_try_echo=$ac_try;; | |
8266 | esac | |
8267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8268 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8269 | ac_status=$? |
edfaf76d LK |
8270 | grep -v '^ *+' conftest.er1 >conftest.err |
8271 | rm -f conftest.er1 | |
8272 | cat conftest.err >&5 | |
96f3a036 | 8273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8274 | (exit $ac_status); } && { |
8275 | test -z "$ac_c_werror_flag" || | |
8276 | test ! -s conftest.err | |
8277 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8278 | ac_cv_member_struct_ifreq_ifr_flags=yes |
8279 | else | |
8280 | echo "$as_me: failed program was:" >&5 | |
8281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8282 | ||
ca81d7a0 | 8283 | ac_cv_member_struct_ifreq_ifr_flags=no |
96f3a036 | 8284 | fi |
ca81d7a0 JD |
8285 | |
8286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8287 | fi |
ca81d7a0 JD |
8288 | |
8289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8290 | fi |
ca81d7a0 JD |
8291 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5 |
8292 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; } | |
96f3a036 DL |
8293 | if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then |
8294 | ||
8295 | cat >>confdefs.h <<_ACEOF | |
8296 | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 | |
8297 | _ACEOF | |
8298 | ||
8299 | ||
8300 | fi | |
ca81d7a0 JD |
8301 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5 |
8302 | echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; } | |
96f3a036 DL |
8303 | if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then |
8304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8305 | else | |
8306 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8307 | /* confdefs.h. */ |
8308 | _ACEOF | |
8309 | cat confdefs.h >>conftest.$ac_ext | |
8310 | cat >>conftest.$ac_ext <<_ACEOF | |
8311 | /* end confdefs.h. */ | |
7862d3a8 AS |
8312 | $ac_includes_default |
8313 | #if HAVE_SYS_SOCKET_H | |
8314 | #include <sys/socket.h> | |
8315 | #endif | |
8316 | #if HAVE_NET_IF_H | |
96f3a036 | 8317 | #include <net/if.h> |
7862d3a8 | 8318 | #endif |
96f3a036 DL |
8319 | |
8320 | int | |
8321 | main () | |
8322 | { | |
8323 | static struct ifreq ac_aggr; | |
8324 | if (ac_aggr.ifr_hwaddr) | |
8325 | return 0; | |
8326 | ; | |
8327 | return 0; | |
8328 | } | |
8329 | _ACEOF | |
8330 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8331 | if { (ac_try="$ac_compile" |
8332 | case "(($ac_try" in | |
8333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8334 | *) ac_try_echo=$ac_try;; | |
8335 | esac | |
8336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8337 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8338 | ac_status=$? |
edfaf76d LK |
8339 | grep -v '^ *+' conftest.er1 >conftest.err |
8340 | rm -f conftest.er1 | |
8341 | cat conftest.err >&5 | |
96f3a036 | 8342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8343 | (exit $ac_status); } && { |
8344 | test -z "$ac_c_werror_flag" || | |
8345 | test ! -s conftest.err | |
8346 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8347 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes |
8348 | else | |
8349 | echo "$as_me: failed program was:" >&5 | |
8350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8351 | ||
ca81d7a0 | 8352 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8353 | /* confdefs.h. */ |
8354 | _ACEOF | |
8355 | cat confdefs.h >>conftest.$ac_ext | |
8356 | cat >>conftest.$ac_ext <<_ACEOF | |
8357 | /* end confdefs.h. */ | |
7862d3a8 AS |
8358 | $ac_includes_default |
8359 | #if HAVE_SYS_SOCKET_H | |
8360 | #include <sys/socket.h> | |
8361 | #endif | |
8362 | #if HAVE_NET_IF_H | |
96f3a036 | 8363 | #include <net/if.h> |
7862d3a8 | 8364 | #endif |
96f3a036 DL |
8365 | |
8366 | int | |
8367 | main () | |
8368 | { | |
8369 | static struct ifreq ac_aggr; | |
8370 | if (sizeof ac_aggr.ifr_hwaddr) | |
8371 | return 0; | |
8372 | ; | |
8373 | return 0; | |
8374 | } | |
8375 | _ACEOF | |
8376 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8377 | if { (ac_try="$ac_compile" |
8378 | case "(($ac_try" in | |
8379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8380 | *) ac_try_echo=$ac_try;; | |
8381 | esac | |
8382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8383 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8384 | ac_status=$? |
edfaf76d LK |
8385 | grep -v '^ *+' conftest.er1 >conftest.err |
8386 | rm -f conftest.er1 | |
8387 | cat conftest.err >&5 | |
96f3a036 | 8388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8389 | (exit $ac_status); } && { |
8390 | test -z "$ac_c_werror_flag" || | |
8391 | test ! -s conftest.err | |
8392 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8393 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes |
8394 | else | |
8395 | echo "$as_me: failed program was:" >&5 | |
8396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8397 | ||
ca81d7a0 | 8398 | ac_cv_member_struct_ifreq_ifr_hwaddr=no |
96f3a036 | 8399 | fi |
ca81d7a0 JD |
8400 | |
8401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8402 | fi |
ca81d7a0 JD |
8403 | |
8404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8405 | fi |
ca81d7a0 JD |
8406 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5 |
8407 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; } | |
96f3a036 DL |
8408 | if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then |
8409 | ||
8410 | cat >>confdefs.h <<_ACEOF | |
8411 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 | |
8412 | _ACEOF | |
8413 | ||
8414 | ||
8415 | fi | |
ca81d7a0 JD |
8416 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5 |
8417 | echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; } | |
96f3a036 DL |
8418 | if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then |
8419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8420 | else | |
8421 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8422 | /* confdefs.h. */ |
8423 | _ACEOF | |
8424 | cat confdefs.h >>conftest.$ac_ext | |
8425 | cat >>conftest.$ac_ext <<_ACEOF | |
8426 | /* end confdefs.h. */ | |
7862d3a8 AS |
8427 | $ac_includes_default |
8428 | #if HAVE_SYS_SOCKET_H | |
8429 | #include <sys/socket.h> | |
8430 | #endif | |
8431 | #if HAVE_NET_IF_H | |
96f3a036 | 8432 | #include <net/if.h> |
7862d3a8 | 8433 | #endif |
96f3a036 DL |
8434 | |
8435 | int | |
8436 | main () | |
8437 | { | |
8438 | static struct ifreq ac_aggr; | |
8439 | if (ac_aggr.ifr_netmask) | |
8440 | return 0; | |
8441 | ; | |
8442 | return 0; | |
8443 | } | |
8444 | _ACEOF | |
8445 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8446 | if { (ac_try="$ac_compile" |
8447 | case "(($ac_try" in | |
8448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8449 | *) ac_try_echo=$ac_try;; | |
8450 | esac | |
8451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8452 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8453 | ac_status=$? |
edfaf76d LK |
8454 | grep -v '^ *+' conftest.er1 >conftest.err |
8455 | rm -f conftest.er1 | |
8456 | cat conftest.err >&5 | |
96f3a036 | 8457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8458 | (exit $ac_status); } && { |
8459 | test -z "$ac_c_werror_flag" || | |
8460 | test ! -s conftest.err | |
8461 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8462 | ac_cv_member_struct_ifreq_ifr_netmask=yes |
8463 | else | |
8464 | echo "$as_me: failed program was:" >&5 | |
8465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8466 | ||
ca81d7a0 | 8467 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8468 | /* confdefs.h. */ |
8469 | _ACEOF | |
8470 | cat confdefs.h >>conftest.$ac_ext | |
8471 | cat >>conftest.$ac_ext <<_ACEOF | |
8472 | /* end confdefs.h. */ | |
7862d3a8 AS |
8473 | $ac_includes_default |
8474 | #if HAVE_SYS_SOCKET_H | |
8475 | #include <sys/socket.h> | |
8476 | #endif | |
8477 | #if HAVE_NET_IF_H | |
96f3a036 | 8478 | #include <net/if.h> |
7862d3a8 | 8479 | #endif |
96f3a036 DL |
8480 | |
8481 | int | |
8482 | main () | |
8483 | { | |
8484 | static struct ifreq ac_aggr; | |
8485 | if (sizeof ac_aggr.ifr_netmask) | |
8486 | return 0; | |
8487 | ; | |
8488 | return 0; | |
8489 | } | |
8490 | _ACEOF | |
8491 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8492 | if { (ac_try="$ac_compile" |
8493 | case "(($ac_try" in | |
8494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8495 | *) ac_try_echo=$ac_try;; | |
8496 | esac | |
8497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8498 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8499 | ac_status=$? |
edfaf76d LK |
8500 | grep -v '^ *+' conftest.er1 >conftest.err |
8501 | rm -f conftest.er1 | |
8502 | cat conftest.err >&5 | |
96f3a036 | 8503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8504 | (exit $ac_status); } && { |
8505 | test -z "$ac_c_werror_flag" || | |
8506 | test ! -s conftest.err | |
8507 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8508 | ac_cv_member_struct_ifreq_ifr_netmask=yes |
8509 | else | |
8510 | echo "$as_me: failed program was:" >&5 | |
8511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8512 | ||
ca81d7a0 | 8513 | ac_cv_member_struct_ifreq_ifr_netmask=no |
96f3a036 | 8514 | fi |
ca81d7a0 JD |
8515 | |
8516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8517 | fi |
ca81d7a0 JD |
8518 | |
8519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8520 | fi |
ca81d7a0 JD |
8521 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5 |
8522 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; } | |
96f3a036 DL |
8523 | if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then |
8524 | ||
8525 | cat >>confdefs.h <<_ACEOF | |
8526 | #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 | |
8527 | _ACEOF | |
8528 | ||
8529 | ||
8530 | fi | |
ca81d7a0 JD |
8531 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5 |
8532 | echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; } | |
96f3a036 DL |
8533 | if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then |
8534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8535 | else | |
8536 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8537 | /* confdefs.h. */ |
8538 | _ACEOF | |
8539 | cat confdefs.h >>conftest.$ac_ext | |
8540 | cat >>conftest.$ac_ext <<_ACEOF | |
8541 | /* end confdefs.h. */ | |
7862d3a8 AS |
8542 | $ac_includes_default |
8543 | #if HAVE_SYS_SOCKET_H | |
8544 | #include <sys/socket.h> | |
8545 | #endif | |
8546 | #if HAVE_NET_IF_H | |
96f3a036 | 8547 | #include <net/if.h> |
7862d3a8 | 8548 | #endif |
96f3a036 DL |
8549 | |
8550 | int | |
8551 | main () | |
8552 | { | |
8553 | static struct ifreq ac_aggr; | |
8554 | if (ac_aggr.ifr_broadaddr) | |
8555 | return 0; | |
8556 | ; | |
8557 | return 0; | |
8558 | } | |
8559 | _ACEOF | |
8560 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8561 | if { (ac_try="$ac_compile" |
8562 | case "(($ac_try" in | |
8563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8564 | *) ac_try_echo=$ac_try;; | |
8565 | esac | |
8566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8567 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8568 | ac_status=$? |
edfaf76d LK |
8569 | grep -v '^ *+' conftest.er1 >conftest.err |
8570 | rm -f conftest.er1 | |
8571 | cat conftest.err >&5 | |
96f3a036 | 8572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8573 | (exit $ac_status); } && { |
8574 | test -z "$ac_c_werror_flag" || | |
8575 | test ! -s conftest.err | |
8576 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8577 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes |
8578 | else | |
8579 | echo "$as_me: failed program was:" >&5 | |
8580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8581 | ||
ca81d7a0 | 8582 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8583 | /* confdefs.h. */ |
8584 | _ACEOF | |
8585 | cat confdefs.h >>conftest.$ac_ext | |
8586 | cat >>conftest.$ac_ext <<_ACEOF | |
8587 | /* end confdefs.h. */ | |
7862d3a8 AS |
8588 | $ac_includes_default |
8589 | #if HAVE_SYS_SOCKET_H | |
8590 | #include <sys/socket.h> | |
8591 | #endif | |
8592 | #if HAVE_NET_IF_H | |
96f3a036 | 8593 | #include <net/if.h> |
7862d3a8 | 8594 | #endif |
96f3a036 DL |
8595 | |
8596 | int | |
8597 | main () | |
8598 | { | |
8599 | static struct ifreq ac_aggr; | |
8600 | if (sizeof ac_aggr.ifr_broadaddr) | |
8601 | return 0; | |
8602 | ; | |
8603 | return 0; | |
8604 | } | |
8605 | _ACEOF | |
8606 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8607 | if { (ac_try="$ac_compile" |
8608 | case "(($ac_try" in | |
8609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8610 | *) ac_try_echo=$ac_try;; | |
8611 | esac | |
8612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8613 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8614 | ac_status=$? |
edfaf76d LK |
8615 | grep -v '^ *+' conftest.er1 >conftest.err |
8616 | rm -f conftest.er1 | |
8617 | cat conftest.err >&5 | |
96f3a036 | 8618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8619 | (exit $ac_status); } && { |
8620 | test -z "$ac_c_werror_flag" || | |
8621 | test ! -s conftest.err | |
8622 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8623 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes |
8624 | else | |
8625 | echo "$as_me: failed program was:" >&5 | |
8626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8627 | ||
ca81d7a0 | 8628 | ac_cv_member_struct_ifreq_ifr_broadaddr=no |
96f3a036 | 8629 | fi |
ca81d7a0 JD |
8630 | |
8631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8632 | fi |
ca81d7a0 JD |
8633 | |
8634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8635 | fi |
ca81d7a0 JD |
8636 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5 |
8637 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; } | |
96f3a036 DL |
8638 | if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then |
8639 | ||
8640 | cat >>confdefs.h <<_ACEOF | |
8641 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 | |
8642 | _ACEOF | |
8643 | ||
8644 | ||
8645 | fi | |
ca81d7a0 JD |
8646 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5 |
8647 | echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; } | |
96f3a036 DL |
8648 | if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then |
8649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8650 | else | |
8651 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8652 | /* confdefs.h. */ |
8653 | _ACEOF | |
8654 | cat confdefs.h >>conftest.$ac_ext | |
8655 | cat >>conftest.$ac_ext <<_ACEOF | |
8656 | /* end confdefs.h. */ | |
7862d3a8 AS |
8657 | $ac_includes_default |
8658 | #if HAVE_SYS_SOCKET_H | |
8659 | #include <sys/socket.h> | |
8660 | #endif | |
8661 | #if HAVE_NET_IF_H | |
96f3a036 | 8662 | #include <net/if.h> |
7862d3a8 | 8663 | #endif |
96f3a036 DL |
8664 | |
8665 | int | |
8666 | main () | |
8667 | { | |
8668 | static struct ifreq ac_aggr; | |
8669 | if (ac_aggr.ifr_addr) | |
8670 | return 0; | |
8671 | ; | |
8672 | return 0; | |
8673 | } | |
8674 | _ACEOF | |
8675 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8676 | if { (ac_try="$ac_compile" |
8677 | case "(($ac_try" in | |
8678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8679 | *) ac_try_echo=$ac_try;; | |
8680 | esac | |
8681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8682 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8683 | ac_status=$? |
edfaf76d LK |
8684 | grep -v '^ *+' conftest.er1 >conftest.err |
8685 | rm -f conftest.er1 | |
8686 | cat conftest.err >&5 | |
96f3a036 | 8687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8688 | (exit $ac_status); } && { |
8689 | test -z "$ac_c_werror_flag" || | |
8690 | test ! -s conftest.err | |
8691 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8692 | ac_cv_member_struct_ifreq_ifr_addr=yes |
8693 | else | |
8694 | echo "$as_me: failed program was:" >&5 | |
8695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8696 | ||
ca81d7a0 | 8697 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8698 | /* confdefs.h. */ |
8699 | _ACEOF | |
8700 | cat confdefs.h >>conftest.$ac_ext | |
8701 | cat >>conftest.$ac_ext <<_ACEOF | |
8702 | /* end confdefs.h. */ | |
7862d3a8 AS |
8703 | $ac_includes_default |
8704 | #if HAVE_SYS_SOCKET_H | |
8705 | #include <sys/socket.h> | |
8706 | #endif | |
8707 | #if HAVE_NET_IF_H | |
96f3a036 | 8708 | #include <net/if.h> |
7862d3a8 | 8709 | #endif |
96f3a036 DL |
8710 | |
8711 | int | |
8712 | main () | |
8713 | { | |
8714 | static struct ifreq ac_aggr; | |
8715 | if (sizeof ac_aggr.ifr_addr) | |
8716 | return 0; | |
8717 | ; | |
8718 | return 0; | |
8719 | } | |
8720 | _ACEOF | |
8721 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8722 | if { (ac_try="$ac_compile" |
8723 | case "(($ac_try" in | |
8724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8725 | *) ac_try_echo=$ac_try;; | |
8726 | esac | |
8727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8728 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8729 | ac_status=$? |
edfaf76d LK |
8730 | grep -v '^ *+' conftest.er1 >conftest.err |
8731 | rm -f conftest.er1 | |
8732 | cat conftest.err >&5 | |
96f3a036 | 8733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8734 | (exit $ac_status); } && { |
8735 | test -z "$ac_c_werror_flag" || | |
8736 | test ! -s conftest.err | |
8737 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8738 | ac_cv_member_struct_ifreq_ifr_addr=yes |
8739 | else | |
8740 | echo "$as_me: failed program was:" >&5 | |
8741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8742 | ||
ca81d7a0 | 8743 | ac_cv_member_struct_ifreq_ifr_addr=no |
96f3a036 | 8744 | fi |
ca81d7a0 JD |
8745 | |
8746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8747 | fi |
ca81d7a0 JD |
8748 | |
8749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8750 | fi |
ca81d7a0 JD |
8751 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5 |
8752 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; } | |
96f3a036 DL |
8753 | if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then |
8754 | ||
8755 | cat >>confdefs.h <<_ACEOF | |
8756 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 | |
8757 | _ACEOF | |
8758 | ||
8759 | ||
8760 | fi | |
8761 | ||
8799b3e4 | 8762 | |
8799b3e4 | 8763 | |
ca81d7a0 JD |
8764 | { echo "$as_me:$LINENO: checking for function prototypes" >&5 |
8765 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; } | |
8766 | if test "$ac_cv_prog_cc_c89" != no; then | |
8767 | { echo "$as_me:$LINENO: result: yes" >&5 | |
8768 | echo "${ECHO_T}yes" >&6; } | |
98418dba | 8769 | |
c0d27fcc | 8770 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8771 | #define PROTOTYPES 1 |
c0d27fcc MR |
8772 | _ACEOF |
8773 | ||
8774 | ||
8775 | cat >>confdefs.h <<\_ACEOF | |
8776 | #define __PROTOTYPES 1 | |
8777 | _ACEOF | |
98418dba CW |
8778 | |
8779 | else | |
ca81d7a0 JD |
8780 | { echo "$as_me:$LINENO: result: no" >&5 |
8781 | echo "${ECHO_T}no" >&6; } | |
98418dba CW |
8782 | fi |
8783 | ||
ca81d7a0 JD |
8784 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
8785 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } | |
98418dba CW |
8786 | if test "${ac_cv_c_volatile+set}" = set; then |
8787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8788 | else | |
8789 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8790 | /* confdefs.h. */ |
8791 | _ACEOF | |
8792 | cat confdefs.h >>conftest.$ac_ext | |
8793 | cat >>conftest.$ac_ext <<_ACEOF | |
8794 | /* end confdefs.h. */ | |
98418dba | 8795 | |
98418dba CW |
8796 | int |
8797 | main () | |
8798 | { | |
8799 | ||
8800 | volatile int x; | |
ca81d7a0 JD |
8801 | int * volatile y = (int *) 0; |
8802 | return !x && !y; | |
98418dba CW |
8803 | ; |
8804 | return 0; | |
8805 | } | |
8806 | _ACEOF | |
8807 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8808 | if { (ac_try="$ac_compile" |
8809 | case "(($ac_try" in | |
8810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8811 | *) ac_try_echo=$ac_try;; | |
8812 | esac | |
8813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8814 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 8815 | ac_status=$? |
edfaf76d LK |
8816 | grep -v '^ *+' conftest.er1 >conftest.err |
8817 | rm -f conftest.er1 | |
8818 | cat conftest.err >&5 | |
c0d27fcc | 8819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8820 | (exit $ac_status); } && { |
8821 | test -z "$ac_c_werror_flag" || | |
8822 | test ! -s conftest.err | |
8823 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
8824 | ac_cv_c_volatile=yes |
8825 | else | |
8826 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8827 | sed 's/^/| /' conftest.$ac_ext >&5 |
8828 | ||
ca81d7a0 | 8829 | ac_cv_c_volatile=no |
98418dba | 8830 | fi |
ca81d7a0 JD |
8831 | |
8832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 8833 | fi |
ca81d7a0 JD |
8834 | { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
8835 | echo "${ECHO_T}$ac_cv_c_volatile" >&6; } | |
98418dba CW |
8836 | if test $ac_cv_c_volatile = no; then |
8837 | ||
c0d27fcc | 8838 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8839 | #define volatile |
c0d27fcc | 8840 | _ACEOF |
98418dba CW |
8841 | |
8842 | fi | |
8843 | ||
ca81d7a0 JD |
8844 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
8845 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
98418dba CW |
8846 | if test "${ac_cv_c_const+set}" = set; then |
8847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8848 | else | |
8849 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8850 | /* confdefs.h. */ |
8851 | _ACEOF | |
8852 | cat confdefs.h >>conftest.$ac_ext | |
8853 | cat >>conftest.$ac_ext <<_ACEOF | |
8854 | /* end confdefs.h. */ | |
98418dba | 8855 | |
98418dba CW |
8856 | int |
8857 | main () | |
8858 | { | |
8859 | /* FIXME: Include the comments suggested by Paul. */ | |
8860 | #ifndef __cplusplus | |
8861 | /* Ultrix mips cc rejects this. */ | |
8862 | typedef int charset[2]; | |
f053c89f | 8863 | const charset cs; |
98418dba | 8864 | /* SunOS 4.1.1 cc rejects this. */ |
f053c89f CY |
8865 | char const *const *pcpcc; |
8866 | char **ppc; | |
98418dba CW |
8867 | /* NEC SVR4.0.2 mips cc rejects this. */ |
8868 | struct point {int x, y;}; | |
8869 | static struct point const zero = {0,0}; | |
8870 | /* AIX XL C 1.02.0.0 rejects this. | |
8871 | It does not let you subtract one const X* pointer from another in | |
8872 | an arm of an if-expression whose if-part is not a constant | |
8873 | expression */ | |
8874 | const char *g = "string"; | |
f053c89f | 8875 | pcpcc = &g + (g ? g-g : 0); |
98418dba | 8876 | /* HPUX 7.0 cc rejects these. */ |
f053c89f CY |
8877 | ++pcpcc; |
8878 | ppc = (char**) pcpcc; | |
8879 | pcpcc = (char const *const *) ppc; | |
98418dba CW |
8880 | { /* SCO 3.2v4 cc rejects this. */ |
8881 | char *t; | |
8882 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
8883 | ||
8884 | *t++ = 0; | |
ca81d7a0 | 8885 | if (s) return 0; |
98418dba CW |
8886 | } |
8887 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
8888 | int x[] = {25, 17}; | |
8889 | const int *foo = &x[0]; | |
8890 | ++foo; | |
8891 | } | |
8892 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
8893 | typedef const int *iptr; | |
8894 | iptr p = 0; | |
8895 | ++p; | |
8896 | } | |
8897 | { /* AIX XL C 1.02.0.0 rejects this saying | |
8898 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
8899 | struct s { int j; const int *ap[3]; }; | |
8900 | struct s *b; b->j = 5; | |
8901 | } | |
8902 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
8903 | const int foo = 10; | |
ca81d7a0 | 8904 | if (!foo) return 0; |
98418dba | 8905 | } |
f053c89f | 8906 | return !cs[0] && !zero.x; |
98418dba CW |
8907 | #endif |
8908 | ||
8909 | ; | |
8910 | return 0; | |
8911 | } | |
8912 | _ACEOF | |
8913 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8914 | if { (ac_try="$ac_compile" |
8915 | case "(($ac_try" in | |
8916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8917 | *) ac_try_echo=$ac_try;; | |
8918 | esac | |
8919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8920 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 8921 | ac_status=$? |
edfaf76d LK |
8922 | grep -v '^ *+' conftest.er1 >conftest.err |
8923 | rm -f conftest.er1 | |
8924 | cat conftest.err >&5 | |
c0d27fcc | 8925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8926 | (exit $ac_status); } && { |
8927 | test -z "$ac_c_werror_flag" || | |
8928 | test ! -s conftest.err | |
8929 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
8930 | ac_cv_c_const=yes |
8931 | else | |
8932 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8933 | sed 's/^/| /' conftest.$ac_ext >&5 |
8934 | ||
ca81d7a0 | 8935 | ac_cv_c_const=no |
98418dba | 8936 | fi |
ca81d7a0 JD |
8937 | |
8938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 8939 | fi |
ca81d7a0 JD |
8940 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
8941 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
98418dba CW |
8942 | if test $ac_cv_c_const = no; then |
8943 | ||
c0d27fcc | 8944 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8945 | #define const |
c0d27fcc | 8946 | _ACEOF |
98418dba CW |
8947 | |
8948 | fi | |
8949 | ||
ca81d7a0 JD |
8950 | { echo "$as_me:$LINENO: checking for void * support" >&5 |
8951 | echo $ECHO_N "checking for void * support... $ECHO_C" >&6; } | |
98418dba CW |
8952 | if test "${emacs_cv_void_star+set}" = set; then |
8953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8954 | else | |
8955 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8956 | /* confdefs.h. */ |
8957 | _ACEOF | |
8958 | cat confdefs.h >>conftest.$ac_ext | |
8959 | cat >>conftest.$ac_ext <<_ACEOF | |
8960 | /* end confdefs.h. */ | |
98418dba | 8961 | |
98418dba CW |
8962 | int |
8963 | main () | |
8964 | { | |
8965 | void * foo; | |
8966 | ; | |
8967 | return 0; | |
8968 | } | |
8969 | _ACEOF | |
8970 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8971 | if { (ac_try="$ac_compile" |
8972 | case "(($ac_try" in | |
8973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8974 | *) ac_try_echo=$ac_try;; | |
8975 | esac | |
8976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8977 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 8978 | ac_status=$? |
edfaf76d LK |
8979 | grep -v '^ *+' conftest.er1 >conftest.err |
8980 | rm -f conftest.er1 | |
8981 | cat conftest.err >&5 | |
c0d27fcc | 8982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8983 | (exit $ac_status); } && { |
8984 | test -z "$ac_c_werror_flag" || | |
8985 | test ! -s conftest.err | |
8986 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
8987 | emacs_cv_void_star=yes |
8988 | else | |
8989 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8990 | sed 's/^/| /' conftest.$ac_ext >&5 |
8991 | ||
ca81d7a0 | 8992 | emacs_cv_void_star=no |
98418dba | 8993 | fi |
ca81d7a0 JD |
8994 | |
8995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 8996 | fi |
ca81d7a0 JD |
8997 | { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 |
8998 | echo "${ECHO_T}$emacs_cv_void_star" >&6; } | |
98418dba | 8999 | if test $emacs_cv_void_star = yes; then |
c0d27fcc | 9000 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9001 | #define POINTER_TYPE void |
c0d27fcc | 9002 | _ACEOF |
98418dba CW |
9003 | |
9004 | else | |
c0d27fcc | 9005 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9006 | #define POINTER_TYPE char |
c0d27fcc | 9007 | _ACEOF |
98418dba CW |
9008 | |
9009 | fi | |
9010 | ||
c0d27fcc | 9011 | |
4494a266 JD |
9012 | |
9013 | ||
cd958eb3 | 9014 | |
ca81d7a0 JD |
9015 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
9016 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
9017 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
9018 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba CW |
9019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9020 | else | |
c0d27fcc | 9021 | cat >conftest.make <<\_ACEOF |
ca81d7a0 | 9022 | SHELL = /bin/sh |
98418dba | 9023 | all: |
ca81d7a0 | 9024 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
c0d27fcc | 9025 | _ACEOF |
98418dba | 9026 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
ca81d7a0 JD |
9027 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
9028 | *@@@%%%=?*=@@@%%%*) | |
9029 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
9030 | *) | |
9031 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
9032 | esac | |
4b411bfe | 9033 | rm -f conftest.make |
98418dba | 9034 | fi |
ca81d7a0 JD |
9035 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
9036 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9037 | echo "${ECHO_T}yes" >&6; } | |
98418dba CW |
9038 | SET_MAKE= |
9039 | else | |
ca81d7a0 JD |
9040 | { echo "$as_me:$LINENO: result: no" >&5 |
9041 | echo "${ECHO_T}no" >&6; } | |
98418dba CW |
9042 | SET_MAKE="MAKE=${MAKE-make}" |
9043 | fi | |
9044 | ||
c0d27fcc | 9045 | |
ca81d7a0 JD |
9046 | { echo "$as_me:$LINENO: checking for long file names" >&5 |
9047 | echo $ECHO_N "checking for long file names... $ECHO_C" >&6; } | |
98418dba CW |
9048 | if test "${ac_cv_sys_long_file_names+set}" = set; then |
9049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9050 | else | |
9051 | ac_cv_sys_long_file_names=yes | |
9052 | # Test for long file names in all the places we know might matter: | |
9053 | # . the current directory, where building will happen | |
9054 | # $prefix/lib where we will be installing things | |
9055 | # $exec_prefix/lib likewise | |
98418dba | 9056 | # $TMPDIR if set, where it might want to write temporary files |
98418dba CW |
9057 | # /tmp where it might want to write temporary files |
9058 | # /var/tmp likewise | |
9059 | # /usr/tmp likewise | |
ca81d7a0 JD |
9060 | for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do |
9061 | # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib | |
9062 | # in the usual case where exec_prefix is '${prefix}'. | |
9063 | case $ac_dir in #( | |
9064 | . | /* | ?:[\\/]*) ;; #( | |
9065 | *) continue;; | |
9066 | esac | |
9067 | test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. | |
98418dba | 9068 | ac_xdir=$ac_dir/cf$$ |
ca81d7a0 | 9069 | (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue |
98418dba CW |
9070 | ac_tf1=$ac_xdir/conftest9012345 |
9071 | ac_tf2=$ac_xdir/conftest9012346 | |
ca81d7a0 | 9072 | touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || |
98418dba | 9073 | ac_cv_sys_long_file_names=no |
ca81d7a0 JD |
9074 | rm -f -r "$ac_xdir" 2>/dev/null |
9075 | test $ac_cv_sys_long_file_names = no && break | |
98418dba CW |
9076 | done |
9077 | fi | |
ca81d7a0 JD |
9078 | { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 |
9079 | echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; } | |
98418dba CW |
9080 | if test $ac_cv_sys_long_file_names = yes; then |
9081 | ||
c0d27fcc | 9082 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9083 | #define HAVE_LONG_FILE_NAMES 1 |
c0d27fcc | 9084 | _ACEOF |
98418dba CW |
9085 | |
9086 | fi | |
9087 | ||
c0d27fcc | 9088 | |
98418dba CW |
9089 | #### Choose a window system. |
9090 | ||
ca81d7a0 JD |
9091 | { echo "$as_me:$LINENO: checking for X" >&5 |
9092 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } | |
98418dba | 9093 | |
c0d27fcc | 9094 | |
ca81d7a0 | 9095 | # Check whether --with-x was given. |
98418dba | 9096 | if test "${with_x+set}" = set; then |
ca81d7a0 JD |
9097 | withval=$with_x; |
9098 | fi | |
98418dba | 9099 | |
98418dba CW |
9100 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9101 | if test "x$with_x" = xno; then | |
9102 | # The user explicitly disabled X. | |
9103 | have_x=disabled | |
9104 | else | |
ca81d7a0 JD |
9105 | case $x_includes,$x_libraries in #( |
9106 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 | |
9107 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} | |
9108 | { (exit 1); exit 1; }; };; #( | |
9109 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then | |
98418dba CW |
9110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9111 | else | |
9112 | # One or both of the vars are not set, and there is no cached value. | |
9113 | ac_x_includes=no ac_x_libraries=no | |
ca81d7a0 | 9114 | rm -f -r conftest.dir |
98418dba CW |
9115 | if mkdir conftest.dir; then |
9116 | cd conftest.dir | |
c0d27fcc | 9117 | cat >Imakefile <<'_ACEOF' |
ca81d7a0 JD |
9118 | incroot: |
9119 | @echo incroot='${INCROOT}' | |
9120 | usrlibdir: | |
9121 | @echo usrlibdir='${USRLIBDIR}' | |
9122 | libdir: | |
9123 | @echo libdir='${LIBDIR}' | |
9124 | _ACEOF | |
9125 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | |
98418dba | 9126 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
ca81d7a0 JD |
9127 | for ac_var in incroot usrlibdir libdir; do |
9128 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | |
9129 | done | |
98418dba CW |
9130 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
9131 | for ac_extension in a so sl; do | |
ca81d7a0 JD |
9132 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
9133 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | |
edfaf76d | 9134 | ac_im_usrlibdir=$ac_im_libdir; break |
98418dba CW |
9135 | fi |
9136 | done | |
9137 | # Screen out bogus values from the imake configuration. They are | |
9138 | # bogus both because they are the default anyway, and because | |
9139 | # using them would break gcc on systems where it needs fixed includes. | |
9140 | case $ac_im_incroot in | |
ca81d7a0 | 9141 | /usr/include) ac_x_includes= ;; |
98418dba CW |
9142 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
9143 | esac | |
9144 | case $ac_im_usrlibdir in | |
9145 | /usr/lib | /lib) ;; | |
9146 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
9147 | esac | |
9148 | fi | |
9149 | cd .. | |
ca81d7a0 | 9150 | rm -f -r conftest.dir |
98418dba CW |
9151 | fi |
9152 | ||
9153 | # Standard set of common directories for X headers. | |
9154 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9155 | ac_x_header_dirs=' | |
9156 | /usr/X11/include | |
9157 | /usr/X11R6/include | |
9158 | /usr/X11R5/include | |
9159 | /usr/X11R4/include | |
9160 | ||
9161 | /usr/include/X11 | |
9162 | /usr/include/X11R6 | |
9163 | /usr/include/X11R5 | |
9164 | /usr/include/X11R4 | |
9165 | ||
9166 | /usr/local/X11/include | |
9167 | /usr/local/X11R6/include | |
9168 | /usr/local/X11R5/include | |
9169 | /usr/local/X11R4/include | |
9170 | ||
9171 | /usr/local/include/X11 | |
9172 | /usr/local/include/X11R6 | |
9173 | /usr/local/include/X11R5 | |
9174 | /usr/local/include/X11R4 | |
9175 | ||
9176 | /usr/X386/include | |
9177 | /usr/x386/include | |
9178 | /usr/XFree86/include/X11 | |
9179 | ||
9180 | /usr/include | |
9181 | /usr/local/include | |
9182 | /usr/unsupported/include | |
9183 | /usr/athena/include | |
9184 | /usr/local/x11r5/include | |
9185 | /usr/lpp/Xamples/include | |
9186 | ||
9187 | /usr/openwin/include | |
9188 | /usr/openwin/share/include' | |
9189 | ||
9190 | if test "$ac_x_includes" = no; then | |
ca81d7a0 | 9191 | # Guess where to find include files, by looking for Xlib.h. |
98418dba CW |
9192 | # First, try using that file with no special directory specified. |
9193 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9194 | /* confdefs.h. */ |
9195 | _ACEOF | |
9196 | cat confdefs.h >>conftest.$ac_ext | |
9197 | cat >>conftest.$ac_ext <<_ACEOF | |
9198 | /* end confdefs.h. */ | |
ca81d7a0 | 9199 | #include <X11/Xlib.h> |
98418dba | 9200 | _ACEOF |
ca81d7a0 JD |
9201 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9202 | case "(($ac_try" in | |
9203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9204 | *) ac_try_echo=$ac_try;; | |
9205 | esac | |
9206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9207 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 9208 | ac_status=$? |
6bae0ccf | 9209 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
9210 | rm -f conftest.er1 |
9211 | cat conftest.err >&5 | |
c0d27fcc | 9212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9213 | (exit $ac_status); } >/dev/null && { |
9214 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9215 | test ! -s conftest.err | |
9216 | }; then | |
98418dba CW |
9217 | # We can compile using X headers with no special include directory. |
9218 | ac_x_includes= | |
9219 | else | |
9220 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9221 | sed 's/^/| /' conftest.$ac_ext >&5 |
9222 | ||
98418dba | 9223 | for ac_dir in $ac_x_header_dirs; do |
ca81d7a0 | 9224 | if test -r "$ac_dir/X11/Xlib.h"; then |
98418dba CW |
9225 | ac_x_includes=$ac_dir |
9226 | break | |
9227 | fi | |
9228 | done | |
9229 | fi | |
ca81d7a0 | 9230 | |
98418dba CW |
9231 | rm -f conftest.err conftest.$ac_ext |
9232 | fi # $ac_x_includes = no | |
9233 | ||
9234 | if test "$ac_x_libraries" = no; then | |
9235 | # Check for the libraries. | |
9236 | # See if we find them without any special options. | |
9237 | # Don't add to $LIBS permanently. | |
9238 | ac_save_LIBS=$LIBS | |
f053c89f | 9239 | LIBS="-lX11 $LIBS" |
98418dba | 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. */ | |
ca81d7a0 | 9246 | #include <X11/Xlib.h> |
98418dba CW |
9247 | int |
9248 | main () | |
9249 | { | |
ca81d7a0 | 9250 | XrmInitialize () |
98418dba CW |
9251 | ; |
9252 | return 0; | |
9253 | } | |
9254 | _ACEOF | |
9255 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
9256 | if { (ac_try="$ac_link" |
9257 | case "(($ac_try" in | |
9258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9259 | *) ac_try_echo=$ac_try;; | |
9260 | esac | |
9261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9262 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 9263 | ac_status=$? |
edfaf76d LK |
9264 | grep -v '^ *+' conftest.er1 >conftest.err |
9265 | rm -f conftest.er1 | |
9266 | cat conftest.err >&5 | |
c0d27fcc | 9267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9268 | (exit $ac_status); } && { |
9269 | test -z "$ac_c_werror_flag" || | |
9270 | test ! -s conftest.err | |
9271 | } && test -s conftest$ac_exeext && | |
9272 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
9273 | LIBS=$ac_save_LIBS |
9274 | # We can link X programs with no special library path. | |
9275 | ac_x_libraries= | |
9276 | else | |
9277 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9278 | sed 's/^/| /' conftest.$ac_ext >&5 |
9279 | ||
ca81d7a0 | 9280 | LIBS=$ac_save_LIBS |
98418dba CW |
9281 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
9282 | do | |
9283 | # Don't even attempt the hair of trying to link an X program! | |
9284 | for ac_extension in a so sl; do | |
f053c89f | 9285 | if test -r "$ac_dir/libX11.$ac_extension"; then |
98418dba CW |
9286 | ac_x_libraries=$ac_dir |
9287 | break 2 | |
9288 | fi | |
9289 | done | |
9290 | done | |
9291 | fi | |
ca81d7a0 | 9292 | |
f053c89f | 9293 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 9294 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
9295 | fi # $ac_x_libraries = no |
9296 | ||
ca81d7a0 JD |
9297 | case $ac_x_includes,$ac_x_libraries in #( |
9298 | no,* | *,no | *\'*) | |
9299 | # Didn't find X, or a directory has "'" in its name. | |
9300 | ac_cv_have_x="have_x=no";; #( | |
9301 | *) | |
9302 | # Record where we found X for the cache. | |
9303 | ac_cv_have_x="have_x=yes\ | |
9304 | ac_x_includes='$ac_x_includes'\ | |
9305 | ac_x_libraries='$ac_x_libraries'" | |
9306 | esac | |
4b411bfe | 9307 | fi |
ca81d7a0 JD |
9308 | ;; #( |
9309 | *) have_x=yes;; | |
9310 | esac | |
98418dba CW |
9311 | eval "$ac_cv_have_x" |
9312 | fi # $with_x != no | |
9313 | ||
9314 | if test "$have_x" != yes; then | |
ca81d7a0 JD |
9315 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
9316 | echo "${ECHO_T}$have_x" >&6; } | |
98418dba CW |
9317 | no_x=yes |
9318 | else | |
9319 | # If each of the values was on the command line, it overrides each guess. | |
9320 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
9321 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
9322 | # Update the cache value to reflect the command line values. | |
ca81d7a0 JD |
9323 | ac_cv_have_x="have_x=yes\ |
9324 | ac_x_includes='$x_includes'\ | |
9325 | ac_x_libraries='$x_libraries'" | |
9326 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | |
9327 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } | |
98418dba CW |
9328 | fi |
9329 | ||
9330 | if test "$no_x" = yes; then | |
9331 | window_system=none | |
9332 | else | |
9333 | window_system=x11 | |
9334 | fi | |
9335 | ||
92d1ccf4 AS |
9336 | if test "${x_libraries}" != NONE; then |
9337 | if test -n "${x_libraries}"; then | |
9338 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
9339 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
9340 | fi | |
98418dba | 9341 | x_default_search_path="" |
92d1ccf4 AS |
9342 | x_search_path=${x_libraries} |
9343 | if test -z "${x_search_path}"; then | |
9344 | x_search_path=/usr/lib | |
9345 | fi | |
9346 | for x_library in `echo ${x_search_path}: | \ | |
9347 | sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do | |
98418dba CW |
9348 | x_search_path="\ |
9349 | ${x_library}/X11/%L/%T/%N%C%S:\ | |
9350 | ${x_library}/X11/%l/%T/%N%C%S:\ | |
9351 | ${x_library}/X11/%T/%N%C%S:\ | |
9352 | ${x_library}/X11/%L/%T/%N%S:\ | |
9353 | ${x_library}/X11/%l/%T/%N%S:\ | |
9354 | ${x_library}/X11/%T/%N%S" | |
9355 | if test x"${x_default_search_path}" = x; then | |
9356 | x_default_search_path=${x_search_path} | |
9357 | else | |
9358 | x_default_search_path="${x_search_path}:${x_default_search_path}" | |
9359 | fi | |
9360 | done | |
9361 | fi | |
9362 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
9363 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
9364 | fi | |
9365 | ||
9366 | if test x"${x_includes}" = x; then | |
9367 | bitmapdir=/usr/include/X11/bitmaps | |
9368 | else | |
9369 | # accumulate include directories that have X11 bitmap subdirectories | |
9370 | bmd_acc="dummyval" | |
9371 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
9372 | if test -d "${bmd}/X11/bitmaps"; then | |
9373 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
9374 | fi | |
9375 | if test -d "${bmd}/bitmaps"; then | |
9376 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" | |
9377 | fi | |
9378 | done | |
9379 | if test ${bmd_acc} != "dummyval"; then | |
9380 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
9381 | fi | |
9382 | fi | |
9383 | ||
5d6da11e | 9384 | HAVE_CARBON=no |
1d4d5604 YM |
9385 | if test "${with_carbon}" != no; then |
9386 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
ca81d7a0 JD |
9387 | { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
9388 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; } | |
5d6da11e YM |
9389 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
9390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9391 | fi | |
ca81d7a0 JD |
9392 | { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
9393 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; } | |
5d6da11e YM |
9394 | else |
9395 | # Is the header compilable? | |
ca81d7a0 JD |
9396 | { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
9397 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; } | |
5d6da11e YM |
9398 | cat >conftest.$ac_ext <<_ACEOF |
9399 | /* confdefs.h. */ | |
9400 | _ACEOF | |
9401 | cat confdefs.h >>conftest.$ac_ext | |
9402 | cat >>conftest.$ac_ext <<_ACEOF | |
9403 | /* end confdefs.h. */ | |
9404 | $ac_includes_default | |
9405 | #include <Carbon/Carbon.h> | |
9406 | _ACEOF | |
9407 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
9408 | if { (ac_try="$ac_compile" |
9409 | case "(($ac_try" in | |
9410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9411 | *) ac_try_echo=$ac_try;; | |
9412 | esac | |
9413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9414 | (eval "$ac_compile") 2>conftest.er1 | |
5d6da11e | 9415 | ac_status=$? |
edfaf76d LK |
9416 | grep -v '^ *+' conftest.er1 >conftest.err |
9417 | rm -f conftest.er1 | |
9418 | cat conftest.err >&5 | |
5d6da11e | 9419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9420 | (exit $ac_status); } && { |
9421 | test -z "$ac_c_werror_flag" || | |
9422 | test ! -s conftest.err | |
9423 | } && test -s conftest.$ac_objext; then | |
5d6da11e YM |
9424 | ac_header_compiler=yes |
9425 | else | |
9426 | echo "$as_me: failed program was:" >&5 | |
9427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9428 | ||
ca81d7a0 | 9429 | ac_header_compiler=no |
5d6da11e | 9430 | fi |
ca81d7a0 JD |
9431 | |
9432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9433 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9434 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
5d6da11e YM |
9435 | |
9436 | # Is the header present? | |
ca81d7a0 JD |
9437 | { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
9438 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; } | |
5d6da11e YM |
9439 | cat >conftest.$ac_ext <<_ACEOF |
9440 | /* confdefs.h. */ | |
9441 | _ACEOF | |
9442 | cat confdefs.h >>conftest.$ac_ext | |
9443 | cat >>conftest.$ac_ext <<_ACEOF | |
9444 | /* end confdefs.h. */ | |
9445 | #include <Carbon/Carbon.h> | |
9446 | _ACEOF | |
ca81d7a0 JD |
9447 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9448 | case "(($ac_try" in | |
9449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9450 | *) ac_try_echo=$ac_try;; | |
9451 | esac | |
9452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9453 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5d6da11e YM |
9454 | ac_status=$? |
9455 | grep -v '^ *+' conftest.er1 >conftest.err | |
9456 | rm -f conftest.er1 | |
9457 | cat conftest.err >&5 | |
9458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
9459 | (exit $ac_status); } >/dev/null && { |
9460 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9461 | test ! -s conftest.err | |
9462 | }; then | |
5d6da11e YM |
9463 | ac_header_preproc=yes |
9464 | else | |
9465 | echo "$as_me: failed program was:" >&5 | |
9466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9467 | ||
9468 | ac_header_preproc=no | |
9469 | fi | |
ca81d7a0 | 9470 | |
5d6da11e | 9471 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
9472 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9473 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
5d6da11e YM |
9474 | |
9475 | # So? What about this header? | |
edfaf76d LK |
9476 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9477 | yes:no: ) | |
5d6da11e YM |
9478 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9479 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
9480 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
9481 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} | |
9482 | ac_header_preproc=yes | |
5d6da11e | 9483 | ;; |
edfaf76d | 9484 | no:yes:* ) |
5d6da11e YM |
9485 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
9486 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
9487 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
9488 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} | |
9489 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 | |
9490 | echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} | |
9491 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9492 | echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5d6da11e YM |
9493 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
9494 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
9495 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
9496 | echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 9497 | |
5d6da11e YM |
9498 | ;; |
9499 | esac | |
ca81d7a0 JD |
9500 | { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
9501 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; } | |
5d6da11e YM |
9502 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
9503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9504 | else | |
9505 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc | |
9506 | fi | |
ca81d7a0 JD |
9507 | { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
9508 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; } | |
5d6da11e YM |
9509 | |
9510 | fi | |
9511 | if test $ac_cv_header_Carbon_Carbon_h = yes; then | |
9512 | HAVE_CARBON=yes | |
9513 | fi | |
9514 | ||
9515 | ||
1d4d5604 YM |
9516 | fi |
9517 | if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then | |
9518 | if test "${with_carbon+set}" != set \ | |
9519 | && test "${carbon_appdir_x+set}" != set; then | |
ec8fcb10 YM |
9520 | for var in with_x with_x_toolkit with_gtk with_xim \ |
9521 | with_xpm with_jpeg with_tiff with_gif with_png; do | |
9522 | if eval test \"\${$var+set}\" = set; then | |
9523 | HAVE_CARBON=no | |
9524 | break | |
9525 | fi | |
9526 | done | |
5d6da11e YM |
9527 | fi |
9528 | fi | |
1d4d5604 YM |
9529 | if test "${HAVE_CARBON}" = yes; then |
9530 | window_system=mac | |
9531 | fi | |
9532 | ||
9533 | case "${window_system}" in | |
9534 | x11 ) | |
9535 | HAVE_X_WINDOWS=yes | |
9536 | HAVE_X11=yes | |
9537 | case "${with_x_toolkit}" in | |
9538 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
9539 | motif ) USE_X_TOOLKIT=MOTIF ;; | |
9540 | gtk ) with_gtk=yes | |
9541 | USE_X_TOOLKIT=none ;; | |
9542 | no ) USE_X_TOOLKIT=none ;; | |
9543 | * ) USE_X_TOOLKIT=maybe ;; | |
9544 | esac | |
9545 | ;; | |
9546 | mac | none ) | |
9547 | HAVE_X_WINDOWS=no | |
9548 | HAVE_X11=no | |
9549 | USE_X_TOOLKIT=none | |
9550 | ;; | |
9551 | esac | |
9552 | ||
9553 | ### If we're using X11, we should use the X menu package. | |
9554 | HAVE_MENUS=no | |
9555 | case ${HAVE_X11} in | |
9556 | yes ) HAVE_MENUS=yes ;; | |
9557 | esac | |
9558 | ||
9559 | if test "${opsys}" = "hpux9"; then | |
9560 | case "${x_libraries}" in | |
9561 | *X11R4* ) | |
9562 | opsysfile="s/hpux9-x11r4.h" | |
9563 | ;; | |
9564 | esac | |
9565 | fi | |
9566 | ||
9567 | if test "${opsys}" = "hpux9shr"; then | |
9568 | case "${x_libraries}" in | |
9569 | *X11R4* ) | |
9570 | opsysfile="s/hpux9shxr4.h" | |
9571 | ;; | |
9572 | esac | |
9573 | fi | |
5d6da11e | 9574 | |
98418dba CW |
9575 | ### Compute the unexec source name from the object name. |
9576 | UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
9577 | ||
9578 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
9579 | # Assume not, until told otherwise. | |
9580 | GNU_MALLOC=yes | |
9581 | doug_lea_malloc=yes | |
ca81d7a0 JD |
9582 | { echo "$as_me:$LINENO: checking for malloc_get_state" >&5 |
9583 | echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; } | |
98418dba CW |
9584 | if test "${ac_cv_func_malloc_get_state+set}" = set; then |
9585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9586 | else | |
9587 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9588 | /* confdefs.h. */ |
9589 | _ACEOF | |
9590 | cat confdefs.h >>conftest.$ac_ext | |
9591 | cat >>conftest.$ac_ext <<_ACEOF | |
9592 | /* end confdefs.h. */ | |
edfaf76d LK |
9593 | /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state. |
9594 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9595 | #define malloc_get_state innocuous_malloc_get_state | |
9596 | ||
98418dba | 9597 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
9598 | which can conflict with char malloc_get_state (); below. |
9599 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9600 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 9601 | |
19650fd6 AS |
9602 | #ifdef __STDC__ |
9603 | # include <limits.h> | |
9604 | #else | |
9605 | # include <assert.h> | |
9606 | #endif | |
edfaf76d LK |
9607 | |
9608 | #undef malloc_get_state | |
9609 | ||
ca81d7a0 JD |
9610 | /* Override any GCC internal prototype to avoid an error. |
9611 | Use char because int might match the return type of a GCC | |
9612 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
9613 | #ifdef __cplusplus |
9614 | extern "C" | |
9615 | #endif | |
98418dba | 9616 | char malloc_get_state (); |
98418dba CW |
9617 | /* The GNU C library defines this for functions which it implements |
9618 | to always fail with ENOSYS. Some functions are actually named | |
9619 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 9620 | #if defined __stub_malloc_get_state || defined __stub___malloc_get_state |
98418dba | 9621 | choke me |
98418dba CW |
9622 | #endif |
9623 | ||
19650fd6 AS |
9624 | int |
9625 | main () | |
9626 | { | |
ca81d7a0 | 9627 | return malloc_get_state (); |
98418dba CW |
9628 | ; |
9629 | return 0; | |
9630 | } | |
9631 | _ACEOF | |
9632 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
9633 | if { (ac_try="$ac_link" |
9634 | case "(($ac_try" in | |
9635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9636 | *) ac_try_echo=$ac_try;; | |
9637 | esac | |
9638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9639 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 9640 | ac_status=$? |
edfaf76d LK |
9641 | grep -v '^ *+' conftest.er1 >conftest.err |
9642 | rm -f conftest.er1 | |
9643 | cat conftest.err >&5 | |
c0d27fcc | 9644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9645 | (exit $ac_status); } && { |
9646 | test -z "$ac_c_werror_flag" || | |
9647 | test ! -s conftest.err | |
9648 | } && test -s conftest$ac_exeext && | |
9649 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
9650 | ac_cv_func_malloc_get_state=yes |
9651 | else | |
9652 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9653 | sed 's/^/| /' conftest.$ac_ext >&5 |
9654 | ||
ca81d7a0 | 9655 | ac_cv_func_malloc_get_state=no |
98418dba | 9656 | fi |
ca81d7a0 | 9657 | |
f053c89f | 9658 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 9659 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 9660 | fi |
ca81d7a0 JD |
9661 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 |
9662 | echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; } | |
98418dba CW |
9663 | if test $ac_cv_func_malloc_get_state = yes; then |
9664 | : | |
9665 | else | |
9666 | doug_lea_malloc=no | |
9667 | fi | |
9668 | ||
ca81d7a0 JD |
9669 | { echo "$as_me:$LINENO: checking for malloc_set_state" >&5 |
9670 | echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; } | |
98418dba CW |
9671 | if test "${ac_cv_func_malloc_set_state+set}" = set; then |
9672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9673 | else | |
9674 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9675 | /* confdefs.h. */ |
9676 | _ACEOF | |
9677 | cat confdefs.h >>conftest.$ac_ext | |
9678 | cat >>conftest.$ac_ext <<_ACEOF | |
9679 | /* end confdefs.h. */ | |
edfaf76d LK |
9680 | /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state. |
9681 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9682 | #define malloc_set_state innocuous_malloc_set_state | |
9683 | ||
98418dba | 9684 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
9685 | which can conflict with char malloc_set_state (); below. |
9686 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9687 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 9688 | |
19650fd6 AS |
9689 | #ifdef __STDC__ |
9690 | # include <limits.h> | |
9691 | #else | |
9692 | # include <assert.h> | |
9693 | #endif | |
edfaf76d LK |
9694 | |
9695 | #undef malloc_set_state | |
9696 | ||
ca81d7a0 JD |
9697 | /* Override any GCC internal prototype to avoid an error. |
9698 | Use char because int might match the return type of a GCC | |
9699 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
9700 | #ifdef __cplusplus |
9701 | extern "C" | |
9702 | #endif | |
98418dba | 9703 | char malloc_set_state (); |
98418dba CW |
9704 | /* The GNU C library defines this for functions which it implements |
9705 | to always fail with ENOSYS. Some functions are actually named | |
9706 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 9707 | #if defined __stub_malloc_set_state || defined __stub___malloc_set_state |
98418dba | 9708 | choke me |
98418dba CW |
9709 | #endif |
9710 | ||
19650fd6 AS |
9711 | int |
9712 | main () | |
9713 | { | |
ca81d7a0 | 9714 | return malloc_set_state (); |
98418dba CW |
9715 | ; |
9716 | return 0; | |
9717 | } | |
9718 | _ACEOF | |
9719 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
9720 | if { (ac_try="$ac_link" |
9721 | case "(($ac_try" in | |
9722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9723 | *) ac_try_echo=$ac_try;; | |
9724 | esac | |
9725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9726 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 9727 | ac_status=$? |
edfaf76d LK |
9728 | grep -v '^ *+' conftest.er1 >conftest.err |
9729 | rm -f conftest.er1 | |
9730 | cat conftest.err >&5 | |
c0d27fcc | 9731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9732 | (exit $ac_status); } && { |
9733 | test -z "$ac_c_werror_flag" || | |
9734 | test ! -s conftest.err | |
9735 | } && test -s conftest$ac_exeext && | |
9736 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
9737 | ac_cv_func_malloc_set_state=yes |
9738 | else | |
9739 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9740 | sed 's/^/| /' conftest.$ac_ext >&5 |
9741 | ||
ca81d7a0 | 9742 | ac_cv_func_malloc_set_state=no |
98418dba | 9743 | fi |
ca81d7a0 | 9744 | |
f053c89f | 9745 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 9746 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 9747 | fi |
ca81d7a0 JD |
9748 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 |
9749 | echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; } | |
98418dba CW |
9750 | if test $ac_cv_func_malloc_set_state = yes; then |
9751 | : | |
9752 | else | |
9753 | doug_lea_malloc=no | |
9754 | fi | |
9755 | ||
ca81d7a0 JD |
9756 | { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 |
9757 | echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; } | |
98418dba CW |
9758 | if test "${emacs_cv_var___after_morecore_hook+set}" = set; then |
9759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9760 | else | |
9761 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9762 | /* confdefs.h. */ |
9763 | _ACEOF | |
9764 | cat confdefs.h >>conftest.$ac_ext | |
9765 | cat >>conftest.$ac_ext <<_ACEOF | |
9766 | /* end confdefs.h. */ | |
98418dba | 9767 | extern void (* __after_morecore_hook)(); |
98418dba CW |
9768 | int |
9769 | main () | |
9770 | { | |
9771 | __after_morecore_hook = 0 | |
9772 | ; | |
9773 | return 0; | |
9774 | } | |
9775 | _ACEOF | |
9776 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
9777 | if { (ac_try="$ac_link" |
9778 | case "(($ac_try" in | |
9779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9780 | *) ac_try_echo=$ac_try;; | |
9781 | esac | |
9782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9783 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 9784 | ac_status=$? |
edfaf76d LK |
9785 | grep -v '^ *+' conftest.er1 >conftest.err |
9786 | rm -f conftest.er1 | |
9787 | cat conftest.err >&5 | |
c0d27fcc | 9788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9789 | (exit $ac_status); } && { |
9790 | test -z "$ac_c_werror_flag" || | |
9791 | test ! -s conftest.err | |
9792 | } && test -s conftest$ac_exeext && | |
9793 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
9794 | emacs_cv_var___after_morecore_hook=yes |
9795 | else | |
9796 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9797 | sed 's/^/| /' conftest.$ac_ext >&5 |
9798 | ||
ca81d7a0 | 9799 | emacs_cv_var___after_morecore_hook=no |
98418dba | 9800 | fi |
ca81d7a0 | 9801 | |
f053c89f | 9802 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 9803 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 9804 | fi |
ca81d7a0 JD |
9805 | { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 |
9806 | echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; } | |
98418dba CW |
9807 | if test $emacs_cv_var___after_morecore_hook = no; then |
9808 | doug_lea_malloc=no | |
9809 | fi | |
9810 | if test "${system_malloc}" = "yes"; then | |
9811 | GNU_MALLOC=no | |
9812 | GNU_MALLOC_reason=" | |
9813 | (The GNU allocators don't work with this system configuration.)" | |
9814 | fi | |
9815 | if test "$doug_lea_malloc" = "yes" ; then | |
9816 | if test "$GNU_MALLOC" = yes ; then | |
9817 | GNU_MALLOC_reason=" | |
9818 | (Using Doug Lea's new malloc from the GNU C Library.)" | |
9819 | fi | |
b936fae4 | 9820 | |
c0d27fcc | 9821 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9822 | #define DOUG_LEA_MALLOC 1 |
c0d27fcc | 9823 | _ACEOF |
98418dba CW |
9824 | |
9825 | fi | |
9826 | ||
9827 | if test x"${REL_ALLOC}" = x; then | |
9828 | REL_ALLOC=${GNU_MALLOC} | |
9829 | fi | |
9830 | ||
9831 | ||
c0d27fcc MR |
9832 | |
9833 | ||
9834 | for ac_header in stdlib.h unistd.h | |
98418dba CW |
9835 | do |
9836 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
9837 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9838 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9839 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9840 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba | 9841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 9842 | fi |
ca81d7a0 JD |
9843 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9844 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9845 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 9846 | else |
c0d27fcc | 9847 | # Is the header compilable? |
ca81d7a0 JD |
9848 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9849 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 9850 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
9851 | /* confdefs.h. */ |
9852 | _ACEOF | |
9853 | cat confdefs.h >>conftest.$ac_ext | |
9854 | cat >>conftest.$ac_ext <<_ACEOF | |
9855 | /* end confdefs.h. */ | |
98418dba CW |
9856 | $ac_includes_default |
9857 | #include <$ac_header> | |
9858 | _ACEOF | |
9859 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
9860 | if { (ac_try="$ac_compile" |
9861 | case "(($ac_try" in | |
9862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9863 | *) ac_try_echo=$ac_try;; | |
9864 | esac | |
9865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9866 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 9867 | ac_status=$? |
edfaf76d LK |
9868 | grep -v '^ *+' conftest.er1 >conftest.err |
9869 | rm -f conftest.er1 | |
9870 | cat conftest.err >&5 | |
c0d27fcc | 9871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9872 | (exit $ac_status); } && { |
9873 | test -z "$ac_c_werror_flag" || | |
9874 | test ! -s conftest.err | |
9875 | } && test -s conftest.$ac_objext; then | |
c0d27fcc | 9876 | ac_header_compiler=yes |
98418dba CW |
9877 | else |
9878 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9879 | sed 's/^/| /' conftest.$ac_ext >&5 |
9880 | ||
ca81d7a0 | 9881 | ac_header_compiler=no |
98418dba | 9882 | fi |
ca81d7a0 JD |
9883 | |
9884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9885 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9886 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
98418dba | 9887 | |
c0d27fcc | 9888 | # Is the header present? |
ca81d7a0 JD |
9889 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9890 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 9891 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
9892 | /* confdefs.h. */ |
9893 | _ACEOF | |
9894 | cat confdefs.h >>conftest.$ac_ext | |
9895 | cat >>conftest.$ac_ext <<_ACEOF | |
9896 | /* end confdefs.h. */ | |
98418dba CW |
9897 | #include <$ac_header> |
9898 | _ACEOF | |
ca81d7a0 JD |
9899 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9900 | case "(($ac_try" in | |
9901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9902 | *) ac_try_echo=$ac_try;; | |
9903 | esac | |
9904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9905 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 9906 | ac_status=$? |
6bae0ccf | 9907 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
9908 | rm -f conftest.er1 |
9909 | cat conftest.err >&5 | |
c0d27fcc | 9910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9911 | (exit $ac_status); } >/dev/null && { |
9912 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9913 | test ! -s conftest.err | |
9914 | }; then | |
c0d27fcc | 9915 | ac_header_preproc=yes |
98418dba CW |
9916 | else |
9917 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9918 | sed 's/^/| /' conftest.$ac_ext >&5 |
9919 | ||
c0d27fcc | 9920 | ac_header_preproc=no |
98418dba | 9921 | fi |
ca81d7a0 | 9922 | |
98418dba | 9923 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
9924 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9925 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
9926 | |
9927 | # So? What about this header? | |
edfaf76d LK |
9928 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9929 | yes:no: ) | |
c0d27fcc MR |
9930 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9931 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
9932 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9933 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9934 | ac_header_preproc=yes | |
9935 | ;; | |
9936 | no:yes:* ) | |
9937 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9938 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9939 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9940 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9941 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9942 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9943 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9944 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7c9e5167 JD |
9945 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9946 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
9947 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9948 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 9949 | |
19650fd6 | 9950 | ;; |
c0d27fcc | 9951 | esac |
ca81d7a0 JD |
9952 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9953 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9954 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
9955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9956 | else | |
edfaf76d | 9957 | eval "$as_ac_Header=\$ac_header_preproc" |
98418dba | 9958 | fi |
ca81d7a0 JD |
9959 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9960 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9961 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
9962 | |
9963 | fi | |
98418dba | 9964 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 9965 | cat >>confdefs.h <<_ACEOF |
98418dba | 9966 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 9967 | _ACEOF |
98418dba CW |
9968 | |
9969 | fi | |
c0d27fcc | 9970 | |
98418dba CW |
9971 | done |
9972 | ||
c0d27fcc | 9973 | |
98418dba CW |
9974 | for ac_func in getpagesize |
9975 | do | |
9976 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
9977 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9978 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
9979 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba CW |
9980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9981 | else | |
9982 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9983 | /* confdefs.h. */ |
9984 | _ACEOF | |
9985 | cat confdefs.h >>conftest.$ac_ext | |
9986 | cat >>conftest.$ac_ext <<_ACEOF | |
9987 | /* end confdefs.h. */ | |
edfaf76d LK |
9988 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9989 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9990 | #define $ac_func innocuous_$ac_func | |
9991 | ||
98418dba | 9992 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
9993 | which can conflict with char $ac_func (); below. |
9994 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9995 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 9996 | |
19650fd6 AS |
9997 | #ifdef __STDC__ |
9998 | # include <limits.h> | |
9999 | #else | |
10000 | # include <assert.h> | |
10001 | #endif | |
edfaf76d LK |
10002 | |
10003 | #undef $ac_func | |
10004 | ||
ca81d7a0 JD |
10005 | /* Override any GCC internal prototype to avoid an error. |
10006 | Use char because int might match the return type of a GCC | |
10007 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
10008 | #ifdef __cplusplus |
10009 | extern "C" | |
10010 | #endif | |
98418dba | 10011 | char $ac_func (); |
98418dba CW |
10012 | /* The GNU C library defines this for functions which it implements |
10013 | to always fail with ENOSYS. Some functions are actually named | |
10014 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 10015 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 10016 | choke me |
98418dba CW |
10017 | #endif |
10018 | ||
19650fd6 AS |
10019 | int |
10020 | main () | |
10021 | { | |
ca81d7a0 | 10022 | return $ac_func (); |
98418dba CW |
10023 | ; |
10024 | return 0; | |
10025 | } | |
10026 | _ACEOF | |
10027 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10028 | if { (ac_try="$ac_link" |
10029 | case "(($ac_try" in | |
10030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10031 | *) ac_try_echo=$ac_try;; | |
10032 | esac | |
10033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10034 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10035 | ac_status=$? |
edfaf76d LK |
10036 | grep -v '^ *+' conftest.er1 >conftest.err |
10037 | rm -f conftest.er1 | |
10038 | cat conftest.err >&5 | |
c0d27fcc | 10039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10040 | (exit $ac_status); } && { |
10041 | test -z "$ac_c_werror_flag" || | |
10042 | test ! -s conftest.err | |
10043 | } && test -s conftest$ac_exeext && | |
10044 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10045 | eval "$as_ac_var=yes" |
10046 | else | |
10047 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10048 | sed 's/^/| /' conftest.$ac_ext >&5 |
10049 | ||
ca81d7a0 | 10050 | eval "$as_ac_var=no" |
98418dba | 10051 | fi |
ca81d7a0 | 10052 | |
f053c89f | 10053 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10054 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 10055 | fi |
ca81d7a0 JD |
10056 | ac_res=`eval echo '${'$as_ac_var'}'` |
10057 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10058 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 10059 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 10060 | cat >>confdefs.h <<_ACEOF |
98418dba | 10061 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 10062 | _ACEOF |
98418dba CW |
10063 | |
10064 | fi | |
10065 | done | |
10066 | ||
ca81d7a0 JD |
10067 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
10068 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
98418dba CW |
10069 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
10070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10071 | else | |
10072 | if test "$cross_compiling" = yes; then | |
10073 | ac_cv_func_mmap_fixed_mapped=no | |
10074 | else | |
10075 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10076 | /* confdefs.h. */ |
10077 | _ACEOF | |
10078 | cat confdefs.h >>conftest.$ac_ext | |
10079 | cat >>conftest.$ac_ext <<_ACEOF | |
10080 | /* end confdefs.h. */ | |
98418dba | 10081 | $ac_includes_default |
c0d27fcc MR |
10082 | /* malloc might have been renamed as rpl_malloc. */ |
10083 | #undef malloc | |
10084 | ||
98418dba CW |
10085 | /* Thanks to Mike Haertel and Jim Avera for this test. |
10086 | Here is a matrix of mmap possibilities: | |
10087 | mmap private not fixed | |
10088 | mmap private fixed at somewhere currently unmapped | |
10089 | mmap private fixed at somewhere already mapped | |
10090 | mmap shared not fixed | |
10091 | mmap shared fixed at somewhere currently unmapped | |
10092 | mmap shared fixed at somewhere already mapped | |
10093 | For private mappings, we should verify that changes cannot be read() | |
10094 | back from the file, nor mmap's back from the file at a different | |
10095 | address. (There have been systems where private was not correctly | |
10096 | implemented like the infamous i386 svr4.0, and systems where the | |
10097 | VM page cache was not coherent with the file system buffer cache | |
10098 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
10099 | For shared mappings, we should conversely verify that changes get | |
c0d27fcc | 10100 | propagated back to all the places they're supposed to be. |
98418dba CW |
10101 | |
10102 | Grep wants private fixed already mapped. | |
10103 | The main things grep needs to know about mmap are: | |
10104 | * does it exist and is it safe to write into the mmap'd area | |
10105 | * how to use it (BSD variants) */ | |
10106 | ||
10107 | #include <fcntl.h> | |
10108 | #include <sys/mman.h> | |
10109 | ||
f053c89f | 10110 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
98418dba CW |
10111 | char *malloc (); |
10112 | #endif | |
10113 | ||
10114 | /* This mess was copied from the GNU getpagesize.h. */ | |
f053c89f | 10115 | #ifndef HAVE_GETPAGESIZE |
98418dba | 10116 | /* Assume that all systems that can run configure have sys/param.h. */ |
f053c89f | 10117 | # ifndef HAVE_SYS_PARAM_H |
98418dba CW |
10118 | # define HAVE_SYS_PARAM_H 1 |
10119 | # endif | |
10120 | ||
10121 | # ifdef _SC_PAGESIZE | |
10122 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
10123 | # else /* no _SC_PAGESIZE */ | |
f053c89f | 10124 | # ifdef HAVE_SYS_PARAM_H |
98418dba CW |
10125 | # include <sys/param.h> |
10126 | # ifdef EXEC_PAGESIZE | |
10127 | # define getpagesize() EXEC_PAGESIZE | |
10128 | # else /* no EXEC_PAGESIZE */ | |
10129 | # ifdef NBPG | |
10130 | # define getpagesize() NBPG * CLSIZE | |
10131 | # ifndef CLSIZE | |
10132 | # define CLSIZE 1 | |
10133 | # endif /* no CLSIZE */ | |
10134 | # else /* no NBPG */ | |
10135 | # ifdef NBPC | |
10136 | # define getpagesize() NBPC | |
10137 | # else /* no NBPC */ | |
10138 | # ifdef PAGESIZE | |
10139 | # define getpagesize() PAGESIZE | |
10140 | # endif /* PAGESIZE */ | |
10141 | # endif /* no NBPC */ | |
10142 | # endif /* no NBPG */ | |
10143 | # endif /* no EXEC_PAGESIZE */ | |
10144 | # else /* no HAVE_SYS_PARAM_H */ | |
10145 | # define getpagesize() 8192 /* punt totally */ | |
10146 | # endif /* no HAVE_SYS_PARAM_H */ | |
10147 | # endif /* no _SC_PAGESIZE */ | |
10148 | ||
10149 | #endif /* no HAVE_GETPAGESIZE */ | |
10150 | ||
10151 | int | |
10152 | main () | |
10153 | { | |
10154 | char *data, *data2, *data3; | |
10155 | int i, pagesize; | |
10156 | int fd; | |
10157 | ||
10158 | pagesize = getpagesize (); | |
10159 | ||
10160 | /* First, make a file with some known garbage in it. */ | |
10161 | data = (char *) malloc (pagesize); | |
10162 | if (!data) | |
ca81d7a0 | 10163 | return 1; |
98418dba CW |
10164 | for (i = 0; i < pagesize; ++i) |
10165 | *(data + i) = rand (); | |
10166 | umask (0); | |
10167 | fd = creat ("conftest.mmap", 0600); | |
10168 | if (fd < 0) | |
ca81d7a0 | 10169 | return 1; |
98418dba | 10170 | if (write (fd, data, pagesize) != pagesize) |
ca81d7a0 | 10171 | return 1; |
98418dba CW |
10172 | close (fd); |
10173 | ||
10174 | /* Next, try to mmap the file at a fixed address which already has | |
10175 | something else allocated at it. If we can, also make sure that | |
10176 | we see the same garbage. */ | |
10177 | fd = open ("conftest.mmap", O_RDWR); | |
10178 | if (fd < 0) | |
ca81d7a0 | 10179 | return 1; |
98418dba CW |
10180 | data2 = (char *) malloc (2 * pagesize); |
10181 | if (!data2) | |
ca81d7a0 JD |
10182 | return 1; |
10183 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
98418dba | 10184 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
edfaf76d | 10185 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
ca81d7a0 | 10186 | return 1; |
98418dba CW |
10187 | for (i = 0; i < pagesize; ++i) |
10188 | if (*(data + i) != *(data2 + i)) | |
ca81d7a0 | 10189 | return 1; |
98418dba CW |
10190 | |
10191 | /* Finally, make sure that changes to the mapped area do not | |
10192 | percolate back to the file as seen by read(). (This is a bug on | |
10193 | some variants of i386 svr4.0.) */ | |
10194 | for (i = 0; i < pagesize; ++i) | |
10195 | *(data2 + i) = *(data2 + i) + 1; | |
10196 | data3 = (char *) malloc (pagesize); | |
10197 | if (!data3) | |
ca81d7a0 | 10198 | return 1; |
98418dba | 10199 | if (read (fd, data3, pagesize) != pagesize) |
ca81d7a0 | 10200 | return 1; |
98418dba CW |
10201 | for (i = 0; i < pagesize; ++i) |
10202 | if (*(data + i) != *(data3 + i)) | |
ca81d7a0 | 10203 | return 1; |
98418dba | 10204 | close (fd); |
ca81d7a0 | 10205 | return 0; |
98418dba CW |
10206 | } |
10207 | _ACEOF | |
10208 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
10209 | if { (ac_try="$ac_link" |
10210 | case "(($ac_try" in | |
10211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10212 | *) ac_try_echo=$ac_try;; | |
10213 | esac | |
10214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10215 | (eval "$ac_link") 2>&5 | |
98418dba | 10216 | ac_status=$? |
c0d27fcc | 10217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10218 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
10219 | { (case "(($ac_try" in |
10220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10221 | *) ac_try_echo=$ac_try;; | |
10222 | esac | |
10223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10224 | (eval "$ac_try") 2>&5 | |
98418dba | 10225 | ac_status=$? |
c0d27fcc | 10226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10227 | (exit $ac_status); }; }; then |
10228 | ac_cv_func_mmap_fixed_mapped=yes | |
10229 | else | |
10230 | echo "$as_me: program exited with status $ac_status" >&5 | |
10231 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10232 | sed 's/^/| /' conftest.$ac_ext >&5 |
10233 | ||
c0d27fcc | 10234 | ( exit $ac_status ) |
98418dba CW |
10235 | ac_cv_func_mmap_fixed_mapped=no |
10236 | fi | |
ca81d7a0 | 10237 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
98418dba | 10238 | fi |
ca81d7a0 JD |
10239 | |
10240 | ||
98418dba | 10241 | fi |
ca81d7a0 JD |
10242 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
10243 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
98418dba CW |
10244 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
10245 | ||
c0d27fcc | 10246 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10247 | #define HAVE_MMAP 1 |
c0d27fcc | 10248 | _ACEOF |
98418dba CW |
10249 | |
10250 | fi | |
10251 | rm -f conftest.mmap | |
10252 | ||
10253 | if test $use_mmap_for_buffers = yes; then | |
10254 | REL_ALLOC=no | |
10255 | fi | |
10256 | ||
10257 | LIBS="$libsrc_libs $LIBS" | |
10258 | ||
c0d27fcc | 10259 | |
ca81d7a0 JD |
10260 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
10261 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } | |
98418dba CW |
10262 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
10263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10264 | else | |
10265 | ac_check_lib_save_LIBS=$LIBS | |
10266 | LIBS="-ldnet $LIBS" | |
10267 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10268 | /* confdefs.h. */ |
10269 | _ACEOF | |
10270 | cat confdefs.h >>conftest.$ac_ext | |
10271 | cat >>conftest.$ac_ext <<_ACEOF | |
10272 | /* end confdefs.h. */ | |
98418dba | 10273 | |
ca81d7a0 JD |
10274 | /* Override any GCC internal prototype to avoid an error. |
10275 | Use char because int might match the return type of a GCC | |
10276 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
10277 | #ifdef __cplusplus |
10278 | extern "C" | |
10279 | #endif | |
98418dba | 10280 | char dnet_ntoa (); |
98418dba CW |
10281 | int |
10282 | main () | |
10283 | { | |
ca81d7a0 | 10284 | return dnet_ntoa (); |
98418dba CW |
10285 | ; |
10286 | return 0; | |
10287 | } | |
10288 | _ACEOF | |
10289 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10290 | if { (ac_try="$ac_link" |
10291 | case "(($ac_try" in | |
10292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10293 | *) ac_try_echo=$ac_try;; | |
10294 | esac | |
10295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10296 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10297 | ac_status=$? |
edfaf76d LK |
10298 | grep -v '^ *+' conftest.er1 >conftest.err |
10299 | rm -f conftest.er1 | |
10300 | cat conftest.err >&5 | |
c0d27fcc | 10301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10302 | (exit $ac_status); } && { |
10303 | test -z "$ac_c_werror_flag" || | |
10304 | test ! -s conftest.err | |
10305 | } && test -s conftest$ac_exeext && | |
10306 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10307 | ac_cv_lib_dnet_dnet_ntoa=yes |
10308 | else | |
10309 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10310 | sed 's/^/| /' conftest.$ac_ext >&5 |
10311 | ||
ca81d7a0 | 10312 | ac_cv_lib_dnet_dnet_ntoa=no |
98418dba | 10313 | fi |
ca81d7a0 | 10314 | |
f053c89f | 10315 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10316 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10317 | LIBS=$ac_check_lib_save_LIBS |
10318 | fi | |
ca81d7a0 JD |
10319 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
10320 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } | |
98418dba | 10321 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
c0d27fcc | 10322 | cat >>confdefs.h <<_ACEOF |
98418dba | 10323 | #define HAVE_LIBDNET 1 |
c0d27fcc | 10324 | _ACEOF |
98418dba CW |
10325 | |
10326 | LIBS="-ldnet $LIBS" | |
10327 | ||
10328 | fi | |
10329 | ||
c0d27fcc | 10330 | |
ca81d7a0 JD |
10331 | { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 |
10332 | echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; } | |
98418dba CW |
10333 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then |
10334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10335 | else | |
10336 | ac_check_lib_save_LIBS=$LIBS | |
10337 | LIBS="-lXbsd $LIBS" | |
10338 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10339 | /* confdefs.h. */ |
10340 | _ACEOF | |
10341 | cat confdefs.h >>conftest.$ac_ext | |
10342 | cat >>conftest.$ac_ext <<_ACEOF | |
10343 | /* end confdefs.h. */ | |
98418dba | 10344 | |
c0d27fcc | 10345 | |
98418dba CW |
10346 | int |
10347 | main () | |
10348 | { | |
ca81d7a0 | 10349 | return main (); |
98418dba CW |
10350 | ; |
10351 | return 0; | |
10352 | } | |
10353 | _ACEOF | |
10354 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10355 | if { (ac_try="$ac_link" |
10356 | case "(($ac_try" in | |
10357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10358 | *) ac_try_echo=$ac_try;; | |
10359 | esac | |
10360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10361 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10362 | ac_status=$? |
edfaf76d LK |
10363 | grep -v '^ *+' conftest.er1 >conftest.err |
10364 | rm -f conftest.er1 | |
10365 | cat conftest.err >&5 | |
c0d27fcc | 10366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10367 | (exit $ac_status); } && { |
10368 | test -z "$ac_c_werror_flag" || | |
10369 | test ! -s conftest.err | |
10370 | } && test -s conftest$ac_exeext && | |
10371 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10372 | ac_cv_lib_Xbsd_main=yes |
10373 | else | |
10374 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10375 | sed 's/^/| /' conftest.$ac_ext >&5 |
10376 | ||
ca81d7a0 | 10377 | ac_cv_lib_Xbsd_main=no |
98418dba | 10378 | fi |
ca81d7a0 | 10379 | |
f053c89f | 10380 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10381 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10382 | LIBS=$ac_check_lib_save_LIBS |
10383 | fi | |
ca81d7a0 JD |
10384 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 |
10385 | echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; } | |
98418dba CW |
10386 | if test $ac_cv_lib_Xbsd_main = yes; then |
10387 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
10388 | fi | |
10389 | ||
c0d27fcc MR |
10390 | |
10391 | ||
ca81d7a0 JD |
10392 | { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5 |
10393 | echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; } | |
98418dba CW |
10394 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then |
10395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10396 | else | |
10397 | ac_check_lib_save_LIBS=$LIBS | |
10398 | LIBS="-lpthreads $LIBS" | |
10399 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10400 | /* confdefs.h. */ |
10401 | _ACEOF | |
10402 | cat confdefs.h >>conftest.$ac_ext | |
10403 | cat >>conftest.$ac_ext <<_ACEOF | |
10404 | /* end confdefs.h. */ | |
98418dba | 10405 | |
ca81d7a0 JD |
10406 | /* Override any GCC internal prototype to avoid an error. |
10407 | Use char because int might match the return type of a GCC | |
10408 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
10409 | #ifdef __cplusplus |
10410 | extern "C" | |
10411 | #endif | |
98418dba | 10412 | char cma_open (); |
98418dba CW |
10413 | int |
10414 | main () | |
10415 | { | |
ca81d7a0 | 10416 | return cma_open (); |
98418dba CW |
10417 | ; |
10418 | return 0; | |
10419 | } | |
10420 | _ACEOF | |
10421 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10422 | if { (ac_try="$ac_link" |
10423 | case "(($ac_try" in | |
10424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10425 | *) ac_try_echo=$ac_try;; | |
10426 | esac | |
10427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10428 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10429 | ac_status=$? |
edfaf76d LK |
10430 | grep -v '^ *+' conftest.er1 >conftest.err |
10431 | rm -f conftest.er1 | |
10432 | cat conftest.err >&5 | |
c0d27fcc | 10433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10434 | (exit $ac_status); } && { |
10435 | test -z "$ac_c_werror_flag" || | |
10436 | test ! -s conftest.err | |
10437 | } && test -s conftest$ac_exeext && | |
10438 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10439 | ac_cv_lib_pthreads_cma_open=yes |
10440 | else | |
10441 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10442 | sed 's/^/| /' conftest.$ac_ext >&5 |
10443 | ||
ca81d7a0 | 10444 | ac_cv_lib_pthreads_cma_open=no |
98418dba | 10445 | fi |
ca81d7a0 | 10446 | |
f053c89f | 10447 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10448 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10449 | LIBS=$ac_check_lib_save_LIBS |
10450 | fi | |
ca81d7a0 JD |
10451 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 |
10452 | echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; } | |
98418dba | 10453 | if test $ac_cv_lib_pthreads_cma_open = yes; then |
c0d27fcc | 10454 | cat >>confdefs.h <<_ACEOF |
98418dba | 10455 | #define HAVE_LIBPTHREADS 1 |
c0d27fcc | 10456 | _ACEOF |
98418dba CW |
10457 | |
10458 | LIBS="-lpthreads $LIBS" | |
10459 | ||
10460 | fi | |
10461 | ||
c0d27fcc | 10462 | |
ca81d7a0 JD |
10463 | { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5 |
10464 | echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; } | |
98418dba CW |
10465 | if test -d /usr/X386/include; then |
10466 | HAVE_XFREE386=yes | |
10467 | : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
10468 | else | |
10469 | HAVE_XFREE386=no | |
10470 | fi | |
ca81d7a0 JD |
10471 | { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5 |
10472 | echo "${ECHO_T}$HAVE_XFREE386" >&6; } | |
98418dba | 10473 | |
55597d70 DL |
10474 | |
10475 | case ${host_os} in | |
10476 | aix*) | |
ca81d7a0 JD |
10477 | { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
10478 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; } | |
55597d70 DL |
10479 | if test "${gdb_cv_bigtoc+set}" = set; then |
10480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10481 | else | |
10482 | ||
10483 | case $GCC in | |
10484 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
10485 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
10486 | esac | |
10487 | ||
10488 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
10489 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10490 | /* confdefs.h. */ |
10491 | _ACEOF | |
10492 | cat confdefs.h >>conftest.$ac_ext | |
10493 | cat >>conftest.$ac_ext <<_ACEOF | |
10494 | /* end confdefs.h. */ | |
55597d70 DL |
10495 | |
10496 | int | |
10497 | main () | |
10498 | { | |
10499 | int i; | |
10500 | ; | |
10501 | return 0; | |
10502 | } | |
10503 | _ACEOF | |
10504 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10505 | if { (ac_try="$ac_link" |
10506 | case "(($ac_try" in | |
10507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10508 | *) ac_try_echo=$ac_try;; | |
10509 | esac | |
10510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10511 | (eval "$ac_link") 2>conftest.er1 | |
55597d70 | 10512 | ac_status=$? |
edfaf76d LK |
10513 | grep -v '^ *+' conftest.er1 >conftest.err |
10514 | rm -f conftest.er1 | |
10515 | cat conftest.err >&5 | |
55597d70 | 10516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10517 | (exit $ac_status); } && { |
10518 | test -z "$ac_c_werror_flag" || | |
10519 | test ! -s conftest.err | |
10520 | } && test -s conftest$ac_exeext && | |
10521 | $as_test_x conftest$ac_exeext; then | |
55597d70 DL |
10522 | : |
10523 | else | |
10524 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10525 | sed 's/^/| /' conftest.$ac_ext >&5 |
10526 | ||
ca81d7a0 | 10527 | gdb_cv_bigtoc= |
55597d70 | 10528 | fi |
ca81d7a0 | 10529 | |
f053c89f | 10530 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10531 | conftest$ac_exeext conftest.$ac_ext |
55597d70 DL |
10532 | |
10533 | fi | |
ca81d7a0 JD |
10534 | { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
10535 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6; } | |
55597d70 DL |
10536 | ;; |
10537 | esac | |
10538 | ||
ae1a998c RS |
10539 | # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
10540 | # used for the tests that follow. We set them back to REAL_CFLAGS and | |
10541 | # REAL_CPPFLAGS later on. | |
98418dba CW |
10542 | |
10543 | REAL_CPPFLAGS="$CPPFLAGS" | |
10544 | ||
10545 | if test "${HAVE_X11}" = "yes"; then | |
10546 | DEFS="$C_SWITCH_X_SITE $DEFS" | |
10547 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
10548 | LIBS="$LIBX $LIBS" | |
10549 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
10550 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" | |
10551 | ||
10552 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
10553 | # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
10554 | # but it's more convenient here to set LD_RUN_PATH | |
10555 | # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
10556 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
10557 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
10558 | export LD_RUN_PATH | |
10559 | fi | |
10560 | ||
10561 | if test "${opsys}" = "gnu-linux"; then | |
ca81d7a0 JD |
10562 | { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 |
10563 | echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; } | |
98418dba | 10564 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10565 | /* confdefs.h. */ |
10566 | _ACEOF | |
10567 | cat confdefs.h >>conftest.$ac_ext | |
10568 | cat >>conftest.$ac_ext <<_ACEOF | |
10569 | /* end confdefs.h. */ | |
98418dba | 10570 | |
98418dba CW |
10571 | int |
10572 | main () | |
10573 | { | |
10574 | XOpenDisplay ("foo"); | |
10575 | ; | |
10576 | return 0; | |
10577 | } | |
10578 | _ACEOF | |
10579 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10580 | if { (ac_try="$ac_link" |
10581 | case "(($ac_try" in | |
10582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10583 | *) ac_try_echo=$ac_try;; | |
10584 | esac | |
10585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10586 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10587 | ac_status=$? |
edfaf76d LK |
10588 | grep -v '^ *+' conftest.er1 >conftest.err |
10589 | rm -f conftest.er1 | |
10590 | cat conftest.err >&5 | |
c0d27fcc | 10591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10592 | (exit $ac_status); } && { |
10593 | test -z "$ac_c_werror_flag" || | |
10594 | test ! -s conftest.err | |
10595 | } && test -s conftest$ac_exeext && | |
10596 | $as_test_x conftest$ac_exeext; then | |
35996d22 | 10597 | xlinux_first_failure=no |
98418dba CW |
10598 | else |
10599 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10600 | sed 's/^/| /' conftest.$ac_ext >&5 |
10601 | ||
ca81d7a0 | 10602 | xlinux_first_failure=yes |
98418dba | 10603 | fi |
ca81d7a0 | 10604 | |
f053c89f | 10605 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10606 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10607 | if test "${xlinux_first_failure}" = "yes"; then |
10608 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
10609 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
10610 | OLD_CPPFLAGS="$CPPFLAGS" | |
10611 | OLD_LIBS="$LIBS" | |
10612 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
10613 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
10614 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
10615 | LIBS="$LIBS -b i486-linuxaout" | |
10616 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10617 | /* confdefs.h. */ |
10618 | _ACEOF | |
10619 | cat confdefs.h >>conftest.$ac_ext | |
10620 | cat >>conftest.$ac_ext <<_ACEOF | |
10621 | /* end confdefs.h. */ | |
98418dba | 10622 | |
98418dba CW |
10623 | int |
10624 | main () | |
10625 | { | |
10626 | XOpenDisplay ("foo"); | |
10627 | ; | |
10628 | return 0; | |
10629 | } | |
10630 | _ACEOF | |
10631 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10632 | if { (ac_try="$ac_link" |
10633 | case "(($ac_try" in | |
10634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10635 | *) ac_try_echo=$ac_try;; | |
10636 | esac | |
10637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10638 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10639 | ac_status=$? |
edfaf76d LK |
10640 | grep -v '^ *+' conftest.er1 >conftest.err |
10641 | rm -f conftest.er1 | |
10642 | cat conftest.err >&5 | |
c0d27fcc | 10643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10644 | (exit $ac_status); } && { |
10645 | test -z "$ac_c_werror_flag" || | |
10646 | test ! -s conftest.err | |
10647 | } && test -s conftest$ac_exeext && | |
10648 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10649 | xlinux_second_failure=no |
10650 | else | |
10651 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10652 | sed 's/^/| /' conftest.$ac_ext >&5 |
10653 | ||
ca81d7a0 | 10654 | xlinux_second_failure=yes |
98418dba | 10655 | fi |
ca81d7a0 | 10656 | |
f053c89f | 10657 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10658 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10659 | if test "${xlinux_second_failure}" = "yes"; then |
10660 | # If we get the same failure with -b, there is no use adding -b. | |
10661 | # So take it out. This plays safe. | |
10662 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
10663 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
10664 | CPPFLAGS="$OLD_CPPFLAGS" | |
10665 | LIBS="$OLD_LIBS" | |
ca81d7a0 JD |
10666 | { echo "$as_me:$LINENO: result: no" >&5 |
10667 | echo "${ECHO_T}no" >&6; } | |
98418dba | 10668 | else |
ca81d7a0 JD |
10669 | { echo "$as_me:$LINENO: result: yes" >&5 |
10670 | echo "${ECHO_T}yes" >&6; } | |
98418dba CW |
10671 | fi |
10672 | else | |
ca81d7a0 JD |
10673 | { echo "$as_me:$LINENO: result: no" >&5 |
10674 | echo "${ECHO_T}no" >&6; } | |
98418dba CW |
10675 | fi |
10676 | fi | |
10677 | ||
10678 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing | |
10679 | # header files included from there. | |
ca81d7a0 JD |
10680 | { echo "$as_me:$LINENO: checking for Xkb" >&5 |
10681 | echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; } | |
98418dba | 10682 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10683 | /* confdefs.h. */ |
10684 | _ACEOF | |
10685 | cat confdefs.h >>conftest.$ac_ext | |
10686 | cat >>conftest.$ac_ext <<_ACEOF | |
10687 | /* end confdefs.h. */ | |
98418dba CW |
10688 | #include <X11/Xlib.h> |
10689 | #include <X11/XKBlib.h> | |
98418dba CW |
10690 | int |
10691 | main () | |
10692 | { | |
10693 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | |
10694 | ; | |
10695 | return 0; | |
10696 | } | |
10697 | _ACEOF | |
10698 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10699 | if { (ac_try="$ac_link" |
10700 | case "(($ac_try" in | |
10701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10702 | *) ac_try_echo=$ac_try;; | |
10703 | esac | |
10704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10705 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10706 | ac_status=$? |
edfaf76d LK |
10707 | grep -v '^ *+' conftest.er1 >conftest.err |
10708 | rm -f conftest.er1 | |
10709 | cat conftest.err >&5 | |
c0d27fcc | 10710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10711 | (exit $ac_status); } && { |
10712 | test -z "$ac_c_werror_flag" || | |
10713 | test ! -s conftest.err | |
10714 | } && test -s conftest$ac_exeext && | |
10715 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10716 | emacs_xkb=yes |
10717 | else | |
10718 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10719 | sed 's/^/| /' conftest.$ac_ext >&5 |
10720 | ||
ca81d7a0 | 10721 | emacs_xkb=no |
98418dba | 10722 | fi |
ca81d7a0 | 10723 | |
f053c89f | 10724 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10725 | conftest$ac_exeext conftest.$ac_ext |
ca81d7a0 JD |
10726 | { echo "$as_me:$LINENO: result: $emacs_xkb" >&5 |
10727 | echo "${ECHO_T}$emacs_xkb" >&6; } | |
98418dba | 10728 | if test $emacs_xkb = yes; then |
b936fae4 | 10729 | |
c0d27fcc | 10730 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10731 | #define HAVE_XKBGETKEYBOARD 1 |
c0d27fcc | 10732 | _ACEOF |
98418dba CW |
10733 | |
10734 | fi | |
10735 | ||
c0d27fcc MR |
10736 | |
10737 | ||
10738 | ||
10739 | ||
98418dba CW |
10740 | for ac_func in XrmSetDatabase XScreenResourceString \ |
10741 | XScreenNumberOfScreen XSetWMProtocols | |
10742 | do | |
10743 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
10744 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10745 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10746 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba CW |
10747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10748 | else | |
10749 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10750 | /* confdefs.h. */ |
10751 | _ACEOF | |
10752 | cat confdefs.h >>conftest.$ac_ext | |
10753 | cat >>conftest.$ac_ext <<_ACEOF | |
10754 | /* end confdefs.h. */ | |
edfaf76d LK |
10755 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10756 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10757 | #define $ac_func innocuous_$ac_func | |
10758 | ||
98418dba | 10759 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
10760 | which can conflict with char $ac_func (); below. |
10761 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10762 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 10763 | |
19650fd6 AS |
10764 | #ifdef __STDC__ |
10765 | # include <limits.h> | |
10766 | #else | |
10767 | # include <assert.h> | |
10768 | #endif | |
edfaf76d LK |
10769 | |
10770 | #undef $ac_func | |
10771 | ||
ca81d7a0 JD |
10772 | /* Override any GCC internal prototype to avoid an error. |
10773 | Use char because int might match the return type of a GCC | |
10774 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
10775 | #ifdef __cplusplus |
10776 | extern "C" | |
10777 | #endif | |
98418dba | 10778 | char $ac_func (); |
98418dba CW |
10779 | /* The GNU C library defines this for functions which it implements |
10780 | to always fail with ENOSYS. Some functions are actually named | |
10781 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 10782 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 10783 | choke me |
98418dba CW |
10784 | #endif |
10785 | ||
19650fd6 AS |
10786 | int |
10787 | main () | |
10788 | { | |
ca81d7a0 | 10789 | return $ac_func (); |
98418dba CW |
10790 | ; |
10791 | return 0; | |
10792 | } | |
10793 | _ACEOF | |
10794 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10795 | if { (ac_try="$ac_link" |
10796 | case "(($ac_try" in | |
10797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10798 | *) ac_try_echo=$ac_try;; | |
10799 | esac | |
10800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10801 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10802 | ac_status=$? |
edfaf76d LK |
10803 | grep -v '^ *+' conftest.er1 >conftest.err |
10804 | rm -f conftest.er1 | |
10805 | cat conftest.err >&5 | |
c0d27fcc | 10806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10807 | (exit $ac_status); } && { |
10808 | test -z "$ac_c_werror_flag" || | |
10809 | test ! -s conftest.err | |
10810 | } && test -s conftest$ac_exeext && | |
10811 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10812 | eval "$as_ac_var=yes" |
10813 | else | |
10814 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10815 | sed 's/^/| /' conftest.$ac_ext >&5 |
10816 | ||
ca81d7a0 | 10817 | eval "$as_ac_var=no" |
98418dba | 10818 | fi |
ca81d7a0 | 10819 | |
f053c89f | 10820 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10821 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 10822 | fi |
ca81d7a0 JD |
10823 | ac_res=`eval echo '${'$as_ac_var'}'` |
10824 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10825 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 10826 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 10827 | cat >>confdefs.h <<_ACEOF |
98418dba | 10828 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 10829 | _ACEOF |
98418dba CW |
10830 | |
10831 | fi | |
10832 | done | |
10833 | ||
10834 | fi | |
10835 | ||
10836 | if test "${window_system}" = "x11"; then | |
ca81d7a0 JD |
10837 | { echo "$as_me:$LINENO: checking X11 version 6" >&5 |
10838 | echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; } | |
98418dba CW |
10839 | if test "${emacs_cv_x11_version_6+set}" = set; then |
10840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10841 | else | |
10842 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10843 | /* confdefs.h. */ |
10844 | _ACEOF | |
10845 | cat confdefs.h >>conftest.$ac_ext | |
10846 | cat >>conftest.$ac_ext <<_ACEOF | |
10847 | /* end confdefs.h. */ | |
98418dba | 10848 | #include <X11/Xlib.h> |
98418dba CW |
10849 | int |
10850 | main () | |
10851 | { | |
10852 | #if XlibSpecificationRelease < 6 | |
10853 | fail; | |
10854 | #endif | |
10855 | ||
10856 | ; | |
10857 | return 0; | |
10858 | } | |
10859 | _ACEOF | |
10860 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10861 | if { (ac_try="$ac_link" |
10862 | case "(($ac_try" in | |
10863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10864 | *) ac_try_echo=$ac_try;; | |
10865 | esac | |
10866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10867 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10868 | ac_status=$? |
edfaf76d LK |
10869 | grep -v '^ *+' conftest.er1 >conftest.err |
10870 | rm -f conftest.er1 | |
10871 | cat conftest.err >&5 | |
c0d27fcc | 10872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10873 | (exit $ac_status); } && { |
10874 | test -z "$ac_c_werror_flag" || | |
10875 | test ! -s conftest.err | |
10876 | } && test -s conftest$ac_exeext && | |
10877 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10878 | emacs_cv_x11_version_6=yes |
10879 | else | |
10880 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10881 | sed 's/^/| /' conftest.$ac_ext >&5 |
10882 | ||
ca81d7a0 | 10883 | emacs_cv_x11_version_6=no |
98418dba | 10884 | fi |
ca81d7a0 | 10885 | |
f053c89f | 10886 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10887 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10888 | fi |
10889 | ||
10890 | if test $emacs_cv_x11_version_6 = yes; then | |
ca81d7a0 JD |
10891 | { echo "$as_me:$LINENO: result: 6 or newer" >&5 |
10892 | echo "${ECHO_T}6 or newer" >&6; } | |
b936fae4 | 10893 | |
c0d27fcc | 10894 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10895 | #define HAVE_X11R6 1 |
c0d27fcc | 10896 | _ACEOF |
98418dba CW |
10897 | |
10898 | else | |
ca81d7a0 JD |
10899 | { echo "$as_me:$LINENO: result: before 6" >&5 |
10900 | echo "${ECHO_T}before 6" >&6; } | |
98418dba CW |
10901 | fi |
10902 | fi | |
10903 | ||
10904 | if test "${window_system}" = "x11"; then | |
ca81d7a0 JD |
10905 | { echo "$as_me:$LINENO: checking X11 version 5" >&5 |
10906 | echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; } | |
98418dba CW |
10907 | if test "${emacs_cv_x11_version_5+set}" = set; then |
10908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10909 | else | |
10910 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10911 | /* confdefs.h. */ |
10912 | _ACEOF | |
10913 | cat confdefs.h >>conftest.$ac_ext | |
10914 | cat >>conftest.$ac_ext <<_ACEOF | |
10915 | /* end confdefs.h. */ | |
98418dba | 10916 | #include <X11/Xlib.h> |
98418dba CW |
10917 | int |
10918 | main () | |
10919 | { | |
10920 | #if XlibSpecificationRelease < 5 | |
10921 | fail; | |
10922 | #endif | |
10923 | ||
10924 | ; | |
10925 | return 0; | |
10926 | } | |
10927 | _ACEOF | |
10928 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10929 | if { (ac_try="$ac_link" |
10930 | case "(($ac_try" in | |
10931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10932 | *) ac_try_echo=$ac_try;; | |
10933 | esac | |
10934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10935 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10936 | ac_status=$? |
edfaf76d LK |
10937 | grep -v '^ *+' conftest.er1 >conftest.err |
10938 | rm -f conftest.er1 | |
10939 | cat conftest.err >&5 | |
c0d27fcc | 10940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10941 | (exit $ac_status); } && { |
10942 | test -z "$ac_c_werror_flag" || | |
10943 | test ! -s conftest.err | |
10944 | } && test -s conftest$ac_exeext && | |
10945 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10946 | emacs_cv_x11_version_5=yes |
10947 | else | |
10948 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10949 | sed 's/^/| /' conftest.$ac_ext >&5 |
10950 | ||
ca81d7a0 | 10951 | emacs_cv_x11_version_5=no |
98418dba | 10952 | fi |
ca81d7a0 | 10953 | |
f053c89f | 10954 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10955 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10956 | fi |
10957 | ||
10958 | if test $emacs_cv_x11_version_5 = yes; then | |
ca81d7a0 JD |
10959 | { echo "$as_me:$LINENO: result: 5 or newer" >&5 |
10960 | echo "${ECHO_T}5 or newer" >&6; } | |
98418dba | 10961 | HAVE_X11R5=yes |
b936fae4 | 10962 | |
c0d27fcc | 10963 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10964 | #define HAVE_X11R5 1 |
c0d27fcc | 10965 | _ACEOF |
98418dba CW |
10966 | |
10967 | else | |
10968 | HAVE_X11R5=no | |
ca81d7a0 JD |
10969 | { echo "$as_me:$LINENO: result: before 5" >&5 |
10970 | echo "${ECHO_T}before 5" >&6; } | |
98418dba CW |
10971 | fi |
10972 | fi | |
10973 | ||
488dd4c4 | 10974 | HAVE_GTK=no |
8eeae1c9 JD |
10975 | if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then |
10976 | USE_X_TOOLKIT=none | |
10977 | fi | |
488dd4c4 | 10978 | if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then |
cd890796 | 10979 | if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then |
488dd4c4 JD |
10980 | { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5 |
10981 | echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;} | |
10982 | { (exit 1); exit 1; }; }; | |
10983 | fi | |
d0162c10 JD |
10984 | GLIB_REQUIRED=2.6 |
10985 | GTK_REQUIRED=2.6 | |
488dd4c4 JD |
10986 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" |
10987 | ||
10988 | if test "X${with_pkg_config_prog}" != X; then | |
10989 | PKG_CONFIG="${with_pkg_config_prog}" | |
10990 | fi | |
10991 | ||
10992 | succeeded=no | |
10993 | ||
10994 | if test -z "$PKG_CONFIG"; then | |
10995 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10996 | set dummy pkg-config; ac_word=$2 | |
ca81d7a0 JD |
10997 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10998 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
488dd4c4 JD |
10999 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
11000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11001 | else | |
11002 | case $PKG_CONFIG in | |
11003 | [\\/]* | ?:[\\/]*) | |
11004 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11005 | ;; | |
11006 | *) | |
11007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11008 | for as_dir in $PATH | |
11009 | do | |
11010 | IFS=$as_save_IFS | |
11011 | test -z "$as_dir" && as_dir=. | |
11012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 11013 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
488dd4c4 JD |
11014 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
11015 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11016 | break 2 | |
11017 | fi | |
11018 | done | |
11019 | done | |
ca81d7a0 | 11020 | IFS=$as_save_IFS |
488dd4c4 JD |
11021 | |
11022 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11023 | ;; | |
11024 | esac | |
11025 | fi | |
11026 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
488dd4c4 | 11027 | if test -n "$PKG_CONFIG"; then |
ca81d7a0 JD |
11028 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
11029 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
488dd4c4 | 11030 | else |
ca81d7a0 JD |
11031 | { echo "$as_me:$LINENO: result: no" >&5 |
11032 | echo "${ECHO_T}no" >&6; } | |
488dd4c4 JD |
11033 | fi |
11034 | ||
ca81d7a0 | 11035 | |
488dd4c4 JD |
11036 | fi |
11037 | ||
11038 | if test "$PKG_CONFIG" = "no" ; then | |
439f58ee JD |
11039 | { { echo "$as_me:$LINENO: error: |
11040 | *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5 | |
11041 | echo "$as_me: error: | |
11042 | *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;} | |
11043 | { (exit 1); exit 1; }; } | |
488dd4c4 JD |
11044 | else |
11045 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
11046 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ca81d7a0 JD |
11047 | { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 |
11048 | echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; } | |
488dd4c4 | 11049 | |
67db6aa2 | 11050 | if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then |
ca81d7a0 JD |
11051 | { echo "$as_me:$LINENO: result: yes" >&5 |
11052 | echo "${ECHO_T}yes" >&6; } | |
488dd4c4 JD |
11053 | succeeded=yes |
11054 | ||
ca81d7a0 JD |
11055 | { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 |
11056 | echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; } | |
94315858 | 11057 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` |
ca81d7a0 JD |
11058 | { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 |
11059 | echo "${ECHO_T}$GTK_CFLAGS" >&6; } | |
488dd4c4 | 11060 | |
ca81d7a0 JD |
11061 | { echo "$as_me:$LINENO: checking GTK_LIBS" >&5 |
11062 | echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; } | |
94315858 | 11063 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` |
ca81d7a0 JD |
11064 | { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 |
11065 | echo "${ECHO_T}$GTK_LIBS" >&6; } | |
488dd4c4 | 11066 | else |
ca81d7a0 JD |
11067 | { echo "$as_me:$LINENO: result: no" >&5 |
11068 | echo "${ECHO_T}no" >&6; } | |
488dd4c4 JD |
11069 | GTK_CFLAGS="" |
11070 | GTK_LIBS="" | |
11071 | ## If we have a custom action on failure, don't print errors, but | |
11072 | ## do set a variable so people can do so. | |
11073 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` | |
11074 | echo $GTK_PKG_ERRORS | |
11075 | fi | |
11076 | ||
11077 | ||
11078 | ||
11079 | else | |
11080 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11081 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
11082 | fi | |
11083 | fi | |
11084 | ||
11085 | if test $succeeded = yes; then | |
11086 | : | |
11087 | else | |
11088 | { { 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 | |
11089 | 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;} | |
11090 | { (exit 1); exit 1; }; } | |
11091 | fi | |
11092 | ||
11093 | ||
11094 | ||
11095 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | |
57669b57 JD |
11096 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
11097 | LIBS="$GTK_LIBS $LIBS" | |
8eeae1c9 | 11098 | GTK_COMPILES=no |
57669b57 | 11099 | |
8eeae1c9 | 11100 | for ac_func in gtk_main |
57669b57 JD |
11101 | do |
11102 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
11103 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11104 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11105 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
57669b57 JD |
11106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11107 | else | |
11108 | cat >conftest.$ac_ext <<_ACEOF | |
57669b57 JD |
11109 | /* confdefs.h. */ |
11110 | _ACEOF | |
11111 | cat confdefs.h >>conftest.$ac_ext | |
11112 | cat >>conftest.$ac_ext <<_ACEOF | |
11113 | /* end confdefs.h. */ | |
edfaf76d LK |
11114 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11115 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11116 | #define $ac_func innocuous_$ac_func | |
11117 | ||
57669b57 JD |
11118 | /* System header to define __stub macros and hopefully few prototypes, |
11119 | which can conflict with char $ac_func (); below. | |
11120 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11121 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 11122 | |
57669b57 JD |
11123 | #ifdef __STDC__ |
11124 | # include <limits.h> | |
11125 | #else | |
11126 | # include <assert.h> | |
11127 | #endif | |
edfaf76d LK |
11128 | |
11129 | #undef $ac_func | |
11130 | ||
ca81d7a0 JD |
11131 | /* Override any GCC internal prototype to avoid an error. |
11132 | Use char because int might match the return type of a GCC | |
11133 | builtin and then its argument prototype would still apply. */ | |
57669b57 JD |
11134 | #ifdef __cplusplus |
11135 | extern "C" | |
57669b57 | 11136 | #endif |
57669b57 JD |
11137 | char $ac_func (); |
11138 | /* The GNU C library defines this for functions which it implements | |
11139 | to always fail with ENOSYS. Some functions are actually named | |
11140 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 11141 | #if defined __stub_$ac_func || defined __stub___$ac_func |
57669b57 | 11142 | choke me |
57669b57 JD |
11143 | #endif |
11144 | ||
11145 | int | |
11146 | main () | |
11147 | { | |
ca81d7a0 | 11148 | return $ac_func (); |
57669b57 JD |
11149 | ; |
11150 | return 0; | |
11151 | } | |
11152 | _ACEOF | |
11153 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11154 | if { (ac_try="$ac_link" |
11155 | case "(($ac_try" in | |
11156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11157 | *) ac_try_echo=$ac_try;; | |
11158 | esac | |
11159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11160 | (eval "$ac_link") 2>conftest.er1 | |
57669b57 | 11161 | ac_status=$? |
edfaf76d LK |
11162 | grep -v '^ *+' conftest.er1 >conftest.err |
11163 | rm -f conftest.er1 | |
11164 | cat conftest.err >&5 | |
57669b57 | 11165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11166 | (exit $ac_status); } && { |
11167 | test -z "$ac_c_werror_flag" || | |
11168 | test ! -s conftest.err | |
11169 | } && test -s conftest$ac_exeext && | |
11170 | $as_test_x conftest$ac_exeext; then | |
57669b57 JD |
11171 | eval "$as_ac_var=yes" |
11172 | else | |
11173 | echo "$as_me: failed program was:" >&5 | |
11174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11175 | ||
ca81d7a0 | 11176 | eval "$as_ac_var=no" |
57669b57 | 11177 | fi |
ca81d7a0 | 11178 | |
f053c89f | 11179 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 11180 | conftest$ac_exeext conftest.$ac_ext |
57669b57 | 11181 | fi |
ca81d7a0 JD |
11182 | ac_res=`eval echo '${'$as_ac_var'}'` |
11183 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11184 | echo "${ECHO_T}$ac_res" >&6; } | |
57669b57 JD |
11185 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11186 | cat >>confdefs.h <<_ACEOF | |
11187 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11188 | _ACEOF | |
8eeae1c9 | 11189 | GTK_COMPILES=yes |
57669b57 JD |
11190 | fi |
11191 | done | |
11192 | ||
8eeae1c9 JD |
11193 | if test "${GTK_COMPILES}" != "yes"; then |
11194 | { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5 | |
11195 | echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;} | |
11196 | { (exit 1); exit 1; }; }; | |
11197 | fi | |
11198 | ||
11199 | HAVE_GTK=yes | |
57669b57 JD |
11200 | |
11201 | cat >>confdefs.h <<\_ACEOF | |
8eeae1c9 | 11202 | #define HAVE_GTK 1 |
572a3cc2 JD |
11203 | _ACEOF |
11204 | ||
8eeae1c9 JD |
11205 | USE_X_TOOLKIT=none |
11206 | ||
11207 | if test "$with_toolkit_scroll_bars" != no; then | |
11208 | with_toolkit_scroll_bars=yes | |
572a3cc2 | 11209 | fi |
572a3cc2 | 11210 | |
8eeae1c9 JD |
11211 | HAVE_GTK_MULTIDISPLAY=no |
11212 | ||
11213 | for ac_func in gdk_display_open | |
572a3cc2 JD |
11214 | do |
11215 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
11216 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11217 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11218 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
572a3cc2 JD |
11219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11220 | else | |
11221 | cat >conftest.$ac_ext <<_ACEOF | |
11222 | /* confdefs.h. */ | |
11223 | _ACEOF | |
11224 | cat confdefs.h >>conftest.$ac_ext | |
11225 | cat >>conftest.$ac_ext <<_ACEOF | |
11226 | /* end confdefs.h. */ | |
edfaf76d LK |
11227 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11228 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11229 | #define $ac_func innocuous_$ac_func | |
11230 | ||
572a3cc2 JD |
11231 | /* System header to define __stub macros and hopefully few prototypes, |
11232 | which can conflict with char $ac_func (); below. | |
11233 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11234 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 11235 | |
572a3cc2 JD |
11236 | #ifdef __STDC__ |
11237 | # include <limits.h> | |
11238 | #else | |
11239 | # include <assert.h> | |
11240 | #endif | |
edfaf76d LK |
11241 | |
11242 | #undef $ac_func | |
11243 | ||
ca81d7a0 JD |
11244 | /* Override any GCC internal prototype to avoid an error. |
11245 | Use char because int might match the return type of a GCC | |
11246 | builtin and then its argument prototype would still apply. */ | |
572a3cc2 JD |
11247 | #ifdef __cplusplus |
11248 | extern "C" | |
572a3cc2 | 11249 | #endif |
572a3cc2 JD |
11250 | char $ac_func (); |
11251 | /* The GNU C library defines this for functions which it implements | |
11252 | to always fail with ENOSYS. Some functions are actually named | |
11253 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 11254 | #if defined __stub_$ac_func || defined __stub___$ac_func |
572a3cc2 | 11255 | choke me |
572a3cc2 JD |
11256 | #endif |
11257 | ||
11258 | int | |
11259 | main () | |
11260 | { | |
ca81d7a0 | 11261 | return $ac_func (); |
572a3cc2 JD |
11262 | ; |
11263 | return 0; | |
11264 | } | |
11265 | _ACEOF | |
11266 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11267 | if { (ac_try="$ac_link" |
11268 | case "(($ac_try" in | |
11269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11270 | *) ac_try_echo=$ac_try;; | |
11271 | esac | |
11272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11273 | (eval "$ac_link") 2>conftest.er1 | |
572a3cc2 | 11274 | ac_status=$? |
edfaf76d LK |
11275 | grep -v '^ *+' conftest.er1 >conftest.err |
11276 | rm -f conftest.er1 | |
11277 | cat conftest.err >&5 | |
572a3cc2 | 11278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11279 | (exit $ac_status); } && { |
11280 | test -z "$ac_c_werror_flag" || | |
11281 | test ! -s conftest.err | |
11282 | } && test -s conftest$ac_exeext && | |
11283 | $as_test_x conftest$ac_exeext; then | |
572a3cc2 JD |
11284 | eval "$as_ac_var=yes" |
11285 | else | |
11286 | echo "$as_me: failed program was:" >&5 | |
11287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11288 | ||
ca81d7a0 | 11289 | eval "$as_ac_var=no" |
572a3cc2 | 11290 | fi |
ca81d7a0 | 11291 | |
f053c89f | 11292 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 11293 | conftest$ac_exeext conftest.$ac_ext |
572a3cc2 | 11294 | fi |
ca81d7a0 JD |
11295 | ac_res=`eval echo '${'$as_ac_var'}'` |
11296 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11297 | echo "${ECHO_T}$ac_res" >&6; } | |
572a3cc2 JD |
11298 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11299 | cat >>confdefs.h <<_ACEOF | |
11300 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11301 | _ACEOF | |
8eeae1c9 | 11302 | HAVE_GTK_MULTIDISPLAY=yes |
572a3cc2 JD |
11303 | fi |
11304 | done | |
11305 | ||
8eeae1c9 | 11306 | if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then |
572a3cc2 | 11307 | |
8eeae1c9 JD |
11308 | cat >>confdefs.h <<\_ACEOF |
11309 | #define HAVE_GTK_MULTIDISPLAY 1 | |
11310 | _ACEOF | |
572a3cc2 | 11311 | |
8eeae1c9 JD |
11312 | fi |
11313 | HAVE_GTK_FILE_SELECTION=no | |
11314 | ||
11315 | for ac_func in gtk_file_selection_new | |
572a3cc2 JD |
11316 | do |
11317 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
11318 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11319 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11320 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
572a3cc2 JD |
11321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11322 | else | |
11323 | cat >conftest.$ac_ext <<_ACEOF | |
11324 | /* confdefs.h. */ | |
11325 | _ACEOF | |
11326 | cat confdefs.h >>conftest.$ac_ext | |
11327 | cat >>conftest.$ac_ext <<_ACEOF | |
11328 | /* end confdefs.h. */ | |
edfaf76d LK |
11329 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11330 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11331 | #define $ac_func innocuous_$ac_func | |
11332 | ||
572a3cc2 JD |
11333 | /* System header to define __stub macros and hopefully few prototypes, |
11334 | which can conflict with char $ac_func (); below. | |
11335 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11336 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 11337 | |
572a3cc2 JD |
11338 | #ifdef __STDC__ |
11339 | # include <limits.h> | |
11340 | #else | |
11341 | # include <assert.h> | |
11342 | #endif | |
edfaf76d LK |
11343 | |
11344 | #undef $ac_func | |
11345 | ||
ca81d7a0 JD |
11346 | /* Override any GCC internal prototype to avoid an error. |
11347 | Use char because int might match the return type of a GCC | |
11348 | builtin and then its argument prototype would still apply. */ | |
572a3cc2 JD |
11349 | #ifdef __cplusplus |
11350 | extern "C" | |
572a3cc2 | 11351 | #endif |
572a3cc2 JD |
11352 | char $ac_func (); |
11353 | /* The GNU C library defines this for functions which it implements | |
11354 | to always fail with ENOSYS. Some functions are actually named | |
11355 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 11356 | #if defined __stub_$ac_func || defined __stub___$ac_func |
572a3cc2 | 11357 | choke me |
572a3cc2 JD |
11358 | #endif |
11359 | ||
11360 | int | |
11361 | main () | |
11362 | { | |
ca81d7a0 | 11363 | return $ac_func (); |
572a3cc2 JD |
11364 | ; |
11365 | return 0; | |
11366 | } | |
11367 | _ACEOF | |
11368 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11369 | if { (ac_try="$ac_link" |
11370 | case "(($ac_try" in | |
11371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11372 | *) ac_try_echo=$ac_try;; | |
11373 | esac | |
11374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11375 | (eval "$ac_link") 2>conftest.er1 | |
572a3cc2 | 11376 | ac_status=$? |
edfaf76d LK |
11377 | grep -v '^ *+' conftest.er1 >conftest.err |
11378 | rm -f conftest.er1 | |
11379 | cat conftest.err >&5 | |
572a3cc2 | 11380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11381 | (exit $ac_status); } && { |
11382 | test -z "$ac_c_werror_flag" || | |
11383 | test ! -s conftest.err | |
11384 | } && test -s conftest$ac_exeext && | |
11385 | $as_test_x conftest$ac_exeext; then | |
572a3cc2 JD |
11386 | eval "$as_ac_var=yes" |
11387 | else | |
11388 | echo "$as_me: failed program was:" >&5 | |
11389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11390 | ||
ca81d7a0 | 11391 | eval "$as_ac_var=no" |
572a3cc2 | 11392 | fi |
ca81d7a0 | 11393 | |
f053c89f | 11394 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 11395 | conftest$ac_exeext conftest.$ac_ext |
572a3cc2 | 11396 | fi |
ca81d7a0 JD |
11397 | ac_res=`eval echo '${'$as_ac_var'}'` |
11398 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11399 | echo "${ECHO_T}$ac_res" >&6; } | |
572a3cc2 JD |
11400 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11401 | cat >>confdefs.h <<_ACEOF | |
11402 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11403 | _ACEOF | |
8eeae1c9 | 11404 | HAVE_GTK_FILE_SELECTION=yes |
572a3cc2 JD |
11405 | fi |
11406 | done | |
11407 | ||
11408 | ||
8eeae1c9 | 11409 | HAVE_GTK_FILE_CHOOSER=no |
b8bdffbe | 11410 | |
8eeae1c9 | 11411 | for ac_func in gtk_file_chooser_dialog_new |
b8bdffbe | 11412 | do |
8eeae1c9 | 11413 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ca81d7a0 JD |
11414 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11415 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11416 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b8bdffbe | 11417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b8bdffbe | 11418 | else |
8eeae1c9 | 11419 | cat >conftest.$ac_ext <<_ACEOF |
b8bdffbe JD |
11420 | /* confdefs.h. */ |
11421 | _ACEOF | |
11422 | cat confdefs.h >>conftest.$ac_ext | |
11423 | cat >>conftest.$ac_ext <<_ACEOF | |
11424 | /* end confdefs.h. */ | |
8eeae1c9 JD |
11425 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11426 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11427 | #define $ac_func innocuous_$ac_func | |
11428 | ||
11429 | /* System header to define __stub macros and hopefully few prototypes, | |
11430 | which can conflict with char $ac_func (); below. | |
11431 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11432 | <limits.h> exists even on freestanding compilers. */ | |
11433 | ||
11434 | #ifdef __STDC__ | |
11435 | # include <limits.h> | |
11436 | #else | |
11437 | # include <assert.h> | |
11438 | #endif | |
11439 | ||
11440 | #undef $ac_func | |
11441 | ||
ca81d7a0 JD |
11442 | /* Override any GCC internal prototype to avoid an error. |
11443 | Use char because int might match the return type of a GCC | |
11444 | builtin and then its argument prototype would still apply. */ | |
8eeae1c9 JD |
11445 | #ifdef __cplusplus |
11446 | extern "C" | |
11447 | #endif | |
11448 | char $ac_func (); | |
11449 | /* The GNU C library defines this for functions which it implements | |
11450 | to always fail with ENOSYS. Some functions are actually named | |
11451 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 11452 | #if defined __stub_$ac_func || defined __stub___$ac_func |
8eeae1c9 JD |
11453 | choke me |
11454 | #endif | |
11455 | ||
11456 | int | |
11457 | main () | |
11458 | { | |
ca81d7a0 | 11459 | return $ac_func (); |
8eeae1c9 JD |
11460 | ; |
11461 | return 0; | |
11462 | } | |
11463 | _ACEOF | |
11464 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11465 | if { (ac_try="$ac_link" |
11466 | case "(($ac_try" in | |
11467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11468 | *) ac_try_echo=$ac_try;; | |
11469 | esac | |
11470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11471 | (eval "$ac_link") 2>conftest.er1 | |
8eeae1c9 JD |
11472 | ac_status=$? |
11473 | grep -v '^ *+' conftest.er1 >conftest.err | |
11474 | rm -f conftest.er1 | |
11475 | cat conftest.err >&5 | |
11476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
11477 | (exit $ac_status); } && { |
11478 | test -z "$ac_c_werror_flag" || | |
11479 | test ! -s conftest.err | |
11480 | } && test -s conftest$ac_exeext && | |
11481 | $as_test_x conftest$ac_exeext; then | |
8eeae1c9 JD |
11482 | eval "$as_ac_var=yes" |
11483 | else | |
11484 | echo "$as_me: failed program was:" >&5 | |
11485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11486 | ||
ca81d7a0 | 11487 | eval "$as_ac_var=no" |
8eeae1c9 | 11488 | fi |
ca81d7a0 | 11489 | |
f053c89f | 11490 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8eeae1c9 JD |
11491 | conftest$ac_exeext conftest.$ac_ext |
11492 | fi | |
ca81d7a0 JD |
11493 | ac_res=`eval echo '${'$as_ac_var'}'` |
11494 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11495 | echo "${ECHO_T}$ac_res" >&6; } | |
8eeae1c9 JD |
11496 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11497 | cat >>confdefs.h <<_ACEOF | |
11498 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11499 | _ACEOF | |
11500 | HAVE_GTK_FILE_CHOOSER=yes | |
11501 | fi | |
11502 | done | |
11503 | ||
11504 | ||
11505 | if test "$HAVE_GTK_FILE_SELECTION" = yes \ | |
11506 | && test "$HAVE_GTK_FILE_CHOOSER" = yes; then | |
11507 | ||
11508 | cat >>confdefs.h <<\_ACEOF | |
11509 | #define HAVE_GTK_FILE_BOTH 1 | |
11510 | _ACEOF | |
11511 | ||
11512 | fi | |
11513 | ||
11514 | if test "$HAVE_GTK_FILE_CHOOSER" = yes; then | |
11515 | HAVE_GTK_AND_PTHREAD=no | |
11516 | ||
11517 | for ac_header in pthread.h | |
11518 | do | |
11519 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
11520 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11521 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11522 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11523 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8eeae1c9 JD |
11524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11525 | fi | |
ca81d7a0 JD |
11526 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11527 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11528 | echo "${ECHO_T}$ac_res" >&6; } | |
8eeae1c9 JD |
11529 | else |
11530 | # Is the header compilable? | |
ca81d7a0 JD |
11531 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11532 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
8eeae1c9 JD |
11533 | cat >conftest.$ac_ext <<_ACEOF |
11534 | /* confdefs.h. */ | |
11535 | _ACEOF | |
11536 | cat confdefs.h >>conftest.$ac_ext | |
11537 | cat >>conftest.$ac_ext <<_ACEOF | |
11538 | /* end confdefs.h. */ | |
11539 | $ac_includes_default | |
11540 | #include <$ac_header> | |
11541 | _ACEOF | |
11542 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
11543 | if { (ac_try="$ac_compile" |
11544 | case "(($ac_try" in | |
11545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11546 | *) ac_try_echo=$ac_try;; | |
11547 | esac | |
11548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11549 | (eval "$ac_compile") 2>conftest.er1 | |
8eeae1c9 JD |
11550 | ac_status=$? |
11551 | grep -v '^ *+' conftest.er1 >conftest.err | |
11552 | rm -f conftest.er1 | |
edfaf76d | 11553 | cat conftest.err >&5 |
b8bdffbe | 11554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11555 | (exit $ac_status); } && { |
11556 | test -z "$ac_c_werror_flag" || | |
11557 | test ! -s conftest.err | |
11558 | } && test -s conftest.$ac_objext; then | |
b8bdffbe JD |
11559 | ac_header_compiler=yes |
11560 | else | |
11561 | echo "$as_me: failed program was:" >&5 | |
11562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11563 | ||
ca81d7a0 | 11564 | ac_header_compiler=no |
b8bdffbe | 11565 | fi |
ca81d7a0 JD |
11566 | |
11567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11568 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11569 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b8bdffbe JD |
11570 | |
11571 | # Is the header present? | |
ca81d7a0 JD |
11572 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11573 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b8bdffbe JD |
11574 | cat >conftest.$ac_ext <<_ACEOF |
11575 | /* confdefs.h. */ | |
11576 | _ACEOF | |
11577 | cat confdefs.h >>conftest.$ac_ext | |
11578 | cat >>conftest.$ac_ext <<_ACEOF | |
11579 | /* end confdefs.h. */ | |
11580 | #include <$ac_header> | |
11581 | _ACEOF | |
ca81d7a0 JD |
11582 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11583 | case "(($ac_try" in | |
11584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11585 | *) ac_try_echo=$ac_try;; | |
11586 | esac | |
11587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11588 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b8bdffbe JD |
11589 | ac_status=$? |
11590 | grep -v '^ *+' conftest.er1 >conftest.err | |
11591 | rm -f conftest.er1 | |
11592 | cat conftest.err >&5 | |
11593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
11594 | (exit $ac_status); } >/dev/null && { |
11595 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11596 | test ! -s conftest.err | |
11597 | }; then | |
b8bdffbe JD |
11598 | ac_header_preproc=yes |
11599 | else | |
11600 | echo "$as_me: failed program was:" >&5 | |
11601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11602 | ||
11603 | ac_header_preproc=no | |
11604 | fi | |
ca81d7a0 | 11605 | |
b8bdffbe | 11606 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
11607 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11608 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b8bdffbe JD |
11609 | |
11610 | # So? What about this header? | |
edfaf76d LK |
11611 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11612 | yes:no: ) | |
b8bdffbe JD |
11613 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11614 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
11615 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11616 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11617 | ac_header_preproc=yes | |
b8bdffbe | 11618 | ;; |
edfaf76d | 11619 | no:yes:* ) |
b8bdffbe JD |
11620 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11621 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
11622 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11623 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11624 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11625 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11626 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11627 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
b8bdffbe JD |
11628 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11629 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
11630 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11631 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 11632 | |
b8bdffbe JD |
11633 | ;; |
11634 | esac | |
ca81d7a0 JD |
11635 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11636 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11637 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b8bdffbe JD |
11638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11639 | else | |
edfaf76d | 11640 | eval "$as_ac_Header=\$ac_header_preproc" |
b8bdffbe | 11641 | fi |
ca81d7a0 JD |
11642 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11643 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11644 | echo "${ECHO_T}$ac_res" >&6; } | |
b8bdffbe JD |
11645 | |
11646 | fi | |
11647 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11648 | cat >>confdefs.h <<_ACEOF | |
11649 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11650 | _ACEOF | |
11651 | ||
11652 | fi | |
11653 | ||
11654 | done | |
11655 | ||
11656 | if test "$ac_cv_header_pthread_h"; then | |
ca81d7a0 JD |
11657 | { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5 |
11658 | echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; } | |
b8bdffbe JD |
11659 | if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then |
11660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11661 | else | |
11662 | ac_check_lib_save_LIBS=$LIBS | |
11663 | LIBS="-lpthread $LIBS" | |
11664 | cat >conftest.$ac_ext <<_ACEOF | |
11665 | /* confdefs.h. */ | |
11666 | _ACEOF | |
11667 | cat confdefs.h >>conftest.$ac_ext | |
11668 | cat >>conftest.$ac_ext <<_ACEOF | |
11669 | /* end confdefs.h. */ | |
11670 | ||
ca81d7a0 JD |
11671 | /* Override any GCC internal prototype to avoid an error. |
11672 | Use char because int might match the return type of a GCC | |
11673 | builtin and then its argument prototype would still apply. */ | |
b8bdffbe JD |
11674 | #ifdef __cplusplus |
11675 | extern "C" | |
11676 | #endif | |
b8bdffbe JD |
11677 | char pthread_self (); |
11678 | int | |
11679 | main () | |
11680 | { | |
ca81d7a0 | 11681 | return pthread_self (); |
b8bdffbe JD |
11682 | ; |
11683 | return 0; | |
11684 | } | |
11685 | _ACEOF | |
11686 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11687 | if { (ac_try="$ac_link" |
11688 | case "(($ac_try" in | |
11689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11690 | *) ac_try_echo=$ac_try;; | |
11691 | esac | |
11692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11693 | (eval "$ac_link") 2>conftest.er1 | |
b8bdffbe | 11694 | ac_status=$? |
edfaf76d LK |
11695 | grep -v '^ *+' conftest.er1 >conftest.err |
11696 | rm -f conftest.er1 | |
11697 | cat conftest.err >&5 | |
b8bdffbe | 11698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11699 | (exit $ac_status); } && { |
11700 | test -z "$ac_c_werror_flag" || | |
11701 | test ! -s conftest.err | |
11702 | } && test -s conftest$ac_exeext && | |
11703 | $as_test_x conftest$ac_exeext; then | |
b8bdffbe JD |
11704 | ac_cv_lib_pthread_pthread_self=yes |
11705 | else | |
11706 | echo "$as_me: failed program was:" >&5 | |
11707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11708 | ||
ca81d7a0 | 11709 | ac_cv_lib_pthread_pthread_self=no |
b8bdffbe | 11710 | fi |
ca81d7a0 | 11711 | |
f053c89f | 11712 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 11713 | conftest$ac_exeext conftest.$ac_ext |
b8bdffbe JD |
11714 | LIBS=$ac_check_lib_save_LIBS |
11715 | fi | |
ca81d7a0 JD |
11716 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5 |
11717 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; } | |
b8bdffbe JD |
11718 | if test $ac_cv_lib_pthread_pthread_self = yes; then |
11719 | HAVE_GTK_AND_PTHREAD=yes | |
11720 | fi | |
11721 | ||
11722 | fi | |
11723 | if test "$HAVE_GTK_AND_PTHREAD" = yes; then | |
846d1b3e JD |
11724 | case "${canonical}" in |
11725 | *-hpux*) ;; | |
11726 | *) GTK_LIBS="$GTK_LIBS -lpthread" ;; | |
11727 | esac | |
b8bdffbe JD |
11728 | |
11729 | cat >>confdefs.h <<\_ACEOF | |
11730 | #define HAVE_GTK_AND_PTHREAD 1 | |
11731 | _ACEOF | |
11732 | ||
11733 | fi | |
57669b57 | 11734 | fi |
488dd4c4 JD |
11735 | fi |
11736 | ||
9d89ffd0 JD |
11737 | ### Link with -lXft if available to work around a bug. |
11738 | HAVE_XFT=maybe | |
11739 | if test "${HAVE_GTK}" = "yes"; then | |
11740 | if test "X${with_pkg_config_prog}" != X; then | |
11741 | PKG_CONFIG="${with_pkg_config_prog}" | |
11742 | fi | |
11743 | ||
11744 | ||
11745 | succeeded=no | |
11746 | ||
11747 | if test -z "$PKG_CONFIG"; then | |
11748 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11749 | set dummy pkg-config; ac_word=$2 | |
11750 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11751 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
11752 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
11753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11754 | else | |
11755 | case $PKG_CONFIG in | |
11756 | [\\/]* | ?:[\\/]*) | |
11757 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11758 | ;; | |
11759 | *) | |
11760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11761 | for as_dir in $PATH | |
11762 | do | |
11763 | IFS=$as_save_IFS | |
11764 | test -z "$as_dir" && as_dir=. | |
11765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11766 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11767 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11768 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11769 | break 2 | |
11770 | fi | |
11771 | done | |
11772 | done | |
11773 | IFS=$as_save_IFS | |
11774 | ||
11775 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11776 | ;; | |
11777 | esac | |
11778 | fi | |
11779 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11780 | if test -n "$PKG_CONFIG"; then | |
11781 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
11782 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
11783 | else | |
11784 | { echo "$as_me:$LINENO: result: no" >&5 | |
11785 | echo "${ECHO_T}no" >&6; } | |
11786 | fi | |
11787 | ||
11788 | ||
11789 | fi | |
11790 | ||
11791 | if test "$PKG_CONFIG" = "no" ; then | |
11792 | HAVE_XFT=no | |
11793 | else | |
11794 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
11795 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
11796 | { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5 | |
11797 | echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; } | |
11798 | ||
11799 | if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then | |
11800 | { echo "$as_me:$LINENO: result: yes" >&5 | |
11801 | echo "${ECHO_T}yes" >&6; } | |
11802 | succeeded=yes | |
11803 | ||
11804 | { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5 | |
11805 | echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; } | |
94315858 | 11806 | XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` |
9d89ffd0 JD |
11807 | { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5 |
11808 | echo "${ECHO_T}$XFT_CFLAGS" >&6; } | |
11809 | ||
11810 | { echo "$as_me:$LINENO: checking XFT_LIBS" >&5 | |
11811 | echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; } | |
94315858 | 11812 | XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` |
9d89ffd0 JD |
11813 | { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5 |
11814 | echo "${ECHO_T}$XFT_LIBS" >&6; } | |
11815 | else | |
11816 | { echo "$as_me:$LINENO: result: no" >&5 | |
11817 | echo "${ECHO_T}no" >&6; } | |
11818 | XFT_CFLAGS="" | |
11819 | XFT_LIBS="" | |
11820 | ## If we have a custom action on failure, don't print errors, but | |
11821 | ## do set a variable so people can do so. | |
11822 | XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"` | |
11823 | ||
11824 | fi | |
11825 | ||
11826 | ||
11827 | ||
11828 | else | |
11829 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11830 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
11831 | fi | |
11832 | fi | |
11833 | ||
11834 | if test $succeeded = yes; then | |
11835 | : | |
11836 | else | |
11837 | HAVE_XFT=no | |
11838 | fi | |
11839 | ||
11840 | if test "$HAVE_XFT" != no; then | |
11841 | OLD_CFLAGS="$CPPFLAGS" | |
f23323c5 | 11842 | OLD_CPPFLAGS="$CFLAGS" |
9d89ffd0 JD |
11843 | OLD_LIBS="$LIBS" |
11844 | CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" | |
11845 | CFLAGS="$CFLAGS $XFT_CFLAGS" | |
11846 | LIBS="$XFT_LIBS $LIBS" | |
11847 | if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
11848 | { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 | |
11849 | echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; } | |
11850 | if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
11851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11852 | fi | |
11853 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 | |
11854 | echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; } | |
11855 | else | |
11856 | # Is the header compilable? | |
11857 | { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5 | |
11858 | echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; } | |
11859 | cat >conftest.$ac_ext <<_ACEOF | |
11860 | /* confdefs.h. */ | |
11861 | _ACEOF | |
11862 | cat confdefs.h >>conftest.$ac_ext | |
11863 | cat >>conftest.$ac_ext <<_ACEOF | |
11864 | /* end confdefs.h. */ | |
11865 | $ac_includes_default | |
11866 | #include <X11/Xft/Xft.h> | |
11867 | _ACEOF | |
11868 | rm -f conftest.$ac_objext | |
11869 | if { (ac_try="$ac_compile" | |
11870 | case "(($ac_try" in | |
11871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11872 | *) ac_try_echo=$ac_try;; | |
11873 | esac | |
11874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11875 | (eval "$ac_compile") 2>conftest.er1 | |
11876 | ac_status=$? | |
11877 | grep -v '^ *+' conftest.er1 >conftest.err | |
11878 | rm -f conftest.er1 | |
11879 | cat conftest.err >&5 | |
11880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11881 | (exit $ac_status); } && { | |
11882 | test -z "$ac_c_werror_flag" || | |
11883 | test ! -s conftest.err | |
11884 | } && test -s conftest.$ac_objext; then | |
11885 | ac_header_compiler=yes | |
11886 | else | |
11887 | echo "$as_me: failed program was:" >&5 | |
11888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11889 | ||
11890 | ac_header_compiler=no | |
11891 | fi | |
11892 | ||
11893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11894 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11895 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
11896 | ||
11897 | # Is the header present? | |
11898 | { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5 | |
11899 | echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; } | |
11900 | cat >conftest.$ac_ext <<_ACEOF | |
11901 | /* confdefs.h. */ | |
11902 | _ACEOF | |
11903 | cat confdefs.h >>conftest.$ac_ext | |
11904 | cat >>conftest.$ac_ext <<_ACEOF | |
11905 | /* end confdefs.h. */ | |
11906 | #include <X11/Xft/Xft.h> | |
11907 | _ACEOF | |
11908 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11909 | case "(($ac_try" in | |
11910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11911 | *) ac_try_echo=$ac_try;; | |
11912 | esac | |
11913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11914 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11915 | ac_status=$? | |
11916 | grep -v '^ *+' conftest.er1 >conftest.err | |
11917 | rm -f conftest.er1 | |
11918 | cat conftest.err >&5 | |
11919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11920 | (exit $ac_status); } >/dev/null && { | |
11921 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11922 | test ! -s conftest.err | |
11923 | }; then | |
11924 | ac_header_preproc=yes | |
11925 | else | |
11926 | echo "$as_me: failed program was:" >&5 | |
11927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11928 | ||
11929 | ac_header_preproc=no | |
11930 | fi | |
11931 | ||
11932 | rm -f conftest.err conftest.$ac_ext | |
11933 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11934 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
11935 | ||
11936 | # So? What about this header? | |
11937 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11938 | yes:no: ) | |
11939 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11940 | echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11941 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5 | |
11942 | echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;} | |
11943 | ac_header_preproc=yes | |
11944 | ;; | |
11945 | no:yes:* ) | |
11946 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5 | |
11947 | echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;} | |
11948 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5 | |
11949 | echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;} | |
11950 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5 | |
11951 | echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;} | |
11952 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11953 | echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
11954 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5 | |
11955 | echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;} | |
11956 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5 | |
11957 | echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;} | |
11958 | ||
11959 | ;; | |
11960 | esac | |
11961 | { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 | |
11962 | echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; } | |
11963 | if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
11964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11965 | else | |
11966 | ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc | |
11967 | fi | |
11968 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 | |
11969 | echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; } | |
11970 | ||
11971 | fi | |
11972 | if test $ac_cv_header_X11_Xft_Xft_h = yes; then | |
11973 | { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5 | |
11974 | echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; } | |
11975 | if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then | |
11976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11977 | else | |
11978 | ac_check_lib_save_LIBS=$LIBS | |
11979 | LIBS="-lXft $XFT_LIBS $LIBS" | |
11980 | cat >conftest.$ac_ext <<_ACEOF | |
11981 | /* confdefs.h. */ | |
11982 | _ACEOF | |
11983 | cat confdefs.h >>conftest.$ac_ext | |
11984 | cat >>conftest.$ac_ext <<_ACEOF | |
11985 | /* end confdefs.h. */ | |
11986 | ||
11987 | /* Override any GCC internal prototype to avoid an error. | |
11988 | Use char because int might match the return type of a GCC | |
11989 | builtin and then its argument prototype would still apply. */ | |
11990 | #ifdef __cplusplus | |
11991 | extern "C" | |
11992 | #endif | |
11993 | char XftFontOpen (); | |
11994 | int | |
11995 | main () | |
11996 | { | |
11997 | return XftFontOpen (); | |
11998 | ; | |
11999 | return 0; | |
12000 | } | |
12001 | _ACEOF | |
12002 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12003 | if { (ac_try="$ac_link" | |
12004 | case "(($ac_try" in | |
12005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12006 | *) ac_try_echo=$ac_try;; | |
12007 | esac | |
12008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12009 | (eval "$ac_link") 2>conftest.er1 | |
12010 | ac_status=$? | |
12011 | grep -v '^ *+' conftest.er1 >conftest.err | |
12012 | rm -f conftest.er1 | |
12013 | cat conftest.err >&5 | |
12014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12015 | (exit $ac_status); } && { | |
12016 | test -z "$ac_c_werror_flag" || | |
12017 | test ! -s conftest.err | |
12018 | } && test -s conftest$ac_exeext && | |
12019 | $as_test_x conftest$ac_exeext; then | |
12020 | ac_cv_lib_Xft_XftFontOpen=yes | |
12021 | else | |
12022 | echo "$as_me: failed program was:" >&5 | |
12023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12024 | ||
12025 | ac_cv_lib_Xft_XftFontOpen=no | |
12026 | fi | |
12027 | ||
12028 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12029 | conftest$ac_exeext conftest.$ac_ext | |
12030 | LIBS=$ac_check_lib_save_LIBS | |
12031 | fi | |
12032 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5 | |
12033 | echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; } | |
12034 | if test $ac_cv_lib_Xft_XftFontOpen = yes; then | |
12035 | HAVE_XFT=yes | |
12036 | fi | |
12037 | ||
12038 | fi | |
12039 | ||
12040 | ||
12041 | ||
12042 | if test "${HAVE_XFT}" = "yes"; then | |
12043 | ||
12044 | cat >>confdefs.h <<\_ACEOF | |
12045 | #define HAVE_XFT 1 | |
12046 | _ACEOF | |
12047 | ||
12048 | ||
12049 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" | |
12050 | else | |
12051 | CFLAGS="$OLD_CPPFLAGS" | |
12052 | CFLAGS="$OLD_CFLAGS" | |
12053 | LIBS="$OLD_LIBS" | |
12054 | fi | |
12055 | fi | |
12056 | fi | |
12057 | ||
3685ba3f | 12058 | if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then |
98418dba | 12059 | if test x"${HAVE_X11R5}" = xyes; then |
ca81d7a0 JD |
12060 | { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5 |
12061 | echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; } | |
98418dba CW |
12062 | if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then |
12063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12064 | else | |
12065 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12066 | /* confdefs.h. */ |
12067 | _ACEOF | |
12068 | cat confdefs.h >>conftest.$ac_ext | |
12069 | cat >>conftest.$ac_ext <<_ACEOF | |
12070 | /* end confdefs.h. */ | |
98418dba CW |
12071 | |
12072 | #include <X11/Intrinsic.h> | |
12073 | #include <X11/Xaw/Simple.h> | |
98418dba CW |
12074 | int |
12075 | main () | |
12076 | { | |
12077 | ||
12078 | ; | |
12079 | return 0; | |
12080 | } | |
12081 | _ACEOF | |
12082 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
12083 | if { (ac_try="$ac_link" |
12084 | case "(($ac_try" in | |
12085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12086 | *) ac_try_echo=$ac_try;; | |
12087 | esac | |
12088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12089 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12090 | ac_status=$? |
edfaf76d LK |
12091 | grep -v '^ *+' conftest.er1 >conftest.err |
12092 | rm -f conftest.er1 | |
12093 | cat conftest.err >&5 | |
c0d27fcc | 12094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12095 | (exit $ac_status); } && { |
12096 | test -z "$ac_c_werror_flag" || | |
12097 | test ! -s conftest.err | |
12098 | } && test -s conftest$ac_exeext && | |
12099 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
12100 | emacs_cv_x11_version_5_with_xaw=yes |
12101 | else | |
12102 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12103 | sed 's/^/| /' conftest.$ac_ext >&5 |
12104 | ||
ca81d7a0 | 12105 | emacs_cv_x11_version_5_with_xaw=no |
98418dba | 12106 | fi |
ca81d7a0 | 12107 | |
f053c89f | 12108 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 12109 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12110 | fi |
12111 | ||
12112 | if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
ca81d7a0 JD |
12113 | { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
12114 | echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; } | |
98418dba CW |
12115 | USE_X_TOOLKIT=LUCID |
12116 | else | |
3685ba3f CY |
12117 | if test x"${USE_X_TOOLKIT}" = xLUCID; then |
12118 | { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5 | |
12119 | echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;} | |
12120 | { (exit 1); exit 1; }; } | |
12121 | else | |
12122 | { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5 | |
ca81d7a0 | 12123 | echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; } |
3685ba3f CY |
12124 | USE_X_TOOLKIT=none |
12125 | fi | |
98418dba CW |
12126 | fi |
12127 | else | |
12128 | USE_X_TOOLKIT=none | |
12129 | fi | |
12130 | fi | |
12131 | ||
12132 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
12133 | ||
12134 | if test "${USE_X_TOOLKIT}" != "none"; then | |
ca81d7a0 JD |
12135 | { echo "$as_me:$LINENO: checking X11 toolkit version" >&5 |
12136 | echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; } | |
98418dba CW |
12137 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then |
12138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12139 | else | |
12140 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12141 | /* confdefs.h. */ |
12142 | _ACEOF | |
12143 | cat confdefs.h >>conftest.$ac_ext | |
12144 | cat >>conftest.$ac_ext <<_ACEOF | |
12145 | /* end confdefs.h. */ | |
98418dba | 12146 | #include <X11/Intrinsic.h> |
98418dba CW |
12147 | int |
12148 | main () | |
12149 | { | |
12150 | #if XtSpecificationRelease < 6 | |
12151 | fail; | |
12152 | #endif | |
12153 | ||
12154 | ; | |
12155 | return 0; | |
12156 | } | |
12157 | _ACEOF | |
12158 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
12159 | if { (ac_try="$ac_link" |
12160 | case "(($ac_try" in | |
12161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12162 | *) ac_try_echo=$ac_try;; | |
12163 | esac | |
12164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12165 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12166 | ac_status=$? |
edfaf76d LK |
12167 | grep -v '^ *+' conftest.er1 >conftest.err |
12168 | rm -f conftest.er1 | |
12169 | cat conftest.err >&5 | |
c0d27fcc | 12170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12171 | (exit $ac_status); } && { |
12172 | test -z "$ac_c_werror_flag" || | |
12173 | test ! -s conftest.err | |
12174 | } && test -s conftest$ac_exeext && | |
12175 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
12176 | emacs_cv_x11_toolkit_version_6=yes |
12177 | else | |
12178 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12179 | sed 's/^/| /' conftest.$ac_ext >&5 |
12180 | ||
ca81d7a0 | 12181 | emacs_cv_x11_toolkit_version_6=no |
98418dba | 12182 | fi |
ca81d7a0 | 12183 | |
f053c89f | 12184 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 12185 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12186 | fi |
12187 | ||
12188 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
12189 | if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
ca81d7a0 JD |
12190 | { echo "$as_me:$LINENO: result: 6 or newer" >&5 |
12191 | echo "${ECHO_T}6 or newer" >&6; } | |
b936fae4 | 12192 | |
c0d27fcc | 12193 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12194 | #define HAVE_X11XTR6 1 |
c0d27fcc | 12195 | _ACEOF |
98418dba CW |
12196 | |
12197 | else | |
ca81d7a0 JD |
12198 | { echo "$as_me:$LINENO: result: before 6" >&5 |
12199 | echo "${ECHO_T}before 6" >&6; } | |
98418dba CW |
12200 | fi |
12201 | ||
12202 | OLDLIBS="$LIBS" | |
12203 | if test x$HAVE_X11XTR6 = xyes; then | |
12204 | LIBS="-lXt -lSM -lICE $LIBS" | |
12205 | else | |
12206 | LIBS="-lXt $LIBS" | |
12207 | fi | |
12208 | ||
ca81d7a0 JD |
12209 | { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5 |
12210 | echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; } | |
98418dba CW |
12211 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then |
12212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12213 | else | |
12214 | ac_check_lib_save_LIBS=$LIBS | |
12215 | LIBS="-lXmu $LIBS" | |
12216 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12217 | /* confdefs.h. */ |
12218 | _ACEOF | |
12219 | cat confdefs.h >>conftest.$ac_ext | |
12220 | cat >>conftest.$ac_ext <<_ACEOF | |
12221 | /* end confdefs.h. */ | |
98418dba | 12222 | |
ca81d7a0 JD |
12223 | /* Override any GCC internal prototype to avoid an error. |
12224 | Use char because int might match the return type of a GCC | |
12225 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
12226 | #ifdef __cplusplus |
12227 | extern "C" | |
12228 | #endif | |
98418dba | 12229 | char XmuConvertStandardSelection (); |
98418dba CW |
12230 | int |
12231 | main () | |
12232 | { | |
ca81d7a0 | 12233 | return XmuConvertStandardSelection (); |
98418dba CW |
12234 | ; |
12235 | return 0; | |
12236 | } | |
12237 | _ACEOF | |
12238 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
12239 | if { (ac_try="$ac_link" |
12240 | case "(($ac_try" in | |
12241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12242 | *) ac_try_echo=$ac_try;; | |
12243 | esac | |
12244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12245 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12246 | ac_status=$? |
edfaf76d LK |
12247 | grep -v '^ *+' conftest.er1 >conftest.err |
12248 | rm -f conftest.er1 | |
12249 | cat conftest.err >&5 | |
c0d27fcc | 12250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12251 | (exit $ac_status); } && { |
12252 | test -z "$ac_c_werror_flag" || | |
12253 | test ! -s conftest.err | |
12254 | } && test -s conftest$ac_exeext && | |
12255 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
12256 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes |
12257 | else | |
12258 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12259 | sed 's/^/| /' conftest.$ac_ext >&5 |
12260 | ||
ca81d7a0 | 12261 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no |
98418dba | 12262 | fi |
ca81d7a0 | 12263 | |
f053c89f | 12264 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 12265 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12266 | LIBS=$ac_check_lib_save_LIBS |
12267 | fi | |
ca81d7a0 JD |
12268 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
12269 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } | |
98418dba | 12270 | if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then |
c0d27fcc | 12271 | cat >>confdefs.h <<_ACEOF |
98418dba | 12272 | #define HAVE_LIBXMU 1 |
c0d27fcc | 12273 | _ACEOF |
98418dba CW |
12274 | |
12275 | LIBS="-lXmu $LIBS" | |
12276 | ||
12277 | fi | |
12278 | ||
12279 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" | |
12280 | fi | |
12281 | ||
12282 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
12283 | if test "${HAVE_X11}" = "yes"; then | |
12284 | if test "${USE_X_TOOLKIT}" != "none"; then | |
12285 | ||
ca81d7a0 JD |
12286 | { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
12287 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; } | |
98418dba CW |
12288 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
12289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12290 | else | |
12291 | ac_check_lib_save_LIBS=$LIBS | |
12292 | LIBS="-lXext $LIBS" | |
12293 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12294 | /* confdefs.h. */ |
12295 | _ACEOF | |
12296 | cat confdefs.h >>conftest.$ac_ext | |
12297 | cat >>conftest.$ac_ext <<_ACEOF | |
12298 | /* end confdefs.h. */ | |
98418dba | 12299 | |
ca81d7a0 JD |
12300 | /* Override any GCC internal prototype to avoid an error. |
12301 | Use char because int might match the return type of a GCC | |
12302 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
12303 | #ifdef __cplusplus |
12304 | extern "C" | |
12305 | #endif | |
98418dba | 12306 | char XShapeQueryExtension (); |
98418dba CW |
12307 | int |
12308 | main () | |
12309 | { | |
ca81d7a0 | 12310 | return XShapeQueryExtension (); |
98418dba CW |
12311 | ; |
12312 | return 0; | |
12313 | } | |
12314 | _ACEOF | |
12315 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
12316 | if { (ac_try="$ac_link" |
12317 | case "(($ac_try" in | |
12318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12319 | *) ac_try_echo=$ac_try;; | |
12320 | esac | |
12321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12322 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12323 | ac_status=$? |
edfaf76d LK |
12324 | grep -v '^ *+' conftest.er1 >conftest.err |
12325 | rm -f conftest.er1 | |
12326 | cat conftest.err >&5 | |
c0d27fcc | 12327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12328 | (exit $ac_status); } && { |
12329 | test -z "$ac_c_werror_flag" || | |
12330 | test ! -s conftest.err | |
12331 | } && test -s conftest$ac_exeext && | |
12332 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
12333 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
12334 | else | |
12335 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12336 | sed 's/^/| /' conftest.$ac_ext >&5 |
12337 | ||
ca81d7a0 | 12338 | ac_cv_lib_Xext_XShapeQueryExtension=no |
98418dba | 12339 | fi |
ca81d7a0 | 12340 | |
f053c89f | 12341 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 12342 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12343 | LIBS=$ac_check_lib_save_LIBS |
12344 | fi | |
ca81d7a0 JD |
12345 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
12346 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } | |
98418dba | 12347 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
c0d27fcc | 12348 | cat >>confdefs.h <<_ACEOF |
98418dba | 12349 | #define HAVE_LIBXEXT 1 |
c0d27fcc | 12350 | _ACEOF |
98418dba CW |
12351 | |
12352 | LIBS="-lXext $LIBS" | |
12353 | ||
12354 | fi | |
12355 | ||
12356 | fi | |
12357 | fi | |
12358 | ||
12359 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
ca81d7a0 JD |
12360 | { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 |
12361 | echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; } | |
98418dba CW |
12362 | if test "${emacs_cv_motif_version_2_1+set}" = set; then |
12363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12364 | else | |
12365 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12366 | /* confdefs.h. */ |
12367 | _ACEOF | |
12368 | cat confdefs.h >>conftest.$ac_ext | |
12369 | cat >>conftest.$ac_ext <<_ACEOF | |
12370 | /* end confdefs.h. */ | |
98418dba | 12371 | #include <Xm/Xm.h> |
98418dba CW |
12372 | int |
12373 | main () | |
12374 | { | |
12375 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
12376 | int x = 5; | |
12377 | #else | |
12378 | Motif version prior to 2.1. | |
12379 | #endif | |
12380 | ; | |
12381 | return 0; | |
12382 | } | |
12383 | _ACEOF | |
12384 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
12385 | if { (ac_try="$ac_compile" |
12386 | case "(($ac_try" in | |
12387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12388 | *) ac_try_echo=$ac_try;; | |
12389 | esac | |
12390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12391 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 12392 | ac_status=$? |
edfaf76d LK |
12393 | grep -v '^ *+' conftest.er1 >conftest.err |
12394 | rm -f conftest.er1 | |
12395 | cat conftest.err >&5 | |
c0d27fcc | 12396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12397 | (exit $ac_status); } && { |
12398 | test -z "$ac_c_werror_flag" || | |
12399 | test ! -s conftest.err | |
12400 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
12401 | emacs_cv_motif_version_2_1=yes |
12402 | else | |
12403 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12404 | sed 's/^/| /' conftest.$ac_ext >&5 |
12405 | ||
ca81d7a0 | 12406 | emacs_cv_motif_version_2_1=no |
98418dba | 12407 | fi |
ca81d7a0 JD |
12408 | |
12409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 12410 | fi |
ca81d7a0 JD |
12411 | { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 |
12412 | echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; } | |
98418dba CW |
12413 | HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 |
12414 | if test $emacs_cv_motif_version_2_1 = yes; then | |
12415 | HAVE_LIBXP=no | |
b936fae4 | 12416 | |
c0d27fcc | 12417 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12418 | #define HAVE_MOTIF_2_1 1 |
c0d27fcc | 12419 | _ACEOF |
98418dba | 12420 | |
ca81d7a0 JD |
12421 | { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 |
12422 | echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; } | |
98418dba CW |
12423 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then |
12424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12425 | else | |
12426 | ac_check_lib_save_LIBS=$LIBS | |
12427 | LIBS="-lXp $LIBS" | |
12428 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12429 | /* confdefs.h. */ |
12430 | _ACEOF | |
12431 | cat confdefs.h >>conftest.$ac_ext | |
12432 | cat >>conftest.$ac_ext <<_ACEOF | |
12433 | /* end confdefs.h. */ | |
98418dba | 12434 | |
ca81d7a0 JD |
12435 | /* Override any GCC internal prototype to avoid an error. |
12436 | Use char because int might match the return type of a GCC | |
12437 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
12438 | #ifdef __cplusplus |
12439 | extern "C" | |
12440 | #endif | |
98418dba | 12441 | char XpCreateContext (); |
98418dba CW |
12442 | int |
12443 | main () | |
12444 | { | |
ca81d7a0 | 12445 | return XpCreateContext (); |
98418dba CW |
12446 | ; |
12447 | return 0; | |
12448 | } | |
12449 | _ACEOF | |
12450 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
12451 | if { (ac_try="$ac_link" |
12452 | case "(($ac_try" in | |
12453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12454 | *) ac_try_echo=$ac_try;; | |
12455 | esac | |
12456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12457 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12458 | ac_status=$? |
edfaf76d LK |
12459 | grep -v '^ *+' conftest.er1 >conftest.err |
12460 | rm -f conftest.er1 | |
12461 | cat conftest.err >&5 | |
c0d27fcc | 12462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12463 | (exit $ac_status); } && { |
12464 | test -z "$ac_c_werror_flag" || | |
12465 | test ! -s conftest.err | |
12466 | } && test -s conftest$ac_exeext && | |
12467 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
12468 | ac_cv_lib_Xp_XpCreateContext=yes |
12469 | else | |
12470 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12471 | sed 's/^/| /' conftest.$ac_ext >&5 |
12472 | ||
ca81d7a0 | 12473 | ac_cv_lib_Xp_XpCreateContext=no |
98418dba | 12474 | fi |
ca81d7a0 | 12475 | |
f053c89f | 12476 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 12477 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12478 | LIBS=$ac_check_lib_save_LIBS |
12479 | fi | |
ca81d7a0 JD |
12480 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
12481 | echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; } | |
98418dba CW |
12482 | if test $ac_cv_lib_Xp_XpCreateContext = yes; then |
12483 | HAVE_LIBXP=yes | |
12484 | fi | |
503d2be0 | 12485 | |
98418dba | 12486 | if test ${HAVE_LIBXP} = yes; then |
b936fae4 | 12487 | |
c0d27fcc | 12488 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12489 | #define HAVE_LIBXP 1 |
c0d27fcc | 12490 | _ACEOF |
503d2be0 | 12491 | |
98418dba | 12492 | fi |
4693dbc9 | 12493 | else |
ca81d7a0 JD |
12494 | { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 |
12495 | echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; } | |
4693dbc9 SM |
12496 | if test "${emacs_cv_lesstif+set}" = set; then |
12497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12498 | else | |
12499 | # We put this in CFLAGS temporarily to precede other -I options | |
12500 | # that might be in CFLAGS temporarily. | |
12501 | # We put this in CPPFLAGS where it precedes the other -I options. | |
12502 | OLD_CPPFLAGS=$CPPFLAGS | |
12503 | OLD_CFLAGS=$CFLAGS | |
12504 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | |
12505 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | |
12506 | cat >conftest.$ac_ext <<_ACEOF | |
12507 | /* confdefs.h. */ | |
12508 | _ACEOF | |
12509 | cat confdefs.h >>conftest.$ac_ext | |
12510 | cat >>conftest.$ac_ext <<_ACEOF | |
12511 | /* end confdefs.h. */ | |
12512 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> | |
12513 | int | |
12514 | main () | |
12515 | { | |
12516 | int x = 5; | |
12517 | ; | |
12518 | return 0; | |
12519 | } | |
12520 | _ACEOF | |
12521 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
12522 | if { (ac_try="$ac_compile" |
12523 | case "(($ac_try" in | |
12524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12525 | *) ac_try_echo=$ac_try;; | |
12526 | esac | |
12527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12528 | (eval "$ac_compile") 2>conftest.er1 | |
4693dbc9 | 12529 | ac_status=$? |
edfaf76d LK |
12530 | grep -v '^ *+' conftest.er1 >conftest.err |
12531 | rm -f conftest.er1 | |
12532 | cat conftest.err >&5 | |
4693dbc9 | 12533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12534 | (exit $ac_status); } && { |
12535 | test -z "$ac_c_werror_flag" || | |
12536 | test ! -s conftest.err | |
12537 | } && test -s conftest.$ac_objext; then | |
4693dbc9 SM |
12538 | emacs_cv_lesstif=yes |
12539 | else | |
12540 | echo "$as_me: failed program was:" >&5 | |
12541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12542 | ||
ca81d7a0 | 12543 | emacs_cv_lesstif=no |
4693dbc9 | 12544 | fi |
ca81d7a0 JD |
12545 | |
12546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4693dbc9 | 12547 | fi |
ca81d7a0 JD |
12548 | { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 |
12549 | echo "${ECHO_T}$emacs_cv_lesstif" >&6; } | |
4693dbc9 SM |
12550 | if test $emacs_cv_lesstif = yes; then |
12551 | # Make sure this -I option remains in CPPFLAGS after it is set | |
12552 | # back to REAL_CPPFLAGS. | |
12553 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | |
12554 | # have those other -I options anyway. Ultimately, having this | |
12555 | # directory ultimately in CPPFLAGS will be enough. | |
12556 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | |
12557 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" | |
12558 | else | |
12559 | CFLAGS=$OLD_CFLAGS | |
12560 | CPPFLAGS=$OLD_CPPFLAGS | |
12561 | fi | |
98418dba CW |
12562 | fi |
12563 | fi | |
12564 | ||
12565 | ### Is -lXaw3d available? | |
12566 | HAVE_XAW3D=no | |
12567 | if test "${HAVE_X11}" = "yes"; then | |
7c00e1e9 | 12568 | if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then |
ca81d7a0 JD |
12569 | { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5 |
12570 | echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; } | |
98418dba CW |
12571 | if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then |
12572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
98418dba | 12573 | else |
22044edf | 12574 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12575 | /* confdefs.h. */ |
12576 | _ACEOF | |
12577 | cat confdefs.h >>conftest.$ac_ext | |
12578 | cat >>conftest.$ac_ext <<_ACEOF | |
12579 | /* end confdefs.h. */ | |
98418dba | 12580 | #include <X11/Xaw3d/Scrollbar.h> |
503d2be0 | 12581 | _ACEOF |
ca81d7a0 JD |
12582 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12583 | case "(($ac_try" in | |
12584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12585 | *) ac_try_echo=$ac_try;; | |
12586 | esac | |
12587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12588 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 12589 | ac_status=$? |
6bae0ccf | 12590 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
12591 | rm -f conftest.er1 |
12592 | cat conftest.err >&5 | |
c0d27fcc | 12593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12594 | (exit $ac_status); } >/dev/null && { |
12595 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12596 | test ! -s conftest.err | |
12597 | }; then | |
22044edf | 12598 | ac_cv_header_X11_Xaw3d_Scrollbar_h=yes |
ba4481b5 | 12599 | else |
503d2be0 | 12600 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12601 | sed 's/^/| /' conftest.$ac_ext >&5 |
12602 | ||
22044edf | 12603 | ac_cv_header_X11_Xaw3d_Scrollbar_h=no |
ba4481b5 | 12604 | fi |
ca81d7a0 | 12605 | |
503d2be0 | 12606 | rm -f conftest.err conftest.$ac_ext |
98418dba | 12607 | fi |
ca81d7a0 JD |
12608 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 |
12609 | echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; } | |
98418dba | 12610 | if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then |
ca81d7a0 JD |
12611 | { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
12612 | echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; } | |
98418dba CW |
12613 | if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then |
12614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12615 | else | |
12616 | ac_check_lib_save_LIBS=$LIBS | |
12617 | LIBS="-lXaw3d $LIBS" | |
12618 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12619 | /* confdefs.h. */ |
12620 | _ACEOF | |
12621 | cat confdefs.h >>conftest.$ac_ext | |
12622 | cat >>conftest.$ac_ext <<_ACEOF | |
12623 | /* end confdefs.h. */ | |
98418dba | 12624 | |
ca81d7a0 JD |
12625 | /* Override any GCC internal prototype to avoid an error. |
12626 | Use char because int might match the return type of a GCC | |
12627 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
12628 | #ifdef __cplusplus |
12629 | extern "C" | |
12630 | #endif | |
98418dba | 12631 | char XawScrollbarSetThumb (); |
503d2be0 AS |
12632 | int |
12633 | main () | |
12634 | { | |
ca81d7a0 | 12635 | return XawScrollbarSetThumb (); |
503d2be0 AS |
12636 | ; |
12637 | return 0; | |
12638 | } | |
12639 | _ACEOF | |
12640 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
12641 | if { (ac_try="$ac_link" |
12642 | case "(($ac_try" in | |
12643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12644 | *) ac_try_echo=$ac_try;; | |
12645 | esac | |
12646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12647 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 12648 | ac_status=$? |
edfaf76d LK |
12649 | grep -v '^ *+' conftest.er1 >conftest.err |
12650 | rm -f conftest.er1 | |
12651 | cat conftest.err >&5 | |
c0d27fcc | 12652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12653 | (exit $ac_status); } && { |
12654 | test -z "$ac_c_werror_flag" || | |
12655 | test ! -s conftest.err | |
12656 | } && test -s conftest$ac_exeext && | |
12657 | $as_test_x conftest$ac_exeext; then | |
98418dba | 12658 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes |
ba4481b5 | 12659 | else |
503d2be0 | 12660 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
12661 | sed 's/^/| /' conftest.$ac_ext >&5 |
12662 | ||
ca81d7a0 | 12663 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no |
ba4481b5 | 12664 | fi |
ca81d7a0 | 12665 | |
f053c89f | 12666 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 12667 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 12668 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 12669 | fi |
ca81d7a0 JD |
12670 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
12671 | echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; } | |
98418dba CW |
12672 | if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then |
12673 | HAVE_XAW3D=yes | |
ba4481b5 | 12674 | fi |
503d2be0 | 12675 | |
ba4481b5 DL |
12676 | fi |
12677 | ||
c0d27fcc | 12678 | |
98418dba | 12679 | if test "${HAVE_XAW3D}" = "yes"; then |
b936fae4 | 12680 | |
c0d27fcc | 12681 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12682 | #define HAVE_XAW3D 1 |
c0d27fcc | 12683 | _ACEOF |
98418dba | 12684 | |
ba4481b5 | 12685 | fi |
98418dba | 12686 | fi |
ba4481b5 DL |
12687 | fi |
12688 | ||
c0d27fcc MR |
12689 | |
12690 | ||
98418dba CW |
12691 | USE_TOOLKIT_SCROLL_BARS=no |
12692 | if test "${with_toolkit_scroll_bars}" != "no"; then | |
12693 | if test "${USE_X_TOOLKIT}" != "none"; then | |
12694 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
c0d27fcc | 12695 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12696 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 12697 | _ACEOF |
98418dba CW |
12698 | |
12699 | HAVE_XAW3D=no | |
12700 | USE_TOOLKIT_SCROLL_BARS=yes | |
12701 | elif test "${HAVE_XAW3D}" = "yes"; then | |
c0d27fcc | 12702 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12703 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 12704 | _ACEOF |
98418dba CW |
12705 | |
12706 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 | 12707 | fi |
488dd4c4 JD |
12708 | elif test "${HAVE_GTK}" = "yes"; then |
12709 | cat >>confdefs.h <<\_ACEOF | |
12710 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
5d6da11e YM |
12711 | _ACEOF |
12712 | ||
12713 | USE_TOOLKIT_SCROLL_BARS=yes | |
12714 | elif test "${HAVE_CARBON}" = "yes"; then | |
12715 | cat >>confdefs.h <<\_ACEOF | |
12716 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
488dd4c4 JD |
12717 | _ACEOF |
12718 | ||
12719 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 DL |
12720 | fi |
12721 | fi | |
12722 | ||
abd39b57 | 12723 | cat >conftest.$ac_ext <<_ACEOF |
abd39b57 AC |
12724 | /* confdefs.h. */ |
12725 | _ACEOF | |
12726 | cat confdefs.h >>conftest.$ac_ext | |
12727 | cat >>conftest.$ac_ext <<_ACEOF | |
12728 | /* end confdefs.h. */ | |
12729 | ||
12730 | #include <X11/Xlib.h> | |
12731 | #include <X11/Xresource.h> | |
12732 | int | |
12733 | main () | |
12734 | { | |
12735 | XIMProc callback; | |
12736 | ; | |
12737 | return 0; | |
12738 | } | |
12739 | _ACEOF | |
12740 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
12741 | if { (ac_try="$ac_compile" |
12742 | case "(($ac_try" in | |
12743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12744 | *) ac_try_echo=$ac_try;; | |
12745 | esac | |
12746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12747 | (eval "$ac_compile") 2>conftest.er1 | |
abd39b57 | 12748 | ac_status=$? |
edfaf76d LK |
12749 | grep -v '^ *+' conftest.er1 >conftest.err |
12750 | rm -f conftest.er1 | |
12751 | cat conftest.err >&5 | |
abd39b57 | 12752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12753 | (exit $ac_status); } && { |
12754 | test -z "$ac_c_werror_flag" || | |
12755 | test ! -s conftest.err | |
12756 | } && test -s conftest.$ac_objext; then | |
abd39b57 AC |
12757 | HAVE_XIM=yes |
12758 | ||
12759 | cat >>confdefs.h <<\_ACEOF | |
12760 | #define HAVE_XIM 1 | |
12761 | _ACEOF | |
12762 | ||
12763 | else | |
12764 | echo "$as_me: failed program was:" >&5 | |
12765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12766 | ||
ca81d7a0 | 12767 | HAVE_XIM=no |
abd39b57 | 12768 | fi |
ca81d7a0 JD |
12769 | |
12770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
abd39b57 | 12771 | |
c0d27fcc | 12772 | |
98418dba | 12773 | if test "${with_xim}" != "no"; then |
b936fae4 | 12774 | |
c0d27fcc | 12775 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12776 | #define USE_XIM 1 |
c0d27fcc | 12777 | _ACEOF |
98418dba | 12778 | |
793fa0d7 | 12779 | fi |
abd39b57 AC |
12780 | |
12781 | ||
12782 | if test "${HAVE_XIM}" != "no"; then | |
849d80cf DL |
12783 | late_CFLAGS=$CFLAGS |
12784 | if test "$GCC" = yes; then | |
12785 | CFLAGS="$CFLAGS --pedantic-errors" | |
12786 | fi | |
cffcede7 | 12787 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12788 | /* confdefs.h. */ |
12789 | _ACEOF | |
12790 | cat confdefs.h >>conftest.$ac_ext | |
12791 | cat >>conftest.$ac_ext <<_ACEOF | |
12792 | /* end confdefs.h. */ | |
cffcede7 JD |
12793 | |
12794 | #include <X11/Xlib.h> | |
12795 | #include <X11/Xresource.h> | |
12796 | int | |
12797 | main () | |
12798 | { | |
12799 | Display *display; | |
12800 | XrmDatabase db; | |
12801 | char *res_name; | |
12802 | char *res_class; | |
12803 | XIMProc callback; | |
12804 | XPointer *client_data; | |
849d80cf DL |
12805 | #ifndef __GNUC__ |
12806 | /* If we're not using GCC, it's probably not XFree86, and this is | |
12807 | probably right, but we can't use something like --pedantic-errors. */ | |
12808 | extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, | |
12809 | char*, XIMProc, XPointer*); | |
12810 | #endif | |
cffcede7 JD |
12811 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, |
12812 | client_data); | |
12813 | ; | |
12814 | return 0; | |
12815 | } | |
12816 | _ACEOF | |
12817 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
12818 | if { (ac_try="$ac_compile" |
12819 | case "(($ac_try" in | |
12820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12821 | *) ac_try_echo=$ac_try;; | |
12822 | esac | |
12823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12824 | (eval "$ac_compile") 2>conftest.er1 | |
cffcede7 | 12825 | ac_status=$? |
edfaf76d LK |
12826 | grep -v '^ *+' conftest.er1 >conftest.err |
12827 | rm -f conftest.er1 | |
12828 | cat conftest.err >&5 | |
cffcede7 | 12829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12830 | (exit $ac_status); } && { |
12831 | test -z "$ac_c_werror_flag" || | |
12832 | test ! -s conftest.err | |
12833 | } && test -s conftest.$ac_objext; then | |
cffcede7 JD |
12834 | emacs_cv_arg6_star=yes |
12835 | else | |
12836 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12837 | sed 's/^/| /' conftest.$ac_ext >&5 |
12838 | ||
ca81d7a0 | 12839 | |
cffcede7 | 12840 | fi |
ca81d7a0 JD |
12841 | |
12842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cffcede7 JD |
12843 | |
12844 | if test "$emacs_cv_arg6_star" = yes; then | |
f57bd967 | 12845 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
12846 | #define XRegisterIMInstantiateCallback_arg6 XPointer* |
12847 | _ACEOF | |
12848 | ||
12849 | else | |
f57bd967 | 12850 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
12851 | #define XRegisterIMInstantiateCallback_arg6 XPointer |
12852 | _ACEOF | |
12853 | ||
12854 | fi | |
849d80cf | 12855 | CFLAGS=$late_CFLAGS |
98418dba CW |
12856 | fi |
12857 | ||
12858 | ### Use -lXpm if available, unless `--with-xpm=no'. | |
12859 | HAVE_XPM=no | |
12860 | if test "${HAVE_X11}" = "yes"; then | |
12861 | if test "${with_xpm}" != "no"; then | |
c0d27fcc | 12862 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
ca81d7a0 JD |
12863 | { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 |
12864 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; } | |
98418dba CW |
12865 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
12866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 12867 | fi |
ca81d7a0 JD |
12868 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 |
12869 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; } | |
98418dba | 12870 | else |
c0d27fcc | 12871 | # Is the header compilable? |
ca81d7a0 JD |
12872 | { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 |
12873 | echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 12874 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12875 | /* confdefs.h. */ |
12876 | _ACEOF | |
12877 | cat confdefs.h >>conftest.$ac_ext | |
12878 | cat >>conftest.$ac_ext <<_ACEOF | |
12879 | /* end confdefs.h. */ | |
c0d27fcc MR |
12880 | $ac_includes_default |
12881 | #include <X11/xpm.h> | |
12882 | _ACEOF | |
12883 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
12884 | if { (ac_try="$ac_compile" |
12885 | case "(($ac_try" in | |
12886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12887 | *) ac_try_echo=$ac_try;; | |
12888 | esac | |
12889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12890 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 12891 | ac_status=$? |
edfaf76d LK |
12892 | grep -v '^ *+' conftest.er1 >conftest.err |
12893 | rm -f conftest.er1 | |
12894 | cat conftest.err >&5 | |
c0d27fcc | 12895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12896 | (exit $ac_status); } && { |
12897 | test -z "$ac_c_werror_flag" || | |
12898 | test ! -s conftest.err | |
12899 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
12900 | ac_header_compiler=yes |
12901 | else | |
12902 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12903 | sed 's/^/| /' conftest.$ac_ext >&5 |
12904 | ||
ca81d7a0 | 12905 | ac_header_compiler=no |
c0d27fcc | 12906 | fi |
ca81d7a0 JD |
12907 | |
12908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12909 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12910 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
12911 | |
12912 | # Is the header present? | |
ca81d7a0 JD |
12913 | { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 |
12914 | echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 12915 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12916 | /* confdefs.h. */ |
12917 | _ACEOF | |
12918 | cat confdefs.h >>conftest.$ac_ext | |
12919 | cat >>conftest.$ac_ext <<_ACEOF | |
12920 | /* end confdefs.h. */ | |
98418dba CW |
12921 | #include <X11/xpm.h> |
12922 | _ACEOF | |
ca81d7a0 JD |
12923 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12924 | case "(($ac_try" in | |
12925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12926 | *) ac_try_echo=$ac_try;; | |
12927 | esac | |
12928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12929 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 12930 | ac_status=$? |
6bae0ccf | 12931 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
12932 | rm -f conftest.er1 |
12933 | cat conftest.err >&5 | |
c0d27fcc | 12934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12935 | (exit $ac_status); } >/dev/null && { |
12936 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12937 | test ! -s conftest.err | |
12938 | }; then | |
c0d27fcc | 12939 | ac_header_preproc=yes |
98418dba CW |
12940 | else |
12941 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12942 | sed 's/^/| /' conftest.$ac_ext >&5 |
12943 | ||
c0d27fcc | 12944 | ac_header_preproc=no |
98418dba | 12945 | fi |
ca81d7a0 | 12946 | |
98418dba | 12947 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
12948 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12949 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
12950 | |
12951 | # So? What about this header? | |
edfaf76d LK |
12952 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12953 | yes:no: ) | |
c0d27fcc MR |
12954 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
12955 | echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
12956 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5 |
12957 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;} | |
12958 | ac_header_preproc=yes | |
12959 | ;; | |
12960 | no:yes:* ) | |
12961 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 | |
12962 | echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} | |
12963 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 | |
12964 | echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} | |
12965 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5 | |
12966 | echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;} | |
12967 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
12968 | echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7c9e5167 JD |
12969 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 |
12970 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
12971 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5 |
12972 | echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 12973 | |
19650fd6 | 12974 | ;; |
c0d27fcc | 12975 | esac |
ca81d7a0 JD |
12976 | { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 |
12977 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
12978 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
12979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12980 | else | |
12981 | ac_cv_header_X11_xpm_h=$ac_header_preproc | |
ba4481b5 | 12982 | fi |
ca81d7a0 JD |
12983 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 |
12984 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; } | |
c0d27fcc MR |
12985 | |
12986 | fi | |
98418dba | 12987 | if test $ac_cv_header_X11_xpm_h = yes; then |
ca81d7a0 JD |
12988 | { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5 |
12989 | echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; } | |
98418dba | 12990 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then |
503d2be0 | 12991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 12992 | else |
98418dba CW |
12993 | ac_check_lib_save_LIBS=$LIBS |
12994 | LIBS="-lXpm -lX11 $LIBS" | |
12995 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12996 | /* confdefs.h. */ |
12997 | _ACEOF | |
12998 | cat confdefs.h >>conftest.$ac_ext | |
12999 | cat >>conftest.$ac_ext <<_ACEOF | |
13000 | /* end confdefs.h. */ | |
98418dba | 13001 | |
ca81d7a0 JD |
13002 | /* Override any GCC internal prototype to avoid an error. |
13003 | Use char because int might match the return type of a GCC | |
13004 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
13005 | #ifdef __cplusplus |
13006 | extern "C" | |
13007 | #endif | |
98418dba | 13008 | char XpmReadFileToPixmap (); |
503d2be0 AS |
13009 | int |
13010 | main () | |
13011 | { | |
ca81d7a0 | 13012 | return XpmReadFileToPixmap (); |
503d2be0 AS |
13013 | ; |
13014 | return 0; | |
13015 | } | |
13016 | _ACEOF | |
13017 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
13018 | if { (ac_try="$ac_link" |
13019 | case "(($ac_try" in | |
13020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13021 | *) ac_try_echo=$ac_try;; | |
13022 | esac | |
13023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13024 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 13025 | ac_status=$? |
edfaf76d LK |
13026 | grep -v '^ *+' conftest.er1 >conftest.err |
13027 | rm -f conftest.er1 | |
13028 | cat conftest.err >&5 | |
c0d27fcc | 13029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13030 | (exit $ac_status); } && { |
13031 | test -z "$ac_c_werror_flag" || | |
13032 | test ! -s conftest.err | |
13033 | } && test -s conftest$ac_exeext && | |
13034 | $as_test_x conftest$ac_exeext; then | |
98418dba | 13035 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes |
503d2be0 AS |
13036 | else |
13037 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13038 | sed 's/^/| /' conftest.$ac_ext >&5 |
13039 | ||
ca81d7a0 | 13040 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no |
503d2be0 | 13041 | fi |
ca81d7a0 | 13042 | |
f053c89f | 13043 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 13044 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 13045 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 13046 | fi |
ca81d7a0 JD |
13047 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
13048 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } | |
98418dba CW |
13049 | if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then |
13050 | HAVE_XPM=yes | |
ba4481b5 DL |
13051 | fi |
13052 | ||
98418dba CW |
13053 | fi |
13054 | ||
c0d27fcc | 13055 | |
98418dba | 13056 | if test "${HAVE_XPM}" = "yes"; then |
ca81d7a0 JD |
13057 | { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 |
13058 | echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; } | |
98418dba | 13059 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13060 | /* confdefs.h. */ |
13061 | _ACEOF | |
13062 | cat confdefs.h >>conftest.$ac_ext | |
13063 | cat >>conftest.$ac_ext <<_ACEOF | |
13064 | /* end confdefs.h. */ | |
98418dba CW |
13065 | #include "X11/xpm.h" |
13066 | #ifndef XpmReturnAllocPixels | |
13067 | no_return_alloc_pixels | |
503d2be0 | 13068 | #endif |
ba4481b5 | 13069 | |
98418dba CW |
13070 | _ACEOF |
13071 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 13072 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then |
98418dba CW |
13073 | HAVE_XPM=no |
13074 | else | |
13075 | HAVE_XPM=yes | |
13076 | fi | |
13077 | rm -f conftest* | |
ba4481b5 | 13078 | |
c0d27fcc | 13079 | |
98418dba | 13080 | if test "${HAVE_XPM}" = "yes"; then |
ca81d7a0 JD |
13081 | { echo "$as_me:$LINENO: result: yes" >&5 |
13082 | echo "${ECHO_T}yes" >&6; } | |
98418dba | 13083 | else |
ca81d7a0 JD |
13084 | { echo "$as_me:$LINENO: result: no" >&5 |
13085 | echo "${ECHO_T}no" >&6; } | |
98418dba CW |
13086 | fi |
13087 | fi | |
13088 | fi | |
13089 | ||
13090 | if test "${HAVE_XPM}" = "yes"; then | |
b936fae4 | 13091 | |
c0d27fcc | 13092 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13093 | #define HAVE_XPM 1 |
c0d27fcc | 13094 | _ACEOF |
98418dba CW |
13095 | |
13096 | fi | |
13097 | fi | |
13098 | ||
13099 | ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
13100 | HAVE_JPEG=no | |
13101 | if test "${HAVE_X11}" = "yes"; then | |
13102 | if test "${with_jpeg}" != "no"; then | |
c0d27fcc | 13103 | if test "${ac_cv_header_jerror_h+set}" = set; then |
ca81d7a0 JD |
13104 | { echo "$as_me:$LINENO: checking for jerror.h" >&5 |
13105 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; } | |
98418dba CW |
13106 | if test "${ac_cv_header_jerror_h+set}" = set; then |
13107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 13108 | fi |
ca81d7a0 JD |
13109 | { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
13110 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; } | |
503d2be0 | 13111 | else |
c0d27fcc | 13112 | # Is the header compilable? |
ca81d7a0 JD |
13113 | { echo "$as_me:$LINENO: checking jerror.h usability" >&5 |
13114 | echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 13115 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13116 | /* confdefs.h. */ |
13117 | _ACEOF | |
13118 | cat confdefs.h >>conftest.$ac_ext | |
13119 | cat >>conftest.$ac_ext <<_ACEOF | |
13120 | /* end confdefs.h. */ | |
c0d27fcc MR |
13121 | $ac_includes_default |
13122 | #include <jerror.h> | |
13123 | _ACEOF | |
13124 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
13125 | if { (ac_try="$ac_compile" |
13126 | case "(($ac_try" in | |
13127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13128 | *) ac_try_echo=$ac_try;; | |
13129 | esac | |
13130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13131 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 13132 | ac_status=$? |
edfaf76d LK |
13133 | grep -v '^ *+' conftest.er1 >conftest.err |
13134 | rm -f conftest.er1 | |
13135 | cat conftest.err >&5 | |
c0d27fcc | 13136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13137 | (exit $ac_status); } && { |
13138 | test -z "$ac_c_werror_flag" || | |
13139 | test ! -s conftest.err | |
13140 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
13141 | ac_header_compiler=yes |
13142 | else | |
13143 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13144 | sed 's/^/| /' conftest.$ac_ext >&5 |
13145 | ||
ca81d7a0 | 13146 | ac_header_compiler=no |
c0d27fcc | 13147 | fi |
ca81d7a0 JD |
13148 | |
13149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13150 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13151 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
13152 | |
13153 | # Is the header present? | |
ca81d7a0 JD |
13154 | { echo "$as_me:$LINENO: checking jerror.h presence" >&5 |
13155 | echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 13156 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13157 | /* confdefs.h. */ |
13158 | _ACEOF | |
13159 | cat confdefs.h >>conftest.$ac_ext | |
13160 | cat >>conftest.$ac_ext <<_ACEOF | |
13161 | /* end confdefs.h. */ | |
98418dba CW |
13162 | #include <jerror.h> |
13163 | _ACEOF | |
ca81d7a0 JD |
13164 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13165 | case "(($ac_try" in | |
13166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13167 | *) ac_try_echo=$ac_try;; | |
13168 | esac | |
13169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13170 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 13171 | ac_status=$? |
6bae0ccf | 13172 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13173 | rm -f conftest.er1 |
13174 | cat conftest.err >&5 | |
c0d27fcc | 13175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13176 | (exit $ac_status); } >/dev/null && { |
13177 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13178 | test ! -s conftest.err | |
13179 | }; then | |
c0d27fcc | 13180 | ac_header_preproc=yes |
ba4481b5 | 13181 | else |
98418dba | 13182 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13183 | sed 's/^/| /' conftest.$ac_ext >&5 |
13184 | ||
c0d27fcc | 13185 | ac_header_preproc=no |
98418dba | 13186 | fi |
ca81d7a0 | 13187 | |
98418dba | 13188 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
13189 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13190 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
13191 | |
13192 | # So? What about this header? | |
edfaf76d LK |
13193 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13194 | yes:no: ) | |
c0d27fcc MR |
13195 | { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
13196 | echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
13197 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5 |
13198 | echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;} | |
13199 | ac_header_preproc=yes | |
19650fd6 | 13200 | ;; |
edfaf76d | 13201 | no:yes:* ) |
c0d27fcc MR |
13202 | { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 |
13203 | echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
13204 | { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 |
13205 | echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} | |
13206 | { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5 | |
13207 | echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;} | |
13208 | { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13209 | echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13210 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13211 | echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
13212 | { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5 |
13213 | echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 13214 | |
19650fd6 | 13215 | ;; |
c0d27fcc | 13216 | esac |
ca81d7a0 JD |
13217 | { echo "$as_me:$LINENO: checking for jerror.h" >&5 |
13218 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
13219 | if test "${ac_cv_header_jerror_h+set}" = set; then |
13220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13221 | else | |
13222 | ac_cv_header_jerror_h=$ac_header_preproc | |
ba4481b5 | 13223 | fi |
ca81d7a0 JD |
13224 | { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
13225 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; } | |
c0d27fcc MR |
13226 | |
13227 | fi | |
98418dba | 13228 | if test $ac_cv_header_jerror_h = yes; then |
ca81d7a0 JD |
13229 | { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5 |
13230 | echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; } | |
98418dba | 13231 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then |
503d2be0 | 13232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13233 | else |
98418dba CW |
13234 | ac_check_lib_save_LIBS=$LIBS |
13235 | LIBS="-ljpeg $LIBS" | |
13236 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13237 | /* confdefs.h. */ |
13238 | _ACEOF | |
13239 | cat confdefs.h >>conftest.$ac_ext | |
13240 | cat >>conftest.$ac_ext <<_ACEOF | |
13241 | /* end confdefs.h. */ | |
98418dba | 13242 | |
ca81d7a0 JD |
13243 | /* Override any GCC internal prototype to avoid an error. |
13244 | Use char because int might match the return type of a GCC | |
13245 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
13246 | #ifdef __cplusplus |
13247 | extern "C" | |
13248 | #endif | |
98418dba | 13249 | char jpeg_destroy_compress (); |
503d2be0 AS |
13250 | int |
13251 | main () | |
13252 | { | |
ca81d7a0 | 13253 | return jpeg_destroy_compress (); |
503d2be0 AS |
13254 | ; |
13255 | return 0; | |
13256 | } | |
13257 | _ACEOF | |
13258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
13259 | if { (ac_try="$ac_link" |
13260 | case "(($ac_try" in | |
13261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13262 | *) ac_try_echo=$ac_try;; | |
13263 | esac | |
13264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13265 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 13266 | ac_status=$? |
edfaf76d LK |
13267 | grep -v '^ *+' conftest.er1 >conftest.err |
13268 | rm -f conftest.er1 | |
13269 | cat conftest.err >&5 | |
c0d27fcc | 13270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13271 | (exit $ac_status); } && { |
13272 | test -z "$ac_c_werror_flag" || | |
13273 | test ! -s conftest.err | |
13274 | } && test -s conftest$ac_exeext && | |
13275 | $as_test_x conftest$ac_exeext; then | |
98418dba | 13276 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes |
ba4481b5 | 13277 | else |
503d2be0 | 13278 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13279 | sed 's/^/| /' conftest.$ac_ext >&5 |
13280 | ||
ca81d7a0 | 13281 | ac_cv_lib_jpeg_jpeg_destroy_compress=no |
ba4481b5 | 13282 | fi |
ca81d7a0 | 13283 | |
f053c89f | 13284 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 13285 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 13286 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 13287 | fi |
ca81d7a0 JD |
13288 | { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
13289 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } | |
98418dba CW |
13290 | if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then |
13291 | HAVE_JPEG=yes | |
ba4481b5 | 13292 | fi |
98418dba | 13293 | |
ba4481b5 | 13294 | fi |
98418dba | 13295 | |
c0d27fcc | 13296 | |
ba4481b5 | 13297 | fi |
ba4481b5 | 13298 | |
c0d27fcc | 13299 | |
98418dba | 13300 | if test "${HAVE_JPEG}" = "yes"; then |
c0d27fcc | 13301 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13302 | #define HAVE_JPEG 1 |
c0d27fcc | 13303 | _ACEOF |
98418dba CW |
13304 | |
13305 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13306 | /* confdefs.h. */ |
13307 | _ACEOF | |
13308 | cat confdefs.h >>conftest.$ac_ext | |
13309 | cat >>conftest.$ac_ext <<_ACEOF | |
13310 | /* end confdefs.h. */ | |
22044edf | 13311 | #include <jpeglib.h> |
98418dba CW |
13312 | version=JPEG_LIB_VERSION |
13313 | ||
13314 | _ACEOF | |
13315 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 13316 | $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then |
c0d27fcc | 13317 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13318 | #define HAVE_JPEG 1 |
c0d27fcc | 13319 | _ACEOF |
ba4481b5 | 13320 | |
98418dba | 13321 | else |
c0d27fcc | 13322 | { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 |
98418dba CW |
13323 | echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
13324 | HAVE_JPEG=no | |
ba4481b5 | 13325 | fi |
98418dba | 13326 | rm -f conftest* |
ba4481b5 | 13327 | |
98418dba CW |
13328 | fi |
13329 | fi | |
503d2be0 | 13330 | |
98418dba CW |
13331 | ### Use -lpng if available, unless `--with-png=no'. |
13332 | HAVE_PNG=no | |
13333 | if test "${HAVE_X11}" = "yes"; then | |
13334 | if test "${with_png}" != "no"; then | |
f57bd967 DL |
13335 | # Debian unstable as of July 2003 has multiple libpngs, and puts png.h |
13336 | # in /usr/include/libpng. | |
13337 | ||
13338 | ||
13339 | for ac_header in png.h libpng/png.h | |
13340 | do | |
13341 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
13342 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
13343 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13344 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
13345 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 13346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 13347 | fi |
ca81d7a0 JD |
13348 | ac_res=`eval echo '${'$as_ac_Header'}'` |
13349 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13350 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 13351 | else |
c0d27fcc | 13352 | # Is the header compilable? |
ca81d7a0 JD |
13353 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13354 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 13355 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13356 | /* confdefs.h. */ |
13357 | _ACEOF | |
13358 | cat confdefs.h >>conftest.$ac_ext | |
13359 | cat >>conftest.$ac_ext <<_ACEOF | |
13360 | /* end confdefs.h. */ | |
c0d27fcc | 13361 | $ac_includes_default |
f57bd967 | 13362 | #include <$ac_header> |
c0d27fcc MR |
13363 | _ACEOF |
13364 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
13365 | if { (ac_try="$ac_compile" |
13366 | case "(($ac_try" in | |
13367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13368 | *) ac_try_echo=$ac_try;; | |
13369 | esac | |
13370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13371 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 13372 | ac_status=$? |
edfaf76d LK |
13373 | grep -v '^ *+' conftest.er1 >conftest.err |
13374 | rm -f conftest.er1 | |
13375 | cat conftest.err >&5 | |
c0d27fcc | 13376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13377 | (exit $ac_status); } && { |
13378 | test -z "$ac_c_werror_flag" || | |
13379 | test ! -s conftest.err | |
13380 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
13381 | ac_header_compiler=yes |
13382 | else | |
13383 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13384 | sed 's/^/| /' conftest.$ac_ext >&5 |
13385 | ||
ca81d7a0 | 13386 | ac_header_compiler=no |
c0d27fcc | 13387 | fi |
ca81d7a0 JD |
13388 | |
13389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13390 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13391 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
13392 | |
13393 | # Is the header present? | |
ca81d7a0 JD |
13394 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13395 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 13396 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13397 | /* confdefs.h. */ |
13398 | _ACEOF | |
13399 | cat confdefs.h >>conftest.$ac_ext | |
13400 | cat >>conftest.$ac_ext <<_ACEOF | |
13401 | /* end confdefs.h. */ | |
f57bd967 | 13402 | #include <$ac_header> |
503d2be0 | 13403 | _ACEOF |
ca81d7a0 JD |
13404 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13405 | case "(($ac_try" in | |
13406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13407 | *) ac_try_echo=$ac_try;; | |
13408 | esac | |
13409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13410 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 13411 | ac_status=$? |
6bae0ccf | 13412 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
13413 | rm -f conftest.er1 |
13414 | cat conftest.err >&5 | |
c0d27fcc | 13415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13416 | (exit $ac_status); } >/dev/null && { |
13417 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13418 | test ! -s conftest.err | |
13419 | }; then | |
c0d27fcc | 13420 | ac_header_preproc=yes |
503d2be0 AS |
13421 | else |
13422 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13423 | sed 's/^/| /' conftest.$ac_ext >&5 |
13424 | ||
c0d27fcc | 13425 | ac_header_preproc=no |
ba4481b5 | 13426 | fi |
ca81d7a0 | 13427 | |
503d2be0 | 13428 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
13429 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13430 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
13431 | |
13432 | # So? What about this header? | |
edfaf76d LK |
13433 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13434 | yes:no: ) | |
f57bd967 DL |
13435 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13436 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
13437 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13438 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13439 | ac_header_preproc=yes | |
19650fd6 | 13440 | ;; |
edfaf76d | 13441 | no:yes:* ) |
f57bd967 DL |
13442 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13443 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
13444 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13445 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13446 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13447 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13448 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13449 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
f57bd967 | 13450 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13451 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
13452 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13453 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 13454 | |
19650fd6 | 13455 | ;; |
c0d27fcc | 13456 | esac |
ca81d7a0 JD |
13457 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13458 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
13459 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
13460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13461 | else | |
edfaf76d | 13462 | eval "$as_ac_Header=\$ac_header_preproc" |
f57bd967 | 13463 | fi |
ca81d7a0 JD |
13464 | ac_res=`eval echo '${'$as_ac_Header'}'` |
13465 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13466 | echo "${ECHO_T}$ac_res" >&6; } | |
f57bd967 | 13467 | |
ba4481b5 | 13468 | fi |
f57bd967 DL |
13469 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13470 | cat >>confdefs.h <<_ACEOF | |
13471 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13472 | _ACEOF | |
c0d27fcc MR |
13473 | |
13474 | fi | |
f57bd967 DL |
13475 | |
13476 | done | |
13477 | ||
13478 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | |
ca81d7a0 JD |
13479 | { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 |
13480 | echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; } | |
98418dba | 13481 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then |
503d2be0 | 13482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13483 | else |
98418dba CW |
13484 | ac_check_lib_save_LIBS=$LIBS |
13485 | LIBS="-lpng -lz -lm $LIBS" | |
13486 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13487 | /* confdefs.h. */ |
13488 | _ACEOF | |
13489 | cat confdefs.h >>conftest.$ac_ext | |
13490 | cat >>conftest.$ac_ext <<_ACEOF | |
13491 | /* end confdefs.h. */ | |
98418dba | 13492 | |
ca81d7a0 JD |
13493 | /* Override any GCC internal prototype to avoid an error. |
13494 | Use char because int might match the return type of a GCC | |
13495 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
13496 | #ifdef __cplusplus |
13497 | extern "C" | |
13498 | #endif | |
98418dba | 13499 | char png_get_channels (); |
503d2be0 AS |
13500 | int |
13501 | main () | |
13502 | { | |
ca81d7a0 | 13503 | return png_get_channels (); |
503d2be0 AS |
13504 | ; |
13505 | return 0; | |
13506 | } | |
13507 | _ACEOF | |
13508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
13509 | if { (ac_try="$ac_link" |
13510 | case "(($ac_try" in | |
13511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13512 | *) ac_try_echo=$ac_try;; | |
13513 | esac | |
13514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13515 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 13516 | ac_status=$? |
edfaf76d LK |
13517 | grep -v '^ *+' conftest.er1 >conftest.err |
13518 | rm -f conftest.er1 | |
13519 | cat conftest.err >&5 | |
c0d27fcc | 13520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13521 | (exit $ac_status); } && { |
13522 | test -z "$ac_c_werror_flag" || | |
13523 | test ! -s conftest.err | |
13524 | } && test -s conftest$ac_exeext && | |
13525 | $as_test_x conftest$ac_exeext; then | |
98418dba | 13526 | ac_cv_lib_png_png_get_channels=yes |
73b77ee5 | 13527 | else |
98418dba | 13528 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13529 | sed 's/^/| /' conftest.$ac_ext >&5 |
13530 | ||
ca81d7a0 | 13531 | ac_cv_lib_png_png_get_channels=no |
73b77ee5 | 13532 | fi |
ca81d7a0 | 13533 | |
f053c89f | 13534 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 13535 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 13536 | LIBS=$ac_check_lib_save_LIBS |
73b77ee5 | 13537 | fi |
ca81d7a0 JD |
13538 | { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 |
13539 | echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; } | |
98418dba CW |
13540 | if test $ac_cv_lib_png_png_get_channels = yes; then |
13541 | HAVE_PNG=yes | |
73b77ee5 | 13542 | fi |
503d2be0 | 13543 | |
f57bd967 | 13544 | fi |
98418dba CW |
13545 | fi |
13546 | ||
13547 | if test "${HAVE_PNG}" = "yes"; then | |
b936fae4 | 13548 | |
c0d27fcc | 13549 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13550 | #define HAVE_PNG 1 |
c0d27fcc | 13551 | _ACEOF |
73b77ee5 | 13552 | |
98418dba | 13553 | fi |
73b77ee5 GM |
13554 | fi |
13555 | ||
98418dba CW |
13556 | ### Use -ltiff if available, unless `--with-tiff=no'. |
13557 | HAVE_TIFF=no | |
13558 | if test "${HAVE_X11}" = "yes"; then | |
13559 | if test "${with_tiff}" != "no"; then | |
c0d27fcc | 13560 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
ca81d7a0 JD |
13561 | { echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
13562 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; } | |
98418dba CW |
13563 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
13564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 13565 | fi |
ca81d7a0 JD |
13566 | { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
13567 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; } | |
98418dba | 13568 | else |
c0d27fcc | 13569 | # Is the header compilable? |
ca81d7a0 JD |
13570 | { echo "$as_me:$LINENO: checking tiffio.h usability" >&5 |
13571 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 13572 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13573 | /* confdefs.h. */ |
13574 | _ACEOF | |
13575 | cat confdefs.h >>conftest.$ac_ext | |
13576 | cat >>conftest.$ac_ext <<_ACEOF | |
13577 | /* end confdefs.h. */ | |
c0d27fcc MR |
13578 | $ac_includes_default |
13579 | #include <tiffio.h> | |
13580 | _ACEOF | |
13581 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
13582 | if { (ac_try="$ac_compile" |
13583 | case "(($ac_try" in | |
13584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13585 | *) ac_try_echo=$ac_try;; | |
13586 | esac | |
13587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13588 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 13589 | ac_status=$? |
edfaf76d LK |
13590 | grep -v '^ *+' conftest.er1 >conftest.err |
13591 | rm -f conftest.er1 | |
13592 | cat conftest.err >&5 | |
c0d27fcc | 13593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13594 | (exit $ac_status); } && { |
13595 | test -z "$ac_c_werror_flag" || | |
13596 | test ! -s conftest.err | |
13597 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
13598 | ac_header_compiler=yes |
13599 | else | |
13600 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13601 | sed 's/^/| /' conftest.$ac_ext >&5 |
13602 | ||
ca81d7a0 | 13603 | ac_header_compiler=no |
c0d27fcc | 13604 | fi |
ca81d7a0 JD |
13605 | |
13606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13607 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13608 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
13609 | |
13610 | # Is the header present? | |
ca81d7a0 JD |
13611 | { echo "$as_me:$LINENO: checking tiffio.h presence" >&5 |
13612 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 13613 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13614 | /* confdefs.h. */ |
13615 | _ACEOF | |
13616 | cat confdefs.h >>conftest.$ac_ext | |
13617 | cat >>conftest.$ac_ext <<_ACEOF | |
13618 | /* end confdefs.h. */ | |
98418dba CW |
13619 | #include <tiffio.h> |
13620 | _ACEOF | |
ca81d7a0 JD |
13621 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13622 | case "(($ac_try" in | |
13623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13624 | *) ac_try_echo=$ac_try;; | |
13625 | esac | |
13626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13627 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 13628 | ac_status=$? |
6bae0ccf | 13629 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13630 | rm -f conftest.er1 |
13631 | cat conftest.err >&5 | |
c0d27fcc | 13632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13633 | (exit $ac_status); } >/dev/null && { |
13634 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13635 | test ! -s conftest.err | |
13636 | }; then | |
c0d27fcc | 13637 | ac_header_preproc=yes |
98418dba CW |
13638 | else |
13639 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13640 | sed 's/^/| /' conftest.$ac_ext >&5 |
13641 | ||
c0d27fcc | 13642 | ac_header_preproc=no |
98418dba | 13643 | fi |
ca81d7a0 | 13644 | |
98418dba | 13645 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
13646 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13647 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
13648 | |
13649 | # So? What about this header? | |
edfaf76d LK |
13650 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13651 | yes:no: ) | |
c0d27fcc MR |
13652 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
13653 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
13654 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
13655 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
13656 | ac_header_preproc=yes | |
19650fd6 | 13657 | ;; |
edfaf76d | 13658 | no:yes:* ) |
c0d27fcc MR |
13659 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
13660 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
13661 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
13662 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
13663 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
13664 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
13665 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13666 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13667 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13668 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
13669 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
13670 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 13671 | |
19650fd6 | 13672 | ;; |
c0d27fcc | 13673 | esac |
ca81d7a0 JD |
13674 | { echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
13675 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
13676 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
13677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13678 | else | |
13679 | ac_cv_header_tiffio_h=$ac_header_preproc | |
98418dba | 13680 | fi |
ca81d7a0 JD |
13681 | { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
13682 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; } | |
c0d27fcc MR |
13683 | |
13684 | fi | |
98418dba CW |
13685 | if test $ac_cv_header_tiffio_h = yes; then |
13686 | tifflibs="-lz -lm" | |
13687 | # At least one tiff package requires the jpeg library. | |
13688 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
ca81d7a0 JD |
13689 | { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 |
13690 | echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; } | |
98418dba | 13691 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then |
503d2be0 | 13692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 13693 | else |
503d2be0 | 13694 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 13695 | LIBS="-ltiff $tifflibs $LIBS" |
503d2be0 | 13696 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13697 | /* confdefs.h. */ |
13698 | _ACEOF | |
13699 | cat confdefs.h >>conftest.$ac_ext | |
13700 | cat >>conftest.$ac_ext <<_ACEOF | |
13701 | /* end confdefs.h. */ | |
503d2be0 | 13702 | |
ca81d7a0 JD |
13703 | /* Override any GCC internal prototype to avoid an error. |
13704 | Use char because int might match the return type of a GCC | |
13705 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
13706 | #ifdef __cplusplus |
13707 | extern "C" | |
13708 | #endif | |
98418dba | 13709 | char TIFFGetVersion (); |
503d2be0 AS |
13710 | int |
13711 | main () | |
13712 | { | |
ca81d7a0 | 13713 | return TIFFGetVersion (); |
503d2be0 AS |
13714 | ; |
13715 | return 0; | |
13716 | } | |
13717 | _ACEOF | |
13718 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
13719 | if { (ac_try="$ac_link" |
13720 | case "(($ac_try" in | |
13721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13722 | *) ac_try_echo=$ac_try;; | |
13723 | esac | |
13724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13725 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 13726 | ac_status=$? |
edfaf76d LK |
13727 | grep -v '^ *+' conftest.er1 >conftest.err |
13728 | rm -f conftest.er1 | |
13729 | cat conftest.err >&5 | |
c0d27fcc | 13730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13731 | (exit $ac_status); } && { |
13732 | test -z "$ac_c_werror_flag" || | |
13733 | test ! -s conftest.err | |
13734 | } && test -s conftest$ac_exeext && | |
13735 | $as_test_x conftest$ac_exeext; then | |
98418dba | 13736 | ac_cv_lib_tiff_TIFFGetVersion=yes |
503d2be0 AS |
13737 | else |
13738 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13739 | sed 's/^/| /' conftest.$ac_ext >&5 |
13740 | ||
ca81d7a0 | 13741 | ac_cv_lib_tiff_TIFFGetVersion=no |
503d2be0 | 13742 | fi |
ca81d7a0 | 13743 | |
f053c89f | 13744 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 13745 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
13746 | LIBS=$ac_check_lib_save_LIBS |
13747 | fi | |
ca81d7a0 JD |
13748 | { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
13749 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; } | |
98418dba CW |
13750 | if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then |
13751 | HAVE_TIFF=yes | |
13752 | fi | |
13753 | ||
13754 | fi | |
73b77ee5 | 13755 | |
c0d27fcc | 13756 | |
98418dba CW |
13757 | fi |
13758 | ||
13759 | if test "${HAVE_TIFF}" = "yes"; then | |
b936fae4 | 13760 | |
c0d27fcc | 13761 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13762 | #define HAVE_TIFF 1 |
c0d27fcc | 13763 | _ACEOF |
98418dba CW |
13764 | |
13765 | fi | |
73b77ee5 GM |
13766 | fi |
13767 | ||
98418dba CW |
13768 | ### Use -lgif if available, unless `--with-gif=no'. |
13769 | HAVE_GIF=no | |
13770 | if test "${HAVE_X11}" = "yes"; then | |
13771 | if test "${with_gif}" != "no"; then | |
c0d27fcc | 13772 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
ca81d7a0 JD |
13773 | { echo "$as_me:$LINENO: checking for gif_lib.h" >&5 |
13774 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; } | |
98418dba CW |
13775 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
13776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 13777 | fi |
ca81d7a0 JD |
13778 | { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 |
13779 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; } | |
98418dba | 13780 | else |
c0d27fcc | 13781 | # Is the header compilable? |
ca81d7a0 JD |
13782 | { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 |
13783 | echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 13784 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13785 | /* confdefs.h. */ |
13786 | _ACEOF | |
13787 | cat confdefs.h >>conftest.$ac_ext | |
13788 | cat >>conftest.$ac_ext <<_ACEOF | |
13789 | /* end confdefs.h. */ | |
c0d27fcc MR |
13790 | $ac_includes_default |
13791 | #include <gif_lib.h> | |
13792 | _ACEOF | |
13793 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
13794 | if { (ac_try="$ac_compile" |
13795 | case "(($ac_try" in | |
13796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13797 | *) ac_try_echo=$ac_try;; | |
13798 | esac | |
13799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13800 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 13801 | ac_status=$? |
edfaf76d LK |
13802 | grep -v '^ *+' conftest.er1 >conftest.err |
13803 | rm -f conftest.er1 | |
13804 | cat conftest.err >&5 | |
c0d27fcc | 13805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13806 | (exit $ac_status); } && { |
13807 | test -z "$ac_c_werror_flag" || | |
13808 | test ! -s conftest.err | |
13809 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
13810 | ac_header_compiler=yes |
13811 | else | |
13812 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13813 | sed 's/^/| /' conftest.$ac_ext >&5 |
13814 | ||
ca81d7a0 | 13815 | ac_header_compiler=no |
c0d27fcc | 13816 | fi |
ca81d7a0 JD |
13817 | |
13818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13819 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13820 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
13821 | |
13822 | # Is the header present? | |
ca81d7a0 JD |
13823 | { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 |
13824 | echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 13825 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13826 | /* confdefs.h. */ |
13827 | _ACEOF | |
13828 | cat confdefs.h >>conftest.$ac_ext | |
13829 | cat >>conftest.$ac_ext <<_ACEOF | |
13830 | /* end confdefs.h. */ | |
98418dba CW |
13831 | #include <gif_lib.h> |
13832 | _ACEOF | |
ca81d7a0 JD |
13833 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13834 | case "(($ac_try" in | |
13835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13836 | *) ac_try_echo=$ac_try;; | |
13837 | esac | |
13838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13839 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 13840 | ac_status=$? |
6bae0ccf | 13841 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13842 | rm -f conftest.er1 |
13843 | cat conftest.err >&5 | |
c0d27fcc | 13844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13845 | (exit $ac_status); } >/dev/null && { |
13846 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13847 | test ! -s conftest.err | |
13848 | }; then | |
c0d27fcc | 13849 | ac_header_preproc=yes |
98418dba CW |
13850 | else |
13851 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13852 | sed 's/^/| /' conftest.$ac_ext >&5 |
13853 | ||
c0d27fcc | 13854 | ac_header_preproc=no |
98418dba | 13855 | fi |
ca81d7a0 | 13856 | |
98418dba | 13857 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
13858 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13859 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
13860 | |
13861 | # So? What about this header? | |
edfaf76d LK |
13862 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13863 | yes:no: ) | |
c0d27fcc MR |
13864 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
13865 | echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
13866 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5 |
13867 | echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;} | |
13868 | ac_header_preproc=yes | |
19650fd6 | 13869 | ;; |
edfaf76d | 13870 | no:yes:* ) |
c0d27fcc MR |
13871 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 |
13872 | echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
13873 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 |
13874 | echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} | |
13875 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5 | |
13876 | echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;} | |
13877 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13878 | echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13879 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13880 | echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
13881 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5 |
13882 | echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 13883 | |
19650fd6 | 13884 | ;; |
c0d27fcc | 13885 | esac |
ca81d7a0 JD |
13886 | { echo "$as_me:$LINENO: checking for gif_lib.h" >&5 |
13887 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
13888 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
13889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13890 | else | |
13891 | ac_cv_header_gif_lib_h=$ac_header_preproc | |
98418dba | 13892 | fi |
ca81d7a0 JD |
13893 | { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 |
13894 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; } | |
c0d27fcc MR |
13895 | |
13896 | fi | |
98418dba CW |
13897 | if test $ac_cv_header_gif_lib_h = yes; then |
13898 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | |
13899 | # Earlier versions can crash Emacs. | |
ca81d7a0 JD |
13900 | { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 |
13901 | echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; } | |
98418dba | 13902 | if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then |
503d2be0 | 13903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 13904 | else |
503d2be0 | 13905 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 13906 | LIBS="-lungif $LIBS" |
503d2be0 | 13907 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13908 | /* confdefs.h. */ |
13909 | _ACEOF | |
13910 | cat confdefs.h >>conftest.$ac_ext | |
13911 | cat >>conftest.$ac_ext <<_ACEOF | |
13912 | /* end confdefs.h. */ | |
73b77ee5 | 13913 | |
ca81d7a0 JD |
13914 | /* Override any GCC internal prototype to avoid an error. |
13915 | Use char because int might match the return type of a GCC | |
13916 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
13917 | #ifdef __cplusplus |
13918 | extern "C" | |
13919 | #endif | |
98418dba | 13920 | char EGifPutExtensionLast (); |
503d2be0 AS |
13921 | int |
13922 | main () | |
13923 | { | |
ca81d7a0 | 13924 | return EGifPutExtensionLast (); |
503d2be0 AS |
13925 | ; |
13926 | return 0; | |
13927 | } | |
13928 | _ACEOF | |
13929 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
13930 | if { (ac_try="$ac_link" |
13931 | case "(($ac_try" in | |
13932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13933 | *) ac_try_echo=$ac_try;; | |
13934 | esac | |
13935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13936 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 13937 | ac_status=$? |
edfaf76d LK |
13938 | grep -v '^ *+' conftest.er1 >conftest.err |
13939 | rm -f conftest.er1 | |
13940 | cat conftest.err >&5 | |
c0d27fcc | 13941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13942 | (exit $ac_status); } && { |
13943 | test -z "$ac_c_werror_flag" || | |
13944 | test ! -s conftest.err | |
13945 | } && test -s conftest$ac_exeext && | |
13946 | $as_test_x conftest$ac_exeext; then | |
35996d22 AS |
13947 | ac_cv_lib_ungif_EGifPutExtensionLast=yes |
13948 | else | |
98418dba | 13949 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13950 | sed 's/^/| /' conftest.$ac_ext >&5 |
13951 | ||
ca81d7a0 | 13952 | ac_cv_lib_ungif_EGifPutExtensionLast=no |
98418dba | 13953 | fi |
ca81d7a0 | 13954 | |
f053c89f | 13955 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 13956 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
13957 | LIBS=$ac_check_lib_save_LIBS |
13958 | fi | |
ca81d7a0 JD |
13959 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
13960 | echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } | |
98418dba CW |
13961 | if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then |
13962 | HAVE_GIF=yes | |
13963 | fi | |
13964 | ||
13965 | fi | |
13966 | ||
c0d27fcc | 13967 | |
98418dba CW |
13968 | fi |
13969 | ||
13970 | if test "${HAVE_GIF}" = "yes"; then | |
b936fae4 | 13971 | |
c0d27fcc | 13972 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13973 | #define HAVE_GIF 1 |
c0d27fcc | 13974 | _ACEOF |
98418dba CW |
13975 | |
13976 | fi | |
13977 | fi | |
13978 | ||
cef11da2 | 13979 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then |
ca81d7a0 JD |
13980 | { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 |
13981 | echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; } | |
cef11da2 ST |
13982 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then |
13983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13984 | fi | |
ca81d7a0 JD |
13985 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 |
13986 | echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; } | |
cef11da2 ST |
13987 | else |
13988 | # Is the header compilable? | |
ca81d7a0 JD |
13989 | { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5 |
13990 | echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; } | |
cef11da2 ST |
13991 | cat >conftest.$ac_ext <<_ACEOF |
13992 | /* confdefs.h. */ | |
13993 | _ACEOF | |
13994 | cat confdefs.h >>conftest.$ac_ext | |
13995 | cat >>conftest.$ac_ext <<_ACEOF | |
13996 | /* end confdefs.h. */ | |
13997 | $ac_includes_default | |
13998 | #include <malloc/malloc.h> | |
13999 | _ACEOF | |
14000 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
14001 | if { (ac_try="$ac_compile" |
14002 | case "(($ac_try" in | |
14003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14004 | *) ac_try_echo=$ac_try;; | |
14005 | esac | |
14006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14007 | (eval "$ac_compile") 2>conftest.er1 | |
cef11da2 | 14008 | ac_status=$? |
edfaf76d LK |
14009 | grep -v '^ *+' conftest.er1 >conftest.err |
14010 | rm -f conftest.er1 | |
14011 | cat conftest.err >&5 | |
cef11da2 | 14012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14013 | (exit $ac_status); } && { |
14014 | test -z "$ac_c_werror_flag" || | |
14015 | test ! -s conftest.err | |
14016 | } && test -s conftest.$ac_objext; then | |
cef11da2 ST |
14017 | ac_header_compiler=yes |
14018 | else | |
14019 | echo "$as_me: failed program was:" >&5 | |
14020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14021 | ||
ca81d7a0 | 14022 | ac_header_compiler=no |
cef11da2 | 14023 | fi |
ca81d7a0 JD |
14024 | |
14025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14026 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14027 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
cef11da2 ST |
14028 | |
14029 | # Is the header present? | |
ca81d7a0 JD |
14030 | { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5 |
14031 | echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; } | |
cef11da2 ST |
14032 | cat >conftest.$ac_ext <<_ACEOF |
14033 | /* confdefs.h. */ | |
14034 | _ACEOF | |
14035 | cat confdefs.h >>conftest.$ac_ext | |
14036 | cat >>conftest.$ac_ext <<_ACEOF | |
14037 | /* end confdefs.h. */ | |
14038 | #include <malloc/malloc.h> | |
14039 | _ACEOF | |
ca81d7a0 JD |
14040 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14041 | case "(($ac_try" in | |
14042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14043 | *) ac_try_echo=$ac_try;; | |
14044 | esac | |
14045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14046 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
cef11da2 ST |
14047 | ac_status=$? |
14048 | grep -v '^ *+' conftest.er1 >conftest.err | |
14049 | rm -f conftest.er1 | |
14050 | cat conftest.err >&5 | |
14051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
14052 | (exit $ac_status); } >/dev/null && { |
14053 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14054 | test ! -s conftest.err | |
14055 | }; then | |
cef11da2 ST |
14056 | ac_header_preproc=yes |
14057 | else | |
14058 | echo "$as_me: failed program was:" >&5 | |
14059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14060 | ||
14061 | ac_header_preproc=no | |
14062 | fi | |
ca81d7a0 | 14063 | |
cef11da2 | 14064 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
14065 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14066 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
cef11da2 ST |
14067 | |
14068 | # So? What about this header? | |
edfaf76d LK |
14069 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14070 | yes:no: ) | |
cef11da2 ST |
14071 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
14072 | echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
14073 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5 |
14074 | echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;} | |
14075 | ac_header_preproc=yes | |
cef11da2 | 14076 | ;; |
edfaf76d | 14077 | no:yes:* ) |
cef11da2 ST |
14078 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5 |
14079 | echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
14080 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5 |
14081 | echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;} | |
14082 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5 | |
14083 | echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;} | |
14084 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14085 | echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
cef11da2 ST |
14086 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5 |
14087 | echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
14088 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5 |
14089 | echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 14090 | |
cef11da2 ST |
14091 | ;; |
14092 | esac | |
ca81d7a0 JD |
14093 | { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 |
14094 | echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; } | |
cef11da2 ST |
14095 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then |
14096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14097 | else | |
14098 | ac_cv_header_malloc_malloc_h=$ac_header_preproc | |
14099 | fi | |
ca81d7a0 JD |
14100 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 |
14101 | echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; } | |
cef11da2 ST |
14102 | |
14103 | fi | |
14104 | if test $ac_cv_header_malloc_malloc_h = yes; then | |
14105 | ||
14106 | cat >>confdefs.h <<\_ACEOF | |
14107 | #define HAVE_MALLOC_MALLOC_H 1 | |
14108 | _ACEOF | |
14109 | ||
14110 | fi | |
14111 | ||
14112 | ||
14113 | ||
5d6da11e | 14114 | ### Use Mac OS X Carbon API to implement GUI. |
e0f712ba | 14115 | if test "${HAVE_CARBON}" = "yes"; then |
e3ba1015 | 14116 | |
c0d27fcc | 14117 | cat >>confdefs.h <<\_ACEOF |
e0f712ba | 14118 | #define HAVE_CARBON 1 |
c0d27fcc | 14119 | _ACEOF |
e0f712ba | 14120 | |
6a3a24fa JD |
14121 | ## Specify the install directory |
14122 | carbon_appdir= | |
14123 | if test "${carbon_appdir_x}" != ""; then | |
14124 | case ${carbon_appdir_x} in | |
14125 | y | ye | yes) carbon_appdir=/Applications ;; | |
14126 | * ) carbon_appdir=${carbon_appdir_x} ;; | |
14127 | esac | |
14128 | fi | |
8f417b3b AS |
14129 | # We also have mouse menus. |
14130 | HAVE_MENUS=yes | |
e0f712ba AC |
14131 | fi |
14132 | ||
98418dba CW |
14133 | ### Use session management (-lSM -lICE) if available |
14134 | HAVE_X_SM=no | |
14135 | if test "${HAVE_X11}" = "yes"; then | |
c0d27fcc | 14136 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
ca81d7a0 JD |
14137 | { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 |
14138 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; } | |
98418dba CW |
14139 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
14140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 14141 | fi |
ca81d7a0 JD |
14142 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
14143 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; } | |
503d2be0 | 14144 | else |
c0d27fcc | 14145 | # Is the header compilable? |
ca81d7a0 JD |
14146 | { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 |
14147 | echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 14148 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14149 | /* confdefs.h. */ |
14150 | _ACEOF | |
14151 | cat confdefs.h >>conftest.$ac_ext | |
14152 | cat >>conftest.$ac_ext <<_ACEOF | |
14153 | /* end confdefs.h. */ | |
c0d27fcc MR |
14154 | $ac_includes_default |
14155 | #include <X11/SM/SMlib.h> | |
14156 | _ACEOF | |
14157 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
14158 | if { (ac_try="$ac_compile" |
14159 | case "(($ac_try" in | |
14160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14161 | *) ac_try_echo=$ac_try;; | |
14162 | esac | |
14163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14164 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 14165 | ac_status=$? |
edfaf76d LK |
14166 | grep -v '^ *+' conftest.er1 >conftest.err |
14167 | rm -f conftest.er1 | |
14168 | cat conftest.err >&5 | |
c0d27fcc | 14169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14170 | (exit $ac_status); } && { |
14171 | test -z "$ac_c_werror_flag" || | |
14172 | test ! -s conftest.err | |
14173 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
14174 | ac_header_compiler=yes |
14175 | else | |
14176 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14177 | sed 's/^/| /' conftest.$ac_ext >&5 |
14178 | ||
ca81d7a0 | 14179 | ac_header_compiler=no |
c0d27fcc | 14180 | fi |
ca81d7a0 JD |
14181 | |
14182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14183 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14184 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
14185 | |
14186 | # Is the header present? | |
ca81d7a0 JD |
14187 | { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 |
14188 | echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 14189 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14190 | /* confdefs.h. */ |
14191 | _ACEOF | |
14192 | cat confdefs.h >>conftest.$ac_ext | |
14193 | cat >>conftest.$ac_ext <<_ACEOF | |
14194 | /* end confdefs.h. */ | |
98418dba CW |
14195 | #include <X11/SM/SMlib.h> |
14196 | _ACEOF | |
ca81d7a0 JD |
14197 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14198 | case "(($ac_try" in | |
14199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14200 | *) ac_try_echo=$ac_try;; | |
14201 | esac | |
14202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14203 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 14204 | ac_status=$? |
6bae0ccf | 14205 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
14206 | rm -f conftest.er1 |
14207 | cat conftest.err >&5 | |
c0d27fcc | 14208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14209 | (exit $ac_status); } >/dev/null && { |
14210 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14211 | test ! -s conftest.err | |
14212 | }; then | |
c0d27fcc | 14213 | ac_header_preproc=yes |
98418dba CW |
14214 | else |
14215 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14216 | sed 's/^/| /' conftest.$ac_ext >&5 |
14217 | ||
c0d27fcc | 14218 | ac_header_preproc=no |
98418dba | 14219 | fi |
ca81d7a0 | 14220 | |
98418dba | 14221 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
14222 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14223 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
14224 | |
14225 | # So? What about this header? | |
edfaf76d LK |
14226 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14227 | yes:no: ) | |
c0d27fcc MR |
14228 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
14229 | echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
14230 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5 |
14231 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;} | |
14232 | ac_header_preproc=yes | |
19650fd6 | 14233 | ;; |
edfaf76d | 14234 | no:yes:* ) |
c0d27fcc MR |
14235 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 |
14236 | echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
14237 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 |
14238 | echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} | |
14239 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5 | |
14240 | echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;} | |
14241 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14242 | echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 14243 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 14244 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
14245 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5 |
14246 | echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 14247 | |
19650fd6 | 14248 | ;; |
c0d27fcc | 14249 | esac |
ca81d7a0 JD |
14250 | { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 |
14251 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
14252 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
14253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14254 | else | |
14255 | ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc | |
73b77ee5 | 14256 | fi |
ca81d7a0 JD |
14257 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
14258 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; } | |
c0d27fcc MR |
14259 | |
14260 | fi | |
98418dba | 14261 | if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
ca81d7a0 JD |
14262 | { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 |
14263 | echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; } | |
98418dba | 14264 | if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then |
503d2be0 | 14265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 14266 | else |
503d2be0 | 14267 | ac_check_lib_save_LIBS=$LIBS |
1660500f | 14268 | LIBS="-lSM -lICE $LIBS" |
503d2be0 | 14269 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14270 | /* confdefs.h. */ |
14271 | _ACEOF | |
14272 | cat confdefs.h >>conftest.$ac_ext | |
14273 | cat >>conftest.$ac_ext <<_ACEOF | |
14274 | /* end confdefs.h. */ | |
503d2be0 | 14275 | |
ca81d7a0 JD |
14276 | /* Override any GCC internal prototype to avoid an error. |
14277 | Use char because int might match the return type of a GCC | |
14278 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
14279 | #ifdef __cplusplus |
14280 | extern "C" | |
14281 | #endif | |
98418dba | 14282 | char SmcOpenConnection (); |
503d2be0 AS |
14283 | int |
14284 | main () | |
14285 | { | |
ca81d7a0 | 14286 | return SmcOpenConnection (); |
503d2be0 AS |
14287 | ; |
14288 | return 0; | |
14289 | } | |
14290 | _ACEOF | |
14291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
14292 | if { (ac_try="$ac_link" |
14293 | case "(($ac_try" in | |
14294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14295 | *) ac_try_echo=$ac_try;; | |
14296 | esac | |
14297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14298 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14299 | ac_status=$? |
edfaf76d LK |
14300 | grep -v '^ *+' conftest.er1 >conftest.err |
14301 | rm -f conftest.er1 | |
14302 | cat conftest.err >&5 | |
c0d27fcc | 14303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14304 | (exit $ac_status); } && { |
14305 | test -z "$ac_c_werror_flag" || | |
14306 | test ! -s conftest.err | |
14307 | } && test -s conftest$ac_exeext && | |
14308 | $as_test_x conftest$ac_exeext; then | |
98418dba | 14309 | ac_cv_lib_SM_SmcOpenConnection=yes |
503d2be0 AS |
14310 | else |
14311 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14312 | sed 's/^/| /' conftest.$ac_ext >&5 |
14313 | ||
ca81d7a0 | 14314 | ac_cv_lib_SM_SmcOpenConnection=no |
503d2be0 | 14315 | fi |
ca81d7a0 | 14316 | |
f053c89f | 14317 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 14318 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
14319 | LIBS=$ac_check_lib_save_LIBS |
14320 | fi | |
ca81d7a0 JD |
14321 | { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
14322 | echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; } | |
98418dba CW |
14323 | if test $ac_cv_lib_SM_SmcOpenConnection = yes; then |
14324 | HAVE_X_SM=yes | |
73b77ee5 GM |
14325 | fi |
14326 | ||
73b77ee5 | 14327 | fi |
73b77ee5 | 14328 | |
c0d27fcc MR |
14329 | |
14330 | ||
98418dba | 14331 | if test "${HAVE_X_SM}" = "yes"; then |
b936fae4 | 14332 | |
c0d27fcc | 14333 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14334 | #define HAVE_X_SM 1 |
c0d27fcc | 14335 | _ACEOF |
73b77ee5 | 14336 | |
98418dba CW |
14337 | case "$LIBS" in |
14338 | *-lSM*) ;; | |
14339 | *) LIBS="-lSM -lICE $LIBS" ;; | |
14340 | esac | |
73b77ee5 | 14341 | fi |
98418dba | 14342 | fi |
73b77ee5 | 14343 | |
98418dba | 14344 | # If netdb.h doesn't declare h_errno, we must declare it by hand. |
ca81d7a0 JD |
14345 | { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 |
14346 | echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; } | |
98418dba CW |
14347 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then |
14348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14349 | else | |
14350 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14351 | /* confdefs.h. */ |
14352 | _ACEOF | |
14353 | cat confdefs.h >>conftest.$ac_ext | |
14354 | cat >>conftest.$ac_ext <<_ACEOF | |
14355 | /* end confdefs.h. */ | |
98418dba | 14356 | #include <netdb.h> |
503d2be0 AS |
14357 | int |
14358 | main () | |
14359 | { | |
98418dba | 14360 | return h_errno; |
503d2be0 AS |
14361 | ; |
14362 | return 0; | |
14363 | } | |
14364 | _ACEOF | |
14365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
14366 | if { (ac_try="$ac_link" |
14367 | case "(($ac_try" in | |
14368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14369 | *) ac_try_echo=$ac_try;; | |
14370 | esac | |
14371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14372 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14373 | ac_status=$? |
edfaf76d LK |
14374 | grep -v '^ *+' conftest.er1 >conftest.err |
14375 | rm -f conftest.er1 | |
14376 | cat conftest.err >&5 | |
c0d27fcc | 14377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14378 | (exit $ac_status); } && { |
14379 | test -z "$ac_c_werror_flag" || | |
14380 | test ! -s conftest.err | |
14381 | } && test -s conftest$ac_exeext && | |
14382 | $as_test_x conftest$ac_exeext; then | |
98418dba | 14383 | emacs_cv_netdb_declares_h_errno=yes |
73b77ee5 | 14384 | else |
503d2be0 | 14385 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14386 | sed 's/^/| /' conftest.$ac_ext >&5 |
14387 | ||
ca81d7a0 | 14388 | emacs_cv_netdb_declares_h_errno=no |
73b77ee5 | 14389 | fi |
ca81d7a0 | 14390 | |
f053c89f | 14391 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 14392 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 14393 | fi |
ca81d7a0 JD |
14394 | { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 |
14395 | echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; } | |
98418dba | 14396 | if test $emacs_cv_netdb_declares_h_errno = yes; then |
b936fae4 | 14397 | |
c0d27fcc | 14398 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14399 | #define HAVE_H_ERRNO 1 |
c0d27fcc | 14400 | _ACEOF |
73b77ee5 | 14401 | |
98418dba CW |
14402 | fi |
14403 | ||
14404 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
14405 | # for constant arguments. Useless! | |
ca81d7a0 JD |
14406 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
14407 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
98418dba CW |
14408 | if test "${ac_cv_working_alloca_h+set}" = set; then |
14409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14410 | else | |
14411 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14412 | /* confdefs.h. */ |
14413 | _ACEOF | |
14414 | cat confdefs.h >>conftest.$ac_ext | |
14415 | cat >>conftest.$ac_ext <<_ACEOF | |
14416 | /* end confdefs.h. */ | |
98418dba | 14417 | #include <alloca.h> |
503d2be0 AS |
14418 | int |
14419 | main () | |
14420 | { | |
98418dba | 14421 | char *p = (char *) alloca (2 * sizeof (int)); |
ca81d7a0 | 14422 | if (p) return 0; |
503d2be0 AS |
14423 | ; |
14424 | return 0; | |
14425 | } | |
14426 | _ACEOF | |
14427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
14428 | if { (ac_try="$ac_link" |
14429 | case "(($ac_try" in | |
14430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14431 | *) ac_try_echo=$ac_try;; | |
14432 | esac | |
14433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14434 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14435 | ac_status=$? |
edfaf76d LK |
14436 | grep -v '^ *+' conftest.er1 >conftest.err |
14437 | rm -f conftest.er1 | |
14438 | cat conftest.err >&5 | |
c0d27fcc | 14439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14440 | (exit $ac_status); } && { |
14441 | test -z "$ac_c_werror_flag" || | |
14442 | test ! -s conftest.err | |
14443 | } && test -s conftest$ac_exeext && | |
14444 | $as_test_x conftest$ac_exeext; then | |
98418dba | 14445 | ac_cv_working_alloca_h=yes |
73b77ee5 | 14446 | else |
503d2be0 | 14447 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14448 | sed 's/^/| /' conftest.$ac_ext >&5 |
14449 | ||
ca81d7a0 | 14450 | ac_cv_working_alloca_h=no |
73b77ee5 | 14451 | fi |
ca81d7a0 | 14452 | |
f053c89f | 14453 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 14454 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 14455 | fi |
ca81d7a0 JD |
14456 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
14457 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
98418dba | 14458 | if test $ac_cv_working_alloca_h = yes; then |
73b77ee5 | 14459 | |
c0d27fcc | 14460 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14461 | #define HAVE_ALLOCA_H 1 |
c0d27fcc | 14462 | _ACEOF |
98418dba CW |
14463 | |
14464 | fi | |
14465 | ||
ca81d7a0 JD |
14466 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
14467 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
98418dba CW |
14468 | if test "${ac_cv_func_alloca_works+set}" = set; then |
14469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14470 | else | |
503d2be0 | 14471 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14472 | /* confdefs.h. */ |
14473 | _ACEOF | |
14474 | cat confdefs.h >>conftest.$ac_ext | |
14475 | cat >>conftest.$ac_ext <<_ACEOF | |
14476 | /* end confdefs.h. */ | |
98418dba CW |
14477 | #ifdef __GNUC__ |
14478 | # define alloca __builtin_alloca | |
14479 | #else | |
14480 | # ifdef _MSC_VER | |
14481 | # include <malloc.h> | |
14482 | # define alloca _alloca | |
14483 | # else | |
f053c89f | 14484 | # ifdef HAVE_ALLOCA_H |
98418dba CW |
14485 | # include <alloca.h> |
14486 | # else | |
14487 | # ifdef _AIX | |
14488 | #pragma alloca | |
14489 | # else | |
14490 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
14491 | char *alloca (); | |
14492 | # endif | |
14493 | # endif | |
14494 | # endif | |
14495 | # endif | |
14496 | #endif | |
14497 | ||
503d2be0 AS |
14498 | int |
14499 | main () | |
14500 | { | |
98418dba | 14501 | char *p = (char *) alloca (1); |
ca81d7a0 | 14502 | if (p) return 0; |
503d2be0 AS |
14503 | ; |
14504 | return 0; | |
14505 | } | |
14506 | _ACEOF | |
14507 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
14508 | if { (ac_try="$ac_link" |
14509 | case "(($ac_try" in | |
14510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14511 | *) ac_try_echo=$ac_try;; | |
14512 | esac | |
14513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14514 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14515 | ac_status=$? |
edfaf76d LK |
14516 | grep -v '^ *+' conftest.er1 >conftest.err |
14517 | rm -f conftest.er1 | |
14518 | cat conftest.err >&5 | |
c0d27fcc | 14519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14520 | (exit $ac_status); } && { |
14521 | test -z "$ac_c_werror_flag" || | |
14522 | test ! -s conftest.err | |
14523 | } && test -s conftest$ac_exeext && | |
14524 | $as_test_x conftest$ac_exeext; then | |
98418dba | 14525 | ac_cv_func_alloca_works=yes |
ac95a621 | 14526 | else |
503d2be0 | 14527 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14528 | sed 's/^/| /' conftest.$ac_ext >&5 |
14529 | ||
ca81d7a0 | 14530 | ac_cv_func_alloca_works=no |
ac95a621 | 14531 | fi |
ca81d7a0 | 14532 | |
f053c89f | 14533 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 14534 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 14535 | fi |
ca81d7a0 JD |
14536 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
14537 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
ac95a621 | 14538 | |
98418dba CW |
14539 | if test $ac_cv_func_alloca_works = yes; then |
14540 | ||
c0d27fcc | 14541 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14542 | #define HAVE_ALLOCA 1 |
c0d27fcc | 14543 | _ACEOF |
98418dba CW |
14544 | |
14545 | else | |
14546 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
14547 | # that cause trouble. Some versions do not even contain alloca or | |
14548 | # contain a buggy version. If you still want to use their alloca, | |
14549 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
14550 | ||
ca81d7a0 | 14551 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
98418dba | 14552 | |
c0d27fcc | 14553 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14554 | #define C_ALLOCA 1 |
c0d27fcc | 14555 | _ACEOF |
98418dba | 14556 | |
c0d27fcc | 14557 | |
ca81d7a0 JD |
14558 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
14559 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
98418dba CW |
14560 | if test "${ac_cv_os_cray+set}" = set; then |
14561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14562 | else | |
14563 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14564 | /* confdefs.h. */ |
14565 | _ACEOF | |
14566 | cat confdefs.h >>conftest.$ac_ext | |
14567 | cat >>conftest.$ac_ext <<_ACEOF | |
14568 | /* end confdefs.h. */ | |
ca81d7a0 | 14569 | #if defined CRAY && ! defined CRAY2 |
98418dba CW |
14570 | webecray |
14571 | #else | |
14572 | wenotbecray | |
14573 | #endif | |
14574 | ||
14575 | _ACEOF | |
14576 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 14577 | $EGREP "webecray" >/dev/null 2>&1; then |
98418dba CW |
14578 | ac_cv_os_cray=yes |
14579 | else | |
14580 | ac_cv_os_cray=no | |
14581 | fi | |
14582 | rm -f conftest* | |
ac95a621 | 14583 | |
98418dba | 14584 | fi |
ca81d7a0 JD |
14585 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
14586 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
98418dba CW |
14587 | if test $ac_cv_os_cray = yes; then |
14588 | for ac_func in _getb67 GETB67 getb67; do | |
14589 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
14590 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
14591 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
14592 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 14593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 14594 | else |
503d2be0 | 14595 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14596 | /* confdefs.h. */ |
14597 | _ACEOF | |
14598 | cat confdefs.h >>conftest.$ac_ext | |
14599 | cat >>conftest.$ac_ext <<_ACEOF | |
14600 | /* end confdefs.h. */ | |
edfaf76d LK |
14601 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14602 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14603 | #define $ac_func innocuous_$ac_func | |
14604 | ||
73b77ee5 | 14605 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14606 | which can conflict with char $ac_func (); below. |
14607 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14608 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 14609 | |
19650fd6 AS |
14610 | #ifdef __STDC__ |
14611 | # include <limits.h> | |
14612 | #else | |
14613 | # include <assert.h> | |
14614 | #endif | |
edfaf76d LK |
14615 | |
14616 | #undef $ac_func | |
14617 | ||
ca81d7a0 JD |
14618 | /* Override any GCC internal prototype to avoid an error. |
14619 | Use char because int might match the return type of a GCC | |
14620 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
14621 | #ifdef __cplusplus |
14622 | extern "C" | |
14623 | #endif | |
503d2be0 | 14624 | char $ac_func (); |
73b77ee5 GM |
14625 | /* The GNU C library defines this for functions which it implements |
14626 | to always fail with ENOSYS. Some functions are actually named | |
14627 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 14628 | #if defined __stub_$ac_func || defined __stub___$ac_func |
73b77ee5 | 14629 | choke me |
73b77ee5 GM |
14630 | #endif |
14631 | ||
19650fd6 AS |
14632 | int |
14633 | main () | |
14634 | { | |
ca81d7a0 | 14635 | return $ac_func (); |
503d2be0 AS |
14636 | ; |
14637 | return 0; | |
14638 | } | |
14639 | _ACEOF | |
14640 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
14641 | if { (ac_try="$ac_link" |
14642 | case "(($ac_try" in | |
14643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14644 | *) ac_try_echo=$ac_try;; | |
14645 | esac | |
14646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14647 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14648 | ac_status=$? |
edfaf76d LK |
14649 | grep -v '^ *+' conftest.er1 >conftest.err |
14650 | rm -f conftest.er1 | |
14651 | cat conftest.err >&5 | |
c0d27fcc | 14652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14653 | (exit $ac_status); } && { |
14654 | test -z "$ac_c_werror_flag" || | |
14655 | test ! -s conftest.err | |
14656 | } && test -s conftest$ac_exeext && | |
14657 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
14658 | eval "$as_ac_var=yes" |
14659 | else | |
14660 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14661 | sed 's/^/| /' conftest.$ac_ext >&5 |
14662 | ||
ca81d7a0 | 14663 | eval "$as_ac_var=no" |
503d2be0 | 14664 | fi |
ca81d7a0 | 14665 | |
f053c89f | 14666 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 14667 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 14668 | fi |
ca81d7a0 JD |
14669 | ac_res=`eval echo '${'$as_ac_var'}'` |
14670 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14671 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 14672 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
73b77ee5 | 14673 | |
c0d27fcc | 14674 | cat >>confdefs.h <<_ACEOF |
98418dba | 14675 | #define CRAY_STACKSEG_END $ac_func |
c0d27fcc | 14676 | _ACEOF |
98418dba CW |
14677 | |
14678 | break | |
73b77ee5 | 14679 | fi |
73b77ee5 | 14680 | |
98418dba | 14681 | done |
73b77ee5 GM |
14682 | fi |
14683 | ||
ca81d7a0 JD |
14684 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
14685 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
98418dba | 14686 | if test "${ac_cv_c_stack_direction+set}" = set; then |
503d2be0 | 14687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
98418dba CW |
14688 | else |
14689 | if test "$cross_compiling" = yes; then | |
14690 | ac_cv_c_stack_direction=0 | |
73b77ee5 | 14691 | else |
503d2be0 | 14692 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14693 | /* confdefs.h. */ |
14694 | _ACEOF | |
14695 | cat confdefs.h >>conftest.$ac_ext | |
14696 | cat >>conftest.$ac_ext <<_ACEOF | |
14697 | /* end confdefs.h. */ | |
ca81d7a0 | 14698 | $ac_includes_default |
503d2be0 | 14699 | int |
98418dba | 14700 | find_stack_direction () |
503d2be0 | 14701 | { |
98418dba CW |
14702 | static char *addr = 0; |
14703 | auto char dummy; | |
14704 | if (addr == 0) | |
14705 | { | |
14706 | addr = &dummy; | |
14707 | return find_stack_direction (); | |
14708 | } | |
73b77ee5 | 14709 | else |
98418dba CW |
14710 | return (&dummy > addr) ? 1 : -1; |
14711 | } | |
ba4481b5 | 14712 | |
503d2be0 AS |
14713 | int |
14714 | main () | |
14715 | { | |
ca81d7a0 | 14716 | return find_stack_direction () < 0; |
503d2be0 AS |
14717 | } |
14718 | _ACEOF | |
98418dba | 14719 | rm -f conftest$ac_exeext |
ca81d7a0 JD |
14720 | if { (ac_try="$ac_link" |
14721 | case "(($ac_try" in | |
14722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14723 | *) ac_try_echo=$ac_try;; | |
14724 | esac | |
14725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14726 | (eval "$ac_link") 2>&5 | |
503d2be0 | 14727 | ac_status=$? |
c0d27fcc | 14728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 14729 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
14730 | { (case "(($ac_try" in |
14731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14732 | *) ac_try_echo=$ac_try;; | |
14733 | esac | |
14734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14735 | (eval "$ac_try") 2>&5 | |
503d2be0 | 14736 | ac_status=$? |
c0d27fcc | 14737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 14738 | (exit $ac_status); }; }; then |
98418dba | 14739 | ac_cv_c_stack_direction=1 |
ba4481b5 | 14740 | else |
98418dba CW |
14741 | echo "$as_me: program exited with status $ac_status" >&5 |
14742 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14743 | sed 's/^/| /' conftest.$ac_ext >&5 |
14744 | ||
c0d27fcc | 14745 | ( exit $ac_status ) |
98418dba | 14746 | ac_cv_c_stack_direction=-1 |
ba4481b5 | 14747 | fi |
ca81d7a0 | 14748 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 14749 | fi |
ca81d7a0 JD |
14750 | |
14751 | ||
98418dba | 14752 | fi |
ca81d7a0 JD |
14753 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
14754 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
98418dba | 14755 | |
c0d27fcc | 14756 | cat >>confdefs.h <<_ACEOF |
98418dba | 14757 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
c0d27fcc MR |
14758 | _ACEOF |
14759 | ||
ba4481b5 | 14760 | |
ba4481b5 DL |
14761 | fi |
14762 | ||
c0d27fcc | 14763 | |
98418dba CW |
14764 | # fmod, logb, and frexp are found in -lm on most systems. |
14765 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
14766 | ||
ca81d7a0 JD |
14767 | { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
14768 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; } | |
98418dba | 14769 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
503d2be0 | 14770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14771 | else |
98418dba CW |
14772 | ac_check_lib_save_LIBS=$LIBS |
14773 | LIBS="-lm $LIBS" | |
14774 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14775 | /* confdefs.h. */ |
14776 | _ACEOF | |
14777 | cat confdefs.h >>conftest.$ac_ext | |
14778 | cat >>conftest.$ac_ext <<_ACEOF | |
14779 | /* end confdefs.h. */ | |
ba4481b5 | 14780 | |
ca81d7a0 JD |
14781 | /* Override any GCC internal prototype to avoid an error. |
14782 | Use char because int might match the return type of a GCC | |
14783 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
14784 | #ifdef __cplusplus |
14785 | extern "C" | |
14786 | #endif | |
98418dba | 14787 | char sqrt (); |
503d2be0 AS |
14788 | int |
14789 | main () | |
14790 | { | |
ca81d7a0 | 14791 | return sqrt (); |
503d2be0 AS |
14792 | ; |
14793 | return 0; | |
14794 | } | |
14795 | _ACEOF | |
14796 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
14797 | if { (ac_try="$ac_link" |
14798 | case "(($ac_try" in | |
14799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14800 | *) ac_try_echo=$ac_try;; | |
14801 | esac | |
14802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14803 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14804 | ac_status=$? |
edfaf76d LK |
14805 | grep -v '^ *+' conftest.er1 >conftest.err |
14806 | rm -f conftest.er1 | |
14807 | cat conftest.err >&5 | |
c0d27fcc | 14808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14809 | (exit $ac_status); } && { |
14810 | test -z "$ac_c_werror_flag" || | |
14811 | test ! -s conftest.err | |
14812 | } && test -s conftest$ac_exeext && | |
14813 | $as_test_x conftest$ac_exeext; then | |
98418dba | 14814 | ac_cv_lib_m_sqrt=yes |
ba4481b5 | 14815 | else |
503d2be0 | 14816 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14817 | sed 's/^/| /' conftest.$ac_ext >&5 |
14818 | ||
ca81d7a0 | 14819 | ac_cv_lib_m_sqrt=no |
ba4481b5 | 14820 | fi |
ca81d7a0 | 14821 | |
f053c89f | 14822 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 14823 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 14824 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 14825 | fi |
ca81d7a0 JD |
14826 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
14827 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; } | |
98418dba | 14828 | if test $ac_cv_lib_m_sqrt = yes; then |
c0d27fcc | 14829 | cat >>confdefs.h <<_ACEOF |
98418dba | 14830 | #define HAVE_LIBM 1 |
c0d27fcc | 14831 | _ACEOF |
98418dba CW |
14832 | |
14833 | LIBS="-lm $LIBS" | |
ba4481b5 | 14834 | |
ba4481b5 DL |
14835 | fi |
14836 | ||
c0d27fcc | 14837 | |
55597d70 DL |
14838 | # Check for mail-locking functions in a "mail" library. Probably this should |
14839 | # have the same check as for liblockfile below. | |
98418dba | 14840 | |
ca81d7a0 JD |
14841 | { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 |
14842 | echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; } | |
98418dba | 14843 | if test "${ac_cv_lib_mail_maillock+set}" = set; then |
503d2be0 | 14844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14845 | else |
98418dba CW |
14846 | ac_check_lib_save_LIBS=$LIBS |
14847 | LIBS="-lmail $LIBS" | |
14848 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14849 | /* confdefs.h. */ |
14850 | _ACEOF | |
14851 | cat confdefs.h >>conftest.$ac_ext | |
14852 | cat >>conftest.$ac_ext <<_ACEOF | |
14853 | /* end confdefs.h. */ | |
98418dba | 14854 | |
ca81d7a0 JD |
14855 | /* Override any GCC internal prototype to avoid an error. |
14856 | Use char because int might match the return type of a GCC | |
14857 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
14858 | #ifdef __cplusplus |
14859 | extern "C" | |
14860 | #endif | |
98418dba | 14861 | char maillock (); |
503d2be0 AS |
14862 | int |
14863 | main () | |
14864 | { | |
ca81d7a0 | 14865 | return maillock (); |
503d2be0 AS |
14866 | ; |
14867 | return 0; | |
14868 | } | |
14869 | _ACEOF | |
14870 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
14871 | if { (ac_try="$ac_link" |
14872 | case "(($ac_try" in | |
14873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14874 | *) ac_try_echo=$ac_try;; | |
14875 | esac | |
14876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14877 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14878 | ac_status=$? |
edfaf76d LK |
14879 | grep -v '^ *+' conftest.er1 >conftest.err |
14880 | rm -f conftest.er1 | |
14881 | cat conftest.err >&5 | |
c0d27fcc | 14882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14883 | (exit $ac_status); } && { |
14884 | test -z "$ac_c_werror_flag" || | |
14885 | test ! -s conftest.err | |
14886 | } && test -s conftest$ac_exeext && | |
14887 | $as_test_x conftest$ac_exeext; then | |
98418dba | 14888 | ac_cv_lib_mail_maillock=yes |
ba4481b5 | 14889 | else |
503d2be0 | 14890 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14891 | sed 's/^/| /' conftest.$ac_ext >&5 |
14892 | ||
ca81d7a0 | 14893 | ac_cv_lib_mail_maillock=no |
ba4481b5 | 14894 | fi |
ca81d7a0 | 14895 | |
f053c89f | 14896 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 14897 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 14898 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 14899 | fi |
ca81d7a0 JD |
14900 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 |
14901 | echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; } | |
98418dba | 14902 | if test $ac_cv_lib_mail_maillock = yes; then |
c0d27fcc | 14903 | cat >>confdefs.h <<_ACEOF |
98418dba | 14904 | #define HAVE_LIBMAIL 1 |
c0d27fcc | 14905 | _ACEOF |
ba4481b5 | 14906 | |
98418dba | 14907 | LIBS="-lmail $LIBS" |
ba4481b5 | 14908 | |
98418dba | 14909 | fi |
ba4481b5 | 14910 | |
c0d27fcc | 14911 | |
ca81d7a0 JD |
14912 | { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 |
14913 | echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; } | |
98418dba | 14914 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then |
503d2be0 | 14915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14916 | else |
503d2be0 | 14917 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 14918 | LIBS="-llockfile $LIBS" |
503d2be0 | 14919 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14920 | /* confdefs.h. */ |
14921 | _ACEOF | |
14922 | cat confdefs.h >>conftest.$ac_ext | |
14923 | cat >>conftest.$ac_ext <<_ACEOF | |
14924 | /* end confdefs.h. */ | |
503d2be0 | 14925 | |
ca81d7a0 JD |
14926 | /* Override any GCC internal prototype to avoid an error. |
14927 | Use char because int might match the return type of a GCC | |
14928 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
14929 | #ifdef __cplusplus |
14930 | extern "C" | |
14931 | #endif | |
98418dba | 14932 | char maillock (); |
503d2be0 AS |
14933 | int |
14934 | main () | |
14935 | { | |
ca81d7a0 | 14936 | return maillock (); |
503d2be0 AS |
14937 | ; |
14938 | return 0; | |
14939 | } | |
14940 | _ACEOF | |
14941 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
14942 | if { (ac_try="$ac_link" |
14943 | case "(($ac_try" in | |
14944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14945 | *) ac_try_echo=$ac_try;; | |
14946 | esac | |
14947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14948 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14949 | ac_status=$? |
edfaf76d LK |
14950 | grep -v '^ *+' conftest.er1 >conftest.err |
14951 | rm -f conftest.er1 | |
14952 | cat conftest.err >&5 | |
c0d27fcc | 14953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14954 | (exit $ac_status); } && { |
14955 | test -z "$ac_c_werror_flag" || | |
14956 | test ! -s conftest.err | |
14957 | } && test -s conftest$ac_exeext && | |
14958 | $as_test_x conftest$ac_exeext; then | |
98418dba | 14959 | ac_cv_lib_lockfile_maillock=yes |
503d2be0 AS |
14960 | else |
14961 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14962 | sed 's/^/| /' conftest.$ac_ext >&5 |
14963 | ||
ca81d7a0 | 14964 | ac_cv_lib_lockfile_maillock=no |
98418dba | 14965 | fi |
ca81d7a0 | 14966 | |
f053c89f | 14967 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 14968 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
14969 | LIBS=$ac_check_lib_save_LIBS |
14970 | fi | |
ca81d7a0 JD |
14971 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 |
14972 | echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; } | |
98418dba | 14973 | if test $ac_cv_lib_lockfile_maillock = yes; then |
c0d27fcc | 14974 | cat >>confdefs.h <<_ACEOF |
98418dba | 14975 | #define HAVE_LIBLOCKFILE 1 |
c0d27fcc | 14976 | _ACEOF |
98418dba CW |
14977 | |
14978 | LIBS="-llockfile $LIBS" | |
14979 | ||
14980 | fi | |
14981 | ||
14982 | # If we have the shared liblockfile, assume we must use it for mail | |
14983 | # locking (e.g. Debian). If we couldn't link against liblockfile | |
14984 | # (no liblockfile.a installed), ensure that we don't need to. | |
14985 | if test "$ac_cv_lib_lockfile_maillock" = no; then | |
14986 | # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
14987 | set dummy liblockfile.so; ac_word=$2 | |
ca81d7a0 JD |
14988 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14989 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
98418dba CW |
14990 | if test "${ac_cv_prog_liblockfile+set}" = set; then |
14991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14992 | else | |
14993 | if test -n "$liblockfile"; then | |
14994 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
14995 | else | |
c0d27fcc | 14996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6bae0ccf DL |
14997 | as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
14998 | for as_dir in $as_dummy | |
c0d27fcc MR |
14999 | do |
15000 | IFS=$as_save_IFS | |
15001 | test -z "$as_dir" && as_dir=. | |
15002 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 15003 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
15004 | ac_cv_prog_liblockfile="yes" |
15005 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15006 | break 2 | |
15007 | fi | |
15008 | done | |
98418dba | 15009 | done |
ca81d7a0 | 15010 | IFS=$as_save_IFS |
98418dba CW |
15011 | |
15012 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
503d2be0 | 15013 | fi |
503d2be0 | 15014 | fi |
98418dba CW |
15015 | liblockfile=$ac_cv_prog_liblockfile |
15016 | if test -n "$liblockfile"; then | |
ca81d7a0 JD |
15017 | { echo "$as_me:$LINENO: result: $liblockfile" >&5 |
15018 | echo "${ECHO_T}$liblockfile" >&6; } | |
98418dba | 15019 | else |
ca81d7a0 JD |
15020 | { echo "$as_me:$LINENO: result: no" >&5 |
15021 | echo "${ECHO_T}no" >&6; } | |
ba4481b5 DL |
15022 | fi |
15023 | ||
ca81d7a0 | 15024 | |
98418dba | 15025 | if test $ac_cv_prog_liblockfile = yes; then |
c0d27fcc | 15026 | { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. |
98418dba CW |
15027 | This probably means that movemail could lose mail. |
15028 | There may be a \`development' package to install containing liblockfile." >&5 | |
15029 | echo "$as_me: error: Shared liblockfile found but can't link against it. | |
15030 | This probably means that movemail could lose mail. | |
15031 | There may be a \`development' package to install containing liblockfile." >&2;} | |
15032 | { (exit 1); exit 1; }; } | |
98418dba | 15033 | else : |
55597d70 | 15034 | fi |
98418dba | 15035 | fi |
503d2be0 | 15036 | |
98418dba CW |
15037 | for ac_func in touchlock |
15038 | do | |
15039 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
15040 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15041 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
15042 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 15043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
457b792c | 15044 | else |
98418dba | 15045 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15046 | /* confdefs.h. */ |
15047 | _ACEOF | |
15048 | cat confdefs.h >>conftest.$ac_ext | |
15049 | cat >>conftest.$ac_ext <<_ACEOF | |
15050 | /* end confdefs.h. */ | |
edfaf76d LK |
15051 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15052 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15053 | #define $ac_func innocuous_$ac_func | |
15054 | ||
98418dba | 15055 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
15056 | which can conflict with char $ac_func (); below. |
15057 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15058 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 15059 | |
19650fd6 AS |
15060 | #ifdef __STDC__ |
15061 | # include <limits.h> | |
15062 | #else | |
15063 | # include <assert.h> | |
15064 | #endif | |
edfaf76d LK |
15065 | |
15066 | #undef $ac_func | |
15067 | ||
ca81d7a0 JD |
15068 | /* Override any GCC internal prototype to avoid an error. |
15069 | Use char because int might match the return type of a GCC | |
15070 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
15071 | #ifdef __cplusplus |
15072 | extern "C" | |
15073 | #endif | |
98418dba | 15074 | char $ac_func (); |
98418dba CW |
15075 | /* The GNU C library defines this for functions which it implements |
15076 | to always fail with ENOSYS. Some functions are actually named | |
15077 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 15078 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 15079 | choke me |
cd958eb3 MB |
15080 | #endif |
15081 | ||
19650fd6 AS |
15082 | int |
15083 | main () | |
15084 | { | |
ca81d7a0 | 15085 | return $ac_func (); |
503d2be0 AS |
15086 | ; |
15087 | return 0; | |
15088 | } | |
15089 | _ACEOF | |
15090 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15091 | if { (ac_try="$ac_link" |
15092 | case "(($ac_try" in | |
15093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15094 | *) ac_try_echo=$ac_try;; | |
15095 | esac | |
15096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15097 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15098 | ac_status=$? |
edfaf76d LK |
15099 | grep -v '^ *+' conftest.er1 >conftest.err |
15100 | rm -f conftest.er1 | |
15101 | cat conftest.err >&5 | |
c0d27fcc | 15102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15103 | (exit $ac_status); } && { |
15104 | test -z "$ac_c_werror_flag" || | |
15105 | test ! -s conftest.err | |
15106 | } && test -s conftest$ac_exeext && | |
15107 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15108 | eval "$as_ac_var=yes" |
503d2be0 AS |
15109 | else |
15110 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15111 | sed 's/^/| /' conftest.$ac_ext >&5 |
15112 | ||
ca81d7a0 | 15113 | eval "$as_ac_var=no" |
503d2be0 | 15114 | fi |
ca81d7a0 | 15115 | |
f053c89f | 15116 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 15117 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 15118 | fi |
ca81d7a0 JD |
15119 | ac_res=`eval echo '${'$as_ac_var'}'` |
15120 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15121 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 15122 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 15123 | cat >>confdefs.h <<_ACEOF |
98418dba | 15124 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 15125 | _ACEOF |
457b792c | 15126 | |
457b792c | 15127 | fi |
98418dba | 15128 | done |
457b792c | 15129 | |
c0d27fcc | 15130 | |
98418dba CW |
15131 | for ac_header in maillock.h |
15132 | do | |
15133 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
15134 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
15135 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15136 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
15137 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 15138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 15139 | fi |
ca81d7a0 JD |
15140 | ac_res=`eval echo '${'$as_ac_Header'}'` |
15141 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15142 | echo "${ECHO_T}$ac_res" >&6; } | |
ba4481b5 | 15143 | else |
c0d27fcc | 15144 | # Is the header compilable? |
ca81d7a0 JD |
15145 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15146 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 15147 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15148 | /* confdefs.h. */ |
15149 | _ACEOF | |
15150 | cat confdefs.h >>conftest.$ac_ext | |
15151 | cat >>conftest.$ac_ext <<_ACEOF | |
15152 | /* end confdefs.h. */ | |
c0d27fcc MR |
15153 | $ac_includes_default |
15154 | #include <$ac_header> | |
15155 | _ACEOF | |
15156 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
15157 | if { (ac_try="$ac_compile" |
15158 | case "(($ac_try" in | |
15159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15160 | *) ac_try_echo=$ac_try;; | |
15161 | esac | |
15162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15163 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 15164 | ac_status=$? |
edfaf76d LK |
15165 | grep -v '^ *+' conftest.er1 >conftest.err |
15166 | rm -f conftest.er1 | |
15167 | cat conftest.err >&5 | |
c0d27fcc | 15168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15169 | (exit $ac_status); } && { |
15170 | test -z "$ac_c_werror_flag" || | |
15171 | test ! -s conftest.err | |
15172 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
15173 | ac_header_compiler=yes |
15174 | else | |
15175 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15176 | sed 's/^/| /' conftest.$ac_ext >&5 |
15177 | ||
ca81d7a0 | 15178 | ac_header_compiler=no |
c0d27fcc | 15179 | fi |
ca81d7a0 JD |
15180 | |
15181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15182 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15183 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
15184 | |
15185 | # Is the header present? | |
ca81d7a0 JD |
15186 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15187 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 15188 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15189 | /* confdefs.h. */ |
15190 | _ACEOF | |
15191 | cat confdefs.h >>conftest.$ac_ext | |
15192 | cat >>conftest.$ac_ext <<_ACEOF | |
15193 | /* end confdefs.h. */ | |
98418dba | 15194 | #include <$ac_header> |
503d2be0 | 15195 | _ACEOF |
ca81d7a0 JD |
15196 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15197 | case "(($ac_try" in | |
15198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15199 | *) ac_try_echo=$ac_try;; | |
15200 | esac | |
15201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15202 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 15203 | ac_status=$? |
6bae0ccf | 15204 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
15205 | rm -f conftest.er1 |
15206 | cat conftest.err >&5 | |
c0d27fcc | 15207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15208 | (exit $ac_status); } >/dev/null && { |
15209 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15210 | test ! -s conftest.err | |
15211 | }; then | |
c0d27fcc | 15212 | ac_header_preproc=yes |
98418dba CW |
15213 | else |
15214 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15215 | sed 's/^/| /' conftest.$ac_ext >&5 |
15216 | ||
c0d27fcc | 15217 | ac_header_preproc=no |
503d2be0 | 15218 | fi |
ca81d7a0 | 15219 | |
98418dba | 15220 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
15221 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15222 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
15223 | |
15224 | # So? What about this header? | |
edfaf76d LK |
15225 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15226 | yes:no: ) | |
c0d27fcc MR |
15227 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15228 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
15229 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15230 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15231 | ac_header_preproc=yes | |
19650fd6 | 15232 | ;; |
edfaf76d | 15233 | no:yes:* ) |
c0d27fcc MR |
15234 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15235 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
15236 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15237 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15238 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15239 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15240 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15241 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15242 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15243 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
15244 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15245 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 15246 | |
19650fd6 | 15247 | ;; |
c0d27fcc | 15248 | esac |
ca81d7a0 JD |
15249 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15250 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
15251 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
15252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15253 | else | |
edfaf76d | 15254 | eval "$as_ac_Header=\$ac_header_preproc" |
ba4481b5 | 15255 | fi |
ca81d7a0 JD |
15256 | ac_res=`eval echo '${'$as_ac_Header'}'` |
15257 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15258 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
15259 | |
15260 | fi | |
98418dba | 15261 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15262 | cat >>confdefs.h <<_ACEOF |
98418dba | 15263 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 15264 | _ACEOF |
48d4b120 | 15265 | |
ba4481b5 | 15266 | fi |
c0d27fcc | 15267 | |
98418dba CW |
15268 | done |
15269 | ||
c0d27fcc MR |
15270 | |
15271 | ||
15272 | ||
15273 | ||
15274 | ||
15275 | ||
15276 | ||
15277 | ||
15278 | ||
15279 | ||
15280 | ||
15281 | ||
15282 | ||
15283 | ||
15284 | ||
15285 | ||
15286 | ||
15287 | ||
15288 | ||
15289 | ||
15290 | ||
15291 | ||
15292 | ||
15293 | ||
15294 | ||
15295 | ||
15296 | ||
15297 | ||
15298 | ||
15299 | ||
15300 | ||
15301 | ||
15302 | ||
15303 | ||
15304 | ||
15305 | ||
15306 | ||
15307 | ||
15308 | ||
15309 | ||
15310 | ||
15311 | ||
15312 | ||
15313 | ||
15314 | ||
15315 | ||
15316 | ||
15317 | ||
15318 | ||
15319 | ||
15320 | ||
15321 | ||
15322 | ||
15323 | ||
15324 | ||
22044edf DL |
15325 | |
15326 | ||
c0d27fcc | 15327 | |
b0e44248 RB |
15328 | |
15329 | ||
973a76b1 DL |
15330 | |
15331 | ||
15332 | ||
cd958eb3 | 15333 | |
25ca0bca | 15334 | |
ea92fc9f | 15335 | |
e2fcf543 | 15336 | |
190956b3 | 15337 | |
c0d27fcc MR |
15338 | |
15339 | ||
98418dba | 15340 | for ac_func in gethostname getdomainname dup2 \ |
e2fcf543 | 15341 | rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ |
98418dba CW |
15342 | random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ |
15343 | strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
973a76b1 | 15344 | utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \ |
98418dba CW |
15345 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
15346 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ | |
190956b3 | 15347 | gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ |
4489ece2 | 15348 | memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign |
98418dba CW |
15349 | do |
15350 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
15351 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15352 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
15353 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 15354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 15355 | else |
503d2be0 | 15356 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15357 | /* confdefs.h. */ |
15358 | _ACEOF | |
15359 | cat confdefs.h >>conftest.$ac_ext | |
15360 | cat >>conftest.$ac_ext <<_ACEOF | |
15361 | /* end confdefs.h. */ | |
edfaf76d LK |
15362 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15363 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15364 | #define $ac_func innocuous_$ac_func | |
15365 | ||
98418dba | 15366 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
15367 | which can conflict with char $ac_func (); below. |
15368 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15369 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 15370 | |
19650fd6 AS |
15371 | #ifdef __STDC__ |
15372 | # include <limits.h> | |
15373 | #else | |
15374 | # include <assert.h> | |
15375 | #endif | |
edfaf76d LK |
15376 | |
15377 | #undef $ac_func | |
15378 | ||
ca81d7a0 JD |
15379 | /* Override any GCC internal prototype to avoid an error. |
15380 | Use char because int might match the return type of a GCC | |
15381 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
15382 | #ifdef __cplusplus |
15383 | extern "C" | |
15384 | #endif | |
98418dba | 15385 | char $ac_func (); |
98418dba CW |
15386 | /* The GNU C library defines this for functions which it implements |
15387 | to always fail with ENOSYS. Some functions are actually named | |
15388 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 15389 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 15390 | choke me |
98418dba CW |
15391 | #endif |
15392 | ||
19650fd6 AS |
15393 | int |
15394 | main () | |
15395 | { | |
ca81d7a0 | 15396 | return $ac_func (); |
503d2be0 AS |
15397 | ; |
15398 | return 0; | |
15399 | } | |
15400 | _ACEOF | |
15401 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15402 | if { (ac_try="$ac_link" |
15403 | case "(($ac_try" in | |
15404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15405 | *) ac_try_echo=$ac_try;; | |
15406 | esac | |
15407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15408 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15409 | ac_status=$? |
edfaf76d LK |
15410 | grep -v '^ *+' conftest.er1 >conftest.err |
15411 | rm -f conftest.er1 | |
15412 | cat conftest.err >&5 | |
c0d27fcc | 15413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15414 | (exit $ac_status); } && { |
15415 | test -z "$ac_c_werror_flag" || | |
15416 | test ! -s conftest.err | |
15417 | } && test -s conftest$ac_exeext && | |
15418 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15419 | eval "$as_ac_var=yes" |
503d2be0 AS |
15420 | else |
15421 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15422 | sed 's/^/| /' conftest.$ac_ext >&5 |
15423 | ||
ca81d7a0 | 15424 | eval "$as_ac_var=no" |
503d2be0 | 15425 | fi |
ca81d7a0 | 15426 | |
f053c89f | 15427 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 15428 | conftest$ac_exeext conftest.$ac_ext |
ba4481b5 | 15429 | fi |
ca81d7a0 JD |
15430 | ac_res=`eval echo '${'$as_ac_var'}'` |
15431 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15432 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 15433 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 15434 | cat >>confdefs.h <<_ACEOF |
98418dba | 15435 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 15436 | _ACEOF |
ba4481b5 | 15437 | |
ba4481b5 | 15438 | fi |
98418dba | 15439 | done |
ba4481b5 | 15440 | |
c0d27fcc MR |
15441 | |
15442 | ||
98418dba CW |
15443 | for ac_header in sys/un.h |
15444 | do | |
15445 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
15446 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
15447 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15448 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
15449 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba | 15450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 15451 | fi |
ca81d7a0 JD |
15452 | ac_res=`eval echo '${'$as_ac_Header'}'` |
15453 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15454 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 15455 | else |
c0d27fcc | 15456 | # Is the header compilable? |
ca81d7a0 JD |
15457 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15458 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 15459 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15460 | /* confdefs.h. */ |
15461 | _ACEOF | |
15462 | cat confdefs.h >>conftest.$ac_ext | |
15463 | cat >>conftest.$ac_ext <<_ACEOF | |
15464 | /* end confdefs.h. */ | |
c0d27fcc MR |
15465 | $ac_includes_default |
15466 | #include <$ac_header> | |
15467 | _ACEOF | |
15468 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
15469 | if { (ac_try="$ac_compile" |
15470 | case "(($ac_try" in | |
15471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15472 | *) ac_try_echo=$ac_try;; | |
15473 | esac | |
15474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15475 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 15476 | ac_status=$? |
edfaf76d LK |
15477 | grep -v '^ *+' conftest.er1 >conftest.err |
15478 | rm -f conftest.er1 | |
15479 | cat conftest.err >&5 | |
c0d27fcc | 15480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15481 | (exit $ac_status); } && { |
15482 | test -z "$ac_c_werror_flag" || | |
15483 | test ! -s conftest.err | |
15484 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
15485 | ac_header_compiler=yes |
15486 | else | |
15487 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15488 | sed 's/^/| /' conftest.$ac_ext >&5 |
15489 | ||
ca81d7a0 | 15490 | ac_header_compiler=no |
c0d27fcc | 15491 | fi |
ca81d7a0 JD |
15492 | |
15493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15494 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15495 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
15496 | |
15497 | # Is the header present? | |
ca81d7a0 JD |
15498 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15499 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 15500 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15501 | /* confdefs.h. */ |
15502 | _ACEOF | |
15503 | cat confdefs.h >>conftest.$ac_ext | |
15504 | cat >>conftest.$ac_ext <<_ACEOF | |
15505 | /* end confdefs.h. */ | |
98418dba | 15506 | #include <$ac_header> |
503d2be0 | 15507 | _ACEOF |
ca81d7a0 JD |
15508 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15509 | case "(($ac_try" in | |
15510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15511 | *) ac_try_echo=$ac_try;; | |
15512 | esac | |
15513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15514 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 15515 | ac_status=$? |
6bae0ccf | 15516 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15517 | rm -f conftest.er1 |
15518 | cat conftest.err >&5 | |
c0d27fcc | 15519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15520 | (exit $ac_status); } >/dev/null && { |
15521 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15522 | test ! -s conftest.err | |
15523 | }; then | |
c0d27fcc | 15524 | ac_header_preproc=yes |
ba4481b5 | 15525 | else |
503d2be0 | 15526 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
15527 | sed 's/^/| /' conftest.$ac_ext >&5 |
15528 | ||
c0d27fcc | 15529 | ac_header_preproc=no |
ba4481b5 | 15530 | fi |
ca81d7a0 | 15531 | |
503d2be0 | 15532 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
15533 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15534 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
15535 | |
15536 | # So? What about this header? | |
edfaf76d LK |
15537 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15538 | yes:no: ) | |
c0d27fcc MR |
15539 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15540 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
15541 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15542 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15543 | ac_header_preproc=yes | |
19650fd6 | 15544 | ;; |
edfaf76d | 15545 | no:yes:* ) |
c0d27fcc MR |
15546 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15547 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
15548 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15549 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15550 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15551 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15552 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15553 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15554 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15555 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
15556 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15557 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 15558 | |
19650fd6 | 15559 | ;; |
c0d27fcc | 15560 | esac |
ca81d7a0 JD |
15561 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15562 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
15563 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
15564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15565 | else | |
edfaf76d | 15566 | eval "$as_ac_Header=\$ac_header_preproc" |
ba4481b5 | 15567 | fi |
ca81d7a0 JD |
15568 | ac_res=`eval echo '${'$as_ac_Header'}'` |
15569 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15570 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
15571 | |
15572 | fi | |
925c2f3f | 15573 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15574 | cat >>confdefs.h <<_ACEOF |
925c2f3f | 15575 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 15576 | _ACEOF |
503d2be0 | 15577 | |
925c2f3f | 15578 | fi |
c0d27fcc | 15579 | |
925c2f3f EZ |
15580 | done |
15581 | ||
c0d27fcc MR |
15582 | |
15583 | ||
15584 | ||
edfaf76d | 15585 | |
f053c89f CY |
15586 | |
15587 | for ac_header in $ac_header_list | |
925c2f3f EZ |
15588 | do |
15589 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
15590 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
15591 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15592 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
15593 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
925c2f3f | 15594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 15595 | fi |
ca81d7a0 JD |
15596 | ac_res=`eval echo '${'$as_ac_Header'}'` |
15597 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15598 | echo "${ECHO_T}$ac_res" >&6; } | |
925c2f3f | 15599 | else |
c0d27fcc | 15600 | # Is the header compilable? |
ca81d7a0 JD |
15601 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15602 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 15603 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15604 | /* confdefs.h. */ |
15605 | _ACEOF | |
15606 | cat confdefs.h >>conftest.$ac_ext | |
15607 | cat >>conftest.$ac_ext <<_ACEOF | |
15608 | /* end confdefs.h. */ | |
c0d27fcc MR |
15609 | $ac_includes_default |
15610 | #include <$ac_header> | |
15611 | _ACEOF | |
15612 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
15613 | if { (ac_try="$ac_compile" |
15614 | case "(($ac_try" in | |
15615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15616 | *) ac_try_echo=$ac_try;; | |
15617 | esac | |
15618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15619 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 15620 | ac_status=$? |
edfaf76d LK |
15621 | grep -v '^ *+' conftest.er1 >conftest.err |
15622 | rm -f conftest.er1 | |
15623 | cat conftest.err >&5 | |
c0d27fcc | 15624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15625 | (exit $ac_status); } && { |
15626 | test -z "$ac_c_werror_flag" || | |
15627 | test ! -s conftest.err | |
15628 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
15629 | ac_header_compiler=yes |
15630 | else | |
15631 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15632 | sed 's/^/| /' conftest.$ac_ext >&5 |
15633 | ||
ca81d7a0 | 15634 | ac_header_compiler=no |
c0d27fcc | 15635 | fi |
ca81d7a0 JD |
15636 | |
15637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15638 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15639 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
15640 | |
15641 | # Is the header present? | |
ca81d7a0 JD |
15642 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15643 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 15644 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15645 | /* confdefs.h. */ |
15646 | _ACEOF | |
15647 | cat confdefs.h >>conftest.$ac_ext | |
15648 | cat >>conftest.$ac_ext <<_ACEOF | |
15649 | /* end confdefs.h. */ | |
98418dba | 15650 | #include <$ac_header> |
503d2be0 | 15651 | _ACEOF |
ca81d7a0 JD |
15652 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15653 | case "(($ac_try" in | |
15654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15655 | *) ac_try_echo=$ac_try;; | |
15656 | esac | |
15657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15658 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 15659 | ac_status=$? |
6bae0ccf | 15660 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15661 | rm -f conftest.er1 |
15662 | cat conftest.err >&5 | |
c0d27fcc | 15663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15664 | (exit $ac_status); } >/dev/null && { |
15665 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15666 | test ! -s conftest.err | |
15667 | }; then | |
c0d27fcc | 15668 | ac_header_preproc=yes |
98418dba CW |
15669 | else |
15670 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15671 | sed 's/^/| /' conftest.$ac_ext >&5 |
15672 | ||
c0d27fcc | 15673 | ac_header_preproc=no |
98418dba | 15674 | fi |
ca81d7a0 | 15675 | |
98418dba | 15676 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
15677 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15678 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
15679 | |
15680 | # So? What about this header? | |
edfaf76d LK |
15681 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15682 | yes:no: ) | |
c0d27fcc MR |
15683 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15684 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
15685 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15686 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15687 | ac_header_preproc=yes | |
19650fd6 | 15688 | ;; |
edfaf76d | 15689 | no:yes:* ) |
c0d27fcc MR |
15690 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15691 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
15692 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15693 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15694 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15695 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15696 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15697 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15698 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15699 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
15700 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15701 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 15702 | |
19650fd6 | 15703 | ;; |
c0d27fcc | 15704 | esac |
ca81d7a0 JD |
15705 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15706 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
15707 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
15708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15709 | else | |
edfaf76d | 15710 | eval "$as_ac_Header=\$ac_header_preproc" |
ffe36136 | 15711 | fi |
ca81d7a0 JD |
15712 | ac_res=`eval echo '${'$as_ac_Header'}'` |
15713 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15714 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
15715 | |
15716 | fi | |
98418dba | 15717 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15718 | cat >>confdefs.h <<_ACEOF |
98418dba | 15719 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 15720 | _ACEOF |
98418dba CW |
15721 | |
15722 | fi | |
c0d27fcc | 15723 | |
98418dba CW |
15724 | done |
15725 | ||
c0d27fcc | 15726 | |
f053c89f CY |
15727 | |
15728 | ||
15729 | ||
15730 | ||
15731 | ||
15732 | ||
15733 | ||
15734 | for ac_func in $ac_func_list | |
98418dba CW |
15735 | do |
15736 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
15737 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15738 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
15739 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 15740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 15741 | else |
98418dba | 15742 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15743 | /* confdefs.h. */ |
15744 | _ACEOF | |
15745 | cat confdefs.h >>conftest.$ac_ext | |
15746 | cat >>conftest.$ac_ext <<_ACEOF | |
15747 | /* end confdefs.h. */ | |
edfaf76d LK |
15748 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15749 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15750 | #define $ac_func innocuous_$ac_func | |
15751 | ||
98418dba | 15752 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
15753 | which can conflict with char $ac_func (); below. |
15754 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15755 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 15756 | |
19650fd6 AS |
15757 | #ifdef __STDC__ |
15758 | # include <limits.h> | |
15759 | #else | |
15760 | # include <assert.h> | |
15761 | #endif | |
edfaf76d LK |
15762 | |
15763 | #undef $ac_func | |
15764 | ||
ca81d7a0 JD |
15765 | /* Override any GCC internal prototype to avoid an error. |
15766 | Use char because int might match the return type of a GCC | |
15767 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
15768 | #ifdef __cplusplus |
15769 | extern "C" | |
15770 | #endif | |
98418dba | 15771 | char $ac_func (); |
98418dba CW |
15772 | /* The GNU C library defines this for functions which it implements |
15773 | to always fail with ENOSYS. Some functions are actually named | |
15774 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 15775 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 15776 | choke me |
98418dba CW |
15777 | #endif |
15778 | ||
19650fd6 AS |
15779 | int |
15780 | main () | |
15781 | { | |
ca81d7a0 | 15782 | return $ac_func (); |
503d2be0 AS |
15783 | ; |
15784 | return 0; | |
15785 | } | |
15786 | _ACEOF | |
15787 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15788 | if { (ac_try="$ac_link" |
15789 | case "(($ac_try" in | |
15790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15791 | *) ac_try_echo=$ac_try;; | |
15792 | esac | |
15793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15794 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15795 | ac_status=$? |
edfaf76d LK |
15796 | grep -v '^ *+' conftest.er1 >conftest.err |
15797 | rm -f conftest.er1 | |
15798 | cat conftest.err >&5 | |
c0d27fcc | 15799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15800 | (exit $ac_status); } && { |
15801 | test -z "$ac_c_werror_flag" || | |
15802 | test ! -s conftest.err | |
15803 | } && test -s conftest$ac_exeext && | |
15804 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15805 | eval "$as_ac_var=yes" |
503d2be0 AS |
15806 | else |
15807 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15808 | sed 's/^/| /' conftest.$ac_ext >&5 |
15809 | ||
ca81d7a0 | 15810 | eval "$as_ac_var=no" |
503d2be0 | 15811 | fi |
ca81d7a0 | 15812 | |
f053c89f | 15813 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 15814 | conftest$ac_exeext conftest.$ac_ext |
ffe36136 | 15815 | fi |
ca81d7a0 JD |
15816 | ac_res=`eval echo '${'$as_ac_var'}'` |
15817 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15818 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 15819 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 15820 | cat >>confdefs.h <<_ACEOF |
98418dba | 15821 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 15822 | _ACEOF |
ffe36136 | 15823 | |
ba4481b5 | 15824 | fi |
98418dba | 15825 | done |
ba4481b5 | 15826 | |
f053c89f CY |
15827 | |
15828 | ||
15829 | ||
15830 | ||
15831 | ||
15832 | ||
15833 | ||
15834 | ||
15835 | ||
15836 | ||
15837 | ||
15838 | ||
15839 | ||
15840 | ||
15841 | ||
15842 | ||
ca81d7a0 JD |
15843 | { echo "$as_me:$LINENO: checking for working mktime" >&5 |
15844 | echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; } | |
98418dba CW |
15845 | if test "${ac_cv_func_working_mktime+set}" = set; then |
15846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15847 | else | |
15848 | if test "$cross_compiling" = yes; then | |
15849 | ac_cv_func_working_mktime=no | |
15850 | else | |
15851 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15852 | /* confdefs.h. */ |
15853 | _ACEOF | |
15854 | cat confdefs.h >>conftest.$ac_ext | |
15855 | cat >>conftest.$ac_ext <<_ACEOF | |
15856 | /* end confdefs.h. */ | |
98418dba | 15857 | /* Test program from Paul Eggert and Tony Leneis. */ |
f053c89f | 15858 | #ifdef TIME_WITH_SYS_TIME |
98418dba CW |
15859 | # include <sys/time.h> |
15860 | # include <time.h> | |
15861 | #else | |
f053c89f | 15862 | # ifdef HAVE_SYS_TIME_H |
98418dba CW |
15863 | # include <sys/time.h> |
15864 | # else | |
15865 | # include <time.h> | |
15866 | # endif | |
15867 | #endif | |
ba4481b5 | 15868 | |
f053c89f | 15869 | #include <stdlib.h> |
edfaf76d | 15870 | |
f053c89f | 15871 | #ifdef HAVE_UNISTD_H |
98418dba CW |
15872 | # include <unistd.h> |
15873 | #endif | |
ba4481b5 | 15874 | |
f053c89f | 15875 | #ifndef HAVE_ALARM |
98418dba CW |
15876 | # define alarm(X) /* empty */ |
15877 | #endif | |
df645f7c | 15878 | |
98418dba CW |
15879 | /* Work around redefinition to rpl_putenv by other config tests. */ |
15880 | #undef putenv | |
df645f7c | 15881 | |
98418dba | 15882 | static time_t time_t_max; |
edfaf76d | 15883 | static time_t time_t_min; |
df645f7c | 15884 | |
98418dba | 15885 | /* Values we'll use to set the TZ environment variable. */ |
edfaf76d LK |
15886 | static char *tz_strings[] = { |
15887 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | |
98418dba CW |
15888 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
15889 | }; | |
15890 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
503d2be0 | 15891 | |
ca81d7a0 | 15892 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. |
98418dba | 15893 | Based on a problem report from Andreas Jaeger. */ |
ca81d7a0 | 15894 | static int |
98418dba CW |
15895 | spring_forward_gap () |
15896 | { | |
15897 | /* glibc (up to about 1998-10-07) failed this test. */ | |
15898 | struct tm tm; | |
15899 | ||
15900 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
15901 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
15902 | on systems that don't support the Olson extension, or don't have the | |
15903 | full zoneinfo tables installed. */ | |
15904 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
15905 | ||
15906 | tm.tm_year = 98; | |
15907 | tm.tm_mon = 3; | |
15908 | tm.tm_mday = 5; | |
15909 | tm.tm_hour = 2; | |
15910 | tm.tm_min = 0; | |
15911 | tm.tm_sec = 0; | |
15912 | tm.tm_isdst = -1; | |
ca81d7a0 | 15913 | return mktime (&tm) != (time_t) -1; |
98418dba CW |
15914 | } |
15915 | ||
ca81d7a0 | 15916 | static int |
edfaf76d | 15917 | mktime_test1 (now) |
98418dba CW |
15918 | time_t now; |
15919 | { | |
15920 | struct tm *lt; | |
ca81d7a0 | 15921 | return ! (lt = localtime (&now)) || mktime (lt) == now; |
edfaf76d LK |
15922 | } |
15923 | ||
ca81d7a0 | 15924 | static int |
edfaf76d LK |
15925 | mktime_test (now) |
15926 | time_t now; | |
15927 | { | |
ca81d7a0 JD |
15928 | return (mktime_test1 (now) |
15929 | && mktime_test1 ((time_t) (time_t_max - now)) | |
15930 | && mktime_test1 ((time_t) (time_t_min + now))); | |
98418dba CW |
15931 | } |
15932 | ||
ca81d7a0 | 15933 | static int |
98418dba CW |
15934 | irix_6_4_bug () |
15935 | { | |
15936 | /* Based on code from Ariel Faigon. */ | |
15937 | struct tm tm; | |
15938 | tm.tm_year = 96; | |
15939 | tm.tm_mon = 3; | |
15940 | tm.tm_mday = 0; | |
15941 | tm.tm_hour = 0; | |
15942 | tm.tm_min = 0; | |
15943 | tm.tm_sec = 0; | |
15944 | tm.tm_isdst = -1; | |
15945 | mktime (&tm); | |
ca81d7a0 | 15946 | return tm.tm_mon == 2 && tm.tm_mday == 31; |
98418dba CW |
15947 | } |
15948 | ||
ca81d7a0 | 15949 | static int |
98418dba CW |
15950 | bigtime_test (j) |
15951 | int j; | |
15952 | { | |
15953 | struct tm tm; | |
15954 | time_t now; | |
15955 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
15956 | now = mktime (&tm); | |
15957 | if (now != (time_t) -1) | |
15958 | { | |
15959 | struct tm *lt = localtime (&now); | |
15960 | if (! (lt | |
15961 | && lt->tm_year == tm.tm_year | |
15962 | && lt->tm_mon == tm.tm_mon | |
15963 | && lt->tm_mday == tm.tm_mday | |
15964 | && lt->tm_hour == tm.tm_hour | |
15965 | && lt->tm_min == tm.tm_min | |
15966 | && lt->tm_sec == tm.tm_sec | |
15967 | && lt->tm_yday == tm.tm_yday | |
15968 | && lt->tm_wday == tm.tm_wday | |
15969 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
15970 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
ca81d7a0 | 15971 | return 0; |
98418dba | 15972 | } |
ca81d7a0 | 15973 | return 1; |
98418dba CW |
15974 | } |
15975 | ||
f053c89f CY |
15976 | static int |
15977 | year_2050_test () | |
15978 | { | |
15979 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, | |
15980 | ignoring leap seconds. */ | |
15981 | unsigned long int answer = 2527315200UL; | |
15982 | ||
15983 | struct tm tm; | |
15984 | time_t t; | |
15985 | tm.tm_year = 2050 - 1900; | |
15986 | tm.tm_mon = 2 - 1; | |
15987 | tm.tm_mday = 1; | |
15988 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; | |
15989 | tm.tm_isdst = -1; | |
15990 | ||
15991 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
15992 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
15993 | on systems that don't support the Olson extension, or don't have the | |
15994 | full zoneinfo tables installed. */ | |
15995 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
15996 | ||
15997 | t = mktime (&tm); | |
15998 | ||
15999 | /* Check that the result is either a failure, or close enough | |
16000 | to the correct answer that we can assume the discrepancy is | |
16001 | due to leap seconds. */ | |
16002 | return (t == (time_t) -1 | |
16003 | || (0 < t && answer - 120 <= t && t <= answer + 120)); | |
16004 | } | |
16005 | ||
98418dba CW |
16006 | int |
16007 | main () | |
16008 | { | |
16009 | time_t t, delta; | |
16010 | int i, j; | |
16011 | ||
16012 | /* This test makes some buggy mktime implementations loop. | |
16013 | Give up after 60 seconds; a mktime slower than that | |
16014 | isn't worth using anyway. */ | |
16015 | alarm (60); | |
16016 | ||
16017 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
16018 | continue; | |
16019 | time_t_max--; | |
edfaf76d LK |
16020 | if ((time_t) -1 < 0) |
16021 | for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) | |
16022 | continue; | |
98418dba CW |
16023 | delta = time_t_max / 997; /* a suitable prime number */ |
16024 | for (i = 0; i < N_STRINGS; i++) | |
16025 | { | |
16026 | if (tz_strings[i]) | |
16027 | putenv (tz_strings[i]); | |
503d2be0 | 16028 | |
98418dba | 16029 | for (t = 0; t <= time_t_max - delta; t += delta) |
ca81d7a0 JD |
16030 | if (! mktime_test (t)) |
16031 | return 1; | |
16032 | if (! (mktime_test ((time_t) 1) | |
16033 | && mktime_test ((time_t) (60 * 60)) | |
16034 | && mktime_test ((time_t) (60 * 60 * 24)))) | |
16035 | return 1; | |
98418dba CW |
16036 | |
16037 | for (j = 1; 0 < j; j *= 2) | |
ca81d7a0 JD |
16038 | if (! bigtime_test (j)) |
16039 | return 1; | |
16040 | if (! bigtime_test (j - 1)) | |
16041 | return 1; | |
98418dba | 16042 | } |
f053c89f | 16043 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); |
503d2be0 AS |
16044 | } |
16045 | _ACEOF | |
98418dba | 16046 | rm -f conftest$ac_exeext |
ca81d7a0 JD |
16047 | if { (ac_try="$ac_link" |
16048 | case "(($ac_try" in | |
16049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16050 | *) ac_try_echo=$ac_try;; | |
16051 | esac | |
16052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16053 | (eval "$ac_link") 2>&5 | |
503d2be0 | 16054 | ac_status=$? |
c0d27fcc | 16055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 16056 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
16057 | { (case "(($ac_try" in |
16058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16059 | *) ac_try_echo=$ac_try;; | |
16060 | esac | |
16061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16062 | (eval "$ac_try") 2>&5 | |
503d2be0 | 16063 | ac_status=$? |
c0d27fcc | 16064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16065 | (exit $ac_status); }; }; then |
98418dba | 16066 | ac_cv_func_working_mktime=yes |
503d2be0 | 16067 | else |
98418dba CW |
16068 | echo "$as_me: program exited with status $ac_status" >&5 |
16069 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16070 | sed 's/^/| /' conftest.$ac_ext >&5 |
16071 | ||
c0d27fcc | 16072 | ( exit $ac_status ) |
98418dba | 16073 | ac_cv_func_working_mktime=no |
503d2be0 | 16074 | fi |
ca81d7a0 | 16075 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 16076 | fi |
ca81d7a0 JD |
16077 | |
16078 | ||
ba4481b5 | 16079 | fi |
ca81d7a0 JD |
16080 | { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
16081 | echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; } | |
98418dba | 16082 | if test $ac_cv_func_working_mktime = no; then |
ca81d7a0 | 16083 | case " $LIBOBJS " in |
edfaf76d | 16084 | *" mktime.$ac_objext "* ) ;; |
ca81d7a0 JD |
16085 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" |
16086 | ;; | |
edfaf76d LK |
16087 | esac |
16088 | ||
ba4481b5 DL |
16089 | fi |
16090 | ||
98418dba | 16091 | if test "$ac_cv_func_working_mktime" = no; then |
b936fae4 | 16092 | |
c0d27fcc | 16093 | cat >>confdefs.h <<\_ACEOF |
98418dba | 16094 | #define BROKEN_MKTIME 1 |
c0d27fcc | 16095 | _ACEOF |
ba4481b5 | 16096 | |
ba4481b5 | 16097 | fi |
503d2be0 | 16098 | |
98418dba CW |
16099 | ac_have_func=no # yes means we've found a way to get the load average. |
16100 | ||
6bae0ccf DL |
16101 | # Make sure getloadavg.c is where it belongs, at configure-time. |
16102 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || | |
16103 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 | |
16104 | echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;} | |
16105 | { (exit 1); exit 1; }; } | |
16106 | ||
98418dba CW |
16107 | ac_save_LIBS=$LIBS |
16108 | ||
16109 | # Check for getloadavg, but be sure not to touch the cache variable. | |
ca81d7a0 JD |
16110 | ({ echo "$as_me:$LINENO: checking for getloadavg" >&5 |
16111 | echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; } | |
98418dba | 16112 | if test "${ac_cv_func_getloadavg+set}" = set; then |
503d2be0 | 16113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16114 | else |
503d2be0 | 16115 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16116 | /* confdefs.h. */ |
16117 | _ACEOF | |
16118 | cat confdefs.h >>conftest.$ac_ext | |
16119 | cat >>conftest.$ac_ext <<_ACEOF | |
16120 | /* end confdefs.h. */ | |
edfaf76d LK |
16121 | /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg. |
16122 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16123 | #define getloadavg innocuous_getloadavg | |
16124 | ||
98418dba | 16125 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16126 | which can conflict with char getloadavg (); below. |
16127 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16128 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 16129 | |
19650fd6 AS |
16130 | #ifdef __STDC__ |
16131 | # include <limits.h> | |
16132 | #else | |
16133 | # include <assert.h> | |
16134 | #endif | |
edfaf76d LK |
16135 | |
16136 | #undef getloadavg | |
16137 | ||
ca81d7a0 JD |
16138 | /* Override any GCC internal prototype to avoid an error. |
16139 | Use char because int might match the return type of a GCC | |
16140 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
16141 | #ifdef __cplusplus |
16142 | extern "C" | |
16143 | #endif | |
98418dba | 16144 | char getloadavg (); |
98418dba CW |
16145 | /* The GNU C library defines this for functions which it implements |
16146 | to always fail with ENOSYS. Some functions are actually named | |
16147 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 16148 | #if defined __stub_getloadavg || defined __stub___getloadavg |
98418dba | 16149 | choke me |
cd958eb3 MB |
16150 | #endif |
16151 | ||
19650fd6 AS |
16152 | int |
16153 | main () | |
16154 | { | |
ca81d7a0 | 16155 | return getloadavg (); |
503d2be0 AS |
16156 | ; |
16157 | return 0; | |
16158 | } | |
16159 | _ACEOF | |
16160 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
16161 | if { (ac_try="$ac_link" |
16162 | case "(($ac_try" in | |
16163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16164 | *) ac_try_echo=$ac_try;; | |
16165 | esac | |
16166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16167 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16168 | ac_status=$? |
edfaf76d LK |
16169 | grep -v '^ *+' conftest.er1 >conftest.err |
16170 | rm -f conftest.er1 | |
16171 | cat conftest.err >&5 | |
c0d27fcc | 16172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16173 | (exit $ac_status); } && { |
16174 | test -z "$ac_c_werror_flag" || | |
16175 | test ! -s conftest.err | |
16176 | } && test -s conftest$ac_exeext && | |
16177 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16178 | ac_cv_func_getloadavg=yes |
503d2be0 AS |
16179 | else |
16180 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16181 | sed 's/^/| /' conftest.$ac_ext >&5 |
16182 | ||
ca81d7a0 | 16183 | ac_cv_func_getloadavg=no |
503d2be0 | 16184 | fi |
ca81d7a0 | 16185 | |
f053c89f | 16186 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16187 | conftest$ac_exeext conftest.$ac_ext |
ba4481b5 | 16188 | fi |
ca81d7a0 JD |
16189 | { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 |
16190 | echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; } | |
98418dba CW |
16191 | if test $ac_cv_func_getloadavg = yes; then |
16192 | exit 0 | |
16193 | else | |
16194 | exit 1 | |
ba4481b5 | 16195 | fi |
98418dba | 16196 | ) && ac_have_func=yes |
ba4481b5 | 16197 | |
98418dba | 16198 | # On HPUX9, an unprivileged user can get load averages through this function. |
503d2be0 | 16199 | |
98418dba CW |
16200 | for ac_func in pstat_getdynamic |
16201 | do | |
16202 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
16203 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16204 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
16205 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 16206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16207 | else |
503d2be0 | 16208 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16209 | /* confdefs.h. */ |
16210 | _ACEOF | |
16211 | cat confdefs.h >>conftest.$ac_ext | |
16212 | cat >>conftest.$ac_ext <<_ACEOF | |
16213 | /* end confdefs.h. */ | |
edfaf76d LK |
16214 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16215 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16216 | #define $ac_func innocuous_$ac_func | |
16217 | ||
98418dba | 16218 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16219 | which can conflict with char $ac_func (); below. |
16220 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16221 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 16222 | |
19650fd6 AS |
16223 | #ifdef __STDC__ |
16224 | # include <limits.h> | |
16225 | #else | |
16226 | # include <assert.h> | |
16227 | #endif | |
edfaf76d LK |
16228 | |
16229 | #undef $ac_func | |
16230 | ||
ca81d7a0 JD |
16231 | /* Override any GCC internal prototype to avoid an error. |
16232 | Use char because int might match the return type of a GCC | |
16233 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
16234 | #ifdef __cplusplus |
16235 | extern "C" | |
16236 | #endif | |
98418dba | 16237 | char $ac_func (); |
98418dba CW |
16238 | /* The GNU C library defines this for functions which it implements |
16239 | to always fail with ENOSYS. Some functions are actually named | |
16240 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 16241 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 16242 | choke me |
98418dba CW |
16243 | #endif |
16244 | ||
19650fd6 AS |
16245 | int |
16246 | main () | |
16247 | { | |
ca81d7a0 | 16248 | return $ac_func (); |
98418dba CW |
16249 | ; |
16250 | return 0; | |
16251 | } | |
f21fadcc | 16252 | _ACEOF |
98418dba | 16253 | rm -f conftest.$ac_objext conftest$ac_exeext |
ca81d7a0 JD |
16254 | if { (ac_try="$ac_link" |
16255 | case "(($ac_try" in | |
16256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16257 | *) ac_try_echo=$ac_try;; | |
16258 | esac | |
16259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16260 | (eval "$ac_link") 2>conftest.er1 | |
f21fadcc | 16261 | ac_status=$? |
edfaf76d LK |
16262 | grep -v '^ *+' conftest.er1 >conftest.err |
16263 | rm -f conftest.er1 | |
16264 | cat conftest.err >&5 | |
c0d27fcc | 16265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16266 | (exit $ac_status); } && { |
16267 | test -z "$ac_c_werror_flag" || | |
16268 | test ! -s conftest.err | |
16269 | } && test -s conftest$ac_exeext && | |
16270 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16271 | eval "$as_ac_var=yes" |
f21fadcc JD |
16272 | else |
16273 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16274 | sed 's/^/| /' conftest.$ac_ext >&5 |
16275 | ||
ca81d7a0 | 16276 | eval "$as_ac_var=no" |
f21fadcc | 16277 | fi |
ca81d7a0 | 16278 | |
f053c89f | 16279 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16280 | conftest$ac_exeext conftest.$ac_ext |
f21fadcc | 16281 | fi |
ca81d7a0 JD |
16282 | ac_res=`eval echo '${'$as_ac_var'}'` |
16283 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16284 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 16285 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 16286 | cat >>confdefs.h <<_ACEOF |
98418dba | 16287 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16288 | _ACEOF |
98418dba CW |
16289 | |
16290 | fi | |
16291 | done | |
16292 | ||
c0d27fcc | 16293 | |
98418dba CW |
16294 | # Solaris has libkstat which does not require root. |
16295 | ||
ca81d7a0 JD |
16296 | { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 |
16297 | echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; } | |
98418dba | 16298 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then |
f21fadcc JD |
16299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16300 | else | |
16301 | ac_check_lib_save_LIBS=$LIBS | |
98418dba | 16302 | LIBS="-lkstat $LIBS" |
f21fadcc | 16303 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16304 | /* confdefs.h. */ |
16305 | _ACEOF | |
16306 | cat confdefs.h >>conftest.$ac_ext | |
16307 | cat >>conftest.$ac_ext <<_ACEOF | |
16308 | /* end confdefs.h. */ | |
f21fadcc | 16309 | |
ca81d7a0 JD |
16310 | /* Override any GCC internal prototype to avoid an error. |
16311 | Use char because int might match the return type of a GCC | |
16312 | builtin and then its argument prototype would still apply. */ | |
f21fadcc JD |
16313 | #ifdef __cplusplus |
16314 | extern "C" | |
16315 | #endif | |
98418dba | 16316 | char kstat_open (); |
f21fadcc JD |
16317 | int |
16318 | main () | |
16319 | { | |
ca81d7a0 | 16320 | return kstat_open (); |
f21fadcc JD |
16321 | ; |
16322 | return 0; | |
16323 | } | |
16324 | _ACEOF | |
16325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
16326 | if { (ac_try="$ac_link" |
16327 | case "(($ac_try" in | |
16328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16329 | *) ac_try_echo=$ac_try;; | |
16330 | esac | |
16331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16332 | (eval "$ac_link") 2>conftest.er1 | |
f21fadcc | 16333 | ac_status=$? |
edfaf76d LK |
16334 | grep -v '^ *+' conftest.er1 >conftest.err |
16335 | rm -f conftest.er1 | |
16336 | cat conftest.err >&5 | |
c0d27fcc | 16337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16338 | (exit $ac_status); } && { |
16339 | test -z "$ac_c_werror_flag" || | |
16340 | test ! -s conftest.err | |
16341 | } && test -s conftest$ac_exeext && | |
16342 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16343 | ac_cv_lib_kstat_kstat_open=yes |
f21fadcc JD |
16344 | else |
16345 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16346 | sed 's/^/| /' conftest.$ac_ext >&5 |
16347 | ||
ca81d7a0 | 16348 | ac_cv_lib_kstat_kstat_open=no |
f21fadcc | 16349 | fi |
ca81d7a0 | 16350 | |
f053c89f | 16351 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16352 | conftest$ac_exeext conftest.$ac_ext |
f21fadcc JD |
16353 | LIBS=$ac_check_lib_save_LIBS |
16354 | fi | |
ca81d7a0 JD |
16355 | { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 |
16356 | echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; } | |
98418dba | 16357 | if test $ac_cv_lib_kstat_kstat_open = yes; then |
c0d27fcc | 16358 | cat >>confdefs.h <<_ACEOF |
98418dba | 16359 | #define HAVE_LIBKSTAT 1 |
c0d27fcc | 16360 | _ACEOF |
f21fadcc | 16361 | |
98418dba | 16362 | LIBS="-lkstat $LIBS" |
f21fadcc | 16363 | |
f21fadcc JD |
16364 | fi |
16365 | ||
98418dba CW |
16366 | test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes |
16367 | ||
16368 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
16369 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
16370 | # to get the right answer into the cache. | |
16371 | # For kstat on solaris, we need libelf to force the definition of SVR4 below. | |
16372 | if test $ac_have_func = no; then | |
ca81d7a0 JD |
16373 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
16374 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } | |
98418dba | 16375 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
503d2be0 | 16376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16377 | else |
98418dba CW |
16378 | ac_check_lib_save_LIBS=$LIBS |
16379 | LIBS="-lelf $LIBS" | |
16380 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16381 | /* confdefs.h. */ |
16382 | _ACEOF | |
16383 | cat confdefs.h >>conftest.$ac_ext | |
16384 | cat >>conftest.$ac_ext <<_ACEOF | |
16385 | /* end confdefs.h. */ | |
98418dba | 16386 | |
ca81d7a0 JD |
16387 | /* Override any GCC internal prototype to avoid an error. |
16388 | Use char because int might match the return type of a GCC | |
16389 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
16390 | #ifdef __cplusplus |
16391 | extern "C" | |
16392 | #endif | |
98418dba | 16393 | char elf_begin (); |
503d2be0 AS |
16394 | int |
16395 | main () | |
16396 | { | |
ca81d7a0 | 16397 | return elf_begin (); |
503d2be0 AS |
16398 | ; |
16399 | return 0; | |
16400 | } | |
16401 | _ACEOF | |
16402 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
16403 | if { (ac_try="$ac_link" |
16404 | case "(($ac_try" in | |
16405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16406 | *) ac_try_echo=$ac_try;; | |
16407 | esac | |
16408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16409 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16410 | ac_status=$? |
edfaf76d LK |
16411 | grep -v '^ *+' conftest.er1 >conftest.err |
16412 | rm -f conftest.er1 | |
16413 | cat conftest.err >&5 | |
c0d27fcc | 16414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16415 | (exit $ac_status); } && { |
16416 | test -z "$ac_c_werror_flag" || | |
16417 | test ! -s conftest.err | |
16418 | } && test -s conftest$ac_exeext && | |
16419 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16420 | ac_cv_lib_elf_elf_begin=yes |
ba4481b5 | 16421 | else |
503d2be0 | 16422 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
16423 | sed 's/^/| /' conftest.$ac_ext >&5 |
16424 | ||
ca81d7a0 | 16425 | ac_cv_lib_elf_elf_begin=no |
ba4481b5 | 16426 | fi |
ca81d7a0 | 16427 | |
f053c89f | 16428 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16429 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 16430 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 16431 | fi |
ca81d7a0 JD |
16432 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
16433 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } | |
98418dba CW |
16434 | if test $ac_cv_lib_elf_elf_begin = yes; then |
16435 | LIBS="-lelf $LIBS" | |
ba4481b5 DL |
16436 | fi |
16437 | ||
98418dba CW |
16438 | fi |
16439 | if test $ac_have_func = no; then | |
ca81d7a0 JD |
16440 | { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 |
16441 | echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; } | |
98418dba | 16442 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then |
503d2be0 | 16443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16444 | else |
98418dba CW |
16445 | ac_check_lib_save_LIBS=$LIBS |
16446 | LIBS="-lkvm $LIBS" | |
16447 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16448 | /* confdefs.h. */ |
16449 | _ACEOF | |
16450 | cat confdefs.h >>conftest.$ac_ext | |
16451 | cat >>conftest.$ac_ext <<_ACEOF | |
16452 | /* end confdefs.h. */ | |
98418dba | 16453 | |
ca81d7a0 JD |
16454 | /* Override any GCC internal prototype to avoid an error. |
16455 | Use char because int might match the return type of a GCC | |
16456 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
16457 | #ifdef __cplusplus |
16458 | extern "C" | |
16459 | #endif | |
98418dba | 16460 | char kvm_open (); |
503d2be0 AS |
16461 | int |
16462 | main () | |
16463 | { | |
ca81d7a0 | 16464 | return kvm_open (); |
503d2be0 AS |
16465 | ; |
16466 | return 0; | |
16467 | } | |
16468 | _ACEOF | |
16469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
16470 | if { (ac_try="$ac_link" |
16471 | case "(($ac_try" in | |
16472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16473 | *) ac_try_echo=$ac_try;; | |
16474 | esac | |
16475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16476 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16477 | ac_status=$? |
edfaf76d LK |
16478 | grep -v '^ *+' conftest.er1 >conftest.err |
16479 | rm -f conftest.er1 | |
16480 | cat conftest.err >&5 | |
c0d27fcc | 16481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16482 | (exit $ac_status); } && { |
16483 | test -z "$ac_c_werror_flag" || | |
16484 | test ! -s conftest.err | |
16485 | } && test -s conftest$ac_exeext && | |
16486 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16487 | ac_cv_lib_kvm_kvm_open=yes |
503d2be0 AS |
16488 | else |
16489 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16490 | sed 's/^/| /' conftest.$ac_ext >&5 |
16491 | ||
ca81d7a0 | 16492 | ac_cv_lib_kvm_kvm_open=no |
503d2be0 | 16493 | fi |
ca81d7a0 | 16494 | |
f053c89f | 16495 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16496 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 16497 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 16498 | fi |
ca81d7a0 JD |
16499 | { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 |
16500 | echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; } | |
98418dba CW |
16501 | if test $ac_cv_lib_kvm_kvm_open = yes; then |
16502 | LIBS="-lkvm $LIBS" | |
ba4481b5 DL |
16503 | fi |
16504 | ||
98418dba | 16505 | # Check for the 4.4BSD definition of getloadavg. |
ca81d7a0 JD |
16506 | { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 |
16507 | echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; } | |
98418dba | 16508 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then |
503d2be0 | 16509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16510 | else |
98418dba CW |
16511 | ac_check_lib_save_LIBS=$LIBS |
16512 | LIBS="-lutil $LIBS" | |
16513 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16514 | /* confdefs.h. */ |
16515 | _ACEOF | |
16516 | cat confdefs.h >>conftest.$ac_ext | |
16517 | cat >>conftest.$ac_ext <<_ACEOF | |
16518 | /* end confdefs.h. */ | |
98418dba | 16519 | |
ca81d7a0 JD |
16520 | /* Override any GCC internal prototype to avoid an error. |
16521 | Use char because int might match the return type of a GCC | |
16522 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
16523 | #ifdef __cplusplus |
16524 | extern "C" | |
16525 | #endif | |
98418dba | 16526 | char getloadavg (); |
503d2be0 AS |
16527 | int |
16528 | main () | |
16529 | { | |
ca81d7a0 | 16530 | return getloadavg (); |
503d2be0 AS |
16531 | ; |
16532 | return 0; | |
16533 | } | |
16534 | _ACEOF | |
16535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
16536 | if { (ac_try="$ac_link" |
16537 | case "(($ac_try" in | |
16538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16539 | *) ac_try_echo=$ac_try;; | |
16540 | esac | |
16541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16542 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16543 | ac_status=$? |
edfaf76d LK |
16544 | grep -v '^ *+' conftest.er1 >conftest.err |
16545 | rm -f conftest.er1 | |
16546 | cat conftest.err >&5 | |
c0d27fcc | 16547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16548 | (exit $ac_status); } && { |
16549 | test -z "$ac_c_werror_flag" || | |
16550 | test ! -s conftest.err | |
16551 | } && test -s conftest$ac_exeext && | |
16552 | $as_test_x conftest$ac_exeext; then | |
35996d22 AS |
16553 | ac_cv_lib_util_getloadavg=yes |
16554 | else | |
503d2be0 | 16555 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
16556 | sed 's/^/| /' conftest.$ac_ext >&5 |
16557 | ||
ca81d7a0 | 16558 | ac_cv_lib_util_getloadavg=no |
ba4481b5 | 16559 | fi |
ca81d7a0 | 16560 | |
f053c89f | 16561 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16562 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
16563 | LIBS=$ac_check_lib_save_LIBS |
16564 | fi | |
ca81d7a0 JD |
16565 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 |
16566 | echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; } | |
98418dba CW |
16567 | if test $ac_cv_lib_util_getloadavg = yes; then |
16568 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
ba4481b5 | 16569 | fi |
503d2be0 | 16570 | |
98418dba | 16571 | fi |
ba4481b5 | 16572 | |
98418dba CW |
16573 | if test $ac_have_func = no; then |
16574 | # There is a commonly available library for RS/6000 AIX. | |
16575 | # Since it is not a standard part of AIX, it might be installed locally. | |
16576 | ac_getloadavg_LIBS=$LIBS | |
16577 | LIBS="-L/usr/local/lib $LIBS" | |
ca81d7a0 JD |
16578 | { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 |
16579 | echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; } | |
98418dba | 16580 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then |
503d2be0 | 16581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16582 | else |
98418dba CW |
16583 | ac_check_lib_save_LIBS=$LIBS |
16584 | LIBS="-lgetloadavg $LIBS" | |
16585 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16586 | /* confdefs.h. */ |
16587 | _ACEOF | |
16588 | cat confdefs.h >>conftest.$ac_ext | |
16589 | cat >>conftest.$ac_ext <<_ACEOF | |
16590 | /* end confdefs.h. */ | |
ba4481b5 | 16591 | |
ca81d7a0 JD |
16592 | /* Override any GCC internal prototype to avoid an error. |
16593 | Use char because int might match the return type of a GCC | |
16594 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
16595 | #ifdef __cplusplus |
16596 | extern "C" | |
16597 | #endif | |
98418dba | 16598 | char getloadavg (); |
98418dba CW |
16599 | int |
16600 | main () | |
16601 | { | |
ca81d7a0 | 16602 | return getloadavg (); |
98418dba CW |
16603 | ; |
16604 | return 0; | |
16605 | } | |
503d2be0 | 16606 | _ACEOF |
98418dba | 16607 | rm -f conftest.$ac_objext conftest$ac_exeext |
ca81d7a0 JD |
16608 | if { (ac_try="$ac_link" |
16609 | case "(($ac_try" in | |
16610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16611 | *) ac_try_echo=$ac_try;; | |
16612 | esac | |
16613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16614 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 16615 | ac_status=$? |
edfaf76d LK |
16616 | grep -v '^ *+' conftest.er1 >conftest.err |
16617 | rm -f conftest.er1 | |
16618 | cat conftest.err >&5 | |
c0d27fcc | 16619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16620 | (exit $ac_status); } && { |
16621 | test -z "$ac_c_werror_flag" || | |
16622 | test ! -s conftest.err | |
16623 | } && test -s conftest$ac_exeext && | |
16624 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16625 | ac_cv_lib_getloadavg_getloadavg=yes |
ba4481b5 | 16626 | else |
98418dba | 16627 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
16628 | sed 's/^/| /' conftest.$ac_ext >&5 |
16629 | ||
ca81d7a0 | 16630 | ac_cv_lib_getloadavg_getloadavg=no |
98418dba | 16631 | fi |
ca81d7a0 | 16632 | |
f053c89f | 16633 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16634 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
16635 | LIBS=$ac_check_lib_save_LIBS |
16636 | fi | |
ca81d7a0 JD |
16637 | { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
16638 | echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; } | |
98418dba CW |
16639 | if test $ac_cv_lib_getloadavg_getloadavg = yes; then |
16640 | LIBS="-lgetloadavg $LIBS" | |
16641 | else | |
16642 | LIBS=$ac_getloadavg_LIBS | |
ba4481b5 | 16643 | fi |
ba4481b5 DL |
16644 | |
16645 | fi | |
98418dba CW |
16646 | |
16647 | # Make sure it is really in the library, if we think we found it, | |
16648 | # otherwise set up the replacement function. | |
16649 | ||
16650 | for ac_func in getloadavg | |
16651 | do | |
16652 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
16653 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16654 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
16655 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 16656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16657 | else |
503d2be0 | 16658 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16659 | /* confdefs.h. */ |
16660 | _ACEOF | |
16661 | cat confdefs.h >>conftest.$ac_ext | |
16662 | cat >>conftest.$ac_ext <<_ACEOF | |
16663 | /* end confdefs.h. */ | |
edfaf76d LK |
16664 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16665 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16666 | #define $ac_func innocuous_$ac_func | |
16667 | ||
ba4481b5 | 16668 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16669 | which can conflict with char $ac_func (); below. |
16670 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16671 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 16672 | |
19650fd6 AS |
16673 | #ifdef __STDC__ |
16674 | # include <limits.h> | |
16675 | #else | |
16676 | # include <assert.h> | |
16677 | #endif | |
edfaf76d LK |
16678 | |
16679 | #undef $ac_func | |
16680 | ||
ca81d7a0 JD |
16681 | /* Override any GCC internal prototype to avoid an error. |
16682 | Use char because int might match the return type of a GCC | |
16683 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
16684 | #ifdef __cplusplus |
16685 | extern "C" | |
16686 | #endif | |
503d2be0 | 16687 | char $ac_func (); |
ba4481b5 DL |
16688 | /* The GNU C library defines this for functions which it implements |
16689 | to always fail with ENOSYS. Some functions are actually named | |
16690 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 16691 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ba4481b5 | 16692 | choke me |
cd958eb3 MB |
16693 | #endif |
16694 | ||
19650fd6 AS |
16695 | int |
16696 | main () | |
16697 | { | |
ca81d7a0 | 16698 | return $ac_func (); |
503d2be0 AS |
16699 | ; |
16700 | return 0; | |
16701 | } | |
16702 | _ACEOF | |
16703 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
16704 | if { (ac_try="$ac_link" |
16705 | case "(($ac_try" in | |
16706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16707 | *) ac_try_echo=$ac_try;; | |
16708 | esac | |
16709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16710 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16711 | ac_status=$? |
edfaf76d LK |
16712 | grep -v '^ *+' conftest.er1 >conftest.err |
16713 | rm -f conftest.er1 | |
16714 | cat conftest.err >&5 | |
c0d27fcc | 16715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16716 | (exit $ac_status); } && { |
16717 | test -z "$ac_c_werror_flag" || | |
16718 | test ! -s conftest.err | |
16719 | } && test -s conftest$ac_exeext && | |
16720 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
16721 | eval "$as_ac_var=yes" |
16722 | else | |
16723 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16724 | sed 's/^/| /' conftest.$ac_ext >&5 |
16725 | ||
ca81d7a0 | 16726 | eval "$as_ac_var=no" |
503d2be0 | 16727 | fi |
ca81d7a0 | 16728 | |
f053c89f | 16729 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16730 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 16731 | fi |
ca81d7a0 JD |
16732 | ac_res=`eval echo '${'$as_ac_var'}'` |
16733 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16734 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 16735 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 16736 | cat >>confdefs.h <<_ACEOF |
98418dba | 16737 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16738 | _ACEOF |
503d2be0 | 16739 | |
98418dba | 16740 | else |
ca81d7a0 | 16741 | case " $LIBOBJS " in |
edfaf76d | 16742 | *" getloadavg.$ac_objext "* ) ;; |
ca81d7a0 JD |
16743 | *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" |
16744 | ;; | |
edfaf76d LK |
16745 | esac |
16746 | ||
ba4481b5 | 16747 | |
c0d27fcc | 16748 | cat >>confdefs.h <<\_ACEOF |
98418dba | 16749 | #define C_GETLOADAVG 1 |
c0d27fcc | 16750 | _ACEOF |
ba4481b5 | 16751 | |
98418dba CW |
16752 | # Figure out what our getloadavg.c needs. |
16753 | ac_have_func=no | |
c0d27fcc | 16754 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
ca81d7a0 JD |
16755 | { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 |
16756 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; } | |
98418dba | 16757 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
503d2be0 | 16758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 16759 | fi |
ca81d7a0 JD |
16760 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
16761 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; } | |
ba4481b5 | 16762 | else |
c0d27fcc | 16763 | # Is the header compilable? |
ca81d7a0 JD |
16764 | { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 |
16765 | echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 16766 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16767 | /* confdefs.h. */ |
16768 | _ACEOF | |
16769 | cat confdefs.h >>conftest.$ac_ext | |
16770 | cat >>conftest.$ac_ext <<_ACEOF | |
16771 | /* end confdefs.h. */ | |
c0d27fcc MR |
16772 | $ac_includes_default |
16773 | #include <sys/dg_sys_info.h> | |
16774 | _ACEOF | |
16775 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
16776 | if { (ac_try="$ac_compile" |
16777 | case "(($ac_try" in | |
16778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16779 | *) ac_try_echo=$ac_try;; | |
16780 | esac | |
16781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16782 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 16783 | ac_status=$? |
edfaf76d LK |
16784 | grep -v '^ *+' conftest.er1 >conftest.err |
16785 | rm -f conftest.er1 | |
16786 | cat conftest.err >&5 | |
c0d27fcc | 16787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16788 | (exit $ac_status); } && { |
16789 | test -z "$ac_c_werror_flag" || | |
16790 | test ! -s conftest.err | |
16791 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
16792 | ac_header_compiler=yes |
16793 | else | |
16794 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16795 | sed 's/^/| /' conftest.$ac_ext >&5 |
16796 | ||
ca81d7a0 | 16797 | ac_header_compiler=no |
c0d27fcc | 16798 | fi |
ca81d7a0 JD |
16799 | |
16800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16801 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16802 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
16803 | |
16804 | # Is the header present? | |
ca81d7a0 JD |
16805 | { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 |
16806 | echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 16807 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16808 | /* confdefs.h. */ |
16809 | _ACEOF | |
16810 | cat confdefs.h >>conftest.$ac_ext | |
16811 | cat >>conftest.$ac_ext <<_ACEOF | |
16812 | /* end confdefs.h. */ | |
98418dba CW |
16813 | #include <sys/dg_sys_info.h> |
16814 | _ACEOF | |
ca81d7a0 JD |
16815 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16816 | case "(($ac_try" in | |
16817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16818 | *) ac_try_echo=$ac_try;; | |
16819 | esac | |
16820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16821 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 16822 | ac_status=$? |
6bae0ccf | 16823 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
16824 | rm -f conftest.er1 |
16825 | cat conftest.err >&5 | |
c0d27fcc | 16826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16827 | (exit $ac_status); } >/dev/null && { |
16828 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16829 | test ! -s conftest.err | |
16830 | }; then | |
c0d27fcc | 16831 | ac_header_preproc=yes |
98418dba CW |
16832 | else |
16833 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16834 | sed 's/^/| /' conftest.$ac_ext >&5 |
16835 | ||
c0d27fcc | 16836 | ac_header_preproc=no |
ba4481b5 | 16837 | fi |
ca81d7a0 | 16838 | |
98418dba | 16839 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
16840 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16841 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
16842 | |
16843 | # So? What about this header? | |
edfaf76d LK |
16844 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16845 | yes:no: ) | |
c0d27fcc MR |
16846 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
16847 | echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
16848 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5 |
16849 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;} | |
16850 | ac_header_preproc=yes | |
19650fd6 | 16851 | ;; |
edfaf76d | 16852 | no:yes:* ) |
c0d27fcc MR |
16853 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 |
16854 | echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
16855 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 |
16856 | echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
16857 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5 | |
16858 | echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;} | |
16859 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5 | |
16860 | echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 16861 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 16862 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
16863 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5 |
16864 | echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 16865 | |
19650fd6 | 16866 | ;; |
c0d27fcc | 16867 | esac |
ca81d7a0 JD |
16868 | { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 |
16869 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
16870 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
16871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16872 | else | |
16873 | ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
98418dba | 16874 | fi |
ca81d7a0 JD |
16875 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
16876 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; } | |
c0d27fcc MR |
16877 | |
16878 | fi | |
98418dba CW |
16879 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then |
16880 | ac_have_func=yes | |
ba4481b5 | 16881 | |
c0d27fcc | 16882 | cat >>confdefs.h <<\_ACEOF |
98418dba | 16883 | #define DGUX 1 |
c0d27fcc MR |
16884 | _ACEOF |
16885 | ||
503d2be0 | 16886 | |
ca81d7a0 JD |
16887 | { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 |
16888 | echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; } | |
98418dba | 16889 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then |
503d2be0 | 16890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16891 | else |
503d2be0 | 16892 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 16893 | LIBS="-ldgc $LIBS" |
503d2be0 | 16894 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16895 | /* confdefs.h. */ |
16896 | _ACEOF | |
16897 | cat confdefs.h >>conftest.$ac_ext | |
16898 | cat >>conftest.$ac_ext <<_ACEOF | |
16899 | /* end confdefs.h. */ | |
503d2be0 | 16900 | |
ca81d7a0 JD |
16901 | /* Override any GCC internal prototype to avoid an error. |
16902 | Use char because int might match the return type of a GCC | |
16903 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
16904 | #ifdef __cplusplus |
16905 | extern "C" | |
16906 | #endif | |
98418dba | 16907 | char dg_sys_info (); |
503d2be0 AS |
16908 | int |
16909 | main () | |
16910 | { | |
ca81d7a0 | 16911 | return dg_sys_info (); |
503d2be0 AS |
16912 | ; |
16913 | return 0; | |
16914 | } | |
16915 | _ACEOF | |
16916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
16917 | if { (ac_try="$ac_link" |
16918 | case "(($ac_try" in | |
16919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16920 | *) ac_try_echo=$ac_try;; | |
16921 | esac | |
16922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16923 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16924 | ac_status=$? |
edfaf76d LK |
16925 | grep -v '^ *+' conftest.er1 >conftest.err |
16926 | rm -f conftest.er1 | |
16927 | cat conftest.err >&5 | |
c0d27fcc | 16928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16929 | (exit $ac_status); } && { |
16930 | test -z "$ac_c_werror_flag" || | |
16931 | test ! -s conftest.err | |
16932 | } && test -s conftest$ac_exeext && | |
16933 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16934 | ac_cv_lib_dgc_dg_sys_info=yes |
503d2be0 AS |
16935 | else |
16936 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16937 | sed 's/^/| /' conftest.$ac_ext >&5 |
16938 | ||
ca81d7a0 | 16939 | ac_cv_lib_dgc_dg_sys_info=no |
503d2be0 | 16940 | fi |
ca81d7a0 | 16941 | |
f053c89f | 16942 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16943 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
16944 | LIBS=$ac_check_lib_save_LIBS |
16945 | fi | |
ca81d7a0 JD |
16946 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
16947 | echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; } | |
98418dba | 16948 | if test $ac_cv_lib_dgc_dg_sys_info = yes; then |
c0d27fcc | 16949 | cat >>confdefs.h <<_ACEOF |
98418dba | 16950 | #define HAVE_LIBDGC 1 |
c0d27fcc | 16951 | _ACEOF |
ba4481b5 | 16952 | |
98418dba | 16953 | LIBS="-ldgc $LIBS" |
ba4481b5 | 16954 | |
ba4481b5 DL |
16955 | fi |
16956 | ||
98418dba | 16957 | fi |
503d2be0 | 16958 | |
c0d27fcc MR |
16959 | |
16960 | ||
16961 | if test "${ac_cv_header_locale_h+set}" = set; then | |
ca81d7a0 JD |
16962 | { echo "$as_me:$LINENO: checking for locale.h" >&5 |
16963 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; } | |
98418dba | 16964 | if test "${ac_cv_header_locale_h+set}" = set; then |
503d2be0 | 16965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 16966 | fi |
ca81d7a0 JD |
16967 | { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 |
16968 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6; } | |
503d2be0 | 16969 | else |
c0d27fcc | 16970 | # Is the header compilable? |
ca81d7a0 JD |
16971 | { echo "$as_me:$LINENO: checking locale.h usability" >&5 |
16972 | echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 16973 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16974 | /* confdefs.h. */ |
16975 | _ACEOF | |
16976 | cat confdefs.h >>conftest.$ac_ext | |
16977 | cat >>conftest.$ac_ext <<_ACEOF | |
16978 | /* end confdefs.h. */ | |
c0d27fcc MR |
16979 | $ac_includes_default |
16980 | #include <locale.h> | |
16981 | _ACEOF | |
16982 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
16983 | if { (ac_try="$ac_compile" |
16984 | case "(($ac_try" in | |
16985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16986 | *) ac_try_echo=$ac_try;; | |
16987 | esac | |
16988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16989 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 16990 | ac_status=$? |
edfaf76d LK |
16991 | grep -v '^ *+' conftest.er1 >conftest.err |
16992 | rm -f conftest.er1 | |
16993 | cat conftest.err >&5 | |
c0d27fcc | 16994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16995 | (exit $ac_status); } && { |
16996 | test -z "$ac_c_werror_flag" || | |
16997 | test ! -s conftest.err | |
16998 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
16999 | ac_header_compiler=yes |
17000 | else | |
17001 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17002 | sed 's/^/| /' conftest.$ac_ext >&5 |
17003 | ||
ca81d7a0 | 17004 | ac_header_compiler=no |
c0d27fcc | 17005 | fi |
ca81d7a0 JD |
17006 | |
17007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17008 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17009 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
17010 | |
17011 | # Is the header present? | |
ca81d7a0 JD |
17012 | { echo "$as_me:$LINENO: checking locale.h presence" >&5 |
17013 | echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 17014 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17015 | /* confdefs.h. */ |
17016 | _ACEOF | |
17017 | cat confdefs.h >>conftest.$ac_ext | |
17018 | cat >>conftest.$ac_ext <<_ACEOF | |
17019 | /* end confdefs.h. */ | |
98418dba | 17020 | #include <locale.h> |
503d2be0 | 17021 | _ACEOF |
ca81d7a0 JD |
17022 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17023 | case "(($ac_try" in | |
17024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17025 | *) ac_try_echo=$ac_try;; | |
17026 | esac | |
17027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17028 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 17029 | ac_status=$? |
6bae0ccf | 17030 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
17031 | rm -f conftest.er1 |
17032 | cat conftest.err >&5 | |
c0d27fcc | 17033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17034 | (exit $ac_status); } >/dev/null && { |
17035 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17036 | test ! -s conftest.err | |
17037 | }; then | |
c0d27fcc | 17038 | ac_header_preproc=yes |
98418dba CW |
17039 | else |
17040 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17041 | sed 's/^/| /' conftest.$ac_ext >&5 |
17042 | ||
c0d27fcc | 17043 | ac_header_preproc=no |
ba4481b5 | 17044 | fi |
ca81d7a0 | 17045 | |
98418dba | 17046 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
17047 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17048 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
17049 | |
17050 | # So? What about this header? | |
edfaf76d LK |
17051 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17052 | yes:no: ) | |
c0d27fcc MR |
17053 | { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
17054 | echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
17055 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 |
17056 | echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} | |
17057 | ac_header_preproc=yes | |
19650fd6 | 17058 | ;; |
edfaf76d | 17059 | no:yes:* ) |
c0d27fcc MR |
17060 | { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 |
17061 | echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
17062 | { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 |
17063 | echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
17064 | { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 | |
17065 | echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} | |
17066 | { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 | |
17067 | echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17068 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17069 | echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
17070 | { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 |
17071 | echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 17072 | |
19650fd6 | 17073 | ;; |
c0d27fcc | 17074 | esac |
ca81d7a0 JD |
17075 | { echo "$as_me:$LINENO: checking for locale.h" >&5 |
17076 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
17077 | if test "${ac_cv_header_locale_h+set}" = set; then |
17078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17079 | else | |
17080 | ac_cv_header_locale_h=$ac_header_preproc | |
ba4481b5 | 17081 | fi |
ca81d7a0 JD |
17082 | { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 |
17083 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6; } | |
98418dba | 17084 | |
c0d27fcc MR |
17085 | fi |
17086 | ||
17087 | ||
17088 | ||
98418dba | 17089 | for ac_func in setlocale |
ba4481b5 | 17090 | do |
503d2be0 | 17091 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ca81d7a0 JD |
17092 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17093 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
17094 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 17095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17096 | else |
503d2be0 | 17097 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17098 | /* confdefs.h. */ |
17099 | _ACEOF | |
17100 | cat confdefs.h >>conftest.$ac_ext | |
17101 | cat >>conftest.$ac_ext <<_ACEOF | |
17102 | /* end confdefs.h. */ | |
edfaf76d LK |
17103 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17104 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17105 | #define $ac_func innocuous_$ac_func | |
17106 | ||
ba4481b5 | 17107 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
17108 | which can conflict with char $ac_func (); below. |
17109 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17110 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 17111 | |
19650fd6 AS |
17112 | #ifdef __STDC__ |
17113 | # include <limits.h> | |
17114 | #else | |
17115 | # include <assert.h> | |
17116 | #endif | |
edfaf76d LK |
17117 | |
17118 | #undef $ac_func | |
17119 | ||
ca81d7a0 JD |
17120 | /* Override any GCC internal prototype to avoid an error. |
17121 | Use char because int might match the return type of a GCC | |
17122 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
17123 | #ifdef __cplusplus |
17124 | extern "C" | |
17125 | #endif | |
503d2be0 | 17126 | char $ac_func (); |
ba4481b5 DL |
17127 | /* The GNU C library defines this for functions which it implements |
17128 | to always fail with ENOSYS. Some functions are actually named | |
17129 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 17130 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ba4481b5 | 17131 | choke me |
ba4481b5 DL |
17132 | #endif |
17133 | ||
19650fd6 AS |
17134 | int |
17135 | main () | |
17136 | { | |
ca81d7a0 | 17137 | return $ac_func (); |
503d2be0 AS |
17138 | ; |
17139 | return 0; | |
17140 | } | |
17141 | _ACEOF | |
17142 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
17143 | if { (ac_try="$ac_link" |
17144 | case "(($ac_try" in | |
17145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17146 | *) ac_try_echo=$ac_try;; | |
17147 | esac | |
17148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17149 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 17150 | ac_status=$? |
edfaf76d LK |
17151 | grep -v '^ *+' conftest.er1 >conftest.err |
17152 | rm -f conftest.er1 | |
17153 | cat conftest.err >&5 | |
c0d27fcc | 17154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17155 | (exit $ac_status); } && { |
17156 | test -z "$ac_c_werror_flag" || | |
17157 | test ! -s conftest.err | |
17158 | } && test -s conftest$ac_exeext && | |
17159 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
17160 | eval "$as_ac_var=yes" |
17161 | else | |
17162 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17163 | sed 's/^/| /' conftest.$ac_ext >&5 |
17164 | ||
ca81d7a0 | 17165 | eval "$as_ac_var=no" |
503d2be0 | 17166 | fi |
ca81d7a0 | 17167 | |
f053c89f | 17168 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 17169 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 17170 | fi |
ca81d7a0 JD |
17171 | ac_res=`eval echo '${'$as_ac_var'}'` |
17172 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17173 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 17174 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 17175 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17176 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 17177 | _ACEOF |
ba4481b5 | 17178 | |
ba4481b5 DL |
17179 | fi |
17180 | done | |
17181 | ||
c0d27fcc | 17182 | |
98418dba CW |
17183 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
17184 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
17185 | # Irix 4.0.5F has the header but not the library. | |
17186 | if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
17187 | ac_have_func=yes | |
17188 | ||
c0d27fcc | 17189 | cat >>confdefs.h <<\_ACEOF |
98418dba | 17190 | #define SVR4 1 |
c0d27fcc | 17191 | _ACEOF |
98418dba CW |
17192 | |
17193 | fi | |
17194 | ||
17195 | if test $ac_have_func = no; then | |
c0d27fcc | 17196 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
ca81d7a0 JD |
17197 | { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 |
17198 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; } | |
98418dba | 17199 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
503d2be0 | 17200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 17201 | fi |
ca81d7a0 JD |
17202 | { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
17203 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; } | |
98418dba | 17204 | else |
c0d27fcc | 17205 | # Is the header compilable? |
ca81d7a0 JD |
17206 | { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 |
17207 | echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 17208 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17209 | /* confdefs.h. */ |
17210 | _ACEOF | |
17211 | cat confdefs.h >>conftest.$ac_ext | |
17212 | cat >>conftest.$ac_ext <<_ACEOF | |
17213 | /* end confdefs.h. */ | |
c0d27fcc MR |
17214 | $ac_includes_default |
17215 | #include <inq_stats/cpustats.h> | |
17216 | _ACEOF | |
17217 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
17218 | if { (ac_try="$ac_compile" |
17219 | case "(($ac_try" in | |
17220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17221 | *) ac_try_echo=$ac_try;; | |
17222 | esac | |
17223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17224 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 17225 | ac_status=$? |
edfaf76d LK |
17226 | grep -v '^ *+' conftest.er1 >conftest.err |
17227 | rm -f conftest.er1 | |
17228 | cat conftest.err >&5 | |
c0d27fcc | 17229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17230 | (exit $ac_status); } && { |
17231 | test -z "$ac_c_werror_flag" || | |
17232 | test ! -s conftest.err | |
17233 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
17234 | ac_header_compiler=yes |
17235 | else | |
17236 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17237 | sed 's/^/| /' conftest.$ac_ext >&5 |
17238 | ||
ca81d7a0 | 17239 | ac_header_compiler=no |
c0d27fcc | 17240 | fi |
ca81d7a0 JD |
17241 | |
17242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17243 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17244 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
17245 | |
17246 | # Is the header present? | |
ca81d7a0 JD |
17247 | { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 |
17248 | echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 17249 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17250 | /* confdefs.h. */ |
17251 | _ACEOF | |
17252 | cat confdefs.h >>conftest.$ac_ext | |
17253 | cat >>conftest.$ac_ext <<_ACEOF | |
17254 | /* end confdefs.h. */ | |
98418dba | 17255 | #include <inq_stats/cpustats.h> |
503d2be0 | 17256 | _ACEOF |
ca81d7a0 JD |
17257 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17258 | case "(($ac_try" in | |
17259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17260 | *) ac_try_echo=$ac_try;; | |
17261 | esac | |
17262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17263 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 17264 | ac_status=$? |
6bae0ccf | 17265 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
17266 | rm -f conftest.er1 |
17267 | cat conftest.err >&5 | |
c0d27fcc | 17268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17269 | (exit $ac_status); } >/dev/null && { |
17270 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17271 | test ! -s conftest.err | |
17272 | }; then | |
c0d27fcc | 17273 | ac_header_preproc=yes |
503d2be0 AS |
17274 | else |
17275 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17276 | sed 's/^/| /' conftest.$ac_ext >&5 |
17277 | ||
c0d27fcc | 17278 | ac_header_preproc=no |
ba4481b5 | 17279 | fi |
ca81d7a0 | 17280 | |
503d2be0 | 17281 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
17282 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17283 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
17284 | |
17285 | # So? What about this header? | |
edfaf76d LK |
17286 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17287 | yes:no: ) | |
c0d27fcc MR |
17288 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
17289 | echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
17290 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5 |
17291 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;} | |
17292 | ac_header_preproc=yes | |
19650fd6 | 17293 | ;; |
edfaf76d | 17294 | no:yes:* ) |
c0d27fcc MR |
17295 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 |
17296 | echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
17297 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 |
17298 | echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
17299 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5 | |
17300 | echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;} | |
17301 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
17302 | echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17303 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17304 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
17305 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5 |
17306 | echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 17307 | |
19650fd6 | 17308 | ;; |
c0d27fcc | 17309 | esac |
ca81d7a0 JD |
17310 | { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 |
17311 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
17312 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
17313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17314 | else | |
17315 | ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
ba4481b5 | 17316 | fi |
ca81d7a0 JD |
17317 | { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
17318 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; } | |
c0d27fcc MR |
17319 | |
17320 | fi | |
98418dba CW |
17321 | if test $ac_cv_header_inq_stats_cpustats_h = yes; then |
17322 | ac_have_func=yes | |
ba4481b5 | 17323 | |
c0d27fcc | 17324 | cat >>confdefs.h <<\_ACEOF |
98418dba | 17325 | #define UMAX 1 |
c0d27fcc | 17326 | _ACEOF |
98418dba | 17327 | |
c0d27fcc MR |
17328 | |
17329 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 17330 | #define UMAX4_3 1 |
c0d27fcc | 17331 | _ACEOF |
98418dba CW |
17332 | |
17333 | fi | |
17334 | ||
c0d27fcc | 17335 | |
98418dba CW |
17336 | fi |
17337 | ||
17338 | if test $ac_have_func = no; then | |
c0d27fcc | 17339 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
ca81d7a0 JD |
17340 | { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 |
17341 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; } | |
98418dba | 17342 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
503d2be0 | 17343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 17344 | fi |
ca81d7a0 JD |
17345 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 |
17346 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; } | |
503d2be0 | 17347 | else |
c0d27fcc | 17348 | # Is the header compilable? |
ca81d7a0 JD |
17349 | { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 |
17350 | echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 17351 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17352 | /* confdefs.h. */ |
17353 | _ACEOF | |
17354 | cat confdefs.h >>conftest.$ac_ext | |
17355 | cat >>conftest.$ac_ext <<_ACEOF | |
17356 | /* end confdefs.h. */ | |
c0d27fcc MR |
17357 | $ac_includes_default |
17358 | #include <sys/cpustats.h> | |
17359 | _ACEOF | |
17360 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
17361 | if { (ac_try="$ac_compile" |
17362 | case "(($ac_try" in | |
17363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17364 | *) ac_try_echo=$ac_try;; | |
17365 | esac | |
17366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17367 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 17368 | ac_status=$? |
edfaf76d LK |
17369 | grep -v '^ *+' conftest.er1 >conftest.err |
17370 | rm -f conftest.er1 | |
17371 | cat conftest.err >&5 | |
c0d27fcc | 17372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17373 | (exit $ac_status); } && { |
17374 | test -z "$ac_c_werror_flag" || | |
17375 | test ! -s conftest.err | |
17376 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
17377 | ac_header_compiler=yes |
17378 | else | |
17379 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17380 | sed 's/^/| /' conftest.$ac_ext >&5 |
17381 | ||
ca81d7a0 | 17382 | ac_header_compiler=no |
c0d27fcc | 17383 | fi |
ca81d7a0 JD |
17384 | |
17385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17386 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17387 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
17388 | |
17389 | # Is the header present? | |
ca81d7a0 JD |
17390 | { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 |
17391 | echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 17392 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17393 | /* confdefs.h. */ |
17394 | _ACEOF | |
17395 | cat confdefs.h >>conftest.$ac_ext | |
17396 | cat >>conftest.$ac_ext <<_ACEOF | |
17397 | /* end confdefs.h. */ | |
98418dba CW |
17398 | #include <sys/cpustats.h> |
17399 | _ACEOF | |
ca81d7a0 JD |
17400 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17401 | case "(($ac_try" in | |
17402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17403 | *) ac_try_echo=$ac_try;; | |
17404 | esac | |
17405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17406 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 17407 | ac_status=$? |
6bae0ccf | 17408 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
17409 | rm -f conftest.er1 |
17410 | cat conftest.err >&5 | |
c0d27fcc | 17411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17412 | (exit $ac_status); } >/dev/null && { |
17413 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17414 | test ! -s conftest.err | |
17415 | }; then | |
c0d27fcc | 17416 | ac_header_preproc=yes |
98418dba CW |
17417 | else |
17418 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17419 | sed 's/^/| /' conftest.$ac_ext >&5 |
17420 | ||
c0d27fcc | 17421 | ac_header_preproc=no |
98418dba | 17422 | fi |
ca81d7a0 | 17423 | |
98418dba | 17424 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
17425 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17426 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
17427 | |
17428 | # So? What about this header? | |
edfaf76d LK |
17429 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17430 | yes:no: ) | |
c0d27fcc MR |
17431 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
17432 | echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
17433 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5 |
17434 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;} | |
17435 | ac_header_preproc=yes | |
19650fd6 | 17436 | ;; |
edfaf76d | 17437 | no:yes:* ) |
c0d27fcc MR |
17438 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 |
17439 | echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
17440 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 |
17441 | echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
17442 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5 | |
17443 | echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;} | |
17444 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
17445 | echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17446 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17447 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
17448 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5 |
17449 | echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 17450 | |
19650fd6 | 17451 | ;; |
c0d27fcc | 17452 | esac |
ca81d7a0 JD |
17453 | { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 |
17454 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
17455 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
17456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17457 | else | |
17458 | ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
98418dba | 17459 | fi |
ca81d7a0 JD |
17460 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 |
17461 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; } | |
c0d27fcc MR |
17462 | |
17463 | fi | |
98418dba | 17464 | if test $ac_cv_header_sys_cpustats_h = yes; then |
c0d27fcc | 17465 | ac_have_func=yes; cat >>confdefs.h <<\_ACEOF |
98418dba | 17466 | #define UMAX 1 |
c0d27fcc | 17467 | _ACEOF |
ba4481b5 | 17468 | |
98418dba CW |
17469 | fi |
17470 | ||
c0d27fcc | 17471 | |
98418dba CW |
17472 | fi |
17473 | ||
17474 | if test $ac_have_func = no; then | |
17475 | ||
17476 | for ac_header in mach/mach.h | |
2c9dccc9 PJ |
17477 | do |
17478 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
17479 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
17480 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17481 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
17482 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
2c9dccc9 | 17483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 17484 | fi |
ca81d7a0 JD |
17485 | ac_res=`eval echo '${'$as_ac_Header'}'` |
17486 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17487 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 17488 | else |
c0d27fcc | 17489 | # Is the header compilable? |
ca81d7a0 JD |
17490 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17491 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 17492 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17493 | /* confdefs.h. */ |
17494 | _ACEOF | |
17495 | cat confdefs.h >>conftest.$ac_ext | |
17496 | cat >>conftest.$ac_ext <<_ACEOF | |
17497 | /* end confdefs.h. */ | |
c0d27fcc MR |
17498 | $ac_includes_default |
17499 | #include <$ac_header> | |
17500 | _ACEOF | |
17501 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
17502 | if { (ac_try="$ac_compile" |
17503 | case "(($ac_try" in | |
17504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17505 | *) ac_try_echo=$ac_try;; | |
17506 | esac | |
17507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17508 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 17509 | ac_status=$? |
edfaf76d LK |
17510 | grep -v '^ *+' conftest.er1 >conftest.err |
17511 | rm -f conftest.er1 | |
17512 | cat conftest.err >&5 | |
c0d27fcc | 17513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17514 | (exit $ac_status); } && { |
17515 | test -z "$ac_c_werror_flag" || | |
17516 | test ! -s conftest.err | |
17517 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
17518 | ac_header_compiler=yes |
17519 | else | |
17520 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17521 | sed 's/^/| /' conftest.$ac_ext >&5 |
17522 | ||
ca81d7a0 | 17523 | ac_header_compiler=no |
c0d27fcc | 17524 | fi |
ca81d7a0 JD |
17525 | |
17526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17527 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17528 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
17529 | |
17530 | # Is the header present? | |
ca81d7a0 JD |
17531 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17532 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 17533 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17534 | /* confdefs.h. */ |
17535 | _ACEOF | |
17536 | cat confdefs.h >>conftest.$ac_ext | |
17537 | cat >>conftest.$ac_ext <<_ACEOF | |
17538 | /* end confdefs.h. */ | |
2c9dccc9 PJ |
17539 | #include <$ac_header> |
17540 | _ACEOF | |
ca81d7a0 JD |
17541 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17542 | case "(($ac_try" in | |
17543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17544 | *) ac_try_echo=$ac_try;; | |
17545 | esac | |
17546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17547 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
2c9dccc9 | 17548 | ac_status=$? |
6bae0ccf | 17549 | grep -v '^ *+' conftest.er1 >conftest.err |
2c9dccc9 PJ |
17550 | rm -f conftest.er1 |
17551 | cat conftest.err >&5 | |
c0d27fcc | 17552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17553 | (exit $ac_status); } >/dev/null && { |
17554 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17555 | test ! -s conftest.err | |
17556 | }; then | |
c0d27fcc MR |
17557 | ac_header_preproc=yes |
17558 | else | |
17559 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17560 | sed 's/^/| /' conftest.$ac_ext >&5 |
17561 | ||
c0d27fcc MR |
17562 | ac_header_preproc=no |
17563 | fi | |
ca81d7a0 | 17564 | |
c0d27fcc | 17565 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
17566 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17567 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
17568 | |
17569 | # So? What about this header? | |
edfaf76d LK |
17570 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17571 | yes:no: ) | |
c0d27fcc MR |
17572 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17573 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
17574 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17575 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17576 | ac_header_preproc=yes | |
19650fd6 | 17577 | ;; |
edfaf76d | 17578 | no:yes:* ) |
c0d27fcc MR |
17579 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17580 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
17581 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17582 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17583 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17584 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17585 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17586 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17587 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17588 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
17589 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17590 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 17591 | |
19650fd6 | 17592 | ;; |
c0d27fcc | 17593 | esac |
ca81d7a0 JD |
17594 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17595 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
17596 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
17597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17598 | else | |
edfaf76d | 17599 | eval "$as_ac_Header=\$ac_header_preproc" |
c0d27fcc | 17600 | fi |
ca81d7a0 JD |
17601 | ac_res=`eval echo '${'$as_ac_Header'}'` |
17602 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17603 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
17604 | |
17605 | fi | |
17606 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17607 | cat >>confdefs.h <<_ACEOF | |
17608 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17609 | _ACEOF | |
17610 | ||
17611 | fi | |
17612 | ||
17613 | done | |
17614 | ||
17615 | fi | |
17616 | ||
17617 | ||
17618 | for ac_header in nlist.h | |
17619 | do | |
17620 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
17621 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
17622 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17623 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
17624 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
17625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17626 | fi | |
ca81d7a0 JD |
17627 | ac_res=`eval echo '${'$as_ac_Header'}'` |
17628 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17629 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
17630 | else |
17631 | # Is the header compilable? | |
ca81d7a0 JD |
17632 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17633 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 17634 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17635 | /* confdefs.h. */ |
17636 | _ACEOF | |
17637 | cat confdefs.h >>conftest.$ac_ext | |
17638 | cat >>conftest.$ac_ext <<_ACEOF | |
17639 | /* end confdefs.h. */ | |
c0d27fcc MR |
17640 | $ac_includes_default |
17641 | #include <$ac_header> | |
17642 | _ACEOF | |
17643 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
17644 | if { (ac_try="$ac_compile" |
17645 | case "(($ac_try" in | |
17646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17647 | *) ac_try_echo=$ac_try;; | |
17648 | esac | |
17649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17650 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 17651 | ac_status=$? |
edfaf76d LK |
17652 | grep -v '^ *+' conftest.er1 >conftest.err |
17653 | rm -f conftest.er1 | |
17654 | cat conftest.err >&5 | |
c0d27fcc | 17655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17656 | (exit $ac_status); } && { |
17657 | test -z "$ac_c_werror_flag" || | |
17658 | test ! -s conftest.err | |
17659 | } && test -s conftest.$ac_objext; then | |
c0d27fcc | 17660 | ac_header_compiler=yes |
2c9dccc9 PJ |
17661 | else |
17662 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17663 | sed 's/^/| /' conftest.$ac_ext >&5 |
17664 | ||
ca81d7a0 | 17665 | ac_header_compiler=no |
98418dba | 17666 | fi |
ca81d7a0 JD |
17667 | |
17668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17669 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17670 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
98418dba | 17671 | |
c0d27fcc | 17672 | # Is the header present? |
ca81d7a0 JD |
17673 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17674 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 17675 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17676 | /* confdefs.h. */ |
17677 | _ACEOF | |
17678 | cat confdefs.h >>conftest.$ac_ext | |
17679 | cat >>conftest.$ac_ext <<_ACEOF | |
17680 | /* end confdefs.h. */ | |
503d2be0 AS |
17681 | #include <$ac_header> |
17682 | _ACEOF | |
ca81d7a0 JD |
17683 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17684 | case "(($ac_try" in | |
17685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17686 | *) ac_try_echo=$ac_try;; | |
17687 | esac | |
17688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17689 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 17690 | ac_status=$? |
6bae0ccf | 17691 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
17692 | rm -f conftest.er1 |
17693 | cat conftest.err >&5 | |
c0d27fcc | 17694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17695 | (exit $ac_status); } >/dev/null && { |
17696 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17697 | test ! -s conftest.err | |
17698 | }; then | |
c0d27fcc | 17699 | ac_header_preproc=yes |
503d2be0 AS |
17700 | else |
17701 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17702 | sed 's/^/| /' conftest.$ac_ext >&5 |
17703 | ||
c0d27fcc | 17704 | ac_header_preproc=no |
b5de8dc0 | 17705 | fi |
ca81d7a0 | 17706 | |
503d2be0 | 17707 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
17708 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17709 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
17710 | |
17711 | # So? What about this header? | |
edfaf76d LK |
17712 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17713 | yes:no: ) | |
c0d27fcc MR |
17714 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17715 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
17716 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17717 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17718 | ac_header_preproc=yes | |
19650fd6 | 17719 | ;; |
edfaf76d | 17720 | no:yes:* ) |
c0d27fcc MR |
17721 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17722 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
17723 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17724 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17725 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17726 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17727 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17728 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17729 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17730 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
17731 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17732 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 17733 | |
19650fd6 | 17734 | ;; |
c0d27fcc | 17735 | esac |
ca81d7a0 JD |
17736 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17737 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
17738 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
17739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17740 | else | |
edfaf76d | 17741 | eval "$as_ac_Header=\$ac_header_preproc" |
b5de8dc0 | 17742 | fi |
ca81d7a0 JD |
17743 | ac_res=`eval echo '${'$as_ac_Header'}'` |
17744 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17745 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
17746 | |
17747 | fi | |
98418dba | 17748 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 17749 | cat >>confdefs.h <<_ACEOF |
98418dba | 17750 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 17751 | _ACEOF |
ca81d7a0 JD |
17752 | { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 |
17753 | echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; } | |
98418dba | 17754 | if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then |
503d2be0 | 17755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b5de8dc0 | 17756 | else |
503d2be0 | 17757 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17758 | /* confdefs.h. */ |
17759 | _ACEOF | |
17760 | cat confdefs.h >>conftest.$ac_ext | |
17761 | cat >>conftest.$ac_ext <<_ACEOF | |
17762 | /* end confdefs.h. */ | |
98418dba | 17763 | #include <nlist.h> |
b5de8dc0 | 17764 | |
503d2be0 AS |
17765 | int |
17766 | main () | |
17767 | { | |
98418dba CW |
17768 | static struct nlist ac_aggr; |
17769 | if (ac_aggr.n_un.n_name) | |
17770 | return 0; | |
503d2be0 AS |
17771 | ; |
17772 | return 0; | |
17773 | } | |
17774 | _ACEOF | |
98418dba | 17775 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
17776 | if { (ac_try="$ac_compile" |
17777 | case "(($ac_try" in | |
17778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17779 | *) ac_try_echo=$ac_try;; | |
17780 | esac | |
17781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17782 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 17783 | ac_status=$? |
edfaf76d LK |
17784 | grep -v '^ *+' conftest.er1 >conftest.err |
17785 | rm -f conftest.er1 | |
17786 | cat conftest.err >&5 | |
c0d27fcc | 17787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17788 | (exit $ac_status); } && { |
17789 | test -z "$ac_c_werror_flag" || | |
17790 | test ! -s conftest.err | |
17791 | } && test -s conftest.$ac_objext; then | |
edfaf76d | 17792 | ac_cv_member_struct_nlist_n_un_n_name=yes |
503d2be0 AS |
17793 | else |
17794 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17795 | sed 's/^/| /' conftest.$ac_ext >&5 |
17796 | ||
ca81d7a0 | 17797 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17798 | /* confdefs.h. */ |
17799 | _ACEOF | |
17800 | cat confdefs.h >>conftest.$ac_ext | |
17801 | cat >>conftest.$ac_ext <<_ACEOF | |
17802 | /* end confdefs.h. */ | |
6bae0ccf DL |
17803 | #include <nlist.h> |
17804 | ||
17805 | int | |
17806 | main () | |
17807 | { | |
17808 | static struct nlist ac_aggr; | |
17809 | if (sizeof ac_aggr.n_un.n_name) | |
17810 | return 0; | |
17811 | ; | |
17812 | return 0; | |
17813 | } | |
17814 | _ACEOF | |
17815 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
17816 | if { (ac_try="$ac_compile" |
17817 | case "(($ac_try" in | |
17818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17819 | *) ac_try_echo=$ac_try;; | |
17820 | esac | |
17821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17822 | (eval "$ac_compile") 2>conftest.er1 | |
6bae0ccf | 17823 | ac_status=$? |
edfaf76d LK |
17824 | grep -v '^ *+' conftest.er1 >conftest.err |
17825 | rm -f conftest.er1 | |
17826 | cat conftest.err >&5 | |
6bae0ccf | 17827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17828 | (exit $ac_status); } && { |
17829 | test -z "$ac_c_werror_flag" || | |
17830 | test ! -s conftest.err | |
17831 | } && test -s conftest.$ac_objext; then | |
6bae0ccf DL |
17832 | ac_cv_member_struct_nlist_n_un_n_name=yes |
17833 | else | |
17834 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17835 | sed 's/^/| /' conftest.$ac_ext >&5 |
17836 | ||
ca81d7a0 | 17837 | ac_cv_member_struct_nlist_n_un_n_name=no |
503d2be0 | 17838 | fi |
ca81d7a0 JD |
17839 | |
17840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b5de8dc0 | 17841 | fi |
ca81d7a0 JD |
17842 | |
17843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bae0ccf | 17844 | fi |
ca81d7a0 JD |
17845 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
17846 | echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; } | |
98418dba | 17847 | if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then |
b5de8dc0 | 17848 | |
c0d27fcc | 17849 | cat >>confdefs.h <<_ACEOF |
98418dba | 17850 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
c0d27fcc | 17851 | _ACEOF |
b5de8dc0 | 17852 | |
c0d27fcc MR |
17853 | |
17854 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 17855 | #define NLIST_NAME_UNION 1 |
c0d27fcc | 17856 | _ACEOF |
b5de8dc0 | 17857 | |
98418dba | 17858 | fi |
b5de8dc0 | 17859 | |
c0d27fcc | 17860 | |
98418dba | 17861 | fi |
c0d27fcc | 17862 | |
98418dba | 17863 | done |
b5de8dc0 | 17864 | |
98418dba CW |
17865 | fi |
17866 | done | |
b5de8dc0 | 17867 | |
c0d27fcc | 17868 | |
98418dba | 17869 | # Some definitions of getloadavg require that the program be installed setgid. |
ca81d7a0 JD |
17870 | { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 |
17871 | echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; } | |
98418dba CW |
17872 | if test "${ac_cv_func_getloadavg_setgid+set}" = set; then |
17873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17874 | else | |
17875 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17876 | /* confdefs.h. */ |
17877 | _ACEOF | |
17878 | cat confdefs.h >>conftest.$ac_ext | |
17879 | cat >>conftest.$ac_ext <<_ACEOF | |
17880 | /* end confdefs.h. */ | |
6bae0ccf | 17881 | #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" |
98418dba CW |
17882 | #ifdef LDAV_PRIVILEGED |
17883 | Yowza Am I SETGID yet | |
17884 | #endif | |
17885 | _ACEOF | |
17886 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 17887 | $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then |
98418dba CW |
17888 | ac_cv_func_getloadavg_setgid=yes |
17889 | else | |
17890 | ac_cv_func_getloadavg_setgid=no | |
17891 | fi | |
17892 | rm -f conftest* | |
b5de8dc0 | 17893 | |
98418dba | 17894 | fi |
ca81d7a0 JD |
17895 | { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 |
17896 | echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; } | |
98418dba CW |
17897 | if test $ac_cv_func_getloadavg_setgid = yes; then |
17898 | NEED_SETGID=true | |
b5de8dc0 | 17899 | |
c0d27fcc | 17900 | cat >>confdefs.h <<\_ACEOF |
98418dba | 17901 | #define GETLOADAVG_PRIVILEGED 1 |
c0d27fcc | 17902 | _ACEOF |
98418dba | 17903 | |
b5de8dc0 | 17904 | else |
98418dba | 17905 | NEED_SETGID=false |
b5de8dc0 | 17906 | fi |
98418dba CW |
17907 | |
17908 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
ca81d7a0 JD |
17909 | { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 |
17910 | echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; } | |
98418dba CW |
17911 | if test "${ac_cv_group_kmem+set}" = set; then |
17912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17913 | else | |
17914 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
17915 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
17916 | # If we got an error (system does not support symlinks), try without -L. | |
17917 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
17918 | ac_cv_group_kmem=`echo $ac_ls_output \ | |
edfaf76d | 17919 | | sed -ne 's/[ ][ ]*/ /g; |
98418dba CW |
17920 | s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; |
17921 | / /s/.* //;p;'` | |
17922 | ||
b5de8dc0 | 17923 | fi |
ca81d7a0 JD |
17924 | { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 |
17925 | echo "${ECHO_T}$ac_cv_group_kmem" >&6; } | |
98418dba | 17926 | KMEM_GROUP=$ac_cv_group_kmem |
b5de8dc0 | 17927 | fi |
98418dba CW |
17928 | if test "x$ac_save_LIBS" = x; then |
17929 | GETLOADAVG_LIBS=$LIBS | |
17930 | else | |
17931 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
b5de8dc0 | 17932 | fi |
98418dba | 17933 | LIBS=$ac_save_LIBS |
b5de8dc0 | 17934 | |
c0d27fcc MR |
17935 | |
17936 | ||
ca81d7a0 JD |
17937 | { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
17938 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; } | |
b936fae4 | 17939 | if test "${ac_cv_sys_largefile_source+set}" = set; then |
503d2be0 | 17940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 17941 | else |
b936fae4 | 17942 | while :; do |
503d2be0 | 17943 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17944 | /* confdefs.h. */ |
17945 | _ACEOF | |
17946 | cat confdefs.h >>conftest.$ac_ext | |
17947 | cat >>conftest.$ac_ext <<_ACEOF | |
17948 | /* end confdefs.h. */ | |
b936fae4 | 17949 | #include <stdio.h> |
503d2be0 AS |
17950 | int |
17951 | main () | |
17952 | { | |
f053c89f | 17953 | return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); |
b936fae4 AS |
17954 | ; |
17955 | return 0; | |
17956 | } | |
17957 | _ACEOF | |
f053c89f CY |
17958 | rm -f conftest.$ac_objext conftest$ac_exeext |
17959 | if { (ac_try="$ac_link" | |
ca81d7a0 JD |
17960 | case "(($ac_try" in |
17961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17962 | *) ac_try_echo=$ac_try;; | |
17963 | esac | |
17964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
f053c89f | 17965 | (eval "$ac_link") 2>conftest.er1 |
b936fae4 | 17966 | ac_status=$? |
edfaf76d LK |
17967 | grep -v '^ *+' conftest.er1 >conftest.err |
17968 | rm -f conftest.er1 | |
17969 | cat conftest.err >&5 | |
c0d27fcc | 17970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17971 | (exit $ac_status); } && { |
17972 | test -z "$ac_c_werror_flag" || | |
17973 | test ! -s conftest.err | |
17974 | } && test -s conftest$ac_exeext && | |
17975 | $as_test_x conftest$ac_exeext; then | |
17976 | ac_cv_sys_largefile_source=no; break | |
b936fae4 AS |
17977 | else |
17978 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17979 | sed 's/^/| /' conftest.$ac_ext >&5 |
17980 | ||
ca81d7a0 | 17981 | |
b936fae4 | 17982 | fi |
ca81d7a0 | 17983 | |
f053c89f CY |
17984 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
17985 | conftest$ac_exeext conftest.$ac_ext | |
b936fae4 | 17986 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17987 | /* confdefs.h. */ |
17988 | _ACEOF | |
17989 | cat confdefs.h >>conftest.$ac_ext | |
17990 | cat >>conftest.$ac_ext <<_ACEOF | |
17991 | /* end confdefs.h. */ | |
b936fae4 AS |
17992 | #define _LARGEFILE_SOURCE 1 |
17993 | #include <stdio.h> | |
b936fae4 AS |
17994 | int |
17995 | main () | |
17996 | { | |
f053c89f | 17997 | return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); |
b936fae4 AS |
17998 | ; |
17999 | return 0; | |
18000 | } | |
18001 | _ACEOF | |
f053c89f CY |
18002 | rm -f conftest.$ac_objext conftest$ac_exeext |
18003 | if { (ac_try="$ac_link" | |
ca81d7a0 JD |
18004 | case "(($ac_try" in |
18005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18006 | *) ac_try_echo=$ac_try;; | |
18007 | esac | |
18008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
f053c89f | 18009 | (eval "$ac_link") 2>conftest.er1 |
b936fae4 | 18010 | ac_status=$? |
edfaf76d LK |
18011 | grep -v '^ *+' conftest.er1 >conftest.err |
18012 | rm -f conftest.er1 | |
18013 | cat conftest.err >&5 | |
c0d27fcc | 18014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18015 | (exit $ac_status); } && { |
18016 | test -z "$ac_c_werror_flag" || | |
18017 | test ! -s conftest.err | |
18018 | } && test -s conftest$ac_exeext && | |
18019 | $as_test_x conftest$ac_exeext; then | |
b936fae4 AS |
18020 | ac_cv_sys_largefile_source=1; break |
18021 | else | |
18022 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18023 | sed 's/^/| /' conftest.$ac_ext >&5 |
18024 | ||
ca81d7a0 | 18025 | |
b936fae4 | 18026 | fi |
ca81d7a0 | 18027 | |
f053c89f CY |
18028 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
18029 | conftest$ac_exeext conftest.$ac_ext | |
18030 | ac_cv_sys_largefile_source=unknown | |
b936fae4 AS |
18031 | break |
18032 | done | |
18033 | fi | |
ca81d7a0 JD |
18034 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
18035 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; } | |
f053c89f CY |
18036 | case $ac_cv_sys_largefile_source in #( |
18037 | no | unknown) ;; | |
18038 | *) | |
c0d27fcc | 18039 | cat >>confdefs.h <<_ACEOF |
b936fae4 | 18040 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
c0d27fcc | 18041 | _ACEOF |
f053c89f CY |
18042 | ;; |
18043 | esac | |
b936fae4 | 18044 | rm -f conftest* |
4c343001 | 18045 | |
b936fae4 AS |
18046 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
18047 | # in glibc 2.1.3, but that breaks too many other things. | |
18048 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
f053c89f | 18049 | if test $ac_cv_sys_largefile_source != unknown; then |
b936fae4 | 18050 | |
c0d27fcc | 18051 | cat >>confdefs.h <<\_ACEOF |
b936fae4 | 18052 | #define HAVE_FSEEKO 1 |
c0d27fcc | 18053 | _ACEOF |
b936fae4 | 18054 | |
4c343001 DL |
18055 | fi |
18056 | ||
c0d27fcc | 18057 | |
52dbaac8 PE |
18058 | # Configure getopt. |
18059 | # getopt.m4 serial 10 | |
18060 | ||
18061 | # The getopt module assume you want GNU getopt, with getopt_long etc, | |
18062 | # rather than vanilla POSIX getopt. This means your your code should | |
18063 | # always include <getopt.h> for the getopt prototypes. | |
18064 | ||
18065 | ||
18066 | ||
18067 | ||
18068 | ||
18069 | ||
18070 | ||
18071 | ||
18072 | ||
18073 | ||
18074 | ||
18075 | # Prerequisites of lib/getopt*. | |
18076 | ||
18077 | ||
18078 | ||
10a3b1a1 | 18079 | |
52dbaac8 PE |
18080 | GETOPT_H= |
18081 | ||
18082 | for ac_header in getopt.h | |
18083 | do | |
18084 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
18085 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
18086 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18087 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18088 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
52dbaac8 PE |
18089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18090 | fi | |
ca81d7a0 JD |
18091 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18092 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18093 | echo "${ECHO_T}$ac_res" >&6; } | |
52dbaac8 PE |
18094 | else |
18095 | # Is the header compilable? | |
ca81d7a0 JD |
18096 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
18097 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
52dbaac8 PE |
18098 | cat >conftest.$ac_ext <<_ACEOF |
18099 | /* confdefs.h. */ | |
18100 | _ACEOF | |
18101 | cat confdefs.h >>conftest.$ac_ext | |
18102 | cat >>conftest.$ac_ext <<_ACEOF | |
18103 | /* end confdefs.h. */ | |
18104 | $ac_includes_default | |
18105 | #include <$ac_header> | |
18106 | _ACEOF | |
18107 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
18108 | if { (ac_try="$ac_compile" |
18109 | case "(($ac_try" in | |
18110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18111 | *) ac_try_echo=$ac_try;; | |
18112 | esac | |
18113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18114 | (eval "$ac_compile") 2>conftest.er1 | |
52dbaac8 PE |
18115 | ac_status=$? |
18116 | grep -v '^ *+' conftest.er1 >conftest.err | |
18117 | rm -f conftest.er1 | |
18118 | cat conftest.err >&5 | |
18119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
18120 | (exit $ac_status); } && { |
18121 | test -z "$ac_c_werror_flag" || | |
18122 | test ! -s conftest.err | |
18123 | } && test -s conftest.$ac_objext; then | |
52dbaac8 PE |
18124 | ac_header_compiler=yes |
18125 | else | |
18126 | echo "$as_me: failed program was:" >&5 | |
18127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18128 | ||
ca81d7a0 | 18129 | ac_header_compiler=no |
52dbaac8 | 18130 | fi |
ca81d7a0 JD |
18131 | |
18132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18133 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18134 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
52dbaac8 PE |
18135 | |
18136 | # Is the header present? | |
ca81d7a0 JD |
18137 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
18138 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
52dbaac8 PE |
18139 | cat >conftest.$ac_ext <<_ACEOF |
18140 | /* confdefs.h. */ | |
18141 | _ACEOF | |
18142 | cat confdefs.h >>conftest.$ac_ext | |
18143 | cat >>conftest.$ac_ext <<_ACEOF | |
18144 | /* end confdefs.h. */ | |
18145 | #include <$ac_header> | |
18146 | _ACEOF | |
ca81d7a0 JD |
18147 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
18148 | case "(($ac_try" in | |
18149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18150 | *) ac_try_echo=$ac_try;; | |
18151 | esac | |
18152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18153 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
52dbaac8 PE |
18154 | ac_status=$? |
18155 | grep -v '^ *+' conftest.er1 >conftest.err | |
18156 | rm -f conftest.er1 | |
18157 | cat conftest.err >&5 | |
18158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
18159 | (exit $ac_status); } >/dev/null && { |
18160 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
18161 | test ! -s conftest.err | |
18162 | }; then | |
52dbaac8 PE |
18163 | ac_header_preproc=yes |
18164 | else | |
18165 | echo "$as_me: failed program was:" >&5 | |
18166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18167 | ||
18168 | ac_header_preproc=no | |
18169 | fi | |
ca81d7a0 | 18170 | |
52dbaac8 | 18171 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
18172 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18173 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
52dbaac8 PE |
18174 | |
18175 | # So? What about this header? | |
18176 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
18177 | yes:no: ) | |
18178 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18179 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18180 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
18181 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18182 | ac_header_preproc=yes | |
18183 | ;; | |
18184 | no:yes:* ) | |
18185 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
18186 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
18187 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
18188 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18189 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18190 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18191 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18192 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
18193 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
18194 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
18195 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
18196 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 18197 | |
52dbaac8 PE |
18198 | ;; |
18199 | esac | |
ca81d7a0 JD |
18200 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
18201 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18202 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
52dbaac8 PE |
18203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18204 | else | |
18205 | eval "$as_ac_Header=\$ac_header_preproc" | |
18206 | fi | |
ca81d7a0 JD |
18207 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18208 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18209 | echo "${ECHO_T}$ac_res" >&6; } | |
52dbaac8 PE |
18210 | |
18211 | fi | |
18212 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18213 | cat >>confdefs.h <<_ACEOF | |
18214 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18215 | _ACEOF | |
18216 | ||
18217 | else | |
18218 | GETOPT_H=getopt.h | |
18219 | fi | |
18220 | ||
18221 | done | |
18222 | ||
18223 | if test -z "$GETOPT_H"; then | |
18224 | ||
18225 | for ac_func in getopt_long_only | |
18226 | do | |
18227 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
18228 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18229 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
18230 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
52dbaac8 PE |
18231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18232 | else | |
18233 | cat >conftest.$ac_ext <<_ACEOF | |
18234 | /* confdefs.h. */ | |
18235 | _ACEOF | |
18236 | cat confdefs.h >>conftest.$ac_ext | |
18237 | cat >>conftest.$ac_ext <<_ACEOF | |
18238 | /* end confdefs.h. */ | |
18239 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18240 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18241 | #define $ac_func innocuous_$ac_func | |
18242 | ||
18243 | /* System header to define __stub macros and hopefully few prototypes, | |
18244 | which can conflict with char $ac_func (); below. | |
18245 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18246 | <limits.h> exists even on freestanding compilers. */ | |
18247 | ||
18248 | #ifdef __STDC__ | |
18249 | # include <limits.h> | |
18250 | #else | |
18251 | # include <assert.h> | |
18252 | #endif | |
18253 | ||
18254 | #undef $ac_func | |
18255 | ||
ca81d7a0 JD |
18256 | /* Override any GCC internal prototype to avoid an error. |
18257 | Use char because int might match the return type of a GCC | |
18258 | builtin and then its argument prototype would still apply. */ | |
52dbaac8 PE |
18259 | #ifdef __cplusplus |
18260 | extern "C" | |
52dbaac8 | 18261 | #endif |
52dbaac8 PE |
18262 | char $ac_func (); |
18263 | /* The GNU C library defines this for functions which it implements | |
18264 | to always fail with ENOSYS. Some functions are actually named | |
18265 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 18266 | #if defined __stub_$ac_func || defined __stub___$ac_func |
52dbaac8 | 18267 | choke me |
52dbaac8 PE |
18268 | #endif |
18269 | ||
18270 | int | |
18271 | main () | |
18272 | { | |
ca81d7a0 | 18273 | return $ac_func (); |
52dbaac8 PE |
18274 | ; |
18275 | return 0; | |
18276 | } | |
18277 | _ACEOF | |
18278 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
18279 | if { (ac_try="$ac_link" |
18280 | case "(($ac_try" in | |
18281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18282 | *) ac_try_echo=$ac_try;; | |
18283 | esac | |
18284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18285 | (eval "$ac_link") 2>conftest.er1 | |
52dbaac8 PE |
18286 | ac_status=$? |
18287 | grep -v '^ *+' conftest.er1 >conftest.err | |
18288 | rm -f conftest.er1 | |
18289 | cat conftest.err >&5 | |
18290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
18291 | (exit $ac_status); } && { |
18292 | test -z "$ac_c_werror_flag" || | |
18293 | test ! -s conftest.err | |
18294 | } && test -s conftest$ac_exeext && | |
18295 | $as_test_x conftest$ac_exeext; then | |
52dbaac8 PE |
18296 | eval "$as_ac_var=yes" |
18297 | else | |
18298 | echo "$as_me: failed program was:" >&5 | |
18299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18300 | ||
ca81d7a0 | 18301 | eval "$as_ac_var=no" |
52dbaac8 | 18302 | fi |
ca81d7a0 | 18303 | |
f053c89f | 18304 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
52dbaac8 PE |
18305 | conftest$ac_exeext conftest.$ac_ext |
18306 | fi | |
ca81d7a0 JD |
18307 | ac_res=`eval echo '${'$as_ac_var'}'` |
18308 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18309 | echo "${ECHO_T}$ac_res" >&6; } | |
52dbaac8 PE |
18310 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18311 | cat >>confdefs.h <<_ACEOF | |
18312 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18313 | _ACEOF | |
18314 | ||
18315 | else | |
18316 | GETOPT_H=getopt.h | |
18317 | fi | |
18318 | done | |
18319 | ||
18320 | fi | |
18321 | ||
18322 | if test -z "$GETOPT_H"; then | |
ca81d7a0 JD |
18323 | { echo "$as_me:$LINENO: checking whether optreset is declared" >&5 |
18324 | echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; } | |
52dbaac8 PE |
18325 | if test "${ac_cv_have_decl_optreset+set}" = set; then |
18326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18327 | else | |
18328 | cat >conftest.$ac_ext <<_ACEOF | |
18329 | /* confdefs.h. */ | |
18330 | _ACEOF | |
18331 | cat confdefs.h >>conftest.$ac_ext | |
18332 | cat >>conftest.$ac_ext <<_ACEOF | |
18333 | /* end confdefs.h. */ | |
18334 | #include <getopt.h> | |
18335 | ||
18336 | int | |
18337 | main () | |
18338 | { | |
18339 | #ifndef optreset | |
f053c89f | 18340 | (void) optreset; |
52dbaac8 PE |
18341 | #endif |
18342 | ||
18343 | ; | |
18344 | return 0; | |
18345 | } | |
18346 | _ACEOF | |
18347 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
18348 | if { (ac_try="$ac_compile" |
18349 | case "(($ac_try" in | |
18350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18351 | *) ac_try_echo=$ac_try;; | |
18352 | esac | |
18353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18354 | (eval "$ac_compile") 2>conftest.er1 | |
52dbaac8 PE |
18355 | ac_status=$? |
18356 | grep -v '^ *+' conftest.er1 >conftest.err | |
18357 | rm -f conftest.er1 | |
18358 | cat conftest.err >&5 | |
18359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
18360 | (exit $ac_status); } && { |
18361 | test -z "$ac_c_werror_flag" || | |
18362 | test ! -s conftest.err | |
18363 | } && test -s conftest.$ac_objext; then | |
52dbaac8 PE |
18364 | ac_cv_have_decl_optreset=yes |
18365 | else | |
18366 | echo "$as_me: failed program was:" >&5 | |
18367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18368 | ||
ca81d7a0 | 18369 | ac_cv_have_decl_optreset=no |
52dbaac8 | 18370 | fi |
ca81d7a0 JD |
18371 | |
18372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
52dbaac8 | 18373 | fi |
ca81d7a0 JD |
18374 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 |
18375 | echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; } | |
52dbaac8 PE |
18376 | if test $ac_cv_have_decl_optreset = yes; then |
18377 | GETOPT_H=getopt.h | |
18378 | fi | |
18379 | ||
18380 | fi | |
18381 | ||
18382 | if test -z "$GETOPT_H"; then | |
ca81d7a0 JD |
18383 | { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 |
18384 | echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; } | |
52dbaac8 PE |
18385 | if test "${gl_cv_func_gnu_getopt+set}" = set; then |
18386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18387 | else | |
18388 | if test "$cross_compiling" = yes; then | |
ca81d7a0 JD |
18389 | { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5 |
18390 | echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; } | |
52dbaac8 PE |
18391 | if test "${ac_cv_have_decl_getopt_clip+set}" = set; then |
18392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18393 | else | |
18394 | cat >conftest.$ac_ext <<_ACEOF | |
18395 | /* confdefs.h. */ | |
18396 | _ACEOF | |
18397 | cat confdefs.h >>conftest.$ac_ext | |
18398 | cat >>conftest.$ac_ext <<_ACEOF | |
18399 | /* end confdefs.h. */ | |
18400 | #include <getopt.h> | |
18401 | ||
18402 | int | |
18403 | main () | |
18404 | { | |
18405 | #ifndef getopt_clip | |
f053c89f | 18406 | (void) getopt_clip; |
52dbaac8 PE |
18407 | #endif |
18408 | ||
18409 | ; | |
18410 | return 0; | |
18411 | } | |
18412 | _ACEOF | |
18413 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
18414 | if { (ac_try="$ac_compile" |
18415 | case "(($ac_try" in | |
18416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18417 | *) ac_try_echo=$ac_try;; | |
18418 | esac | |
18419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18420 | (eval "$ac_compile") 2>conftest.er1 | |
52dbaac8 PE |
18421 | ac_status=$? |
18422 | grep -v '^ *+' conftest.er1 >conftest.err | |
18423 | rm -f conftest.er1 | |
18424 | cat conftest.err >&5 | |
18425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
18426 | (exit $ac_status); } && { |
18427 | test -z "$ac_c_werror_flag" || | |
18428 | test ! -s conftest.err | |
18429 | } && test -s conftest.$ac_objext; then | |
52dbaac8 PE |
18430 | ac_cv_have_decl_getopt_clip=yes |
18431 | else | |
18432 | echo "$as_me: failed program was:" >&5 | |
18433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18434 | ||
ca81d7a0 | 18435 | ac_cv_have_decl_getopt_clip=no |
52dbaac8 | 18436 | fi |
ca81d7a0 JD |
18437 | |
18438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
52dbaac8 | 18439 | fi |
ca81d7a0 JD |
18440 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5 |
18441 | echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; } | |
52dbaac8 PE |
18442 | if test $ac_cv_have_decl_getopt_clip = yes; then |
18443 | gl_cv_func_gnu_getopt=no | |
18444 | else | |
18445 | gl_cv_func_gnu_getopt=yes | |
18446 | fi | |
18447 | ||
18448 | else | |
18449 | cat >conftest.$ac_ext <<_ACEOF | |
18450 | /* confdefs.h. */ | |
18451 | _ACEOF | |
18452 | cat confdefs.h >>conftest.$ac_ext | |
18453 | cat >>conftest.$ac_ext <<_ACEOF | |
18454 | /* end confdefs.h. */ | |
18455 | #include <getopt.h> | |
18456 | int | |
18457 | main () | |
18458 | { | |
18459 | ||
18460 | char *myargv[3]; | |
18461 | myargv[0] = "conftest"; | |
18462 | myargv[1] = "-+"; | |
18463 | myargv[2] = 0; | |
18464 | return getopt (2, myargv, "+a") != '?'; | |
18465 | ||
18466 | ; | |
18467 | return 0; | |
18468 | } | |
18469 | _ACEOF | |
18470 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
18471 | if { (ac_try="$ac_link" |
18472 | case "(($ac_try" in | |
18473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18474 | *) ac_try_echo=$ac_try;; | |
18475 | esac | |
18476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18477 | (eval "$ac_link") 2>&5 | |
52dbaac8 PE |
18478 | ac_status=$? |
18479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18480 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
ca81d7a0 JD |
18481 | { (case "(($ac_try" in |
18482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18483 | *) ac_try_echo=$ac_try;; | |
18484 | esac | |
18485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18486 | (eval "$ac_try") 2>&5 | |
52dbaac8 PE |
18487 | ac_status=$? |
18488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18489 | (exit $ac_status); }; }; then | |
18490 | gl_cv_func_gnu_getopt=yes | |
18491 | else | |
18492 | echo "$as_me: program exited with status $ac_status" >&5 | |
18493 | echo "$as_me: failed program was:" >&5 | |
18494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18495 | ||
18496 | ( exit $ac_status ) | |
18497 | gl_cv_func_gnu_getopt=no | |
18498 | fi | |
ca81d7a0 | 18499 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
52dbaac8 | 18500 | fi |
ca81d7a0 JD |
18501 | |
18502 | ||
52dbaac8 | 18503 | fi |
ca81d7a0 JD |
18504 | { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 |
18505 | echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; } | |
52dbaac8 PE |
18506 | if test "$gl_cv_func_gnu_getopt" = "no"; then |
18507 | GETOPT_H=getopt.h | |
18508 | fi | |
18509 | fi | |
18510 | ||
18511 | ||
18512 | ||
18513 | if test -n "$GETOPT_H"; then | |
18514 | ||
18515 | ||
18516 | GETOPT_H=getopt.h | |
18517 | ||
18518 | cat >>confdefs.h <<\_ACEOF | |
18519 | #define __GETOPT_PREFIX rpl_ | |
18520 | _ACEOF | |
18521 | ||
18522 | ||
18523 | ||
18524 | : | |
18525 | GETOPTOBJS='getopt.o getopt1.o' | |
18526 | ||
18527 | fi | |
18528 | ||
18529 | ||
18530 | ||
18531 | ||
ca81d7a0 JD |
18532 | { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
18533 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; } | |
cd958eb3 MB |
18534 | if test "${ac_cv_func_getpgrp_void+set}" = set; then |
18535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18536 | else | |
18537 | # Use it with a single arg. | |
18538 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18539 | /* confdefs.h. */ |
18540 | _ACEOF | |
18541 | cat confdefs.h >>conftest.$ac_ext | |
18542 | cat >>conftest.$ac_ext <<_ACEOF | |
18543 | /* end confdefs.h. */ | |
cd958eb3 MB |
18544 | $ac_includes_default |
18545 | int | |
18546 | main () | |
18547 | { | |
18548 | getpgrp (0); | |
18549 | ; | |
18550 | return 0; | |
18551 | } | |
18552 | _ACEOF | |
18553 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
18554 | if { (ac_try="$ac_compile" |
18555 | case "(($ac_try" in | |
18556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18557 | *) ac_try_echo=$ac_try;; | |
18558 | esac | |
18559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18560 | (eval "$ac_compile") 2>conftest.er1 | |
cd958eb3 | 18561 | ac_status=$? |
edfaf76d LK |
18562 | grep -v '^ *+' conftest.er1 >conftest.err |
18563 | rm -f conftest.er1 | |
18564 | cat conftest.err >&5 | |
cd958eb3 | 18565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18566 | (exit $ac_status); } && { |
18567 | test -z "$ac_c_werror_flag" || | |
18568 | test ! -s conftest.err | |
18569 | } && test -s conftest.$ac_objext; then | |
cd958eb3 MB |
18570 | ac_cv_func_getpgrp_void=no |
18571 | else | |
18572 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18573 | sed 's/^/| /' conftest.$ac_ext >&5 |
18574 | ||
ca81d7a0 | 18575 | ac_cv_func_getpgrp_void=yes |
cd958eb3 | 18576 | fi |
ca81d7a0 JD |
18577 | |
18578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cd958eb3 MB |
18579 | |
18580 | fi | |
ca81d7a0 JD |
18581 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 |
18582 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; } | |
cd958eb3 MB |
18583 | if test $ac_cv_func_getpgrp_void = yes; then |
18584 | ||
18585 | cat >>confdefs.h <<\_ACEOF | |
18586 | #define GETPGRP_VOID 1 | |
18587 | _ACEOF | |
18588 | ||
18589 | fi | |
18590 | ||
18591 | ||
973a76b1 DL |
18592 | |
18593 | for ac_func in strftime | |
18594 | do | |
18595 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
18596 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18597 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
18598 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
973a76b1 DL |
18599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18600 | else | |
18601 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18602 | /* confdefs.h. */ |
18603 | _ACEOF | |
18604 | cat confdefs.h >>conftest.$ac_ext | |
18605 | cat >>conftest.$ac_ext <<_ACEOF | |
18606 | /* end confdefs.h. */ | |
edfaf76d LK |
18607 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18608 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18609 | #define $ac_func innocuous_$ac_func | |
18610 | ||
973a76b1 | 18611 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
18612 | which can conflict with char $ac_func (); below. |
18613 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18614 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 18615 | |
19650fd6 AS |
18616 | #ifdef __STDC__ |
18617 | # include <limits.h> | |
18618 | #else | |
18619 | # include <assert.h> | |
18620 | #endif | |
edfaf76d LK |
18621 | |
18622 | #undef $ac_func | |
18623 | ||
ca81d7a0 JD |
18624 | /* Override any GCC internal prototype to avoid an error. |
18625 | Use char because int might match the return type of a GCC | |
18626 | builtin and then its argument prototype would still apply. */ | |
973a76b1 DL |
18627 | #ifdef __cplusplus |
18628 | extern "C" | |
973a76b1 | 18629 | #endif |
973a76b1 DL |
18630 | char $ac_func (); |
18631 | /* The GNU C library defines this for functions which it implements | |
18632 | to always fail with ENOSYS. Some functions are actually named | |
18633 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 18634 | #if defined __stub_$ac_func || defined __stub___$ac_func |
973a76b1 | 18635 | choke me |
973a76b1 DL |
18636 | #endif |
18637 | ||
19650fd6 AS |
18638 | int |
18639 | main () | |
18640 | { | |
ca81d7a0 | 18641 | return $ac_func (); |
973a76b1 DL |
18642 | ; |
18643 | return 0; | |
18644 | } | |
18645 | _ACEOF | |
18646 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
18647 | if { (ac_try="$ac_link" |
18648 | case "(($ac_try" in | |
18649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18650 | *) ac_try_echo=$ac_try;; | |
18651 | esac | |
18652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18653 | (eval "$ac_link") 2>conftest.er1 | |
973a76b1 | 18654 | ac_status=$? |
edfaf76d LK |
18655 | grep -v '^ *+' conftest.er1 >conftest.err |
18656 | rm -f conftest.er1 | |
18657 | cat conftest.err >&5 | |
973a76b1 | 18658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18659 | (exit $ac_status); } && { |
18660 | test -z "$ac_c_werror_flag" || | |
18661 | test ! -s conftest.err | |
18662 | } && test -s conftest$ac_exeext && | |
18663 | $as_test_x conftest$ac_exeext; then | |
973a76b1 DL |
18664 | eval "$as_ac_var=yes" |
18665 | else | |
18666 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18667 | sed 's/^/| /' conftest.$ac_ext >&5 |
18668 | ||
ca81d7a0 | 18669 | eval "$as_ac_var=no" |
973a76b1 | 18670 | fi |
ca81d7a0 | 18671 | |
f053c89f | 18672 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 18673 | conftest$ac_exeext conftest.$ac_ext |
973a76b1 | 18674 | fi |
ca81d7a0 JD |
18675 | ac_res=`eval echo '${'$as_ac_var'}'` |
18676 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18677 | echo "${ECHO_T}$ac_res" >&6; } | |
973a76b1 DL |
18678 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18679 | cat >>confdefs.h <<_ACEOF | |
18680 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18681 | _ACEOF | |
18682 | ||
18683 | else | |
18684 | # strftime is in -lintl on SCO UNIX. | |
ca81d7a0 JD |
18685 | { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 |
18686 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } | |
973a76b1 DL |
18687 | if test "${ac_cv_lib_intl_strftime+set}" = set; then |
18688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18689 | else | |
18690 | ac_check_lib_save_LIBS=$LIBS | |
18691 | LIBS="-lintl $LIBS" | |
18692 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18693 | /* confdefs.h. */ |
18694 | _ACEOF | |
18695 | cat confdefs.h >>conftest.$ac_ext | |
18696 | cat >>conftest.$ac_ext <<_ACEOF | |
18697 | /* end confdefs.h. */ | |
973a76b1 | 18698 | |
ca81d7a0 JD |
18699 | /* Override any GCC internal prototype to avoid an error. |
18700 | Use char because int might match the return type of a GCC | |
18701 | builtin and then its argument prototype would still apply. */ | |
973a76b1 DL |
18702 | #ifdef __cplusplus |
18703 | extern "C" | |
18704 | #endif | |
973a76b1 DL |
18705 | char strftime (); |
18706 | int | |
18707 | main () | |
18708 | { | |
ca81d7a0 | 18709 | return strftime (); |
973a76b1 DL |
18710 | ; |
18711 | return 0; | |
18712 | } | |
18713 | _ACEOF | |
18714 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
18715 | if { (ac_try="$ac_link" |
18716 | case "(($ac_try" in | |
18717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18718 | *) ac_try_echo=$ac_try;; | |
18719 | esac | |
18720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18721 | (eval "$ac_link") 2>conftest.er1 | |
973a76b1 | 18722 | ac_status=$? |
edfaf76d LK |
18723 | grep -v '^ *+' conftest.er1 >conftest.err |
18724 | rm -f conftest.er1 | |
18725 | cat conftest.err >&5 | |
973a76b1 | 18726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18727 | (exit $ac_status); } && { |
18728 | test -z "$ac_c_werror_flag" || | |
18729 | test ! -s conftest.err | |
18730 | } && test -s conftest$ac_exeext && | |
18731 | $as_test_x conftest$ac_exeext; then | |
973a76b1 DL |
18732 | ac_cv_lib_intl_strftime=yes |
18733 | else | |
18734 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18735 | sed 's/^/| /' conftest.$ac_ext >&5 |
18736 | ||
ca81d7a0 | 18737 | ac_cv_lib_intl_strftime=no |
973a76b1 | 18738 | fi |
ca81d7a0 | 18739 | |
f053c89f | 18740 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 18741 | conftest$ac_exeext conftest.$ac_ext |
973a76b1 DL |
18742 | LIBS=$ac_check_lib_save_LIBS |
18743 | fi | |
ca81d7a0 JD |
18744 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 |
18745 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } | |
973a76b1 DL |
18746 | if test $ac_cv_lib_intl_strftime = yes; then |
18747 | cat >>confdefs.h <<\_ACEOF | |
18748 | #define HAVE_STRFTIME 1 | |
18749 | _ACEOF | |
18750 | ||
18751 | LIBS="-lintl $LIBS" | |
18752 | fi | |
18753 | ||
18754 | fi | |
18755 | done | |
18756 | ||
18757 | ||
b936fae4 AS |
18758 | # UNIX98 PTYs. |
18759 | ||
18760 | for ac_func in grantpt | |
503d2be0 AS |
18761 | do |
18762 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
18763 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18764 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
18765 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 18766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 18767 | else |
503d2be0 | 18768 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18769 | /* confdefs.h. */ |
18770 | _ACEOF | |
18771 | cat confdefs.h >>conftest.$ac_ext | |
18772 | cat >>conftest.$ac_ext <<_ACEOF | |
18773 | /* end confdefs.h. */ | |
edfaf76d LK |
18774 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18775 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18776 | #define $ac_func innocuous_$ac_func | |
18777 | ||
503d2be0 | 18778 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
18779 | which can conflict with char $ac_func (); below. |
18780 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18781 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 18782 | |
19650fd6 AS |
18783 | #ifdef __STDC__ |
18784 | # include <limits.h> | |
18785 | #else | |
18786 | # include <assert.h> | |
18787 | #endif | |
edfaf76d LK |
18788 | |
18789 | #undef $ac_func | |
18790 | ||
ca81d7a0 JD |
18791 | /* Override any GCC internal prototype to avoid an error. |
18792 | Use char because int might match the return type of a GCC | |
18793 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
18794 | #ifdef __cplusplus |
18795 | extern "C" | |
18796 | #endif | |
503d2be0 | 18797 | char $ac_func (); |
503d2be0 AS |
18798 | /* The GNU C library defines this for functions which it implements |
18799 | to always fail with ENOSYS. Some functions are actually named | |
18800 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 18801 | #if defined __stub_$ac_func || defined __stub___$ac_func |
503d2be0 | 18802 | choke me |
503d2be0 | 18803 | #endif |
4c343001 | 18804 | |
19650fd6 AS |
18805 | int |
18806 | main () | |
18807 | { | |
ca81d7a0 | 18808 | return $ac_func (); |
503d2be0 AS |
18809 | ; |
18810 | return 0; | |
18811 | } | |
18812 | _ACEOF | |
18813 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
18814 | if { (ac_try="$ac_link" |
18815 | case "(($ac_try" in | |
18816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18817 | *) ac_try_echo=$ac_try;; | |
18818 | esac | |
18819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18820 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 18821 | ac_status=$? |
edfaf76d LK |
18822 | grep -v '^ *+' conftest.er1 >conftest.err |
18823 | rm -f conftest.er1 | |
18824 | cat conftest.err >&5 | |
c0d27fcc | 18825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18826 | (exit $ac_status); } && { |
18827 | test -z "$ac_c_werror_flag" || | |
18828 | test ! -s conftest.err | |
18829 | } && test -s conftest$ac_exeext && | |
18830 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
18831 | eval "$as_ac_var=yes" |
18832 | else | |
18833 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18834 | sed 's/^/| /' conftest.$ac_ext >&5 |
18835 | ||
ca81d7a0 | 18836 | eval "$as_ac_var=no" |
503d2be0 | 18837 | fi |
ca81d7a0 | 18838 | |
f053c89f | 18839 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 18840 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 18841 | fi |
ca81d7a0 JD |
18842 | ac_res=`eval echo '${'$as_ac_var'}'` |
18843 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18844 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 18845 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 18846 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18847 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 18848 | _ACEOF |
4c343001 DL |
18849 | |
18850 | fi | |
503d2be0 AS |
18851 | done |
18852 | ||
c0d27fcc | 18853 | |
b936fae4 | 18854 | # PTY-related GNU extensions. |
4c343001 | 18855 | |
b936fae4 AS |
18856 | for ac_func in getpt |
18857 | do | |
18858 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
18859 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18860 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
18861 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 18862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 18863 | else |
b936fae4 | 18864 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18865 | /* confdefs.h. */ |
18866 | _ACEOF | |
18867 | cat confdefs.h >>conftest.$ac_ext | |
18868 | cat >>conftest.$ac_ext <<_ACEOF | |
18869 | /* end confdefs.h. */ | |
edfaf76d LK |
18870 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18871 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18872 | #define $ac_func innocuous_$ac_func | |
18873 | ||
087121cc | 18874 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
18875 | which can conflict with char $ac_func (); below. |
18876 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18877 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 18878 | |
19650fd6 AS |
18879 | #ifdef __STDC__ |
18880 | # include <limits.h> | |
18881 | #else | |
18882 | # include <assert.h> | |
18883 | #endif | |
edfaf76d LK |
18884 | |
18885 | #undef $ac_func | |
18886 | ||
ca81d7a0 JD |
18887 | /* Override any GCC internal prototype to avoid an error. |
18888 | Use char because int might match the return type of a GCC | |
18889 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
18890 | #ifdef __cplusplus |
18891 | extern "C" | |
18892 | #endif | |
503d2be0 | 18893 | char $ac_func (); |
087121cc GM |
18894 | /* The GNU C library defines this for functions which it implements |
18895 | to always fail with ENOSYS. Some functions are actually named | |
18896 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 18897 | #if defined __stub_$ac_func || defined __stub___$ac_func |
087121cc | 18898 | choke me |
087121cc GM |
18899 | #endif |
18900 | ||
19650fd6 AS |
18901 | int |
18902 | main () | |
18903 | { | |
ca81d7a0 | 18904 | return $ac_func (); |
503d2be0 AS |
18905 | ; |
18906 | return 0; | |
18907 | } | |
18908 | _ACEOF | |
18909 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
18910 | if { (ac_try="$ac_link" |
18911 | case "(($ac_try" in | |
18912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18913 | *) ac_try_echo=$ac_try;; | |
18914 | esac | |
18915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
f053c89f | 18916 | (eval "$ac_link") 2>conftest.er1 |
503d2be0 | 18917 | ac_status=$? |
f053c89f CY |
18918 | grep -v '^ *+' conftest.er1 >conftest.err |
18919 | rm -f conftest.er1 | |
18920 | cat conftest.err >&5 | |
c0d27fcc | 18921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18922 | (exit $ac_status); } && { |
18923 | test -z "$ac_c_werror_flag" || | |
18924 | test ! -s conftest.err | |
18925 | } && test -s conftest$ac_exeext && | |
18926 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
18927 | eval "$as_ac_var=yes" |
18928 | else | |
18929 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18930 | sed 's/^/| /' conftest.$ac_ext >&5 |
18931 | ||
ca81d7a0 | 18932 | eval "$as_ac_var=no" |
503d2be0 | 18933 | fi |
ca81d7a0 | 18934 | |
f053c89f | 18935 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 18936 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 18937 | fi |
ca81d7a0 JD |
18938 | ac_res=`eval echo '${'$as_ac_var'}'` |
18939 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18940 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 18941 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 18942 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18943 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 18944 | _ACEOF |
087121cc | 18945 | |
087121cc GM |
18946 | fi |
18947 | done | |
18948 | ||
c0d27fcc | 18949 | |
ba4481b5 DL |
18950 | # Check this now, so that we will NOT find the above functions in ncurses. |
18951 | # That is because we have not set up to link ncurses in lib-src. | |
18952 | # It's better to believe a function is not available | |
18953 | # than to expect to find it in ncurses. | |
503d2be0 | 18954 | |
ca81d7a0 JD |
18955 | { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5 |
18956 | echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; } | |
503d2be0 AS |
18957 | if test "${ac_cv_lib_ncurses_tparm+set}" = set; then |
18958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 18959 | else |
503d2be0 | 18960 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 18961 | LIBS="-lncurses $LIBS" |
503d2be0 | 18962 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18963 | /* confdefs.h. */ |
18964 | _ACEOF | |
18965 | cat confdefs.h >>conftest.$ac_ext | |
18966 | cat >>conftest.$ac_ext <<_ACEOF | |
18967 | /* end confdefs.h. */ | |
503d2be0 | 18968 | |
ca81d7a0 JD |
18969 | /* Override any GCC internal prototype to avoid an error. |
18970 | Use char because int might match the return type of a GCC | |
18971 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
18972 | #ifdef __cplusplus |
18973 | extern "C" | |
18974 | #endif | |
503d2be0 AS |
18975 | char tparm (); |
18976 | int | |
18977 | main () | |
18978 | { | |
ca81d7a0 | 18979 | return tparm (); |
503d2be0 AS |
18980 | ; |
18981 | return 0; | |
18982 | } | |
18983 | _ACEOF | |
18984 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
18985 | if { (ac_try="$ac_link" |
18986 | case "(($ac_try" in | |
18987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18988 | *) ac_try_echo=$ac_try;; | |
18989 | esac | |
18990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18991 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 18992 | ac_status=$? |
edfaf76d LK |
18993 | grep -v '^ *+' conftest.er1 >conftest.err |
18994 | rm -f conftest.er1 | |
18995 | cat conftest.err >&5 | |
c0d27fcc | 18996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18997 | (exit $ac_status); } && { |
18998 | test -z "$ac_c_werror_flag" || | |
18999 | test ! -s conftest.err | |
19000 | } && test -s conftest$ac_exeext && | |
19001 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19002 | ac_cv_lib_ncurses_tparm=yes |
19003 | else | |
19004 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19005 | sed 's/^/| /' conftest.$ac_ext >&5 |
19006 | ||
ca81d7a0 | 19007 | ac_cv_lib_ncurses_tparm=no |
503d2be0 | 19008 | fi |
ca81d7a0 | 19009 | |
f053c89f | 19010 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19011 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
19012 | LIBS=$ac_check_lib_save_LIBS |
19013 | fi | |
ca81d7a0 JD |
19014 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5 |
19015 | echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; } | |
503d2be0 | 19016 | if test $ac_cv_lib_ncurses_tparm = yes; then |
c0d27fcc | 19017 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19018 | #define HAVE_LIBNCURSES 1 |
c0d27fcc | 19019 | _ACEOF |
ba4481b5 DL |
19020 | |
19021 | LIBS="-lncurses $LIBS" | |
19022 | ||
ba4481b5 DL |
19023 | fi |
19024 | ||
c0d27fcc | 19025 | |
84e70f78 KR |
19026 | # Do we need the Hesiod library to provide the support routines? |
19027 | if test "$with_hesiod" = yes ; then | |
19028 | # Don't set $LIBS here -- see comments above. | |
19029 | resolv=no | |
ca81d7a0 JD |
19030 | { echo "$as_me:$LINENO: checking for res_send" >&5 |
19031 | echo $ECHO_N "checking for res_send... $ECHO_C" >&6; } | |
84e70f78 KR |
19032 | if test "${ac_cv_func_res_send+set}" = set; then |
19033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19034 | else | |
19035 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19036 | /* confdefs.h. */ |
19037 | _ACEOF | |
19038 | cat confdefs.h >>conftest.$ac_ext | |
19039 | cat >>conftest.$ac_ext <<_ACEOF | |
19040 | /* end confdefs.h. */ | |
edfaf76d LK |
19041 | /* Define res_send to an innocuous variant, in case <limits.h> declares res_send. |
19042 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19043 | #define res_send innocuous_res_send | |
19044 | ||
84e70f78 | 19045 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19046 | which can conflict with char res_send (); below. |
19047 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19048 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 19049 | |
19650fd6 AS |
19050 | #ifdef __STDC__ |
19051 | # include <limits.h> | |
19052 | #else | |
19053 | # include <assert.h> | |
19054 | #endif | |
edfaf76d LK |
19055 | |
19056 | #undef res_send | |
19057 | ||
ca81d7a0 JD |
19058 | /* Override any GCC internal prototype to avoid an error. |
19059 | Use char because int might match the return type of a GCC | |
19060 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
19061 | #ifdef __cplusplus |
19062 | extern "C" | |
19063 | #endif | |
84e70f78 | 19064 | char res_send (); |
84e70f78 KR |
19065 | /* The GNU C library defines this for functions which it implements |
19066 | to always fail with ENOSYS. Some functions are actually named | |
19067 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 19068 | #if defined __stub_res_send || defined __stub___res_send |
84e70f78 | 19069 | choke me |
cd958eb3 MB |
19070 | #endif |
19071 | ||
19650fd6 AS |
19072 | int |
19073 | main () | |
19074 | { | |
ca81d7a0 | 19075 | return res_send (); |
84e70f78 KR |
19076 | ; |
19077 | return 0; | |
19078 | } | |
19079 | _ACEOF | |
19080 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19081 | if { (ac_try="$ac_link" |
19082 | case "(($ac_try" in | |
19083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19084 | *) ac_try_echo=$ac_try;; | |
19085 | esac | |
19086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19087 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 19088 | ac_status=$? |
edfaf76d LK |
19089 | grep -v '^ *+' conftest.er1 >conftest.err |
19090 | rm -f conftest.er1 | |
19091 | cat conftest.err >&5 | |
c0d27fcc | 19092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19093 | (exit $ac_status); } && { |
19094 | test -z "$ac_c_werror_flag" || | |
19095 | test ! -s conftest.err | |
19096 | } && test -s conftest$ac_exeext && | |
19097 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
19098 | ac_cv_func_res_send=yes |
19099 | else | |
19100 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19101 | sed 's/^/| /' conftest.$ac_ext >&5 |
19102 | ||
ca81d7a0 | 19103 | ac_cv_func_res_send=no |
84e70f78 | 19104 | fi |
ca81d7a0 | 19105 | |
f053c89f | 19106 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19107 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 | 19108 | fi |
ca81d7a0 JD |
19109 | { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 |
19110 | echo "${ECHO_T}$ac_cv_func_res_send" >&6; } | |
84e70f78 KR |
19111 | if test $ac_cv_func_res_send = yes; then |
19112 | : | |
19113 | else | |
ca81d7a0 JD |
19114 | { echo "$as_me:$LINENO: checking for __res_send" >&5 |
19115 | echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; } | |
84e70f78 KR |
19116 | if test "${ac_cv_func___res_send+set}" = set; then |
19117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19118 | else | |
19119 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19120 | /* confdefs.h. */ |
19121 | _ACEOF | |
19122 | cat confdefs.h >>conftest.$ac_ext | |
19123 | cat >>conftest.$ac_ext <<_ACEOF | |
19124 | /* end confdefs.h. */ | |
edfaf76d LK |
19125 | /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send. |
19126 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19127 | #define __res_send innocuous___res_send | |
19128 | ||
84e70f78 | 19129 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19130 | which can conflict with char __res_send (); below. |
19131 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19132 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 19133 | |
19650fd6 AS |
19134 | #ifdef __STDC__ |
19135 | # include <limits.h> | |
19136 | #else | |
19137 | # include <assert.h> | |
19138 | #endif | |
edfaf76d LK |
19139 | |
19140 | #undef __res_send | |
19141 | ||
ca81d7a0 JD |
19142 | /* Override any GCC internal prototype to avoid an error. |
19143 | Use char because int might match the return type of a GCC | |
19144 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
19145 | #ifdef __cplusplus |
19146 | extern "C" | |
19147 | #endif | |
84e70f78 | 19148 | char __res_send (); |
84e70f78 KR |
19149 | /* The GNU C library defines this for functions which it implements |
19150 | to always fail with ENOSYS. Some functions are actually named | |
19151 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 19152 | #if defined __stub___res_send || defined __stub_____res_send |
84e70f78 | 19153 | choke me |
84e70f78 KR |
19154 | #endif |
19155 | ||
19650fd6 AS |
19156 | int |
19157 | main () | |
19158 | { | |
ca81d7a0 | 19159 | return __res_send (); |
84e70f78 KR |
19160 | ; |
19161 | return 0; | |
19162 | } | |
19163 | _ACEOF | |
19164 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19165 | if { (ac_try="$ac_link" |
19166 | case "(($ac_try" in | |
19167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19168 | *) ac_try_echo=$ac_try;; | |
19169 | esac | |
19170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19171 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 19172 | ac_status=$? |
edfaf76d LK |
19173 | grep -v '^ *+' conftest.er1 >conftest.err |
19174 | rm -f conftest.er1 | |
19175 | cat conftest.err >&5 | |
c0d27fcc | 19176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19177 | (exit $ac_status); } && { |
19178 | test -z "$ac_c_werror_flag" || | |
19179 | test ! -s conftest.err | |
19180 | } && test -s conftest$ac_exeext && | |
19181 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
19182 | ac_cv_func___res_send=yes |
19183 | else | |
19184 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19185 | sed 's/^/| /' conftest.$ac_ext >&5 |
19186 | ||
ca81d7a0 | 19187 | ac_cv_func___res_send=no |
84e70f78 | 19188 | fi |
ca81d7a0 | 19189 | |
f053c89f | 19190 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19191 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 | 19192 | fi |
ca81d7a0 JD |
19193 | { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5 |
19194 | echo "${ECHO_T}$ac_cv_func___res_send" >&6; } | |
84e70f78 KR |
19195 | if test $ac_cv_func___res_send = yes; then |
19196 | : | |
19197 | else | |
ca81d7a0 JD |
19198 | { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 |
19199 | echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; } | |
84e70f78 KR |
19200 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then |
19201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19202 | else | |
19203 | ac_check_lib_save_LIBS=$LIBS | |
19204 | LIBS="-lresolv $LIBS" | |
19205 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19206 | /* confdefs.h. */ |
19207 | _ACEOF | |
19208 | cat confdefs.h >>conftest.$ac_ext | |
19209 | cat >>conftest.$ac_ext <<_ACEOF | |
19210 | /* end confdefs.h. */ | |
84e70f78 | 19211 | |
ca81d7a0 JD |
19212 | /* Override any GCC internal prototype to avoid an error. |
19213 | Use char because int might match the return type of a GCC | |
19214 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
19215 | #ifdef __cplusplus |
19216 | extern "C" | |
19217 | #endif | |
84e70f78 KR |
19218 | char res_send (); |
19219 | int | |
19220 | main () | |
19221 | { | |
ca81d7a0 | 19222 | return res_send (); |
84e70f78 KR |
19223 | ; |
19224 | return 0; | |
19225 | } | |
19226 | _ACEOF | |
19227 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19228 | if { (ac_try="$ac_link" |
19229 | case "(($ac_try" in | |
19230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19231 | *) ac_try_echo=$ac_try;; | |
19232 | esac | |
19233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19234 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 19235 | ac_status=$? |
edfaf76d LK |
19236 | grep -v '^ *+' conftest.er1 >conftest.err |
19237 | rm -f conftest.er1 | |
19238 | cat conftest.err >&5 | |
c0d27fcc | 19239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19240 | (exit $ac_status); } && { |
19241 | test -z "$ac_c_werror_flag" || | |
19242 | test ! -s conftest.err | |
19243 | } && test -s conftest$ac_exeext && | |
19244 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
19245 | ac_cv_lib_resolv_res_send=yes |
19246 | else | |
19247 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19248 | sed 's/^/| /' conftest.$ac_ext >&5 |
19249 | ||
ca81d7a0 | 19250 | ac_cv_lib_resolv_res_send=no |
84e70f78 | 19251 | fi |
ca81d7a0 | 19252 | |
f053c89f | 19253 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19254 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 KR |
19255 | LIBS=$ac_check_lib_save_LIBS |
19256 | fi | |
ca81d7a0 JD |
19257 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 |
19258 | echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; } | |
84e70f78 KR |
19259 | if test $ac_cv_lib_resolv_res_send = yes; then |
19260 | resolv=yes | |
19261 | else | |
ca81d7a0 JD |
19262 | { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 |
19263 | echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; } | |
84e70f78 KR |
19264 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then |
19265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19266 | else | |
19267 | ac_check_lib_save_LIBS=$LIBS | |
19268 | LIBS="-lresolv $LIBS" | |
19269 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19270 | /* confdefs.h. */ |
19271 | _ACEOF | |
19272 | cat confdefs.h >>conftest.$ac_ext | |
19273 | cat >>conftest.$ac_ext <<_ACEOF | |
19274 | /* end confdefs.h. */ | |
84e70f78 | 19275 | |
ca81d7a0 JD |
19276 | /* Override any GCC internal prototype to avoid an error. |
19277 | Use char because int might match the return type of a GCC | |
19278 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
19279 | #ifdef __cplusplus |
19280 | extern "C" | |
19281 | #endif | |
84e70f78 KR |
19282 | char __res_send (); |
19283 | int | |
19284 | main () | |
19285 | { | |
ca81d7a0 | 19286 | return __res_send (); |
84e70f78 KR |
19287 | ; |
19288 | return 0; | |
19289 | } | |
19290 | _ACEOF | |
19291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19292 | if { (ac_try="$ac_link" |
19293 | case "(($ac_try" in | |
19294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19295 | *) ac_try_echo=$ac_try;; | |
19296 | esac | |
19297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19298 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 19299 | ac_status=$? |
edfaf76d LK |
19300 | grep -v '^ *+' conftest.er1 >conftest.err |
19301 | rm -f conftest.er1 | |
19302 | cat conftest.err >&5 | |
c0d27fcc | 19303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19304 | (exit $ac_status); } && { |
19305 | test -z "$ac_c_werror_flag" || | |
19306 | test ! -s conftest.err | |
19307 | } && test -s conftest$ac_exeext && | |
19308 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
19309 | ac_cv_lib_resolv___res_send=yes |
19310 | else | |
19311 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19312 | sed 's/^/| /' conftest.$ac_ext >&5 |
19313 | ||
ca81d7a0 | 19314 | ac_cv_lib_resolv___res_send=no |
84e70f78 | 19315 | fi |
ca81d7a0 | 19316 | |
f053c89f | 19317 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19318 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 KR |
19319 | LIBS=$ac_check_lib_save_LIBS |
19320 | fi | |
ca81d7a0 JD |
19321 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 |
19322 | echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; } | |
84e70f78 KR |
19323 | if test $ac_cv_lib_resolv___res_send = yes; then |
19324 | resolv=yes | |
19325 | fi | |
19326 | ||
19327 | fi | |
19328 | ||
19329 | fi | |
19330 | ||
19331 | fi | |
19332 | ||
19333 | if test "$resolv" = yes ; then | |
19334 | RESOLVLIB=-lresolv | |
b936fae4 | 19335 | |
c0d27fcc | 19336 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 19337 | #define HAVE_LIBRESOLV 1 |
c0d27fcc | 19338 | _ACEOF |
84e70f78 KR |
19339 | |
19340 | else | |
19341 | RESOLVLIB= | |
19342 | fi | |
ca81d7a0 JD |
19343 | { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 |
19344 | echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; } | |
84e70f78 KR |
19345 | if test "${ac_cv_func_hes_getmailhost+set}" = set; then |
19346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19347 | else | |
19348 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19349 | /* confdefs.h. */ |
19350 | _ACEOF | |
19351 | cat confdefs.h >>conftest.$ac_ext | |
19352 | cat >>conftest.$ac_ext <<_ACEOF | |
19353 | /* end confdefs.h. */ | |
edfaf76d LK |
19354 | /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost. |
19355 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19356 | #define hes_getmailhost innocuous_hes_getmailhost | |
19357 | ||
84e70f78 | 19358 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19359 | which can conflict with char hes_getmailhost (); below. |
19360 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19361 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 19362 | |
19650fd6 AS |
19363 | #ifdef __STDC__ |
19364 | # include <limits.h> | |
19365 | #else | |
19366 | # include <assert.h> | |
19367 | #endif | |
edfaf76d LK |
19368 | |
19369 | #undef hes_getmailhost | |
19370 | ||
ca81d7a0 JD |
19371 | /* Override any GCC internal prototype to avoid an error. |
19372 | Use char because int might match the return type of a GCC | |
19373 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
19374 | #ifdef __cplusplus |
19375 | extern "C" | |
19376 | #endif | |
84e70f78 | 19377 | char hes_getmailhost (); |
84e70f78 KR |
19378 | /* The GNU C library defines this for functions which it implements |
19379 | to always fail with ENOSYS. Some functions are actually named | |
19380 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 19381 | #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost |
84e70f78 | 19382 | choke me |
cd958eb3 MB |
19383 | #endif |
19384 | ||
19650fd6 AS |
19385 | int |
19386 | main () | |
19387 | { | |
ca81d7a0 | 19388 | return hes_getmailhost (); |
84e70f78 KR |
19389 | ; |
19390 | return 0; | |
19391 | } | |
19392 | _ACEOF | |
19393 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19394 | if { (ac_try="$ac_link" |
19395 | case "(($ac_try" in | |
19396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19397 | *) ac_try_echo=$ac_try;; | |
19398 | esac | |
19399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19400 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 19401 | ac_status=$? |
edfaf76d LK |
19402 | grep -v '^ *+' conftest.er1 >conftest.err |
19403 | rm -f conftest.er1 | |
19404 | cat conftest.err >&5 | |
c0d27fcc | 19405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19406 | (exit $ac_status); } && { |
19407 | test -z "$ac_c_werror_flag" || | |
19408 | test ! -s conftest.err | |
19409 | } && test -s conftest$ac_exeext && | |
19410 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
19411 | ac_cv_func_hes_getmailhost=yes |
19412 | else | |
19413 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19414 | sed 's/^/| /' conftest.$ac_ext >&5 |
19415 | ||
ca81d7a0 | 19416 | ac_cv_func_hes_getmailhost=no |
84e70f78 | 19417 | fi |
ca81d7a0 | 19418 | |
f053c89f | 19419 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19420 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 | 19421 | fi |
ca81d7a0 JD |
19422 | { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5 |
19423 | echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; } | |
84e70f78 KR |
19424 | if test $ac_cv_func_hes_getmailhost = yes; then |
19425 | : | |
19426 | else | |
ca81d7a0 JD |
19427 | { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5 |
19428 | echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; } | |
84e70f78 KR |
19429 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then |
19430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19431 | else | |
19432 | ac_check_lib_save_LIBS=$LIBS | |
19433 | LIBS="-lhesiod $RESOLVLIB $LIBS" | |
19434 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19435 | /* confdefs.h. */ |
19436 | _ACEOF | |
19437 | cat confdefs.h >>conftest.$ac_ext | |
19438 | cat >>conftest.$ac_ext <<_ACEOF | |
19439 | /* end confdefs.h. */ | |
84e70f78 | 19440 | |
ca81d7a0 JD |
19441 | /* Override any GCC internal prototype to avoid an error. |
19442 | Use char because int might match the return type of a GCC | |
19443 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
19444 | #ifdef __cplusplus |
19445 | extern "C" | |
19446 | #endif | |
84e70f78 KR |
19447 | char hes_getmailhost (); |
19448 | int | |
19449 | main () | |
19450 | { | |
ca81d7a0 | 19451 | return hes_getmailhost (); |
84e70f78 KR |
19452 | ; |
19453 | return 0; | |
19454 | } | |
19455 | _ACEOF | |
19456 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19457 | if { (ac_try="$ac_link" |
19458 | case "(($ac_try" in | |
19459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19460 | *) ac_try_echo=$ac_try;; | |
19461 | esac | |
19462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19463 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 19464 | ac_status=$? |
edfaf76d LK |
19465 | grep -v '^ *+' conftest.er1 >conftest.err |
19466 | rm -f conftest.er1 | |
19467 | cat conftest.err >&5 | |
c0d27fcc | 19468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19469 | (exit $ac_status); } && { |
19470 | test -z "$ac_c_werror_flag" || | |
19471 | test ! -s conftest.err | |
19472 | } && test -s conftest$ac_exeext && | |
19473 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
19474 | ac_cv_lib_hesiod_hes_getmailhost=yes |
19475 | else | |
19476 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19477 | sed 's/^/| /' conftest.$ac_ext >&5 |
19478 | ||
ca81d7a0 | 19479 | ac_cv_lib_hesiod_hes_getmailhost=no |
84e70f78 | 19480 | fi |
ca81d7a0 | 19481 | |
f053c89f | 19482 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19483 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 KR |
19484 | LIBS=$ac_check_lib_save_LIBS |
19485 | fi | |
ca81d7a0 JD |
19486 | { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
19487 | echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; } | |
84e70f78 | 19488 | if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then |
b936fae4 | 19489 | |
c0d27fcc | 19490 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 19491 | #define HAVE_LIBHESIOD 1 |
c0d27fcc | 19492 | _ACEOF |
84e70f78 KR |
19493 | |
19494 | else | |
19495 | : | |
19496 | fi | |
19497 | ||
19498 | fi | |
19499 | ||
19500 | fi | |
19501 | ||
a21616bd KR |
19502 | # These tell us which Kerberos-related libraries to use. |
19503 | if test "${with_kerberos+set}" = set; then | |
503d2be0 | 19504 | |
ca81d7a0 JD |
19505 | { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 |
19506 | echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; } | |
503d2be0 AS |
19507 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then |
19508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 19509 | else |
503d2be0 | 19510 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 19511 | LIBS="-lcom_err $LIBS" |
503d2be0 | 19512 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19513 | /* confdefs.h. */ |
19514 | _ACEOF | |
19515 | cat confdefs.h >>conftest.$ac_ext | |
19516 | cat >>conftest.$ac_ext <<_ACEOF | |
19517 | /* end confdefs.h. */ | |
503d2be0 | 19518 | |
ca81d7a0 JD |
19519 | /* Override any GCC internal prototype to avoid an error. |
19520 | Use char because int might match the return type of a GCC | |
19521 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19522 | #ifdef __cplusplus |
19523 | extern "C" | |
19524 | #endif | |
503d2be0 AS |
19525 | char com_err (); |
19526 | int | |
19527 | main () | |
19528 | { | |
ca81d7a0 | 19529 | return com_err (); |
503d2be0 AS |
19530 | ; |
19531 | return 0; | |
19532 | } | |
19533 | _ACEOF | |
19534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19535 | if { (ac_try="$ac_link" |
19536 | case "(($ac_try" in | |
19537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19538 | *) ac_try_echo=$ac_try;; | |
19539 | esac | |
19540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19541 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 19542 | ac_status=$? |
edfaf76d LK |
19543 | grep -v '^ *+' conftest.er1 >conftest.err |
19544 | rm -f conftest.er1 | |
19545 | cat conftest.err >&5 | |
c0d27fcc | 19546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19547 | (exit $ac_status); } && { |
19548 | test -z "$ac_c_werror_flag" || | |
19549 | test ! -s conftest.err | |
19550 | } && test -s conftest$ac_exeext && | |
19551 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19552 | ac_cv_lib_com_err_com_err=yes |
19553 | else | |
19554 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19555 | sed 's/^/| /' conftest.$ac_ext >&5 |
19556 | ||
ca81d7a0 | 19557 | ac_cv_lib_com_err_com_err=no |
503d2be0 | 19558 | fi |
ca81d7a0 | 19559 | |
f053c89f | 19560 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19561 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
19562 | LIBS=$ac_check_lib_save_LIBS |
19563 | fi | |
ca81d7a0 JD |
19564 | { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 |
19565 | echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; } | |
503d2be0 | 19566 | if test $ac_cv_lib_com_err_com_err = yes; then |
c0d27fcc | 19567 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19568 | #define HAVE_LIBCOM_ERR 1 |
c0d27fcc | 19569 | _ACEOF |
a21616bd KR |
19570 | |
19571 | LIBS="-lcom_err $LIBS" | |
19572 | ||
a21616bd KR |
19573 | fi |
19574 | ||
c0d27fcc | 19575 | |
ca81d7a0 JD |
19576 | { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
19577 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; } | |
503d2be0 AS |
19578 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then |
19579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 19580 | else |
503d2be0 | 19581 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 19582 | LIBS="-lk5crypto $LIBS" |
503d2be0 | 19583 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19584 | /* confdefs.h. */ |
19585 | _ACEOF | |
19586 | cat confdefs.h >>conftest.$ac_ext | |
19587 | cat >>conftest.$ac_ext <<_ACEOF | |
19588 | /* end confdefs.h. */ | |
503d2be0 | 19589 | |
ca81d7a0 JD |
19590 | /* Override any GCC internal prototype to avoid an error. |
19591 | Use char because int might match the return type of a GCC | |
19592 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19593 | #ifdef __cplusplus |
19594 | extern "C" | |
19595 | #endif | |
503d2be0 AS |
19596 | char mit_des_cbc_encrypt (); |
19597 | int | |
19598 | main () | |
19599 | { | |
ca81d7a0 | 19600 | return mit_des_cbc_encrypt (); |
503d2be0 AS |
19601 | ; |
19602 | return 0; | |
19603 | } | |
19604 | _ACEOF | |
19605 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19606 | if { (ac_try="$ac_link" |
19607 | case "(($ac_try" in | |
19608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19609 | *) ac_try_echo=$ac_try;; | |
19610 | esac | |
19611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19612 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 19613 | ac_status=$? |
edfaf76d LK |
19614 | grep -v '^ *+' conftest.er1 >conftest.err |
19615 | rm -f conftest.er1 | |
19616 | cat conftest.err >&5 | |
c0d27fcc | 19617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19618 | (exit $ac_status); } && { |
19619 | test -z "$ac_c_werror_flag" || | |
19620 | test ! -s conftest.err | |
19621 | } && test -s conftest$ac_exeext && | |
19622 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19623 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes |
19624 | else | |
19625 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19626 | sed 's/^/| /' conftest.$ac_ext >&5 |
19627 | ||
ca81d7a0 | 19628 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no |
503d2be0 | 19629 | fi |
ca81d7a0 | 19630 | |
f053c89f | 19631 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19632 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
19633 | LIBS=$ac_check_lib_save_LIBS |
19634 | fi | |
ca81d7a0 JD |
19635 | { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
19636 | echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } | |
503d2be0 | 19637 | if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then |
c0d27fcc | 19638 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19639 | #define HAVE_LIBK5CRYPTO 1 |
c0d27fcc | 19640 | _ACEOF |
a21616bd KR |
19641 | |
19642 | LIBS="-lk5crypto $LIBS" | |
19643 | ||
a21616bd KR |
19644 | fi |
19645 | ||
c0d27fcc | 19646 | |
ca81d7a0 JD |
19647 | { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
19648 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; } | |
503d2be0 AS |
19649 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then |
19650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 19651 | else |
503d2be0 | 19652 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 19653 | LIBS="-lcrypto $LIBS" |
503d2be0 | 19654 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19655 | /* confdefs.h. */ |
19656 | _ACEOF | |
19657 | cat confdefs.h >>conftest.$ac_ext | |
19658 | cat >>conftest.$ac_ext <<_ACEOF | |
19659 | /* end confdefs.h. */ | |
503d2be0 | 19660 | |
ca81d7a0 JD |
19661 | /* Override any GCC internal prototype to avoid an error. |
19662 | Use char because int might match the return type of a GCC | |
19663 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19664 | #ifdef __cplusplus |
19665 | extern "C" | |
19666 | #endif | |
503d2be0 AS |
19667 | char mit_des_cbc_encrypt (); |
19668 | int | |
19669 | main () | |
19670 | { | |
ca81d7a0 | 19671 | return mit_des_cbc_encrypt (); |
503d2be0 AS |
19672 | ; |
19673 | return 0; | |
19674 | } | |
19675 | _ACEOF | |
19676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19677 | if { (ac_try="$ac_link" |
19678 | case "(($ac_try" in | |
19679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19680 | *) ac_try_echo=$ac_try;; | |
19681 | esac | |
19682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19683 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 19684 | ac_status=$? |
edfaf76d LK |
19685 | grep -v '^ *+' conftest.er1 >conftest.err |
19686 | rm -f conftest.er1 | |
19687 | cat conftest.err >&5 | |
c0d27fcc | 19688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19689 | (exit $ac_status); } && { |
19690 | test -z "$ac_c_werror_flag" || | |
19691 | test ! -s conftest.err | |
19692 | } && test -s conftest$ac_exeext && | |
19693 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19694 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes |
19695 | else | |
19696 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19697 | sed 's/^/| /' conftest.$ac_ext >&5 |
19698 | ||
ca81d7a0 | 19699 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no |
503d2be0 | 19700 | fi |
ca81d7a0 | 19701 | |
f053c89f | 19702 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19703 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
19704 | LIBS=$ac_check_lib_save_LIBS |
19705 | fi | |
ca81d7a0 JD |
19706 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
19707 | echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } | |
503d2be0 | 19708 | if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then |
c0d27fcc | 19709 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19710 | #define HAVE_LIBCRYPTO 1 |
c0d27fcc | 19711 | _ACEOF |
a21616bd KR |
19712 | |
19713 | LIBS="-lcrypto $LIBS" | |
19714 | ||
a21616bd KR |
19715 | fi |
19716 | ||
c0d27fcc | 19717 | |
ca81d7a0 JD |
19718 | { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 |
19719 | echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; } | |
503d2be0 AS |
19720 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then |
19721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 19722 | else |
503d2be0 | 19723 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 19724 | LIBS="-lkrb5 $LIBS" |
503d2be0 | 19725 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19726 | /* confdefs.h. */ |
19727 | _ACEOF | |
19728 | cat confdefs.h >>conftest.$ac_ext | |
19729 | cat >>conftest.$ac_ext <<_ACEOF | |
19730 | /* end confdefs.h. */ | |
a21616bd | 19731 | |
ca81d7a0 JD |
19732 | /* Override any GCC internal prototype to avoid an error. |
19733 | Use char because int might match the return type of a GCC | |
19734 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19735 | #ifdef __cplusplus |
19736 | extern "C" | |
19737 | #endif | |
503d2be0 AS |
19738 | char krb5_init_context (); |
19739 | int | |
19740 | main () | |
19741 | { | |
ca81d7a0 | 19742 | return krb5_init_context (); |
503d2be0 AS |
19743 | ; |
19744 | return 0; | |
19745 | } | |
19746 | _ACEOF | |
19747 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19748 | if { (ac_try="$ac_link" |
19749 | case "(($ac_try" in | |
19750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19751 | *) ac_try_echo=$ac_try;; | |
19752 | esac | |
19753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19754 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 19755 | ac_status=$? |
edfaf76d LK |
19756 | grep -v '^ *+' conftest.er1 >conftest.err |
19757 | rm -f conftest.er1 | |
19758 | cat conftest.err >&5 | |
c0d27fcc | 19759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19760 | (exit $ac_status); } && { |
19761 | test -z "$ac_c_werror_flag" || | |
19762 | test ! -s conftest.err | |
19763 | } && test -s conftest$ac_exeext && | |
19764 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19765 | ac_cv_lib_krb5_krb5_init_context=yes |
19766 | else | |
19767 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19768 | sed 's/^/| /' conftest.$ac_ext >&5 |
19769 | ||
ca81d7a0 | 19770 | ac_cv_lib_krb5_krb5_init_context=no |
503d2be0 | 19771 | fi |
ca81d7a0 | 19772 | |
f053c89f | 19773 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19774 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
19775 | LIBS=$ac_check_lib_save_LIBS |
19776 | fi | |
ca81d7a0 JD |
19777 | { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
19778 | echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; } | |
503d2be0 | 19779 | if test $ac_cv_lib_krb5_krb5_init_context = yes; then |
c0d27fcc | 19780 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19781 | #define HAVE_LIBKRB5 1 |
c0d27fcc | 19782 | _ACEOF |
a21616bd KR |
19783 | |
19784 | LIBS="-lkrb5 $LIBS" | |
19785 | ||
a21616bd KR |
19786 | fi |
19787 | ||
19788 | if test "${with_kerberos5+set}" != set; then | |
503d2be0 | 19789 | |
ca81d7a0 JD |
19790 | { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 |
19791 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; } | |
503d2be0 AS |
19792 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then |
19793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 19794 | else |
503d2be0 | 19795 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 19796 | LIBS="-ldes425 $LIBS" |
503d2be0 | 19797 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19798 | /* confdefs.h. */ |
19799 | _ACEOF | |
19800 | cat confdefs.h >>conftest.$ac_ext | |
19801 | cat >>conftest.$ac_ext <<_ACEOF | |
19802 | /* end confdefs.h. */ | |
503d2be0 | 19803 | |
ca81d7a0 JD |
19804 | /* Override any GCC internal prototype to avoid an error. |
19805 | Use char because int might match the return type of a GCC | |
19806 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19807 | #ifdef __cplusplus |
19808 | extern "C" | |
19809 | #endif | |
503d2be0 AS |
19810 | char des_cbc_encrypt (); |
19811 | int | |
19812 | main () | |
19813 | { | |
ca81d7a0 | 19814 | return des_cbc_encrypt (); |
503d2be0 AS |
19815 | ; |
19816 | return 0; | |
19817 | } | |
19818 | _ACEOF | |
19819 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19820 | if { (ac_try="$ac_link" |
19821 | case "(($ac_try" in | |
19822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19823 | *) ac_try_echo=$ac_try;; | |
19824 | esac | |
19825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19826 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 19827 | ac_status=$? |
edfaf76d LK |
19828 | grep -v '^ *+' conftest.er1 >conftest.err |
19829 | rm -f conftest.er1 | |
19830 | cat conftest.err >&5 | |
c0d27fcc | 19831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19832 | (exit $ac_status); } && { |
19833 | test -z "$ac_c_werror_flag" || | |
19834 | test ! -s conftest.err | |
19835 | } && test -s conftest$ac_exeext && | |
19836 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19837 | ac_cv_lib_des425_des_cbc_encrypt=yes |
19838 | else | |
19839 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19840 | sed 's/^/| /' conftest.$ac_ext >&5 |
19841 | ||
ca81d7a0 | 19842 | ac_cv_lib_des425_des_cbc_encrypt=no |
503d2be0 | 19843 | fi |
ca81d7a0 | 19844 | |
f053c89f | 19845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19846 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
19847 | LIBS=$ac_check_lib_save_LIBS |
19848 | fi | |
ca81d7a0 JD |
19849 | { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
19850 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; } | |
503d2be0 | 19851 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then |
c0d27fcc | 19852 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19853 | #define HAVE_LIBDES425 1 |
c0d27fcc | 19854 | _ACEOF |
a21616bd KR |
19855 | |
19856 | LIBS="-ldes425 $LIBS" | |
19857 | ||
19858 | else | |
503d2be0 | 19859 | |
ca81d7a0 JD |
19860 | { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 |
19861 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; } | |
503d2be0 AS |
19862 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then |
19863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 19864 | else |
503d2be0 | 19865 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 19866 | LIBS="-ldes $LIBS" |
503d2be0 | 19867 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19868 | /* confdefs.h. */ |
19869 | _ACEOF | |
19870 | cat confdefs.h >>conftest.$ac_ext | |
19871 | cat >>conftest.$ac_ext <<_ACEOF | |
19872 | /* end confdefs.h. */ | |
503d2be0 | 19873 | |
ca81d7a0 JD |
19874 | /* Override any GCC internal prototype to avoid an error. |
19875 | Use char because int might match the return type of a GCC | |
19876 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19877 | #ifdef __cplusplus |
19878 | extern "C" | |
19879 | #endif | |
503d2be0 AS |
19880 | char des_cbc_encrypt (); |
19881 | int | |
19882 | main () | |
19883 | { | |
ca81d7a0 | 19884 | return des_cbc_encrypt (); |
503d2be0 AS |
19885 | ; |
19886 | return 0; | |
19887 | } | |
19888 | _ACEOF | |
19889 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19890 | if { (ac_try="$ac_link" |
19891 | case "(($ac_try" in | |
19892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19893 | *) ac_try_echo=$ac_try;; | |
19894 | esac | |
19895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19896 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 19897 | ac_status=$? |
edfaf76d LK |
19898 | grep -v '^ *+' conftest.er1 >conftest.err |
19899 | rm -f conftest.er1 | |
19900 | cat conftest.err >&5 | |
c0d27fcc | 19901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19902 | (exit $ac_status); } && { |
19903 | test -z "$ac_c_werror_flag" || | |
19904 | test ! -s conftest.err | |
19905 | } && test -s conftest$ac_exeext && | |
19906 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19907 | ac_cv_lib_des_des_cbc_encrypt=yes |
19908 | else | |
19909 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19910 | sed 's/^/| /' conftest.$ac_ext >&5 |
19911 | ||
ca81d7a0 | 19912 | ac_cv_lib_des_des_cbc_encrypt=no |
503d2be0 | 19913 | fi |
ca81d7a0 | 19914 | |
f053c89f | 19915 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19916 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
19917 | LIBS=$ac_check_lib_save_LIBS |
19918 | fi | |
ca81d7a0 JD |
19919 | { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
19920 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; } | |
503d2be0 | 19921 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then |
c0d27fcc | 19922 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19923 | #define HAVE_LIBDES 1 |
c0d27fcc | 19924 | _ACEOF |
a21616bd KR |
19925 | |
19926 | LIBS="-ldes $LIBS" | |
19927 | ||
a21616bd KR |
19928 | fi |
19929 | ||
19930 | fi | |
19931 | ||
c0d27fcc | 19932 | |
ca81d7a0 JD |
19933 | { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 |
19934 | echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; } | |
503d2be0 AS |
19935 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then |
19936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 19937 | else |
503d2be0 | 19938 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 19939 | LIBS="-lkrb4 $LIBS" |
503d2be0 | 19940 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19941 | /* confdefs.h. */ |
19942 | _ACEOF | |
19943 | cat confdefs.h >>conftest.$ac_ext | |
19944 | cat >>conftest.$ac_ext <<_ACEOF | |
19945 | /* end confdefs.h. */ | |
503d2be0 | 19946 | |
ca81d7a0 JD |
19947 | /* Override any GCC internal prototype to avoid an error. |
19948 | Use char because int might match the return type of a GCC | |
19949 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19950 | #ifdef __cplusplus |
19951 | extern "C" | |
19952 | #endif | |
503d2be0 AS |
19953 | char krb_get_cred (); |
19954 | int | |
f053c89f CY |
19955 | main () |
19956 | { | |
19957 | return krb_get_cred (); | |
19958 | ; | |
19959 | return 0; | |
19960 | } | |
19961 | _ACEOF | |
19962 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19963 | if { (ac_try="$ac_link" | |
19964 | case "(($ac_try" in | |
ca81d7a0 JD |
19965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19966 | *) ac_try_echo=$ac_try;; | |
19967 | esac | |
19968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
f053c89f | 19969 | (eval "$ac_link") 2>conftest.er1 |
503d2be0 | 19970 | ac_status=$? |
f053c89f CY |
19971 | grep -v '^ *+' conftest.er1 >conftest.err |
19972 | rm -f conftest.er1 | |
19973 | cat conftest.err >&5 | |
c0d27fcc | 19974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19975 | (exit $ac_status); } && { |
19976 | test -z "$ac_c_werror_flag" || | |
19977 | test ! -s conftest.err | |
19978 | } && test -s conftest$ac_exeext && | |
19979 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19980 | ac_cv_lib_krb4_krb_get_cred=yes |
19981 | else | |
19982 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19983 | sed 's/^/| /' conftest.$ac_ext >&5 |
19984 | ||
ca81d7a0 | 19985 | ac_cv_lib_krb4_krb_get_cred=no |
503d2be0 | 19986 | fi |
ca81d7a0 | 19987 | |
f053c89f | 19988 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19989 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
19990 | LIBS=$ac_check_lib_save_LIBS |
19991 | fi | |
ca81d7a0 JD |
19992 | { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
19993 | echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; } | |
503d2be0 | 19994 | if test $ac_cv_lib_krb4_krb_get_cred = yes; then |
c0d27fcc | 19995 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19996 | #define HAVE_LIBKRB4 1 |
c0d27fcc | 19997 | _ACEOF |
a21616bd KR |
19998 | |
19999 | LIBS="-lkrb4 $LIBS" | |
20000 | ||
20001 | else | |
503d2be0 | 20002 | |
ca81d7a0 JD |
20003 | { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 |
20004 | echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; } | |
503d2be0 AS |
20005 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then |
20006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20007 | else |
503d2be0 | 20008 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20009 | LIBS="-lkrb $LIBS" |
503d2be0 | 20010 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20011 | /* confdefs.h. */ |
20012 | _ACEOF | |
20013 | cat confdefs.h >>conftest.$ac_ext | |
20014 | cat >>conftest.$ac_ext <<_ACEOF | |
20015 | /* end confdefs.h. */ | |
503d2be0 | 20016 | |
ca81d7a0 JD |
20017 | /* Override any GCC internal prototype to avoid an error. |
20018 | Use char because int might match the return type of a GCC | |
20019 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20020 | #ifdef __cplusplus |
20021 | extern "C" | |
20022 | #endif | |
503d2be0 AS |
20023 | char krb_get_cred (); |
20024 | int | |
20025 | main () | |
20026 | { | |
ca81d7a0 | 20027 | return krb_get_cred (); |
503d2be0 AS |
20028 | ; |
20029 | return 0; | |
20030 | } | |
20031 | _ACEOF | |
20032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20033 | if { (ac_try="$ac_link" |
20034 | case "(($ac_try" in | |
20035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20036 | *) ac_try_echo=$ac_try;; | |
20037 | esac | |
20038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20039 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20040 | ac_status=$? |
edfaf76d LK |
20041 | grep -v '^ *+' conftest.er1 >conftest.err |
20042 | rm -f conftest.er1 | |
20043 | cat conftest.err >&5 | |
c0d27fcc | 20044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20045 | (exit $ac_status); } && { |
20046 | test -z "$ac_c_werror_flag" || | |
20047 | test ! -s conftest.err | |
20048 | } && test -s conftest$ac_exeext && | |
20049 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20050 | ac_cv_lib_krb_krb_get_cred=yes |
20051 | else | |
20052 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20053 | sed 's/^/| /' conftest.$ac_ext >&5 |
20054 | ||
ca81d7a0 | 20055 | ac_cv_lib_krb_krb_get_cred=no |
503d2be0 | 20056 | fi |
ca81d7a0 | 20057 | |
f053c89f | 20058 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20059 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20060 | LIBS=$ac_check_lib_save_LIBS |
20061 | fi | |
ca81d7a0 JD |
20062 | { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
20063 | echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; } | |
503d2be0 | 20064 | if test $ac_cv_lib_krb_krb_get_cred = yes; then |
c0d27fcc | 20065 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20066 | #define HAVE_LIBKRB 1 |
c0d27fcc | 20067 | _ACEOF |
a21616bd KR |
20068 | |
20069 | LIBS="-lkrb $LIBS" | |
20070 | ||
a21616bd KR |
20071 | fi |
20072 | ||
20073 | fi | |
20074 | ||
20075 | fi | |
20076 | ||
20077 | if test "${with_kerberos5+set}" = set; then | |
503d2be0 AS |
20078 | |
20079 | for ac_header in krb5.h | |
a21616bd | 20080 | do |
503d2be0 | 20081 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
20082 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20083 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20084 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20085 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 20086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 20087 | fi |
ca81d7a0 JD |
20088 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20089 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20090 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 20091 | else |
c0d27fcc | 20092 | # Is the header compilable? |
ca81d7a0 JD |
20093 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20094 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 20095 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20096 | /* confdefs.h. */ |
20097 | _ACEOF | |
20098 | cat confdefs.h >>conftest.$ac_ext | |
20099 | cat >>conftest.$ac_ext <<_ACEOF | |
20100 | /* end confdefs.h. */ | |
c0d27fcc MR |
20101 | $ac_includes_default |
20102 | #include <$ac_header> | |
20103 | _ACEOF | |
20104 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
20105 | if { (ac_try="$ac_compile" |
20106 | case "(($ac_try" in | |
20107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20108 | *) ac_try_echo=$ac_try;; | |
20109 | esac | |
20110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20111 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 20112 | ac_status=$? |
edfaf76d LK |
20113 | grep -v '^ *+' conftest.er1 >conftest.err |
20114 | rm -f conftest.er1 | |
20115 | cat conftest.err >&5 | |
c0d27fcc | 20116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20117 | (exit $ac_status); } && { |
20118 | test -z "$ac_c_werror_flag" || | |
20119 | test ! -s conftest.err | |
20120 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
20121 | ac_header_compiler=yes |
20122 | else | |
20123 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20124 | sed 's/^/| /' conftest.$ac_ext >&5 |
20125 | ||
ca81d7a0 | 20126 | ac_header_compiler=no |
c0d27fcc | 20127 | fi |
ca81d7a0 JD |
20128 | |
20129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20130 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20131 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
20132 | |
20133 | # Is the header present? | |
ca81d7a0 JD |
20134 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20135 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 20136 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20137 | /* confdefs.h. */ |
20138 | _ACEOF | |
20139 | cat confdefs.h >>conftest.$ac_ext | |
20140 | cat >>conftest.$ac_ext <<_ACEOF | |
20141 | /* end confdefs.h. */ | |
503d2be0 AS |
20142 | #include <$ac_header> |
20143 | _ACEOF | |
ca81d7a0 JD |
20144 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
20145 | case "(($ac_try" in | |
20146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20147 | *) ac_try_echo=$ac_try;; | |
20148 | esac | |
20149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20150 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 20151 | ac_status=$? |
6bae0ccf | 20152 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20153 | rm -f conftest.er1 |
20154 | cat conftest.err >&5 | |
c0d27fcc | 20155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20156 | (exit $ac_status); } >/dev/null && { |
20157 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20158 | test ! -s conftest.err | |
20159 | }; then | |
c0d27fcc | 20160 | ac_header_preproc=yes |
503d2be0 AS |
20161 | else |
20162 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20163 | sed 's/^/| /' conftest.$ac_ext >&5 |
20164 | ||
c0d27fcc | 20165 | ac_header_preproc=no |
a21616bd | 20166 | fi |
ca81d7a0 | 20167 | |
503d2be0 | 20168 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
20169 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20170 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
20171 | |
20172 | # So? What about this header? | |
edfaf76d LK |
20173 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20174 | yes:no: ) | |
c0d27fcc MR |
20175 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20176 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
20177 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20178 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20179 | ac_header_preproc=yes | |
19650fd6 | 20180 | ;; |
edfaf76d | 20181 | no:yes:* ) |
c0d27fcc MR |
20182 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20183 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
20184 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20185 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20186 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20187 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20188 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20189 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20190 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20191 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
20192 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20193 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 20194 | |
19650fd6 | 20195 | ;; |
c0d27fcc | 20196 | esac |
ca81d7a0 JD |
20197 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20198 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20199 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
20200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20201 | else | |
edfaf76d | 20202 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 20203 | fi |
ca81d7a0 JD |
20204 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20205 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20206 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
20207 | |
20208 | fi | |
503d2be0 | 20209 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 20210 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20211 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 20212 | _ACEOF |
503d2be0 | 20213 | |
a21616bd | 20214 | fi |
c0d27fcc | 20215 | |
a21616bd KR |
20216 | done |
20217 | ||
20218 | else | |
503d2be0 AS |
20219 | |
20220 | for ac_header in des.h | |
a21616bd | 20221 | do |
503d2be0 | 20222 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
20223 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20224 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20225 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20226 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 20227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 20228 | fi |
ca81d7a0 JD |
20229 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20230 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20231 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 20232 | else |
c0d27fcc | 20233 | # Is the header compilable? |
ca81d7a0 JD |
20234 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20235 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 20236 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20237 | /* confdefs.h. */ |
20238 | _ACEOF | |
20239 | cat confdefs.h >>conftest.$ac_ext | |
20240 | cat >>conftest.$ac_ext <<_ACEOF | |
20241 | /* end confdefs.h. */ | |
c0d27fcc MR |
20242 | $ac_includes_default |
20243 | #include <$ac_header> | |
20244 | _ACEOF | |
20245 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
20246 | if { (ac_try="$ac_compile" |
20247 | case "(($ac_try" in | |
20248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20249 | *) ac_try_echo=$ac_try;; | |
20250 | esac | |
20251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20252 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 20253 | ac_status=$? |
edfaf76d LK |
20254 | grep -v '^ *+' conftest.er1 >conftest.err |
20255 | rm -f conftest.er1 | |
20256 | cat conftest.err >&5 | |
c0d27fcc | 20257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20258 | (exit $ac_status); } && { |
20259 | test -z "$ac_c_werror_flag" || | |
20260 | test ! -s conftest.err | |
20261 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
20262 | ac_header_compiler=yes |
20263 | else | |
20264 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20265 | sed 's/^/| /' conftest.$ac_ext >&5 |
20266 | ||
ca81d7a0 | 20267 | ac_header_compiler=no |
c0d27fcc | 20268 | fi |
ca81d7a0 JD |
20269 | |
20270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20271 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20272 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
20273 | |
20274 | # Is the header present? | |
ca81d7a0 JD |
20275 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20276 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 20277 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20278 | /* confdefs.h. */ |
20279 | _ACEOF | |
20280 | cat confdefs.h >>conftest.$ac_ext | |
20281 | cat >>conftest.$ac_ext <<_ACEOF | |
20282 | /* end confdefs.h. */ | |
503d2be0 AS |
20283 | #include <$ac_header> |
20284 | _ACEOF | |
ca81d7a0 JD |
20285 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
20286 | case "(($ac_try" in | |
20287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20288 | *) ac_try_echo=$ac_try;; | |
20289 | esac | |
20290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20291 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 20292 | ac_status=$? |
6bae0ccf | 20293 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20294 | rm -f conftest.er1 |
20295 | cat conftest.err >&5 | |
c0d27fcc | 20296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20297 | (exit $ac_status); } >/dev/null && { |
20298 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20299 | test ! -s conftest.err | |
20300 | }; then | |
c0d27fcc | 20301 | ac_header_preproc=yes |
503d2be0 AS |
20302 | else |
20303 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20304 | sed 's/^/| /' conftest.$ac_ext >&5 |
20305 | ||
c0d27fcc | 20306 | ac_header_preproc=no |
a21616bd | 20307 | fi |
ca81d7a0 | 20308 | |
503d2be0 | 20309 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
20310 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20311 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
20312 | |
20313 | # So? What about this header? | |
edfaf76d LK |
20314 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20315 | yes:no: ) | |
c0d27fcc MR |
20316 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20317 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
20318 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20319 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20320 | ac_header_preproc=yes | |
19650fd6 | 20321 | ;; |
edfaf76d | 20322 | no:yes:* ) |
c0d27fcc MR |
20323 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20324 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
20325 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20326 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20327 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20328 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20329 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20330 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20331 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20332 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
20333 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20334 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 20335 | |
19650fd6 | 20336 | ;; |
c0d27fcc | 20337 | esac |
ca81d7a0 JD |
20338 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20339 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20340 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
20341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20342 | else | |
edfaf76d | 20343 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 20344 | fi |
ca81d7a0 JD |
20345 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20346 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20347 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
20348 | |
20349 | fi | |
503d2be0 | 20350 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 20351 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20352 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 20353 | _ACEOF |
503d2be0 | 20354 | |
a21616bd | 20355 | else |
503d2be0 AS |
20356 | |
20357 | for ac_header in kerberosIV/des.h | |
a21616bd | 20358 | do |
503d2be0 | 20359 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
20360 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20361 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20362 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20363 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 20364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 20365 | fi |
ca81d7a0 JD |
20366 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20367 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20368 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 20369 | else |
c0d27fcc | 20370 | # Is the header compilable? |
ca81d7a0 JD |
20371 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20372 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 20373 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20374 | /* confdefs.h. */ |
20375 | _ACEOF | |
20376 | cat confdefs.h >>conftest.$ac_ext | |
20377 | cat >>conftest.$ac_ext <<_ACEOF | |
20378 | /* end confdefs.h. */ | |
c0d27fcc MR |
20379 | $ac_includes_default |
20380 | #include <$ac_header> | |
20381 | _ACEOF | |
20382 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
20383 | if { (ac_try="$ac_compile" |
20384 | case "(($ac_try" in | |
20385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20386 | *) ac_try_echo=$ac_try;; | |
20387 | esac | |
20388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20389 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 20390 | ac_status=$? |
edfaf76d LK |
20391 | grep -v '^ *+' conftest.er1 >conftest.err |
20392 | rm -f conftest.er1 | |
20393 | cat conftest.err >&5 | |
c0d27fcc | 20394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20395 | (exit $ac_status); } && { |
20396 | test -z "$ac_c_werror_flag" || | |
20397 | test ! -s conftest.err | |
20398 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
20399 | ac_header_compiler=yes |
20400 | else | |
20401 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20402 | sed 's/^/| /' conftest.$ac_ext >&5 |
20403 | ||
ca81d7a0 | 20404 | ac_header_compiler=no |
c0d27fcc | 20405 | fi |
ca81d7a0 JD |
20406 | |
20407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20408 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20409 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
20410 | |
20411 | # Is the header present? | |
ca81d7a0 JD |
20412 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20413 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 20414 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20415 | /* confdefs.h. */ |
20416 | _ACEOF | |
20417 | cat confdefs.h >>conftest.$ac_ext | |
20418 | cat >>conftest.$ac_ext <<_ACEOF | |
20419 | /* end confdefs.h. */ | |
503d2be0 AS |
20420 | #include <$ac_header> |
20421 | _ACEOF | |
ca81d7a0 JD |
20422 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
20423 | case "(($ac_try" in | |
20424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20425 | *) ac_try_echo=$ac_try;; | |
20426 | esac | |
20427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20428 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 20429 | ac_status=$? |
6bae0ccf | 20430 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20431 | rm -f conftest.er1 |
20432 | cat conftest.err >&5 | |
c0d27fcc | 20433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20434 | (exit $ac_status); } >/dev/null && { |
20435 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20436 | test ! -s conftest.err | |
20437 | }; then | |
c0d27fcc | 20438 | ac_header_preproc=yes |
503d2be0 AS |
20439 | else |
20440 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20441 | sed 's/^/| /' conftest.$ac_ext >&5 |
20442 | ||
c0d27fcc | 20443 | ac_header_preproc=no |
a21616bd | 20444 | fi |
ca81d7a0 | 20445 | |
503d2be0 | 20446 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
20447 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20448 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
20449 | |
20450 | # So? What about this header? | |
edfaf76d LK |
20451 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20452 | yes:no: ) | |
c0d27fcc MR |
20453 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20454 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
20455 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20456 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20457 | ac_header_preproc=yes | |
19650fd6 | 20458 | ;; |
edfaf76d | 20459 | no:yes:* ) |
c0d27fcc MR |
20460 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20461 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
20462 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20463 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20464 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20465 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20466 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20467 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20468 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20469 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
20470 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20471 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 20472 | |
19650fd6 | 20473 | ;; |
c0d27fcc | 20474 | esac |
ca81d7a0 JD |
20475 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20476 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20477 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
20478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20479 | else | |
edfaf76d | 20480 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 20481 | fi |
ca81d7a0 JD |
20482 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20483 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20484 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
20485 | |
20486 | fi | |
503d2be0 | 20487 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 20488 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20489 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 20490 | _ACEOF |
503d2be0 | 20491 | |
a21616bd | 20492 | else |
503d2be0 AS |
20493 | |
20494 | for ac_header in kerberos/des.h | |
a21616bd | 20495 | do |
503d2be0 | 20496 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
20497 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20498 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20499 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20500 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 20501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 20502 | fi |
ca81d7a0 JD |
20503 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20504 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20505 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 20506 | else |
c0d27fcc | 20507 | # Is the header compilable? |
ca81d7a0 JD |
20508 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20509 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 20510 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20511 | /* confdefs.h. */ |
20512 | _ACEOF | |
20513 | cat confdefs.h >>conftest.$ac_ext | |
20514 | cat >>conftest.$ac_ext <<_ACEOF | |
20515 | /* end confdefs.h. */ | |
c0d27fcc MR |
20516 | $ac_includes_default |
20517 | #include <$ac_header> | |
20518 | _ACEOF | |
20519 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
20520 | if { (ac_try="$ac_compile" |
20521 | case "(($ac_try" in | |
20522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20523 | *) ac_try_echo=$ac_try;; | |
20524 | esac | |
20525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20526 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 20527 | ac_status=$? |
edfaf76d LK |
20528 | grep -v '^ *+' conftest.er1 >conftest.err |
20529 | rm -f conftest.er1 | |
20530 | cat conftest.err >&5 | |
c0d27fcc | 20531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20532 | (exit $ac_status); } && { |
20533 | test -z "$ac_c_werror_flag" || | |
20534 | test ! -s conftest.err | |
20535 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
20536 | ac_header_compiler=yes |
20537 | else | |
20538 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20539 | sed 's/^/| /' conftest.$ac_ext >&5 |
20540 | ||
ca81d7a0 | 20541 | ac_header_compiler=no |
c0d27fcc | 20542 | fi |
ca81d7a0 JD |
20543 | |
20544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20545 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20546 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
20547 | |
20548 | # Is the header present? | |
ca81d7a0 JD |
20549 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20550 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 20551 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20552 | /* confdefs.h. */ |
20553 | _ACEOF | |
20554 | cat confdefs.h >>conftest.$ac_ext | |
20555 | cat >>conftest.$ac_ext <<_ACEOF | |
20556 | /* end confdefs.h. */ | |
503d2be0 AS |
20557 | #include <$ac_header> |
20558 | _ACEOF | |
ca81d7a0 JD |
20559 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
20560 | case "(($ac_try" in | |
20561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20562 | *) ac_try_echo=$ac_try;; | |
20563 | esac | |
20564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20565 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 20566 | ac_status=$? |
6bae0ccf | 20567 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20568 | rm -f conftest.er1 |
20569 | cat conftest.err >&5 | |
c0d27fcc | 20570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20571 | (exit $ac_status); } >/dev/null && { |
20572 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20573 | test ! -s conftest.err | |
20574 | }; then | |
c0d27fcc | 20575 | ac_header_preproc=yes |
503d2be0 AS |
20576 | else |
20577 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20578 | sed 's/^/| /' conftest.$ac_ext >&5 |
20579 | ||
c0d27fcc | 20580 | ac_header_preproc=no |
a21616bd | 20581 | fi |
ca81d7a0 | 20582 | |
503d2be0 | 20583 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
20584 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20585 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
20586 | |
20587 | # So? What about this header? | |
edfaf76d LK |
20588 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20589 | yes:no: ) | |
c0d27fcc MR |
20590 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20591 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
20592 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20593 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20594 | ac_header_preproc=yes | |
19650fd6 | 20595 | ;; |
edfaf76d | 20596 | no:yes:* ) |
c0d27fcc MR |
20597 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20598 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
20599 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20600 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20601 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20602 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20603 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20604 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20605 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20606 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
20607 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20608 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 20609 | |
19650fd6 | 20610 | ;; |
c0d27fcc | 20611 | esac |
ca81d7a0 JD |
20612 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20613 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20614 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
20615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20616 | else | |
edfaf76d | 20617 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 20618 | fi |
ca81d7a0 JD |
20619 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20620 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20621 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
20622 | |
20623 | fi | |
503d2be0 | 20624 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 20625 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20626 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 20627 | _ACEOF |
a21616bd KR |
20628 | |
20629 | fi | |
c0d27fcc | 20630 | |
a21616bd KR |
20631 | done |
20632 | ||
98418dba | 20633 | fi |
c0d27fcc | 20634 | |
925c2f3f EZ |
20635 | done |
20636 | ||
98418dba | 20637 | fi |
c0d27fcc | 20638 | |
925c2f3f | 20639 | done |
98418dba | 20640 | |
c0d27fcc | 20641 | |
925c2f3f EZ |
20642 | for ac_header in krb.h |
20643 | do | |
20644 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
20645 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20646 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20647 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20648 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
925c2f3f | 20649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 20650 | fi |
ca81d7a0 JD |
20651 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20652 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20653 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
20654 | else |
20655 | # Is the header compilable? | |
ca81d7a0 JD |
20656 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20657 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 20658 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20659 | /* confdefs.h. */ |
20660 | _ACEOF | |
20661 | cat confdefs.h >>conftest.$ac_ext | |
20662 | cat >>conftest.$ac_ext <<_ACEOF | |
20663 | /* end confdefs.h. */ | |
c0d27fcc MR |
20664 | $ac_includes_default |
20665 | #include <$ac_header> | |
20666 | _ACEOF | |
20667 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
20668 | if { (ac_try="$ac_compile" |
20669 | case "(($ac_try" in | |
20670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20671 | *) ac_try_echo=$ac_try;; | |
20672 | esac | |
20673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20674 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 20675 | ac_status=$? |
edfaf76d LK |
20676 | grep -v '^ *+' conftest.er1 >conftest.err |
20677 | rm -f conftest.er1 | |
20678 | cat conftest.err >&5 | |
c0d27fcc | 20679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20680 | (exit $ac_status); } && { |
20681 | test -z "$ac_c_werror_flag" || | |
20682 | test ! -s conftest.err | |
20683 | } && test -s conftest.$ac_objext; then | |
c0d27fcc | 20684 | ac_header_compiler=yes |
925c2f3f | 20685 | else |
c0d27fcc | 20686 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
20687 | sed 's/^/| /' conftest.$ac_ext >&5 |
20688 | ||
ca81d7a0 | 20689 | ac_header_compiler=no |
c0d27fcc | 20690 | fi |
ca81d7a0 JD |
20691 | |
20692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20693 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20694 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
20695 | |
20696 | # Is the header present? | |
ca81d7a0 JD |
20697 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20698 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 20699 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20700 | /* confdefs.h. */ |
20701 | _ACEOF | |
20702 | cat confdefs.h >>conftest.$ac_ext | |
20703 | cat >>conftest.$ac_ext <<_ACEOF | |
20704 | /* end confdefs.h. */ | |
503d2be0 AS |
20705 | #include <$ac_header> |
20706 | _ACEOF | |
ca81d7a0 JD |
20707 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
20708 | case "(($ac_try" in | |
20709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20710 | *) ac_try_echo=$ac_try;; | |
20711 | esac | |
20712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20713 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 20714 | ac_status=$? |
6bae0ccf | 20715 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20716 | rm -f conftest.er1 |
20717 | cat conftest.err >&5 | |
c0d27fcc | 20718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20719 | (exit $ac_status); } >/dev/null && { |
20720 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20721 | test ! -s conftest.err | |
20722 | }; then | |
c0d27fcc | 20723 | ac_header_preproc=yes |
503d2be0 AS |
20724 | else |
20725 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20726 | sed 's/^/| /' conftest.$ac_ext >&5 |
20727 | ||
c0d27fcc | 20728 | ac_header_preproc=no |
a21616bd | 20729 | fi |
ca81d7a0 | 20730 | |
503d2be0 | 20731 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
20732 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20733 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
20734 | |
20735 | # So? What about this header? | |
edfaf76d LK |
20736 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20737 | yes:no: ) | |
c0d27fcc MR |
20738 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20739 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
20740 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20741 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20742 | ac_header_preproc=yes | |
19650fd6 | 20743 | ;; |
edfaf76d | 20744 | no:yes:* ) |
c0d27fcc MR |
20745 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20746 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
20747 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20748 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20749 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20750 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20751 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20752 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20753 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20754 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
20755 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20756 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 20757 | |
19650fd6 | 20758 | ;; |
c0d27fcc | 20759 | esac |
ca81d7a0 JD |
20760 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20762 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
20763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20764 | else | |
edfaf76d | 20765 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 20766 | fi |
ca81d7a0 JD |
20767 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20768 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20769 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
20770 | |
20771 | fi | |
503d2be0 | 20772 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 20773 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20774 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 20775 | _ACEOF |
503d2be0 | 20776 | |
a21616bd | 20777 | else |
503d2be0 AS |
20778 | |
20779 | for ac_header in kerberosIV/krb.h | |
a21616bd | 20780 | do |
503d2be0 | 20781 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
20782 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20783 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20784 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20785 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 20786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 20787 | fi |
ca81d7a0 JD |
20788 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20789 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20790 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 20791 | else |
c0d27fcc | 20792 | # Is the header compilable? |
ca81d7a0 JD |
20793 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20794 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 20795 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20796 | /* confdefs.h. */ |
20797 | _ACEOF | |
20798 | cat confdefs.h >>conftest.$ac_ext | |
20799 | cat >>conftest.$ac_ext <<_ACEOF | |
20800 | /* end confdefs.h. */ | |
c0d27fcc MR |
20801 | $ac_includes_default |
20802 | #include <$ac_header> | |
20803 | _ACEOF | |
20804 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
20805 | if { (ac_try="$ac_compile" |
20806 | case "(($ac_try" in | |
20807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20808 | *) ac_try_echo=$ac_try;; | |
20809 | esac | |
20810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20811 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 20812 | ac_status=$? |
edfaf76d LK |
20813 | grep -v '^ *+' conftest.er1 >conftest.err |
20814 | rm -f conftest.er1 | |
20815 | cat conftest.err >&5 | |
c0d27fcc | 20816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20817 | (exit $ac_status); } && { |
20818 | test -z "$ac_c_werror_flag" || | |
20819 | test ! -s conftest.err | |
20820 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
20821 | ac_header_compiler=yes |
20822 | else | |
20823 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20824 | sed 's/^/| /' conftest.$ac_ext >&5 |
20825 | ||
ca81d7a0 | 20826 | ac_header_compiler=no |
c0d27fcc | 20827 | fi |
ca81d7a0 JD |
20828 | |
20829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20830 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20831 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
20832 | |
20833 | # Is the header present? | |
ca81d7a0 JD |
20834 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20835 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 20836 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20837 | /* confdefs.h. */ |
20838 | _ACEOF | |
20839 | cat confdefs.h >>conftest.$ac_ext | |
20840 | cat >>conftest.$ac_ext <<_ACEOF | |
20841 | /* end confdefs.h. */ | |
503d2be0 AS |
20842 | #include <$ac_header> |
20843 | _ACEOF | |
ca81d7a0 JD |
20844 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
20845 | case "(($ac_try" in | |
20846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20847 | *) ac_try_echo=$ac_try;; | |
20848 | esac | |
20849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20850 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 20851 | ac_status=$? |
6bae0ccf | 20852 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20853 | rm -f conftest.er1 |
20854 | cat conftest.err >&5 | |
c0d27fcc | 20855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20856 | (exit $ac_status); } >/dev/null && { |
20857 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20858 | test ! -s conftest.err | |
20859 | }; then | |
c0d27fcc | 20860 | ac_header_preproc=yes |
503d2be0 AS |
20861 | else |
20862 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20863 | sed 's/^/| /' conftest.$ac_ext >&5 |
20864 | ||
c0d27fcc | 20865 | ac_header_preproc=no |
a21616bd | 20866 | fi |
ca81d7a0 | 20867 | |
503d2be0 | 20868 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
20869 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20870 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
20871 | |
20872 | # So? What about this header? | |
edfaf76d LK |
20873 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20874 | yes:no: ) | |
c0d27fcc MR |
20875 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20876 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
20877 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20878 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20879 | ac_header_preproc=yes | |
19650fd6 | 20880 | ;; |
edfaf76d | 20881 | no:yes:* ) |
c0d27fcc MR |
20882 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20883 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
20884 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20885 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20886 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20887 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20888 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20889 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20891 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
20892 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20893 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 20894 | |
19650fd6 | 20895 | ;; |
c0d27fcc | 20896 | esac |
ca81d7a0 JD |
20897 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20898 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20899 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
20900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20901 | else | |
edfaf76d | 20902 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 20903 | fi |
ca81d7a0 JD |
20904 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20905 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20906 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
20907 | |
20908 | fi | |
503d2be0 | 20909 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 20910 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20911 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 20912 | _ACEOF |
503d2be0 | 20913 | |
a21616bd | 20914 | else |
503d2be0 AS |
20915 | |
20916 | for ac_header in kerberos/krb.h | |
a21616bd | 20917 | do |
503d2be0 | 20918 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
20919 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20920 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20921 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20922 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 20923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 20924 | fi |
ca81d7a0 JD |
20925 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20926 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20927 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 20928 | else |
c0d27fcc | 20929 | # Is the header compilable? |
ca81d7a0 JD |
20930 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20931 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 20932 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20933 | /* confdefs.h. */ |
20934 | _ACEOF | |
20935 | cat confdefs.h >>conftest.$ac_ext | |
20936 | cat >>conftest.$ac_ext <<_ACEOF | |
20937 | /* end confdefs.h. */ | |
c0d27fcc MR |
20938 | $ac_includes_default |
20939 | #include <$ac_header> | |
20940 | _ACEOF | |
20941 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
20942 | if { (ac_try="$ac_compile" |
20943 | case "(($ac_try" in | |
20944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20945 | *) ac_try_echo=$ac_try;; | |
20946 | esac | |
20947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20948 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 20949 | ac_status=$? |
edfaf76d LK |
20950 | grep -v '^ *+' conftest.er1 >conftest.err |
20951 | rm -f conftest.er1 | |
20952 | cat conftest.err >&5 | |
c0d27fcc | 20953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20954 | (exit $ac_status); } && { |
20955 | test -z "$ac_c_werror_flag" || | |
20956 | test ! -s conftest.err | |
20957 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
20958 | ac_header_compiler=yes |
20959 | else | |
20960 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20961 | sed 's/^/| /' conftest.$ac_ext >&5 |
20962 | ||
ca81d7a0 | 20963 | ac_header_compiler=no |
c0d27fcc | 20964 | fi |
ca81d7a0 JD |
20965 | |
20966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20967 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20968 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
20969 | |
20970 | # Is the header present? | |
ca81d7a0 JD |
20971 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20972 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 20973 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20974 | /* confdefs.h. */ |
20975 | _ACEOF | |
20976 | cat confdefs.h >>conftest.$ac_ext | |
20977 | cat >>conftest.$ac_ext <<_ACEOF | |
20978 | /* end confdefs.h. */ | |
503d2be0 AS |
20979 | #include <$ac_header> |
20980 | _ACEOF | |
ca81d7a0 JD |
20981 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
20982 | case "(($ac_try" in | |
20983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20984 | *) ac_try_echo=$ac_try;; | |
20985 | esac | |
20986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20987 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 20988 | ac_status=$? |
6bae0ccf | 20989 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20990 | rm -f conftest.er1 |
20991 | cat conftest.err >&5 | |
c0d27fcc | 20992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20993 | (exit $ac_status); } >/dev/null && { |
20994 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20995 | test ! -s conftest.err | |
20996 | }; then | |
c0d27fcc | 20997 | ac_header_preproc=yes |
503d2be0 AS |
20998 | else |
20999 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21000 | sed 's/^/| /' conftest.$ac_ext >&5 |
21001 | ||
c0d27fcc | 21002 | ac_header_preproc=no |
a21616bd | 21003 | fi |
ca81d7a0 | 21004 | |
503d2be0 | 21005 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
21006 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21007 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
35996d22 AS |
21008 | |
21009 | # So? What about this header? | |
edfaf76d LK |
21010 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21011 | yes:no: ) | |
35996d22 AS |
21012 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21013 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21014 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21015 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21016 | ac_header_preproc=yes | |
19650fd6 | 21017 | ;; |
edfaf76d | 21018 | no:yes:* ) |
c0d27fcc MR |
21019 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21020 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21021 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21022 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21023 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21024 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21025 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21026 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21027 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21028 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21029 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21030 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 21031 | |
19650fd6 | 21032 | ;; |
c0d27fcc | 21033 | esac |
ca81d7a0 JD |
21034 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21035 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21036 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21038 | else | |
edfaf76d | 21039 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21040 | fi |
ca81d7a0 JD |
21041 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21042 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21043 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21044 | |
21045 | fi | |
503d2be0 | 21046 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21047 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21048 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21049 | _ACEOF |
503d2be0 | 21050 | |
a21616bd | 21051 | fi |
c0d27fcc | 21052 | |
a21616bd KR |
21053 | done |
21054 | ||
21055 | fi | |
c0d27fcc | 21056 | |
a21616bd KR |
21057 | done |
21058 | ||
21059 | fi | |
c0d27fcc | 21060 | |
a21616bd KR |
21061 | done |
21062 | ||
21063 | fi | |
503d2be0 AS |
21064 | |
21065 | for ac_header in com_err.h | |
a21616bd | 21066 | do |
503d2be0 | 21067 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
21068 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21069 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21070 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21071 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 21072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21073 | fi |
ca81d7a0 JD |
21074 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21075 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21076 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 21077 | else |
c0d27fcc | 21078 | # Is the header compilable? |
ca81d7a0 JD |
21079 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21080 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21081 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21082 | /* confdefs.h. */ |
21083 | _ACEOF | |
21084 | cat confdefs.h >>conftest.$ac_ext | |
21085 | cat >>conftest.$ac_ext <<_ACEOF | |
21086 | /* end confdefs.h. */ | |
c0d27fcc MR |
21087 | $ac_includes_default |
21088 | #include <$ac_header> | |
21089 | _ACEOF | |
21090 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
21091 | if { (ac_try="$ac_compile" |
21092 | case "(($ac_try" in | |
21093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21094 | *) ac_try_echo=$ac_try;; | |
21095 | esac | |
21096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21097 | (eval "$ac_compile") 2>conftest.er1 | |
edfaf76d LK |
21098 | ac_status=$? |
21099 | grep -v '^ *+' conftest.er1 >conftest.err | |
21100 | rm -f conftest.er1 | |
21101 | cat conftest.err >&5 | |
21102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
21103 | (exit $ac_status); } && { |
21104 | test -z "$ac_c_werror_flag" || | |
21105 | test ! -s conftest.err | |
21106 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21107 | ac_header_compiler=yes |
21108 | else | |
21109 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21110 | sed 's/^/| /' conftest.$ac_ext >&5 |
21111 | ||
ca81d7a0 | 21112 | ac_header_compiler=no |
c0d27fcc | 21113 | fi |
ca81d7a0 JD |
21114 | |
21115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21116 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21117 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21118 | |
21119 | # Is the header present? | |
ca81d7a0 JD |
21120 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21121 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21122 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21123 | /* confdefs.h. */ |
21124 | _ACEOF | |
21125 | cat confdefs.h >>conftest.$ac_ext | |
21126 | cat >>conftest.$ac_ext <<_ACEOF | |
21127 | /* end confdefs.h. */ | |
503d2be0 AS |
21128 | #include <$ac_header> |
21129 | _ACEOF | |
ca81d7a0 JD |
21130 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21131 | case "(($ac_try" in | |
21132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21133 | *) ac_try_echo=$ac_try;; | |
21134 | esac | |
21135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21136 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21137 | ac_status=$? |
6bae0ccf | 21138 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21139 | rm -f conftest.er1 |
21140 | cat conftest.err >&5 | |
c0d27fcc | 21141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21142 | (exit $ac_status); } >/dev/null && { |
21143 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21144 | test ! -s conftest.err | |
21145 | }; then | |
c0d27fcc | 21146 | ac_header_preproc=yes |
503d2be0 AS |
21147 | else |
21148 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21149 | sed 's/^/| /' conftest.$ac_ext >&5 |
21150 | ||
c0d27fcc | 21151 | ac_header_preproc=no |
a21616bd | 21152 | fi |
ca81d7a0 | 21153 | |
503d2be0 | 21154 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
21155 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21156 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21157 | |
21158 | # So? What about this header? | |
edfaf76d LK |
21159 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21160 | yes:no: ) | |
c0d27fcc MR |
21161 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21162 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21163 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21164 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21165 | ac_header_preproc=yes | |
19650fd6 | 21166 | ;; |
edfaf76d | 21167 | no:yes:* ) |
c0d27fcc MR |
21168 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21169 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21170 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21171 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21172 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21173 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21174 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21175 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21176 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21177 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21178 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21179 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 21180 | |
19650fd6 | 21181 | ;; |
c0d27fcc | 21182 | esac |
ca81d7a0 JD |
21183 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21184 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21185 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21187 | else | |
edfaf76d | 21188 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21189 | fi |
ca81d7a0 JD |
21190 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21191 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21192 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21193 | |
21194 | fi | |
503d2be0 | 21195 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21196 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21197 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21198 | _ACEOF |
503d2be0 | 21199 | |
a21616bd | 21200 | fi |
c0d27fcc | 21201 | |
a21616bd KR |
21202 | done |
21203 | ||
21204 | fi | |
21205 | ||
ba4481b5 DL |
21206 | # Solaris requires -lintl if you want strerror (which calls dgettext) |
21207 | # to return localized messages. | |
503d2be0 | 21208 | |
ca81d7a0 JD |
21209 | { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 |
21210 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; } | |
503d2be0 AS |
21211 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then |
21212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 21213 | else |
503d2be0 | 21214 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 21215 | LIBS="-lintl $LIBS" |
503d2be0 | 21216 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21217 | /* confdefs.h. */ |
21218 | _ACEOF | |
21219 | cat confdefs.h >>conftest.$ac_ext | |
21220 | cat >>conftest.$ac_ext <<_ACEOF | |
21221 | /* end confdefs.h. */ | |
503d2be0 | 21222 | |
ca81d7a0 JD |
21223 | /* Override any GCC internal prototype to avoid an error. |
21224 | Use char because int might match the return type of a GCC | |
21225 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
21226 | #ifdef __cplusplus |
21227 | extern "C" | |
21228 | #endif | |
503d2be0 AS |
21229 | char dgettext (); |
21230 | int | |
21231 | main () | |
21232 | { | |
ca81d7a0 | 21233 | return dgettext (); |
503d2be0 AS |
21234 | ; |
21235 | return 0; | |
21236 | } | |
21237 | _ACEOF | |
21238 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
21239 | if { (ac_try="$ac_link" |
21240 | case "(($ac_try" in | |
21241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21242 | *) ac_try_echo=$ac_try;; | |
21243 | esac | |
21244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21245 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 21246 | ac_status=$? |
edfaf76d LK |
21247 | grep -v '^ *+' conftest.er1 >conftest.err |
21248 | rm -f conftest.er1 | |
21249 | cat conftest.err >&5 | |
c0d27fcc | 21250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21251 | (exit $ac_status); } && { |
21252 | test -z "$ac_c_werror_flag" || | |
21253 | test ! -s conftest.err | |
21254 | } && test -s conftest$ac_exeext && | |
21255 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
21256 | ac_cv_lib_intl_dgettext=yes |
21257 | else | |
21258 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21259 | sed 's/^/| /' conftest.$ac_ext >&5 |
21260 | ||
ca81d7a0 | 21261 | ac_cv_lib_intl_dgettext=no |
503d2be0 | 21262 | fi |
ca81d7a0 | 21263 | |
f053c89f | 21264 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 21265 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
21266 | LIBS=$ac_check_lib_save_LIBS |
21267 | fi | |
ca81d7a0 JD |
21268 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 |
21269 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; } | |
503d2be0 | 21270 | if test $ac_cv_lib_intl_dgettext = yes; then |
c0d27fcc | 21271 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21272 | #define HAVE_LIBINTL 1 |
c0d27fcc | 21273 | _ACEOF |
ba4481b5 DL |
21274 | |
21275 | LIBS="-lintl $LIBS" | |
21276 | ||
ba4481b5 DL |
21277 | fi |
21278 | ||
c0d27fcc | 21279 | |
ca81d7a0 JD |
21280 | { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 |
21281 | echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; } | |
503d2be0 AS |
21282 | if test "${emacs_cv_localtime_cache+set}" = set; then |
21283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
21284 | else |
21285 | if test x$ac_cv_func_tzset = xyes; then | |
21286 | if test "$cross_compiling" = yes; then | |
21287 | # If we have tzset, assume the worst when cross-compiling. | |
21288 | emacs_cv_localtime_cache=yes | |
21289 | else | |
503d2be0 | 21290 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21291 | /* confdefs.h. */ |
21292 | _ACEOF | |
21293 | cat confdefs.h >>conftest.$ac_ext | |
21294 | cat >>conftest.$ac_ext <<_ACEOF | |
21295 | /* end confdefs.h. */ | |
ba4481b5 | 21296 | #include <time.h> |
ba4481b5 DL |
21297 | extern char **environ; |
21298 | unset_TZ () | |
21299 | { | |
21300 | char **from, **to; | |
21301 | for (to = from = environ; (*to = *from); from++) | |
21302 | if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
21303 | to++; | |
21304 | } | |
21305 | char TZ_GMT0[] = "TZ=GMT0"; | |
21306 | char TZ_PST8[] = "TZ=PST8"; | |
21307 | main() | |
21308 | { | |
21309 | time_t now = time ((time_t *) 0); | |
21310 | int hour_GMT0, hour_unset; | |
21311 | if (putenv (TZ_GMT0) != 0) | |
21312 | exit (1); | |
21313 | hour_GMT0 = localtime (&now)->tm_hour; | |
21314 | unset_TZ (); | |
21315 | hour_unset = localtime (&now)->tm_hour; | |
21316 | if (putenv (TZ_PST8) != 0) | |
21317 | exit (1); | |
21318 | if (localtime (&now)->tm_hour == hour_GMT0) | |
21319 | exit (1); | |
21320 | unset_TZ (); | |
21321 | if (localtime (&now)->tm_hour != hour_unset) | |
21322 | exit (1); | |
21323 | exit (0); | |
21324 | } | |
503d2be0 AS |
21325 | _ACEOF |
21326 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
21327 | if { (ac_try="$ac_link" |
21328 | case "(($ac_try" in | |
21329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21330 | *) ac_try_echo=$ac_try;; | |
21331 | esac | |
21332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21333 | (eval "$ac_link") 2>&5 | |
503d2be0 | 21334 | ac_status=$? |
c0d27fcc | 21335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 21336 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
21337 | { (case "(($ac_try" in |
21338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21339 | *) ac_try_echo=$ac_try;; | |
21340 | esac | |
21341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21342 | (eval "$ac_try") 2>&5 | |
503d2be0 | 21343 | ac_status=$? |
c0d27fcc | 21344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 21345 | (exit $ac_status); }; }; then |
ba4481b5 DL |
21346 | emacs_cv_localtime_cache=no |
21347 | else | |
503d2be0 AS |
21348 | echo "$as_me: program exited with status $ac_status" >&5 |
21349 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21350 | sed 's/^/| /' conftest.$ac_ext >&5 |
21351 | ||
c0d27fcc | 21352 | ( exit $ac_status ) |
503d2be0 | 21353 | emacs_cv_localtime_cache=yes |
ba4481b5 | 21354 | fi |
ca81d7a0 | 21355 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 21356 | fi |
ca81d7a0 JD |
21357 | |
21358 | ||
ba4481b5 DL |
21359 | else |
21360 | # If we lack tzset, report that localtime does not cache TZ, | |
21361 | # since we can't invalidate the cache if we don't have tzset. | |
21362 | emacs_cv_localtime_cache=no | |
21363 | fi | |
21364 | fi | |
ca81d7a0 JD |
21365 | { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 |
21366 | echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; } | |
ba4481b5 | 21367 | if test $emacs_cv_localtime_cache = yes; then |
b936fae4 | 21368 | |
c0d27fcc | 21369 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 21370 | #define LOCALTIME_CACHE 1 |
c0d27fcc | 21371 | _ACEOF |
ba4481b5 DL |
21372 | |
21373 | fi | |
21374 | ||
21375 | if test "x$HAVE_TIMEVAL" = xyes; then | |
503d2be0 AS |
21376 | |
21377 | for ac_func in gettimeofday | |
48d4b120 | 21378 | do |
503d2be0 | 21379 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ca81d7a0 JD |
21380 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
21381 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
21382 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 21383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
48d4b120 | 21384 | else |
503d2be0 | 21385 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21386 | /* confdefs.h. */ |
21387 | _ACEOF | |
21388 | cat confdefs.h >>conftest.$ac_ext | |
21389 | cat >>conftest.$ac_ext <<_ACEOF | |
21390 | /* end confdefs.h. */ | |
edfaf76d LK |
21391 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
21392 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21393 | #define $ac_func innocuous_$ac_func | |
21394 | ||
48d4b120 | 21395 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
21396 | which can conflict with char $ac_func (); below. |
21397 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21398 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 21399 | |
19650fd6 AS |
21400 | #ifdef __STDC__ |
21401 | # include <limits.h> | |
21402 | #else | |
21403 | # include <assert.h> | |
21404 | #endif | |
edfaf76d LK |
21405 | |
21406 | #undef $ac_func | |
21407 | ||
ca81d7a0 JD |
21408 | /* Override any GCC internal prototype to avoid an error. |
21409 | Use char because int might match the return type of a GCC | |
21410 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
21411 | #ifdef __cplusplus |
21412 | extern "C" | |
21413 | #endif | |
503d2be0 | 21414 | char $ac_func (); |
48d4b120 DL |
21415 | /* The GNU C library defines this for functions which it implements |
21416 | to always fail with ENOSYS. Some functions are actually named | |
21417 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 21418 | #if defined __stub_$ac_func || defined __stub___$ac_func |
48d4b120 | 21419 | choke me |
cd958eb3 MB |
21420 | #endif |
21421 | ||
19650fd6 AS |
21422 | int |
21423 | main () | |
21424 | { | |
ca81d7a0 | 21425 | return $ac_func (); |
503d2be0 AS |
21426 | ; |
21427 | return 0; | |
21428 | } | |
21429 | _ACEOF | |
21430 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
21431 | if { (ac_try="$ac_link" |
21432 | case "(($ac_try" in | |
21433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21434 | *) ac_try_echo=$ac_try;; | |
21435 | esac | |
21436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21437 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 21438 | ac_status=$? |
edfaf76d LK |
21439 | grep -v '^ *+' conftest.er1 >conftest.err |
21440 | rm -f conftest.er1 | |
21441 | cat conftest.err >&5 | |
c0d27fcc | 21442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21443 | (exit $ac_status); } && { |
21444 | test -z "$ac_c_werror_flag" || | |
21445 | test ! -s conftest.err | |
21446 | } && test -s conftest$ac_exeext && | |
21447 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
21448 | eval "$as_ac_var=yes" |
21449 | else | |
21450 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21451 | sed 's/^/| /' conftest.$ac_ext >&5 |
21452 | ||
ca81d7a0 | 21453 | eval "$as_ac_var=no" |
503d2be0 | 21454 | fi |
ca81d7a0 | 21455 | |
f053c89f | 21456 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 21457 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 21458 | fi |
ca81d7a0 JD |
21459 | ac_res=`eval echo '${'$as_ac_var'}'` |
21460 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21461 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 21462 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 21463 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21464 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 21465 | _ACEOF |
48d4b120 | 21466 | |
48d4b120 DL |
21467 | fi |
21468 | done | |
21469 | ||
b936fae4 | 21470 | if test $ac_cv_func_gettimeofday = yes; then |
ca81d7a0 JD |
21471 | { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 |
21472 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; } | |
503d2be0 AS |
21473 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then |
21474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 21475 | else |
503d2be0 | 21476 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21477 | /* confdefs.h. */ |
21478 | _ACEOF | |
21479 | cat confdefs.h >>conftest.$ac_ext | |
21480 | cat >>conftest.$ac_ext <<_ACEOF | |
21481 | /* end confdefs.h. */ | |
ba4481b5 | 21482 | |
a3f08d9e DL |
21483 | #ifdef TIME_WITH_SYS_TIME |
21484 | #include <sys/time.h> | |
21485 | #include <time.h> | |
21486 | #else | |
21487 | #ifdef HAVE_SYS_TIME_H | |
21488 | #include <sys/time.h> | |
21489 | #else | |
21490 | #include <time.h> | |
21491 | #endif | |
21492 | #endif | |
503d2be0 AS |
21493 | int |
21494 | main () | |
21495 | { | |
a3f08d9e | 21496 | struct timeval time; |
b936fae4 | 21497 | gettimeofday (&time, 0); |
503d2be0 AS |
21498 | ; |
21499 | return 0; | |
21500 | } | |
21501 | _ACEOF | |
21502 | rm -f conftest.$ac_objext | |
f053c89f CY |
21503 | if { (ac_try="$ac_compile" |
21504 | case "(($ac_try" in | |
ca81d7a0 JD |
21505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21506 | *) ac_try_echo=$ac_try;; | |
21507 | esac | |
21508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
f053c89f | 21509 | (eval "$ac_compile") 2>conftest.er1 |
503d2be0 | 21510 | ac_status=$? |
f053c89f CY |
21511 | grep -v '^ *+' conftest.er1 >conftest.err |
21512 | rm -f conftest.er1 | |
21513 | cat conftest.err >&5 | |
c0d27fcc | 21514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21515 | (exit $ac_status); } && { |
21516 | test -z "$ac_c_werror_flag" || | |
21517 | test ! -s conftest.err | |
21518 | } && test -s conftest.$ac_objext; then | |
ba4481b5 DL |
21519 | emacs_cv_gettimeofday_two_arguments=yes |
21520 | else | |
503d2be0 | 21521 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
21522 | sed 's/^/| /' conftest.$ac_ext >&5 |
21523 | ||
ca81d7a0 | 21524 | emacs_cv_gettimeofday_two_arguments=no |
ba4481b5 | 21525 | fi |
ca81d7a0 JD |
21526 | |
21527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 21528 | fi |
ca81d7a0 JD |
21529 | { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
21530 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; } | |
b936fae4 AS |
21531 | if test $emacs_cv_gettimeofday_two_arguments = no; then |
21532 | ||
c0d27fcc | 21533 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 21534 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
c0d27fcc | 21535 | _ACEOF |
ba4481b5 | 21536 | |
b936fae4 | 21537 | fi |
ba4481b5 DL |
21538 | fi |
21539 | fi | |
21540 | ||
21541 | ok_so_far=yes | |
ca81d7a0 JD |
21542 | { echo "$as_me:$LINENO: checking for socket" >&5 |
21543 | echo $ECHO_N "checking for socket... $ECHO_C" >&6; } | |
503d2be0 AS |
21544 | if test "${ac_cv_func_socket+set}" = set; then |
21545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 21546 | else |
503d2be0 | 21547 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21548 | /* confdefs.h. */ |
21549 | _ACEOF | |
21550 | cat confdefs.h >>conftest.$ac_ext | |
21551 | cat >>conftest.$ac_ext <<_ACEOF | |
21552 | /* end confdefs.h. */ | |
edfaf76d LK |
21553 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
21554 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21555 | #define socket innocuous_socket | |
21556 | ||
ba4481b5 | 21557 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
21558 | which can conflict with char socket (); below. |
21559 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21560 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 21561 | |
19650fd6 AS |
21562 | #ifdef __STDC__ |
21563 | # include <limits.h> | |
21564 | #else | |
21565 | # include <assert.h> | |
21566 | #endif | |
edfaf76d LK |
21567 | |
21568 | #undef socket | |
21569 | ||
ca81d7a0 JD |
21570 | /* Override any GCC internal prototype to avoid an error. |
21571 | Use char because int might match the return type of a GCC | |
21572 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
21573 | #ifdef __cplusplus |
21574 | extern "C" | |
21575 | #endif | |
503d2be0 | 21576 | char socket (); |
ba4481b5 DL |
21577 | /* The GNU C library defines this for functions which it implements |
21578 | to always fail with ENOSYS. Some functions are actually named | |
21579 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 21580 | #if defined __stub_socket || defined __stub___socket |
ba4481b5 | 21581 | choke me |
cd958eb3 MB |
21582 | #endif |
21583 | ||
19650fd6 AS |
21584 | int |
21585 | main () | |
21586 | { | |
ca81d7a0 | 21587 | return socket (); |
503d2be0 AS |
21588 | ; |
21589 | return 0; | |
21590 | } | |
21591 | _ACEOF | |
21592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
21593 | if { (ac_try="$ac_link" |
21594 | case "(($ac_try" in | |
21595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21596 | *) ac_try_echo=$ac_try;; | |
21597 | esac | |
21598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21599 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 21600 | ac_status=$? |
edfaf76d LK |
21601 | grep -v '^ *+' conftest.er1 >conftest.err |
21602 | rm -f conftest.er1 | |
21603 | cat conftest.err >&5 | |
c0d27fcc | 21604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21605 | (exit $ac_status); } && { |
21606 | test -z "$ac_c_werror_flag" || | |
21607 | test ! -s conftest.err | |
21608 | } && test -s conftest$ac_exeext && | |
21609 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
21610 | ac_cv_func_socket=yes |
21611 | else | |
21612 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21613 | sed 's/^/| /' conftest.$ac_ext >&5 |
21614 | ||
ca81d7a0 | 21615 | ac_cv_func_socket=no |
503d2be0 | 21616 | fi |
ca81d7a0 | 21617 | |
f053c89f | 21618 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 21619 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 21620 | fi |
ca81d7a0 JD |
21621 | { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
21622 | echo "${ECHO_T}$ac_cv_func_socket" >&6; } | |
503d2be0 | 21623 | if test $ac_cv_func_socket = yes; then |
ba4481b5 DL |
21624 | : |
21625 | else | |
503d2be0 | 21626 | ok_so_far=no |
ba4481b5 DL |
21627 | fi |
21628 | ||
21629 | if test $ok_so_far = yes; then | |
c0d27fcc | 21630 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
ca81d7a0 JD |
21631 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
21632 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } | |
503d2be0 AS |
21633 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
21634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 21635 | fi |
ca81d7a0 JD |
21636 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
21637 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } | |
98418dba | 21638 | else |
c0d27fcc | 21639 | # Is the header compilable? |
ca81d7a0 JD |
21640 | { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
21641 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 21642 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21643 | /* confdefs.h. */ |
21644 | _ACEOF | |
21645 | cat confdefs.h >>conftest.$ac_ext | |
21646 | cat >>conftest.$ac_ext <<_ACEOF | |
21647 | /* end confdefs.h. */ | |
c0d27fcc MR |
21648 | $ac_includes_default |
21649 | #include <netinet/in.h> | |
21650 | _ACEOF | |
21651 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
21652 | if { (ac_try="$ac_compile" |
21653 | case "(($ac_try" in | |
21654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21655 | *) ac_try_echo=$ac_try;; | |
21656 | esac | |
21657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21658 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 21659 | ac_status=$? |
edfaf76d LK |
21660 | grep -v '^ *+' conftest.er1 >conftest.err |
21661 | rm -f conftest.er1 | |
21662 | cat conftest.err >&5 | |
c0d27fcc | 21663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21664 | (exit $ac_status); } && { |
21665 | test -z "$ac_c_werror_flag" || | |
21666 | test ! -s conftest.err | |
21667 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21668 | ac_header_compiler=yes |
21669 | else | |
21670 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21671 | sed 's/^/| /' conftest.$ac_ext >&5 |
21672 | ||
ca81d7a0 | 21673 | ac_header_compiler=no |
c0d27fcc | 21674 | fi |
ca81d7a0 JD |
21675 | |
21676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21677 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21678 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21679 | |
21680 | # Is the header present? | |
ca81d7a0 JD |
21681 | { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
21682 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 21683 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21684 | /* confdefs.h. */ |
21685 | _ACEOF | |
21686 | cat confdefs.h >>conftest.$ac_ext | |
21687 | cat >>conftest.$ac_ext <<_ACEOF | |
21688 | /* end confdefs.h. */ | |
ba4481b5 | 21689 | #include <netinet/in.h> |
503d2be0 | 21690 | _ACEOF |
ca81d7a0 JD |
21691 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21692 | case "(($ac_try" in | |
21693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21694 | *) ac_try_echo=$ac_try;; | |
21695 | esac | |
21696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21697 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21698 | ac_status=$? |
6bae0ccf | 21699 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21700 | rm -f conftest.er1 |
21701 | cat conftest.err >&5 | |
c0d27fcc | 21702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21703 | (exit $ac_status); } >/dev/null && { |
21704 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21705 | test ! -s conftest.err | |
21706 | }; then | |
c0d27fcc | 21707 | ac_header_preproc=yes |
ba4481b5 | 21708 | else |
503d2be0 | 21709 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
21710 | sed 's/^/| /' conftest.$ac_ext >&5 |
21711 | ||
c0d27fcc | 21712 | ac_header_preproc=no |
ba4481b5 | 21713 | fi |
ca81d7a0 | 21714 | |
503d2be0 | 21715 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
21716 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21717 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21718 | |
21719 | # So? What about this header? | |
edfaf76d LK |
21720 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21721 | yes:no: ) | |
c0d27fcc MR |
21722 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21723 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21724 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
21725 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} | |
21726 | ac_header_preproc=yes | |
19650fd6 | 21727 | ;; |
edfaf76d | 21728 | no:yes:* ) |
c0d27fcc MR |
21729 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
21730 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21731 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
21732 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} | |
21733 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 | |
21734 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} | |
21735 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21736 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21737 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21738 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21739 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
21740 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 21741 | |
19650fd6 | 21742 | ;; |
c0d27fcc | 21743 | esac |
ca81d7a0 JD |
21744 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
21745 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
21746 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
21747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21748 | else | |
21749 | ac_cv_header_netinet_in_h=$ac_header_preproc | |
ba4481b5 | 21750 | fi |
ca81d7a0 JD |
21751 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
21752 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } | |
c0d27fcc MR |
21753 | |
21754 | fi | |
503d2be0 | 21755 | if test $ac_cv_header_netinet_in_h = yes; then |
ba4481b5 DL |
21756 | : |
21757 | else | |
503d2be0 | 21758 | ok_so_far=no |
ba4481b5 DL |
21759 | fi |
21760 | ||
c0d27fcc | 21761 | |
ba4481b5 DL |
21762 | fi |
21763 | if test $ok_so_far = yes; then | |
c0d27fcc | 21764 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
ca81d7a0 JD |
21765 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
21766 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } | |
503d2be0 AS |
21767 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
21768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 21769 | fi |
ca81d7a0 JD |
21770 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
21771 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } | |
98418dba | 21772 | else |
c0d27fcc | 21773 | # Is the header compilable? |
ca81d7a0 JD |
21774 | { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
21775 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 21776 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21777 | /* confdefs.h. */ |
21778 | _ACEOF | |
21779 | cat confdefs.h >>conftest.$ac_ext | |
21780 | cat >>conftest.$ac_ext <<_ACEOF | |
21781 | /* end confdefs.h. */ | |
c0d27fcc MR |
21782 | $ac_includes_default |
21783 | #include <arpa/inet.h> | |
21784 | _ACEOF | |
21785 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
21786 | if { (ac_try="$ac_compile" |
21787 | case "(($ac_try" in | |
21788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21789 | *) ac_try_echo=$ac_try;; | |
21790 | esac | |
21791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21792 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 21793 | ac_status=$? |
edfaf76d LK |
21794 | grep -v '^ *+' conftest.er1 >conftest.err |
21795 | rm -f conftest.er1 | |
21796 | cat conftest.err >&5 | |
c0d27fcc | 21797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21798 | (exit $ac_status); } && { |
21799 | test -z "$ac_c_werror_flag" || | |
21800 | test ! -s conftest.err | |
21801 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21802 | ac_header_compiler=yes |
21803 | else | |
21804 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21805 | sed 's/^/| /' conftest.$ac_ext >&5 |
21806 | ||
ca81d7a0 | 21807 | ac_header_compiler=no |
c0d27fcc | 21808 | fi |
ca81d7a0 JD |
21809 | |
21810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21811 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21812 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21813 | |
21814 | # Is the header present? | |
ca81d7a0 JD |
21815 | { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
21816 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 21817 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21818 | /* confdefs.h. */ |
21819 | _ACEOF | |
21820 | cat confdefs.h >>conftest.$ac_ext | |
21821 | cat >>conftest.$ac_ext <<_ACEOF | |
21822 | /* end confdefs.h. */ | |
ba4481b5 | 21823 | #include <arpa/inet.h> |
503d2be0 | 21824 | _ACEOF |
ca81d7a0 JD |
21825 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21826 | case "(($ac_try" in | |
21827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21828 | *) ac_try_echo=$ac_try;; | |
21829 | esac | |
21830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21831 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21832 | ac_status=$? |
6bae0ccf | 21833 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21834 | rm -f conftest.er1 |
21835 | cat conftest.err >&5 | |
c0d27fcc | 21836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21837 | (exit $ac_status); } >/dev/null && { |
21838 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21839 | test ! -s conftest.err | |
21840 | }; then | |
c0d27fcc | 21841 | ac_header_preproc=yes |
ba4481b5 | 21842 | else |
503d2be0 | 21843 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
21844 | sed 's/^/| /' conftest.$ac_ext >&5 |
21845 | ||
c0d27fcc | 21846 | ac_header_preproc=no |
ba4481b5 | 21847 | fi |
ca81d7a0 | 21848 | |
503d2be0 | 21849 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
21850 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21851 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21852 | |
21853 | # So? What about this header? | |
edfaf76d LK |
21854 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21855 | yes:no: ) | |
c0d27fcc MR |
21856 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21857 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21858 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
21859 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} | |
21860 | ac_header_preproc=yes | |
19650fd6 | 21861 | ;; |
edfaf76d | 21862 | no:yes:* ) |
c0d27fcc MR |
21863 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
21864 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21865 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
21866 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} | |
21867 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 | |
21868 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} | |
21869 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21870 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21871 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21872 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21873 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
21874 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 21875 | |
19650fd6 | 21876 | ;; |
c0d27fcc | 21877 | esac |
ca81d7a0 JD |
21878 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
21879 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
21880 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
21881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21882 | else | |
21883 | ac_cv_header_arpa_inet_h=$ac_header_preproc | |
ba4481b5 | 21884 | fi |
ca81d7a0 JD |
21885 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
21886 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } | |
c0d27fcc MR |
21887 | |
21888 | fi | |
503d2be0 | 21889 | if test $ac_cv_header_arpa_inet_h = yes; then |
ba4481b5 DL |
21890 | : |
21891 | else | |
503d2be0 | 21892 | ok_so_far=no |
ba4481b5 DL |
21893 | fi |
21894 | ||
c0d27fcc | 21895 | |
ba4481b5 DL |
21896 | fi |
21897 | if test $ok_so_far = yes; then | |
b936fae4 | 21898 | |
c0d27fcc | 21899 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 21900 | #define HAVE_INET_SOCKETS 1 |
c0d27fcc | 21901 | _ACEOF |
ba4481b5 DL |
21902 | |
21903 | fi | |
21904 | ||
2d2b6695 | 21905 | |
7862d3a8 | 21906 | for ac_header in sys/ioctl.h |
2d2b6695 KS |
21907 | do |
21908 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
21909 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21910 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21911 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21912 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
2d2b6695 KS |
21913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21914 | fi | |
ca81d7a0 JD |
21915 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21916 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21917 | echo "${ECHO_T}$ac_res" >&6; } | |
2d2b6695 KS |
21918 | else |
21919 | # Is the header compilable? | |
ca81d7a0 JD |
21920 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21921 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
2d2b6695 | 21922 | cat >conftest.$ac_ext <<_ACEOF |
2d2b6695 KS |
21923 | /* confdefs.h. */ |
21924 | _ACEOF | |
21925 | cat confdefs.h >>conftest.$ac_ext | |
21926 | cat >>conftest.$ac_ext <<_ACEOF | |
21927 | /* end confdefs.h. */ | |
21928 | $ac_includes_default | |
21929 | #include <$ac_header> | |
21930 | _ACEOF | |
21931 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
21932 | if { (ac_try="$ac_compile" |
21933 | case "(($ac_try" in | |
21934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21935 | *) ac_try_echo=$ac_try;; | |
21936 | esac | |
21937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21938 | (eval "$ac_compile") 2>conftest.er1 | |
2d2b6695 | 21939 | ac_status=$? |
edfaf76d LK |
21940 | grep -v '^ *+' conftest.er1 >conftest.err |
21941 | rm -f conftest.er1 | |
21942 | cat conftest.err >&5 | |
2d2b6695 | 21943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21944 | (exit $ac_status); } && { |
21945 | test -z "$ac_c_werror_flag" || | |
21946 | test ! -s conftest.err | |
21947 | } && test -s conftest.$ac_objext; then | |
2d2b6695 KS |
21948 | ac_header_compiler=yes |
21949 | else | |
21950 | echo "$as_me: failed program was:" >&5 | |
21951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21952 | ||
ca81d7a0 | 21953 | ac_header_compiler=no |
2d2b6695 | 21954 | fi |
ca81d7a0 JD |
21955 | |
21956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21957 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21958 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
2d2b6695 KS |
21959 | |
21960 | # Is the header present? | |
ca81d7a0 JD |
21961 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21962 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
2d2b6695 | 21963 | cat >conftest.$ac_ext <<_ACEOF |
2d2b6695 KS |
21964 | /* confdefs.h. */ |
21965 | _ACEOF | |
21966 | cat confdefs.h >>conftest.$ac_ext | |
21967 | cat >>conftest.$ac_ext <<_ACEOF | |
21968 | /* end confdefs.h. */ | |
21969 | #include <$ac_header> | |
21970 | _ACEOF | |
ca81d7a0 JD |
21971 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21972 | case "(($ac_try" in | |
21973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21974 | *) ac_try_echo=$ac_try;; | |
21975 | esac | |
21976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21977 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
2d2b6695 KS |
21978 | ac_status=$? |
21979 | grep -v '^ *+' conftest.er1 >conftest.err | |
21980 | rm -f conftest.er1 | |
21981 | cat conftest.err >&5 | |
21982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
21983 | (exit $ac_status); } >/dev/null && { |
21984 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21985 | test ! -s conftest.err | |
21986 | }; then | |
2d2b6695 KS |
21987 | ac_header_preproc=yes |
21988 | else | |
21989 | echo "$as_me: failed program was:" >&5 | |
21990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21991 | ||
21992 | ac_header_preproc=no | |
21993 | fi | |
ca81d7a0 | 21994 | |
2d2b6695 | 21995 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
21996 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21997 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
2d2b6695 KS |
21998 | |
21999 | # So? What about this header? | |
edfaf76d LK |
22000 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22001 | yes:no: ) | |
2d2b6695 KS |
22002 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22003 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
22004 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22005 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22006 | ac_header_preproc=yes | |
2d2b6695 | 22007 | ;; |
edfaf76d | 22008 | no:yes:* ) |
2d2b6695 KS |
22009 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22010 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
22011 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22012 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22013 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22014 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22015 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22016 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
2d2b6695 KS |
22017 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22018 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
22019 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22020 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 22021 | |
2d2b6695 KS |
22022 | ;; |
22023 | esac | |
ca81d7a0 JD |
22024 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22025 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
22026 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
2d2b6695 KS |
22027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22028 | else | |
edfaf76d | 22029 | eval "$as_ac_Header=\$ac_header_preproc" |
2d2b6695 | 22030 | fi |
ca81d7a0 JD |
22031 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22032 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22033 | echo "${ECHO_T}$ac_res" >&6; } | |
2d2b6695 KS |
22034 | |
22035 | fi | |
22036 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22037 | cat >>confdefs.h <<_ACEOF | |
22038 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22039 | _ACEOF | |
22040 | ||
22041 | fi | |
22042 | ||
22043 | done | |
22044 | ||
22045 | ||
ba4481b5 | 22046 | if test -f /usr/lpp/X11/bin/smt.exp; then |
b936fae4 | 22047 | |
c0d27fcc | 22048 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 22049 | #define HAVE_AIX_SMT_EXP 1 |
c0d27fcc | 22050 | _ACEOF |
ba4481b5 DL |
22051 | |
22052 | fi | |
22053 | ||
ca81d7a0 JD |
22054 | { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 |
22055 | echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; } | |
3d9fec71 | 22056 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
ca81d7a0 JD |
22057 | { echo "$as_me:$LINENO: result: yes" >&5 |
22058 | echo "${ECHO_T}yes" >&6; } | |
b936fae4 | 22059 | |
c0d27fcc | 22060 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 22061 | #define HAVE_DEV_PTMX 1 |
c0d27fcc | 22062 | _ACEOF |
3d9fec71 DL |
22063 | |
22064 | else | |
ca81d7a0 JD |
22065 | { echo "$as_me:$LINENO: result: no" >&5 |
22066 | echo "${ECHO_T}no" >&6; } | |
3d9fec71 DL |
22067 | fi |
22068 | ||
ca81d7a0 JD |
22069 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
22070 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
503d2be0 AS |
22071 | if test "${ac_cv_type_pid_t+set}" = set; then |
22072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
647847ea | 22073 | else |
503d2be0 | 22074 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22075 | /* confdefs.h. */ |
22076 | _ACEOF | |
22077 | cat confdefs.h >>conftest.$ac_ext | |
22078 | cat >>conftest.$ac_ext <<_ACEOF | |
22079 | /* end confdefs.h. */ | |
503d2be0 | 22080 | $ac_includes_default |
ca81d7a0 | 22081 | typedef pid_t ac__type_new_; |
503d2be0 AS |
22082 | int |
22083 | main () | |
22084 | { | |
ca81d7a0 | 22085 | if ((ac__type_new_ *) 0) |
503d2be0 | 22086 | return 0; |
ca81d7a0 | 22087 | if (sizeof (ac__type_new_)) |
503d2be0 AS |
22088 | return 0; |
22089 | ; | |
22090 | return 0; | |
22091 | } | |
22092 | _ACEOF | |
22093 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
22094 | if { (ac_try="$ac_compile" |
22095 | case "(($ac_try" in | |
22096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22097 | *) ac_try_echo=$ac_try;; | |
22098 | esac | |
22099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22100 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 22101 | ac_status=$? |
edfaf76d LK |
22102 | grep -v '^ *+' conftest.er1 >conftest.err |
22103 | rm -f conftest.er1 | |
22104 | cat conftest.err >&5 | |
c0d27fcc | 22105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22106 | (exit $ac_status); } && { |
22107 | test -z "$ac_c_werror_flag" || | |
22108 | test ! -s conftest.err | |
22109 | } && test -s conftest.$ac_objext; then | |
647847ea DL |
22110 | ac_cv_type_pid_t=yes |
22111 | else | |
503d2be0 | 22112 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
22113 | sed 's/^/| /' conftest.$ac_ext >&5 |
22114 | ||
ca81d7a0 | 22115 | ac_cv_type_pid_t=no |
647847ea | 22116 | fi |
ca81d7a0 JD |
22117 | |
22118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
647847ea | 22119 | fi |
ca81d7a0 JD |
22120 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
22121 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
503d2be0 AS |
22122 | if test $ac_cv_type_pid_t = yes; then |
22123 | : | |
22124 | else | |
22125 | ||
c0d27fcc | 22126 | cat >>confdefs.h <<_ACEOF |
647847ea | 22127 | #define pid_t int |
c0d27fcc | 22128 | _ACEOF |
647847ea DL |
22129 | |
22130 | fi | |
22131 | ||
c0d27fcc | 22132 | |
ca81d7a0 | 22133 | for ac_header in vfork.h |
503d2be0 AS |
22134 | do |
22135 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
22136 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
22137 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22138 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
22139 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 22140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 22141 | fi |
ca81d7a0 JD |
22142 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22143 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22144 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 22145 | else |
c0d27fcc | 22146 | # Is the header compilable? |
ca81d7a0 JD |
22147 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
22148 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 22149 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22150 | /* confdefs.h. */ |
22151 | _ACEOF | |
22152 | cat confdefs.h >>conftest.$ac_ext | |
22153 | cat >>conftest.$ac_ext <<_ACEOF | |
22154 | /* end confdefs.h. */ | |
c0d27fcc MR |
22155 | $ac_includes_default |
22156 | #include <$ac_header> | |
22157 | _ACEOF | |
22158 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
22159 | if { (ac_try="$ac_compile" |
22160 | case "(($ac_try" in | |
22161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22162 | *) ac_try_echo=$ac_try;; | |
22163 | esac | |
22164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22165 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 22166 | ac_status=$? |
edfaf76d LK |
22167 | grep -v '^ *+' conftest.er1 >conftest.err |
22168 | rm -f conftest.er1 | |
22169 | cat conftest.err >&5 | |
c0d27fcc | 22170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22171 | (exit $ac_status); } && { |
22172 | test -z "$ac_c_werror_flag" || | |
22173 | test ! -s conftest.err | |
22174 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
22175 | ac_header_compiler=yes |
22176 | else | |
22177 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22178 | sed 's/^/| /' conftest.$ac_ext >&5 |
22179 | ||
ca81d7a0 | 22180 | ac_header_compiler=no |
c0d27fcc | 22181 | fi |
ca81d7a0 JD |
22182 | |
22183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22184 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22185 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
22186 | |
22187 | # Is the header present? | |
ca81d7a0 JD |
22188 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
22189 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 22190 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22191 | /* confdefs.h. */ |
22192 | _ACEOF | |
22193 | cat confdefs.h >>conftest.$ac_ext | |
22194 | cat >>conftest.$ac_ext <<_ACEOF | |
22195 | /* end confdefs.h. */ | |
503d2be0 AS |
22196 | #include <$ac_header> |
22197 | _ACEOF | |
ca81d7a0 JD |
22198 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22199 | case "(($ac_try" in | |
22200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22201 | *) ac_try_echo=$ac_try;; | |
22202 | esac | |
22203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22204 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 22205 | ac_status=$? |
6bae0ccf | 22206 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
22207 | rm -f conftest.er1 |
22208 | cat conftest.err >&5 | |
c0d27fcc | 22209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22210 | (exit $ac_status); } >/dev/null && { |
22211 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22212 | test ! -s conftest.err | |
22213 | }; then | |
c0d27fcc | 22214 | ac_header_preproc=yes |
647847ea | 22215 | else |
503d2be0 | 22216 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
22217 | sed 's/^/| /' conftest.$ac_ext >&5 |
22218 | ||
c0d27fcc | 22219 | ac_header_preproc=no |
647847ea | 22220 | fi |
ca81d7a0 | 22221 | |
503d2be0 | 22222 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
22223 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22224 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
22225 | |
22226 | # So? What about this header? | |
edfaf76d LK |
22227 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22228 | yes:no: ) | |
c0d27fcc MR |
22229 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22230 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
22231 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22232 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22233 | ac_header_preproc=yes | |
19650fd6 | 22234 | ;; |
edfaf76d | 22235 | no:yes:* ) |
c0d27fcc MR |
22236 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22237 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
22238 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22239 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22240 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22241 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22242 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22243 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 22244 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 22245 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
22246 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22247 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 22248 | |
19650fd6 | 22249 | ;; |
c0d27fcc | 22250 | esac |
ca81d7a0 JD |
22251 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22252 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
22253 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
22254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22255 | else | |
edfaf76d | 22256 | eval "$as_ac_Header=\$ac_header_preproc" |
647847ea | 22257 | fi |
ca81d7a0 JD |
22258 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22259 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22260 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
22261 | |
22262 | fi | |
503d2be0 | 22263 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 22264 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 22265 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 22266 | _ACEOF |
647847ea | 22267 | |
73b77ee5 | 22268 | fi |
c0d27fcc | 22269 | |
503d2be0 | 22270 | done |
73b77ee5 | 22271 | |
c0d27fcc MR |
22272 | |
22273 | ||
503d2be0 AS |
22274 | for ac_func in fork vfork |
22275 | do | |
22276 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
22277 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22278 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
22279 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 22280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fa0b693c | 22281 | else |
503d2be0 | 22282 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22283 | /* confdefs.h. */ |
22284 | _ACEOF | |
22285 | cat confdefs.h >>conftest.$ac_ext | |
22286 | cat >>conftest.$ac_ext <<_ACEOF | |
22287 | /* end confdefs.h. */ | |
edfaf76d LK |
22288 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22289 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22290 | #define $ac_func innocuous_$ac_func | |
22291 | ||
fa0b693c | 22292 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
22293 | which can conflict with char $ac_func (); below. |
22294 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22295 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 22296 | |
19650fd6 AS |
22297 | #ifdef __STDC__ |
22298 | # include <limits.h> | |
22299 | #else | |
22300 | # include <assert.h> | |
22301 | #endif | |
edfaf76d LK |
22302 | |
22303 | #undef $ac_func | |
22304 | ||
ca81d7a0 JD |
22305 | /* Override any GCC internal prototype to avoid an error. |
22306 | Use char because int might match the return type of a GCC | |
22307 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
22308 | #ifdef __cplusplus |
22309 | extern "C" | |
22310 | #endif | |
503d2be0 | 22311 | char $ac_func (); |
fa0b693c GM |
22312 | /* The GNU C library defines this for functions which it implements |
22313 | to always fail with ENOSYS. Some functions are actually named | |
22314 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 22315 | #if defined __stub_$ac_func || defined __stub___$ac_func |
fa0b693c | 22316 | choke me |
fa0b693c GM |
22317 | #endif |
22318 | ||
19650fd6 AS |
22319 | int |
22320 | main () | |
22321 | { | |
ca81d7a0 | 22322 | return $ac_func (); |
503d2be0 AS |
22323 | ; |
22324 | return 0; | |
22325 | } | |
22326 | _ACEOF | |
22327 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
22328 | if { (ac_try="$ac_link" |
22329 | case "(($ac_try" in | |
22330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22331 | *) ac_try_echo=$ac_try;; | |
22332 | esac | |
22333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22334 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 22335 | ac_status=$? |
edfaf76d LK |
22336 | grep -v '^ *+' conftest.er1 >conftest.err |
22337 | rm -f conftest.er1 | |
22338 | cat conftest.err >&5 | |
c0d27fcc | 22339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22340 | (exit $ac_status); } && { |
22341 | test -z "$ac_c_werror_flag" || | |
22342 | test ! -s conftest.err | |
22343 | } && test -s conftest$ac_exeext && | |
22344 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
22345 | eval "$as_ac_var=yes" |
22346 | else | |
22347 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22348 | sed 's/^/| /' conftest.$ac_ext >&5 |
22349 | ||
ca81d7a0 | 22350 | eval "$as_ac_var=no" |
503d2be0 | 22351 | fi |
ca81d7a0 | 22352 | |
f053c89f | 22353 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 22354 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 22355 | fi |
ca81d7a0 JD |
22356 | ac_res=`eval echo '${'$as_ac_var'}'` |
22357 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22358 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 22359 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 22360 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 22361 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 22362 | _ACEOF |
503d2be0 | 22363 | |
fa0b693c | 22364 | fi |
503d2be0 | 22365 | done |
fa0b693c | 22366 | |
503d2be0 | 22367 | if test "x$ac_cv_func_fork" = xyes; then |
ca81d7a0 JD |
22368 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
22369 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
503d2be0 AS |
22370 | if test "${ac_cv_func_fork_works+set}" = set; then |
22371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 22372 | else |
503d2be0 AS |
22373 | if test "$cross_compiling" = yes; then |
22374 | ac_cv_func_fork_works=cross | |
22375 | else | |
22376 | cat >conftest.$ac_ext <<_ACEOF | |
ca81d7a0 JD |
22377 | /* confdefs.h. */ |
22378 | _ACEOF | |
22379 | cat confdefs.h >>conftest.$ac_ext | |
22380 | cat >>conftest.$ac_ext <<_ACEOF | |
22381 | /* end confdefs.h. */ | |
22382 | $ac_includes_default | |
22383 | int | |
22384 | main () | |
22385 | { | |
22386 | ||
22387 | /* By Ruediger Kuhlmann. */ | |
22388 | return fork () < 0; | |
22389 | ||
22390 | ; | |
22391 | return 0; | |
22392 | } | |
503d2be0 AS |
22393 | _ACEOF |
22394 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
22395 | if { (ac_try="$ac_link" |
22396 | case "(($ac_try" in | |
22397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22398 | *) ac_try_echo=$ac_try;; | |
22399 | esac | |
22400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22401 | (eval "$ac_link") 2>&5 | |
503d2be0 | 22402 | ac_status=$? |
c0d27fcc | 22403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 22404 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
22405 | { (case "(($ac_try" in |
22406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22407 | *) ac_try_echo=$ac_try;; | |
22408 | esac | |
22409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22410 | (eval "$ac_try") 2>&5 | |
503d2be0 | 22411 | ac_status=$? |
c0d27fcc | 22412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
22413 | (exit $ac_status); }; }; then |
22414 | ac_cv_func_fork_works=yes | |
22415 | else | |
22416 | echo "$as_me: program exited with status $ac_status" >&5 | |
22417 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22418 | sed 's/^/| /' conftest.$ac_ext >&5 |
22419 | ||
c0d27fcc | 22420 | ( exit $ac_status ) |
503d2be0 AS |
22421 | ac_cv_func_fork_works=no |
22422 | fi | |
ca81d7a0 | 22423 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 22424 | fi |
ca81d7a0 JD |
22425 | |
22426 | ||
503d2be0 | 22427 | fi |
ca81d7a0 JD |
22428 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
22429 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
503d2be0 | 22430 | |
6bae0ccf DL |
22431 | else |
22432 | ac_cv_func_fork_works=$ac_cv_func_fork | |
503d2be0 AS |
22433 | fi |
22434 | if test "x$ac_cv_func_fork_works" = xcross; then | |
22435 | case $host in | |
22436 | *-*-amigaos* | *-*-msdosdjgpp*) | |
22437 | # Override, as these systems have only a dummy fork() stub | |
22438 | ac_cv_func_fork_works=no | |
22439 | ;; | |
22440 | *) | |
22441 | ac_cv_func_fork_works=yes | |
22442 | ;; | |
22443 | esac | |
c0d27fcc MR |
22444 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
22445 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
fa0b693c | 22446 | fi |
73b77ee5 | 22447 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
503d2be0 | 22448 | if test "x$ac_cv_func_vfork" = xyes; then |
ca81d7a0 JD |
22449 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
22450 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
503d2be0 AS |
22451 | if test "${ac_cv_func_vfork_works+set}" = set; then |
22452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22453 | else | |
22454 | if test "$cross_compiling" = yes; then | |
22455 | ac_cv_func_vfork_works=cross | |
fa0b693c | 22456 | else |
503d2be0 | 22457 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22458 | /* confdefs.h. */ |
22459 | _ACEOF | |
22460 | cat confdefs.h >>conftest.$ac_ext | |
22461 | cat >>conftest.$ac_ext <<_ACEOF | |
22462 | /* end confdefs.h. */ | |
73b77ee5 | 22463 | /* Thanks to Paul Eggert for this test. */ |
ca81d7a0 | 22464 | $ac_includes_default |
19650fd6 | 22465 | #include <sys/wait.h> |
f053c89f | 22466 | #ifdef HAVE_VFORK_H |
503d2be0 | 22467 | # include <vfork.h> |
73b77ee5 GM |
22468 | #endif |
22469 | /* On some sparc systems, changes by the child to local and incoming | |
503d2be0 AS |
22470 | argument registers are propagated back to the parent. The compiler |
22471 | is told about this with #include <vfork.h>, but some compilers | |
22472 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
22473 | static variable whose address is put into a register that is | |
22474 | clobbered by the vfork. */ | |
19650fd6 | 22475 | static void |
fa0b693c | 22476 | #ifdef __cplusplus |
73b77ee5 | 22477 | sparc_address_test (int arg) |
503d2be0 | 22478 | # else |
73b77ee5 | 22479 | sparc_address_test (arg) int arg; |
fa0b693c | 22480 | #endif |
fa0b693c | 22481 | { |
73b77ee5 GM |
22482 | static pid_t child; |
22483 | if (!child) { | |
22484 | child = vfork (); | |
22485 | if (child < 0) { | |
22486 | perror ("vfork"); | |
22487 | _exit(2); | |
22488 | } | |
22489 | if (!child) { | |
22490 | arg = getpid(); | |
22491 | write(-1, "", 0); | |
22492 | _exit (arg); | |
22493 | } | |
22494 | } | |
22495 | } | |
503d2be0 AS |
22496 | |
22497 | int | |
22498 | main () | |
22499 | { | |
73b77ee5 GM |
22500 | pid_t parent = getpid (); |
22501 | pid_t child; | |
fa0b693c | 22502 | |
19650fd6 | 22503 | sparc_address_test (0); |
fa0b693c | 22504 | |
73b77ee5 | 22505 | child = vfork (); |
fa0b693c | 22506 | |
73b77ee5 | 22507 | if (child == 0) { |
503d2be0 AS |
22508 | /* Here is another test for sparc vfork register problems. This |
22509 | test uses lots of local variables, at least as many local | |
22510 | variables as main has allocated so far including compiler | |
22511 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
22512 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
22513 | reuse the register of parent for one of the local variables, | |
22514 | since it will think that parent can't possibly be used any more | |
22515 | in this routine. Assigning to the local variable will thus | |
22516 | munge parent in the parent process. */ | |
73b77ee5 GM |
22517 | pid_t |
22518 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
22519 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
22520 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
22521 | use the same hardware register for all 8 local variables. */ | |
22522 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
22523 | || p != p5 || p != p6 || p != p7) | |
22524 | _exit(1); | |
fa0b693c | 22525 | |
503d2be0 AS |
22526 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
22527 | from child file descriptors. If the child closes a descriptor | |
22528 | before it execs or exits, this munges the parent's descriptor | |
22529 | as well. Test for this by closing stdout in the child. */ | |
73b77ee5 GM |
22530 | _exit(close(fileno(stdout)) != 0); |
22531 | } else { | |
22532 | int status; | |
22533 | struct stat st; | |
22534 | ||
22535 | while (wait(&status) != child) | |
22536 | ; | |
ca81d7a0 | 22537 | return ( |
73b77ee5 GM |
22538 | /* Was there some problem with vforking? */ |
22539 | child < 0 | |
22540 | ||
22541 | /* Did the child fail? (This shouldn't happen.) */ | |
22542 | || status | |
22543 | ||
22544 | /* Did the vfork/compiler bug occur? */ | |
22545 | || parent != getpid() | |
fa0b693c | 22546 | |
73b77ee5 GM |
22547 | /* Did the file descriptor bug occur? */ |
22548 | || fstat(fileno(stdout), &st) != 0 | |
22549 | ); | |
22550 | } | |
22551 | } | |
503d2be0 AS |
22552 | _ACEOF |
22553 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
22554 | if { (ac_try="$ac_link" |
22555 | case "(($ac_try" in | |
22556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22557 | *) ac_try_echo=$ac_try;; | |
22558 | esac | |
22559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22560 | (eval "$ac_link") 2>&5 | |
503d2be0 | 22561 | ac_status=$? |
c0d27fcc | 22562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 22563 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
22564 | { (case "(($ac_try" in |
22565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22566 | *) ac_try_echo=$ac_try;; | |
22567 | esac | |
22568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22569 | (eval "$ac_try") 2>&5 | |
503d2be0 | 22570 | ac_status=$? |
c0d27fcc | 22571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 22572 | (exit $ac_status); }; }; then |
73b77ee5 | 22573 | ac_cv_func_vfork_works=yes |
fa0b693c | 22574 | else |
503d2be0 AS |
22575 | echo "$as_me: program exited with status $ac_status" >&5 |
22576 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22577 | sed 's/^/| /' conftest.$ac_ext >&5 |
22578 | ||
c0d27fcc | 22579 | ( exit $ac_status ) |
503d2be0 AS |
22580 | ac_cv_func_vfork_works=no |
22581 | fi | |
ca81d7a0 | 22582 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
fa0b693c | 22583 | fi |
ca81d7a0 JD |
22584 | |
22585 | ||
fa0b693c | 22586 | fi |
ca81d7a0 JD |
22587 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
22588 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
fa0b693c | 22589 | |
503d2be0 AS |
22590 | fi; |
22591 | if test "x$ac_cv_func_fork_works" = xcross; then | |
edfaf76d | 22592 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
c0d27fcc MR |
22593 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
22594 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
fa0b693c GM |
22595 | fi |
22596 | ||
503d2be0 AS |
22597 | if test "x$ac_cv_func_vfork_works" = xyes; then |
22598 | ||
c0d27fcc | 22599 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 22600 | #define HAVE_WORKING_VFORK 1 |
c0d27fcc | 22601 | _ACEOF |
503d2be0 AS |
22602 | |
22603 | else | |
22604 | ||
c0d27fcc | 22605 | cat >>confdefs.h <<\_ACEOF |
73b77ee5 | 22606 | #define vfork fork |
c0d27fcc | 22607 | _ACEOF |
fa0b693c GM |
22608 | |
22609 | fi | |
503d2be0 AS |
22610 | if test "x$ac_cv_func_fork_works" = xyes; then |
22611 | ||
c0d27fcc | 22612 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 22613 | #define HAVE_WORKING_FORK 1 |
c0d27fcc | 22614 | _ACEOF |
fa0b693c | 22615 | |
503d2be0 | 22616 | fi |
647847ea | 22617 | |
c0d27fcc | 22618 | |
ca81d7a0 JD |
22619 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
22620 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } | |
6a3a24fa JD |
22621 | if test "${emacs_cv_langinfo_codeset+set}" = set; then |
22622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22623 | else | |
22624 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
22625 | /* confdefs.h. */ |
22626 | _ACEOF | |
22627 | cat confdefs.h >>conftest.$ac_ext | |
22628 | cat >>conftest.$ac_ext <<_ACEOF | |
22629 | /* end confdefs.h. */ | |
6a3a24fa JD |
22630 | #include <langinfo.h> |
22631 | int | |
22632 | main () | |
22633 | { | |
22634 | char* cs = nl_langinfo(CODESET); | |
22635 | ; | |
22636 | return 0; | |
22637 | } | |
22638 | _ACEOF | |
22639 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
22640 | if { (ac_try="$ac_link" |
22641 | case "(($ac_try" in | |
22642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22643 | *) ac_try_echo=$ac_try;; | |
22644 | esac | |
22645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22646 | (eval "$ac_link") 2>conftest.er1 | |
6a3a24fa | 22647 | ac_status=$? |
edfaf76d LK |
22648 | grep -v '^ *+' conftest.er1 >conftest.err |
22649 | rm -f conftest.er1 | |
22650 | cat conftest.err >&5 | |
6a3a24fa | 22651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22652 | (exit $ac_status); } && { |
22653 | test -z "$ac_c_werror_flag" || | |
22654 | test ! -s conftest.err | |
22655 | } && test -s conftest$ac_exeext && | |
22656 | $as_test_x conftest$ac_exeext; then | |
6a3a24fa JD |
22657 | emacs_cv_langinfo_codeset=yes |
22658 | else | |
22659 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22660 | sed 's/^/| /' conftest.$ac_ext >&5 |
22661 | ||
ca81d7a0 | 22662 | emacs_cv_langinfo_codeset=no |
6a3a24fa | 22663 | fi |
ca81d7a0 | 22664 | |
f053c89f | 22665 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 22666 | conftest$ac_exeext conftest.$ac_ext |
6a3a24fa JD |
22667 | |
22668 | fi | |
ca81d7a0 JD |
22669 | { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5 |
22670 | echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; } | |
6a3a24fa JD |
22671 | if test $emacs_cv_langinfo_codeset = yes; then |
22672 | ||
22673 | cat >>confdefs.h <<\_ACEOF | |
22674 | #define HAVE_LANGINFO_CODESET 1 | |
22675 | _ACEOF | |
22676 | ||
22677 | fi | |
22678 | ||
ca81d7a0 JD |
22679 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
22680 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
503d2be0 AS |
22681 | if test "${ac_cv_type_size_t+set}" = set; then |
22682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8730a8da | 22683 | else |
503d2be0 | 22684 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22685 | /* confdefs.h. */ |
22686 | _ACEOF | |
22687 | cat confdefs.h >>conftest.$ac_ext | |
22688 | cat >>conftest.$ac_ext <<_ACEOF | |
22689 | /* end confdefs.h. */ | |
503d2be0 | 22690 | $ac_includes_default |
ca81d7a0 | 22691 | typedef size_t ac__type_new_; |
503d2be0 AS |
22692 | int |
22693 | main () | |
22694 | { | |
ca81d7a0 | 22695 | if ((ac__type_new_ *) 0) |
503d2be0 | 22696 | return 0; |
ca81d7a0 | 22697 | if (sizeof (ac__type_new_)) |
503d2be0 AS |
22698 | return 0; |
22699 | ; | |
22700 | return 0; | |
22701 | } | |
22702 | _ACEOF | |
22703 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
22704 | if { (ac_try="$ac_compile" |
22705 | case "(($ac_try" in | |
22706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22707 | *) ac_try_echo=$ac_try;; | |
22708 | esac | |
22709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22710 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 22711 | ac_status=$? |
edfaf76d LK |
22712 | grep -v '^ *+' conftest.er1 >conftest.err |
22713 | rm -f conftest.er1 | |
22714 | cat conftest.err >&5 | |
c0d27fcc | 22715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22716 | (exit $ac_status); } && { |
22717 | test -z "$ac_c_werror_flag" || | |
22718 | test ! -s conftest.err | |
22719 | } && test -s conftest.$ac_objext; then | |
8730a8da DL |
22720 | ac_cv_type_size_t=yes |
22721 | else | |
503d2be0 | 22722 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
22723 | sed 's/^/| /' conftest.$ac_ext >&5 |
22724 | ||
ca81d7a0 | 22725 | ac_cv_type_size_t=no |
8730a8da | 22726 | fi |
ca81d7a0 JD |
22727 | |
22728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8730a8da | 22729 | fi |
ca81d7a0 JD |
22730 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
22731 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
503d2be0 | 22732 | if test $ac_cv_type_size_t = yes; then |
503d2be0 | 22733 | |
c0d27fcc MR |
22734 | cat >>confdefs.h <<_ACEOF |
22735 | #define HAVE_SIZE_T 1 | |
22736 | _ACEOF | |
22737 | ||
8730a8da DL |
22738 | |
22739 | fi | |
22740 | ||
c0d27fcc | 22741 | |
ca81d7a0 JD |
22742 | { echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
22743 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; } | |
973a76b1 DL |
22744 | if test "${ac_cv_type_mbstate_t+set}" = set; then |
22745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22746 | else | |
22747 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
22748 | /* confdefs.h. */ |
22749 | _ACEOF | |
22750 | cat confdefs.h >>conftest.$ac_ext | |
22751 | cat >>conftest.$ac_ext <<_ACEOF | |
22752 | /* end confdefs.h. */ | |
973a76b1 DL |
22753 | $ac_includes_default |
22754 | # include <wchar.h> | |
22755 | int | |
22756 | main () | |
22757 | { | |
22758 | mbstate_t x; return sizeof x; | |
22759 | ; | |
22760 | return 0; | |
22761 | } | |
22762 | _ACEOF | |
22763 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
22764 | if { (ac_try="$ac_compile" |
22765 | case "(($ac_try" in | |
22766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22767 | *) ac_try_echo=$ac_try;; | |
22768 | esac | |
22769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22770 | (eval "$ac_compile") 2>conftest.er1 | |
973a76b1 | 22771 | ac_status=$? |
edfaf76d LK |
22772 | grep -v '^ *+' conftest.er1 >conftest.err |
22773 | rm -f conftest.er1 | |
22774 | cat conftest.err >&5 | |
973a76b1 | 22775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22776 | (exit $ac_status); } && { |
22777 | test -z "$ac_c_werror_flag" || | |
22778 | test ! -s conftest.err | |
22779 | } && test -s conftest.$ac_objext; then | |
973a76b1 DL |
22780 | ac_cv_type_mbstate_t=yes |
22781 | else | |
22782 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22783 | sed 's/^/| /' conftest.$ac_ext >&5 |
22784 | ||
ca81d7a0 | 22785 | ac_cv_type_mbstate_t=no |
973a76b1 | 22786 | fi |
ca81d7a0 JD |
22787 | |
22788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
973a76b1 | 22789 | fi |
ca81d7a0 JD |
22790 | { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 |
22791 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; } | |
973a76b1 DL |
22792 | if test $ac_cv_type_mbstate_t = yes; then |
22793 | ||
22794 | cat >>confdefs.h <<\_ACEOF | |
22795 | #define HAVE_MBSTATE_T 1 | |
22796 | _ACEOF | |
22797 | ||
22798 | else | |
22799 | ||
22800 | cat >>confdefs.h <<\_ACEOF | |
22801 | #define mbstate_t int | |
22802 | _ACEOF | |
22803 | ||
22804 | fi | |
22805 | ||
ca81d7a0 JD |
22806 | { echo "$as_me:$LINENO: checking for C restrict keyword" >&5 |
22807 | echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; } | |
22044edf DL |
22808 | if test "${emacs_cv_c_restrict+set}" = set; then |
22809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22810 | else | |
22811 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
22812 | /* confdefs.h. */ |
22813 | _ACEOF | |
22814 | cat confdefs.h >>conftest.$ac_ext | |
22815 | cat >>conftest.$ac_ext <<_ACEOF | |
22816 | /* end confdefs.h. */ | |
22044edf DL |
22817 | void fred (int *restrict x); |
22818 | int | |
22819 | main () | |
22820 | { | |
b936fae4 | 22821 | |
22044edf DL |
22822 | ; |
22823 | return 0; | |
22824 | } | |
c0d27fcc | 22825 | _ACEOF |
22044edf | 22826 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
22827 | if { (ac_try="$ac_compile" |
22828 | case "(($ac_try" in | |
22829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22830 | *) ac_try_echo=$ac_try;; | |
22831 | esac | |
22832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22833 | (eval "$ac_compile") 2>conftest.er1 | |
22044edf | 22834 | ac_status=$? |
edfaf76d LK |
22835 | grep -v '^ *+' conftest.er1 >conftest.err |
22836 | rm -f conftest.er1 | |
22837 | cat conftest.err >&5 | |
22044edf | 22838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22839 | (exit $ac_status); } && { |
22840 | test -z "$ac_c_werror_flag" || | |
22841 | test ! -s conftest.err | |
22842 | } && test -s conftest.$ac_objext; then | |
22044edf DL |
22843 | emacs_cv_c_restrict=yes |
22844 | else | |
22845 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22846 | sed 's/^/| /' conftest.$ac_ext >&5 |
22847 | ||
ca81d7a0 | 22848 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22849 | /* confdefs.h. */ |
22850 | _ACEOF | |
22851 | cat confdefs.h >>conftest.$ac_ext | |
22852 | cat >>conftest.$ac_ext <<_ACEOF | |
22853 | /* end confdefs.h. */ | |
22044edf DL |
22854 | void fred (int *__restrict x); |
22855 | int | |
22856 | main () | |
22857 | { | |
c0d27fcc | 22858 | |
22044edf DL |
22859 | ; |
22860 | return 0; | |
22861 | } | |
c0d27fcc | 22862 | _ACEOF |
22044edf | 22863 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
22864 | if { (ac_try="$ac_compile" |
22865 | case "(($ac_try" in | |
22866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22867 | *) ac_try_echo=$ac_try;; | |
22868 | esac | |
22869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22870 | (eval "$ac_compile") 2>conftest.er1 | |
22044edf | 22871 | ac_status=$? |
edfaf76d LK |
22872 | grep -v '^ *+' conftest.er1 >conftest.err |
22873 | rm -f conftest.er1 | |
22874 | cat conftest.err >&5 | |
22044edf | 22875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22876 | (exit $ac_status); } && { |
22877 | test -z "$ac_c_werror_flag" || | |
22878 | test ! -s conftest.err | |
22879 | } && test -s conftest.$ac_objext; then | |
22044edf DL |
22880 | emacs_cv_c_restrict=__restrict |
22881 | else | |
22882 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22883 | sed 's/^/| /' conftest.$ac_ext >&5 |
22884 | ||
ca81d7a0 | 22885 | emacs_cv_c_restrict=no |
ba4481b5 | 22886 | fi |
ca81d7a0 JD |
22887 | |
22888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 22889 | fi |
ca81d7a0 JD |
22890 | |
22891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 22892 | fi |
ca81d7a0 JD |
22893 | { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 |
22894 | echo "${ECHO_T}$emacs_cv_c_restrict" >&6; } | |
22044edf DL |
22895 | case "$emacs_cv_c_restrict" in |
22896 | yes) emacs_restrict=restrict;; | |
22897 | no) emacs_restrict="";; | |
22898 | *) emacs_restrict="$emacs_cv_c_restrict";; | |
22899 | esac | |
22900 | if test "$emacs_restrict" != __restrict; then | |
b936fae4 | 22901 | |
22044edf DL |
22902 | cat >>confdefs.h <<_ACEOF |
22903 | #define __restrict $emacs_restrict | |
c0d27fcc | 22904 | _ACEOF |
ba4481b5 DL |
22905 | |
22906 | fi | |
ba4481b5 | 22907 | |
ca81d7a0 JD |
22908 | { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 |
22909 | echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; } | |
22044edf DL |
22910 | if test "${emacs_cv_c_restrict_arr+set}" = set; then |
22911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22912 | else | |
22913 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
22914 | /* confdefs.h. */ |
22915 | _ACEOF | |
22916 | cat confdefs.h >>conftest.$ac_ext | |
22917 | cat >>conftest.$ac_ext <<_ACEOF | |
22918 | /* end confdefs.h. */ | |
22044edf DL |
22919 | void fred (int x[__restrict]); |
22920 | int | |
22921 | main () | |
22922 | { | |
b936fae4 | 22923 | |
22044edf DL |
22924 | ; |
22925 | return 0; | |
22926 | } | |
c0d27fcc | 22927 | _ACEOF |
22044edf | 22928 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
22929 | if { (ac_try="$ac_compile" |
22930 | case "(($ac_try" in | |
22931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22932 | *) ac_try_echo=$ac_try;; | |
22933 | esac | |
22934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22935 | (eval "$ac_compile") 2>conftest.er1 | |
22044edf | 22936 | ac_status=$? |
edfaf76d LK |
22937 | grep -v '^ *+' conftest.er1 >conftest.err |
22938 | rm -f conftest.er1 | |
22939 | cat conftest.err >&5 | |
22044edf | 22940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22941 | (exit $ac_status); } && { |
22942 | test -z "$ac_c_werror_flag" || | |
22943 | test ! -s conftest.err | |
22944 | } && test -s conftest.$ac_objext; then | |
22044edf DL |
22945 | emacs_cv_c_restrict_arr=yes |
22946 | else | |
22947 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22948 | sed 's/^/| /' conftest.$ac_ext >&5 |
22949 | ||
ca81d7a0 | 22950 | emacs_cv_c_restrict_arr=no |
ba4481b5 | 22951 | fi |
ca81d7a0 JD |
22952 | |
22953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22044edf | 22954 | fi |
ca81d7a0 JD |
22955 | { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 |
22956 | echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; } | |
22044edf | 22957 | if test "$emacs_cv_c_restrict_arr" = yes; then |
b936fae4 | 22958 | |
c0d27fcc | 22959 | cat >>confdefs.h <<\_ACEOF |
22044edf | 22960 | #define __restrict_arr __restrict |
c0d27fcc | 22961 | _ACEOF |
ba4481b5 | 22962 | |
ba4481b5 DL |
22963 | fi |
22964 | ||
c0d27fcc | 22965 | |
c0d27fcc | 22966 | |
22044edf DL |
22967 | # Set up the CFLAGS for real compilation, so we can substitute it. |
22968 | CFLAGS="$REAL_CFLAGS" | |
22969 | CPPFLAGS="$REAL_CPPFLAGS" | |
22970 | ||
22971 | #### Find out which version of Emacs this is. | |
22972 | version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
22973 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
22974 | if test x"${version}" = x; then | |
22975 | { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 | |
22976 | echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} | |
22977 | { (exit 1); exit 1; }; } | |
22978 | fi | |
22979 | ||
22980 | ### Specify what sort of things we'll be editing into Makefile and config.h. | |
22981 | ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
22982 | ||
22983 | ||
22984 | ||
22985 | ||
22986 | ||
22987 | ||
22988 | ||
22989 | ||
22990 | ||
22991 | ||
22992 | ||
22993 | ||
22994 | ||
22995 | ||
22996 | ||
22997 | ||
22998 | ||
22999 | ||
23000 | ||
23001 | ||
23002 | ||
23003 | ||
23004 | ||
23005 | ||
23006 | ||
23007 | ||
23008 | ||
23009 | ||
23010 | ||
23011 | ||
23012 | ||
23013 | ||
6a3a24fa | 23014 | |
22044edf DL |
23015 | |
23016 | ||
23017 | cat >>confdefs.h <<_ACEOF | |
23018 | #define EMACS_CONFIGURATION "${canonical}" | |
23019 | _ACEOF | |
23020 | ||
23021 | ||
23022 | cat >>confdefs.h <<_ACEOF | |
23023 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
23024 | _ACEOF | |
23025 | ||
23026 | ||
23027 | cat >>confdefs.h <<_ACEOF | |
23028 | #define config_machfile "${machfile}" | |
23029 | _ACEOF | |
23030 | ||
23031 | ||
23032 | cat >>confdefs.h <<_ACEOF | |
23033 | #define config_opsysfile "${opsysfile}" | |
23034 | _ACEOF | |
23035 | ||
23036 | ||
23037 | cat >>confdefs.h <<_ACEOF | |
23038 | #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
23039 | _ACEOF | |
23040 | ||
23041 | ||
23042 | cat >>confdefs.h <<_ACEOF | |
23043 | #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
23044 | _ACEOF | |
23045 | ||
23046 | ||
23047 | cat >>confdefs.h <<_ACEOF | |
23048 | #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
23049 | _ACEOF | |
23050 | ||
23051 | ||
23052 | cat >>confdefs.h <<_ACEOF | |
23053 | #define UNEXEC_SRC ${UNEXEC_SRC} | |
23054 | _ACEOF | |
23055 | ||
23056 | ||
23057 | if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
23058 | ||
23059 | cat >>confdefs.h <<\_ACEOF | |
23060 | #define HAVE_X_WINDOWS 1 | |
23061 | _ACEOF | |
23062 | ||
23063 | fi | |
23064 | if test "${USE_X_TOOLKIT}" != "none" ; then | |
23065 | ||
23066 | cat >>confdefs.h <<\_ACEOF | |
23067 | #define USE_X_TOOLKIT 1 | |
23068 | _ACEOF | |
23069 | ||
23070 | fi | |
23071 | if test "${HAVE_X11}" = "yes" ; then | |
23072 | ||
23073 | cat >>confdefs.h <<\_ACEOF | |
23074 | #define HAVE_X11 1 | |
23075 | _ACEOF | |
23076 | ||
23077 | fi | |
23078 | if test "${HAVE_XFREE386}" = "yes" ; then | |
23079 | ||
23080 | cat >>confdefs.h <<\_ACEOF | |
23081 | #define HAVE_XFREE386 1 | |
23082 | _ACEOF | |
23083 | ||
23084 | fi | |
23085 | if test "${HAVE_MENUS}" = "yes" ; then | |
23086 | ||
23087 | cat >>confdefs.h <<\_ACEOF | |
23088 | #define HAVE_MENUS 1 | |
23089 | _ACEOF | |
23090 | ||
23091 | fi | |
23092 | if test "${GNU_MALLOC}" = "yes" ; then | |
23093 | ||
23094 | cat >>confdefs.h <<\_ACEOF | |
23095 | #define GNU_MALLOC 1 | |
23096 | _ACEOF | |
23097 | ||
23098 | fi | |
23099 | if test "${REL_ALLOC}" = "yes" ; then | |
23100 | ||
23101 | cat >>confdefs.h <<\_ACEOF | |
23102 | #define REL_ALLOC 1 | |
23103 | _ACEOF | |
23104 | ||
23105 | fi | |
23106 | ||
23107 | ||
23108 | ||
c0d27fcc MR |
23109 | |
23110 | ||
ba4481b5 | 23111 | #### Report on what we decided to do. |
488dd4c4 JD |
23112 | #### Report GTK as a toolkit, even if it doesn't use Xt. |
23113 | #### It makes printing result more understandable as using GTK sets | |
23114 | #### toolkit_scroll_bars to yes by default. | |
23115 | if test "${HAVE_GTK}" = "yes"; then | |
23116 | USE_X_TOOLKIT=GTK | |
23117 | fi | |
23118 | ||
ba4481b5 DL |
23119 | echo " |
23120 | Configured for \`${canonical}'. | |
23121 | ||
23122 | Where should the build process find the source code? ${srcdir} | |
23123 | What operating system and machine description files should Emacs use? | |
23124 | \`${opsysfile}' and \`${machfile}' | |
23125 | What compiler should emacs be built with? ${CC} ${CFLAGS} | |
23126 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
73b77ee5 | 23127 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
ef9e4345 | 23128 | Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
ba4481b5 | 23129 | What window system should Emacs use? ${window_system} |
8e967cf7 | 23130 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
ba4481b5 DL |
23131 | |
23132 | if test -n "${x_includes}"; then | |
23133 | echo " Where do we find X Windows header files? ${x_includes}" | |
23134 | else | |
23135 | echo " Where do we find X Windows header files? Standard dirs" | |
23136 | fi | |
23137 | if test -n "${x_libraries}"; then | |
23138 | echo " Where do we find X Windows libraries? ${x_libraries}" | |
23139 | else | |
23140 | echo " Where do we find X Windows libraries? Standard dirs" | |
23141 | fi | |
23142 | ||
23143 | echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
23144 | echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
23145 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
23146 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
23147 | echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
23148 | echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
23149 | echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
23150 | echo | |
23151 | ||
d0098f13 JD |
23152 | if test $USE_XASSERTS = yes; then |
23153 | echo " Compiling with asserts turned on." | |
d0098f13 JD |
23154 | CPPFLAGS="$CPPFLAGS -DXASSERTS=1" |
23155 | echo | |
23156 | fi | |
05cf15c6 | 23157 | |
a2d3b5bd JD |
23158 | if test "$USE_X_TOOLKIT" = GTK; then |
23159 | case "$canonical" in | |
23160 | *cygwin*) | |
23161 | echo "There are known problems with Emacs and Gtk+ on cygwin, so you | |
23162 | will probably get a crash on startup. If this happens, please use another | |
23163 | toolkit for Emacs. See etc/PROBLEMS for more information." | |
23164 | ;; | |
23165 | esac | |
23166 | fi | |
23167 | ||
05cf15c6 | 23168 | |
05cf15c6 | 23169 | |
ba4481b5 DL |
23170 | # Remove any trailing slashes in these variables. |
23171 | test "${prefix}" != NONE && | |
23172 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
23173 | test "${exec_prefix}" != NONE && | |
23174 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
23175 | ||
d0e9bfd2 GM |
23176 | ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
23177 | ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
23178 | ## from Makefile.c can correctly provide the arg `-traditional' to the | |
23179 | ## C preprocessor. | |
23180 | ||
503d2be0 | 23181 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
23182 | /* confdefs.h. */ |
23183 | _ACEOF | |
23184 | cat confdefs.h >>conftest.$ac_ext | |
23185 | cat >>conftest.$ac_ext <<_ACEOF | |
23186 | /* end confdefs.h. */ | |
d0e9bfd2 | 23187 | yes..yes |
503d2be0 | 23188 | _ACEOF |
d0e9bfd2 | 23189 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bae0ccf | 23190 | $EGREP "yes..yes" >/dev/null 2>&1; then |
d0e9bfd2 GM |
23191 | CPP_NEED_TRADITIONAL=no |
23192 | else | |
d0e9bfd2 GM |
23193 | CPP_NEED_TRADITIONAL=yes |
23194 | fi | |
23195 | rm -f conftest* | |
23196 | ||
c0d27fcc | 23197 | |
ca81d7a0 JD |
23198 | 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" |
23199 | ||
23200 | ac_config_commands="$ac_config_commands default" | |
23201 | ||
503d2be0 | 23202 | cat >confcache <<\_ACEOF |
ba4481b5 DL |
23203 | # This file is a shell script that caches the results of configure |
23204 | # tests run on this system so they can be shared between configure | |
503d2be0 AS |
23205 | # scripts and configure runs, see configure's option --config-cache. |
23206 | # It is not useful on other systems. If it contains results you don't | |
23207 | # want to keep, you may remove or edit it. | |
ba4481b5 | 23208 | # |
503d2be0 AS |
23209 | # config.status only pays attention to the cache file if you give it |
23210 | # the --recheck option to rerun configure. | |
ba4481b5 | 23211 | # |
6bae0ccf | 23212 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
503d2be0 AS |
23213 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
23214 | # following values. | |
23215 | ||
23216 | _ACEOF | |
23217 | ||
ba4481b5 DL |
23218 | # The following way of writing the cache mishandles newlines in values, |
23219 | # but we know of no workaround that is simple, portable, and efficient. | |
ca81d7a0 | 23220 | # So, we kill variables containing newlines. |
ba4481b5 DL |
23221 | # Ultrix sh set writes to stderr and can't be redirected directly, |
23222 | # and sets the high bit in the cache file unless we assign to the vars. | |
ca81d7a0 JD |
23223 | ( |
23224 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
23225 | eval ac_val=\$$ac_var | |
23226 | case $ac_val in #( | |
23227 | *${as_nl}*) | |
23228 | case $ac_var in #( | |
23229 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
23230 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
23231 | esac | |
23232 | case $ac_var in #( | |
23233 | _ | IFS | as_nl) ;; #( | |
23234 | *) $as_unset $ac_var ;; | |
23235 | esac ;; | |
23236 | esac | |
23237 | done | |
23238 | ||
503d2be0 | 23239 | (set) 2>&1 | |
ca81d7a0 JD |
23240 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
23241 | *${as_nl}ac_space=\ *) | |
503d2be0 AS |
23242 | # `set' does not quote correctly, so add quotes (double-quote |
23243 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23244 | sed -n \ | |
edfaf76d LK |
23245 | "s/'/'\\\\''/g; |
23246 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
ca81d7a0 | 23247 | ;; #( |
503d2be0 AS |
23248 | *) |
23249 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
ca81d7a0 | 23250 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
503d2be0 | 23251 | ;; |
ca81d7a0 JD |
23252 | esac | |
23253 | sort | |
23254 | ) | | |
503d2be0 | 23255 | sed ' |
ca81d7a0 | 23256 | /^ac_cv_env_/b end |
503d2be0 | 23257 | t clear |
ca81d7a0 | 23258 | :clear |
503d2be0 AS |
23259 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
23260 | t end | |
ca81d7a0 JD |
23261 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
23262 | :end' >>confcache | |
23263 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
23264 | if test -w "$cache_file"; then | |
23265 | test "x$cache_file" != "x/dev/null" && | |
23266 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
23267 | echo "$as_me: updating cache $cache_file" >&6;} | |
503d2be0 | 23268 | cat confcache >$cache_file |
ba4481b5 | 23269 | else |
ca81d7a0 JD |
23270 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
23271 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
ba4481b5 DL |
23272 | fi |
23273 | fi | |
23274 | rm -f confcache | |
23275 | ||
ba4481b5 DL |
23276 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
23277 | # Let make expand exec_prefix. | |
23278 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
23279 | ||
ba4481b5 DL |
23280 | DEFS=-DHAVE_CONFIG_H |
23281 | ||
6bae0ccf DL |
23282 | ac_libobjs= |
23283 | ac_ltlibobjs= | |
23284 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
23285 | # 1. Remove the extension, and $U if already installed. | |
ca81d7a0 JD |
23286 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
23287 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
23288 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
23289 | # will be set to the directory where LIBOBJS objects are built. | |
23290 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
23291 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
6bae0ccf DL |
23292 | done |
23293 | LIBOBJS=$ac_libobjs | |
23294 | ||
23295 | LTLIBOBJS=$ac_ltlibobjs | |
23296 | ||
23297 | ||
c0d27fcc | 23298 | |
ba4481b5 | 23299 | : ${CONFIG_STATUS=./config.status} |
503d2be0 AS |
23300 | ac_clean_files_save=$ac_clean_files |
23301 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
c0d27fcc | 23302 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
503d2be0 AS |
23303 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
23304 | cat >$CONFIG_STATUS <<_ACEOF | |
23305 | #! $SHELL | |
c0d27fcc | 23306 | # Generated by $as_me. |
ba4481b5 | 23307 | # Run this file to recreate the current configuration. |
ba4481b5 | 23308 | # Compiler output produced by configure, useful for debugging |
503d2be0 | 23309 | # configure, is in config.log if it exists. |
ba4481b5 | 23310 | |
503d2be0 | 23311 | debug=false |
19650fd6 AS |
23312 | ac_cs_recheck=false |
23313 | ac_cs_silent=false | |
503d2be0 | 23314 | SHELL=\${CONFIG_SHELL-$SHELL} |
503d2be0 AS |
23315 | _ACEOF |
23316 | ||
23317 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c0d27fcc MR |
23318 | ## --------------------- ## |
23319 | ## M4sh Initialization. ## | |
23320 | ## --------------------- ## | |
23321 | ||
f053c89f CY |
23322 | # Be more Bourne compatible |
23323 | DUALCASE=1; export DUALCASE # for MKS sh | |
503d2be0 AS |
23324 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
23325 | emulate sh | |
23326 | NULLCMD=: | |
6bae0ccf DL |
23327 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
23328 | # is contrary to our usage. Disable this feature. | |
23329 | alias -g '${1+"$@"}'='"$@"' | |
ca81d7a0 JD |
23330 | setopt NO_GLOB_SUBST |
23331 | else | |
f053c89f CY |
23332 | case `(set -o) 2>/dev/null` in |
23333 | *posix*) set -o posix ;; | |
23334 | esac | |
23335 | ||
503d2be0 | 23336 | fi |
f053c89f CY |
23337 | |
23338 | ||
503d2be0 | 23339 | |
ca81d7a0 JD |
23340 | |
23341 | # PATH needs CR | |
23342 | # Avoid depending upon Character Ranges. | |
23343 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
23344 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
23345 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
23346 | as_cr_digits='0123456789' | |
23347 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
23348 | ||
23349 | # The user is always right. | |
23350 | if test "${PATH_SEPARATOR+set}" != set; then | |
23351 | echo "#! /bin/sh" >conf$$.sh | |
23352 | echo "exit 0" >>conf$$.sh | |
23353 | chmod +x conf$$.sh | |
23354 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
23355 | PATH_SEPARATOR=';' | |
23356 | else | |
23357 | PATH_SEPARATOR=: | |
23358 | fi | |
23359 | rm -f conf$$.sh | |
23360 | fi | |
23361 | ||
c0d27fcc | 23362 | # Support unset when possible. |
edfaf76d | 23363 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
c0d27fcc MR |
23364 | as_unset=unset |
23365 | else | |
23366 | as_unset=false | |
23367 | fi | |
23368 | ||
6bae0ccf | 23369 | |
ca81d7a0 JD |
23370 | # IFS |
23371 | # We need space, tab and new line, in precisely that order. Quoting is | |
23372 | # there to prevent editors from complaining about space-tab. | |
23373 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
23374 | # splitting by setting IFS to empty value.) | |
23375 | as_nl=' | |
23376 | ' | |
23377 | IFS=" "" $as_nl" | |
23378 | ||
23379 | # Find who we are. Look in the path if we contain no directory separator. | |
23380 | case $0 in | |
23381 | *[\\/]* ) as_myself=$0 ;; | |
23382 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23383 | for as_dir in $PATH | |
23384 | do | |
23385 | IFS=$as_save_IFS | |
23386 | test -z "$as_dir" && as_dir=. | |
23387 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
23388 | done | |
23389 | IFS=$as_save_IFS | |
23390 | ||
23391 | ;; | |
23392 | esac | |
23393 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
23394 | # in which case we are not to be found in the path. | |
23395 | if test "x$as_myself" = x; then | |
23396 | as_myself=$0 | |
23397 | fi | |
23398 | if test ! -f "$as_myself"; then | |
23399 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
23400 | { (exit 1); exit 1; } | |
23401 | fi | |
23402 | ||
6bae0ccf | 23403 | # Work around bugs in pre-3.0 UWIN ksh. |
ca81d7a0 JD |
23404 | for as_var in ENV MAIL MAILPATH |
23405 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
23406 | done | |
6bae0ccf DL |
23407 | PS1='$ ' |
23408 | PS2='> ' | |
23409 | PS4='+ ' | |
23410 | ||
23411 | # NLS nuisances. | |
19650fd6 AS |
23412 | for as_var in \ |
23413 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
23414 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
23415 | LC_TELEPHONE LC_TIME | |
6bae0ccf | 23416 | do |
edfaf76d | 23417 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6bae0ccf DL |
23418 | eval $as_var=C; export $as_var |
23419 | else | |
ca81d7a0 | 23420 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
6bae0ccf DL |
23421 | fi |
23422 | done | |
23423 | ||
23424 | # Required to use basename. | |
ca81d7a0 JD |
23425 | if expr a : '\(a\)' >/dev/null 2>&1 && |
23426 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6bae0ccf DL |
23427 | as_expr=expr |
23428 | else | |
23429 | as_expr=false | |
23430 | fi | |
23431 | ||
ca81d7a0 | 23432 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6bae0ccf DL |
23433 | as_basename=basename |
23434 | else | |
23435 | as_basename=false | |
23436 | fi | |
c0d27fcc MR |
23437 | |
23438 | ||
503d2be0 | 23439 | # Name of the executable. |
ca81d7a0 | 23440 | as_me=`$as_basename -- "$0" || |
c0d27fcc MR |
23441 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
23442 | X"$0" : 'X\(//\)$' \| \ | |
ca81d7a0 | 23443 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c0d27fcc | 23444 | echo X/"$0" | |
ca81d7a0 JD |
23445 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
23446 | s//\1/ | |
23447 | q | |
23448 | } | |
23449 | /^X\/\(\/\/\)$/{ | |
23450 | s//\1/ | |
23451 | q | |
23452 | } | |
23453 | /^X\/\(\/\).*/{ | |
23454 | s//\1/ | |
23455 | q | |
23456 | } | |
23457 | s/.*/./; q'` | |
c0d27fcc | 23458 | |
ca81d7a0 JD |
23459 | # CDPATH. |
23460 | $as_unset CDPATH | |
4b411bfe CY |
23461 | |
23462 | ||
c0d27fcc MR |
23463 | |
23464 | as_lineno_1=$LINENO | |
23465 | as_lineno_2=$LINENO | |
c0d27fcc | 23466 | test "x$as_lineno_1" != "x$as_lineno_2" && |
ca81d7a0 | 23467 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
c0d27fcc MR |
23468 | |
23469 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
23470 | # uniformly replaced by the line number. The first 'sed' inserts a | |
ca81d7a0 JD |
23471 | # line-number line after each line using $LINENO; the second 'sed' |
23472 | # does the real work. The second script uses 'N' to pair each | |
23473 | # line-number line with the line containing $LINENO, and appends | |
23474 | # trailing '-' during substitution so that $LINENO is not a special | |
23475 | # case at line end. | |
c0d27fcc | 23476 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
ca81d7a0 JD |
23477 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
23478 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
23479 | sed -n ' | |
23480 | p | |
23481 | /[$]LINENO/= | |
23482 | ' <$as_myself | | |
c0d27fcc | 23483 | sed ' |
ca81d7a0 JD |
23484 | s/[$]LINENO.*/&-/ |
23485 | t lineno | |
23486 | b | |
23487 | :lineno | |
c0d27fcc | 23488 | N |
ca81d7a0 JD |
23489 | :loop |
23490 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c0d27fcc | 23491 | t loop |
ca81d7a0 | 23492 | s/-\n.*// |
c0d27fcc | 23493 | ' >$as_me.lineno && |
ca81d7a0 JD |
23494 | chmod +x "$as_me.lineno" || |
23495 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
c0d27fcc MR |
23496 | { (exit 1); exit 1; }; } |
23497 | ||
23498 | # Don't try to exec as it changes $[0], causing all sort of problems | |
23499 | # (the dirname of $[0] is not the place where we might find the | |
ca81d7a0 JD |
23500 | # original and so on. Autoconf is especially sensitive to this). |
23501 | . "./$as_me.lineno" | |
c0d27fcc MR |
23502 | # Exit status is that of the last command. |
23503 | exit | |
23504 | } | |
23505 | ||
23506 | ||
ca81d7a0 JD |
23507 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
23508 | as_dirname=dirname | |
23509 | else | |
23510 | as_dirname=false | |
23511 | fi | |
23512 | ||
23513 | ECHO_C= ECHO_N= ECHO_T= | |
23514 | case `echo -n x` in | |
23515 | -n*) | |
23516 | case `echo 'x\c'` in | |
23517 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
23518 | *) ECHO_C='\c';; | |
23519 | esac;; | |
23520 | *) | |
23521 | ECHO_N='-n';; | |
c0d27fcc | 23522 | esac |
503d2be0 | 23523 | |
ca81d7a0 JD |
23524 | if expr a : '\(a\)' >/dev/null 2>&1 && |
23525 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
503d2be0 AS |
23526 | as_expr=expr |
23527 | else | |
23528 | as_expr=false | |
23529 | fi | |
23530 | ||
23531 | rm -f conf$$ conf$$.exe conf$$.file | |
ca81d7a0 JD |
23532 | if test -d conf$$.dir; then |
23533 | rm -f conf$$.dir/conf$$.file | |
23534 | else | |
23535 | rm -f conf$$.dir | |
23536 | mkdir conf$$.dir | |
23537 | fi | |
503d2be0 AS |
23538 | echo >conf$$.file |
23539 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
ca81d7a0 JD |
23540 | as_ln_s='ln -s' |
23541 | # ... but there are two gotchas: | |
23542 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
23543 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
23544 | # In both cases, we have to default to `cp -p'. | |
23545 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
503d2be0 | 23546 | as_ln_s='cp -p' |
503d2be0 AS |
23547 | elif ln conf$$.file conf$$ 2>/dev/null; then |
23548 | as_ln_s=ln | |
23549 | else | |
23550 | as_ln_s='cp -p' | |
23551 | fi | |
ca81d7a0 JD |
23552 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
23553 | rmdir conf$$.dir 2>/dev/null | |
503d2be0 | 23554 | |
6bae0ccf DL |
23555 | if mkdir -p . 2>/dev/null; then |
23556 | as_mkdir_p=: | |
23557 | else | |
edfaf76d | 23558 | test -d ./-p && rmdir ./-p |
6bae0ccf DL |
23559 | as_mkdir_p=false |
23560 | fi | |
23561 | ||
f053c89f CY |
23562 | if test -x / >/dev/null 2>&1; then |
23563 | as_test_x='test -x' | |
ca81d7a0 | 23564 | else |
f053c89f CY |
23565 | if ls -dL / >/dev/null 2>&1; then |
23566 | as_ls_L_option=L | |
23567 | else | |
23568 | as_ls_L_option= | |
23569 | fi | |
23570 | as_test_x=' | |
23571 | eval sh -c '\'' | |
23572 | if test -d "$1"; then | |
23573 | test -d "$1/."; | |
23574 | else | |
23575 | case $1 in | |
23576 | -*)set "./$1";; | |
23577 | esac; | |
23578 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
23579 | ???[sx]*):;;*)false;;esac;fi | |
23580 | '\'' sh | |
23581 | ' | |
ca81d7a0 | 23582 | fi |
f053c89f | 23583 | as_executable_p=$as_test_x |
503d2be0 | 23584 | |
c0d27fcc | 23585 | # Sed expression to map a string onto a valid CPP name. |
edfaf76d | 23586 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
c0d27fcc MR |
23587 | |
23588 | # Sed expression to map a string onto a valid variable name. | |
edfaf76d | 23589 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
503d2be0 | 23590 | |
503d2be0 | 23591 | |
503d2be0 AS |
23592 | exec 6>&1 |
23593 | ||
ca81d7a0 | 23594 | # Save the log message, to keep $[0] and so on meaningful, and to |
c0d27fcc | 23595 | # report actual input values of CONFIG_FILES etc. instead of their |
ca81d7a0 JD |
23596 | # values after options handling. |
23597 | ac_log=" | |
c0d27fcc | 23598 | This file was extended by $as_me, which was |
f053c89f | 23599 | generated by GNU Autoconf 2.61. Invocation command line was |
c0d27fcc MR |
23600 | |
23601 | CONFIG_FILES = $CONFIG_FILES | |
23602 | CONFIG_HEADERS = $CONFIG_HEADERS | |
23603 | CONFIG_LINKS = $CONFIG_LINKS | |
23604 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
23605 | $ $0 $@ | |
23606 | ||
ca81d7a0 JD |
23607 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
23608 | " | |
23609 | ||
503d2be0 AS |
23610 | _ACEOF |
23611 | ||
ca81d7a0 | 23612 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 | 23613 | # Files that config.status was made for. |
ca81d7a0 JD |
23614 | config_files="$ac_config_files" |
23615 | config_headers="$ac_config_headers" | |
23616 | config_commands="$ac_config_commands" | |
4b411bfe | 23617 | |
ca81d7a0 | 23618 | _ACEOF |
503d2be0 | 23619 | |
c0d27fcc | 23620 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
23621 | ac_cs_usage="\ |
23622 | \`$as_me' instantiates files from templates according to the | |
23623 | current configuration. | |
23624 | ||
23625 | Usage: $0 [OPTIONS] [FILE]... | |
23626 | ||
23627 | -h, --help print this help, then exit | |
f053c89f | 23628 | -V, --version print version number and configuration settings, then exit |
19650fd6 | 23629 | -q, --quiet do not print progress messages |
503d2be0 AS |
23630 | -d, --debug don't remove temporary files |
23631 | --recheck update $as_me by reconfiguring in the same conditions | |
23632 | --file=FILE[:TEMPLATE] | |
edfaf76d | 23633 | instantiate the configuration file FILE |
503d2be0 | 23634 | --header=FILE[:TEMPLATE] |
edfaf76d | 23635 | instantiate the configuration header FILE |
503d2be0 AS |
23636 | |
23637 | Configuration files: | |
23638 | $config_files | |
23639 | ||
23640 | Configuration headers: | |
23641 | $config_headers | |
23642 | ||
23643 | Configuration commands: | |
23644 | $config_commands | |
23645 | ||
23646 | Report bugs to <bug-autoconf@gnu.org>." | |
4b411bfe | 23647 | |
ca81d7a0 | 23648 | _ACEOF |
c0d27fcc | 23649 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
23650 | ac_cs_version="\\ |
23651 | config.status | |
f053c89f | 23652 | configured by $0, generated by GNU Autoconf 2.61, |
ca81d7a0 | 23653 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
503d2be0 | 23654 | |
040c474e | 23655 | Copyright (C) 2006 Free Software Foundation, Inc. |
503d2be0 AS |
23656 | This config.status script is free software; the Free Software Foundation |
23657 | gives unlimited permission to copy, distribute and modify it." | |
ca81d7a0 JD |
23658 | |
23659 | ac_pwd='$ac_pwd' | |
23660 | srcdir='$srcdir' | |
23661 | INSTALL='$INSTALL' | |
c0d27fcc | 23662 | _ACEOF |
503d2be0 | 23663 | |
c0d27fcc | 23664 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
23665 | # If no file are specified by the user, then we need to provide default |
23666 | # value. By we need to know if files were specified by the user. | |
23667 | ac_need_defaults=: | |
23668 | while test $# != 0 | |
ba4481b5 | 23669 | do |
503d2be0 AS |
23670 | case $1 in |
23671 | --*=*) | |
ca81d7a0 JD |
23672 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
23673 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
6bae0ccf DL |
23674 | ac_shift=: |
23675 | ;; | |
ca81d7a0 | 23676 | *) |
6bae0ccf DL |
23677 | ac_option=$1 |
23678 | ac_optarg=$2 | |
23679 | ac_shift=shift | |
503d2be0 | 23680 | ;; |
503d2be0 AS |
23681 | esac |
23682 | ||
6bae0ccf | 23683 | case $ac_option in |
503d2be0 | 23684 | # Handling of the options. |
19650fd6 AS |
23685 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
23686 | ac_cs_recheck=: ;; | |
ca81d7a0 JD |
23687 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
23688 | echo "$ac_cs_version"; exit ;; | |
23689 | --debug | --debu | --deb | --de | --d | -d ) | |
503d2be0 AS |
23690 | debug=: ;; |
23691 | --file | --fil | --fi | --f ) | |
6bae0ccf DL |
23692 | $ac_shift |
23693 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
503d2be0 AS |
23694 | ac_need_defaults=false;; |
23695 | --header | --heade | --head | --hea ) | |
6bae0ccf DL |
23696 | $ac_shift |
23697 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
503d2be0 | 23698 | ac_need_defaults=false;; |
ca81d7a0 JD |
23699 | --he | --h) |
23700 | # Conflict between --help and --header | |
23701 | { echo "$as_me: error: ambiguous option: $1 | |
23702 | Try \`$0 --help' for more information." >&2 | |
23703 | { (exit 1); exit 1; }; };; | |
23704 | --help | --hel | -h ) | |
23705 | echo "$ac_cs_usage"; exit ;; | |
19650fd6 AS |
23706 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
23707 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
23708 | ac_cs_silent=: ;; | |
503d2be0 AS |
23709 | |
23710 | # This is an error. | |
ca81d7a0 JD |
23711 | -*) { echo "$as_me: error: unrecognized option: $1 |
23712 | Try \`$0 --help' for more information." >&2 | |
503d2be0 AS |
23713 | { (exit 1); exit 1; }; } ;; |
23714 | ||
ca81d7a0 JD |
23715 | *) ac_config_targets="$ac_config_targets $1" |
23716 | ac_need_defaults=false ;; | |
503d2be0 | 23717 | |
ba4481b5 | 23718 | esac |
503d2be0 | 23719 | shift |
ba4481b5 DL |
23720 | done |
23721 | ||
19650fd6 AS |
23722 | ac_configure_extra_args= |
23723 | ||
23724 | if $ac_cs_silent; then | |
23725 | exec 6>/dev/null | |
23726 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
23727 | fi | |
23728 | ||
23729 | _ACEOF | |
23730 | cat >>$CONFIG_STATUS <<_ACEOF | |
23731 | if \$ac_cs_recheck; then | |
ca81d7a0 JD |
23732 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
23733 | CONFIG_SHELL=$SHELL | |
23734 | export CONFIG_SHELL | |
23735 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
19650fd6 AS |
23736 | fi |
23737 | ||
503d2be0 | 23738 | _ACEOF |
ca81d7a0 JD |
23739 | cat >>$CONFIG_STATUS <<\_ACEOF |
23740 | exec 5>>config.log | |
23741 | { | |
23742 | echo | |
23743 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
23744 | ## Running $as_me. ## | |
23745 | _ASBOX | |
23746 | echo "$ac_log" | |
23747 | } >&5 | |
ba4481b5 | 23748 | |
ca81d7a0 | 23749 | _ACEOF |
c0d27fcc | 23750 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 | 23751 | # |
ca81d7a0 | 23752 | # INIT-COMMANDS |
503d2be0 | 23753 | # |
503d2be0 AS |
23754 | GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" |
23755 | ||
c0d27fcc MR |
23756 | _ACEOF |
23757 | ||
4b411bfe | 23758 | cat >>$CONFIG_STATUS <<\_ACEOF |
ca81d7a0 JD |
23759 | |
23760 | # Handling of arguments. | |
503d2be0 AS |
23761 | for ac_config_target in $ac_config_targets |
23762 | do | |
ca81d7a0 JD |
23763 | case $ac_config_target in |
23764 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
23765 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
23766 | "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
23767 | "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
23768 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
23769 | "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | |
23770 | "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; | |
23771 | "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | |
23772 | "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;; | |
23773 | "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;; | |
23774 | "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; | |
23775 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
23776 | ||
c0d27fcc | 23777 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
503d2be0 AS |
23778 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
23779 | { (exit 1); exit 1; }; };; | |
23780 | esac | |
ba4481b5 | 23781 | done |
503d2be0 | 23782 | |
ca81d7a0 | 23783 | |
503d2be0 AS |
23784 | # If the user did not use the arguments to specify the items to instantiate, |
23785 | # then the envvar interface is used. Set only those that are not. | |
23786 | # We use the long form for the default assignment because of an extremely | |
23787 | # bizarre bug on SunOS 4.1.3. | |
23788 | if $ac_need_defaults; then | |
23789 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
23790 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
23791 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
ba4481b5 | 23792 | fi |
503d2be0 | 23793 | |
19650fd6 | 23794 | # Have a temporary directory for convenience. Make it in the build tree |
ca81d7a0 | 23795 | # simply because there is no reason against having it here, and in addition, |
19650fd6 | 23796 | # creating and moving files from /tmp can sometimes cause problems. |
ca81d7a0 JD |
23797 | # Hook for its removal unless debugging. |
23798 | # Note that there is a small window in which the directory will not be cleaned: | |
23799 | # after its creation but before its name has been assigned to `$tmp'. | |
503d2be0 AS |
23800 | $debug || |
23801 | { | |
ca81d7a0 JD |
23802 | tmp= |
23803 | trap 'exit_status=$? | |
23804 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
23805 | ' 0 | |
503d2be0 AS |
23806 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
23807 | } | |
503d2be0 | 23808 | # Create a (secure) tmp directory for tmp files. |
19650fd6 | 23809 | |
503d2be0 | 23810 | { |
ca81d7a0 | 23811 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
503d2be0 AS |
23812 | test -n "$tmp" && test -d "$tmp" |
23813 | } || | |
23814 | { | |
ca81d7a0 JD |
23815 | tmp=./conf$$-$RANDOM |
23816 | (umask 077 && mkdir "$tmp") | |
503d2be0 AS |
23817 | } || |
23818 | { | |
19650fd6 | 23819 | echo "$me: cannot create a temporary directory in ." >&2 |
503d2be0 AS |
23820 | { (exit 1); exit 1; } |
23821 | } | |
23822 | ||
503d2be0 | 23823 | # |
ca81d7a0 | 23824 | # Set up the sed scripts for CONFIG_FILES section. |
503d2be0 AS |
23825 | # |
23826 | ||
23827 | # No need to generate the scripts if there are no CONFIG_FILES. | |
23828 | # This happens for instance when ./config.status config.h | |
ca81d7a0 JD |
23829 | if test -n "$CONFIG_FILES"; then |
23830 | ||
23831 | _ACEOF | |
23832 | ||
23833 | ||
23834 | ||
23835 | ac_delim='%!_!# ' | |
23836 | for ac_last_try in false false false false false :; do | |
23837 | cat >conf$$subs.sed <<_ACEOF | |
23838 | SHELL!$SHELL$ac_delim | |
23839 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
23840 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
23841 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
23842 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
23843 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
23844 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
23845 | exec_prefix!$exec_prefix$ac_delim | |
23846 | prefix!$prefix$ac_delim | |
23847 | program_transform_name!$program_transform_name$ac_delim | |
23848 | bindir!$bindir$ac_delim | |
23849 | sbindir!$sbindir$ac_delim | |
23850 | libexecdir!$libexecdir$ac_delim | |
23851 | datarootdir!$datarootdir$ac_delim | |
23852 | datadir!$datadir$ac_delim | |
23853 | sysconfdir!$sysconfdir$ac_delim | |
23854 | sharedstatedir!$sharedstatedir$ac_delim | |
23855 | localstatedir!$localstatedir$ac_delim | |
23856 | includedir!$includedir$ac_delim | |
23857 | oldincludedir!$oldincludedir$ac_delim | |
23858 | docdir!$docdir$ac_delim | |
23859 | infodir!$infodir$ac_delim | |
23860 | htmldir!$htmldir$ac_delim | |
23861 | dvidir!$dvidir$ac_delim | |
23862 | pdfdir!$pdfdir$ac_delim | |
23863 | psdir!$psdir$ac_delim | |
23864 | libdir!$libdir$ac_delim | |
23865 | localedir!$localedir$ac_delim | |
23866 | mandir!$mandir$ac_delim | |
23867 | DEFS!$DEFS$ac_delim | |
23868 | ECHO_C!$ECHO_C$ac_delim | |
23869 | ECHO_N!$ECHO_N$ac_delim | |
23870 | ECHO_T!$ECHO_T$ac_delim | |
23871 | LIBS!$LIBS$ac_delim | |
23872 | build_alias!$build_alias$ac_delim | |
23873 | host_alias!$host_alias$ac_delim | |
23874 | target_alias!$target_alias$ac_delim | |
23875 | MAINT!$MAINT$ac_delim | |
23876 | build!$build$ac_delim | |
23877 | build_cpu!$build_cpu$ac_delim | |
23878 | build_vendor!$build_vendor$ac_delim | |
23879 | build_os!$build_os$ac_delim | |
23880 | host!$host$ac_delim | |
23881 | host_cpu!$host_cpu$ac_delim | |
23882 | host_vendor!$host_vendor$ac_delim | |
23883 | host_os!$host_os$ac_delim | |
23884 | CC!$CC$ac_delim | |
23885 | CFLAGS!$CFLAGS$ac_delim | |
23886 | LDFLAGS!$LDFLAGS$ac_delim | |
23887 | CPPFLAGS!$CPPFLAGS$ac_delim | |
23888 | ac_ct_CC!$ac_ct_CC$ac_delim | |
23889 | EXEEXT!$EXEEXT$ac_delim | |
23890 | OBJEXT!$OBJEXT$ac_delim | |
23891 | CPP!$CPP$ac_delim | |
23892 | GREP!$GREP$ac_delim | |
23893 | EGREP!$EGREP$ac_delim | |
23894 | LN_S!$LN_S$ac_delim | |
23895 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
23896 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
23897 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
23898 | RANLIB!$RANLIB$ac_delim | |
23899 | INSTALL_INFO!$INSTALL_INFO$ac_delim | |
23900 | GZIP_PROG!$GZIP_PROG$ac_delim | |
23901 | LIBSOUND!$LIBSOUND$ac_delim | |
23902 | PKG_CONFIG!$PKG_CONFIG$ac_delim | |
23903 | ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim | |
23904 | ALSA_LIBS!$ALSA_LIBS$ac_delim | |
23905 | CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim | |
23906 | SET_MAKE!$SET_MAKE$ac_delim | |
23907 | XMKMF!$XMKMF$ac_delim | |
23908 | GTK_CFLAGS!$GTK_CFLAGS$ac_delim | |
23909 | GTK_LIBS!$GTK_LIBS$ac_delim | |
9d89ffd0 JD |
23910 | XFT_CFLAGS!$XFT_CFLAGS$ac_delim |
23911 | XFT_LIBS!$XFT_LIBS$ac_delim | |
ca81d7a0 JD |
23912 | ALLOCA!$ALLOCA$ac_delim |
23913 | liblockfile!$liblockfile$ac_delim | |
23914 | LIBOBJS!$LIBOBJS$ac_delim | |
23915 | NEED_SETGID!$NEED_SETGID$ac_delim | |
23916 | KMEM_GROUP!$KMEM_GROUP$ac_delim | |
23917 | GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim | |
23918 | GETOPT_H!$GETOPT_H$ac_delim | |
23919 | GETOPTOBJS!$GETOPTOBJS$ac_delim | |
23920 | version!$version$ac_delim | |
23921 | configuration!$configuration$ac_delim | |
23922 | canonical!$canonical$ac_delim | |
23923 | srcdir!$srcdir$ac_delim | |
23924 | lispdir!$lispdir$ac_delim | |
23925 | locallisppath!$locallisppath$ac_delim | |
23926 | lisppath!$lisppath$ac_delim | |
23927 | x_default_search_path!$x_default_search_path$ac_delim | |
23928 | etcdir!$etcdir$ac_delim | |
23929 | archlibdir!$archlibdir$ac_delim | |
23930 | bitmapdir!$bitmapdir$ac_delim | |
23931 | gamedir!$gamedir$ac_delim | |
23932 | gameuser!$gameuser$ac_delim | |
23933 | c_switch_system!$c_switch_system$ac_delim | |
23934 | c_switch_machine!$c_switch_machine$ac_delim | |
ca81d7a0 JD |
23935 | _ACEOF |
23936 | ||
23937 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
23938 | break | |
23939 | elif $ac_last_try; then | |
23940 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
23941 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
23942 | { (exit 1); exit 1; }; } | |
23943 | else | |
23944 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8eeae1c9 | 23945 | fi |
ca81d7a0 JD |
23946 | done |
23947 | ||
23948 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
23949 | if test -n "$ac_eof"; then | |
23950 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
23951 | ac_eof=`expr $ac_eof + 1` | |
23952 | fi | |
23953 | ||
23954 | cat >>$CONFIG_STATUS <<_ACEOF | |
23955 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
23956 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
23957 | _ACEOF | |
23958 | sed ' | |
23959 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
23960 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
23961 | :n | |
23962 | t n | |
23963 | s/'"$ac_delim"'$/,g/; t | |
23964 | s/$/\\/; p | |
23965 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
23966 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
23967 | rm -f conf$$subs.sed | |
23968 | cat >>$CONFIG_STATUS <<_ACEOF | |
23969 | CEOF$ac_eof | |
23970 | _ACEOF | |
23971 | ||
23972 | ||
23973 | ac_delim='%!_!# ' | |
23974 | for ac_last_try in false false false false false :; do | |
23975 | cat >conf$$subs.sed <<_ACEOF | |
9d89ffd0 JD |
23976 | LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim |
23977 | LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim | |
ca81d7a0 JD |
23978 | C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim |
23979 | X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim | |
23980 | machfile!$machfile$ac_delim | |
23981 | opsysfile!$opsysfile$ac_delim | |
23982 | carbon_appdir!$carbon_appdir$ac_delim | |
23983 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
23984 | _ACEOF | |
23985 | ||
9d89ffd0 | 23986 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then |
ca81d7a0 JD |
23987 | break |
23988 | elif $ac_last_try; then | |
23989 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
23990 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
23991 | { (exit 1); exit 1; }; } | |
23992 | else | |
23993 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
23994 | fi | |
23995 | done | |
23996 | ||
23997 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
23998 | if test -n "$ac_eof"; then | |
23999 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
24000 | ac_eof=`expr $ac_eof + 1` | |
24001 | fi | |
8eeae1c9 | 24002 | |
ca81d7a0 JD |
24003 | cat >>$CONFIG_STATUS <<_ACEOF |
24004 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
24005 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
24006 | _ACEOF | |
24007 | sed ' | |
24008 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
24009 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
24010 | :n | |
24011 | t n | |
24012 | s/'"$ac_delim"'$/,g/; t | |
24013 | s/$/\\/; p | |
24014 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
24015 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
24016 | rm -f conf$$subs.sed | |
24017 | cat >>$CONFIG_STATUS <<_ACEOF | |
24018 | :end | |
24019 | s/|#_!!_#|//g | |
24020 | CEOF$ac_eof | |
c0d27fcc | 24021 | _ACEOF |
ca81d7a0 JD |
24022 | |
24023 | ||
24024 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
24025 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
24026 | # trailing colons and then remove the whole line if VPATH becomes empty | |
24027 | # (actually we leave an empty line to preserve line numbers). | |
24028 | if test "x$srcdir" = x.; then | |
24029 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
24030 | s/:*\$(srcdir):*/:/ | |
24031 | s/:*\${srcdir}:*/:/ | |
24032 | s/:*@srcdir@:*/:/ | |
24033 | s/^\([^=]*=[ ]*\):*/\1/ | |
24034 | s/:*$// | |
24035 | s/^[^=]*=[ ]*$// | |
24036 | }' | |
24037 | fi | |
24038 | ||
c0d27fcc | 24039 | cat >>$CONFIG_STATUS <<\_ACEOF |
ca81d7a0 JD |
24040 | fi # test -n "$CONFIG_FILES" |
24041 | ||
24042 | ||
24043 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
24044 | do | |
24045 | case $ac_tag in | |
24046 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
24047 | esac | |
24048 | case $ac_mode$ac_tag in | |
24049 | :[FHL]*:*);; | |
24050 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
24051 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
24052 | { (exit 1); exit 1; }; };; | |
24053 | :[FH]-) ac_tag=-:-;; | |
24054 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
24055 | esac | |
24056 | ac_save_IFS=$IFS | |
24057 | IFS=: | |
24058 | set x $ac_tag | |
24059 | IFS=$ac_save_IFS | |
24060 | shift | |
24061 | ac_file=$1 | |
24062 | shift | |
24063 | ||
24064 | case $ac_mode in | |
24065 | :L) ac_source=$1;; | |
24066 | :[FH]) | |
24067 | ac_file_inputs= | |
24068 | for ac_f | |
24069 | do | |
24070 | case $ac_f in | |
24071 | -) ac_f="$tmp/stdin";; | |
24072 | *) # Look for the file first in the build tree, then in the source tree | |
24073 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
24074 | # because $ac_f cannot contain `:'. | |
24075 | test -f "$ac_f" || | |
24076 | case $ac_f in | |
24077 | [\\/$]*) false;; | |
24078 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
24079 | esac || | |
24080 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
24081 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
24082 | { (exit 1); exit 1; }; };; | |
24083 | esac | |
24084 | ac_file_inputs="$ac_file_inputs $ac_f" | |
24085 | done | |
24086 | ||
24087 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
24088 | # use $as_me), people would be surprised to read: | |
24089 | # /* config.h. Generated by config.status. */ | |
24090 | configure_input="Generated from "`IFS=: | |
24091 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
24092 | if test x"$ac_file" != x-; then | |
24093 | configure_input="$ac_file. $configure_input" | |
24094 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
24095 | echo "$as_me: creating $ac_file" >&6;} | |
24096 | fi | |
24097 | ||
24098 | case $ac_tag in | |
24099 | *:-:* | *:-) cat >"$tmp/stdin";; | |
24100 | esac | |
24101 | ;; | |
ba4481b5 DL |
24102 | esac |
24103 | ||
ca81d7a0 | 24104 | ac_dir=`$as_dirname -- "$ac_file" || |
c0d27fcc | 24105 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
edfaf76d LK |
24106 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
24107 | X"$ac_file" : 'X\(//\)$' \| \ | |
ca81d7a0 | 24108 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
503d2be0 | 24109 | echo X"$ac_file" | |
ca81d7a0 JD |
24110 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
24111 | s//\1/ | |
24112 | q | |
24113 | } | |
24114 | /^X\(\/\/\)[^/].*/{ | |
24115 | s//\1/ | |
24116 | q | |
24117 | } | |
24118 | /^X\(\/\/\)$/{ | |
24119 | s//\1/ | |
24120 | q | |
24121 | } | |
24122 | /^X\(\/\).*/{ | |
24123 | s//\1/ | |
24124 | q | |
24125 | } | |
24126 | s/.*/./; q'` | |
24127 | { as_dir="$ac_dir" | |
24128 | case $as_dir in #( | |
24129 | -*) as_dir=./$as_dir;; | |
24130 | esac | |
24131 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
6bae0ccf | 24132 | as_dirs= |
ca81d7a0 JD |
24133 | while :; do |
24134 | case $as_dir in #( | |
24135 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
24136 | *) as_qdir=$as_dir;; | |
24137 | esac | |
24138 | as_dirs="'$as_qdir' $as_dirs" | |
24139 | as_dir=`$as_dirname -- "$as_dir" || | |
6bae0ccf | 24140 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
edfaf76d LK |
24141 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
24142 | X"$as_dir" : 'X\(//\)$' \| \ | |
ca81d7a0 | 24143 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
6bae0ccf | 24144 | echo X"$as_dir" | |
ca81d7a0 JD |
24145 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
24146 | s//\1/ | |
24147 | q | |
24148 | } | |
24149 | /^X\(\/\/\)[^/].*/{ | |
24150 | s//\1/ | |
24151 | q | |
24152 | } | |
24153 | /^X\(\/\/\)$/{ | |
24154 | s//\1/ | |
24155 | q | |
24156 | } | |
24157 | /^X\(\/\).*/{ | |
24158 | s//\1/ | |
24159 | q | |
24160 | } | |
24161 | s/.*/./; q'` | |
24162 | test -d "$as_dir" && break | |
6bae0ccf | 24163 | done |
ca81d7a0 JD |
24164 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
24165 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
24166 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
6bae0ccf | 24167 | { (exit 1); exit 1; }; }; } |
c0d27fcc | 24168 | ac_builddir=. |
98418dba | 24169 | |
ca81d7a0 JD |
24170 | case "$ac_dir" in |
24171 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
24172 | *) | |
c0d27fcc | 24173 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
ca81d7a0 JD |
24174 | # A ".." for each directory in $ac_dir_suffix. |
24175 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
24176 | case $ac_top_builddir_sub in | |
24177 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
24178 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
24179 | esac ;; | |
24180 | esac | |
24181 | ac_abs_top_builddir=$ac_pwd | |
24182 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
24183 | # for backward compatibility: | |
24184 | ac_top_builddir=$ac_top_build_prefix | |
c0d27fcc MR |
24185 | |
24186 | case $srcdir in | |
ca81d7a0 | 24187 | .) # We are building in place. |
c0d27fcc | 24188 | ac_srcdir=. |
ca81d7a0 JD |
24189 | ac_top_srcdir=$ac_top_builddir_sub |
24190 | ac_abs_top_srcdir=$ac_pwd ;; | |
24191 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c0d27fcc | 24192 | ac_srcdir=$srcdir$ac_dir_suffix; |
ca81d7a0 JD |
24193 | ac_top_srcdir=$srcdir |
24194 | ac_abs_top_srcdir=$srcdir ;; | |
24195 | *) # Relative name. | |
24196 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
24197 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
24198 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c0d27fcc | 24199 | esac |
ca81d7a0 | 24200 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
edfaf76d | 24201 | |
c0d27fcc | 24202 | |
ca81d7a0 JD |
24203 | case $ac_mode in |
24204 | :F) | |
24205 | # | |
24206 | # CONFIG_FILE | |
24207 | # | |
ba4481b5 | 24208 | |
503d2be0 AS |
24209 | case $INSTALL in |
24210 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
ca81d7a0 | 24211 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
ba4481b5 | 24212 | esac |
ca81d7a0 | 24213 | _ACEOF |
ba4481b5 | 24214 | |
ca81d7a0 JD |
24215 | cat >>$CONFIG_STATUS <<\_ACEOF |
24216 | # If the template does not know about datarootdir, expand it. | |
24217 | # FIXME: This hack should be removed a few years after 2.60. | |
24218 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8eeae1c9 | 24219 | |
ca81d7a0 JD |
24220 | case `sed -n '/datarootdir/ { |
24221 | p | |
24222 | q | |
24223 | } | |
24224 | /@datadir@/p | |
24225 | /@docdir@/p | |
24226 | /@infodir@/p | |
24227 | /@localedir@/p | |
24228 | /@mandir@/p | |
24229 | ' $ac_file_inputs` in | |
24230 | *datarootdir*) ac_datarootdir_seen=yes;; | |
24231 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
24232 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
24233 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8eeae1c9 | 24234 | _ACEOF |
ca81d7a0 JD |
24235 | cat >>$CONFIG_STATUS <<_ACEOF |
24236 | ac_datarootdir_hack=' | |
24237 | s&@datadir@&$datadir&g | |
24238 | s&@docdir@&$docdir&g | |
24239 | s&@infodir@&$infodir&g | |
24240 | s&@localedir@&$localedir&g | |
24241 | s&@mandir@&$mandir&g | |
24242 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
24243 | esac | |
24244 | _ACEOF | |
24245 | ||
24246 | # Neutralize VPATH when `$srcdir' = `.'. | |
24247 | # Shell code in configure.ac might set extrasub. | |
24248 | # FIXME: do we really want to maintain this feature? | |
c0d27fcc | 24249 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
24250 | sed "$ac_vpsub |
24251 | $extrasub | |
c0d27fcc MR |
24252 | _ACEOF |
24253 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
24254 | :t |
24255 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ca81d7a0 JD |
24256 | s&@configure_input@&$configure_input&;t t |
24257 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
24258 | s&@srcdir@&$ac_srcdir&;t t | |
24259 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
24260 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
24261 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
24262 | s&@builddir@&$ac_builddir&;t t | |
24263 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
24264 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
24265 | s&@INSTALL@&$ac_INSTALL&;t t | |
24266 | $ac_datarootdir_hack | |
24267 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
24268 | ||
24269 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
24270 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
24271 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
24272 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
24273 | which seems to be undefined. Please make sure it is defined." >&5 | |
24274 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
24275 | which seems to be undefined. Please make sure it is defined." >&2;} | |
24276 | ||
24277 | rm -f "$tmp/stdin" | |
503d2be0 | 24278 | case $ac_file in |
ca81d7a0 JD |
24279 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
24280 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
ba4481b5 | 24281 | esac |
ca81d7a0 JD |
24282 | ;; |
24283 | :H) | |
24284 | # | |
24285 | # CONFIG_HEADER | |
24286 | # | |
24287 | _ACEOF | |
24288 | ||
24289 | # Transform confdefs.h into a sed script `conftest.defines', that | |
24290 | # substitutes the proper values into config.h.in to produce config.h. | |
24291 | rm -f conftest.defines conftest.tail | |
24292 | # First, append a space to every undef/define line, to ease matching. | |
24293 | echo 's/$/ /' >conftest.defines | |
24294 | # Then, protect against being on the right side of a sed subst, or in | |
24295 | # an unquoted here document, in config.status. If some macros were | |
24296 | # called several times there might be several #defines for the same | |
24297 | # symbol, which is useless. But do not sort them, since the last | |
24298 | # AC_DEFINE must be honored. | |
24299 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
24300 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
24301 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
24302 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
24303 | # just an empty string. | |
24304 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
24305 | ac_dB='\\)[ (].*,\\1define\\2' | |
24306 | ac_dC=' ' | |
24307 | ac_dD=' ,' | |
24308 | ||
24309 | uniq confdefs.h | | |
24310 | sed -n ' | |
24311 | t rset | |
24312 | :rset | |
24313 | s/^[ ]*#[ ]*define[ ][ ]*// | |
24314 | t ok | |
24315 | d | |
24316 | :ok | |
24317 | s/[\\&,]/\\&/g | |
24318 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
24319 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
24320 | ' >>conftest.defines | |
24321 | ||
24322 | # Remove the space that was appended to ease matching. | |
24323 | # Then replace #undef with comments. This is necessary, for | |
ba4481b5 DL |
24324 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
24325 | # on some systems where configure will not decide to define it. | |
ca81d7a0 JD |
24326 | # (The regexp can be short, since the line contains either #define or #undef.) |
24327 | echo 's/ $// | |
24328 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
24329 | ||
24330 | # Break up conftest.defines: | |
24331 | ac_max_sed_lines=50 | |
24332 | ||
24333 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
24334 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
24335 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
24336 | # et cetera. | |
24337 | ac_in='$ac_file_inputs' | |
24338 | ac_out='"$tmp/out1"' | |
24339 | ac_nxt='"$tmp/out2"' | |
24340 | ||
24341 | while : | |
503d2be0 | 24342 | do |
ca81d7a0 JD |
24343 | # Write a here document: |
24344 | cat >>$CONFIG_STATUS <<_ACEOF | |
24345 | # First, check the format of the line: | |
24346 | cat >"\$tmp/defines.sed" <<\\CEOF | |
24347 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
24348 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
24349 | b | |
24350 | :def | |
24351 | _ACEOF | |
24352 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
503d2be0 | 24353 | echo 'CEOF |
ca81d7a0 JD |
24354 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
24355 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
24356 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
24357 | grep . conftest.tail >/dev/null || break | |
503d2be0 AS |
24358 | rm -f conftest.defines |
24359 | mv conftest.tail conftest.defines | |
24360 | done | |
ca81d7a0 | 24361 | rm -f conftest.defines conftest.tail |
503d2be0 | 24362 | |
ca81d7a0 | 24363 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
c0d27fcc | 24364 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 | 24365 | if test x"$ac_file" != x-; then |
ca81d7a0 JD |
24366 | echo "/* $configure_input */" >"$tmp/config.h" |
24367 | cat "$ac_result" >>"$tmp/config.h" | |
24368 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
c0d27fcc | 24369 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
503d2be0 AS |
24370 | echo "$as_me: $ac_file is unchanged" >&6;} |
24371 | else | |
503d2be0 | 24372 | rm -f $ac_file |
ca81d7a0 | 24373 | mv "$tmp/config.h" $ac_file |
ba4481b5 | 24374 | fi |
503d2be0 | 24375 | else |
ca81d7a0 JD |
24376 | echo "/* $configure_input */" |
24377 | cat "$ac_result" | |
ba4481b5 | 24378 | fi |
ca81d7a0 JD |
24379 | rm -f "$tmp/out12" |
24380 | ;; | |
4b411bfe | 24381 | |
ca81d7a0 JD |
24382 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
24383 | echo "$as_me: executing $ac_file commands" >&6;} | |
24384 | ;; | |
24385 | esac | |
c0d27fcc | 24386 | |
4b411bfe | 24387 | |
ca81d7a0 JD |
24388 | case $ac_file$ac_mode in |
24389 | "default":C) | |
ba4481b5 DL |
24390 | |
24391 | ### Make the necessary directories, if they don't exist. | |
24392 | for dir in etc lisp ; do | |
24393 | test -d ${dir} || mkdir ${dir} | |
24394 | done | |
24395 | ||
24396 | # Build src/Makefile from ${srcdir}/src/Makefile.c | |
24397 | # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
24398 | # This must be done after src/config.h is built, since we rely on that file. | |
24399 | ||
24400 | # Now get this: Some word that is part of the ${srcdir} directory name | |
24401 | # or the ${configuration} value might, just might, happen to be an | |
24402 | # identifier like `sun4' or `i386' or something, and be predefined by | |
24403 | # the C preprocessor to some helpful value like 1, or maybe the empty | |
24404 | # string. Needless to say consequent macro substitutions are less | |
24405 | # than conducive to the makefile finding the correct directory. | |
24406 | undefs="`echo $top_srcdir $configuration $canonical | | |
24407 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
24408 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
24409 | `" | |
24410 | ||
24411 | echo creating src/epaths.h | |
4aa6b955 | 24412 | ${MAKE-make} epaths-force |
ba4481b5 | 24413 | |
1c203d4c DL |
24414 | # As of 2000-11-19, newest development versions of GNU cpp preprocess |
24415 | # `..' to `. .' unless invoked with -traditional | |
24416 | ||
d0e9bfd2 | 24417 | if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
1c203d4c DL |
24418 | CPPFLAGS="$CPPFLAGS -traditional" |
24419 | fi | |
24420 | ||
ba4481b5 DL |
24421 | echo creating lib-src/Makefile |
24422 | ( cd lib-src | |
24423 | rm -f junk.c junk1.c junk2.c | |
24424 | sed -e '/start of cpp stuff/q' \ | |
24425 | < Makefile.c > junk1.c | |
24426 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 24427 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 24428 | < Makefile.c > junk.c |
503d2be0 | 24429 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
24430 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
24431 | cat junk1.c junk2.c > Makefile.new | |
24432 | rm -f junk.c junk1.c junk2.c | |
24433 | chmod 444 Makefile.new | |
24434 | mv -f Makefile.new Makefile | |
24435 | ) | |
24436 | ||
24437 | echo creating src/Makefile | |
24438 | ( cd src | |
24439 | rm -f junk.c junk1.c junk2.c | |
24440 | sed -e '/start of cpp stuff/q' \ | |
24441 | < Makefile.c > junk1.c | |
24442 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 24443 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 24444 | < Makefile.c > junk.c |
503d2be0 | 24445 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
24446 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
24447 | cat junk1.c junk2.c > Makefile.new | |
24448 | rm -f junk.c junk1.c junk2.c | |
24449 | chmod 444 Makefile.new | |
24450 | mv -f Makefile.new Makefile | |
24451 | ) | |
24452 | ||
503d2be0 | 24453 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
ba4481b5 | 24454 | echo creating src/.gdbinit |
503d2be0 | 24455 | echo source $srcdir/src/.gdbinit > src/.gdbinit |
ba4481b5 DL |
24456 | fi |
24457 | ||
24458 | # This is how we know whether to re-run configure in certain cases. | |
24459 | touch src/config.stamp | |
24460 | ||
503d2be0 | 24461 | ;; |
ca81d7a0 | 24462 | |
503d2be0 | 24463 | esac |
ca81d7a0 | 24464 | done # for ac_tag |
503d2be0 | 24465 | |
ba4481b5 | 24466 | |
503d2be0 | 24467 | { (exit 0); exit 0; } |
c0d27fcc | 24468 | _ACEOF |
ba4481b5 | 24469 | chmod +x $CONFIG_STATUS |
503d2be0 AS |
24470 | ac_clean_files=$ac_clean_files_save |
24471 | ||
c0d27fcc | 24472 | |
503d2be0 AS |
24473 | # configure is writing to config.log, and then calls config.status. |
24474 | # config.status does its own redirection, appending to config.log. | |
24475 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
24476 | # by configure, so config.status won't be able to write to it; its | |
24477 | # output is simply discarded. So we exec the FD to /dev/null, | |
24478 | # effectively closing config.log, so it can be properly (re)opened and | |
24479 | # appended to by config.status. When coming back to configure, we | |
24480 | # need to make the FD available again. | |
24481 | if test "$no_create" != yes; then | |
24482 | ac_cs_success=: | |
19650fd6 AS |
24483 | ac_config_status_args= |
24484 | test "$silent" = yes && | |
24485 | ac_config_status_args="$ac_config_status_args --quiet" | |
503d2be0 | 24486 | exec 5>/dev/null |
19650fd6 | 24487 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
503d2be0 AS |
24488 | exec 5>>config.log |
24489 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
24490 | # would make configure fail if this is the last instruction. | |
24491 | $ac_cs_success || { (exit 1); exit 1; } | |
24492 | fi | |
f5f47add | 24493 | |
c0d27fcc | 24494 |