Commit | Line | Data |
---|---|---|
ba4481b5 | 1 | #! /bin/sh |
ba4481b5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
d6e01aa5 | 3 | # Generated by GNU Autoconf 2.61. |
ba4481b5 | 4 | # |
d6e01aa5 KL |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
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 | |
d6e01aa5 KL |
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+"$@"}'='"$@"' | |
d6e01aa5 KL |
21 | setopt NO_GLOB_SUBST |
22 | else | |
23 | case `(set -o) 2>/dev/null` in | |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
27 | fi | |
28 | ||
29 | ||
30 | ||
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 | |
503d2be0 AS |
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 | |
d6e01aa5 KL |
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. |
d6e01aa5 KL |
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 | |
d6e01aa5 | 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. | |
d6e01aa5 KL |
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 | ||
d6e01aa5 | 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. |
d6e01aa5 | 131 | as_me=`$as_basename -- "$0" || |
c0d27fcc MR |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 | X"$0" : 'X\(//\)$' \| \ | |
d6e01aa5 | 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c0d27fcc | 135 | echo X/"$0" | |
d6e01aa5 KL |
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 | |
d6e01aa5 KL |
150 | # CDPATH. |
151 | $as_unset CDPATH | |
6bae0ccf | 152 | |
c0d27fcc | 153 | |
d6e01aa5 KL |
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 | |
c0d27fcc MR |
159 | fi |
160 | ||
d6e01aa5 KL |
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 | } | |
c0d27fcc | 177 | |
d6e01aa5 KL |
178 | exitcode=0 |
179 | if as_func_success; then | |
180 | : | |
181 | else | |
182 | exitcode=1 | |
183 | echo as_func_success failed. | |
184 | fi | |
c0d27fcc | 185 | |
d6e01aa5 KL |
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 MR |
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
223 | do | |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
d6e01aa5 | 226 | case $as_dir in |
c0d27fcc | 227 | /*) |
d6e01aa5 KL |
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 | |
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 | |
248 | case `(set -o) 2>/dev/null` in | |
249 | *posix*) set -o posix ;; | |
250 | esac | |
251 | ||
252 | fi | |
253 | ||
254 | ||
255 | : | |
256 | _ASEOF | |
257 | }; then | |
258 | CONFIG_SHELL=$as_shell | |
259 | as_have_required=yes | |
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
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 | |
269 | case `(set -o) 2>/dev/null` in | |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
273 | fi | |
274 | ||
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 | ( | |
c0d27fcc MR |
328 | as_lineno_1=$LINENO |
329 | as_lineno_2=$LINENO | |
c0d27fcc | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
d6e01aa5 KL |
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") || { | |
d0162c10 JD |
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 | |
d6e01aa5 KL |
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 | |
d6e01aa5 KL |
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 |
d6e01aa5 KL |
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 ' |
d6e01aa5 KL |
443 | s/[$]LINENO.*/&-/ |
444 | t lineno | |
445 | b | |
446 | :lineno | |
c0d27fcc | 447 | N |
d6e01aa5 KL |
448 | :loop |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c0d27fcc | 450 | t loop |
d6e01aa5 | 451 | s/-\n.*// |
c0d27fcc | 452 | ' >$as_me.lineno && |
d6e01aa5 | 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 | |
d6e01aa5 KL |
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 | ||
d6e01aa5 KL |
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 | |
d6e01aa5 KL |
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 | |
d6e01aa5 KL |
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 | |
d6e01aa5 KL |
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 | |
d6e01aa5 KL |
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 | ||
d6e01aa5 KL |
521 | if test -x / >/dev/null 2>&1; then |
522 | as_test_x='test -x' | |
523 | else | |
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 | ' | |
541 | fi | |
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 | |
d6e01aa5 | 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 |
d6e01aa5 | 563 | ac_clean_files= |
6bae0ccf | 564 | ac_config_libobj_dir=. |
d6e01aa5 | 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> | |
d6e01aa5 | 584 | #ifdef HAVE_SYS_TYPES_H |
503d2be0 AS |
585 | # include <sys/types.h> |
586 | #endif | |
d6e01aa5 | 587 | #ifdef HAVE_SYS_STAT_H |
503d2be0 AS |
588 | # include <sys/stat.h> |
589 | #endif | |
d6e01aa5 | 590 | #ifdef STDC_HEADERS |
503d2be0 AS |
591 | # include <stdlib.h> |
592 | # include <stddef.h> | |
593 | #else | |
d6e01aa5 | 594 | # ifdef HAVE_STDLIB_H |
503d2be0 AS |
595 | # include <stdlib.h> |
596 | # endif | |
597 | #endif | |
d6e01aa5 KL |
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 | |
d6e01aa5 | 604 | #ifdef HAVE_STRINGS_H |
503d2be0 AS |
605 | # include <strings.h> |
606 | #endif | |
d6e01aa5 | 607 | #ifdef HAVE_INTTYPES_H |
503d2be0 | 608 | # include <inttypes.h> |
503d2be0 | 609 | #endif |
d6e01aa5 KL |
610 | #ifdef HAVE_STDINT_H |
611 | # include <stdint.h> | |
612 | #endif | |
613 | #ifdef HAVE_UNISTD_H | |
503d2be0 AS |
614 | # include <unistd.h> |
615 | #endif" | |
ba4481b5 | 616 | |
d6e01aa5 KL |
617 | ac_header_list= |
618 | ac_func_list= | |
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 | |
c982cf7d | 682 | MAKEINFO |
d6e01aa5 KL |
683 | LIBSOUND |
684 | PKG_CONFIG | |
685 | ALSA_CFLAGS | |
686 | ALSA_LIBS | |
687 | CFLAGS_SOUND | |
688 | SET_MAKE | |
689 | XMKMF | |
cfe440b8 | 690 | HAVE_XSERVER |
0cfc0546 GM |
691 | RSVG_CFLAGS |
692 | RSVG_LIBS | |
d6e01aa5 KL |
693 | GTK_CFLAGS |
694 | GTK_LIBS | |
9d89ffd0 JD |
695 | XFT_CFLAGS |
696 | XFT_LIBS | |
d6e01aa5 KL |
697 | ALLOCA |
698 | liblockfile | |
699 | LIBOBJS | |
700 | NEED_SETGID | |
701 | KMEM_GROUP | |
702 | GETLOADAVG_LIBS | |
703 | GETOPT_H | |
704 | GETOPTOBJS | |
705 | version | |
706 | configuration | |
707 | canonical | |
708 | srcdir | |
709 | lispdir | |
710 | locallisppath | |
711 | lisppath | |
712 | x_default_search_path | |
713 | etcdir | |
714 | archlibdir | |
715 | bitmapdir | |
716 | gamedir | |
717 | gameuser | |
718 | c_switch_system | |
719 | c_switch_machine | |
720 | LD_SWITCH_X_SITE | |
721 | LD_SWITCH_X_SITE_AUX | |
722 | C_SWITCH_X_SITE | |
723 | X_TOOLKIT_TYPE | |
724 | machfile | |
725 | opsysfile | |
726 | carbon_appdir | |
727 | LTLIBOBJS' | |
6bae0ccf | 728 | ac_subst_files='' |
d6e01aa5 KL |
729 | ac_precious_vars='build_alias |
730 | host_alias | |
731 | target_alias | |
732 | CC | |
733 | CFLAGS | |
734 | LDFLAGS | |
735 | LIBS | |
736 | CPPFLAGS | |
737 | CPP | |
738 | XMKMF' | |
739 | ||
c0d27fcc | 740 | |
ba4481b5 | 741 | # Initialize some variables set by options. |
503d2be0 AS |
742 | ac_init_help= |
743 | ac_init_version=false | |
ba4481b5 DL |
744 | # The variables have the same names as the options, with |
745 | # dashes changed to underlines. | |
503d2be0 | 746 | cache_file=/dev/null |
ba4481b5 | 747 | exec_prefix=NONE |
ba4481b5 | 748 | no_create= |
ba4481b5 DL |
749 | no_recursion= |
750 | prefix=NONE | |
751 | program_prefix=NONE | |
752 | program_suffix=NONE | |
753 | program_transform_name=s,x,x, | |
754 | silent= | |
755 | site= | |
756 | srcdir= | |
ba4481b5 DL |
757 | verbose= |
758 | x_includes=NONE | |
759 | x_libraries=NONE | |
503d2be0 AS |
760 | |
761 | # Installation directory options. | |
762 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
763 | # and all the variables that are supposed to be based on exec_prefix | |
764 | # by default will actually change. | |
765 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
d6e01aa5 | 766 | # (The list follows the same order as the GNU Coding Standards.) |
ba4481b5 DL |
767 | bindir='${exec_prefix}/bin' |
768 | sbindir='${exec_prefix}/sbin' | |
769 | libexecdir='${exec_prefix}/libexec' | |
d6e01aa5 KL |
770 | datarootdir='${prefix}/share' |
771 | datadir='${datarootdir}' | |
ba4481b5 DL |
772 | sysconfdir='${prefix}/etc' |
773 | sharedstatedir='${prefix}/com' | |
774 | localstatedir='${prefix}/var' | |
ba4481b5 DL |
775 | includedir='${prefix}/include' |
776 | oldincludedir='/usr/include' | |
d6e01aa5 KL |
777 | docdir='${datarootdir}/doc/${PACKAGE}' |
778 | infodir='${datarootdir}/info' | |
779 | htmldir='${docdir}' | |
780 | dvidir='${docdir}' | |
781 | pdfdir='${docdir}' | |
782 | psdir='${docdir}' | |
783 | libdir='${exec_prefix}/lib' | |
784 | localedir='${datarootdir}/locale' | |
785 | mandir='${datarootdir}/man' | |
ba4481b5 | 786 | |
ba4481b5 | 787 | ac_prev= |
d6e01aa5 | 788 | ac_dashdash= |
ba4481b5 DL |
789 | for ac_option |
790 | do | |
ba4481b5 DL |
791 | # If the previous option needs an argument, assign it. |
792 | if test -n "$ac_prev"; then | |
d6e01aa5 | 793 | eval $ac_prev=\$ac_option |
ba4481b5 DL |
794 | ac_prev= |
795 | continue | |
796 | fi | |
797 | ||
d6e01aa5 KL |
798 | case $ac_option in |
799 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
800 | *) ac_optarg=yes ;; | |
801 | esac | |
ba4481b5 DL |
802 | |
803 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
804 | ||
d6e01aa5 KL |
805 | case $ac_dashdash$ac_option in |
806 | --) | |
807 | ac_dashdash=yes ;; | |
ba4481b5 DL |
808 | |
809 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
810 | ac_prev=bindir ;; | |
811 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
503d2be0 | 812 | bindir=$ac_optarg ;; |
ba4481b5 DL |
813 | |
814 | -build | --build | --buil | --bui | --bu) | |
503d2be0 | 815 | ac_prev=build_alias ;; |
ba4481b5 | 816 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
503d2be0 | 817 | build_alias=$ac_optarg ;; |
ba4481b5 DL |
818 | |
819 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
820 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
821 | ac_prev=cache_file ;; | |
822 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
823 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
503d2be0 AS |
824 | cache_file=$ac_optarg ;; |
825 | ||
826 | --config-cache | -C) | |
827 | cache_file=config.cache ;; | |
ba4481b5 | 828 | |
d6e01aa5 | 829 | -datadir | --datadir | --datadi | --datad) |
ba4481b5 | 830 | ac_prev=datadir ;; |
d6e01aa5 | 831 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
503d2be0 | 832 | datadir=$ac_optarg ;; |
ba4481b5 | 833 | |
d6e01aa5 KL |
834 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
835 | | --dataroo | --dataro | --datar) | |
836 | ac_prev=datarootdir ;; | |
837 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
838 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
839 | datarootdir=$ac_optarg ;; | |
840 | ||
ba4481b5 | 841 | -disable-* | --disable-*) |
503d2be0 | 842 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ba4481b5 | 843 | # Reject names that are not valid shell variable names. |
d6e01aa5 | 844 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
503d2be0 AS |
845 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
846 | { (exit 1); exit 1; }; } | |
d6e01aa5 KL |
847 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
848 | eval enable_$ac_feature=no ;; | |
849 | ||
850 | -docdir | --docdir | --docdi | --doc | --do) | |
851 | ac_prev=docdir ;; | |
852 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
853 | docdir=$ac_optarg ;; | |
854 | ||
855 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
856 | ac_prev=dvidir ;; | |
857 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
858 | dvidir=$ac_optarg ;; | |
ba4481b5 DL |
859 | |
860 | -enable-* | --enable-*) | |
503d2be0 | 861 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ba4481b5 | 862 | # Reject names that are not valid shell variable names. |
d6e01aa5 | 863 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
503d2be0 AS |
864 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
865 | { (exit 1); exit 1; }; } | |
d6e01aa5 KL |
866 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
867 | eval enable_$ac_feature=\$ac_optarg ;; | |
ba4481b5 DL |
868 | |
869 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
870 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
871 | | --exec | --exe | --ex) | |
872 | ac_prev=exec_prefix ;; | |
873 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
874 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
875 | | --exec=* | --exe=* | --ex=*) | |
503d2be0 | 876 | exec_prefix=$ac_optarg ;; |
ba4481b5 DL |
877 | |
878 | -gas | --gas | --ga | --g) | |
879 | # Obsolete; use --with-gas. | |
880 | with_gas=yes ;; | |
881 | ||
503d2be0 AS |
882 | -help | --help | --hel | --he | -h) |
883 | ac_init_help=long ;; | |
884 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
885 | ac_init_help=recursive ;; | |
886 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
887 | ac_init_help=short ;; | |
ba4481b5 DL |
888 | |
889 | -host | --host | --hos | --ho) | |
503d2be0 | 890 | ac_prev=host_alias ;; |
ba4481b5 | 891 | -host=* | --host=* | --hos=* | --ho=*) |
503d2be0 | 892 | host_alias=$ac_optarg ;; |
ba4481b5 | 893 | |
d6e01aa5 KL |
894 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
895 | ac_prev=htmldir ;; | |
896 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
897 | | --ht=*) | |
898 | htmldir=$ac_optarg ;; | |
899 | ||
ba4481b5 DL |
900 | -includedir | --includedir | --includedi | --included | --include \ |
901 | | --includ | --inclu | --incl | --inc) | |
902 | ac_prev=includedir ;; | |
903 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
904 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
503d2be0 | 905 | includedir=$ac_optarg ;; |
ba4481b5 DL |
906 | |
907 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
908 | ac_prev=infodir ;; | |
909 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
503d2be0 | 910 | infodir=$ac_optarg ;; |
ba4481b5 DL |
911 | |
912 | -libdir | --libdir | --libdi | --libd) | |
913 | ac_prev=libdir ;; | |
914 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
503d2be0 | 915 | libdir=$ac_optarg ;; |
ba4481b5 DL |
916 | |
917 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
918 | | --libexe | --libex | --libe) | |
919 | ac_prev=libexecdir ;; | |
920 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
921 | | --libexe=* | --libex=* | --libe=*) | |
503d2be0 | 922 | libexecdir=$ac_optarg ;; |
ba4481b5 | 923 | |
d6e01aa5 KL |
924 | -localedir | --localedir | --localedi | --localed | --locale) |
925 | ac_prev=localedir ;; | |
926 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
927 | localedir=$ac_optarg ;; | |
928 | ||
ba4481b5 | 929 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
d6e01aa5 | 930 | | --localstate | --localstat | --localsta | --localst | --locals) |
ba4481b5 DL |
931 | ac_prev=localstatedir ;; |
932 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
d6e01aa5 | 933 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
503d2be0 | 934 | localstatedir=$ac_optarg ;; |
ba4481b5 DL |
935 | |
936 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
937 | ac_prev=mandir ;; | |
938 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
503d2be0 | 939 | mandir=$ac_optarg ;; |
ba4481b5 DL |
940 | |
941 | -nfp | --nfp | --nf) | |
942 | # Obsolete; use --without-fp. | |
943 | with_fp=no ;; | |
944 | ||
945 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c0d27fcc | 946 | | --no-cr | --no-c | -n) |
ba4481b5 DL |
947 | no_create=yes ;; |
948 | ||
949 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
950 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
951 | no_recursion=yes ;; | |
952 | ||
953 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
954 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
955 | | --oldin | --oldi | --old | --ol | --o) | |
956 | ac_prev=oldincludedir ;; | |
957 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
958 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
959 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503d2be0 | 960 | oldincludedir=$ac_optarg ;; |
ba4481b5 DL |
961 | |
962 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
963 | ac_prev=prefix ;; | |
964 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
503d2be0 | 965 | prefix=$ac_optarg ;; |
ba4481b5 DL |
966 | |
967 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
968 | | --program-pre | --program-pr | --program-p) | |
969 | ac_prev=program_prefix ;; | |
970 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
971 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
503d2be0 | 972 | program_prefix=$ac_optarg ;; |
ba4481b5 DL |
973 | |
974 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
975 | | --program-suf | --program-su | --program-s) | |
976 | ac_prev=program_suffix ;; | |
977 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
978 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
503d2be0 | 979 | program_suffix=$ac_optarg ;; |
ba4481b5 DL |
980 | |
981 | -program-transform-name | --program-transform-name \ | |
982 | | --program-transform-nam | --program-transform-na \ | |
983 | | --program-transform-n | --program-transform- \ | |
984 | | --program-transform | --program-transfor \ | |
985 | | --program-transfo | --program-transf \ | |
986 | | --program-trans | --program-tran \ | |
987 | | --progr-tra | --program-tr | --program-t) | |
988 | ac_prev=program_transform_name ;; | |
989 | -program-transform-name=* | --program-transform-name=* \ | |
990 | | --program-transform-nam=* | --program-transform-na=* \ | |
991 | | --program-transform-n=* | --program-transform-=* \ | |
992 | | --program-transform=* | --program-transfor=* \ | |
993 | | --program-transfo=* | --program-transf=* \ | |
994 | | --program-trans=* | --program-tran=* \ | |
995 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
503d2be0 | 996 | program_transform_name=$ac_optarg ;; |
ba4481b5 | 997 | |
d6e01aa5 KL |
998 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
999 | ac_prev=pdfdir ;; | |
1000 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1001 | pdfdir=$ac_optarg ;; | |
1002 | ||
1003 | -psdir | --psdir | --psdi | --psd | --ps) | |
1004 | ac_prev=psdir ;; | |
1005 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1006 | psdir=$ac_optarg ;; | |
1007 | ||
ba4481b5 DL |
1008 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1009 | | -silent | --silent | --silen | --sile | --sil) | |
1010 | silent=yes ;; | |
1011 | ||
1012 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1013 | ac_prev=sbindir ;; | |
1014 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1015 | | --sbi=* | --sb=*) | |
503d2be0 | 1016 | sbindir=$ac_optarg ;; |
ba4481b5 DL |
1017 | |
1018 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1019 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1020 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1021 | | --sha | --sh) | |
1022 | ac_prev=sharedstatedir ;; | |
1023 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1024 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1025 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1026 | | --sha=* | --sh=*) | |
503d2be0 | 1027 | sharedstatedir=$ac_optarg ;; |
ba4481b5 DL |
1028 | |
1029 | -site | --site | --sit) | |
1030 | ac_prev=site ;; | |
1031 | -site=* | --site=* | --sit=*) | |
503d2be0 | 1032 | site=$ac_optarg ;; |
ba4481b5 DL |
1033 | |
1034 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1035 | ac_prev=srcdir ;; | |
1036 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
503d2be0 | 1037 | srcdir=$ac_optarg ;; |
ba4481b5 DL |
1038 | |
1039 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1040 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1041 | ac_prev=sysconfdir ;; | |
1042 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1043 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
503d2be0 | 1044 | sysconfdir=$ac_optarg ;; |
ba4481b5 DL |
1045 | |
1046 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
503d2be0 | 1047 | ac_prev=target_alias ;; |
ba4481b5 | 1048 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
503d2be0 | 1049 | target_alias=$ac_optarg ;; |
ba4481b5 DL |
1050 | |
1051 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1052 | verbose=yes ;; | |
1053 | ||
503d2be0 AS |
1054 | -version | --version | --versio | --versi | --vers | -V) |
1055 | ac_init_version=: ;; | |
ba4481b5 DL |
1056 | |
1057 | -with-* | --with-*) | |
503d2be0 | 1058 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ba4481b5 | 1059 | # Reject names that are not valid shell variable names. |
d6e01aa5 | 1060 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
503d2be0 AS |
1061 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1062 | { (exit 1); exit 1; }; } | |
d6e01aa5 KL |
1063 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1064 | eval with_$ac_package=\$ac_optarg ;; | |
ba4481b5 DL |
1065 | |
1066 | -without-* | --without-*) | |
503d2be0 | 1067 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ba4481b5 | 1068 | # Reject names that are not valid shell variable names. |
d6e01aa5 | 1069 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
503d2be0 AS |
1070 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1071 | { (exit 1); exit 1; }; } | |
d6e01aa5 KL |
1072 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1073 | eval with_$ac_package=no ;; | |
ba4481b5 DL |
1074 | |
1075 | --x) | |
1076 | # Obsolete; use --with-x. | |
1077 | with_x=yes ;; | |
1078 | ||
1079 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1080 | | --x-incl | --x-inc | --x-in | --x-i) | |
1081 | ac_prev=x_includes ;; | |
1082 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1083 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
503d2be0 | 1084 | x_includes=$ac_optarg ;; |
ba4481b5 DL |
1085 | |
1086 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1087 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1088 | ac_prev=x_libraries ;; | |
1089 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1090 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
503d2be0 | 1091 | x_libraries=$ac_optarg ;; |
ba4481b5 | 1092 | |
503d2be0 AS |
1093 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1094 | Try \`$0 --help' for more information." >&2 | |
1095 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1096 | ;; |
1097 | ||
503d2be0 AS |
1098 | *=*) |
1099 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1100 | # Reject names that are not valid shell variable names. | |
1101 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1102 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1103 | { (exit 1); exit 1; }; } | |
d6e01aa5 | 1104 | eval $ac_envvar=\$ac_optarg |
503d2be0 AS |
1105 | export $ac_envvar ;; |
1106 | ||
ba4481b5 | 1107 | *) |
503d2be0 AS |
1108 | # FIXME: should be removed in autoconf 3.0. |
1109 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1110 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1111 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1112 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
ba4481b5 DL |
1113 | ;; |
1114 | ||
1115 | esac | |
1116 | done | |
1117 | ||
1118 | if test -n "$ac_prev"; then | |
503d2be0 AS |
1119 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1120 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1121 | { (exit 1); exit 1; }; } | |
ba4481b5 | 1122 | fi |
ba4481b5 | 1123 | |
d6e01aa5 KL |
1124 | # Be sure to have absolute directory names. |
1125 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1126 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1127 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1128 | libdir localedir mandir | |
ba4481b5 | 1129 | do |
d6e01aa5 | 1130 | eval ac_val=\$$ac_var |
503d2be0 | 1131 | case $ac_val in |
d6e01aa5 KL |
1132 | [\\/$]* | ?:[\\/]* ) continue;; |
1133 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
ba4481b5 | 1134 | esac |
d6e01aa5 KL |
1135 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1136 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1137 | done |
1138 | ||
503d2be0 AS |
1139 | # There might be people who depend on the old broken behavior: `$host' |
1140 | # used to hold the argument of --host etc. | |
c0d27fcc | 1141 | # FIXME: To remove some day. |
503d2be0 AS |
1142 | build=$build_alias |
1143 | host=$host_alias | |
1144 | target=$target_alias | |
1145 | ||
c0d27fcc | 1146 | # FIXME: To remove some day. |
503d2be0 AS |
1147 | if test "x$host_alias" != x; then |
1148 | if test "x$build_alias" = x; then | |
1149 | cross_compiling=maybe | |
1150 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1151 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1152 | elif test "x$build_alias" != "x$host_alias"; then | |
1153 | cross_compiling=yes | |
1154 | fi | |
1155 | fi | |
ba4481b5 | 1156 | |
503d2be0 AS |
1157 | ac_tool_prefix= |
1158 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
ba4481b5 | 1159 | |
503d2be0 | 1160 | test "$silent" = yes && exec 6>/dev/null |
ba4481b5 | 1161 | |
c0d27fcc | 1162 | |
d6e01aa5 KL |
1163 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1164 | ac_ls_di=`ls -di .` && | |
1165 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1166 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1167 | { (exit 1); exit 1; }; } | |
1168 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1169 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1170 | { (exit 1); exit 1; }; } | |
1171 | ||
1172 | ||
1173 | # Find the source files, if location was not specified. | |
1174 | if test -z "$srcdir"; then | |
1175 | ac_srcdir_defaulted=yes | |
1176 | # Try the directory containing this script, then the parent directory. | |
1177 | ac_confdir=`$as_dirname -- "$0" || | |
c0d27fcc | 1178 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
edfaf76d LK |
1179 | X"$0" : 'X\(//\)[^/]' \| \ |
1180 | X"$0" : 'X\(//\)$' \| \ | |
d6e01aa5 | 1181 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c0d27fcc | 1182 | echo X"$0" | |
d6e01aa5 KL |
1183 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1184 | s//\1/ | |
1185 | q | |
1186 | } | |
1187 | /^X\(\/\/\)[^/].*/{ | |
1188 | s//\1/ | |
1189 | q | |
1190 | } | |
1191 | /^X\(\/\/\)$/{ | |
1192 | s//\1/ | |
1193 | q | |
1194 | } | |
1195 | /^X\(\/\).*/{ | |
1196 | s//\1/ | |
1197 | q | |
1198 | } | |
1199 | s/.*/./; q'` | |
ba4481b5 | 1200 | srcdir=$ac_confdir |
d6e01aa5 | 1201 | if test ! -r "$srcdir/$ac_unique_file"; then |
ba4481b5 DL |
1202 | srcdir=.. |
1203 | fi | |
1204 | else | |
1205 | ac_srcdir_defaulted=no | |
1206 | fi | |
d6e01aa5 KL |
1207 | if test ! -r "$srcdir/$ac_unique_file"; then |
1208 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1209 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
503d2be0 | 1210 | { (exit 1); exit 1; }; } |
ba4481b5 | 1211 | fi |
d6e01aa5 KL |
1212 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1213 | ac_abs_confdir=`( | |
1214 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
6bae0ccf | 1215 | { (exit 1); exit 1; }; } |
d6e01aa5 KL |
1216 | pwd)` |
1217 | # When building in place, set srcdir=. | |
1218 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1219 | srcdir=. | |
1220 | fi | |
1221 | # Remove unnecessary trailing slashes from srcdir. | |
1222 | # Double slashes in file names in object file debugging info | |
1223 | # mess up M-x gdb in Emacs. | |
1224 | case $srcdir in | |
1225 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1226 | esac | |
1227 | for ac_var in $ac_precious_vars; do | |
1228 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1229 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1230 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1231 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1232 | done | |
503d2be0 AS |
1233 | |
1234 | # | |
1235 | # Report the --help message. | |
1236 | # | |
1237 | if test "$ac_init_help" = "long"; then | |
1238 | # Omit some internal or obsolete options to make the list less imposing. | |
1239 | # This message is too long to be a string in the A/UX 3.1 sh. | |
c0d27fcc | 1240 | cat <<_ACEOF |
503d2be0 AS |
1241 | \`configure' configures this package to adapt to many kinds of systems. |
1242 | ||
1243 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1244 | ||
1245 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1246 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1247 | ||
1248 | Defaults for the options are specified in brackets. | |
1249 | ||
1250 | Configuration: | |
1251 | -h, --help display this help and exit | |
1252 | --help=short display options specific to this package | |
1253 | --help=recursive display the short help of all the included packages | |
1254 | -V, --version display version information and exit | |
1255 | -q, --quiet, --silent do not print \`checking...' messages | |
1256 | --cache-file=FILE cache test results in FILE [disabled] | |
1257 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1258 | -n, --no-create do not create output files | |
1259 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1260 | ||
503d2be0 AS |
1261 | Installation directories: |
1262 | --prefix=PREFIX install architecture-independent files in PREFIX | |
edfaf76d | 1263 | [$ac_default_prefix] |
503d2be0 | 1264 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
edfaf76d | 1265 | [PREFIX] |
503d2be0 AS |
1266 | |
1267 | By default, \`make install' will install all the files in | |
1268 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1269 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1270 | for instance \`--prefix=\$HOME'. | |
1271 | ||
1272 | For better control, use the options below. | |
1273 | ||
1274 | Fine tuning of the installation directories: | |
1275 | --bindir=DIR user executables [EPREFIX/bin] | |
1276 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1277 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
503d2be0 AS |
1278 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1279 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1280 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1281 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1282 | --includedir=DIR C header files [PREFIX/include] | |
1283 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
d6e01aa5 KL |
1284 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1285 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1286 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1287 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1288 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1289 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1290 | --htmldir=DIR html documentation [DOCDIR] | |
1291 | --dvidir=DIR dvi documentation [DOCDIR] | |
1292 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1293 | --psdir=DIR ps documentation [DOCDIR] | |
c0d27fcc | 1294 | _ACEOF |
503d2be0 | 1295 | |
c0d27fcc | 1296 | cat <<\_ACEOF |
503d2be0 | 1297 | |
ba5da88a PJ |
1298 | Program names: |
1299 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1300 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1301 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1302 | ||
503d2be0 AS |
1303 | X features: |
1304 | --x-includes=DIR X include files are in DIR | |
1305 | --x-libraries=DIR X library files are in DIR | |
1306 | ||
1307 | System types: | |
1308 | --build=BUILD configure for building on BUILD [guessed] | |
c0d27fcc MR |
1309 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1310 | _ACEOF | |
503d2be0 AS |
1311 | fi |
1312 | ||
1313 | if test -n "$ac_init_help"; then | |
1314 | ||
c0d27fcc | 1315 | cat <<\_ACEOF |
503d2be0 AS |
1316 | |
1317 | Optional Features: | |
1318 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1319 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
709e90de | 1320 | --enable-carbon-app[=DIR] |
6a3a24fa | 1321 | specify install directory for Emacs.app on Mac OS X |
709e90de | 1322 | [DIR=/Application] |
d0098f13 | 1323 | --enable-asserts compile code with asserts enabled |
709e90de AS |
1324 | --enable-maintainer-mode |
1325 | enable make rules and dependencies not useful (and | |
1326 | sometimes confusing) to the casual installer | |
9adfabc2 LK |
1327 | --enable-locallisppath=PATH |
1328 | directories Emacs should search for lisp files | |
1329 | specific to this site | |
503d2be0 AS |
1330 | --disable-largefile omit support for large files |
1331 | ||
1332 | Optional Packages: | |
1333 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1334 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1335 | --without-gcc don't use GCC to compile Emacs if GCC is found | |
1336 | --without-pop don't support POP mail retrieval with movemail | |
1337 | --with-kerberos support Kerberos-authenticated POP | |
1338 | --with-kerberos5 support Kerberos version 5 authenticated POP | |
1339 | --with-hesiod support Hesiod to get the POP server host | |
2c9dccc9 | 1340 | --without-sound don't compile with sound support |
49adb60f TTN |
1341 | --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena, |
1342 | motif, gtk, no) | |
503d2be0 AS |
1343 | --with-xpm use -lXpm for displaying XPM images |
1344 | --with-jpeg use -ljpeg for displaying JPEG images | |
1345 | --with-tiff use -ltiff for displaying TIFF images | |
63175cd2 | 1346 | --with-gif use -lgif (or -lungif) for displaying GIF images |
503d2be0 | 1347 | --with-png use -lpng for displaying PNG images |
79011b82 | 1348 | --with-gpm use -lgpm for mouse support on a GNU/Linux console |
0cfc0546 | 1349 | --with-rsvg use -lrsvg-2 for displaying SVG images |
488dd4c4 | 1350 | --with-gtk use GTK (same as --with-x-toolkit=gtk) |
49adb60f | 1351 | --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg |
503d2be0 | 1352 | --without-toolkit-scroll-bars |
cc227489 | 1353 | don't use Motif or Xaw3d scroll bars |
c982cf7d | 1354 | --without-xaw3d don't use Xaw3d |
cc227489 | 1355 | --without-xim don't use X11 XIM |
e0f712ba | 1356 | --without-carbon don't use Carbon GUI on Mac OS X |
503d2be0 AS |
1357 | --with-x use the X Window System |
1358 | ||
1359 | Some influential environment variables: | |
1360 | CC C compiler command | |
1361 | CFLAGS C compiler flags | |
1362 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1363 | nonstandard directory <lib dir> | |
d6e01aa5 KL |
1364 | LIBS libraries to pass to the linker, e.g. -l<library> |
1365 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1366 | you have headers in a nonstandard directory <include dir> | |
503d2be0 | 1367 | CPP C preprocessor |
d6e01aa5 | 1368 | XMKMF Path to xmkmf, Makefile generator for X Window System |
503d2be0 AS |
1369 | |
1370 | Use these variables to override the choices made by `configure' or to help | |
1371 | it to find libraries and programs with nonstandard names/locations. | |
1372 | ||
c0d27fcc | 1373 | _ACEOF |
d6e01aa5 | 1374 | ac_status=$? |
503d2be0 AS |
1375 | fi |
1376 | ||
1377 | if test "$ac_init_help" = "recursive"; then | |
1378 | # If there are subdirs, report their specific --help. | |
c0d27fcc | 1379 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
d6e01aa5 | 1380 | test -d "$ac_dir" || continue |
c0d27fcc MR |
1381 | ac_builddir=. |
1382 | ||
d6e01aa5 KL |
1383 | case "$ac_dir" in |
1384 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1385 | *) | |
c0d27fcc | 1386 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
d6e01aa5 KL |
1387 | # A ".." for each directory in $ac_dir_suffix. |
1388 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1389 | case $ac_top_builddir_sub in | |
1390 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1391 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1392 | esac ;; | |
1393 | esac | |
1394 | ac_abs_top_builddir=$ac_pwd | |
1395 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1396 | # for backward compatibility: | |
1397 | ac_top_builddir=$ac_top_build_prefix | |
503d2be0 | 1398 | |
c0d27fcc | 1399 | case $srcdir in |
d6e01aa5 | 1400 | .) # We are building in place. |
c0d27fcc | 1401 | ac_srcdir=. |
d6e01aa5 KL |
1402 | ac_top_srcdir=$ac_top_builddir_sub |
1403 | ac_abs_top_srcdir=$ac_pwd ;; | |
1404 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c0d27fcc | 1405 | ac_srcdir=$srcdir$ac_dir_suffix; |
d6e01aa5 KL |
1406 | ac_top_srcdir=$srcdir |
1407 | ac_abs_top_srcdir=$srcdir ;; | |
1408 | *) # Relative name. | |
1409 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1410 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1411 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
edfaf76d | 1412 | esac |
d6e01aa5 KL |
1413 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1414 | ||
1415 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1416 | # Check for guested configure. | |
1417 | if test -f "$ac_srcdir/configure.gnu"; then | |
1418 | echo && | |
1419 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1420 | elif test -f "$ac_srcdir/configure"; then | |
1421 | echo && | |
1422 | $SHELL "$ac_srcdir/configure" --help=recursive | |
503d2be0 | 1423 | else |
c0d27fcc | 1424 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
d6e01aa5 KL |
1425 | fi || ac_status=$? |
1426 | cd "$ac_pwd" || { ac_status=$?; break; } | |
503d2be0 AS |
1427 | done |
1428 | fi | |
1429 | ||
d6e01aa5 | 1430 | test -n "$ac_init_help" && exit $ac_status |
503d2be0 | 1431 | if $ac_init_version; then |
c0d27fcc | 1432 | cat <<\_ACEOF |
d6e01aa5 KL |
1433 | configure |
1434 | generated by GNU Autoconf 2.61 | |
503d2be0 | 1435 | |
d6e01aa5 KL |
1436 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1437 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
503d2be0 AS |
1438 | This configure script is free software; the Free Software Foundation |
1439 | gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc | 1440 | _ACEOF |
d6e01aa5 | 1441 | exit |
503d2be0 | 1442 | fi |
d6e01aa5 | 1443 | cat >config.log <<_ACEOF |
503d2be0 AS |
1444 | This file contains any messages produced by compilers while |
1445 | running configure, to aid debugging if configure makes a mistake. | |
1446 | ||
1447 | It was created by $as_me, which was | |
d6e01aa5 | 1448 | generated by GNU Autoconf 2.61. Invocation command line was |
503d2be0 AS |
1449 | |
1450 | $ $0 $@ | |
1451 | ||
c0d27fcc | 1452 | _ACEOF |
d6e01aa5 | 1453 | exec 5>>config.log |
503d2be0 AS |
1454 | { |
1455 | cat <<_ASUNAME | |
c0d27fcc MR |
1456 | ## --------- ## |
1457 | ## Platform. ## | |
1458 | ## --------- ## | |
503d2be0 AS |
1459 | |
1460 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1461 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1462 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1463 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1464 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1465 | ||
1466 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1467 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1468 | ||
1469 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1470 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1471 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
d6e01aa5 | 1472 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
503d2be0 AS |
1473 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1474 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1475 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1476 | ||
925c2f3f | 1477 | _ASUNAME |
c0d27fcc MR |
1478 | |
1479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1480 | for as_dir in $PATH | |
1481 | do | |
1482 | IFS=$as_save_IFS | |
1483 | test -z "$as_dir" && as_dir=. | |
1484 | echo "PATH: $as_dir" | |
1485 | done | |
d6e01aa5 | 1486 | IFS=$as_save_IFS |
c0d27fcc | 1487 | |
503d2be0 AS |
1488 | } >&5 |
1489 | ||
c0d27fcc MR |
1490 | cat >&5 <<_ACEOF |
1491 | ||
1492 | ||
1493 | ## ----------- ## | |
1494 | ## Core tests. ## | |
1495 | ## ----------- ## | |
1496 | ||
1497 | _ACEOF | |
503d2be0 | 1498 | |
503d2be0 AS |
1499 | |
1500 | # Keep a trace of the command line. | |
1501 | # Strip out --no-create and --no-recursion so they do not pile up. | |
19650fd6 | 1502 | # Strip out --silent because we don't want to record it for future runs. |
503d2be0 | 1503 | # Also quote any args containing shell meta-characters. |
19650fd6 | 1504 | # Make two passes to allow for proper duplicate-argument suppression. |
503d2be0 | 1505 | ac_configure_args= |
19650fd6 AS |
1506 | ac_configure_args0= |
1507 | ac_configure_args1= | |
19650fd6 AS |
1508 | ac_must_keep_next=false |
1509 | for ac_pass in 1 2 | |
503d2be0 | 1510 | do |
19650fd6 AS |
1511 | for ac_arg |
1512 | do | |
1513 | case $ac_arg in | |
1514 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1515 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1516 | | -silent | --silent | --silen | --sile | --sil) | |
1517 | continue ;; | |
d6e01aa5 | 1518 | *\'*) |
19650fd6 AS |
1519 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1520 | esac | |
1521 | case $ac_pass in | |
1522 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1523 | 2) | |
1524 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1525 | if test $ac_must_keep_next = true; then | |
edfaf76d | 1526 | ac_must_keep_next=false # Got value, back to normal. |
19650fd6 | 1527 | else |
edfaf76d LK |
1528 | case $ac_arg in |
1529 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1530 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1531 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1532 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1533 | case "$ac_configure_args0 " in | |
1534 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1535 | esac | |
1536 | ;; | |
1537 | -* ) ac_must_keep_next=true ;; | |
1538 | esac | |
19650fd6 | 1539 | fi |
d6e01aa5 | 1540 | ac_configure_args="$ac_configure_args '$ac_arg'" |
19650fd6 AS |
1541 | ;; |
1542 | esac | |
1543 | done | |
503d2be0 | 1544 | done |
19650fd6 AS |
1545 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1546 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
503d2be0 AS |
1547 | |
1548 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1549 | # config.log. We remove comments because anyway the quotes in there | |
1550 | # would cause problems or look ugly. | |
d6e01aa5 KL |
1551 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1552 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
503d2be0 AS |
1553 | trap 'exit_status=$? |
1554 | # Save into config.log some information that might help in debugging. | |
c0d27fcc MR |
1555 | { |
1556 | echo | |
6bae0ccf | 1557 | |
c0d27fcc MR |
1558 | cat <<\_ASBOX |
1559 | ## ---------------- ## | |
1560 | ## Cache variables. ## | |
1561 | ## ---------------- ## | |
1562 | _ASBOX | |
1563 | echo | |
1564 | # The following way of writing the cache mishandles newlines in values, | |
d6e01aa5 KL |
1565 | ( |
1566 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1567 | eval ac_val=\$$ac_var | |
1568 | case $ac_val in #( | |
1569 | *${as_nl}*) | |
1570 | case $ac_var in #( | |
1571 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1572 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1573 | esac | |
1574 | case $ac_var in #( | |
1575 | _ | IFS | as_nl) ;; #( | |
1576 | *) $as_unset $ac_var ;; | |
1577 | esac ;; | |
1578 | esac | |
1579 | done | |
503d2be0 | 1580 | (set) 2>&1 | |
d6e01aa5 KL |
1581 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1582 | *${as_nl}ac_space=\ *) | |
503d2be0 | 1583 | sed -n \ |
d6e01aa5 KL |
1584 | "s/'\''/'\''\\\\'\'''\''/g; |
1585 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1586 | ;; #( | |
503d2be0 | 1587 | *) |
d6e01aa5 | 1588 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
503d2be0 | 1589 | ;; |
d6e01aa5 KL |
1590 | esac | |
1591 | sort | |
1592 | ) | |
c0d27fcc | 1593 | echo |
6bae0ccf DL |
1594 | |
1595 | cat <<\_ASBOX | |
1596 | ## ----------------- ## | |
1597 | ## Output variables. ## | |
1598 | ## ----------------- ## | |
1599 | _ASBOX | |
1600 | echo | |
1601 | for ac_var in $ac_subst_vars | |
1602 | do | |
d6e01aa5 KL |
1603 | eval ac_val=\$$ac_var |
1604 | case $ac_val in | |
1605 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1606 | esac | |
1607 | echo "$ac_var='\''$ac_val'\''" | |
6bae0ccf DL |
1608 | done | sort |
1609 | echo | |
1610 | ||
1611 | if test -n "$ac_subst_files"; then | |
1612 | cat <<\_ASBOX | |
d6e01aa5 KL |
1613 | ## ------------------- ## |
1614 | ## File substitutions. ## | |
1615 | ## ------------------- ## | |
6bae0ccf DL |
1616 | _ASBOX |
1617 | echo | |
1618 | for ac_var in $ac_subst_files | |
1619 | do | |
d6e01aa5 KL |
1620 | eval ac_val=\$$ac_var |
1621 | case $ac_val in | |
1622 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1623 | esac | |
1624 | echo "$ac_var='\''$ac_val'\''" | |
6bae0ccf DL |
1625 | done | sort |
1626 | echo | |
1627 | fi | |
1628 | ||
c0d27fcc MR |
1629 | if test -s confdefs.h; then |
1630 | cat <<\_ASBOX | |
1631 | ## ----------- ## | |
1632 | ## confdefs.h. ## | |
1633 | ## ----------- ## | |
1634 | _ASBOX | |
1635 | echo | |
d6e01aa5 | 1636 | cat confdefs.h |
c0d27fcc MR |
1637 | echo |
1638 | fi | |
1639 | test "$ac_signal" != 0 && | |
1640 | echo "$as_me: caught signal $ac_signal" | |
1641 | echo "$as_me: exit $exit_status" | |
1642 | } >&5 | |
d6e01aa5 KL |
1643 | rm -f core *.core core.conftest.* && |
1644 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
503d2be0 | 1645 | exit $exit_status |
d6e01aa5 | 1646 | ' 0 |
503d2be0 AS |
1647 | for ac_signal in 1 2 13 15; do |
1648 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1649 | done | |
1650 | ac_signal=0 | |
1651 | ||
1652 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
d6e01aa5 | 1653 | rm -f -r conftest* confdefs.h |
ba4481b5 | 1654 | |
c0d27fcc MR |
1655 | # Predefined preprocessor variables. |
1656 | ||
1657 | cat >>confdefs.h <<_ACEOF | |
1658 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1659 | _ACEOF | |
1660 | ||
1661 | ||
1662 | cat >>confdefs.h <<_ACEOF | |
1663 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1664 | _ACEOF | |
1665 | ||
1666 | ||
1667 | cat >>confdefs.h <<_ACEOF | |
1668 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1669 | _ACEOF | |
1670 | ||
1671 | ||
1672 | cat >>confdefs.h <<_ACEOF | |
1673 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1674 | _ACEOF | |
1675 | ||
1676 | ||
1677 | cat >>confdefs.h <<_ACEOF | |
1678 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1679 | _ACEOF | |
1680 | ||
1681 | ||
503d2be0 | 1682 | # Let the site file select an alternate cache file if it wants to. |
ba4481b5 | 1683 | # Prefer explicitly selected file to automatically selected ones. |
d6e01aa5 KL |
1684 | if test -n "$CONFIG_SITE"; then |
1685 | set x "$CONFIG_SITE" | |
1686 | elif test "x$prefix" != xNONE; then | |
1687 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1688 | else | |
1689 | set x "$ac_default_prefix/share/config.site" \ | |
1690 | "$ac_default_prefix/etc/config.site" | |
ba4481b5 | 1691 | fi |
d6e01aa5 KL |
1692 | shift |
1693 | for ac_site_file | |
1694 | do | |
ba4481b5 | 1695 | if test -r "$ac_site_file"; then |
c0d27fcc | 1696 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
503d2be0 | 1697 | echo "$as_me: loading site script $ac_site_file" >&6;} |
c0d27fcc | 1698 | sed 's/^/| /' "$ac_site_file" >&5 |
ba4481b5 DL |
1699 | . "$ac_site_file" |
1700 | fi | |
1701 | done | |
1702 | ||
1703 | if test -r "$cache_file"; then | |
503d2be0 AS |
1704 | # Some versions of bash will fail to source /dev/null (special |
1705 | # files actually), so we avoid doing that. | |
1706 | if test -f "$cache_file"; then | |
c0d27fcc | 1707 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
503d2be0 AS |
1708 | echo "$as_me: loading cache $cache_file" >&6;} |
1709 | case $cache_file in | |
d6e01aa5 KL |
1710 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1711 | *) . "./$cache_file";; | |
503d2be0 AS |
1712 | esac |
1713 | fi | |
ba4481b5 | 1714 | else |
c0d27fcc | 1715 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
503d2be0 AS |
1716 | echo "$as_me: creating cache $cache_file" >&6;} |
1717 | >$cache_file | |
1718 | fi | |
1719 | ||
d6e01aa5 KL |
1720 | ac_header_list="$ac_header_list sys/time.h" |
1721 | ac_header_list="$ac_header_list unistd.h" | |
1722 | ac_func_list="$ac_func_list alarm" | |
503d2be0 AS |
1723 | # Check that the precious variables saved in the cache have kept the same |
1724 | # value. | |
1725 | ac_cache_corrupted=false | |
d6e01aa5 | 1726 | for ac_var in $ac_precious_vars; do |
503d2be0 AS |
1727 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1728 | eval ac_new_set=\$ac_env_${ac_var}_set | |
d6e01aa5 KL |
1729 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1730 | eval ac_new_val=\$ac_env_${ac_var}_value | |
503d2be0 AS |
1731 | case $ac_old_set,$ac_new_set in |
1732 | set,) | |
c0d27fcc | 1733 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
503d2be0 AS |
1734 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1735 | ac_cache_corrupted=: ;; | |
1736 | ,set) | |
c0d27fcc | 1737 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
503d2be0 AS |
1738 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1739 | ac_cache_corrupted=: ;; | |
1740 | ,);; | |
1741 | *) | |
1742 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
edfaf76d | 1743 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
503d2be0 | 1744 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
edfaf76d | 1745 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
503d2be0 | 1746 | echo "$as_me: former value: $ac_old_val" >&2;} |
edfaf76d | 1747 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
503d2be0 | 1748 | echo "$as_me: current value: $ac_new_val" >&2;} |
edfaf76d | 1749 | ac_cache_corrupted=: |
503d2be0 AS |
1750 | fi;; |
1751 | esac | |
c0d27fcc | 1752 | # Pass precious variables to config.status. |
503d2be0 AS |
1753 | if test "$ac_new_set" = set; then |
1754 | case $ac_new_val in | |
d6e01aa5 | 1755 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c0d27fcc MR |
1756 | *) ac_arg=$ac_var=$ac_new_val ;; |
1757 | esac | |
1758 | case " $ac_configure_args " in | |
1759 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1760 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
503d2be0 AS |
1761 | esac |
1762 | fi | |
1763 | done | |
1764 | if $ac_cache_corrupted; then | |
c0d27fcc | 1765 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
503d2be0 | 1766 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
c0d27fcc | 1767 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
503d2be0 AS |
1768 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1769 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1770 | fi |
1771 | ||
c0d27fcc MR |
1772 | |
1773 | ||
1774 | ||
1775 | ||
1776 | ||
1777 | ||
1778 | ||
1779 | ||
1780 | ||
1781 | ||
1782 | ||
1783 | ||
1784 | ||
1785 | ||
1786 | ||
1787 | ||
d6e01aa5 KL |
1788 | ac_ext=c |
1789 | ac_cpp='$CPP $CPPFLAGS' | |
1790 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1791 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1792 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 | 1793 | |
6bae0ccf | 1794 | |
d6e01aa5 | 1795 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" |
ba4481b5 | 1796 | |
c0d27fcc | 1797 | |
ba5da88a | 1798 | test "$program_prefix" != NONE && |
d6e01aa5 | 1799 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
ba5da88a PJ |
1800 | # Use a double $ so make ignores it. |
1801 | test "$program_suffix" != NONE && | |
d6e01aa5 | 1802 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
ba5da88a PJ |
1803 | # Double any \ or $. echo might interpret backslashes. |
1804 | # By default was `s,x,x', remove it if useless. | |
1805 | cat <<\_ACEOF >conftest.sed | |
1806 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1807 | _ACEOF | |
1808 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
d6e01aa5 | 1809 | rm -f conftest.sed |
ba5da88a | 1810 | |
c0d27fcc | 1811 | |
ba4481b5 DL |
1812 | lispdir='${datadir}/emacs/${version}/lisp' |
1813 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
e9291f09 EZ |
1814 | '${datadir}/emacs/site-lisp' |
1815 | lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim' | |
ba4481b5 DL |
1816 | etcdir='${datadir}/emacs/${version}/etc' |
1817 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
1818 | docdir='${datadir}/emacs/${version}/etc' | |
24b01ec4 | 1819 | gamedir='${localstatedir}/games/emacs' |
98418dba CW |
1820 | |
1821 | gameuser=games | |
1822 | ||
c0d27fcc | 1823 | |
49adb60f | 1824 | |
d6e01aa5 | 1825 | # Check whether --with-gcc was given. |
ba4481b5 | 1826 | if test "${with_gcc+set}" = set; then |
d6e01aa5 KL |
1827 | withval=$with_gcc; |
1828 | fi | |
503d2be0 | 1829 | |
ba4481b5 | 1830 | |
49adb60f | 1831 | |
d6e01aa5 | 1832 | # Check whether --with-pop was given. |
ba4481b5 | 1833 | if test "${with_pop+set}" = set; then |
d6e01aa5 | 1834 | withval=$with_pop; if test "$withval" = yes; then |
c0d27fcc | 1835 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1836 | #define MAIL_USE_POP 1 |
c0d27fcc | 1837 | _ACEOF |
ba4481b5 | 1838 | |
243cf185 DL |
1839 | else : |
1840 | fi | |
3d9fec71 | 1841 | else |
c0d27fcc | 1842 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 1843 | #define MAIL_USE_POP 1 |
c0d27fcc | 1844 | _ACEOF |
3d9fec71 | 1845 | |
d6e01aa5 | 1846 | fi |
ba4481b5 | 1847 | |
c0d27fcc | 1848 | |
d6e01aa5 | 1849 | |
49adb60f | 1850 | |
d6e01aa5 | 1851 | # Check whether --with-kerberos was given. |
a21616bd | 1852 | if test "${with_kerberos+set}" = set; then |
54e6585f CY |
1853 | withval=$with_kerberos; if test "$withval" = yes; then |
1854 | cat >>confdefs.h <<\_ACEOF | |
a21616bd | 1855 | #define KERBEROS 1 |
c0d27fcc | 1856 | _ACEOF |
a21616bd | 1857 | |
d6e01aa5 | 1858 | fi |
54e6585f | 1859 | fi |
a21616bd | 1860 | |
c0d27fcc | 1861 | |
d6e01aa5 | 1862 | |
49adb60f | 1863 | |
d6e01aa5 | 1864 | # Check whether --with-kerberos5 was given. |
a21616bd | 1865 | if test "${with_kerberos5+set}" = set; then |
d6e01aa5 | 1866 | withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then |
a21616bd KR |
1867 | if test "${with_kerberos+set}" != set; then |
1868 | with_kerberos=yes | |
c0d27fcc | 1869 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1870 | #define KERBEROS 1 |
c0d27fcc | 1871 | _ACEOF |
a21616bd KR |
1872 | |
1873 | fi | |
b936fae4 | 1874 | |
c0d27fcc | 1875 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1876 | #define KERBEROS5 1 |
c0d27fcc | 1877 | _ACEOF |
a21616bd | 1878 | |
d6e01aa5 | 1879 | fi |
54e6585f | 1880 | fi |
a21616bd | 1881 | |
b936fae4 | 1882 | |
49adb60f | 1883 | |
d6e01aa5 KL |
1884 | # Check whether --with-hesiod was given. |
1885 | if test "${with_hesiod+set}" = set; then | |
54e6585f CY |
1886 | withval=$with_hesiod; if test "$withval" = yes; then |
1887 | ||
c0d27fcc | 1888 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1889 | #define HESIOD 1 |
c0d27fcc | 1890 | _ACEOF |
ba4481b5 | 1891 | |
d6e01aa5 | 1892 | fi |
54e6585f | 1893 | fi |
ba4481b5 | 1894 | |
c0d27fcc | 1895 | |
d6e01aa5 KL |
1896 | |
1897 | # Check whether --with-sound was given. | |
2c9dccc9 | 1898 | if test "${with_sound+set}" = set; then |
d6e01aa5 KL |
1899 | withval=$with_sound; |
1900 | fi | |
2c9dccc9 | 1901 | |
2c9dccc9 | 1902 | |
c0d27fcc | 1903 | |
d6e01aa5 | 1904 | # Check whether --with-x-toolkit was given. |
ba4481b5 | 1905 | if test "${with_x_toolkit+set}" = set; then |
d6e01aa5 | 1906 | withval=$with_x_toolkit; case "${withval}" in |
089a966d | 1907 | y | ye | yes ) val=gtk ;; |
ba4481b5 DL |
1908 | n | no ) val=no ;; |
1909 | l | lu | luc | luci | lucid ) val=lucid ;; | |
1910 | a | at | ath | athe | athen | athena ) val=athena ;; | |
1911 | m | mo | mot | moti | motif ) val=motif ;; | |
488dd4c4 | 1912 | g | gt | gtk ) val=gtk ;; |
ba4481b5 | 1913 | * ) |
29d69661 | 1914 | { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid; |
488dd4c4 | 1915 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
29d69661 JD |
1916 | \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5 |
1917 | echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid; | |
488dd4c4 | 1918 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
29d69661 | 1919 | \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;} |
503d2be0 | 1920 | { (exit 1); exit 1; }; } |
ba4481b5 DL |
1921 | ;; |
1922 | esac | |
1923 | with_x_toolkit=$val | |
1924 | ||
d6e01aa5 KL |
1925 | fi |
1926 | ||
ba4481b5 | 1927 | |
49adb60f | 1928 | |
d6e01aa5 | 1929 | # Check whether --with-xpm was given. |
ba4481b5 | 1930 | if test "${with_xpm+set}" = set; then |
d6e01aa5 KL |
1931 | withval=$with_xpm; |
1932 | fi | |
503d2be0 | 1933 | |
ba4481b5 | 1934 | |
d6e01aa5 | 1935 | # Check whether --with-jpeg was given. |
ba4481b5 | 1936 | if test "${with_jpeg+set}" = set; then |
d6e01aa5 KL |
1937 | withval=$with_jpeg; |
1938 | fi | |
503d2be0 | 1939 | |
ba4481b5 | 1940 | |
d6e01aa5 | 1941 | # Check whether --with-tiff was given. |
ba4481b5 | 1942 | if test "${with_tiff+set}" = set; then |
d6e01aa5 KL |
1943 | withval=$with_tiff; |
1944 | fi | |
503d2be0 | 1945 | |
ba4481b5 | 1946 | |
d6e01aa5 | 1947 | # Check whether --with-gif was given. |
ba4481b5 | 1948 | if test "${with_gif+set}" = set; then |
d6e01aa5 KL |
1949 | withval=$with_gif; |
1950 | fi | |
503d2be0 | 1951 | |
ba4481b5 | 1952 | |
d6e01aa5 | 1953 | # Check whether --with-png was given. |
ba4481b5 | 1954 | if test "${with_png+set}" = set; then |
d6e01aa5 KL |
1955 | withval=$with_png; |
1956 | fi | |
503d2be0 | 1957 | |
ba4481b5 | 1958 | |
79011b82 NR |
1959 | # Check whether --with-gpm was given. |
1960 | if test "${with_gpm+set}" = set; then | |
1961 | withval=$with_gpm; | |
1962 | fi | |
1963 | ||
1964 | ||
0cfc0546 GM |
1965 | # Check whether --with-rsvg was given. |
1966 | if test "${with_rsvg+set}" = set; then | |
1967 | withval=$with_rsvg; | |
1968 | fi | |
1969 | ||
1970 | ||
d6e01aa5 | 1971 | # Check whether --with-gtk was given. |
488dd4c4 | 1972 | if test "${with_gtk+set}" = set; then |
d6e01aa5 KL |
1973 | withval=$with_gtk; |
1974 | fi | |
488dd4c4 | 1975 | |
488dd4c4 | 1976 | |
d6e01aa5 | 1977 | # Check whether --with-pkg-config-prog was given. |
488dd4c4 | 1978 | if test "${with_pkg_config_prog+set}" = set; then |
d6e01aa5 KL |
1979 | withval=$with_pkg_config_prog; |
1980 | fi | |
488dd4c4 | 1981 | |
488dd4c4 | 1982 | |
d6e01aa5 | 1983 | # Check whether --with-toolkit-scroll-bars was given. |
ba4481b5 | 1984 | if test "${with_toolkit_scroll_bars+set}" = set; then |
d6e01aa5 KL |
1985 | withval=$with_toolkit_scroll_bars; |
1986 | fi | |
503d2be0 | 1987 | |
ba4481b5 | 1988 | |
e35a28cd TTN |
1989 | # Check whether --with-xaw3d was given. |
1990 | if test "${with_xaw3d+set}" = set; then | |
1991 | withval=$with_xaw3d; | |
c982cf7d JD |
1992 | fi |
1993 | ||
1994 | ||
d6e01aa5 | 1995 | # Check whether --with-xim was given. |
1d36487c | 1996 | if test "${with_xim+set}" = set; then |
d6e01aa5 KL |
1997 | withval=$with_xim; |
1998 | fi | |
1d36487c | 1999 | |
ba4481b5 | 2000 | |
d6e01aa5 | 2001 | # Check whether --with-carbon was given. |
e0f712ba | 2002 | if test "${with_carbon+set}" = set; then |
d6e01aa5 KL |
2003 | withval=$with_carbon; |
2004 | fi | |
e0f712ba | 2005 | |
49adb60f | 2006 | |
d6e01aa5 | 2007 | # Check whether --enable-carbon-app was given. |
6a3a24fa | 2008 | if test "${enable_carbon_app+set}" = set; then |
d6e01aa5 KL |
2009 | enableval=$enable_carbon_app; carbon_appdir_x=${enableval} |
2010 | fi | |
e0f712ba | 2011 | |
d6e01aa5 KL |
2012 | |
2013 | # Check whether --enable-asserts was given. | |
d0098f13 | 2014 | if test "${enable_asserts+set}" = set; then |
d6e01aa5 | 2015 | enableval=$enable_asserts; USE_XASSERTS=$enableval |
d0098f13 JD |
2016 | else |
2017 | USE_XASSERTS=no | |
d6e01aa5 KL |
2018 | fi |
2019 | ||
d0098f13 | 2020 | |
d6e01aa5 | 2021 | # Check whether --enable-maintainer-mode was given. |
19650fd6 | 2022 | if test "${enable_maintainer_mode+set}" = set; then |
d6e01aa5 | 2023 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
19650fd6 AS |
2024 | else |
2025 | USE_MAINTAINER_MODE=no | |
d6e01aa5 KL |
2026 | fi |
2027 | ||
19650fd6 AS |
2028 | if test $USE_MAINTAINER_MODE = yes; then |
2029 | MAINT= | |
2030 | else | |
2031 | MAINT=# | |
2032 | fi | |
2033 | ||
2034 | ||
d6e01aa5 | 2035 | # Check whether --enable-locallisppath was given. |
9adfabc2 | 2036 | if test "${enable_locallisppath+set}" = set; then |
d6e01aa5 | 2037 | enableval=$enable_locallisppath; if test "${enableval}" = "no"; then |
9adfabc2 LK |
2038 | locallisppath= |
2039 | elif test "${enableval}" != "yes"; then | |
2040 | locallisppath=${enableval} | |
2041 | fi | |
d6e01aa5 KL |
2042 | fi |
2043 | ||
9adfabc2 | 2044 | |
ba4481b5 | 2045 | #### Make srcdir absolute, if it isn't already. It's important to |
17494071 | 2046 | #### avoid running the path through pwd unnecessarily, since pwd can |
ba4481b5 DL |
2047 | #### give you automounter prefixes, which can go away. We do all this |
2048 | #### so Emacs can find its files when run uninstalled. | |
17494071 GM |
2049 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
2050 | unset CDPATH | |
ba4481b5 DL |
2051 | case "${srcdir}" in |
2052 | /* ) ;; | |
2053 | . ) | |
2054 | ## We may be able to use the $PWD environment variable to make this | |
2055 | ## absolute. But sometimes PWD is inaccurate. | |
df645f7c AS |
2056 | ## Note: we used to use ${PWD} at the end instead of `pwd`, |
2057 | ## but that tested only for a well-formed and valid PWD, | |
2058 | ## it did not object when PWD was well-formed and valid but just wrong. | |
2059 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
ba4481b5 DL |
2060 | then |
2061 | srcdir="$PWD" | |
2062 | else | |
2063 | srcdir="`(cd ${srcdir}; pwd)`" | |
2064 | fi | |
2065 | ;; | |
2066 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
2067 | esac | |
2068 | ||
2069 | #### Check if the source directory already has a configured system in it. | |
2070 | if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
2071 | && test -f "${srcdir}/src/config.h" ; then | |
c0d27fcc | 2072 | { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used |
503d2be0 AS |
2073 | as a build directory right now; it has been configured in its own |
2074 | right. To configure in another directory as well, you MUST | |
2075 | use GNU make. If you do not have GNU make, then you must | |
2076 | now do \`make distclean' in ${srcdir}, | |
2077 | and then run $0 again." >&5 | |
2078 | echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
ba4481b5 DL |
2079 | as a build directory right now; it has been configured in its own |
2080 | right. To configure in another directory as well, you MUST | |
2081 | use GNU make. If you do not have GNU make, then you must | |
2082 | now do \`make distclean' in ${srcdir}, | |
503d2be0 | 2083 | and then run $0 again." >&2;} |
ba4481b5 DL |
2084 | fi |
2085 | ||
2086 | #### Given the configuration name, set machfile and opsysfile to the | |
2087 | #### names of the m/*.h and s/*.h files we should use. | |
2088 | ||
2089 | ### Canonicalize the configuration name. | |
2090 | ||
2091 | ac_aux_dir= | |
d6e01aa5 KL |
2092 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2093 | if test -f "$ac_dir/install-sh"; then | |
ba4481b5 DL |
2094 | ac_aux_dir=$ac_dir |
2095 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2096 | break | |
d6e01aa5 | 2097 | elif test -f "$ac_dir/install.sh"; then |
ba4481b5 DL |
2098 | ac_aux_dir=$ac_dir |
2099 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2100 | break | |
d6e01aa5 | 2101 | elif test -f "$ac_dir/shtool"; then |
503d2be0 AS |
2102 | ac_aux_dir=$ac_dir |
2103 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2104 | break | |
ba4481b5 DL |
2105 | fi |
2106 | done | |
2107 | if test -z "$ac_aux_dir"; then | |
d6e01aa5 KL |
2108 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2109 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
503d2be0 | 2110 | { (exit 1); exit 1; }; } |
ba4481b5 | 2111 | fi |
d6e01aa5 KL |
2112 | |
2113 | # These three variables are undocumented and unsupported, | |
2114 | # and are intended to be withdrawn in a future Autoconf release. | |
2115 | # They can cause serious problems if a builder's source tree is in a directory | |
2116 | # whose full name contains unusual characters. | |
2117 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2118 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2119 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2120 | ||
ba4481b5 DL |
2121 | |
2122 | # Make sure we can run config.sub. | |
d6e01aa5 KL |
2123 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2124 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
2125 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
503d2be0 AS |
2126 | { (exit 1); exit 1; }; } |
2127 | ||
d6e01aa5 KL |
2128 | { echo "$as_me:$LINENO: checking build system type" >&5 |
2129 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
503d2be0 AS |
2130 | if test "${ac_cv_build+set}" = set; then |
2131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2132 | else | |
d6e01aa5 KL |
2133 | ac_build_alias=$build_alias |
2134 | test "x$ac_build_alias" = x && | |
2135 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2136 | test "x$ac_build_alias" = x && | |
c0d27fcc | 2137 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
503d2be0 AS |
2138 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
2139 | { (exit 1); exit 1; }; } | |
d6e01aa5 KL |
2140 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2141 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
2142 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
503d2be0 AS |
2143 | { (exit 1); exit 1; }; } |
2144 | ||
2145 | fi | |
d6e01aa5 KL |
2146 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2147 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
2148 | case $ac_cv_build in | |
2149 | *-*-*) ;; | |
2150 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
2151 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
2152 | { (exit 1); exit 1; }; };; | |
2153 | esac | |
503d2be0 | 2154 | build=$ac_cv_build |
d6e01aa5 KL |
2155 | ac_save_IFS=$IFS; IFS='-' |
2156 | set x $ac_cv_build | |
2157 | shift | |
2158 | build_cpu=$1 | |
2159 | build_vendor=$2 | |
2160 | shift; shift | |
2161 | # Remember, the first character of IFS is used to create $*, | |
2162 | # except with old shells: | |
2163 | build_os=$* | |
2164 | IFS=$ac_save_IFS | |
2165 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2166 | ||
2167 | ||
2168 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
2169 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
503d2be0 AS |
2170 | if test "${ac_cv_host+set}" = set; then |
2171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2172 | else | |
d6e01aa5 KL |
2173 | if test "x$host_alias" = x; then |
2174 | ac_cv_host=$ac_cv_build | |
2175 | else | |
2176 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2177 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
2178 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
503d2be0 | 2179 | { (exit 1); exit 1; }; } |
d6e01aa5 | 2180 | fi |
503d2be0 AS |
2181 | |
2182 | fi | |
d6e01aa5 KL |
2183 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2184 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
2185 | case $ac_cv_host in | |
2186 | *-*-*) ;; | |
2187 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
2188 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
2189 | { (exit 1); exit 1; }; };; | |
2190 | esac | |
503d2be0 | 2191 | host=$ac_cv_host |
d6e01aa5 KL |
2192 | ac_save_IFS=$IFS; IFS='-' |
2193 | set x $ac_cv_host | |
2194 | shift | |
2195 | host_cpu=$1 | |
2196 | host_vendor=$2 | |
2197 | shift; shift | |
2198 | # Remember, the first character of IFS is used to create $*, | |
2199 | # except with old shells: | |
2200 | host_os=$* | |
2201 | IFS=$ac_save_IFS | |
2202 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ba4481b5 | 2203 | |
c0d27fcc | 2204 | |
ba4481b5 | 2205 | canonical=$host |
1770dcdc | 2206 | configuration=${host_alias-${build_alias-$host}} |
ba4481b5 | 2207 | |
c0d27fcc | 2208 | |
22044edf | 2209 | |
ba4481b5 DL |
2210 | ### If you add support for a new configuration, add code to this |
2211 | ### switch statement to recognize your configuration name and select | |
2212 | ### the appropriate operating system and machine description files. | |
2213 | ||
2214 | ### You would hope that you could choose an m/*.h file pretty much | |
2215 | ### based on the machine portion of the configuration name, and an s- | |
2216 | ### file based on the operating system portion. However, it turns out | |
2217 | ### that each m/*.h file is pretty manufacturer-specific - for | |
2218 | ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
2219 | ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
2220 | ### machines. So we basically have to have a special case for each | |
2221 | ### configuration name. | |
2222 | ### | |
2223 | ### As far as handling version numbers on operating systems is | |
2224 | ### concerned, make sure things will fail in a fixable way. If | |
2225 | ### /etc/MACHINES doesn't say anything about version numbers, be | |
2226 | ### prepared to handle anything reasonably. If version numbers | |
2227 | ### matter, be sure /etc/MACHINES says something about it. | |
2228 | ### | |
2229 | ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
2230 | ### "System V Release 4"; he writes, "The old convention encouraged | |
2231 | ### confusion between `system' and `release' levels'." | |
2232 | ||
2233 | machine='' opsys='' unported=no | |
2234 | case "${canonical}" in | |
2235 | ||
1096bcc0 GM |
2236 | ## FreeBSD ports |
2237 | *-*-freebsd* ) | |
2238 | opsys=freebsd | |
2239 | case "${canonical}" in | |
2240 | alpha*-*-freebsd*) machine=alpha ;; | |
ec8fcb10 YM |
2241 | ia64-*-freebsd*) machine=ia64 ;; |
2242 | sparc64-*-freebsd*) machine=sparc ;; | |
2243 | powerpc-*-freebsd*) machine=macppc ;; | |
1096bcc0 | 2244 | i[3456]86-*-freebsd*) machine=intel386 ;; |
01abe918 | 2245 | amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;; |
1096bcc0 GM |
2246 | esac |
2247 | ;; | |
2248 | ||
ba4481b5 DL |
2249 | ## NetBSD ports |
2250 | *-*-netbsd* ) | |
2251 | opsys=netbsd | |
dd038e26 | 2252 | if test -f /usr/lib/crti.o; then |
f57bd967 DL |
2253 | |
2254 | cat >>confdefs.h <<\_ACEOF | |
2255 | #define HAVE_CRTIN | |
dd038e26 AS |
2256 | _ACEOF |
2257 | ||
2258 | fi | |
2259 | ||
ba4481b5 DL |
2260 | case "${canonical}" in |
2261 | alpha*-*-netbsd*) machine=alpha ;; | |
2262 | i[3456]86-*-netbsd*) machine=intel386 ;; | |
2263 | m68k-*-netbsd*) | |
2264 | # This is somewhat bogus. | |
2265 | machine=hp9000s300 ;; | |
ba4481b5 | 2266 | mips-*-netbsd*) machine=pmax ;; |
2df636f4 | 2267 | mipsel-*-netbsd*) machine=pmax ;; |
97836269 | 2268 | mipseb-*-netbsd*) machine=pmax ;; |
ba4481b5 | 2269 | ns32k-*-netbsd*) machine=ns32000 ;; |
3a64eef5 | 2270 | powerpc-*-netbsd*) machine=macppc ;; |
71c9ec51 | 2271 | sparc*-*-netbsd*) machine=sparc ;; |
ba4481b5 | 2272 | vax-*-netbsd*) machine=vax ;; |
2df636f4 | 2273 | arm-*-netbsd*) machine=arm ;; |
d54ee7b4 | 2274 | x86_64-*-netbsd*) machine=amdx86-64 ;; |
13aadc96 | 2275 | hppa-*-netbsd*) machine=hp800 ;; |
d54ee7b4 | 2276 | shle-*-netbsd*) machine=sh3el ;; |
ba4481b5 DL |
2277 | esac |
2278 | ;; | |
2279 | ||
2280 | ## OpenBSD ports | |
2281 | *-*-openbsd* ) | |
2282 | opsys=openbsd | |
2283 | case "${canonical}" in | |
2284 | alpha*-*-openbsd*) machine=alpha ;; | |
85410b02 CY |
2285 | arm-*-openbsd*) machine=arm ;; |
2286 | hppa-*-openbsd*) machine=hp9000s300 ;; | |
2287 | i386-*-openbsd*) machine=intel386 ;; | |
2288 | m68k-*-openbsd*) machine=hp9000s300 ;; | |
2289 | m88k-*-openbsd*) machine=aviion ;; | |
2290 | mips64-*-openbsd*) machine=mips64 ;; | |
2291 | powerpc-*-openbsd*) machine=macppc ;; | |
2292 | sh-*-openbsd*) machine=sh3el ;; | |
2293 | sparc*-*-openbsd*) machine=sparc ;; | |
2294 | vax-*-openbsd*) machine=vax ;; | |
2295 | x86_64-*-openbsd*) machine=amdx86-64 ;; | |
ba4481b5 DL |
2296 | esac |
2297 | ;; | |
2298 | ||
10a3b1a1 EZ |
2299 | ## LynxOS ports |
2300 | *-*-lynxos* ) | |
2301 | opsys=lynxos | |
2302 | case "${canonical}" in | |
2303 | i[3456]86-*-lynxos*) machine=intel386 ;; | |
2304 | powerpc-*-lynxos*) machine=powerpc ;; | |
2305 | esac | |
2306 | ;; | |
2307 | ||
ba4481b5 DL |
2308 | ## Acorn RISCiX: |
2309 | arm-acorn-riscix1.1* ) | |
2310 | machine=acorn opsys=riscix1-1 | |
2311 | ;; | |
2312 | arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
2313 | ## This name is riscix12 instead of riscix1.2 | |
2314 | ## to avoid a file name conflict on MSDOS. | |
2315 | machine=acorn opsys=riscix12 | |
2316 | ;; | |
2317 | ||
2318 | ## BSDI ports | |
2319 | *-*-bsdi* ) | |
2320 | opsys=bsdi | |
2321 | case "${canonical}" in | |
2322 | i[345]86-*-bsdi*) machine=intel386 ;; | |
2323 | sparc-*-bsdi*) machine=sparc ;; | |
3aeecf97 | 2324 | powerpc-*-bsdi*) machine=macppc ;; |
ba4481b5 DL |
2325 | esac |
2326 | case "${canonical}" in | |
2327 | *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
2328 | *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
2329 | *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
2330 | *-*-bsdi3* ) opsys=bsdos3 ;; | |
1d06fc82 | 2331 | *-*-bsdi[45]* ) opsys=bsdos4 ;; |
ba4481b5 DL |
2332 | esac |
2333 | ;; | |
2334 | ||
2335 | ## Alliant machines | |
2336 | ## Strictly speaking, we need the version of the alliant operating | |
2337 | ## system to choose the right machine file, but currently the | |
2338 | ## configuration name doesn't tell us enough to choose the right | |
2339 | ## one; we need to give alliants their own operating system name to | |
2340 | ## do this right. When someone cares, they can help us. | |
2341 | fx80-alliant-* ) | |
2342 | machine=alliant4 opsys=bsd4-2 | |
2343 | ;; | |
2344 | i860-alliant-* ) | |
2345 | machine=alliant-2800 opsys=bsd4-3 | |
2346 | ;; | |
2347 | ||
2348 | ## Alpha (DEC) machines. | |
2349 | alpha*-dec-osf* ) | |
2350 | machine=alpha opsys=osf1 | |
2351 | # This is needed to find X11R6.1 libraries for certain tests. | |
2352 | NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
2353 | GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34979055 DL |
2354 | # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
2355 | # due to non-traditional preprocessing with the current compiler | |
2356 | # defaults. OSF 4 can also have that compiler version, and there | |
2357 | # seems always to have been a usable /usr/bin/cpp. | |
2358 | NON_GNU_CPP=/usr/bin/cpp | |
ca512671 | 2359 | case "${canonical}" in |
a55b799a | 2360 | alpha*-dec-osf[5-9]*) |
bb17930d | 2361 | opsys=osf5-0 ;; |
ca512671 | 2362 | esac |
ba4481b5 DL |
2363 | ;; |
2364 | ||
2365 | alpha*-*-linux-gnu* ) | |
2366 | machine=alpha opsys=gnu-linux | |
2367 | ;; | |
2368 | ||
c4bb2108 DL |
2369 | arm*-*-linux-gnu* ) |
2370 | machine=arm opsys=gnu-linux | |
2371 | ;; | |
2372 | ||
ba4481b5 DL |
2373 | ## Altos 3068 |
2374 | m68*-altos-sysv* ) | |
2375 | machine=altos opsys=usg5-2 | |
2376 | ;; | |
2377 | ||
2378 | ## Amdahl UTS | |
2379 | 580-amdahl-sysv* ) | |
2380 | machine=amdahl opsys=usg5-2-2 | |
2381 | ;; | |
2382 | ||
2383 | ## Apollo, Domain/OS | |
2384 | m68*-apollo-* ) | |
2385 | machine=apollo opsys=bsd4-3 | |
2386 | ;; | |
2387 | ||
040c474e CY |
2388 | ## Apple Darwin / Mac OS X |
2389 | *-apple-darwin* ) | |
2390 | case "${canonical}" in | |
2391 | i[3456]86-* ) machine=intel386 ;; | |
2392 | powerpc-* ) machine=powermac ;; | |
2393 | * ) unported=yes ;; | |
2394 | esac | |
2395 | opsys=darwin | |
2396 | # Define CPP as follows to make autoconf work correctly. | |
2397 | CPP="${CC-cc} -E -no-cpp-precomp" | |
2398 | # Use fink packages if available. | |
2399 | if test -d /sw/include && test -d /sw/lib; then | |
2400 | GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" | |
2401 | CPP="${CPP} ${GCC_TEST_OPTIONS}" | |
2402 | NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} | |
2403 | fi | |
2404 | ;; | |
2405 | ||
ba4481b5 DL |
2406 | ## AT&T 3b2, 3b5, 3b15, 3b20 |
2407 | we32k-att-sysv* ) | |
2408 | machine=att3b opsys=usg5-2-2 | |
2409 | ;; | |
2410 | ||
2411 | ## AT&T 3b1 - The Mighty Unix PC! | |
2412 | m68*-att-sysv* ) | |
2413 | machine=7300 opsys=usg5-2-2 | |
2414 | ;; | |
2415 | ||
2416 | ## Bull dpx20 | |
2417 | rs6000-bull-bosx* ) | |
2418 | machine=ibmrs6000 opsys=aix3-2 | |
2419 | ;; | |
2420 | ||
2421 | ## Bull dpx2 | |
2422 | m68*-bull-sysv3* ) | |
2423 | machine=dpx2 opsys=usg5-3 | |
2424 | ;; | |
2425 | ||
2426 | ## Bull sps7 | |
2427 | m68*-bull-sysv2* ) | |
2428 | machine=sps7 opsys=usg5-2 | |
2429 | ;; | |
2430 | ||
2431 | ## CCI 5/32, 6/32 -- see "Tahoe". | |
2432 | ||
2433 | ## Celerity | |
2434 | ## I don't know what configuration name to use for this; config.sub | |
2435 | ## doesn't seem to know anything about it. Hey, Celerity users, get | |
2436 | ## in touch with us! | |
2437 | celerity-celerity-bsd* ) | |
2438 | machine=celerity opsys=bsd4-2 | |
2439 | ;; | |
2440 | ||
2441 | ## Clipper | |
2442 | ## What operating systems does this chip run that Emacs has been | |
2443 | ## tested on? | |
2444 | clipper-* ) | |
2445 | machine=clipper | |
2446 | ## We'll use the catch-all code at the bottom to guess the | |
2447 | ## operating system. | |
2448 | ;; | |
2449 | ||
df645f7c AS |
2450 | ## Compaq Nonstop |
2451 | mips-compaq-nonstopux* ) | |
2452 | machine=nonstopux opsys=nonstopux | |
2453 | ;; | |
2454 | ||
ba4481b5 DL |
2455 | ## Convex |
2456 | *-convex-bsd* | *-convex-convexos* ) | |
2457 | machine=convex opsys=bsd4-3 | |
2458 | ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
2459 | NON_GNU_CPP="cc -E -P" | |
2460 | ;; | |
2461 | ||
2462 | ## Cubix QBx/386 | |
2463 | i[3456]86-cubix-sysv* ) | |
2464 | machine=intel386 opsys=usg5-3 | |
2465 | ;; | |
2466 | ||
2467 | ## Cydra 5 | |
2468 | cydra*-cydrome-sysv* ) | |
2469 | machine=cydra5 opsys=usg5-3 | |
2470 | ;; | |
2471 | ||
2472 | ## Data General AViiON Machines | |
2473 | ## DG changed naming conventions with the release of 5.4.4.10, they | |
2474 | ## dropped the initial 5.4 but left the intervening R. Because of the | |
2475 | ## R this shouldn't conflict with older versions of the OS (which I | |
2476 | ## think were named like dgux4.*). In addition, DG new AViiONs series | |
2477 | ## uses either Motorola M88k or Intel Pentium CPUs. | |
2478 | m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
2479 | machine=aviion opsys=dgux4 | |
2480 | ;; | |
2481 | m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
2482 | ## This name is dgux5-4-3 instead of dgux5-4r3 | |
2483 | ## to avoid a file name conflict on MSDOS. | |
2484 | machine=aviion opsys=dgux5-4-3 | |
2485 | ;; | |
2486 | m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
2487 | machine=aviion opsys=dgux5-4r2 | |
2488 | ;; | |
2489 | m88k-dg-dgux* ) | |
2490 | machine=aviion opsys=dgux | |
2491 | ;; | |
2492 | ||
2493 | ## Data General AViiON Intel (x86) Machines | |
2494 | ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
2495 | ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
2496 | i[345]86-dg-dguxR4* ) | |
2497 | machine=aviion-intel opsys=dgux4 | |
2498 | ;; | |
2499 | ||
2500 | ## DECstations | |
2501 | mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
2502 | machine=pmax opsys=bsd4-2 | |
2503 | ;; | |
2504 | mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
2505 | machine=pmax opsys=bsd4-3 | |
2506 | ;; | |
2507 | mips-dec-ultrix* ) | |
2508 | machine=pmax opsys=ultrix4-3 | |
2509 | ;; | |
2510 | mips-dec-osf* ) | |
2511 | machine=pmax opsys=osf1 | |
2512 | ;; | |
2513 | mips-dec-mach_bsd4.3* ) | |
2514 | machine=pmax opsys=mach-bsd4-3 | |
2515 | ;; | |
2516 | ||
cd890796 JD |
2517 | ## Motorola Delta machines |
2518 | m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
2519 | machine=delta opsys=usg5-3 | |
2520 | if test -z "`type gnucc | grep 'not found'`" | |
2521 | then | |
2522 | if test -s /etc/167config | |
2523 | then CC="gnucc -m68040" | |
2524 | else CC="gnucc -m68881" | |
2525 | fi | |
2526 | else | |
2527 | if test -z "`type gcc | grep 'not found'`" | |
2528 | then CC=gcc | |
2529 | else CC=cc | |
2530 | fi | |
2531 | fi | |
2532 | ;; | |
ba4481b5 DL |
2533 | m88k-motorola-sysv4* ) |
2534 | # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
2535 | # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
2536 | # I hope there are not other 4.0 versions for this machine | |
2537 | # which really need usg5-4 instead. | |
2538 | machine=delta88k opsys=usg5-4-2 | |
2539 | ;; | |
2540 | m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
2541 | machine=delta88k opsys=usg5-3 | |
2542 | ;; | |
2543 | ||
2544 | ## Dual machines | |
2545 | m68*-dual-sysv* ) | |
2546 | machine=dual opsys=usg5-2 | |
2547 | ;; | |
2548 | m68*-dual-uniplus* ) | |
2549 | machine=dual opsys=unipl5-2 | |
2550 | ;; | |
2551 | ||
2552 | ## Elxsi 6400 | |
2553 | elxsi-elxsi-sysv* ) | |
2554 | machine=elxsi opsys=usg5-2 | |
2555 | ;; | |
2556 | ||
2557 | ## Encore machines | |
2558 | ns16k-encore-bsd* ) | |
2559 | machine=ns16000 opsys=umax | |
2560 | ;; | |
2561 | ||
65171e3a DL |
2562 | ## The GEC 63 - apparently, this port isn't really finished yet. |
2563 | # I'm sure we finished off the last of the machines, though. -- fx | |
ba4481b5 DL |
2564 | |
2565 | ## Gould Power Node and NP1 | |
2566 | pn-gould-bsd4.2* ) | |
2567 | machine=gould opsys=bsd4-2 | |
2568 | ;; | |
2569 | pn-gould-bsd4.3* ) | |
2570 | machine=gould opsys=bsd4-3 | |
2571 | ;; | |
2572 | np1-gould-bsd* ) | |
2573 | machine=gould-np1 opsys=bsd4-3 | |
2574 | ;; | |
2575 | ||
2576 | ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
2577 | ## as far as Emacs is concerned). | |
2578 | m88k-harris-cxux* ) | |
2579 | # Build needs to be different on 7.0 and later releases | |
2580 | case "`uname -r`" in | |
2581 | [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
2582 | [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
2583 | esac | |
2584 | NON_GNU_CPP="/lib/cpp" | |
2585 | ;; | |
2586 | ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
2587 | m68k-harris-cxux* ) | |
2588 | machine=nh3000 opsys=cxux | |
2589 | ;; | |
2590 | ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
2591 | powerpc-harris-powerunix ) | |
2592 | machine=nh6000 opsys=powerunix | |
2593 | NON_GNU_CPP="cc -Xo -E -P" | |
2594 | ;; | |
6fbb6db1 GM |
2595 | ## SR2001/SR2201 running HI-UX/MPP |
2596 | hppa1.1-hitachi-hiuxmpp* ) | |
2597 | machine=sr2k opsys=hiuxmpp | |
2598 | ;; | |
2599 | hppa1.1-hitachi-hiuxwe2* ) | |
2600 | machine=sr2k opsys=hiuxwe2 | |
2601 | ;; | |
ba4481b5 DL |
2602 | ## Honeywell XPS100 |
2603 | xps*-honeywell-sysv* ) | |
2604 | machine=xps100 opsys=usg5-2 | |
2605 | ;; | |
2606 | ||
2607 | ## HP 9000 series 200 or 300 | |
2608 | m68*-hp-bsd* ) | |
2609 | machine=hp9000s300 opsys=bsd4-3 | |
2610 | ;; | |
2611 | ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
2612 | m68*-hp-hpux* ) | |
2613 | case "`uname -r`" in | |
2614 | ## Someone's system reports A.B8.05 for this. | |
2615 | ## I wonder what other possibilities there are. | |
2616 | *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2617 | *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2618 | *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
2619 | *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
2620 | *) machine=hp9000s300 opsys=hpux ;; | |
2621 | esac | |
2622 | ;; | |
2623 | ||
6fbb6db1 GM |
2624 | ## HP 9000 series 700 and 800, running HP/UX |
2625 | hppa*-hp-hpux7* ) | |
2626 | machine=hp800 opsys=hpux | |
2627 | ;; | |
2628 | hppa*-hp-hpux8* ) | |
2629 | machine=hp800 opsys=hpux8 | |
2630 | ;; | |
2631 | hppa*-hp-hpux9shr* ) | |
2632 | machine=hp800 opsys=hpux9shr | |
2633 | ;; | |
2634 | hppa*-hp-hpux9* ) | |
2635 | machine=hp800 opsys=hpux9 | |
2636 | ;; | |
2637 | hppa*-hp-hpux10.2* ) | |
2638 | machine=hp800 opsys=hpux10-20 | |
2639 | ;; | |
2640 | hppa*-hp-hpux10* ) | |
2641 | machine=hp800 opsys=hpux10 | |
2642 | ;; | |
2643 | hppa*-hp-hpux1[1-9]* ) | |
2644 | machine=hp800 opsys=hpux11 | |
2645 | CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS" | |
2646 | ;; | |
2647 | ||
13aadc96 CY |
2648 | hppa*-*-linux-gnu* ) |
2649 | machine=hp800 opsys=gnu-linux | |
2650 | ;; | |
2651 | ||
6fbb6db1 GM |
2652 | ## HP 9000 series 700 and 800, running HP/UX |
2653 | hppa*-hp-hpux* ) | |
2654 | ## Cross-compilation? Nah! | |
2655 | case "`uname -r`" in | |
2656 | ## Someone's system reports A.B8.05 for this. | |
2657 | ## I wonder what other possibilities there are. | |
2658 | *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
2659 | *.08.* ) machine=hp800 opsys=hpux8 ;; | |
2660 | *.09.* ) machine=hp800 opsys=hpux9 ;; | |
2661 | *) machine=hp800 opsys=hpux10 ;; | |
2662 | esac | |
2663 | ;; | |
13aadc96 CY |
2664 | hppa*-*-nextstep* ) |
2665 | machine=hp800 opsys=nextstep | |
2666 | ;; | |
2667 | ||
ba4481b5 DL |
2668 | ## Orion machines |
2669 | orion-orion-bsd* ) | |
2670 | machine=orion opsys=bsd4-2 | |
2671 | ;; | |
2672 | clipper-orion-bsd* ) | |
2673 | machine=orion105 opsys=bsd4-2 | |
2674 | ;; | |
2675 | ||
2676 | ## IBM machines | |
2677 | i[3456]86-ibm-aix1.1* ) | |
2678 | machine=ibmps2-aix opsys=usg5-2-2 | |
2679 | ;; | |
2680 | i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
2681 | machine=ibmps2-aix opsys=usg5-3 | |
2682 | ;; | |
2683 | i370-ibm-aix*) | |
2684 | machine=ibm370aix opsys=usg5-3 | |
2685 | ;; | |
55597d70 | 2686 | s390-*-linux-gnu* ) |
138f0859 GM |
2687 | machine=ibms390 opsys=gnu-linux |
2688 | ;; | |
bcdb1378 EZ |
2689 | s390x-*-linux-gnu* ) |
2690 | machine=ibms390x opsys=gnu-linux | |
2691 | ;; | |
ba4481b5 DL |
2692 | rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
2693 | machine=ibmrs6000 opsys=aix3-1 | |
2694 | ;; | |
2695 | rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
2696 | machine=ibmrs6000 opsys=aix3-2-5 | |
2697 | ;; | |
2698 | rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
2699 | machine=ibmrs6000 opsys=aix4-1 | |
2700 | ;; | |
2701 | rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
2702 | machine=ibmrs6000 opsys=aix4-2 | |
2703 | ;; | |
67bf991b CY |
2704 | rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* ) |
2705 | machine=ibmrs6000 opsys=aix4-2 | |
2706 | ;; | |
55597d70 | 2707 | rs6000-ibm-aix5* | powerpc-ibm-aix5* ) |
d6b82250 EZ |
2708 | machine=ibmrs6000 opsys=aix4-2 |
2709 | ;; | |
ba4481b5 DL |
2710 | rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
2711 | machine=ibmrs6000 opsys=aix4 | |
2712 | ;; | |
2713 | rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
2714 | machine=ibmrs6000 opsys=aix4-1 | |
2715 | ;; | |
2716 | rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
2717 | machine=ibmrs6000 opsys=aix3-2 | |
2718 | ;; | |
2719 | romp-ibm-bsd4.3* ) | |
2720 | machine=ibmrt opsys=bsd4-3 | |
2721 | ;; | |
2722 | romp-ibm-bsd4.2* ) | |
2723 | machine=ibmrt opsys=bsd4-2 | |
2724 | ;; | |
2725 | romp-ibm-aos4.3* ) | |
2726 | machine=ibmrt opsys=bsd4-3 | |
2727 | ;; | |
2728 | romp-ibm-aos4.2* ) | |
2729 | machine=ibmrt opsys=bsd4-2 | |
2730 | ;; | |
2731 | romp-ibm-aos* ) | |
2732 | machine=ibmrt opsys=bsd4-3 | |
2733 | ;; | |
2734 | romp-ibm-bsd* ) | |
2735 | machine=ibmrt opsys=bsd4-3 | |
2736 | ;; | |
2737 | romp-ibm-aix* ) | |
2738 | machine=ibmrt-aix opsys=usg5-2-2 | |
2739 | ;; | |
2740 | ||
2741 | ## Integrated Solutions `Optimum V' | |
2742 | m68*-isi-bsd4.2* ) | |
2743 | machine=isi-ov opsys=bsd4-2 | |
2744 | ;; | |
2745 | m68*-isi-bsd4.3* ) | |
2746 | machine=isi-ov opsys=bsd4-3 | |
2747 | ;; | |
2748 | ||
2749 | ## Intel 386 machines where we do care about the manufacturer | |
2750 | i[3456]86-intsys-sysv* ) | |
2751 | machine=is386 opsys=usg5-2-2 | |
2752 | ;; | |
2753 | ||
2754 | ## Prime EXL | |
2755 | i[3456]86-prime-sysv* ) | |
2756 | machine=i386 opsys=usg5-3 | |
2757 | ;; | |
2758 | ||
2759 | ## Sequent Symmetry running Dynix | |
2760 | i[3456]86-sequent-bsd* ) | |
2761 | machine=symmetry opsys=bsd4-3 | |
2762 | ;; | |
2763 | ||
2764 | ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
2765 | i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
2766 | machine=sequent-ptx opsys=ptx4 | |
2767 | NON_GNU_CPP=/lib/cpp | |
2768 | ;; | |
2769 | ||
2770 | ## Sequent Symmetry running DYNIX/ptx | |
2771 | ## Use the old cpp rather than the newer ANSI one. | |
2772 | i[3456]86-sequent-ptx* ) | |
2773 | machine=sequent-ptx opsys=ptx | |
2774 | NON_GNU_CPP="/lib/cpp" | |
2775 | ;; | |
2776 | ||
2777 | ## ncr machine running svr4.3. | |
2778 | i[3456]86-ncr-sysv4.3 ) | |
2779 | machine=ncr386 opsys=usg5-4-3 | |
2780 | ;; | |
2781 | ||
2782 | ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
2783 | ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
2784 | i[3456]86-ncr-sysv* ) | |
2785 | machine=ncr386 opsys=usg5-4-2 | |
2786 | ;; | |
2787 | ||
2788 | ## Intel Paragon OSF/1 | |
2789 | i860-intel-osf1* ) | |
2790 | machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
2791 | ;; | |
2792 | ||
2793 | ## Intel 860 | |
2794 | i860-*-sysv4* ) | |
2795 | machine=i860 opsys=usg5-4 | |
2796 | NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
2797 | NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
2798 | ;; | |
2799 | ||
c76e04a8 GM |
2800 | ## Macintosh PowerPC |
2801 | powerpc*-*-linux-gnu* ) | |
2802 | machine=macppc opsys=gnu-linux | |
2803 | ;; | |
2804 | ||
ba4481b5 DL |
2805 | ## Masscomp machines |
2806 | m68*-masscomp-rtu* ) | |
2807 | machine=masscomp opsys=rtu | |
2808 | ;; | |
2809 | ||
2810 | ## Megatest machines | |
2811 | m68*-megatest-bsd* ) | |
2812 | machine=mega68 opsys=bsd4-2 | |
2813 | ;; | |
2814 | ||
2815 | ## Workstations sold by MIPS | |
2816 | ## This is not necessarily all workstations using the MIPS processor - | |
2817 | ## Irises are produced by SGI, and DECstations by DEC. | |
2818 | ||
2819 | ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
2820 | ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
2821 | ## it gives for choosing between the alternatives seems to be "Use | |
2822 | ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
2823 | ## the BSD world." I'll assume that these are instructions for | |
2824 | ## handling two odd situations, and that every other situation | |
2825 | ## should use mips.h and usg5-2-2, they being listed first. | |
2826 | mips-mips-usg* ) | |
2827 | machine=mips4 | |
2828 | ## Fall through to the general code at the bottom to decide on the OS. | |
2829 | ;; | |
2830 | mips-mips-riscos4* ) | |
2831 | machine=mips4 opsys=bsd4-3 | |
2832 | NON_GNU_CC="cc -systype bsd43" | |
2833 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2834 | ;; | |
2835 | mips-mips-riscos5* ) | |
2836 | machine=mips4 opsys=riscos5 | |
2837 | NON_GNU_CC="cc -systype bsd43" | |
2838 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2839 | ;; | |
2840 | mips-mips-bsd* ) | |
2841 | machine=mips opsys=bsd4-3 | |
2842 | ;; | |
2843 | mips-mips-* ) | |
2844 | machine=mips opsys=usg5-2-2 | |
2845 | ;; | |
2846 | ||
2847 | ## NeXT | |
2848 | m68*-next-* | m68k-*-nextstep* ) | |
2849 | machine=m68k opsys=nextstep | |
2850 | ;; | |
2851 | ||
2852 | ## The complete machine from National Semiconductor | |
2853 | ns32k-ns-genix* ) | |
2854 | machine=ns32000 opsys=usg5-2 | |
2855 | ;; | |
2856 | ||
2857 | ## NCR machines | |
2858 | m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
2859 | machine=tower32 opsys=usg5-2-2 | |
2860 | ;; | |
2861 | m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
2862 | machine=tower32v3 opsys=usg5-3 | |
2863 | ;; | |
2864 | ||
2865 | ## NEC EWS4800 | |
2866 | mips-nec-sysv4*) | |
2867 | machine=ews4800 opsys=ux4800 | |
2868 | ;; | |
2869 | ||
2870 | ## Nixdorf Targon 31 | |
2871 | m68*-nixdorf-sysv* ) | |
2872 | machine=targon31 opsys=usg5-2-2 | |
2873 | ;; | |
2874 | ||
2875 | ## Nu (TI or LMI) | |
2876 | m68*-nu-sysv* ) | |
2877 | machine=nu opsys=usg5-2 | |
2878 | ;; | |
2879 | ||
2880 | ## Plexus | |
2881 | m68*-plexus-sysv* ) | |
2882 | machine=plexus opsys=usg5-2 | |
2883 | ;; | |
2884 | ||
ba4481b5 DL |
2885 | ## Pyramid machines |
2886 | ## I don't really have any idea what sort of processor the Pyramid has, | |
2887 | ## so I'm assuming it is its own architecture. | |
2888 | pyramid-pyramid-bsd* ) | |
2889 | machine=pyramid opsys=bsd4-2 | |
2890 | ;; | |
2891 | ||
2892 | ## Sequent Balance | |
2893 | ns32k-sequent-bsd4.2* ) | |
2894 | machine=sequent opsys=bsd4-2 | |
2895 | ;; | |
2896 | ns32k-sequent-bsd4.3* ) | |
2897 | machine=sequent opsys=bsd4-3 | |
2898 | ;; | |
2899 | ||
2900 | ## Siemens Nixdorf | |
2901 | mips-siemens-sysv* | mips-sni-sysv*) | |
2902 | machine=mips-siemens opsys=usg5-4 | |
2903 | NON_GNU_CC=/usr/ccs/bin/cc | |
2904 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2905 | ;; | |
2906 | ||
2907 | ## Silicon Graphics machines | |
2908 | ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
2909 | m68*-sgi-iris3.5* ) | |
2910 | machine=irist opsys=iris3-5 | |
2911 | ;; | |
2912 | m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
2913 | machine=irist opsys=iris3-6 | |
2914 | ;; | |
2915 | ## Iris 4D | |
2916 | mips-sgi-irix3* ) | |
2917 | machine=iris4d opsys=irix3-3 | |
2918 | ;; | |
2919 | mips-sgi-irix4* ) | |
2920 | machine=iris4d opsys=irix4-0 | |
2921 | ;; | |
2922 | mips-sgi-irix6.5 ) | |
2923 | machine=iris4d opsys=irix6-5 | |
946173ad DL |
2924 | # Without defining _LANGUAGE_C, things get masked out in the headers |
2925 | # so that, for instance, grepping for `free' in stdlib.h fails and | |
2926 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
2927 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2928 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
ba4481b5 DL |
2929 | ;; |
2930 | mips-sgi-irix6* ) | |
2931 | machine=iris4d opsys=irix6-0 | |
c4bb2108 | 2932 | # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
946173ad DL |
2933 | # but presumably it does no harm. |
2934 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2935 | # -32 probably isn't necessary in later v.6s -- anyone know which? |
ba4481b5 DL |
2936 | NON_GCC_TEST_OPTIONS=-32 |
2937 | ;; | |
2938 | mips-sgi-irix5.[01]* ) | |
2939 | machine=iris4d opsys=irix5-0 | |
2940 | ;; | |
2941 | mips-sgi-irix5* | mips-sgi-irix* ) | |
2942 | machine=iris4d opsys=irix5-2 | |
2943 | ;; | |
2944 | ||
2945 | ## SONY machines | |
2946 | m68*-sony-bsd4.2* ) | |
2947 | machine=news opsys=bsd4-2 | |
2948 | ;; | |
2949 | m68*-sony-bsd4.3* ) | |
2950 | machine=news opsys=bsd4-3 | |
2951 | ;; | |
2952 | m68*-sony-newsos3* | m68*-sony-news3*) | |
2953 | machine=news opsys=bsd4-3 | |
2954 | ;; | |
2955 | mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
2956 | machine=news-risc opsys=bsd4-3 | |
2957 | ;; | |
2958 | mips-sony-newsos6* ) | |
2959 | machine=news-r6 opsys=newsos6 | |
2960 | ;; | |
2961 | mips-sony-news* ) | |
2962 | machine=news-risc opsys=newsos5 | |
2963 | ;; | |
2964 | ||
2965 | ## Stride | |
2966 | m68*-stride-sysv* ) | |
2967 | machine=stride opsys=usg5-2 | |
2968 | ;; | |
2969 | ||
2970 | ## Suns | |
2971 | sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
2972 | machine=sparc opsys=gnu-linux | |
2973 | ;; | |
2974 | ||
d054101f | 2975 | *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
ba4481b5 DL |
2976 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
2977 | | rs6000-*-solaris2*) | |
2978 | case "${canonical}" in | |
2979 | m68*-sunos1* ) machine=sun1 ;; | |
2980 | m68*-sunos2* ) machine=sun2 ;; | |
2981 | m68* ) machine=sun3 ;; | |
2982 | i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
2983 | i[3456]86-*-* ) machine=intel386 ;; | |
af46e133 | 2984 | amd64-*-*|x86_64-*-*) machine=amdx86-64 ;; |
ba4481b5 DL |
2985 | powerpcle* ) machine=powerpcle ;; |
2986 | powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
2987 | sparc* ) machine=sparc ;; | |
2988 | * ) unported=yes ;; | |
2989 | esac | |
2990 | case "${canonical}" in | |
2991 | ## The Sun386 didn't get past 4.0. | |
2992 | i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
2993 | *-sunos4.0* ) opsys=sunos4-0 ;; | |
2994 | *-sunos4.1.[3-9]*noshare ) | |
2995 | ## This name is sunos413 instead of sunos4-1-3 | |
2996 | ## to avoid a file name conflict on MSDOS. | |
2997 | opsys=sunos413 | |
2998 | NON_GNU_CPP=/usr/lib/cpp | |
2999 | NON_GCC_TEST_OPTIONS=-Bstatic | |
3000 | GCC_TEST_OPTIONS=-static | |
3001 | ;; | |
3002 | *-sunos4.1.[3-9]* | *-sunos4shr*) | |
3003 | opsys=sunos4shr | |
3004 | NON_GNU_CPP=/usr/lib/cpp | |
3005 | ;; | |
3006 | *-sunos4* | *-sunos ) | |
3007 | opsys=sunos4-1 | |
3008 | NON_GCC_TEST_OPTIONS=-Bstatic | |
3009 | GCC_TEST_OPTIONS=-static | |
3010 | ;; | |
3011 | *-sunos5.3* | *-solaris2.3* ) | |
3012 | opsys=sol2-3 | |
3013 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
3014 | ;; | |
3015 | *-sunos5.4* | *-solaris2.4* ) | |
3016 | opsys=sol2-4 | |
3017 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
3018 | RANLIB="ar -ts" | |
3019 | ;; | |
3020 | *-sunos5.5* | *-solaris2.5* ) | |
3021 | opsys=sol2-5 | |
3022 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
3023 | RANLIB="ar -ts" | |
3024 | ;; | |
8e967cf7 MR |
3025 | *-sunos5.6* | *-solaris2.6* ) |
3026 | opsys=sol2-6 | |
3027 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
3028 | RANLIB="ar -ts" | |
3029 | ;; | |
ba4481b5 | 3030 | *-sunos5* | *-solaris* ) |
9e71690e | 3031 | opsys=sol2-6 |
089a966d GM |
3032 | emacs_check_sunpro_c=yes |
3033 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
ba4481b5 DL |
3034 | ;; |
3035 | * ) opsys=bsd4-2 ;; | |
3036 | esac | |
3037 | ## Watch out for a compiler that we know will not work. | |
3038 | case "${canonical}" in | |
3039 | *-solaris* | *-sunos5* ) | |
3040 | if [ "x$CC" = x/usr/ucb/cc ]; then | |
3041 | ## /usr/ucb/cc doesn't work; | |
3042 | ## we should find some other compiler that does work. | |
3043 | unset CC | |
3044 | fi | |
3045 | ;; | |
3046 | *) ;; | |
3047 | esac | |
3048 | ;; | |
3049 | sparc-*-nextstep* ) | |
3050 | machine=sparc opsys=nextstep | |
3051 | ;; | |
3052 | ||
3053 | ## Tadpole 68k | |
3054 | m68*-tadpole-sysv* ) | |
3055 | machine=tad68k opsys=usg5-3 | |
3056 | ;; | |
3057 | ||
3058 | ## Tahoe machines | |
3059 | tahoe-tahoe-bsd4.2* ) | |
3060 | machine=tahoe opsys=bsd4-2 | |
3061 | ;; | |
3062 | tahoe-tahoe-bsd4.3* ) | |
3063 | machine=tahoe opsys=bsd4-3 | |
3064 | ;; | |
3065 | ||
3066 | ## Tandem Integrity S2 | |
3067 | mips-tandem-sysv* ) | |
3068 | machine=tandem-s2 opsys=usg5-3 | |
3069 | ;; | |
3070 | ||
3071 | ## Tektronix XD88 | |
3072 | m88k-tektronix-sysv3* ) | |
3073 | machine=tekxd88 opsys=usg5-3 | |
3074 | ;; | |
3075 | ||
3076 | ## Tektronix 16000 box (6130?) | |
3077 | ns16k-tektronix-bsd* ) | |
3078 | machine=ns16000 opsys=bsd4-2 | |
3079 | ;; | |
3080 | ## Tektronix 4300 | |
3081 | ## src/m/tek4300.h hints that this is a m68k machine. | |
3082 | m68*-tektronix-bsd* ) | |
3083 | machine=tek4300 opsys=bsd4-3 | |
3084 | ;; | |
3085 | ||
3086 | ## Titan P2 or P3 | |
3087 | ## We seem to have lost the machine-description file titan.h! | |
3088 | titan-titan-sysv* ) | |
3089 | machine=titan opsys=usg5-3 | |
3090 | ;; | |
3091 | ||
3092 | ## Ustation E30 (SS5E) | |
3093 | m68*-unisys-uniplus* ) | |
3094 | machine=ustation opsystem=unipl5-2 | |
3095 | ;; | |
3096 | ||
3097 | ## Vaxen. | |
3098 | vax-dec-* ) | |
3099 | machine=vax | |
3100 | case "${canonical}" in | |
3101 | *-bsd4.1* ) opsys=bsd4-1 ;; | |
3102 | *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
3103 | *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
3104 | *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
3105 | *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
3106 | *-vms* ) opsys=vms ;; | |
3107 | * ) unported=yes | |
3108 | esac | |
3109 | ;; | |
3110 | ||
3111 | ## Whitechapel MG1 | |
3112 | ns16k-whitechapel-* ) | |
3113 | machine=mg1 | |
3114 | ## We don't know what sort of OS runs on these; we'll let the | |
3115 | ## operating system guessing code below try. | |
3116 | ;; | |
3117 | ||
3118 | ## Wicat | |
3119 | m68*-wicat-sysv* ) | |
3120 | machine=wicat opsys=usg5-2 | |
3121 | ;; | |
3122 | ||
f4988be7 GM |
3123 | ## IA-64 |
3124 | ia64*-*-linux* ) | |
3125 | machine=ia64 opsys=gnu-linux | |
3126 | ;; | |
3127 | ||
ba4481b5 DL |
3128 | ## Intel 386 machines where we don't care about the manufacturer |
3129 | i[3456]86-*-* ) | |
3130 | machine=intel386 | |
3131 | case "${canonical}" in | |
c60ee5e7 | 3132 | *-cygwin ) opsys=cygwin ;; |
eae54018 | 3133 | *-darwin* ) opsys=darwin |
23fd4483 ST |
3134 | CPP="${CC-cc} -E -no-cpp-precomp" |
3135 | ;; | |
ba4481b5 DL |
3136 | *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
3137 | *-isc2.2* ) opsys=isc2-2 ;; | |
3138 | *-isc4.0* ) opsys=isc4-0 ;; | |
3139 | *-isc4.* ) opsys=isc4-1 | |
3140 | GCC_TEST_OPTIONS=-posix | |
3141 | NON_GCC_TEST_OPTIONS=-Xp | |
3142 | ;; | |
3143 | *-isc* ) opsys=isc3-0 ;; | |
3144 | *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
3145 | *-esix* ) opsys=esix ;; | |
3146 | *-xenix* ) opsys=xenix ;; | |
3147 | *-linux-gnu* ) opsys=gnu-linux ;; | |
3148 | *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
503d2be0 | 3149 | *-sco3.2v5* ) opsys=sco5 |
ba4481b5 DL |
3150 | NON_GNU_CPP=/lib/cpp |
3151 | # Prevent -belf from being passed to $CPP. | |
3152 | # /lib/cpp does not accept it. | |
3153 | OVERRIDE_CPPFLAGS=" " | |
3154 | ;; | |
3155 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
55597d70 DL |
3156 | *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
3157 | *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
ba4481b5 | 3158 | *-386bsd* ) opsys=386bsd ;; |
ba4481b5 DL |
3159 | *-nextstep* ) opsys=nextstep ;; |
3160 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
3161 | esac | |
3162 | ;; | |
3163 | ||
3164 | ## m68k Linux-based GNU system | |
3165 | m68k-*-linux-gnu* ) | |
3166 | machine=m68k opsys=gnu-linux | |
3167 | ;; | |
3168 | ||
3169 | ## Mips Linux-based GNU system | |
cd958eb3 | 3170 | mips-*-linux-gnu* | mipsel-*-linux-gnu* ) |
ba4481b5 DL |
3171 | machine=mips opsys=gnu-linux |
3172 | ;; | |
3173 | ||
3174 | ## UXP/DS | |
3175 | sparc-fujitsu-sysv4* ) | |
3176 | machine=sparc opsys=uxpds | |
3177 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
3178 | RANLIB="ar -ts" | |
3179 | ;; | |
3180 | ||
3181 | ## UXP/V | |
3182 | f301-fujitsu-uxpv4.1) | |
3183 | machine=f301 opsys=uxpv | |
3184 | ;; | |
3185 | ||
598a2813 AS |
3186 | ## AMD x86-64 Linux-based GNU system |
3187 | x86_64-*-linux-gnu* ) | |
24b01ec4 | 3188 | machine=amdx86-64 opsys=gnu-linux |
598a2813 AS |
3189 | ;; |
3190 | ||
94218e27 DN |
3191 | ## Tensilica Xtensa Linux-based GNU system |
3192 | xtensa-*-linux-gnu* ) | |
3193 | machine=xtensa opsys=gnu-linux | |
3194 | ;; | |
3195 | ||
ba4481b5 DL |
3196 | * ) |
3197 | unported=yes | |
3198 | ;; | |
3199 | esac | |
3200 | ||
3201 | ### If the code above didn't choose an operating system, just choose | |
3202 | ### an operating system based on the configuration name. You really | |
3203 | ### only want to use this when you have no idea what the right | |
3204 | ### operating system is; if you know what operating systems a machine | |
3205 | ### runs, it's cleaner to make it explicit in the case statement | |
3206 | ### above. | |
3207 | if test x"${opsys}" = x; then | |
3208 | case "${canonical}" in | |
3209 | *-gnu* ) opsys=gnu ;; | |
3210 | *-bsd4.[01] ) opsys=bsd4-1 ;; | |
3211 | *-bsd4.2 ) opsys=bsd4-2 ;; | |
3212 | *-bsd4.3 ) opsys=bsd4-3 ;; | |
3213 | *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
3214 | *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
3215 | *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
3216 | *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
3217 | *-sysv4.2uw* ) opsys=unixware ;; | |
55597d70 DL |
3218 | *-sysv5uw* ) opsys=unixware ;; |
3219 | *-sysv5OpenUNIX* ) opsys=unixware ;; | |
ba4481b5 DL |
3220 | *-sysv4.1* | *-sysvr4.1* ) |
3221 | NON_GNU_CPP=/usr/lib/cpp | |
3222 | opsys=usg5-4 ;; | |
3223 | *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
3224 | if [ x$NON_GNU_CPP = x ]; then | |
3225 | if [ -f /usr/ccs/lib/cpp ]; then | |
3226 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
3227 | else | |
3228 | NON_GNU_CPP=/lib/cpp | |
3229 | fi | |
3230 | fi | |
3231 | opsys=usg5-4-2 ;; | |
3232 | *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
3233 | * ) | |
3234 | unported=yes | |
3235 | ;; | |
3236 | esac | |
3237 | fi | |
3238 | ||
c0d27fcc | 3239 | |
22044edf | 3240 | |
ba4481b5 | 3241 | if test $unported = yes; then |
c0d27fcc | 3242 | { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. |
503d2be0 AS |
3243 | Check \`etc/MACHINES' for recognized configuration names." >&5 |
3244 | echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
3245 | Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
3246 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
3247 | fi |
3248 | ||
3249 | machfile="m/${machine}.h" | |
3250 | opsysfile="s/${opsys}.h" | |
3251 | ||
c0d27fcc | 3252 | |
ba4481b5 DL |
3253 | #### Choose a compiler. |
3254 | test -n "$CC" && cc_specified=yes | |
3255 | ||
3256 | # Save the value of CFLAGS that the user specified. | |
3257 | SPECIFIED_CFLAGS="$CFLAGS" | |
3258 | ||
3259 | case ${with_gcc} in | |
3260 | "yes" ) CC="gcc" GCC=yes ;; | |
3261 | "no" ) : ${CC=cc} ;; | |
503d2be0 AS |
3262 | * ) |
3263 | esac | |
3264 | ac_ext=c | |
3265 | ac_cpp='$CPP $CPPFLAGS' | |
3266 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3267 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3268 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3269 | if test -n "$ac_tool_prefix"; then | |
3270 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3271 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
d6e01aa5 KL |
3272 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3273 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3274 | if test "${ac_cv_prog_CC+set}" = set; then |
3275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
3276 | else |
3277 | if test -n "$CC"; then | |
3278 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3279 | else | |
c0d27fcc MR |
3280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3281 | for as_dir in $PATH | |
3282 | do | |
3283 | IFS=$as_save_IFS | |
3284 | test -z "$as_dir" && as_dir=. | |
3285 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6e01aa5 | 3286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3287 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3288 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3289 | break 2 | |
3290 | fi | |
3291 | done | |
503d2be0 | 3292 | done |
d6e01aa5 | 3293 | IFS=$as_save_IFS |
503d2be0 | 3294 | |
ba4481b5 DL |
3295 | fi |
3296 | fi | |
503d2be0 | 3297 | CC=$ac_cv_prog_CC |
ba4481b5 | 3298 | if test -n "$CC"; then |
d6e01aa5 KL |
3299 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3300 | echo "${ECHO_T}$CC" >&6; } | |
503d2be0 | 3301 | else |
d6e01aa5 KL |
3302 | { echo "$as_me:$LINENO: result: no" >&5 |
3303 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
3304 | fi |
3305 | ||
d6e01aa5 | 3306 | |
503d2be0 AS |
3307 | fi |
3308 | if test -z "$ac_cv_prog_CC"; then | |
3309 | ac_ct_CC=$CC | |
3310 | # Extract the first word of "gcc", so it can be a program name with args. | |
3311 | set dummy gcc; ac_word=$2 | |
d6e01aa5 KL |
3312 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3313 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3314 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3316 | else | |
3317 | if test -n "$ac_ct_CC"; then | |
3318 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3319 | else | |
c0d27fcc MR |
3320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3321 | for as_dir in $PATH | |
3322 | do | |
3323 | IFS=$as_save_IFS | |
3324 | test -z "$as_dir" && as_dir=. | |
3325 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6e01aa5 | 3326 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3327 | ac_cv_prog_ac_ct_CC="gcc" |
3328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3329 | break 2 | |
3330 | fi | |
3331 | done | |
503d2be0 | 3332 | done |
d6e01aa5 | 3333 | IFS=$as_save_IFS |
503d2be0 AS |
3334 | |
3335 | fi | |
3336 | fi | |
3337 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3338 | if test -n "$ac_ct_CC"; then | |
d6e01aa5 KL |
3339 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3340 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ba4481b5 | 3341 | else |
d6e01aa5 KL |
3342 | { echo "$as_me:$LINENO: result: no" >&5 |
3343 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
3344 | fi |
3345 | ||
d6e01aa5 KL |
3346 | if test "x$ac_ct_CC" = x; then |
3347 | CC="" | |
3348 | else | |
3349 | case $cross_compiling:$ac_tool_warned in | |
3350 | yes:) | |
3351 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3352 | whose name does not start with the host triplet. If you think this | |
3353 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3354 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3355 | whose name does not start with the host triplet. If you think this | |
3356 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3357 | ac_tool_warned=yes ;; | |
3358 | esac | |
3359 | CC=$ac_ct_CC | |
3360 | fi | |
503d2be0 AS |
3361 | else |
3362 | CC="$ac_cv_prog_CC" | |
ba4481b5 DL |
3363 | fi |
3364 | ||
3365 | if test -z "$CC"; then | |
d6e01aa5 KL |
3366 | if test -n "$ac_tool_prefix"; then |
3367 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
503d2be0 | 3368 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
d6e01aa5 KL |
3369 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3370 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3371 | if test "${ac_cv_prog_CC+set}" = set; then |
3372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
3373 | else |
3374 | if test -n "$CC"; then | |
3375 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3376 | else | |
c0d27fcc MR |
3377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3378 | for as_dir in $PATH | |
3379 | do | |
3380 | IFS=$as_save_IFS | |
3381 | test -z "$as_dir" && as_dir=. | |
3382 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6e01aa5 | 3383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3384 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3385 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3386 | break 2 | |
3387 | fi | |
3388 | done | |
503d2be0 | 3389 | done |
d6e01aa5 | 3390 | IFS=$as_save_IFS |
503d2be0 AS |
3391 | |
3392 | fi | |
3393 | fi | |
3394 | CC=$ac_cv_prog_CC | |
3395 | if test -n "$CC"; then | |
d6e01aa5 KL |
3396 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3397 | echo "${ECHO_T}$CC" >&6; } | |
503d2be0 | 3398 | else |
d6e01aa5 KL |
3399 | { echo "$as_me:$LINENO: result: no" >&5 |
3400 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
3401 | fi |
3402 | ||
503d2be0 | 3403 | |
d6e01aa5 | 3404 | fi |
503d2be0 AS |
3405 | fi |
3406 | if test -z "$CC"; then | |
3407 | # Extract the first word of "cc", so it can be a program name with args. | |
3408 | set dummy cc; ac_word=$2 | |
d6e01aa5 KL |
3409 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3410 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3411 | if test "${ac_cv_prog_CC+set}" = set; then |
3412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3413 | else | |
3414 | if test -n "$CC"; then | |
3415 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3416 | else | |
3417 | ac_prog_rejected=no | |
c0d27fcc MR |
3418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3419 | for as_dir in $PATH | |
3420 | do | |
3421 | IFS=$as_save_IFS | |
3422 | test -z "$as_dir" && as_dir=. | |
3423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6e01aa5 | 3424 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3425 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3426 | ac_prog_rejected=yes | |
3427 | continue | |
3428 | fi | |
3429 | ac_cv_prog_CC="cc" | |
3430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3431 | break 2 | |
3432 | fi | |
3433 | done | |
503d2be0 | 3434 | done |
d6e01aa5 | 3435 | IFS=$as_save_IFS |
503d2be0 | 3436 | |
ba4481b5 DL |
3437 | if test $ac_prog_rejected = yes; then |
3438 | # We found a bogon in the path, so make sure we never use it. | |
3439 | set dummy $ac_cv_prog_CC | |
3440 | shift | |
503d2be0 | 3441 | if test $# != 0; then |
ba4481b5 DL |
3442 | # We chose a different compiler from the bogus one. |
3443 | # However, it has the same basename, so the bogon will be chosen | |
3444 | # first if we set CC to just the basename; use the full file name. | |
3445 | shift | |
6bae0ccf | 3446 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
ba4481b5 DL |
3447 | fi |
3448 | fi | |
3449 | fi | |
3450 | fi | |
503d2be0 | 3451 | CC=$ac_cv_prog_CC |
ba4481b5 | 3452 | if test -n "$CC"; then |
d6e01aa5 KL |
3453 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3454 | echo "${ECHO_T}$CC" >&6; } | |
ba4481b5 | 3455 | else |
d6e01aa5 KL |
3456 | { echo "$as_me:$LINENO: result: no" >&5 |
3457 | echo "${ECHO_T}no" >&6; } | |
ba4481b5 DL |
3458 | fi |
3459 | ||
d6e01aa5 | 3460 | |
503d2be0 AS |
3461 | fi |
3462 | if test -z "$CC"; then | |
3463 | if test -n "$ac_tool_prefix"; then | |
d6e01aa5 | 3464 | for ac_prog in cl.exe |
503d2be0 AS |
3465 | do |
3466 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3467 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
d6e01aa5 KL |
3468 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3470 | if test "${ac_cv_prog_CC+set}" = set; then |
3471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c4bb2108 DL |
3472 | else |
3473 | if test -n "$CC"; then | |
3474 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3475 | else | |
c0d27fcc MR |
3476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3477 | for as_dir in $PATH | |
3478 | do | |
3479 | IFS=$as_save_IFS | |
3480 | test -z "$as_dir" && as_dir=. | |
3481 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6e01aa5 | 3482 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3483 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3485 | break 2 | |
3486 | fi | |
3487 | done | |
503d2be0 | 3488 | done |
d6e01aa5 | 3489 | IFS=$as_save_IFS |
503d2be0 | 3490 | |
c4bb2108 DL |
3491 | fi |
3492 | fi | |
503d2be0 | 3493 | CC=$ac_cv_prog_CC |
c4bb2108 | 3494 | if test -n "$CC"; then |
d6e01aa5 KL |
3495 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3496 | echo "${ECHO_T}$CC" >&6; } | |
c4bb2108 | 3497 | else |
d6e01aa5 KL |
3498 | { echo "$as_me:$LINENO: result: no" >&5 |
3499 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
3500 | fi |
3501 | ||
d6e01aa5 | 3502 | |
503d2be0 AS |
3503 | test -n "$CC" && break |
3504 | done | |
3505 | fi | |
3506 | if test -z "$CC"; then | |
3507 | ac_ct_CC=$CC | |
d6e01aa5 | 3508 | for ac_prog in cl.exe |
503d2be0 AS |
3509 | do |
3510 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3511 | set dummy $ac_prog; ac_word=$2 | |
d6e01aa5 KL |
3512 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3514 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3516 | else | |
3517 | if test -n "$ac_ct_CC"; then | |
3518 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3519 | else | |
c0d27fcc MR |
3520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3521 | for as_dir in $PATH | |
3522 | do | |
3523 | IFS=$as_save_IFS | |
3524 | test -z "$as_dir" && as_dir=. | |
3525 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6e01aa5 | 3526 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3527 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3529 | break 2 | |
3530 | fi | |
3531 | done | |
503d2be0 | 3532 | done |
d6e01aa5 | 3533 | IFS=$as_save_IFS |
503d2be0 | 3534 | |
c4bb2108 | 3535 | fi |
503d2be0 AS |
3536 | fi |
3537 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3538 | if test -n "$ac_ct_CC"; then | |
d6e01aa5 KL |
3539 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3540 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
503d2be0 | 3541 | else |
d6e01aa5 KL |
3542 | { echo "$as_me:$LINENO: result: no" >&5 |
3543 | echo "${ECHO_T}no" >&6; } | |
ba4481b5 DL |
3544 | fi |
3545 | ||
d6e01aa5 | 3546 | |
503d2be0 AS |
3547 | test -n "$ac_ct_CC" && break |
3548 | done | |
ba4481b5 | 3549 | |
d6e01aa5 KL |
3550 | if test "x$ac_ct_CC" = x; then |
3551 | CC="" | |
3552 | else | |
3553 | case $cross_compiling:$ac_tool_warned in | |
3554 | yes:) | |
3555 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3556 | whose name does not start with the host triplet. If you think this | |
3557 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3558 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3559 | whose name does not start with the host triplet. If you think this | |
3560 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3561 | ac_tool_warned=yes ;; | |
3562 | esac | |
3563 | CC=$ac_ct_CC | |
3564 | fi | |
503d2be0 AS |
3565 | fi |
3566 | ||
3567 | fi | |
ba4481b5 | 3568 | |
c0d27fcc | 3569 | |
19650fd6 AS |
3570 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
3571 | See \`config.log' for more details." >&5 | |
3572 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3573 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3574 | { (exit 1); exit 1; }; } |
c4bb2108 | 3575 | |
503d2be0 | 3576 | # Provide some information about the compiler. |
d6e01aa5 | 3577 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
503d2be0 | 3578 | ac_compiler=`set X $ac_compile; echo $2` |
d6e01aa5 KL |
3579 | { (ac_try="$ac_compiler --version >&5" |
3580 | case "(($ac_try" in | |
3581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3582 | *) ac_try_echo=$ac_try;; | |
3583 | esac | |
3584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3585 | (eval "$ac_compiler --version >&5") 2>&5 | |
503d2be0 | 3586 | ac_status=$? |
c0d27fcc | 3587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3588 | (exit $ac_status); } |
d6e01aa5 KL |
3589 | { (ac_try="$ac_compiler -v >&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 -v >&5") 2>&5 | |
503d2be0 | 3596 | ac_status=$? |
c0d27fcc | 3597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3598 | (exit $ac_status); } |
d6e01aa5 KL |
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 AS |
3608 | (exit $ac_status); } |
3609 | ||
3610 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3611 | /* confdefs.h. */ |
3612 | _ACEOF | |
3613 | cat confdefs.h >>conftest.$ac_ext | |
3614 | cat >>conftest.$ac_ext <<_ACEOF | |
3615 | /* end confdefs.h. */ | |
c4bb2108 | 3616 | |
503d2be0 AS |
3617 | int |
3618 | main () | |
3619 | { | |
3620 | ||
3621 | ; | |
3622 | return 0; | |
3623 | } | |
3624 | _ACEOF | |
3625 | ac_clean_files_save=$ac_clean_files | |
19650fd6 | 3626 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
503d2be0 AS |
3627 | # Try to create an executable without -o first, disregard a.out. |
3628 | # It will help us diagnose broken compilers, and finding out an intuition | |
3629 | # of exeext. | |
d6e01aa5 KL |
3630 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3631 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
503d2be0 | 3632 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
d6e01aa5 KL |
3633 | # |
3634 | # List of possible output files, starting from the most likely. | |
3635 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
3636 | # only as a last resort. b.out is created by i960 compilers. | |
3637 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
3638 | # | |
3639 | # The IRIX 6 linker writes into existing files which may not be | |
3640 | # executable, retaining their permissions. Remove them first so a | |
3641 | # subsequent execution test works. | |
3642 | ac_rmfiles= | |
3643 | for ac_file in $ac_files | |
3644 | do | |
3645 | case $ac_file in | |
3646 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
3647 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3648 | esac | |
3649 | done | |
3650 | rm -f $ac_rmfiles | |
3651 | ||
3652 | if { (ac_try="$ac_link_default" | |
3653 | case "(($ac_try" in | |
3654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3655 | *) ac_try_echo=$ac_try;; | |
3656 | esac | |
3657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3658 | (eval "$ac_link_default") 2>&5 | |
503d2be0 | 3659 | ac_status=$? |
c0d27fcc | 3660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3661 | (exit $ac_status); }; then |
d6e01aa5 KL |
3662 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3663 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3664 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3665 | # so that the user can short-circuit this test for compilers unknown to | |
3666 | # Autoconf. | |
3667 | for ac_file in $ac_files '' | |
19650fd6 | 3668 | do |
6bae0ccf | 3669 | test -f "$ac_file" || continue |
503d2be0 | 3670 | case $ac_file in |
d6e01aa5 | 3671 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
edfaf76d | 3672 | ;; |
19650fd6 | 3673 | [ab].out ) |
edfaf76d LK |
3674 | # We found the default executable, but exeext='' is most |
3675 | # certainly right. | |
3676 | break;; | |
19650fd6 | 3677 | *.* ) |
d6e01aa5 KL |
3678 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3679 | then :; else | |
3680 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3681 | fi | |
3682 | # We set ac_cv_exeext here because the later test for it is not | |
3683 | # safe: cross compilers may not add the suffix if given an `-o' | |
3684 | # argument, so we may need to know it at that point already. | |
3685 | # Even if this section looks crufty: it has the advantage of | |
3686 | # actually working. | |
edfaf76d | 3687 | break;; |
19650fd6 | 3688 | * ) |
edfaf76d | 3689 | break;; |
503d2be0 AS |
3690 | esac |
3691 | done | |
d6e01aa5 KL |
3692 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3693 | ||
503d2be0 | 3694 | else |
d6e01aa5 KL |
3695 | ac_file='' |
3696 | fi | |
3697 | ||
3698 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3699 | echo "${ECHO_T}$ac_file" >&6; } | |
3700 | if test -z "$ac_file"; then | |
503d2be0 | 3701 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3702 | sed 's/^/| /' conftest.$ac_ext >&5 |
3703 | ||
6bae0ccf | 3704 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
19650fd6 | 3705 | See \`config.log' for more details." >&5 |
6bae0ccf | 3706 | echo "$as_me: error: C compiler cannot create executables |
19650fd6 | 3707 | See \`config.log' for more details." >&2;} |
503d2be0 AS |
3708 | { (exit 77); exit 77; }; } |
3709 | fi | |
3710 | ||
3711 | ac_exeext=$ac_cv_exeext | |
503d2be0 | 3712 | |
d6e01aa5 | 3713 | # Check that the compiler produces executables we can run. If not, either |
503d2be0 | 3714 | # the compiler is broken, or we cross compile. |
d6e01aa5 KL |
3715 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3716 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
503d2be0 AS |
3717 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3718 | # If not cross compiling, check that we can run a simple program. | |
3719 | if test "$cross_compiling" != yes; then | |
3720 | if { ac_try='./$ac_file' | |
d6e01aa5 KL |
3721 | { (case "(($ac_try" in |
3722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3723 | *) ac_try_echo=$ac_try;; | |
3724 | esac | |
3725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3726 | (eval "$ac_try") 2>&5 | |
503d2be0 | 3727 | ac_status=$? |
c0d27fcc | 3728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3729 | (exit $ac_status); }; }; then |
3730 | cross_compiling=no | |
ba4481b5 | 3731 | else |
503d2be0 AS |
3732 | if test "$cross_compiling" = maybe; then |
3733 | cross_compiling=yes | |
3734 | else | |
c0d27fcc | 3735 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
19650fd6 AS |
3736 | If you meant to cross compile, use \`--host'. |
3737 | See \`config.log' for more details." >&5 | |
503d2be0 | 3738 | echo "$as_me: error: cannot run C compiled programs. |
19650fd6 AS |
3739 | If you meant to cross compile, use \`--host'. |
3740 | See \`config.log' for more details." >&2;} | |
503d2be0 AS |
3741 | { (exit 1); exit 1; }; } |
3742 | fi | |
ba4481b5 | 3743 | fi |
503d2be0 | 3744 | fi |
d6e01aa5 KL |
3745 | { echo "$as_me:$LINENO: result: yes" >&5 |
3746 | echo "${ECHO_T}yes" >&6; } | |
503d2be0 | 3747 | |
19650fd6 | 3748 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
503d2be0 | 3749 | ac_clean_files=$ac_clean_files_save |
d6e01aa5 | 3750 | # Check that the compiler produces executables we can run. If not, either |
503d2be0 | 3751 | # the compiler is broken, or we cross compile. |
d6e01aa5 KL |
3752 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3753 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
3754 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3755 | echo "${ECHO_T}$cross_compiling" >&6; } | |
3756 | ||
3757 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3758 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
3759 | if { (ac_try="$ac_link" | |
3760 | case "(($ac_try" in | |
3761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3762 | *) ac_try_echo=$ac_try;; | |
3763 | esac | |
3764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3765 | (eval "$ac_link") 2>&5 | |
503d2be0 | 3766 | ac_status=$? |
c0d27fcc | 3767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3768 | (exit $ac_status); }; then |
3769 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3770 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3771 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3772 | # `rm'. | |
6bae0ccf DL |
3773 | for ac_file in conftest.exe conftest conftest.*; do |
3774 | test -f "$ac_file" || continue | |
503d2be0 | 3775 | case $ac_file in |
d6e01aa5 | 3776 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
503d2be0 | 3777 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
edfaf76d | 3778 | break;; |
503d2be0 AS |
3779 | * ) break;; |
3780 | esac | |
3781 | done | |
ba4481b5 | 3782 | else |
19650fd6 AS |
3783 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3784 | See \`config.log' for more details." >&5 | |
3785 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3786 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3787 | { (exit 1); exit 1; }; } |
ba4481b5 | 3788 | fi |
ba4481b5 | 3789 | |
503d2be0 | 3790 | rm -f conftest$ac_cv_exeext |
d6e01aa5 KL |
3791 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3792 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
ba4481b5 | 3793 | |
503d2be0 AS |
3794 | rm -f conftest.$ac_ext |
3795 | EXEEXT=$ac_cv_exeext | |
3796 | ac_exeext=$EXEEXT | |
d6e01aa5 KL |
3797 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3798 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
503d2be0 AS |
3799 | if test "${ac_cv_objext+set}" = set; then |
3800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3801 | else |
503d2be0 | 3802 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3803 | /* confdefs.h. */ |
3804 | _ACEOF | |
3805 | cat confdefs.h >>conftest.$ac_ext | |
3806 | cat >>conftest.$ac_ext <<_ACEOF | |
3807 | /* end confdefs.h. */ | |
ba4481b5 | 3808 | |
503d2be0 AS |
3809 | int |
3810 | main () | |
3811 | { | |
ba4481b5 | 3812 | |
503d2be0 AS |
3813 | ; |
3814 | return 0; | |
3815 | } | |
3816 | _ACEOF | |
3817 | rm -f conftest.o conftest.obj | |
d6e01aa5 KL |
3818 | if { (ac_try="$ac_compile" |
3819 | case "(($ac_try" in | |
3820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3821 | *) ac_try_echo=$ac_try;; | |
3822 | esac | |
3823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3824 | (eval "$ac_compile") 2>&5 | |
503d2be0 | 3825 | ac_status=$? |
c0d27fcc | 3826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3827 | (exit $ac_status); }; then |
d6e01aa5 KL |
3828 | for ac_file in conftest.o conftest.obj conftest.*; do |
3829 | test -f "$ac_file" || continue; | |
503d2be0 | 3830 | case $ac_file in |
d6e01aa5 | 3831 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
503d2be0 AS |
3832 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3833 | break;; | |
3834 | esac | |
3835 | done | |
c4bb2108 | 3836 | else |
503d2be0 | 3837 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3838 | sed 's/^/| /' conftest.$ac_ext >&5 |
3839 | ||
3840 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3841 | See \`config.log' for more details." >&5 | |
3842 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3843 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3844 | { (exit 1); exit 1; }; } |
c4bb2108 DL |
3845 | fi |
3846 | ||
503d2be0 AS |
3847 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3848 | fi | |
d6e01aa5 KL |
3849 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3850 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
503d2be0 AS |
3851 | OBJEXT=$ac_cv_objext |
3852 | ac_objext=$OBJEXT | |
d6e01aa5 KL |
3853 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3854 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
503d2be0 AS |
3855 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3857 | else |
503d2be0 | 3858 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3859 | /* confdefs.h. */ |
3860 | _ACEOF | |
3861 | cat confdefs.h >>conftest.$ac_ext | |
3862 | cat >>conftest.$ac_ext <<_ACEOF | |
3863 | /* end confdefs.h. */ | |
503d2be0 AS |
3864 | |
3865 | int | |
3866 | main () | |
3867 | { | |
3868 | #ifndef __GNUC__ | |
3869 | choke me | |
3870 | #endif | |
3871 | ||
3872 | ; | |
3873 | return 0; | |
3874 | } | |
3875 | _ACEOF | |
3876 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
3877 | if { (ac_try="$ac_compile" |
3878 | case "(($ac_try" in | |
3879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3880 | *) ac_try_echo=$ac_try;; | |
3881 | esac | |
3882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3883 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 3884 | ac_status=$? |
edfaf76d LK |
3885 | grep -v '^ *+' conftest.er1 >conftest.err |
3886 | rm -f conftest.er1 | |
3887 | cat conftest.err >&5 | |
c0d27fcc | 3888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
3889 | (exit $ac_status); } && { |
3890 | test -z "$ac_c_werror_flag" || | |
3891 | test ! -s conftest.err | |
3892 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
3893 | ac_compiler_gnu=yes |
3894 | else | |
3895 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3896 | sed 's/^/| /' conftest.$ac_ext >&5 |
3897 | ||
d6e01aa5 | 3898 | ac_compiler_gnu=no |
503d2be0 | 3899 | fi |
d6e01aa5 KL |
3900 | |
3901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 AS |
3902 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3903 | ||
3904 | fi | |
d6e01aa5 KL |
3905 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3906 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
503d2be0 AS |
3907 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3908 | ac_test_CFLAGS=${CFLAGS+set} | |
3909 | ac_save_CFLAGS=$CFLAGS | |
d6e01aa5 KL |
3910 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3911 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
503d2be0 AS |
3912 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3914 | else | |
d6e01aa5 KL |
3915 | ac_save_c_werror_flag=$ac_c_werror_flag |
3916 | ac_c_werror_flag=yes | |
3917 | ac_cv_prog_cc_g=no | |
3918 | CFLAGS="-g" | |
3919 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3920 | /* confdefs.h. */ |
3921 | _ACEOF | |
3922 | cat confdefs.h >>conftest.$ac_ext | |
3923 | cat >>conftest.$ac_ext <<_ACEOF | |
3924 | /* end confdefs.h. */ | |
503d2be0 AS |
3925 | |
3926 | int | |
3927 | main () | |
3928 | { | |
3929 | ||
3930 | ; | |
3931 | return 0; | |
3932 | } | |
3933 | _ACEOF | |
3934 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
3935 | if { (ac_try="$ac_compile" |
3936 | case "(($ac_try" in | |
3937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3938 | *) ac_try_echo=$ac_try;; | |
3939 | esac | |
3940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3941 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 3942 | ac_status=$? |
edfaf76d LK |
3943 | grep -v '^ *+' conftest.er1 >conftest.err |
3944 | rm -f conftest.er1 | |
3945 | cat conftest.err >&5 | |
c0d27fcc | 3946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
3947 | (exit $ac_status); } && { |
3948 | test -z "$ac_c_werror_flag" || | |
3949 | test ! -s conftest.err | |
3950 | } && test -s conftest.$ac_objext; then | |
ba4481b5 DL |
3951 | ac_cv_prog_cc_g=yes |
3952 | else | |
503d2be0 | 3953 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3954 | sed 's/^/| /' conftest.$ac_ext >&5 |
3955 | ||
d6e01aa5 KL |
3956 | CFLAGS="" |
3957 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3958 | /* confdefs.h. */ |
3959 | _ACEOF | |
3960 | cat confdefs.h >>conftest.$ac_ext | |
3961 | cat >>conftest.$ac_ext <<_ACEOF | |
3962 | /* end confdefs.h. */ | |
d6e01aa5 KL |
3963 | |
3964 | int | |
3965 | main () | |
6bae0ccf | 3966 | { |
edfaf76d | 3967 | |
6bae0ccf DL |
3968 | ; |
3969 | return 0; | |
3970 | } | |
3971 | _ACEOF | |
d6e01aa5 KL |
3972 | rm -f conftest.$ac_objext |
3973 | if { (ac_try="$ac_compile" | |
3974 | case "(($ac_try" in | |
3975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3976 | *) ac_try_echo=$ac_try;; | |
3977 | esac | |
3978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3979 | (eval "$ac_compile") 2>conftest.er1 | |
6bae0ccf | 3980 | ac_status=$? |
edfaf76d LK |
3981 | grep -v '^ *+' conftest.er1 >conftest.err |
3982 | rm -f conftest.er1 | |
3983 | cat conftest.err >&5 | |
6bae0ccf | 3984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
3985 | (exit $ac_status); } && { |
3986 | test -z "$ac_c_werror_flag" || | |
3987 | test ! -s conftest.err | |
3988 | } && test -s conftest.$ac_objext; then | |
3989 | : | |
6bae0ccf DL |
3990 | else |
3991 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3992 | sed 's/^/| /' conftest.$ac_ext >&5 |
3993 | ||
d6e01aa5 KL |
3994 | ac_c_werror_flag=$ac_save_c_werror_flag |
3995 | CFLAGS="-g" | |
3996 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3997 | /* confdefs.h. */ |
3998 | _ACEOF | |
3999 | cat confdefs.h >>conftest.$ac_ext | |
4000 | cat >>conftest.$ac_ext <<_ACEOF | |
4001 | /* end confdefs.h. */ | |
d6e01aa5 | 4002 | |
503d2be0 AS |
4003 | int |
4004 | main () | |
4005 | { | |
d6e01aa5 | 4006 | |
503d2be0 AS |
4007 | ; |
4008 | return 0; | |
4009 | } | |
4010 | _ACEOF | |
4011 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
4012 | if { (ac_try="$ac_compile" |
4013 | case "(($ac_try" in | |
4014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4015 | *) ac_try_echo=$ac_try;; | |
4016 | esac | |
4017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4018 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 4019 | ac_status=$? |
edfaf76d LK |
4020 | grep -v '^ *+' conftest.er1 >conftest.err |
4021 | rm -f conftest.er1 | |
4022 | cat conftest.err >&5 | |
c0d27fcc | 4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
4024 | (exit $ac_status); } && { |
4025 | test -z "$ac_c_werror_flag" || | |
4026 | test ! -s conftest.err | |
4027 | } && test -s conftest.$ac_objext; then | |
4028 | ac_cv_prog_cc_g=yes | |
503d2be0 AS |
4029 | else |
4030 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4031 | sed 's/^/| /' conftest.$ac_ext >&5 |
4032 | ||
d6e01aa5 | 4033 | |
503d2be0 | 4034 | fi |
d6e01aa5 KL |
4035 | |
4036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4037 | fi | |
4038 | ||
4039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4040 | fi | |
4041 | ||
4042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4043 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4044 | fi | |
4045 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
4046 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
4047 | if test "$ac_test_CFLAGS" = set; then | |
4048 | CFLAGS=$ac_save_CFLAGS | |
4049 | elif test $ac_cv_prog_cc_g = yes; then | |
4050 | if test "$GCC" = yes; then | |
4051 | CFLAGS="-g -O2" | |
4052 | else | |
4053 | CFLAGS="-g" | |
4054 | fi | |
4055 | else | |
4056 | if test "$GCC" = yes; then | |
4057 | CFLAGS="-O2" | |
4058 | else | |
4059 | CFLAGS= | |
4060 | fi | |
4061 | fi | |
4062 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
4063 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
4064 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
4065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4066 | else | |
4067 | ac_cv_prog_cc_c89=no | |
4068 | ac_save_CC=$CC | |
4069 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4070 | /* confdefs.h. */ |
4071 | _ACEOF | |
4072 | cat confdefs.h >>conftest.$ac_ext | |
4073 | cat >>conftest.$ac_ext <<_ACEOF | |
4074 | /* end confdefs.h. */ | |
d6e01aa5 KL |
4075 | #include <stdarg.h> |
4076 | #include <stdio.h> | |
4077 | #include <sys/types.h> | |
4078 | #include <sys/stat.h> | |
4079 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4080 | struct buf { int x; }; | |
4081 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4082 | static char *e (p, i) | |
4083 | char **p; | |
4084 | int i; | |
4085 | { | |
4086 | return p[i]; | |
4087 | } | |
4088 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4089 | { | |
4090 | char *s; | |
4091 | va_list v; | |
4092 | va_start (v,p); | |
4093 | s = g (p, va_arg (v,int)); | |
4094 | va_end (v); | |
4095 | return s; | |
4096 | } | |
4097 | ||
4098 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4099 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4100 | These don't provoke an error unfortunately, instead are silently treated | |
4101 | as 'x'. The following induces an error, until -std is added to get | |
4102 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4103 | array size at least. It's necessary to write '\x00'==0 to get something | |
4104 | that's true only with -std. */ | |
4105 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4106 | ||
4107 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4108 | inside strings and character constants. */ | |
4109 | #define FOO(x) 'x' | |
4110 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4111 | ||
4112 | int test (int i, double x); | |
4113 | struct s1 {int (*f) (int a);}; | |
4114 | struct s2 {int (*f) (double a);}; | |
4115 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4116 | int argc; | |
4117 | char **argv; | |
503d2be0 AS |
4118 | int |
4119 | main () | |
4120 | { | |
d6e01aa5 | 4121 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
503d2be0 AS |
4122 | ; |
4123 | return 0; | |
4124 | } | |
4125 | _ACEOF | |
d6e01aa5 KL |
4126 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4127 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4128 | do | |
4129 | CC="$ac_save_CC $ac_arg" | |
4130 | rm -f conftest.$ac_objext | |
4131 | if { (ac_try="$ac_compile" | |
4132 | case "(($ac_try" in | |
4133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4134 | *) ac_try_echo=$ac_try;; | |
4135 | esac | |
4136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4137 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 4138 | ac_status=$? |
edfaf76d LK |
4139 | grep -v '^ *+' conftest.er1 >conftest.err |
4140 | rm -f conftest.er1 | |
4141 | cat conftest.err >&5 | |
c0d27fcc | 4142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
4143 | (exit $ac_status); } && { |
4144 | test -z "$ac_c_werror_flag" || | |
4145 | test ! -s conftest.err | |
4146 | } && test -s conftest.$ac_objext; then | |
4147 | ac_cv_prog_cc_c89=$ac_arg | |
503d2be0 AS |
4148 | else |
4149 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4150 | sed 's/^/| /' conftest.$ac_ext >&5 |
4151 | ||
d6e01aa5 | 4152 | |
503d2be0 | 4153 | fi |
d6e01aa5 KL |
4154 | |
4155 | rm -f core conftest.err conftest.$ac_objext | |
4156 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
503d2be0 | 4157 | done |
d6e01aa5 KL |
4158 | rm -f conftest.$ac_ext |
4159 | CC=$ac_save_CC | |
4160 | ||
503d2be0 | 4161 | fi |
d6e01aa5 KL |
4162 | # AC_CACHE_VAL |
4163 | case "x$ac_cv_prog_cc_c89" in | |
4164 | x) | |
4165 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
4166 | echo "${ECHO_T}none needed" >&6; } ;; | |
4167 | xno) | |
4168 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
4169 | echo "${ECHO_T}unsupported" >&6; } ;; | |
4170 | *) | |
4171 | CC="$CC $ac_cv_prog_cc_c89" | |
4172 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
4173 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
4174 | esac | |
ba4481b5 | 4175 | |
19650fd6 | 4176 | |
503d2be0 AS |
4177 | ac_ext=c |
4178 | ac_cpp='$CPP $CPPFLAGS' | |
4179 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4180 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4181 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 | 4182 | |
c0d27fcc | 4183 | |
ba4481b5 DL |
4184 | # On Suns, sometimes $CPP names a directory. |
4185 | if test -n "$CPP" && test -d "$CPP"; then | |
4186 | CPP= | |
4187 | fi | |
4188 | ||
089a966d GM |
4189 | ## If not using gcc, and on Solaris, and no CPP specified, see if |
4190 | ## using a Sun compiler, which needs -Xs to prevent whitespace. | |
4191 | if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ | |
4192 | test x"$CPP" = x; then | |
4193 | { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5 | |
4194 | echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; } | |
4195 | ||
4196 | if test "${emacs_cv_sunpro_c+set}" = set; then | |
4197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4198 | else | |
4199 | cat >conftest.$ac_ext <<_ACEOF | |
4200 | /* confdefs.h. */ | |
4201 | _ACEOF | |
4202 | cat confdefs.h >>conftest.$ac_ext | |
4203 | cat >>conftest.$ac_ext <<_ACEOF | |
4204 | /* end confdefs.h. */ | |
4205 | ||
4206 | int | |
4207 | main () | |
4208 | { | |
4209 | #ifndef __SUNPRO_C | |
4210 | fail; | |
4211 | #endif | |
4212 | ||
4213 | ; | |
4214 | return 0; | |
4215 | } | |
4216 | _ACEOF | |
4217 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4218 | if { (ac_try="$ac_link" | |
4219 | case "(($ac_try" in | |
4220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4221 | *) ac_try_echo=$ac_try;; | |
4222 | esac | |
4223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4224 | (eval "$ac_link") 2>conftest.er1 | |
4225 | ac_status=$? | |
4226 | grep -v '^ *+' conftest.er1 >conftest.err | |
4227 | rm -f conftest.er1 | |
4228 | cat conftest.err >&5 | |
4229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4230 | (exit $ac_status); } && { | |
4231 | test -z "$ac_c_werror_flag" || | |
4232 | test ! -s conftest.err | |
4233 | } && test -s conftest$ac_exeext && | |
4234 | $as_test_x conftest$ac_exeext; then | |
4235 | emacs_cv_sunpro_c=yes | |
4236 | else | |
4237 | echo "$as_me: failed program was:" >&5 | |
4238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4239 | ||
4240 | emacs_cv_sunpro_c=no | |
4241 | fi | |
4242 | ||
4243 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4244 | conftest$ac_exeext conftest.$ac_ext | |
4245 | fi | |
4246 | ||
4247 | { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5 | |
4248 | echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; } | |
4249 | ||
4250 | if test x"$emacs_cv_sunpro_c" = xyes; then | |
4251 | NON_GNU_CPP="$CC -E -Xs" | |
4252 | fi | |
4253 | fi | |
4254 | ||
ba4481b5 DL |
4255 | #### Some systems specify a CPP to use unless we are using GCC. |
4256 | #### Now that we know whether we are using GCC, we can decide whether | |
4257 | #### to use that one. | |
4258 | if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
4259 | then | |
4260 | CPP="$NON_GNU_CPP" | |
4261 | fi | |
4262 | ||
4263 | #### Some systems specify a CC to use unless we are using GCC. | |
4264 | #### Now that we know whether we are using GCC, we can decide whether | |
4265 | #### to use that one. | |
4266 | if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
4267 | test x$cc_specified != xyes | |
4268 | then | |
4269 | CC="$NON_GNU_CC" | |
4270 | fi | |
4271 | ||
4272 | if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
4273 | then | |
4274 | CC="$CC $GCC_TEST_OPTIONS" | |
4275 | fi | |
4276 | ||
4277 | if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
4278 | then | |
4279 | CC="$CC $NON_GCC_TEST_OPTIONS" | |
4280 | fi | |
4281 | ||
e143ad11 AS |
4282 | ac_ext=c |
4283 | ac_cpp='$CPP $CPPFLAGS' | |
4284 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4285 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4286 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d6e01aa5 KL |
4287 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4288 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
e143ad11 AS |
4289 | # On Suns, sometimes $CPP names a directory. |
4290 | if test -n "$CPP" && test -d "$CPP"; then | |
4291 | CPP= | |
4292 | fi | |
4293 | if test -z "$CPP"; then | |
4294 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4296 | else | |
4297 | # Double quotes because CPP needs to be expanded | |
4298 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4299 | do | |
4300 | ac_preproc_ok=false | |
4301 | for ac_c_preproc_warn_flag in '' yes | |
4302 | do | |
4303 | # Use a header file that comes with gcc, so configuring glibc | |
4304 | # with a fresh cross-compiler works. | |
4305 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4306 | # <limits.h> exists even on freestanding compilers. | |
4307 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4308 | # not just through cpp. "Syntax error" is here to catch this case. | |
4309 | cat >conftest.$ac_ext <<_ACEOF | |
4310 | /* confdefs.h. */ | |
4311 | _ACEOF | |
4312 | cat confdefs.h >>conftest.$ac_ext | |
4313 | cat >>conftest.$ac_ext <<_ACEOF | |
4314 | /* end confdefs.h. */ | |
4315 | #ifdef __STDC__ | |
4316 | # include <limits.h> | |
4317 | #else | |
4318 | # include <assert.h> | |
4319 | #endif | |
4320 | Syntax error | |
4321 | _ACEOF | |
d6e01aa5 KL |
4322 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4323 | case "(($ac_try" in | |
4324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4325 | *) ac_try_echo=$ac_try;; | |
4326 | esac | |
4327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4328 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e143ad11 AS |
4329 | ac_status=$? |
4330 | grep -v '^ *+' conftest.er1 >conftest.err | |
4331 | rm -f conftest.er1 | |
4332 | cat conftest.err >&5 | |
4333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
4334 | (exit $ac_status); } >/dev/null && { |
4335 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4336 | test ! -s conftest.err | |
4337 | }; then | |
e143ad11 AS |
4338 | : |
4339 | else | |
4340 | echo "$as_me: failed program was:" >&5 | |
4341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4342 | ||
4343 | # Broken: fails on valid input. | |
4344 | continue | |
4345 | fi | |
d6e01aa5 | 4346 | |
e143ad11 AS |
4347 | rm -f conftest.err conftest.$ac_ext |
4348 | ||
d6e01aa5 | 4349 | # OK, works on sane cases. Now check whether nonexistent headers |
e143ad11 AS |
4350 | # can be detected and how. |
4351 | cat >conftest.$ac_ext <<_ACEOF | |
4352 | /* confdefs.h. */ | |
4353 | _ACEOF | |
4354 | cat confdefs.h >>conftest.$ac_ext | |
4355 | cat >>conftest.$ac_ext <<_ACEOF | |
4356 | /* end confdefs.h. */ | |
4357 | #include <ac_nonexistent.h> | |
4358 | _ACEOF | |
d6e01aa5 KL |
4359 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4360 | case "(($ac_try" in | |
4361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4362 | *) ac_try_echo=$ac_try;; | |
4363 | esac | |
4364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4365 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e143ad11 AS |
4366 | ac_status=$? |
4367 | grep -v '^ *+' conftest.er1 >conftest.err | |
4368 | rm -f conftest.er1 | |
4369 | cat conftest.err >&5 | |
4370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
4371 | (exit $ac_status); } >/dev/null && { |
4372 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4373 | test ! -s conftest.err | |
4374 | }; then | |
e143ad11 AS |
4375 | # Broken: success on invalid input. |
4376 | continue | |
4377 | else | |
4378 | echo "$as_me: failed program was:" >&5 | |
4379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4380 | ||
4381 | # Passes both tests. | |
4382 | ac_preproc_ok=: | |
4383 | break | |
4384 | fi | |
d6e01aa5 | 4385 | |
e143ad11 AS |
4386 | rm -f conftest.err conftest.$ac_ext |
4387 | ||
4388 | done | |
4389 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4390 | rm -f conftest.err conftest.$ac_ext | |
4391 | if $ac_preproc_ok; then | |
4392 | break | |
4393 | fi | |
4394 | ||
4395 | done | |
4396 | ac_cv_prog_CPP=$CPP | |
4397 | ||
4398 | fi | |
4399 | CPP=$ac_cv_prog_CPP | |
4400 | else | |
4401 | ac_cv_prog_CPP=$CPP | |
4402 | fi | |
d6e01aa5 KL |
4403 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4404 | echo "${ECHO_T}$CPP" >&6; } | |
e143ad11 AS |
4405 | ac_preproc_ok=false |
4406 | for ac_c_preproc_warn_flag in '' yes | |
4407 | do | |
4408 | # Use a header file that comes with gcc, so configuring glibc | |
4409 | # with a fresh cross-compiler works. | |
4410 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4411 | # <limits.h> exists even on freestanding compilers. | |
4412 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4413 | # not just through cpp. "Syntax error" is here to catch this case. | |
4414 | cat >conftest.$ac_ext <<_ACEOF | |
4415 | /* confdefs.h. */ | |
4416 | _ACEOF | |
4417 | cat confdefs.h >>conftest.$ac_ext | |
4418 | cat >>conftest.$ac_ext <<_ACEOF | |
4419 | /* end confdefs.h. */ | |
4420 | #ifdef __STDC__ | |
4421 | # include <limits.h> | |
4422 | #else | |
4423 | # include <assert.h> | |
4424 | #endif | |
4425 | Syntax error | |
4426 | _ACEOF | |
d6e01aa5 KL |
4427 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4428 | case "(($ac_try" in | |
4429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4430 | *) ac_try_echo=$ac_try;; | |
4431 | esac | |
4432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4433 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e143ad11 AS |
4434 | ac_status=$? |
4435 | grep -v '^ *+' conftest.er1 >conftest.err | |
4436 | rm -f conftest.er1 | |
4437 | cat conftest.err >&5 | |
4438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
4439 | (exit $ac_status); } >/dev/null && { |
4440 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4441 | test ! -s conftest.err | |
4442 | }; then | |
e143ad11 AS |
4443 | : |
4444 | else | |
4445 | echo "$as_me: failed program was:" >&5 | |
4446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4447 | ||
4448 | # Broken: fails on valid input. | |
4449 | continue | |
4450 | fi | |
d6e01aa5 | 4451 | |
e143ad11 AS |
4452 | rm -f conftest.err conftest.$ac_ext |
4453 | ||
d6e01aa5 | 4454 | # OK, works on sane cases. Now check whether nonexistent headers |
e143ad11 AS |
4455 | # can be detected and how. |
4456 | cat >conftest.$ac_ext <<_ACEOF | |
4457 | /* confdefs.h. */ | |
4458 | _ACEOF | |
4459 | cat confdefs.h >>conftest.$ac_ext | |
4460 | cat >>conftest.$ac_ext <<_ACEOF | |
4461 | /* end confdefs.h. */ | |
4462 | #include <ac_nonexistent.h> | |
4463 | _ACEOF | |
d6e01aa5 KL |
4464 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4465 | case "(($ac_try" in | |
4466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4467 | *) ac_try_echo=$ac_try;; | |
4468 | esac | |
4469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4470 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e143ad11 AS |
4471 | ac_status=$? |
4472 | grep -v '^ *+' conftest.er1 >conftest.err | |
4473 | rm -f conftest.er1 | |
4474 | cat conftest.err >&5 | |
4475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
4476 | (exit $ac_status); } >/dev/null && { |
4477 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4478 | test ! -s conftest.err | |
4479 | }; then | |
e143ad11 AS |
4480 | # Broken: success on invalid input. |
4481 | continue | |
4482 | else | |
4483 | echo "$as_me: failed program was:" >&5 | |
4484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4485 | ||
4486 | # Passes both tests. | |
4487 | ac_preproc_ok=: | |
4488 | break | |
4489 | fi | |
d6e01aa5 | 4490 | |
e143ad11 AS |
4491 | rm -f conftest.err conftest.$ac_ext |
4492 | ||
4493 | done | |
4494 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4495 | rm -f conftest.err conftest.$ac_ext | |
4496 | if $ac_preproc_ok; then | |
4497 | : | |
4498 | else | |
4499 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4500 | See \`config.log' for more details." >&5 | |
4501 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4502 | See \`config.log' for more details." >&2;} | |
4503 | { (exit 1); exit 1; }; } | |
4504 | fi | |
4505 | ||
4506 | ac_ext=c | |
4507 | ac_cpp='$CPP $CPPFLAGS' | |
4508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4511 | ||
4512 | ||
d6e01aa5 KL |
4513 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
4514 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
4515 | if test "${ac_cv_path_GREP+set}" = set; then | |
4516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4517 | else | |
4518 | # Extract the first word of "grep ggrep" to use in msg output | |
4519 | if test -z "$GREP"; then | |
4520 | set dummy grep ggrep; ac_prog_name=$2 | |
4521 | if test "${ac_cv_path_GREP+set}" = set; then | |
4522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4523 | else | |
4524 | ac_path_GREP_found=false | |
4525 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4527 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4528 | do | |
4529 | IFS=$as_save_IFS | |
4530 | test -z "$as_dir" && as_dir=. | |
4531 | for ac_prog in grep ggrep; do | |
4532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4533 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4534 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4535 | # Check for GNU ac_path_GREP and select it if it is found. | |
4536 | # Check for GNU $ac_path_GREP | |
4537 | case `"$ac_path_GREP" --version 2>&1` in | |
4538 | *GNU*) | |
4539 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4540 | *) | |
4541 | ac_count=0 | |
4542 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4543 | while : | |
4544 | do | |
4545 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4546 | mv "conftest.tmp" "conftest.in" | |
4547 | cp "conftest.in" "conftest.nl" | |
4548 | echo 'GREP' >> "conftest.nl" | |
4549 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4550 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4551 | ac_count=`expr $ac_count + 1` | |
4552 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4553 | # Best one so far, save it but keep looking for a better one | |
4554 | ac_cv_path_GREP="$ac_path_GREP" | |
4555 | ac_path_GREP_max=$ac_count | |
4556 | fi | |
4557 | # 10*(2^10) chars as input seems more than enough | |
4558 | test $ac_count -gt 10 && break | |
4559 | done | |
4560 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4561 | esac | |
4562 | ||
4563 | ||
4564 | $ac_path_GREP_found && break 3 | |
4565 | done | |
4566 | done | |
4567 | ||
4568 | done | |
4569 | IFS=$as_save_IFS | |
4570 | ||
4571 | ||
4572 | fi | |
4573 | ||
4574 | GREP="$ac_cv_path_GREP" | |
4575 | if test -z "$GREP"; then | |
4576 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4577 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4578 | { (exit 1); exit 1; }; } | |
4579 | fi | |
4580 | ||
4581 | else | |
4582 | ac_cv_path_GREP=$GREP | |
4583 | fi | |
4584 | ||
4585 | ||
4586 | fi | |
4587 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
4588 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
4589 | GREP="$ac_cv_path_GREP" | |
4590 | ||
4591 | ||
4592 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
4593 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
4594 | if test "${ac_cv_path_EGREP+set}" = set; then | |
4595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4596 | else | |
4597 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4598 | then ac_cv_path_EGREP="$GREP -E" | |
4599 | else | |
4600 | # Extract the first word of "egrep" to use in msg output | |
4601 | if test -z "$EGREP"; then | |
4602 | set dummy egrep; ac_prog_name=$2 | |
4603 | if test "${ac_cv_path_EGREP+set}" = set; then | |
e143ad11 AS |
4604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4605 | else | |
d6e01aa5 KL |
4606 | ac_path_EGREP_found=false |
4607 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4609 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4610 | do | |
4611 | IFS=$as_save_IFS | |
4612 | test -z "$as_dir" && as_dir=. | |
4613 | for ac_prog in egrep; do | |
4614 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4615 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4616 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4617 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4618 | # Check for GNU $ac_path_EGREP | |
4619 | case `"$ac_path_EGREP" --version 2>&1` in | |
4620 | *GNU*) | |
4621 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4622 | *) | |
4623 | ac_count=0 | |
4624 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4625 | while : | |
4626 | do | |
4627 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4628 | mv "conftest.tmp" "conftest.in" | |
4629 | cp "conftest.in" "conftest.nl" | |
4630 | echo 'EGREP' >> "conftest.nl" | |
4631 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4632 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4633 | ac_count=`expr $ac_count + 1` | |
4634 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4635 | # Best one so far, save it but keep looking for a better one | |
4636 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4637 | ac_path_EGREP_max=$ac_count | |
e143ad11 | 4638 | fi |
d6e01aa5 KL |
4639 | # 10*(2^10) chars as input seems more than enough |
4640 | test $ac_count -gt 10 && break | |
4641 | done | |
4642 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4643 | esac | |
4644 | ||
4645 | ||
4646 | $ac_path_EGREP_found && break 3 | |
4647 | done | |
4648 | done | |
4649 | ||
4650 | done | |
4651 | IFS=$as_save_IFS | |
4652 | ||
4653 | ||
4654 | fi | |
4655 | ||
4656 | EGREP="$ac_cv_path_EGREP" | |
4657 | if test -z "$EGREP"; then | |
4658 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4659 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4660 | { (exit 1); exit 1; }; } | |
4661 | fi | |
4662 | ||
4663 | else | |
4664 | ac_cv_path_EGREP=$EGREP | |
e143ad11 | 4665 | fi |
d6e01aa5 KL |
4666 | |
4667 | ||
4668 | fi | |
4669 | fi | |
4670 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
4671 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
4672 | EGREP="$ac_cv_path_EGREP" | |
e143ad11 AS |
4673 | |
4674 | ||
4675 | ||
d6e01aa5 KL |
4676 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
4677 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } | |
e143ad11 AS |
4678 | cat >conftest.$ac_ext <<_ACEOF |
4679 | /* confdefs.h. */ | |
4680 | _ACEOF | |
4681 | cat confdefs.h >>conftest.$ac_ext | |
4682 | cat >>conftest.$ac_ext <<_ACEOF | |
4683 | /* end confdefs.h. */ | |
4684 | #ifdef _AIX | |
4685 | yes | |
4686 | #endif | |
4687 | ||
4688 | _ACEOF | |
4689 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4690 | $EGREP "yes" >/dev/null 2>&1; then | |
d6e01aa5 KL |
4691 | { echo "$as_me:$LINENO: result: yes" >&5 |
4692 | echo "${ECHO_T}yes" >&6; } | |
e143ad11 AS |
4693 | cat >>confdefs.h <<\_ACEOF |
4694 | #define _ALL_SOURCE 1 | |
4695 | _ACEOF | |
4696 | ||
4697 | else | |
d6e01aa5 KL |
4698 | { echo "$as_me:$LINENO: result: no" >&5 |
4699 | echo "${ECHO_T}no" >&6; } | |
e143ad11 AS |
4700 | fi |
4701 | rm -f conftest* | |
4702 | ||
4703 | ||
4704 | ||
4705 | cat >>confdefs.h <<\_ACEOF | |
4706 | #define _GNU_SOURCE 1 | |
4707 | _ACEOF | |
4708 | ||
4709 | ||
4710 | ||
01abe918 | 4711 | ### Use -Wno-pointer-sign if the compiler supports it |
d6e01aa5 KL |
4712 | { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5 |
4713 | echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; } | |
01abe918 CY |
4714 | SAVE_CFLAGS="$CFLAGS" |
4715 | CFLAGS="$CFLAGS -Wno-pointer-sign" | |
01abe918 CY |
4716 | cat >conftest.$ac_ext <<_ACEOF |
4717 | /* confdefs.h. */ | |
4718 | _ACEOF | |
4719 | cat confdefs.h >>conftest.$ac_ext | |
4720 | cat >>conftest.$ac_ext <<_ACEOF | |
4721 | /* end confdefs.h. */ | |
4722 | ||
4723 | int | |
4724 | main () | |
4725 | { | |
4726 | ||
4727 | ; | |
4728 | return 0; | |
4729 | } | |
4730 | _ACEOF | |
4731 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
4732 | if { (ac_try="$ac_compile" |
4733 | case "(($ac_try" in | |
4734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4735 | *) ac_try_echo=$ac_try;; | |
4736 | esac | |
4737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4738 | (eval "$ac_compile") 2>conftest.er1 | |
01abe918 CY |
4739 | ac_status=$? |
4740 | grep -v '^ *+' conftest.er1 >conftest.err | |
4741 | rm -f conftest.er1 | |
4742 | cat conftest.err >&5 | |
4743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
4744 | (exit $ac_status); } && { |
4745 | test -z "$ac_c_werror_flag" || | |
4746 | test ! -s conftest.err | |
4747 | } && test -s conftest.$ac_objext; then | |
01abe918 CY |
4748 | has_option=yes |
4749 | else | |
4750 | echo "$as_me: failed program was:" >&5 | |
4751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4752 | ||
d6e01aa5 | 4753 | has_option=no |
01abe918 | 4754 | fi |
d6e01aa5 KL |
4755 | |
4756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
01abe918 CY |
4757 | if test $has_option = yes; then |
4758 | C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" | |
4759 | fi | |
d6e01aa5 KL |
4760 | { echo "$as_me:$LINENO: result: $has_option" >&5 |
4761 | echo "${ECHO_T}$has_option" >&6; } | |
01abe918 CY |
4762 | CFLAGS="$SAVE_CFLAGS" |
4763 | unset has_option | |
4764 | unset SAVE_CFLAGS | |
4765 | ||
6a3a24fa | 4766 | #### Some other nice autoconf tests. |
ba4481b5 | 4767 | |
d6e01aa5 KL |
4768 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4769 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
503d2be0 AS |
4770 | LN_S=$as_ln_s |
4771 | if test "$LN_S" = "ln -s"; then | |
d6e01aa5 KL |
4772 | { echo "$as_me:$LINENO: result: yes" >&5 |
4773 | echo "${ECHO_T}yes" >&6; } | |
ba4481b5 | 4774 | else |
d6e01aa5 KL |
4775 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4776 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
ba4481b5 DL |
4777 | fi |
4778 | ||
503d2be0 AS |
4779 | ac_ext=c |
4780 | ac_cpp='$CPP $CPPFLAGS' | |
4781 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4782 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4783 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d6e01aa5 KL |
4784 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4785 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
ba4481b5 DL |
4786 | # On Suns, sometimes $CPP names a directory. |
4787 | if test -n "$CPP" && test -d "$CPP"; then | |
4788 | CPP= | |
4789 | fi | |
4790 | if test -z "$CPP"; then | |
503d2be0 AS |
4791 | if test "${ac_cv_prog_CPP+set}" = set; then |
4792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4793 | else | |
4794 | # Double quotes because CPP needs to be expanded | |
4795 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4796 | do | |
4797 | ac_preproc_ok=false | |
4798 | for ac_c_preproc_warn_flag in '' yes | |
4799 | do | |
4800 | # Use a header file that comes with gcc, so configuring glibc | |
4801 | # with a fresh cross-compiler works. | |
19650fd6 AS |
4802 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4803 | # <limits.h> exists even on freestanding compilers. | |
ba4481b5 | 4804 | # On the NeXT, cc -E runs the code through the compiler's parser, |
503d2be0 AS |
4805 | # not just through cpp. "Syntax error" is here to catch this case. |
4806 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4807 | /* confdefs.h. */ |
4808 | _ACEOF | |
4809 | cat confdefs.h >>conftest.$ac_ext | |
4810 | cat >>conftest.$ac_ext <<_ACEOF | |
4811 | /* end confdefs.h. */ | |
4812 | #ifdef __STDC__ | |
4813 | # include <limits.h> | |
4814 | #else | |
4815 | # include <assert.h> | |
4816 | #endif | |
edfaf76d | 4817 | Syntax error |
503d2be0 | 4818 | _ACEOF |
d6e01aa5 KL |
4819 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4820 | case "(($ac_try" in | |
4821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4822 | *) ac_try_echo=$ac_try;; | |
4823 | esac | |
4824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4825 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 4826 | ac_status=$? |
6bae0ccf | 4827 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
4828 | rm -f conftest.er1 |
4829 | cat conftest.err >&5 | |
c0d27fcc | 4830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
4831 | (exit $ac_status); } >/dev/null && { |
4832 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4833 | test ! -s conftest.err | |
4834 | }; then | |
ba4481b5 DL |
4835 | : |
4836 | else | |
503d2be0 | 4837 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4838 | sed 's/^/| /' conftest.$ac_ext >&5 |
4839 | ||
503d2be0 AS |
4840 | # Broken: fails on valid input. |
4841 | continue | |
4842 | fi | |
d6e01aa5 | 4843 | |
503d2be0 AS |
4844 | rm -f conftest.err conftest.$ac_ext |
4845 | ||
d6e01aa5 | 4846 | # OK, works on sane cases. Now check whether nonexistent headers |
503d2be0 AS |
4847 | # can be detected and how. |
4848 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4849 | /* confdefs.h. */ |
4850 | _ACEOF | |
4851 | cat confdefs.h >>conftest.$ac_ext | |
4852 | cat >>conftest.$ac_ext <<_ACEOF | |
4853 | /* end confdefs.h. */ | |
503d2be0 AS |
4854 | #include <ac_nonexistent.h> |
4855 | _ACEOF | |
d6e01aa5 KL |
4856 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4857 | case "(($ac_try" in | |
4858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4859 | *) ac_try_echo=$ac_try;; | |
4860 | esac | |
4861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4862 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 4863 | ac_status=$? |
6bae0ccf | 4864 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
4865 | rm -f conftest.er1 |
4866 | cat conftest.err >&5 | |
c0d27fcc | 4867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
4868 | (exit $ac_status); } >/dev/null && { |
4869 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4870 | test ! -s conftest.err | |
4871 | }; then | |
503d2be0 AS |
4872 | # Broken: success on invalid input. |
4873 | continue | |
c4bb2108 | 4874 | else |
503d2be0 | 4875 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4876 | sed 's/^/| /' conftest.$ac_ext >&5 |
4877 | ||
503d2be0 AS |
4878 | # Passes both tests. |
4879 | ac_preproc_ok=: | |
4880 | break | |
4881 | fi | |
d6e01aa5 | 4882 | |
503d2be0 AS |
4883 | rm -f conftest.err conftest.$ac_ext |
4884 | ||
4885 | done | |
4886 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4887 | rm -f conftest.err conftest.$ac_ext | |
4888 | if $ac_preproc_ok; then | |
4889 | break | |
4890 | fi | |
4891 | ||
4892 | done | |
4893 | ac_cv_prog_CPP=$CPP | |
4894 | ||
4895 | fi | |
4896 | CPP=$ac_cv_prog_CPP | |
4897 | else | |
4898 | ac_cv_prog_CPP=$CPP | |
4899 | fi | |
d6e01aa5 KL |
4900 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4901 | echo "${ECHO_T}$CPP" >&6; } | |
503d2be0 AS |
4902 | ac_preproc_ok=false |
4903 | for ac_c_preproc_warn_flag in '' yes | |
4904 | do | |
4905 | # Use a header file that comes with gcc, so configuring glibc | |
4906 | # with a fresh cross-compiler works. | |
19650fd6 AS |
4907 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4908 | # <limits.h> exists even on freestanding compilers. | |
503d2be0 AS |
4909 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4910 | # not just through cpp. "Syntax error" is here to catch this case. | |
4911 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4912 | /* confdefs.h. */ |
4913 | _ACEOF | |
4914 | cat confdefs.h >>conftest.$ac_ext | |
4915 | cat >>conftest.$ac_ext <<_ACEOF | |
4916 | /* end confdefs.h. */ | |
4917 | #ifdef __STDC__ | |
4918 | # include <limits.h> | |
4919 | #else | |
4920 | # include <assert.h> | |
4921 | #endif | |
edfaf76d | 4922 | Syntax error |
503d2be0 | 4923 | _ACEOF |
d6e01aa5 KL |
4924 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4925 | case "(($ac_try" in | |
4926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4927 | *) ac_try_echo=$ac_try;; | |
4928 | esac | |
4929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4930 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 4931 | ac_status=$? |
6bae0ccf | 4932 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
4933 | rm -f conftest.er1 |
4934 | cat conftest.err >&5 | |
c0d27fcc | 4935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
4936 | (exit $ac_status); } >/dev/null && { |
4937 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4938 | test ! -s conftest.err | |
4939 | }; then | |
ba4481b5 DL |
4940 | : |
4941 | else | |
503d2be0 | 4942 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4943 | sed 's/^/| /' conftest.$ac_ext >&5 |
4944 | ||
503d2be0 AS |
4945 | # Broken: fails on valid input. |
4946 | continue | |
4947 | fi | |
d6e01aa5 | 4948 | |
503d2be0 AS |
4949 | rm -f conftest.err conftest.$ac_ext |
4950 | ||
d6e01aa5 | 4951 | # OK, works on sane cases. Now check whether nonexistent headers |
503d2be0 AS |
4952 | # can be detected and how. |
4953 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4954 | /* confdefs.h. */ |
4955 | _ACEOF | |
4956 | cat confdefs.h >>conftest.$ac_ext | |
4957 | cat >>conftest.$ac_ext <<_ACEOF | |
4958 | /* end confdefs.h. */ | |
503d2be0 AS |
4959 | #include <ac_nonexistent.h> |
4960 | _ACEOF | |
d6e01aa5 KL |
4961 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4962 | case "(($ac_try" in | |
4963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4964 | *) ac_try_echo=$ac_try;; | |
4965 | esac | |
4966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4967 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 4968 | ac_status=$? |
6bae0ccf | 4969 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
4970 | rm -f conftest.er1 |
4971 | cat conftest.err >&5 | |
c0d27fcc | 4972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
4973 | (exit $ac_status); } >/dev/null && { |
4974 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4975 | test ! -s conftest.err | |
4976 | }; then | |
503d2be0 AS |
4977 | # Broken: success on invalid input. |
4978 | continue | |
4979 | else | |
4980 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4981 | sed 's/^/| /' conftest.$ac_ext >&5 |
4982 | ||
503d2be0 AS |
4983 | # Passes both tests. |
4984 | ac_preproc_ok=: | |
4985 | break | |
ba4481b5 | 4986 | fi |
d6e01aa5 | 4987 | |
503d2be0 AS |
4988 | rm -f conftest.err conftest.$ac_ext |
4989 | ||
4990 | done | |
4991 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4992 | rm -f conftest.err conftest.$ac_ext | |
4993 | if $ac_preproc_ok; then | |
4994 | : | |
ba4481b5 | 4995 | else |
19650fd6 AS |
4996 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4997 | See \`config.log' for more details." >&5 | |
4998 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4999 | See \`config.log' for more details." >&2;} | |
503d2be0 | 5000 | { (exit 1); exit 1; }; } |
ba4481b5 | 5001 | fi |
503d2be0 AS |
5002 | |
5003 | ac_ext=c | |
5004 | ac_cpp='$CPP $CPPFLAGS' | |
5005 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5006 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5007 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 DL |
5008 | |
5009 | # Find a good install program. We prefer a C program (faster), | |
5010 | # so one script is as good as another. But avoid the broken or | |
5011 | # incompatible versions: | |
5012 | # SysV /etc/install, /usr/sbin/install | |
5013 | # SunOS /usr/etc/install | |
5014 | # IRIX /sbin/install | |
5015 | # AIX /bin/install | |
503d2be0 | 5016 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
c4bb2108 | 5017 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
ba4481b5 DL |
5018 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
5019 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
edfaf76d | 5020 | # OS/2's system install, which has a completely different semantic |
ba4481b5 | 5021 | # ./install, which can be erroneously created by make from ./install.sh. |
d6e01aa5 KL |
5022 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
5023 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
ba4481b5 | 5024 | if test -z "$INSTALL"; then |
503d2be0 AS |
5025 | if test "${ac_cv_path_install+set}" = set; then |
5026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5027 | else |
c0d27fcc MR |
5028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5029 | for as_dir in $PATH | |
5030 | do | |
5031 | IFS=$as_save_IFS | |
5032 | test -z "$as_dir" && as_dir=. | |
5033 | # Account for people who put trailing slashes in PATH elements. | |
5034 | case $as_dir/ in | |
5035 | ./ | .// | /cC/* | \ | |
5036 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
edfaf76d | 5037 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
c0d27fcc MR |
5038 | /usr/ucb/* ) ;; |
5039 | *) | |
5040 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5041 | # Don't use installbsd from OSF since it installs stuff as root | |
5042 | # by default. | |
5043 | for ac_prog in ginstall scoinst install; do | |
5044 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6e01aa5 | 5045 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
edfaf76d LK |
5046 | if test $ac_prog = install && |
5047 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5048 | # AIX install. It has an incompatible calling convention. | |
5049 | : | |
5050 | elif test $ac_prog = install && | |
5051 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5052 | # program-specific install script used by HP pwplus--don't use. | |
5053 | : | |
5054 | else | |
5055 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5056 | break 3 | |
5057 | fi | |
5058 | fi | |
ba4481b5 | 5059 | done |
c0d27fcc MR |
5060 | done |
5061 | ;; | |
5062 | esac | |
5063 | done | |
d6e01aa5 | 5064 | IFS=$as_save_IFS |
c0d27fcc | 5065 | |
ba4481b5 DL |
5066 | |
5067 | fi | |
5068 | if test "${ac_cv_path_install+set}" = set; then | |
503d2be0 | 5069 | INSTALL=$ac_cv_path_install |
ba4481b5 | 5070 | else |
d6e01aa5 KL |
5071 | # As a last resort, use the slow shell script. Don't cache a |
5072 | # value for INSTALL within a source directory, because that will | |
ba4481b5 | 5073 | # break other packages using the cache if that directory is |
d6e01aa5 | 5074 | # removed, or if the value is a relative name. |
503d2be0 | 5075 | INSTALL=$ac_install_sh |
ba4481b5 DL |
5076 | fi |
5077 | fi | |
d6e01aa5 KL |
5078 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5079 | echo "${ECHO_T}$INSTALL" >&6; } | |
ba4481b5 DL |
5080 | |
5081 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5082 | # It thinks the first close brace ends the variable substitution. | |
5083 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5084 | ||
503d2be0 | 5085 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c4bb2108 | 5086 | |
ba4481b5 DL |
5087 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
5088 | ||
c0d27fcc MR |
5089 | if test "x$RANLIB" = x; then |
5090 | if test -n "$ac_tool_prefix"; then | |
5091 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5092 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
d6e01aa5 KL |
5093 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5094 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
c0d27fcc | 5095 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
503d2be0 | 5096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 DL |
5097 | else |
5098 | if test -n "$RANLIB"; then | |
5099 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5100 | else | |
c0d27fcc MR |
5101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5102 | for as_dir in $PATH | |
5103 | do | |
5104 | IFS=$as_save_IFS | |
5105 | test -z "$as_dir" && as_dir=. | |
5106 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6e01aa5 | 5107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
5108 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5109 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5110 | break 2 | |
5111 | fi | |
5112 | done | |
503d2be0 | 5113 | done |
d6e01aa5 | 5114 | IFS=$as_save_IFS |
503d2be0 | 5115 | |
7397acc4 DL |
5116 | fi |
5117 | fi | |
503d2be0 | 5118 | RANLIB=$ac_cv_prog_RANLIB |
7397acc4 | 5119 | if test -n "$RANLIB"; then |
d6e01aa5 KL |
5120 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5121 | echo "${ECHO_T}$RANLIB" >&6; } | |
503d2be0 | 5122 | else |
d6e01aa5 KL |
5123 | { echo "$as_me:$LINENO: result: no" >&5 |
5124 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
5125 | fi |
5126 | ||
d6e01aa5 | 5127 | |
503d2be0 AS |
5128 | fi |
5129 | if test -z "$ac_cv_prog_RANLIB"; then | |
5130 | ac_ct_RANLIB=$RANLIB | |
5131 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5132 | set dummy ranlib; ac_word=$2 | |
d6e01aa5 KL |
5133 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5134 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
5135 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
5136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5137 | else | |
5138 | if test -n "$ac_ct_RANLIB"; then | |
5139 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5140 | else | |
c0d27fcc MR |
5141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5142 | for as_dir in $PATH | |
5143 | do | |
5144 | IFS=$as_save_IFS | |
5145 | test -z "$as_dir" && as_dir=. | |
5146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6e01aa5 | 5147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
5148 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5149 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5150 | break 2 | |
5151 | fi | |
5152 | done | |
503d2be0 | 5153 | done |
d6e01aa5 | 5154 | IFS=$as_save_IFS |
503d2be0 | 5155 | |
503d2be0 AS |
5156 | fi |
5157 | fi | |
5158 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5159 | if test -n "$ac_ct_RANLIB"; then | |
d6e01aa5 KL |
5160 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
5161 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
503d2be0 | 5162 | else |
d6e01aa5 KL |
5163 | { echo "$as_me:$LINENO: result: no" >&5 |
5164 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
5165 | fi |
5166 | ||
d6e01aa5 KL |
5167 | if test "x$ac_ct_RANLIB" = x; then |
5168 | RANLIB=":" | |
5169 | else | |
5170 | case $cross_compiling:$ac_tool_warned in | |
5171 | yes:) | |
5172 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5173 | whose name does not start with the host triplet. If you think this | |
5174 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5175 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5176 | whose name does not start with the host triplet. If you think this | |
5177 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5178 | ac_tool_warned=yes ;; | |
5179 | esac | |
5180 | RANLIB=$ac_ct_RANLIB | |
5181 | fi | |
7397acc4 | 5182 | else |
503d2be0 | 5183 | RANLIB="$ac_cv_prog_RANLIB" |
7397acc4 DL |
5184 | fi |
5185 | ||
5186 | fi | |
9e71690e DK |
5187 | # Extract the first word of "install-info", so it can be a program name with args. |
5188 | set dummy install-info; ac_word=$2 | |
d6e01aa5 KL |
5189 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
9e71690e DK |
5191 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
5192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5193 | else | |
5194 | case $INSTALL_INFO in | |
5195 | [\\/]* | ?:[\\/]*) | |
5196 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
5197 | ;; | |
5198 | *) | |
5199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5200 | for as_dir in $PATH | |
5201 | do | |
5202 | IFS=$as_save_IFS | |
5203 | test -z "$as_dir" && as_dir=. | |
5204 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6e01aa5 | 5205 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9e71690e DK |
5206 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5207 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5208 | break 2 | |
5209 | fi | |
5210 | done | |
5211 | done | |
d6e01aa5 | 5212 | IFS=$as_save_IFS |
9e71690e DK |
5213 | |
5214 | ;; | |
5215 | esac | |
5216 | fi | |
5217 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
9e71690e | 5218 | if test -n "$INSTALL_INFO"; then |
d6e01aa5 KL |
5219 | { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
5220 | echo "${ECHO_T}$INSTALL_INFO" >&6; } | |
9e71690e | 5221 | else |
d6e01aa5 KL |
5222 | { echo "$as_me:$LINENO: result: no" >&5 |
5223 | echo "${ECHO_T}no" >&6; } | |
9e71690e DK |
5224 | fi |
5225 | ||
d6e01aa5 | 5226 | |
9e71690e DK |
5227 | # Extract the first word of "install-info", so it can be a program name with args. |
5228 | set dummy install-info; ac_word=$2 | |
d6e01aa5 KL |
5229 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5230 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
9e71690e DK |
5231 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
5232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5233 | else | |
5234 | case $INSTALL_INFO in | |
5235 | [\\/]* | ?:[\\/]*) | |
5236 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
5237 | ;; | |
5238 | *) | |
5239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5240 | for as_dir in /usr/sbin | |
5241 | do | |
5242 | IFS=$as_save_IFS | |
5243 | test -z "$as_dir" && as_dir=. | |
5244 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6e01aa5 | 5245 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9e71690e DK |
5246 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5247 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5248 | break 2 | |
5249 | fi | |
5250 | done | |
5251 | done | |
d6e01aa5 | 5252 | IFS=$as_save_IFS |
9e71690e DK |
5253 | |
5254 | ;; | |
5255 | esac | |
5256 | fi | |
5257 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
9e71690e | 5258 | if test -n "$INSTALL_INFO"; then |
d6e01aa5 KL |
5259 | { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
5260 | echo "${ECHO_T}$INSTALL_INFO" >&6; } | |
9e71690e | 5261 | else |
d6e01aa5 KL |
5262 | { echo "$as_me:$LINENO: result: no" >&5 |
5263 | echo "${ECHO_T}no" >&6; } | |
9e71690e DK |
5264 | fi |
5265 | ||
d6e01aa5 | 5266 | |
9e71690e DK |
5267 | # Extract the first word of "install-info", so it can be a program name with args. |
5268 | set dummy install-info; ac_word=$2 | |
d6e01aa5 KL |
5269 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
9e71690e DK |
5271 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
5272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5273 | else | |
5274 | case $INSTALL_INFO in | |
5275 | [\\/]* | ?:[\\/]*) | |
5276 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
5277 | ;; | |
5278 | *) | |
5279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5280 | for as_dir in /sbin | |
5281 | do | |
5282 | IFS=$as_save_IFS | |
5283 | test -z "$as_dir" && as_dir=. | |
5284 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6e01aa5 | 5285 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9e71690e DK |
5286 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5287 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5288 | break 2 | |
5289 | fi | |
5290 | done | |
5291 | done | |
d6e01aa5 | 5292 | IFS=$as_save_IFS |
9e71690e DK |
5293 | |
5294 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" | |
5295 | ;; | |
5296 | esac | |
5297 | fi | |
5298 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
9e71690e | 5299 | if test -n "$INSTALL_INFO"; then |
d6e01aa5 KL |
5300 | { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
5301 | echo "${ECHO_T}$INSTALL_INFO" >&6; } | |
9e71690e | 5302 | else |
d6e01aa5 KL |
5303 | { echo "$as_me:$LINENO: result: no" >&5 |
5304 | echo "${ECHO_T}no" >&6; } | |
9e71690e DK |
5305 | fi |
5306 | ||
d6e01aa5 | 5307 | |
8ae52ca6 RF |
5308 | # Extract the first word of "gzip", so it can be a program name with args. |
5309 | set dummy gzip; ac_word=$2 | |
d6e01aa5 KL |
5310 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5311 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
46e35e9f | 5312 | if test "${ac_cv_path_GZIP_PROG+set}" = set; then |
8ae52ca6 RF |
5313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5314 | else | |
46e35e9f | 5315 | case $GZIP_PROG in |
8ae52ca6 | 5316 | [\\/]* | ?:[\\/]*) |
46e35e9f | 5317 | ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. |
8ae52ca6 RF |
5318 | ;; |
5319 | *) | |
5320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5321 | for as_dir in $PATH | |
5322 | do | |
5323 | IFS=$as_save_IFS | |
5324 | test -z "$as_dir" && as_dir=. | |
5325 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6e01aa5 | 5326 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
46e35e9f | 5327 | ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" |
8ae52ca6 RF |
5328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5329 | break 2 | |
5330 | fi | |
5331 | done | |
5332 | done | |
d6e01aa5 | 5333 | IFS=$as_save_IFS |
8ae52ca6 RF |
5334 | |
5335 | ;; | |
5336 | esac | |
5337 | fi | |
46e35e9f | 5338 | GZIP_PROG=$ac_cv_path_GZIP_PROG |
46e35e9f | 5339 | if test -n "$GZIP_PROG"; then |
d6e01aa5 KL |
5340 | { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5 |
5341 | echo "${ECHO_T}$GZIP_PROG" >&6; } | |
8ae52ca6 | 5342 | else |
d6e01aa5 KL |
5343 | { echo "$as_me:$LINENO: result: no" >&5 |
5344 | echo "${ECHO_T}no" >&6; } | |
8ae52ca6 RF |
5345 | fi |
5346 | ||
ba4481b5 | 5347 | |
c0d27fcc | 5348 | |
d6e01aa5 | 5349 | |
c982cf7d JD |
5350 | ## Need makeinfo >= 4.6 (?) to build the manuals. |
5351 | # Extract the first word of "makeinfo", so it can be a program name with args. | |
5352 | set dummy makeinfo; ac_word=$2 | |
5353 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5354 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5355 | if test "${ac_cv_path_MAKEINFO+set}" = set; then | |
5356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5357 | else | |
5358 | case $MAKEINFO in | |
5359 | [\\/]* | ?:[\\/]*) | |
5360 | ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. | |
5361 | ;; | |
5362 | *) | |
5363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5364 | for as_dir in $PATH | |
5365 | do | |
5366 | IFS=$as_save_IFS | |
5367 | test -z "$as_dir" && as_dir=. | |
5368 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5369 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5370 | ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" | |
5371 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5372 | break 2 | |
5373 | fi | |
5374 | done | |
5375 | done | |
5376 | IFS=$as_save_IFS | |
5377 | ||
5378 | test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" | |
5379 | ;; | |
5380 | esac | |
5381 | fi | |
5382 | MAKEINFO=$ac_cv_path_MAKEINFO | |
5383 | if test -n "$MAKEINFO"; then | |
5384 | { echo "$as_me:$LINENO: result: $MAKEINFO" >&5 | |
5385 | echo "${ECHO_T}$MAKEINFO" >&6; } | |
5386 | else | |
5387 | { echo "$as_me:$LINENO: result: no" >&5 | |
5388 | echo "${ECHO_T}no" >&6; } | |
5389 | fi | |
5390 | ||
5391 | ||
5392 | if test "$MAKEINFO" != "no" && \ | |
d4840f44 | 5393 | test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then |
c982cf7d JD |
5394 | MAKEINFO=no |
5395 | fi | |
5396 | ||
5397 | if test "$MAKEINFO" = "no"; then | |
5398 | { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5 | |
5399 | echo "$as_me: error: makeinfo >= 4.6 is required " >&2;} | |
5400 | { (exit 1); exit 1; }; } | |
5401 | fi | |
5402 | ||
5403 | ||
5404 | ||
8e967cf7 MR |
5405 | if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x |
5406 | then | |
5407 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
5408 | fi | |
5409 | ||
5410 | if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
5411 | then | |
5412 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
5413 | fi | |
5414 | ||
c0d27fcc | 5415 | |
fe239f0f | 5416 | late_LDFLAGS=$LDFLAGS |
4af002d6 | 5417 | if test "$GCC" = yes; then |
fe239f0f AS |
5418 | LDFLAGS="$LDFLAGS -Wl,-znocombreloc" |
5419 | else | |
5420 | LDFLAGS="$LDFLAGS -znocombreloc" | |
5421 | fi | |
5422 | ||
d6e01aa5 KL |
5423 | { echo "$as_me:$LINENO: checking for -znocombreloc" >&5 |
5424 | echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; } | |
fe239f0f AS |
5425 | cat >conftest.$ac_ext <<_ACEOF |
5426 | main(){return 0;} | |
5427 | _ACEOF | |
5428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
5429 | if { (ac_try="$ac_link" |
5430 | case "(($ac_try" in | |
5431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5432 | *) ac_try_echo=$ac_try;; | |
5433 | esac | |
5434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5435 | (eval "$ac_link") 2>conftest.er1 | |
fe239f0f | 5436 | ac_status=$? |
edfaf76d LK |
5437 | grep -v '^ *+' conftest.er1 >conftest.err |
5438 | rm -f conftest.er1 | |
5439 | cat conftest.err >&5 | |
fe239f0f | 5440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
5441 | (exit $ac_status); } && { |
5442 | test -z "$ac_c_werror_flag" || | |
5443 | test ! -s conftest.err | |
5444 | } && test -s conftest$ac_exeext && | |
5445 | $as_test_x conftest$ac_exeext; then | |
5446 | { echo "$as_me:$LINENO: result: yes" >&5 | |
5447 | echo "${ECHO_T}yes" >&6; } | |
fe239f0f AS |
5448 | else |
5449 | echo "$as_me: failed program was:" >&5 | |
5450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5451 | ||
d6e01aa5 KL |
5452 | LDFLAGS=$late_LDFLAGS |
5453 | { echo "$as_me:$LINENO: result: no" >&5 | |
5454 | echo "${ECHO_T}no" >&6; } | |
fe239f0f | 5455 | fi |
d6e01aa5 KL |
5456 | |
5457 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 5458 | conftest$ac_exeext conftest.$ac_ext |
fe239f0f | 5459 | |
3b33a005 DL |
5460 | #### Extract some information from the operating system and machine files. |
5461 | ||
c0d27fcc | 5462 | { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out |
3b33a005 | 5463 | - which libraries the lib-src programs will want, and |
503d2be0 AS |
5464 | - whether the GNU malloc routines are usable..." >&5 |
5465 | echo "$as_me: checking the machine- and system-dependent files to find out | |
3b33a005 | 5466 | - which libraries the lib-src programs will want, and |
503d2be0 | 5467 | - whether the GNU malloc routines are usable..." >&6;} |
3b33a005 DL |
5468 | |
5469 | ### First figure out CFLAGS (which we use for running the compiler here) | |
5470 | ### and REAL_CFLAGS (which we use for real compilation). | |
5471 | ### The two are the same except on a few systems, where they are made | |
5472 | ### different to work around various lossages. For example, | |
5473 | ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
5474 | ### as implying static linking. | |
5475 | ||
5476 | ### If the CFLAGS env var is specified, we use that value | |
5477 | ### instead of the default. | |
5478 | ||
5479 | ### It's not important that this name contain the PID; you can't run | |
5480 | ### two configures in the same directory and have anything work | |
5481 | ### anyway. | |
5482 | tempcname="conftest.c" | |
5483 | ||
5484 | echo ' | |
5485 | #include "'${srcdir}'/src/'${opsysfile}'" | |
5486 | #include "'${srcdir}'/src/'${machfile}'" | |
5487 | #ifndef LIBS_MACHINE | |
5488 | #define LIBS_MACHINE | |
5489 | #endif | |
5490 | #ifndef LIBS_SYSTEM | |
5491 | #define LIBS_SYSTEM | |
5492 | #endif | |
5493 | #ifndef C_SWITCH_SYSTEM | |
5494 | #define C_SWITCH_SYSTEM | |
5495 | #endif | |
5496 | #ifndef C_SWITCH_MACHINE | |
5497 | #define C_SWITCH_MACHINE | |
5498 | #endif | |
5499 | configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
5500 | configure___ c_switch_system=C_SWITCH_SYSTEM | |
5501 | configure___ c_switch_machine=C_SWITCH_MACHINE | |
5502 | ||
5503 | #ifndef LIB_X11_LIB | |
5504 | #define LIB_X11_LIB -lX11 | |
5505 | #endif | |
5506 | ||
5507 | #ifndef LIBX11_MACHINE | |
5508 | #define LIBX11_MACHINE | |
5509 | #endif | |
5510 | ||
5511 | #ifndef LIBX11_SYSTEM | |
5512 | #define LIBX11_SYSTEM | |
5513 | #endif | |
5514 | configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
5515 | ||
5516 | #ifdef UNEXEC | |
5517 | configure___ unexec=UNEXEC | |
5518 | #else | |
5519 | configure___ unexec=unexec.o | |
5520 | #endif | |
5521 | ||
5522 | #ifdef SYSTEM_MALLOC | |
5523 | configure___ system_malloc=yes | |
5524 | #else | |
5525 | configure___ system_malloc=no | |
5526 | #endif | |
5527 | ||
ef9e4345 GM |
5528 | #ifdef USE_MMAP_FOR_BUFFERS |
5529 | configure___ use_mmap_for_buffers=yes | |
73b77ee5 | 5530 | #else |
ef9e4345 | 5531 | configure___ use_mmap_for_buffers=no |
73b77ee5 GM |
5532 | #endif |
5533 | ||
3b33a005 DL |
5534 | #ifndef C_DEBUG_SWITCH |
5535 | #define C_DEBUG_SWITCH -g | |
5536 | #endif | |
5537 | ||
5538 | #ifndef C_OPTIMIZE_SWITCH | |
5539 | #ifdef __GNUC__ | |
5540 | #define C_OPTIMIZE_SWITCH -O2 | |
5541 | #else | |
5542 | #define C_OPTIMIZE_SWITCH -O | |
5543 | #endif | |
5544 | #endif | |
5545 | ||
01abe918 CY |
5546 | #ifndef C_WARNINGS_SWITCH |
5547 | #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH} | |
5548 | #endif | |
5549 | ||
3b33a005 DL |
5550 | #ifndef LD_SWITCH_MACHINE |
5551 | #define LD_SWITCH_MACHINE | |
5552 | #endif | |
5553 | ||
5554 | #ifndef LD_SWITCH_SYSTEM | |
5555 | #define LD_SWITCH_SYSTEM | |
5556 | #endif | |
5557 | ||
5558 | #ifndef LD_SWITCH_X_SITE_AUX | |
5559 | #define LD_SWITCH_X_SITE_AUX | |
503d2be0 | 5560 | #endif |
3b33a005 DL |
5561 | |
5562 | configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
5563 | configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
5564 | ||
5565 | #ifdef THIS_IS_CONFIGURE | |
5566 | ||
5567 | /* Get the CFLAGS for tests in configure. */ | |
5568 | #ifdef __GNUC__ | |
5569 | configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
5570 | #else | |
5571 | configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
5572 | #endif | |
5573 | ||
5574 | #else /* not THIS_IS_CONFIGURE */ | |
5575 | ||
5576 | /* Get the CFLAGS for real compilation. */ | |
5577 | #ifdef __GNUC__ | |
01abe918 | 5578 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}' |
3b33a005 DL |
5579 | #else |
5580 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
5581 | #endif | |
5582 | ||
5583 | #endif /* not THIS_IS_CONFIGURE */ | |
5584 | ' > ${tempcname} | |
5585 | ||
5586 | # The value of CPP is a quoted variable reference, so we need to do this | |
5587 | # to get its actual value... | |
5588 | CPP=`eval "echo $CPP"` | |
5589 | eval `${CPP} -Isrc ${tempcname} \ | |
5590 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
5591 | if test "x$SPECIFIED_CFLAGS" = x; then | |
5592 | eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
5593 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
5594 | else | |
5595 | REAL_CFLAGS="$CFLAGS" | |
5596 | fi | |
5597 | rm ${tempcname} | |
5598 | ||
5599 | ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
5600 | ||
5601 | ### Make sure subsequent tests use flags consistent with the build flags. | |
5602 | ||
5603 | if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
5604 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
5605 | else | |
5606 | CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
5607 | fi | |
5608 | ||
6bae0ccf DL |
5609 | |
5610 | ||
d6e01aa5 | 5611 | # Check whether --enable-largefile was given. |
f4988be7 | 5612 | if test "${enable_largefile+set}" = set; then |
d6e01aa5 KL |
5613 | enableval=$enable_largefile; |
5614 | fi | |
f4988be7 | 5615 | |
503d2be0 | 5616 | if test "$enable_largefile" != no; then |
f4988be7 | 5617 | |
d6e01aa5 KL |
5618 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
5619 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } | |
503d2be0 AS |
5620 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
5621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5622 | else |
f4988be7 | 5623 | ac_cv_sys_largefile_CC=no |
503d2be0 AS |
5624 | if test "$GCC" != yes; then |
5625 | ac_save_CC=$CC | |
5626 | while :; do | |
d6e01aa5 KL |
5627 | # IRIX 6.2 and later do not support large files by default, |
5628 | # so use the C compiler's -n32 option if that helps. | |
edfaf76d | 5629 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5630 | /* confdefs.h. */ |
5631 | _ACEOF | |
5632 | cat confdefs.h >>conftest.$ac_ext | |
5633 | cat >>conftest.$ac_ext <<_ACEOF | |
5634 | /* end confdefs.h. */ | |
f4988be7 | 5635 | #include <sys/types.h> |
503d2be0 AS |
5636 | /* Check that off_t can represent 2**63 - 1 correctly. |
5637 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5638 | since some C++ compilers masquerading as C compilers | |
5639 | incorrectly reject 9223372036854775807. */ | |
5640 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5641 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5642 | && LARGE_OFF_T % 2147483647 == 1) | |
5643 | ? 1 : -1]; | |
5644 | int | |
5645 | main () | |
5646 | { | |
f4988be7 | 5647 | |
503d2be0 AS |
5648 | ; |
5649 | return 0; | |
5650 | } | |
5651 | _ACEOF | |
d6e01aa5 KL |
5652 | rm -f conftest.$ac_objext |
5653 | if { (ac_try="$ac_compile" | |
5654 | case "(($ac_try" in | |
5655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5656 | *) ac_try_echo=$ac_try;; | |
5657 | esac | |
5658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5659 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5660 | ac_status=$? |
edfaf76d LK |
5661 | grep -v '^ *+' conftest.er1 >conftest.err |
5662 | rm -f conftest.er1 | |
5663 | cat conftest.err >&5 | |
c0d27fcc | 5664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
5665 | (exit $ac_status); } && { |
5666 | test -z "$ac_c_werror_flag" || | |
5667 | test ! -s conftest.err | |
5668 | } && test -s conftest.$ac_objext; then | |
503d2be0 | 5669 | break |
b192d653 | 5670 | else |
503d2be0 | 5671 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5672 | sed 's/^/| /' conftest.$ac_ext >&5 |
5673 | ||
d6e01aa5 | 5674 | |
503d2be0 | 5675 | fi |
d6e01aa5 KL |
5676 | |
5677 | rm -f core conftest.err conftest.$ac_objext | |
5678 | CC="$CC -n32" | |
5679 | rm -f conftest.$ac_objext | |
5680 | if { (ac_try="$ac_compile" | |
5681 | case "(($ac_try" in | |
5682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5683 | *) ac_try_echo=$ac_try;; | |
5684 | esac | |
5685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5686 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5687 | ac_status=$? |
edfaf76d LK |
5688 | grep -v '^ *+' conftest.er1 >conftest.err |
5689 | rm -f conftest.er1 | |
5690 | cat conftest.err >&5 | |
c0d27fcc | 5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
5692 | (exit $ac_status); } && { |
5693 | test -z "$ac_c_werror_flag" || | |
5694 | test ! -s conftest.err | |
5695 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
5696 | ac_cv_sys_largefile_CC=' -n32'; break |
5697 | else | |
5698 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5699 | sed 's/^/| /' conftest.$ac_ext >&5 |
5700 | ||
d6e01aa5 | 5701 | |
503d2be0 | 5702 | fi |
d6e01aa5 KL |
5703 | |
5704 | rm -f core conftest.err conftest.$ac_objext | |
edfaf76d | 5705 | break |
503d2be0 AS |
5706 | done |
5707 | CC=$ac_save_CC | |
5708 | rm -f conftest.$ac_ext | |
5709 | fi | |
b192d653 | 5710 | fi |
d6e01aa5 KL |
5711 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
5712 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } | |
503d2be0 AS |
5713 | if test "$ac_cv_sys_largefile_CC" != no; then |
5714 | CC=$CC$ac_cv_sys_largefile_CC | |
5715 | fi | |
b192d653 | 5716 | |
d6e01aa5 KL |
5717 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
5718 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | |
503d2be0 AS |
5719 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
5720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5721 | else |
503d2be0 | 5722 | while :; do |
503d2be0 | 5723 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5724 | /* confdefs.h. */ |
5725 | _ACEOF | |
5726 | cat confdefs.h >>conftest.$ac_ext | |
5727 | cat >>conftest.$ac_ext <<_ACEOF | |
5728 | /* end confdefs.h. */ | |
f4988be7 | 5729 | #include <sys/types.h> |
503d2be0 AS |
5730 | /* Check that off_t can represent 2**63 - 1 correctly. |
5731 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5732 | since some C++ compilers masquerading as C compilers | |
5733 | incorrectly reject 9223372036854775807. */ | |
5734 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5735 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5736 | && LARGE_OFF_T % 2147483647 == 1) | |
5737 | ? 1 : -1]; | |
5738 | int | |
5739 | main () | |
5740 | { | |
f4988be7 | 5741 | |
503d2be0 AS |
5742 | ; |
5743 | return 0; | |
5744 | } | |
5745 | _ACEOF | |
5746 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
5747 | if { (ac_try="$ac_compile" |
5748 | case "(($ac_try" in | |
5749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5750 | *) ac_try_echo=$ac_try;; | |
5751 | esac | |
5752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5753 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5754 | ac_status=$? |
edfaf76d LK |
5755 | grep -v '^ *+' conftest.er1 >conftest.err |
5756 | rm -f conftest.er1 | |
5757 | cat conftest.err >&5 | |
c0d27fcc | 5758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
5759 | (exit $ac_status); } && { |
5760 | test -z "$ac_c_werror_flag" || | |
5761 | test ! -s conftest.err | |
5762 | } && test -s conftest.$ac_objext; then | |
5763 | ac_cv_sys_file_offset_bits=no; break | |
f4988be7 | 5764 | else |
503d2be0 | 5765 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5766 | sed 's/^/| /' conftest.$ac_ext >&5 |
5767 | ||
d6e01aa5 | 5768 | |
503d2be0 | 5769 | fi |
d6e01aa5 KL |
5770 | |
5771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 | 5772 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5773 | /* confdefs.h. */ |
5774 | _ACEOF | |
5775 | cat confdefs.h >>conftest.$ac_ext | |
5776 | cat >>conftest.$ac_ext <<_ACEOF | |
5777 | /* end confdefs.h. */ | |
f4988be7 GM |
5778 | #define _FILE_OFFSET_BITS 64 |
5779 | #include <sys/types.h> | |
503d2be0 AS |
5780 | /* Check that off_t can represent 2**63 - 1 correctly. |
5781 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5782 | since some C++ compilers masquerading as C compilers | |
5783 | incorrectly reject 9223372036854775807. */ | |
5784 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5785 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5786 | && LARGE_OFF_T % 2147483647 == 1) | |
5787 | ? 1 : -1]; | |
5788 | int | |
5789 | main () | |
5790 | { | |
5791 | ||
5792 | ; | |
5793 | return 0; | |
5794 | } | |
5795 | _ACEOF | |
5796 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
5797 | if { (ac_try="$ac_compile" |
5798 | case "(($ac_try" in | |
5799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5800 | *) ac_try_echo=$ac_try;; | |
5801 | esac | |
5802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5803 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5804 | ac_status=$? |
edfaf76d LK |
5805 | grep -v '^ *+' conftest.er1 >conftest.err |
5806 | rm -f conftest.er1 | |
5807 | cat conftest.err >&5 | |
c0d27fcc | 5808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
5809 | (exit $ac_status); } && { |
5810 | test -z "$ac_c_werror_flag" || | |
5811 | test ! -s conftest.err | |
5812 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
5813 | ac_cv_sys_file_offset_bits=64; break |
5814 | else | |
5815 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5816 | sed 's/^/| /' conftest.$ac_ext >&5 |
5817 | ||
d6e01aa5 | 5818 | |
503d2be0 | 5819 | fi |
d6e01aa5 KL |
5820 | |
5821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5822 | ac_cv_sys_file_offset_bits=unknown | |
503d2be0 AS |
5823 | break |
5824 | done | |
ba4481b5 | 5825 | fi |
d6e01aa5 KL |
5826 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
5827 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | |
5828 | case $ac_cv_sys_file_offset_bits in #( | |
5829 | no | unknown) ;; | |
5830 | *) | |
c0d27fcc | 5831 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 5832 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
c0d27fcc | 5833 | _ACEOF |
d6e01aa5 KL |
5834 | ;; |
5835 | esac | |
503d2be0 | 5836 | rm -f conftest* |
d6e01aa5 KL |
5837 | if test $ac_cv_sys_file_offset_bits = unknown; then |
5838 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
5839 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } | |
503d2be0 AS |
5840 | if test "${ac_cv_sys_large_files+set}" = set; then |
5841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5842 | else |
503d2be0 | 5843 | while :; do |
503d2be0 | 5844 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5845 | /* confdefs.h. */ |
5846 | _ACEOF | |
5847 | cat confdefs.h >>conftest.$ac_ext | |
5848 | cat >>conftest.$ac_ext <<_ACEOF | |
5849 | /* end confdefs.h. */ | |
503d2be0 AS |
5850 | #include <sys/types.h> |
5851 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5852 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5853 | since some C++ compilers masquerading as C compilers | |
5854 | incorrectly reject 9223372036854775807. */ | |
5855 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5856 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5857 | && LARGE_OFF_T % 2147483647 == 1) | |
5858 | ? 1 : -1]; | |
5859 | int | |
5860 | main () | |
5861 | { | |
ba4481b5 | 5862 | |
503d2be0 AS |
5863 | ; |
5864 | return 0; | |
5865 | } | |
5866 | _ACEOF | |
5867 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
5868 | if { (ac_try="$ac_compile" |
5869 | case "(($ac_try" in | |
5870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5871 | *) ac_try_echo=$ac_try;; | |
5872 | esac | |
5873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5874 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5875 | ac_status=$? |
edfaf76d LK |
5876 | grep -v '^ *+' conftest.er1 >conftest.err |
5877 | rm -f conftest.er1 | |
5878 | cat conftest.err >&5 | |
c0d27fcc | 5879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
5880 | (exit $ac_status); } && { |
5881 | test -z "$ac_c_werror_flag" || | |
5882 | test ! -s conftest.err | |
5883 | } && test -s conftest.$ac_objext; then | |
5884 | ac_cv_sys_large_files=no; break | |
ba4481b5 | 5885 | else |
503d2be0 | 5886 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5887 | sed 's/^/| /' conftest.$ac_ext >&5 |
5888 | ||
d6e01aa5 | 5889 | |
503d2be0 | 5890 | fi |
d6e01aa5 KL |
5891 | |
5892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 | 5893 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5894 | /* confdefs.h. */ |
5895 | _ACEOF | |
5896 | cat confdefs.h >>conftest.$ac_ext | |
5897 | cat >>conftest.$ac_ext <<_ACEOF | |
5898 | /* end confdefs.h. */ | |
f4988be7 | 5899 | #define _LARGE_FILES 1 |
503d2be0 AS |
5900 | #include <sys/types.h> |
5901 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5902 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5903 | since some C++ compilers masquerading as C compilers | |
5904 | incorrectly reject 9223372036854775807. */ | |
5905 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5906 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5907 | && LARGE_OFF_T % 2147483647 == 1) | |
5908 | ? 1 : -1]; | |
5909 | int | |
5910 | main () | |
5911 | { | |
f4988be7 | 5912 | |
503d2be0 AS |
5913 | ; |
5914 | return 0; | |
5915 | } | |
5916 | _ACEOF | |
5917 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
5918 | if { (ac_try="$ac_compile" |
5919 | case "(($ac_try" in | |
5920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5921 | *) ac_try_echo=$ac_try;; | |
5922 | esac | |
5923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5924 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5925 | ac_status=$? |
edfaf76d LK |
5926 | grep -v '^ *+' conftest.er1 >conftest.err |
5927 | rm -f conftest.er1 | |
5928 | cat conftest.err >&5 | |
c0d27fcc | 5929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
5930 | (exit $ac_status); } && { |
5931 | test -z "$ac_c_werror_flag" || | |
5932 | test ! -s conftest.err | |
5933 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
5934 | ac_cv_sys_large_files=1; break |
5935 | else | |
5936 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5937 | sed 's/^/| /' conftest.$ac_ext >&5 |
5938 | ||
d6e01aa5 | 5939 | |
503d2be0 | 5940 | fi |
d6e01aa5 KL |
5941 | |
5942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5943 | ac_cv_sys_large_files=unknown | |
503d2be0 AS |
5944 | break |
5945 | done | |
ba4481b5 | 5946 | fi |
d6e01aa5 KL |
5947 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
5948 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | |
5949 | case $ac_cv_sys_large_files in #( | |
5950 | no | unknown) ;; | |
5951 | *) | |
c0d27fcc | 5952 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 5953 | #define _LARGE_FILES $ac_cv_sys_large_files |
c0d27fcc | 5954 | _ACEOF |
d6e01aa5 KL |
5955 | ;; |
5956 | esac | |
503d2be0 | 5957 | rm -f conftest* |
d6e01aa5 | 5958 | fi |
503d2be0 | 5959 | fi |
ba4481b5 | 5960 | |
c0d27fcc | 5961 | |
439f58ee | 5962 | |
bc5d9888 CY |
5963 | ### The standard library on x86-64 GNU/Linux distributions can |
5964 | ### be located in either /usr/lib64 or /usr/lib. | |
5965 | case "${canonical}" in | |
5966 | x86_64-*-linux-gnu* ) | |
5967 | if test -d /usr/lib64; then | |
5968 | ||
5969 | cat >>confdefs.h <<\_ACEOF | |
5970 | #define HAVE_X86_64_LIB64_DIR 1 | |
5971 | _ACEOF | |
5972 | ||
5973 | fi | |
5974 | esac | |
5975 | ||
439f58ee JD |
5976 | |
5977 | ||
5978 | ||
2c9dccc9 PJ |
5979 | if test "${with_sound}" != "no"; then |
5980 | # Sound support for GNU/Linux and the free BSDs. | |
d6e01aa5 KL |
5981 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5982 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
c0d27fcc MR |
5983 | if test "${ac_cv_header_stdc+set}" = set; then |
5984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5985 | else | |
5986 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5987 | /* confdefs.h. */ |
5988 | _ACEOF | |
5989 | cat confdefs.h >>conftest.$ac_ext | |
5990 | cat >>conftest.$ac_ext <<_ACEOF | |
5991 | /* end confdefs.h. */ | |
c0d27fcc MR |
5992 | #include <stdlib.h> |
5993 | #include <stdarg.h> | |
5994 | #include <string.h> | |
5995 | #include <float.h> | |
98418dba | 5996 | |
19650fd6 AS |
5997 | int |
5998 | main () | |
5999 | { | |
6000 | ||
6001 | ; | |
6002 | return 0; | |
6003 | } | |
c0d27fcc | 6004 | _ACEOF |
19650fd6 | 6005 | rm -f conftest.$ac_objext |
d6e01aa5 KL |
6006 | if { (ac_try="$ac_compile" |
6007 | case "(($ac_try" in | |
6008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6009 | *) ac_try_echo=$ac_try;; | |
6010 | esac | |
6011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6012 | (eval "$ac_compile") 2>conftest.er1 | |
cd958eb3 | 6013 | ac_status=$? |
edfaf76d LK |
6014 | grep -v '^ *+' conftest.er1 >conftest.err |
6015 | rm -f conftest.er1 | |
6016 | cat conftest.err >&5 | |
cd958eb3 | 6017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
6018 | (exit $ac_status); } && { |
6019 | test -z "$ac_c_werror_flag" || | |
6020 | test ! -s conftest.err | |
6021 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
6022 | ac_cv_header_stdc=yes |
6023 | else | |
6024 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6025 | sed 's/^/| /' conftest.$ac_ext >&5 |
6026 | ||
d6e01aa5 | 6027 | ac_cv_header_stdc=no |
c0d27fcc | 6028 | fi |
d6e01aa5 KL |
6029 | |
6030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c0d27fcc MR |
6031 | |
6032 | if test $ac_cv_header_stdc = yes; then | |
6033 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6034 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6035 | /* confdefs.h. */ |
6036 | _ACEOF | |
6037 | cat confdefs.h >>conftest.$ac_ext | |
6038 | cat >>conftest.$ac_ext <<_ACEOF | |
6039 | /* end confdefs.h. */ | |
c0d27fcc MR |
6040 | #include <string.h> |
6041 | ||
6042 | _ACEOF | |
6043 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 6044 | $EGREP "memchr" >/dev/null 2>&1; then |
c0d27fcc MR |
6045 | : |
6046 | else | |
6047 | ac_cv_header_stdc=no | |
6048 | fi | |
6049 | rm -f conftest* | |
6050 | ||
6051 | fi | |
6052 | ||
6053 | if test $ac_cv_header_stdc = yes; then | |
6054 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6055 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6056 | /* confdefs.h. */ |
6057 | _ACEOF | |
6058 | cat confdefs.h >>conftest.$ac_ext | |
6059 | cat >>conftest.$ac_ext <<_ACEOF | |
6060 | /* end confdefs.h. */ | |
c0d27fcc MR |
6061 | #include <stdlib.h> |
6062 | ||
6063 | _ACEOF | |
6064 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 6065 | $EGREP "free" >/dev/null 2>&1; then |
c0d27fcc MR |
6066 | : |
6067 | else | |
6068 | ac_cv_header_stdc=no | |
6069 | fi | |
6070 | rm -f conftest* | |
6071 | ||
6072 | fi | |
6073 | ||
6074 | if test $ac_cv_header_stdc = yes; then | |
6075 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6076 | if test "$cross_compiling" = yes; then | |
6077 | : | |
6078 | else | |
6079 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6080 | /* confdefs.h. */ |
6081 | _ACEOF | |
6082 | cat confdefs.h >>conftest.$ac_ext | |
6083 | cat >>conftest.$ac_ext <<_ACEOF | |
6084 | /* end confdefs.h. */ | |
c0d27fcc | 6085 | #include <ctype.h> |
d6e01aa5 | 6086 | #include <stdlib.h> |
c0d27fcc MR |
6087 | #if ((' ' & 0x0FF) == 0x020) |
6088 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6089 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6090 | #else | |
19650fd6 | 6091 | # define ISLOWER(c) \ |
edfaf76d LK |
6092 | (('a' <= (c) && (c) <= 'i') \ |
6093 | || ('j' <= (c) && (c) <= 'r') \ | |
6094 | || ('s' <= (c) && (c) <= 'z')) | |
c0d27fcc MR |
6095 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
6096 | #endif | |
6097 | ||
6098 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6099 | int | |
6100 | main () | |
6101 | { | |
6102 | int i; | |
6103 | for (i = 0; i < 256; i++) | |
6104 | if (XOR (islower (i), ISLOWER (i)) | |
edfaf76d | 6105 | || toupper (i) != TOUPPER (i)) |
d6e01aa5 KL |
6106 | return 2; |
6107 | return 0; | |
c0d27fcc MR |
6108 | } |
6109 | _ACEOF | |
6110 | rm -f conftest$ac_exeext | |
d6e01aa5 KL |
6111 | if { (ac_try="$ac_link" |
6112 | case "(($ac_try" in | |
6113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6114 | *) ac_try_echo=$ac_try;; | |
6115 | esac | |
6116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6117 | (eval "$ac_link") 2>&5 | |
c0d27fcc MR |
6118 | ac_status=$? |
6119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6120 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
d6e01aa5 KL |
6121 | { (case "(($ac_try" in |
6122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6123 | *) ac_try_echo=$ac_try;; | |
6124 | esac | |
6125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6126 | (eval "$ac_try") 2>&5 | |
c0d27fcc MR |
6127 | ac_status=$? |
6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6129 | (exit $ac_status); }; }; then | |
6130 | : | |
6131 | else | |
6132 | echo "$as_me: program exited with status $ac_status" >&5 | |
6133 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6134 | sed 's/^/| /' conftest.$ac_ext >&5 |
6135 | ||
c0d27fcc MR |
6136 | ( exit $ac_status ) |
6137 | ac_cv_header_stdc=no | |
6138 | fi | |
d6e01aa5 | 6139 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c0d27fcc | 6140 | fi |
d6e01aa5 KL |
6141 | |
6142 | ||
c0d27fcc MR |
6143 | fi |
6144 | fi | |
d6e01aa5 KL |
6145 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6146 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
c0d27fcc MR |
6147 | if test $ac_cv_header_stdc = yes; then |
6148 | ||
6149 | cat >>confdefs.h <<\_ACEOF | |
6150 | #define STDC_HEADERS 1 | |
6151 | _ACEOF | |
6152 | ||
6153 | fi | |
6154 | ||
6155 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6156 | ||
6157 | ||
6158 | ||
6159 | ||
6160 | ||
6161 | ||
6162 | ||
6163 | ||
6164 | ||
6165 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
edfaf76d | 6166 | inttypes.h stdint.h unistd.h |
98418dba CW |
6167 | do |
6168 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
6169 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6170 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6171 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 6172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 6173 | else |
925c2f3f | 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 | $ac_includes_default |
6181 | ||
6182 | #include <$ac_header> | |
6183 | _ACEOF | |
6184 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
6185 | if { (ac_try="$ac_compile" |
6186 | case "(($ac_try" in | |
6187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6188 | *) ac_try_echo=$ac_try;; | |
6189 | esac | |
6190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6191 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 6192 | ac_status=$? |
edfaf76d LK |
6193 | grep -v '^ *+' conftest.er1 >conftest.err |
6194 | rm -f conftest.er1 | |
6195 | cat conftest.err >&5 | |
c0d27fcc | 6196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
6197 | (exit $ac_status); } && { |
6198 | test -z "$ac_c_werror_flag" || | |
6199 | test ! -s conftest.err | |
6200 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
6201 | eval "$as_ac_Header=yes" |
6202 | else | |
6203 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6204 | sed 's/^/| /' conftest.$ac_ext >&5 |
6205 | ||
d6e01aa5 | 6206 | eval "$as_ac_Header=no" |
c0d27fcc | 6207 | fi |
d6e01aa5 KL |
6208 | |
6209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c0d27fcc | 6210 | fi |
d6e01aa5 KL |
6211 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6212 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6213 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
6214 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6215 | cat >>confdefs.h <<_ACEOF | |
6216 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6217 | _ACEOF | |
6218 | ||
6219 | fi | |
6220 | ||
6221 | done | |
6222 | ||
6223 | ||
6224 | ||
6225 | ||
6226 | ||
6227 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
6228 | do | |
6229 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
6230 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6231 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6232 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6233 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
6234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6235 | fi | |
d6e01aa5 KL |
6236 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6237 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6238 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
6239 | else |
6240 | # Is the header compilable? | |
d6e01aa5 KL |
6241 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6242 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 6243 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6244 | /* confdefs.h. */ |
6245 | _ACEOF | |
6246 | cat confdefs.h >>conftest.$ac_ext | |
6247 | cat >>conftest.$ac_ext <<_ACEOF | |
6248 | /* end confdefs.h. */ | |
c0d27fcc | 6249 | $ac_includes_default |
98418dba | 6250 | #include <$ac_header> |
503d2be0 | 6251 | _ACEOF |
c0d27fcc | 6252 | rm -f conftest.$ac_objext |
d6e01aa5 KL |
6253 | if { (ac_try="$ac_compile" |
6254 | case "(($ac_try" in | |
6255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6256 | *) ac_try_echo=$ac_try;; | |
6257 | esac | |
6258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6259 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 6260 | ac_status=$? |
edfaf76d LK |
6261 | grep -v '^ *+' conftest.er1 >conftest.err |
6262 | rm -f conftest.er1 | |
6263 | cat conftest.err >&5 | |
c0d27fcc | 6264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
6265 | (exit $ac_status); } && { |
6266 | test -z "$ac_c_werror_flag" || | |
6267 | test ! -s conftest.err | |
6268 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
6269 | ac_header_compiler=yes |
6270 | else | |
6271 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6272 | sed 's/^/| /' conftest.$ac_ext >&5 |
6273 | ||
d6e01aa5 | 6274 | ac_header_compiler=no |
c0d27fcc | 6275 | fi |
d6e01aa5 KL |
6276 | |
6277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6278 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6279 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
6280 | |
6281 | # Is the header present? | |
d6e01aa5 KL |
6282 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6283 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 6284 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6285 | /* confdefs.h. */ |
6286 | _ACEOF | |
6287 | cat confdefs.h >>conftest.$ac_ext | |
6288 | cat >>conftest.$ac_ext <<_ACEOF | |
6289 | /* end confdefs.h. */ | |
c0d27fcc MR |
6290 | #include <$ac_header> |
6291 | _ACEOF | |
d6e01aa5 KL |
6292 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6293 | case "(($ac_try" in | |
6294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6295 | *) ac_try_echo=$ac_try;; | |
6296 | esac | |
6297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6298 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 6299 | ac_status=$? |
6bae0ccf | 6300 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
6301 | rm -f conftest.er1 |
6302 | cat conftest.err >&5 | |
c0d27fcc | 6303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
6304 | (exit $ac_status); } >/dev/null && { |
6305 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6306 | test ! -s conftest.err | |
6307 | }; then | |
c0d27fcc | 6308 | ac_header_preproc=yes |
f4988be7 | 6309 | else |
503d2be0 | 6310 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6311 | sed 's/^/| /' conftest.$ac_ext >&5 |
6312 | ||
c0d27fcc | 6313 | ac_header_preproc=no |
f4988be7 | 6314 | fi |
d6e01aa5 | 6315 | |
98418dba | 6316 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
6317 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6318 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
6319 | |
6320 | # So? What about this header? | |
edfaf76d LK |
6321 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6322 | yes:no: ) | |
c0d27fcc MR |
6323 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6324 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
6325 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6326 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6327 | ac_header_preproc=yes | |
19650fd6 | 6328 | ;; |
edfaf76d | 6329 | no:yes:* ) |
c0d27fcc MR |
6330 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6331 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
6332 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6333 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6334 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6335 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6336 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6337 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 6338 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 6339 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
6340 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6341 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 6342 | |
19650fd6 | 6343 | ;; |
c0d27fcc | 6344 | esac |
d6e01aa5 KL |
6345 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6346 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6347 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
6348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6349 | else | |
edfaf76d | 6350 | eval "$as_ac_Header=\$ac_header_preproc" |
f4988be7 | 6351 | fi |
d6e01aa5 KL |
6352 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6353 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6354 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
6355 | |
6356 | fi | |
98418dba | 6357 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 6358 | cat >>confdefs.h <<_ACEOF |
98418dba | 6359 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 6360 | _ACEOF |
f4988be7 GM |
6361 | |
6362 | fi | |
c0d27fcc | 6363 | |
98418dba CW |
6364 | done |
6365 | ||
6366 | # Emulation library used on NetBSD. | |
d6e01aa5 KL |
6367 | { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
6368 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; } | |
98418dba | 6369 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
503d2be0 | 6370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 6371 | else |
98418dba CW |
6372 | ac_check_lib_save_LIBS=$LIBS |
6373 | LIBS="-lossaudio $LIBS" | |
6374 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6375 | /* confdefs.h. */ |
6376 | _ACEOF | |
6377 | cat confdefs.h >>conftest.$ac_ext | |
6378 | cat >>conftest.$ac_ext <<_ACEOF | |
6379 | /* end confdefs.h. */ | |
98418dba | 6380 | |
d6e01aa5 KL |
6381 | /* Override any GCC internal prototype to avoid an error. |
6382 | Use char because int might match the return type of a GCC | |
6383 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
6384 | #ifdef __cplusplus |
6385 | extern "C" | |
f4988be7 | 6386 | #endif |
98418dba | 6387 | char _oss_ioctl (); |
503d2be0 AS |
6388 | int |
6389 | main () | |
6390 | { | |
d6e01aa5 | 6391 | return _oss_ioctl (); |
503d2be0 AS |
6392 | ; |
6393 | return 0; | |
6394 | } | |
6395 | _ACEOF | |
98418dba | 6396 | rm -f conftest.$ac_objext conftest$ac_exeext |
d6e01aa5 KL |
6397 | if { (ac_try="$ac_link" |
6398 | case "(($ac_try" in | |
6399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6400 | *) ac_try_echo=$ac_try;; | |
6401 | esac | |
6402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6403 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 6404 | ac_status=$? |
edfaf76d LK |
6405 | grep -v '^ *+' conftest.er1 >conftest.err |
6406 | rm -f conftest.er1 | |
6407 | cat conftest.err >&5 | |
c0d27fcc | 6408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
6409 | (exit $ac_status); } && { |
6410 | test -z "$ac_c_werror_flag" || | |
6411 | test ! -s conftest.err | |
6412 | } && test -s conftest$ac_exeext && | |
6413 | $as_test_x conftest$ac_exeext; then | |
98418dba | 6414 | ac_cv_lib_ossaudio__oss_ioctl=yes |
f4988be7 | 6415 | else |
503d2be0 | 6416 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6417 | sed 's/^/| /' conftest.$ac_ext >&5 |
6418 | ||
d6e01aa5 | 6419 | ac_cv_lib_ossaudio__oss_ioctl=no |
f4988be7 | 6420 | fi |
d6e01aa5 KL |
6421 | |
6422 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 6423 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 6424 | LIBS=$ac_check_lib_save_LIBS |
f4988be7 | 6425 | fi |
d6e01aa5 KL |
6426 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
6427 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; } | |
98418dba CW |
6428 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
6429 | LIBSOUND=-lossaudio | |
6430 | else | |
6431 | LIBSOUND= | |
6432 | fi | |
6433 | ||
c0d27fcc | 6434 | |
439f58ee JD |
6435 | |
6436 | ALSA_REQUIRED=1.0.0 | |
6437 | ALSA_MODULES="alsa >= $ALSA_REQUIRED" | |
6438 | if test "X${with_pkg_config_prog}" != X; then | |
6439 | PKG_CONFIG="${with_pkg_config_prog}" | |
6440 | fi | |
6441 | ||
6442 | succeeded=no | |
6443 | ||
6444 | if test -z "$PKG_CONFIG"; then | |
6445 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
6446 | set dummy pkg-config; ac_word=$2 | |
d6e01aa5 KL |
6447 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6448 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
439f58ee JD |
6449 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
6450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6451 | else | |
6452 | case $PKG_CONFIG in | |
6453 | [\\/]* | ?:[\\/]*) | |
6454 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
6455 | ;; | |
6456 | *) | |
6457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6458 | for as_dir in $PATH | |
6459 | do | |
6460 | IFS=$as_save_IFS | |
6461 | test -z "$as_dir" && as_dir=. | |
6462 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6e01aa5 | 6463 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
439f58ee JD |
6464 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
6465 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6466 | break 2 | |
6467 | fi | |
6468 | done | |
6469 | done | |
d6e01aa5 | 6470 | IFS=$as_save_IFS |
439f58ee JD |
6471 | |
6472 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
6473 | ;; | |
6474 | esac | |
6475 | fi | |
6476 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
439f58ee | 6477 | if test -n "$PKG_CONFIG"; then |
d6e01aa5 KL |
6478 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
6479 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
439f58ee | 6480 | else |
d6e01aa5 KL |
6481 | { echo "$as_me:$LINENO: result: no" >&5 |
6482 | echo "${ECHO_T}no" >&6; } | |
439f58ee JD |
6483 | fi |
6484 | ||
d6e01aa5 | 6485 | |
439f58ee JD |
6486 | fi |
6487 | ||
6488 | if test "$PKG_CONFIG" = "no" ; then | |
6489 | HAVE_ALSA=no | |
6490 | else | |
6491 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
6492 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
d6e01aa5 KL |
6493 | { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5 |
6494 | echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; } | |
439f58ee | 6495 | |
67db6aa2 | 6496 | if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then |
d6e01aa5 KL |
6497 | { echo "$as_me:$LINENO: result: yes" >&5 |
6498 | echo "${ECHO_T}yes" >&6; } | |
439f58ee JD |
6499 | succeeded=yes |
6500 | ||
d6e01aa5 KL |
6501 | { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5 |
6502 | echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; } | |
94315858 | 6503 | ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` |
d6e01aa5 KL |
6504 | { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5 |
6505 | echo "${ECHO_T}$ALSA_CFLAGS" >&6; } | |
439f58ee | 6506 | |
d6e01aa5 KL |
6507 | { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5 |
6508 | echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; } | |
94315858 | 6509 | ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` |
d6e01aa5 KL |
6510 | { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5 |
6511 | echo "${ECHO_T}$ALSA_LIBS" >&6; } | |
439f58ee | 6512 | else |
d6e01aa5 KL |
6513 | { echo "$as_me:$LINENO: result: no" >&5 |
6514 | echo "${ECHO_T}no" >&6; } | |
439f58ee JD |
6515 | ALSA_CFLAGS="" |
6516 | ALSA_LIBS="" | |
6517 | ## If we have a custom action on failure, don't print errors, but | |
6518 | ## do set a variable so people can do so. | |
6519 | ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"` | |
6520 | ||
6521 | fi | |
6522 | ||
6523 | ||
6524 | ||
6525 | else | |
6526 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
6527 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
6528 | fi | |
6529 | fi | |
6530 | ||
6531 | if test $succeeded = yes; then | |
6532 | HAVE_ALSA=yes | |
6533 | else | |
6534 | HAVE_ALSA=no | |
6535 | fi | |
6536 | ||
6537 | if test $HAVE_ALSA = yes; then | |
ca81d7a0 JD |
6538 | SAVE_CFLAGS="$CFLAGS" |
6539 | SAVE_LDFLAGS="$LDFLAGS" | |
6540 | CFLAGS="$ALSA_CFLAGS $CFLAGS" | |
6541 | LDFLAGS="$ALSA_LIBS $LDFLAGS" | |
6542 | cat >conftest.$ac_ext <<_ACEOF | |
6543 | /* confdefs.h. */ | |
6544 | _ACEOF | |
6545 | cat confdefs.h >>conftest.$ac_ext | |
6546 | cat >>conftest.$ac_ext <<_ACEOF | |
6547 | /* end confdefs.h. */ | |
6548 | #include <asoundlib.h> | |
6549 | int | |
6550 | main () | |
6551 | { | |
6552 | snd_lib_error_set_handler (0); | |
6553 | ; | |
6554 | return 0; | |
6555 | } | |
6556 | _ACEOF | |
6557 | rm -f conftest.$ac_objext | |
6558 | if { (ac_try="$ac_compile" | |
6559 | case "(($ac_try" in | |
6560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6561 | *) ac_try_echo=$ac_try;; | |
6562 | esac | |
6563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6564 | (eval "$ac_compile") 2>conftest.er1 | |
6565 | ac_status=$? | |
6566 | grep -v '^ *+' conftest.er1 >conftest.err | |
6567 | rm -f conftest.er1 | |
6568 | cat conftest.err >&5 | |
6569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
6570 | (exit $ac_status); } && { |
6571 | test -z "$ac_c_werror_flag" || | |
6572 | test ! -s conftest.err | |
6573 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 JD |
6574 | emacs_alsa_normal=yes |
6575 | else | |
6576 | echo "$as_me: failed program was:" >&5 | |
6577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6578 | ||
6579 | emacs_alsa_normal=no | |
6580 | fi | |
6581 | ||
6582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6583 | if test "$emacs_alsa_normal" != yes; then | |
6584 | cat >conftest.$ac_ext <<_ACEOF | |
6585 | /* confdefs.h. */ | |
6586 | _ACEOF | |
6587 | cat confdefs.h >>conftest.$ac_ext | |
6588 | cat >>conftest.$ac_ext <<_ACEOF | |
6589 | /* end confdefs.h. */ | |
6590 | #include <alsa/asoundlib.h> | |
6591 | int | |
6592 | main () | |
6593 | { | |
6594 | snd_lib_error_set_handler (0); | |
6595 | ; | |
6596 | return 0; | |
6597 | } | |
6598 | _ACEOF | |
6599 | rm -f conftest.$ac_objext | |
6600 | if { (ac_try="$ac_compile" | |
6601 | case "(($ac_try" in | |
6602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6603 | *) ac_try_echo=$ac_try;; | |
6604 | esac | |
6605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6606 | (eval "$ac_compile") 2>conftest.er1 | |
6607 | ac_status=$? | |
6608 | grep -v '^ *+' conftest.er1 >conftest.err | |
6609 | rm -f conftest.er1 | |
6610 | cat conftest.err >&5 | |
6611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
6612 | (exit $ac_status); } && { |
6613 | test -z "$ac_c_werror_flag" || | |
6614 | test ! -s conftest.err | |
6615 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 JD |
6616 | emacs_alsa_subdir=yes |
6617 | else | |
6618 | echo "$as_me: failed program was:" >&5 | |
6619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6620 | ||
6621 | emacs_alsa_subdir=no | |
6622 | fi | |
6623 | ||
6624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6625 | if test "$emacs_alsa_subdir" != yes; then | |
6626 | { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5 | |
6627 | echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;} | |
6628 | { (exit 1); exit 1; }; } | |
6629 | fi | |
6630 | ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" | |
6631 | fi | |
6632 | ||
6633 | CFLAGS="$SAVE_CFLAGS" | |
6634 | LDFLAGS="$SAVE_LDFLAGS" | |
439f58ee JD |
6635 | LIBSOUND="$LIBSOUND $ALSA_LIBS" |
6636 | CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" | |
6637 | ||
6638 | cat >>confdefs.h <<\_ACEOF | |
6639 | #define HAVE_ALSA 1 | |
6640 | _ACEOF | |
6641 | ||
6642 | fi | |
6643 | ||
f4988be7 | 6644 | fi |
c0d27fcc MR |
6645 | |
6646 | ||
6647 | ||
6648 | ||
6649 | ||
6650 | ||
6651 | ||
6652 | ||
6653 | ||
6654 | ||
6655 | ||
6656 | ||
6657 | ||
6658 | ||
6659 | ||
6660 | ||
6661 | ||
6662 | ||
22044edf DL |
6663 | |
6664 | ||
973a76b1 | 6665 | |
cffcede7 | 6666 | |
551ffc27 | 6667 | |
226e2359 | 6668 | |
c0d27fcc | 6669 | |
f4988be7 | 6670 | |
98418dba CW |
6671 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
6672 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | |
25ca0bca | 6673 | termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
551ffc27 | 6674 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ |
226e2359 | 6675 | sys/utsname.h pwd.h |
98418dba CW |
6676 | do |
6677 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
6678 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6679 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6680 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6681 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 6682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 6683 | fi |
d6e01aa5 KL |
6684 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6685 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6686 | echo "${ECHO_T}$ac_res" >&6; } | |
f4988be7 | 6687 | else |
c0d27fcc | 6688 | # Is the header compilable? |
d6e01aa5 KL |
6689 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6690 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 6691 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6692 | /* confdefs.h. */ |
6693 | _ACEOF | |
6694 | cat confdefs.h >>conftest.$ac_ext | |
6695 | cat >>conftest.$ac_ext <<_ACEOF | |
6696 | /* end confdefs.h. */ | |
c0d27fcc MR |
6697 | $ac_includes_default |
6698 | #include <$ac_header> | |
6699 | _ACEOF | |
6700 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
6701 | if { (ac_try="$ac_compile" |
6702 | case "(($ac_try" in | |
6703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6704 | *) ac_try_echo=$ac_try;; | |
6705 | esac | |
6706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6707 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 6708 | ac_status=$? |
edfaf76d LK |
6709 | grep -v '^ *+' conftest.er1 >conftest.err |
6710 | rm -f conftest.er1 | |
6711 | cat conftest.err >&5 | |
c0d27fcc | 6712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
6713 | (exit $ac_status); } && { |
6714 | test -z "$ac_c_werror_flag" || | |
6715 | test ! -s conftest.err | |
6716 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
6717 | ac_header_compiler=yes |
6718 | else | |
6719 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6720 | sed 's/^/| /' conftest.$ac_ext >&5 |
6721 | ||
d6e01aa5 | 6722 | ac_header_compiler=no |
c0d27fcc | 6723 | fi |
d6e01aa5 KL |
6724 | |
6725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6726 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6727 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
6728 | |
6729 | # Is the header present? | |
d6e01aa5 KL |
6730 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6731 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 6732 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6733 | /* confdefs.h. */ |
6734 | _ACEOF | |
6735 | cat confdefs.h >>conftest.$ac_ext | |
6736 | cat >>conftest.$ac_ext <<_ACEOF | |
6737 | /* end confdefs.h. */ | |
98418dba | 6738 | #include <$ac_header> |
503d2be0 | 6739 | _ACEOF |
d6e01aa5 KL |
6740 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6741 | case "(($ac_try" in | |
6742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6743 | *) ac_try_echo=$ac_try;; | |
6744 | esac | |
6745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6746 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 6747 | ac_status=$? |
6bae0ccf | 6748 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
6749 | rm -f conftest.er1 |
6750 | cat conftest.err >&5 | |
c0d27fcc | 6751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
6752 | (exit $ac_status); } >/dev/null && { |
6753 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6754 | test ! -s conftest.err | |
6755 | }; then | |
c0d27fcc | 6756 | ac_header_preproc=yes |
34ec9ebe | 6757 | else |
503d2be0 | 6758 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6759 | sed 's/^/| /' conftest.$ac_ext >&5 |
6760 | ||
c0d27fcc | 6761 | ac_header_preproc=no |
34ec9ebe | 6762 | fi |
d6e01aa5 | 6763 | |
98418dba | 6764 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
6765 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6766 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
6767 | |
6768 | # So? What about this header? | |
edfaf76d LK |
6769 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6770 | yes:no: ) | |
c0d27fcc MR |
6771 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6772 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
6773 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6774 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6775 | ac_header_preproc=yes | |
19650fd6 | 6776 | ;; |
edfaf76d | 6777 | no:yes:* ) |
c0d27fcc MR |
6778 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6779 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
6780 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6781 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6782 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6783 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6784 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6785 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 6786 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 6787 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
6788 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6789 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 6790 | |
19650fd6 | 6791 | ;; |
c0d27fcc | 6792 | esac |
d6e01aa5 KL |
6793 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6794 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6795 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
6796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6797 | else | |
edfaf76d | 6798 | eval "$as_ac_Header=\$ac_header_preproc" |
34ec9ebe | 6799 | fi |
d6e01aa5 KL |
6800 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6801 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6802 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
6803 | |
6804 | fi | |
98418dba | 6805 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 6806 | cat >>confdefs.h <<_ACEOF |
98418dba | 6807 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 6808 | _ACEOF |
34ec9ebe | 6809 | |
98418dba | 6810 | fi |
c0d27fcc | 6811 | |
98418dba CW |
6812 | done |
6813 | ||
22044edf | 6814 | |
d6e01aa5 KL |
6815 | { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5 |
6816 | echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; } | |
f17e308a JD |
6817 | cat >conftest.$ac_ext <<_ACEOF |
6818 | /* confdefs.h. */ | |
6819 | _ACEOF | |
6820 | cat confdefs.h >>conftest.$ac_ext | |
6821 | cat >>conftest.$ac_ext <<_ACEOF | |
6822 | /* end confdefs.h. */ | |
6823 | #include <sys/personality.h> | |
6824 | int | |
6825 | main () | |
6826 | { | |
6827 | personality (PER_LINUX32) | |
6828 | ; | |
6829 | return 0; | |
6830 | } | |
6831 | _ACEOF | |
6832 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
6833 | if { (ac_try="$ac_compile" |
6834 | case "(($ac_try" in | |
6835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6836 | *) ac_try_echo=$ac_try;; | |
6837 | esac | |
6838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6839 | (eval "$ac_compile") 2>conftest.er1 | |
f17e308a | 6840 | ac_status=$? |
edfaf76d LK |
6841 | grep -v '^ *+' conftest.er1 >conftest.err |
6842 | rm -f conftest.er1 | |
6843 | cat conftest.err >&5 | |
f17e308a | 6844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
6845 | (exit $ac_status); } && { |
6846 | test -z "$ac_c_werror_flag" || | |
6847 | test ! -s conftest.err | |
6848 | } && test -s conftest.$ac_objext; then | |
f17e308a JD |
6849 | emacs_cv_personality_linux32=yes |
6850 | else | |
6851 | echo "$as_me: failed program was:" >&5 | |
6852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6853 | ||
d6e01aa5 | 6854 | emacs_cv_personality_linux32=no |
f17e308a | 6855 | fi |
d6e01aa5 KL |
6856 | |
6857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6858 | { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5 | |
6859 | echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; } | |
f17e308a JD |
6860 | |
6861 | if test $emacs_cv_personality_linux32 = yes; then | |
6862 | ||
6863 | cat >>confdefs.h <<\_ACEOF | |
6864 | #define HAVE_PERSONALITY_LINUX32 1 | |
6865 | _ACEOF | |
6866 | ||
6867 | fi | |
6868 | ||
6869 | ||
22044edf DL |
6870 | for ac_header in term.h |
6871 | do | |
6872 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
6873 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6874 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6875 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
22044edf DL |
6876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6877 | else | |
6878 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6879 | /* confdefs.h. */ |
6880 | _ACEOF | |
6881 | cat confdefs.h >>conftest.$ac_ext | |
6882 | cat >>conftest.$ac_ext <<_ACEOF | |
6883 | /* end confdefs.h. */ | |
22044edf DL |
6884 | #include <$ac_header> |
6885 | _ACEOF | |
d6e01aa5 KL |
6886 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6887 | case "(($ac_try" in | |
6888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6889 | *) ac_try_echo=$ac_try;; | |
6890 | esac | |
6891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6892 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
22044edf DL |
6893 | ac_status=$? |
6894 | grep -v '^ *+' conftest.er1 >conftest.err | |
6895 | rm -f conftest.er1 | |
6896 | cat conftest.err >&5 | |
6897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
6898 | (exit $ac_status); } >/dev/null && { |
6899 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6900 | test ! -s conftest.err | |
6901 | }; then | |
22044edf DL |
6902 | eval "$as_ac_Header=yes" |
6903 | else | |
6904 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6905 | sed 's/^/| /' conftest.$ac_ext >&5 |
6906 | ||
22044edf DL |
6907 | eval "$as_ac_Header=no" |
6908 | fi | |
d6e01aa5 | 6909 | |
22044edf DL |
6910 | rm -f conftest.err conftest.$ac_ext |
6911 | fi | |
d6e01aa5 KL |
6912 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6913 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6914 | echo "${ECHO_T}$ac_res" >&6; } | |
22044edf DL |
6915 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6916 | cat >>confdefs.h <<_ACEOF | |
6917 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6918 | _ACEOF | |
6919 | ||
6920 | fi | |
6921 | ||
6922 | done | |
6923 | ||
d6e01aa5 KL |
6924 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6925 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
98418dba | 6926 | if test "${ac_cv_header_stdc+set}" = set; then |
503d2be0 | 6927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6928 | else |
503d2be0 | 6929 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6930 | /* confdefs.h. */ |
6931 | _ACEOF | |
6932 | cat confdefs.h >>conftest.$ac_ext | |
6933 | cat >>conftest.$ac_ext <<_ACEOF | |
6934 | /* end confdefs.h. */ | |
98418dba CW |
6935 | #include <stdlib.h> |
6936 | #include <stdarg.h> | |
6937 | #include <string.h> | |
6938 | #include <float.h> | |
6939 | ||
19650fd6 AS |
6940 | int |
6941 | main () | |
6942 | { | |
6943 | ||
6944 | ; | |
6945 | return 0; | |
6946 | } | |
98418dba | 6947 | _ACEOF |
19650fd6 | 6948 | rm -f conftest.$ac_objext |
d6e01aa5 KL |
6949 | if { (ac_try="$ac_compile" |
6950 | case "(($ac_try" in | |
6951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6952 | *) ac_try_echo=$ac_try;; | |
6953 | esac | |
6954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6955 | (eval "$ac_compile") 2>conftest.er1 | |
cd958eb3 | 6956 | ac_status=$? |
edfaf76d LK |
6957 | grep -v '^ *+' conftest.er1 >conftest.err |
6958 | rm -f conftest.er1 | |
6959 | cat conftest.err >&5 | |
cd958eb3 | 6960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
6961 | (exit $ac_status); } && { |
6962 | test -z "$ac_c_werror_flag" || | |
6963 | test ! -s conftest.err | |
6964 | } && test -s conftest.$ac_objext; then | |
98418dba | 6965 | ac_cv_header_stdc=yes |
ba4481b5 | 6966 | else |
503d2be0 | 6967 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6968 | sed 's/^/| /' conftest.$ac_ext >&5 |
6969 | ||
d6e01aa5 | 6970 | ac_cv_header_stdc=no |
ba4481b5 | 6971 | fi |
d6e01aa5 KL |
6972 | |
6973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba CW |
6974 | |
6975 | if test $ac_cv_header_stdc = yes; then | |
6976 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6977 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6978 | /* confdefs.h. */ |
6979 | _ACEOF | |
6980 | cat confdefs.h >>conftest.$ac_ext | |
6981 | cat >>conftest.$ac_ext <<_ACEOF | |
6982 | /* end confdefs.h. */ | |
98418dba CW |
6983 | #include <string.h> |
6984 | ||
6985 | _ACEOF | |
6986 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 6987 | $EGREP "memchr" >/dev/null 2>&1; then |
98418dba CW |
6988 | : |
6989 | else | |
6990 | ac_cv_header_stdc=no | |
ba4481b5 | 6991 | fi |
98418dba | 6992 | rm -f conftest* |
ba4481b5 DL |
6993 | |
6994 | fi | |
6995 | ||
98418dba CW |
6996 | if test $ac_cv_header_stdc = yes; then |
6997 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6998 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6999 | /* confdefs.h. */ |
7000 | _ACEOF | |
7001 | cat confdefs.h >>conftest.$ac_ext | |
7002 | cat >>conftest.$ac_ext <<_ACEOF | |
7003 | /* end confdefs.h. */ | |
98418dba CW |
7004 | #include <stdlib.h> |
7005 | ||
7006 | _ACEOF | |
7007 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 7008 | $EGREP "free" >/dev/null 2>&1; then |
98418dba CW |
7009 | : |
7010 | else | |
7011 | ac_cv_header_stdc=no | |
7012 | fi | |
7013 | rm -f conftest* | |
7014 | ||
7015 | fi | |
7016 | ||
7017 | if test $ac_cv_header_stdc = yes; then | |
7018 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7019 | if test "$cross_compiling" = yes; then | |
7020 | : | |
d42122a3 | 7021 | else |
503d2be0 | 7022 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7023 | /* confdefs.h. */ |
7024 | _ACEOF | |
7025 | cat confdefs.h >>conftest.$ac_ext | |
7026 | cat >>conftest.$ac_ext <<_ACEOF | |
7027 | /* end confdefs.h. */ | |
98418dba | 7028 | #include <ctype.h> |
d6e01aa5 | 7029 | #include <stdlib.h> |
98418dba CW |
7030 | #if ((' ' & 0x0FF) == 0x020) |
7031 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7032 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7033 | #else | |
19650fd6 | 7034 | # define ISLOWER(c) \ |
edfaf76d LK |
7035 | (('a' <= (c) && (c) <= 'i') \ |
7036 | || ('j' <= (c) && (c) <= 'r') \ | |
7037 | || ('s' <= (c) && (c) <= 'z')) | |
98418dba CW |
7038 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
7039 | #endif | |
7040 | ||
7041 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
503d2be0 AS |
7042 | int |
7043 | main () | |
7044 | { | |
98418dba CW |
7045 | int i; |
7046 | for (i = 0; i < 256; i++) | |
7047 | if (XOR (islower (i), ISLOWER (i)) | |
edfaf76d | 7048 | || toupper (i) != TOUPPER (i)) |
d6e01aa5 KL |
7049 | return 2; |
7050 | return 0; | |
503d2be0 AS |
7051 | } |
7052 | _ACEOF | |
98418dba | 7053 | rm -f conftest$ac_exeext |
d6e01aa5 KL |
7054 | if { (ac_try="$ac_link" |
7055 | case "(($ac_try" in | |
7056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7057 | *) ac_try_echo=$ac_try;; | |
7058 | esac | |
7059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7060 | (eval "$ac_link") 2>&5 | |
503d2be0 | 7061 | ac_status=$? |
c0d27fcc | 7062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 7063 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d6e01aa5 KL |
7064 | { (case "(($ac_try" in |
7065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7066 | *) ac_try_echo=$ac_try;; | |
7067 | esac | |
7068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7069 | (eval "$ac_try") 2>&5 | |
503d2be0 | 7070 | ac_status=$? |
c0d27fcc | 7071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 7072 | (exit $ac_status); }; }; then |
98418dba | 7073 | : |
d42122a3 | 7074 | else |
98418dba CW |
7075 | echo "$as_me: program exited with status $ac_status" >&5 |
7076 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7077 | sed 's/^/| /' conftest.$ac_ext >&5 |
7078 | ||
c0d27fcc | 7079 | ( exit $ac_status ) |
98418dba | 7080 | ac_cv_header_stdc=no |
d42122a3 | 7081 | fi |
d6e01aa5 | 7082 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d42122a3 | 7083 | fi |
d6e01aa5 KL |
7084 | |
7085 | ||
98418dba CW |
7086 | fi |
7087 | fi | |
d6e01aa5 KL |
7088 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
7089 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
98418dba CW |
7090 | if test $ac_cv_header_stdc = yes; then |
7091 | ||
c0d27fcc | 7092 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7093 | #define STDC_HEADERS 1 |
c0d27fcc | 7094 | _ACEOF |
d42122a3 DL |
7095 | |
7096 | fi | |
7097 | ||
d6e01aa5 KL |
7098 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
7099 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
98418dba | 7100 | if test "${ac_cv_header_time+set}" = set; then |
503d2be0 | 7101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7102 | else |
503d2be0 | 7103 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7104 | /* confdefs.h. */ |
7105 | _ACEOF | |
7106 | cat confdefs.h >>conftest.$ac_ext | |
7107 | cat >>conftest.$ac_ext <<_ACEOF | |
7108 | /* end confdefs.h. */ | |
ba4481b5 | 7109 | #include <sys/types.h> |
98418dba | 7110 | #include <sys/time.h> |
ba4481b5 | 7111 | #include <time.h> |
503d2be0 AS |
7112 | |
7113 | int | |
7114 | main () | |
7115 | { | |
98418dba CW |
7116 | if ((struct tm *) 0) |
7117 | return 0; | |
503d2be0 AS |
7118 | ; |
7119 | return 0; | |
7120 | } | |
7121 | _ACEOF | |
7122 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
7123 | if { (ac_try="$ac_compile" |
7124 | case "(($ac_try" in | |
7125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7126 | *) ac_try_echo=$ac_try;; | |
7127 | esac | |
7128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7129 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7130 | ac_status=$? |
edfaf76d LK |
7131 | grep -v '^ *+' conftest.er1 >conftest.err |
7132 | rm -f conftest.er1 | |
7133 | cat conftest.err >&5 | |
c0d27fcc | 7134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
7135 | (exit $ac_status); } && { |
7136 | test -z "$ac_c_werror_flag" || | |
7137 | test ! -s conftest.err | |
7138 | } && test -s conftest.$ac_objext; then | |
98418dba | 7139 | ac_cv_header_time=yes |
ba4481b5 | 7140 | else |
503d2be0 | 7141 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7142 | sed 's/^/| /' conftest.$ac_ext >&5 |
7143 | ||
d6e01aa5 | 7144 | ac_cv_header_time=no |
ba4481b5 | 7145 | fi |
d6e01aa5 KL |
7146 | |
7147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 7148 | fi |
d6e01aa5 KL |
7149 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
7150 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
98418dba | 7151 | if test $ac_cv_header_time = yes; then |
503d2be0 | 7152 | |
c0d27fcc | 7153 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7154 | #define TIME_WITH_SYS_TIME 1 |
c0d27fcc | 7155 | _ACEOF |
ba4481b5 DL |
7156 | |
7157 | fi | |
7158 | ||
d6e01aa5 KL |
7159 | { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 |
7160 | echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; } | |
cd958eb3 | 7161 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then |
503d2be0 | 7162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7163 | else |
503d2be0 | 7164 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7165 | /* confdefs.h. */ |
7166 | _ACEOF | |
7167 | cat confdefs.h >>conftest.$ac_ext | |
7168 | cat >>conftest.$ac_ext <<_ACEOF | |
7169 | /* end confdefs.h. */ | |
cd958eb3 MB |
7170 | $ac_includes_default |
7171 | int | |
7172 | main () | |
7173 | { | |
7174 | #ifndef sys_siglist | |
d6e01aa5 | 7175 | (void) sys_siglist; |
98418dba | 7176 | #endif |
503d2be0 | 7177 | |
cd958eb3 MB |
7178 | ; |
7179 | return 0; | |
7180 | } | |
7181 | _ACEOF | |
7182 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
7183 | if { (ac_try="$ac_compile" |
7184 | case "(($ac_try" in | |
7185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7186 | *) ac_try_echo=$ac_try;; | |
7187 | esac | |
7188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7189 | (eval "$ac_compile") 2>conftest.er1 | |
cd958eb3 | 7190 | ac_status=$? |
edfaf76d LK |
7191 | grep -v '^ *+' conftest.er1 >conftest.err |
7192 | rm -f conftest.er1 | |
7193 | cat conftest.err >&5 | |
cd958eb3 | 7194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
7195 | (exit $ac_status); } && { |
7196 | test -z "$ac_c_werror_flag" || | |
7197 | test ! -s conftest.err | |
7198 | } && test -s conftest.$ac_objext; then | |
cd958eb3 MB |
7199 | ac_cv_have_decl_sys_siglist=yes |
7200 | else | |
7201 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7202 | sed 's/^/| /' conftest.$ac_ext >&5 |
7203 | ||
d6e01aa5 | 7204 | ac_cv_have_decl_sys_siglist=no |
cd958eb3 | 7205 | fi |
d6e01aa5 KL |
7206 | |
7207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cd958eb3 | 7208 | fi |
d6e01aa5 KL |
7209 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 |
7210 | echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; } | |
cd958eb3 MB |
7211 | if test $ac_cv_have_decl_sys_siglist = yes; then |
7212 | ||
7213 | cat >>confdefs.h <<_ACEOF | |
7214 | #define HAVE_DECL_SYS_SIGLIST 1 | |
7215 | _ACEOF | |
7216 | ||
7217 | ||
7218 | else | |
7219 | cat >>confdefs.h <<_ACEOF | |
7220 | #define HAVE_DECL_SYS_SIGLIST 0 | |
7221 | _ACEOF | |
7222 | ||
7223 | ||
7224 | fi | |
7225 | ||
7226 | ||
7227 | if test $ac_cv_have_decl_sys_siglist != yes; then | |
7228 | # For Tru64, at least: | |
d6e01aa5 KL |
7229 | { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 |
7230 | echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; } | |
cd958eb3 MB |
7231 | if test "${ac_cv_have_decl___sys_siglist+set}" = set; then |
7232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7233 | else | |
7234 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7235 | /* confdefs.h. */ |
7236 | _ACEOF | |
7237 | cat confdefs.h >>conftest.$ac_ext | |
7238 | cat >>conftest.$ac_ext <<_ACEOF | |
7239 | /* end confdefs.h. */ | |
cd958eb3 | 7240 | $ac_includes_default |
503d2be0 AS |
7241 | int |
7242 | main () | |
7243 | { | |
cd958eb3 | 7244 | #ifndef __sys_siglist |
d6e01aa5 | 7245 | (void) __sys_siglist; |
cd958eb3 MB |
7246 | #endif |
7247 | ||
503d2be0 AS |
7248 | ; |
7249 | return 0; | |
7250 | } | |
7251 | _ACEOF | |
7252 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
7253 | if { (ac_try="$ac_compile" |
7254 | case "(($ac_try" in | |
7255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7256 | *) ac_try_echo=$ac_try;; | |
7257 | esac | |
7258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7259 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7260 | ac_status=$? |
edfaf76d LK |
7261 | grep -v '^ *+' conftest.er1 >conftest.err |
7262 | rm -f conftest.er1 | |
7263 | cat conftest.err >&5 | |
c0d27fcc | 7264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
7265 | (exit $ac_status); } && { |
7266 | test -z "$ac_c_werror_flag" || | |
7267 | test ! -s conftest.err | |
7268 | } && test -s conftest.$ac_objext; then | |
cd958eb3 | 7269 | ac_cv_have_decl___sys_siglist=yes |
ba4481b5 | 7270 | else |
503d2be0 | 7271 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7272 | sed 's/^/| /' conftest.$ac_ext >&5 |
7273 | ||
d6e01aa5 | 7274 | ac_cv_have_decl___sys_siglist=no |
ba4481b5 | 7275 | fi |
d6e01aa5 KL |
7276 | |
7277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 | 7278 | fi |
d6e01aa5 KL |
7279 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 |
7280 | echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; } | |
cd958eb3 | 7281 | if test $ac_cv_have_decl___sys_siglist = yes; then |
503d2be0 | 7282 | |
cd958eb3 MB |
7283 | cat >>confdefs.h <<_ACEOF |
7284 | #define HAVE_DECL___SYS_SIGLIST 1 | |
7285 | _ACEOF | |
7286 | ||
7287 | ||
7288 | else | |
7289 | cat >>confdefs.h <<_ACEOF | |
7290 | #define HAVE_DECL___SYS_SIGLIST 0 | |
c0d27fcc | 7291 | _ACEOF |
503d2be0 | 7292 | |
cd958eb3 | 7293 | |
ba4481b5 DL |
7294 | fi |
7295 | ||
cd958eb3 MB |
7296 | |
7297 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
7298 | ||
7299 | cat >>confdefs.h <<\_ACEOF | |
7300 | #define sys_siglist __sys_siglist | |
7301 | _ACEOF | |
7302 | ||
7303 | fi | |
7304 | fi | |
d6e01aa5 KL |
7305 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
7306 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | |
98418dba | 7307 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
503d2be0 | 7308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7309 | else |
503d2be0 | 7310 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7311 | /* confdefs.h. */ |
7312 | _ACEOF | |
7313 | cat confdefs.h >>conftest.$ac_ext | |
7314 | cat >>conftest.$ac_ext <<_ACEOF | |
7315 | /* end confdefs.h. */ | |
98418dba CW |
7316 | #include <sys/types.h> |
7317 | #include <sys/wait.h> | |
7318 | #ifndef WEXITSTATUS | |
d6e01aa5 | 7319 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
98418dba CW |
7320 | #endif |
7321 | #ifndef WIFEXITED | |
7322 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
ba4481b5 | 7323 | #endif |
503d2be0 AS |
7324 | |
7325 | int | |
7326 | main () | |
7327 | { | |
98418dba CW |
7328 | int s; |
7329 | wait (&s); | |
7330 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
503d2be0 AS |
7331 | ; |
7332 | return 0; | |
7333 | } | |
7334 | _ACEOF | |
98418dba | 7335 | rm -f conftest.$ac_objext |
d6e01aa5 KL |
7336 | if { (ac_try="$ac_compile" |
7337 | case "(($ac_try" in | |
7338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7339 | *) ac_try_echo=$ac_try;; | |
7340 | esac | |
7341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7342 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7343 | ac_status=$? |
edfaf76d LK |
7344 | grep -v '^ *+' conftest.er1 >conftest.err |
7345 | rm -f conftest.er1 | |
7346 | cat conftest.err >&5 | |
c0d27fcc | 7347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
7348 | (exit $ac_status); } && { |
7349 | test -z "$ac_c_werror_flag" || | |
7350 | test ! -s conftest.err | |
7351 | } && test -s conftest.$ac_objext; then | |
98418dba | 7352 | ac_cv_header_sys_wait_h=yes |
ba4481b5 | 7353 | else |
503d2be0 | 7354 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7355 | sed 's/^/| /' conftest.$ac_ext >&5 |
7356 | ||
d6e01aa5 | 7357 | ac_cv_header_sys_wait_h=no |
ba4481b5 | 7358 | fi |
d6e01aa5 KL |
7359 | |
7360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 7361 | fi |
d6e01aa5 KL |
7362 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
7363 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | |
98418dba | 7364 | if test $ac_cv_header_sys_wait_h = yes; then |
503d2be0 | 7365 | |
c0d27fcc | 7366 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7367 | #define HAVE_SYS_WAIT_H 1 |
c0d27fcc | 7368 | _ACEOF |
ba4481b5 | 7369 | |
ba4481b5 DL |
7370 | fi |
7371 | ||
c0d27fcc | 7372 | |
d6e01aa5 KL |
7373 | { echo "$as_me:$LINENO: checking for struct utimbuf" >&5 |
7374 | echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; } | |
98418dba | 7375 | if test "${emacs_cv_struct_utimbuf+set}" = set; then |
503d2be0 | 7376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1113b624 | 7377 | else |
503d2be0 | 7378 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7379 | /* confdefs.h. */ |
7380 | _ACEOF | |
7381 | cat confdefs.h >>conftest.$ac_ext | |
7382 | cat >>conftest.$ac_ext <<_ACEOF | |
7383 | /* end confdefs.h. */ | |
98418dba CW |
7384 | #ifdef TIME_WITH_SYS_TIME |
7385 | #include <sys/time.h> | |
7386 | #include <time.h> | |
7387 | #else | |
7388 | #ifdef HAVE_SYS_TIME_H | |
7389 | #include <sys/time.h> | |
7390 | #else | |
1113b624 | 7391 | #include <time.h> |
98418dba CW |
7392 | #endif |
7393 | #endif | |
7394 | #ifdef HAVE_UTIME_H | |
7395 | #include <utime.h> | |
7396 | #endif | |
503d2be0 AS |
7397 | int |
7398 | main () | |
7399 | { | |
98418dba | 7400 | static struct utimbuf x; x.actime = x.modtime; |
503d2be0 AS |
7401 | ; |
7402 | return 0; | |
7403 | } | |
7404 | _ACEOF | |
98418dba | 7405 | rm -f conftest.$ac_objext |
d6e01aa5 KL |
7406 | if { (ac_try="$ac_compile" |
7407 | case "(($ac_try" in | |
7408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7409 | *) ac_try_echo=$ac_try;; | |
7410 | esac | |
7411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7412 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7413 | ac_status=$? |
edfaf76d LK |
7414 | grep -v '^ *+' conftest.er1 >conftest.err |
7415 | rm -f conftest.er1 | |
7416 | cat conftest.err >&5 | |
c0d27fcc | 7417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
7418 | (exit $ac_status); } && { |
7419 | test -z "$ac_c_werror_flag" || | |
7420 | test ! -s conftest.err | |
7421 | } && test -s conftest.$ac_objext; then | |
98418dba | 7422 | emacs_cv_struct_utimbuf=yes |
1113b624 | 7423 | else |
503d2be0 | 7424 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7425 | sed 's/^/| /' conftest.$ac_ext >&5 |
7426 | ||
d6e01aa5 | 7427 | emacs_cv_struct_utimbuf=no |
1113b624 | 7428 | fi |
d6e01aa5 KL |
7429 | |
7430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1113b624 | 7431 | fi |
d6e01aa5 KL |
7432 | { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 |
7433 | echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; } | |
98418dba | 7434 | if test $emacs_cv_struct_utimbuf = yes; then |
b936fae4 | 7435 | |
c0d27fcc | 7436 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7437 | #define HAVE_STRUCT_UTIMBUF 1 |
c0d27fcc | 7438 | _ACEOF |
1113b624 PE |
7439 | |
7440 | fi | |
ba4481b5 | 7441 | |
d6e01aa5 KL |
7442 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
7443 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
98418dba | 7444 | if test "${ac_cv_type_signal+set}" = set; then |
503d2be0 | 7445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 7446 | else |
98418dba | 7447 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7448 | /* confdefs.h. */ |
7449 | _ACEOF | |
7450 | cat confdefs.h >>conftest.$ac_ext | |
7451 | cat >>conftest.$ac_ext <<_ACEOF | |
7452 | /* end confdefs.h. */ | |
7397acc4 | 7453 | #include <sys/types.h> |
98418dba | 7454 | #include <signal.h> |
98418dba | 7455 | |
503d2be0 AS |
7456 | int |
7457 | main () | |
7458 | { | |
d6e01aa5 | 7459 | return *(signal (0, 0)) (0) == 1; |
503d2be0 AS |
7460 | ; |
7461 | return 0; | |
7462 | } | |
7463 | _ACEOF | |
98418dba | 7464 | rm -f conftest.$ac_objext |
d6e01aa5 KL |
7465 | if { (ac_try="$ac_compile" |
7466 | case "(($ac_try" in | |
7467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7468 | *) ac_try_echo=$ac_try;; | |
7469 | esac | |
7470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7471 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7472 | ac_status=$? |
edfaf76d LK |
7473 | grep -v '^ *+' conftest.er1 >conftest.err |
7474 | rm -f conftest.er1 | |
7475 | cat conftest.err >&5 | |
c0d27fcc | 7476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
7477 | (exit $ac_status); } && { |
7478 | test -z "$ac_c_werror_flag" || | |
7479 | test ! -s conftest.err | |
7480 | } && test -s conftest.$ac_objext; then | |
7481 | ac_cv_type_signal=int | |
503d2be0 AS |
7482 | else |
7483 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7484 | sed 's/^/| /' conftest.$ac_ext >&5 |
7485 | ||
d6e01aa5 | 7486 | ac_cv_type_signal=void |
503d2be0 | 7487 | fi |
d6e01aa5 KL |
7488 | |
7489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7397acc4 | 7490 | fi |
d6e01aa5 KL |
7491 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
7492 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
7397acc4 | 7493 | |
c0d27fcc | 7494 | cat >>confdefs.h <<_ACEOF |
98418dba | 7495 | #define RETSIGTYPE $ac_cv_type_signal |
c0d27fcc MR |
7496 | _ACEOF |
7497 | ||
503d2be0 | 7498 | |
c0d27fcc | 7499 | |
d6e01aa5 KL |
7500 | { echo "$as_me:$LINENO: checking for speed_t" >&5 |
7501 | echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; } | |
98418dba CW |
7502 | if test "${emacs_cv_speed_t+set}" = set; then |
7503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7397acc4 | 7504 | else |
98418dba | 7505 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7506 | /* confdefs.h. */ |
7507 | _ACEOF | |
7508 | cat confdefs.h >>conftest.$ac_ext | |
7509 | cat >>conftest.$ac_ext <<_ACEOF | |
7510 | /* end confdefs.h. */ | |
98418dba | 7511 | #include <termios.h> |
98418dba CW |
7512 | int |
7513 | main () | |
7514 | { | |
7515 | speed_t x = 1; | |
7516 | ; | |
7517 | return 0; | |
7518 | } | |
7519 | _ACEOF | |
7520 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
7521 | if { (ac_try="$ac_compile" |
7522 | case "(($ac_try" in | |
7523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7524 | *) ac_try_echo=$ac_try;; | |
7525 | esac | |
7526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7527 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 7528 | ac_status=$? |
edfaf76d LK |
7529 | grep -v '^ *+' conftest.er1 >conftest.err |
7530 | rm -f conftest.er1 | |
7531 | cat conftest.err >&5 | |
c0d27fcc | 7532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
7533 | (exit $ac_status); } && { |
7534 | test -z "$ac_c_werror_flag" || | |
7535 | test ! -s conftest.err | |
7536 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
7537 | emacs_cv_speed_t=yes |
7538 | else | |
7539 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7540 | sed 's/^/| /' conftest.$ac_ext >&5 |
7541 | ||
d6e01aa5 | 7542 | emacs_cv_speed_t=no |
98418dba | 7543 | fi |
d6e01aa5 KL |
7544 | |
7545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 7546 | fi |
d6e01aa5 KL |
7547 | { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 |
7548 | echo "${ECHO_T}$emacs_cv_speed_t" >&6; } | |
98418dba | 7549 | if test $emacs_cv_speed_t = yes; then |
b936fae4 | 7550 | |
c0d27fcc | 7551 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7552 | #define HAVE_SPEED_T 1 |
c0d27fcc | 7553 | _ACEOF |
98418dba | 7554 | |
7397acc4 DL |
7555 | fi |
7556 | ||
d6e01aa5 KL |
7557 | { echo "$as_me:$LINENO: checking for struct timeval" >&5 |
7558 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } | |
98418dba | 7559 | if test "${emacs_cv_struct_timeval+set}" = set; then |
503d2be0 | 7560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 7561 | else |
503d2be0 | 7562 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7563 | /* confdefs.h. */ |
7564 | _ACEOF | |
7565 | cat confdefs.h >>conftest.$ac_ext | |
7566 | cat >>conftest.$ac_ext <<_ACEOF | |
7567 | /* end confdefs.h. */ | |
98418dba CW |
7568 | #ifdef TIME_WITH_SYS_TIME |
7569 | #include <sys/time.h> | |
7570 | #include <time.h> | |
7571 | #else | |
7572 | #ifdef HAVE_SYS_TIME_H | |
7573 | #include <sys/time.h> | |
7574 | #else | |
7575 | #include <time.h> | |
7576 | #endif | |
7577 | #endif | |
503d2be0 AS |
7578 | int |
7579 | main () | |
7580 | { | |
98418dba | 7581 | static struct timeval x; x.tv_sec = x.tv_usec; |
503d2be0 AS |
7582 | ; |
7583 | return 0; | |
7584 | } | |
7585 | _ACEOF | |
7586 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
7587 | if { (ac_try="$ac_compile" |
7588 | case "(($ac_try" in | |
7589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7590 | *) ac_try_echo=$ac_try;; | |
7591 | esac | |
7592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7593 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7594 | ac_status=$? |
edfaf76d LK |
7595 | grep -v '^ *+' conftest.er1 >conftest.err |
7596 | rm -f conftest.er1 | |
7597 | cat conftest.err >&5 | |
c0d27fcc | 7598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
7599 | (exit $ac_status); } && { |
7600 | test -z "$ac_c_werror_flag" || | |
7601 | test ! -s conftest.err | |
7602 | } && test -s conftest.$ac_objext; then | |
edfaf76d LK |
7603 | emacs_cv_struct_timeval=yes |
7604 | else | |
503d2be0 | 7605 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7606 | sed 's/^/| /' conftest.$ac_ext >&5 |
7607 | ||
d6e01aa5 | 7608 | emacs_cv_struct_timeval=no |
7397acc4 | 7609 | fi |
d6e01aa5 KL |
7610 | |
7611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7397acc4 | 7612 | fi |
d6e01aa5 KL |
7613 | { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 |
7614 | echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; } | |
98418dba CW |
7615 | HAVE_TIMEVAL=$emacs_cv_struct_timeval |
7616 | if test $emacs_cv_struct_timeval = yes; then | |
b936fae4 | 7617 | |
c0d27fcc | 7618 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7619 | #define HAVE_TIMEVAL 1 |
c0d27fcc | 7620 | _ACEOF |
7397acc4 DL |
7621 | |
7622 | fi | |
7623 | ||
d6e01aa5 KL |
7624 | { echo "$as_me:$LINENO: checking for struct exception" >&5 |
7625 | echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; } | |
98418dba | 7626 | if test "${emacs_cv_struct_exception+set}" = set; then |
503d2be0 | 7627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7628 | else |
503d2be0 | 7629 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7630 | /* confdefs.h. */ |
7631 | _ACEOF | |
7632 | cat confdefs.h >>conftest.$ac_ext | |
7633 | cat >>conftest.$ac_ext <<_ACEOF | |
7634 | /* end confdefs.h. */ | |
98418dba | 7635 | #include <math.h> |
503d2be0 AS |
7636 | int |
7637 | main () | |
7638 | { | |
98418dba | 7639 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
503d2be0 AS |
7640 | ; |
7641 | return 0; | |
ba4481b5 | 7642 | } |
503d2be0 AS |
7643 | _ACEOF |
7644 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
7645 | if { (ac_try="$ac_compile" |
7646 | case "(($ac_try" in | |
7647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7648 | *) ac_try_echo=$ac_try;; | |
7649 | esac | |
7650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7651 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7652 | ac_status=$? |
edfaf76d LK |
7653 | grep -v '^ *+' conftest.er1 >conftest.err |
7654 | rm -f conftest.er1 | |
7655 | cat conftest.err >&5 | |
c0d27fcc | 7656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
7657 | (exit $ac_status); } && { |
7658 | test -z "$ac_c_werror_flag" || | |
7659 | test ! -s conftest.err | |
7660 | } && test -s conftest.$ac_objext; then | |
98418dba | 7661 | emacs_cv_struct_exception=yes |
ba4481b5 | 7662 | else |
503d2be0 | 7663 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7664 | sed 's/^/| /' conftest.$ac_ext >&5 |
7665 | ||
d6e01aa5 | 7666 | emacs_cv_struct_exception=no |
ba4481b5 | 7667 | fi |
d6e01aa5 KL |
7668 | |
7669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 7670 | fi |
d6e01aa5 KL |
7671 | { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 |
7672 | echo "${ECHO_T}$emacs_cv_struct_exception" >&6; } | |
98418dba CW |
7673 | HAVE_EXCEPTION=$emacs_cv_struct_exception |
7674 | if test $emacs_cv_struct_exception != yes; then | |
b936fae4 | 7675 | |
c0d27fcc | 7676 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7677 | #define NO_MATHERR 1 |
c0d27fcc | 7678 | _ACEOF |
ba4481b5 DL |
7679 | |
7680 | fi | |
7681 | ||
7862d3a8 AS |
7682 | |
7683 | for ac_header in sys/socket.h | |
7684 | do | |
7685 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
7686 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7687 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7688 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7689 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7862d3a8 AS |
7690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7691 | fi | |
d6e01aa5 KL |
7692 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7693 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7694 | echo "${ECHO_T}$ac_res" >&6; } | |
7862d3a8 AS |
7695 | else |
7696 | # Is the header compilable? | |
d6e01aa5 KL |
7697 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7698 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
7862d3a8 AS |
7699 | cat >conftest.$ac_ext <<_ACEOF |
7700 | /* confdefs.h. */ | |
7701 | _ACEOF | |
7702 | cat confdefs.h >>conftest.$ac_ext | |
7703 | cat >>conftest.$ac_ext <<_ACEOF | |
7704 | /* end confdefs.h. */ | |
7705 | $ac_includes_default | |
7706 | #include <$ac_header> | |
7707 | _ACEOF | |
7708 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
7709 | if { (ac_try="$ac_compile" |
7710 | case "(($ac_try" in | |
7711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7712 | *) ac_try_echo=$ac_try;; | |
7713 | esac | |
7714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7715 | (eval "$ac_compile") 2>conftest.er1 | |
7862d3a8 | 7716 | ac_status=$? |
edfaf76d LK |
7717 | grep -v '^ *+' conftest.er1 >conftest.err |
7718 | rm -f conftest.er1 | |
7719 | cat conftest.err >&5 | |
7862d3a8 | 7720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
7721 | (exit $ac_status); } && { |
7722 | test -z "$ac_c_werror_flag" || | |
7723 | test ! -s conftest.err | |
7724 | } && test -s conftest.$ac_objext; then | |
7862d3a8 AS |
7725 | ac_header_compiler=yes |
7726 | else | |
7727 | echo "$as_me: failed program was:" >&5 | |
7728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7729 | ||
d6e01aa5 | 7730 | ac_header_compiler=no |
7862d3a8 | 7731 | fi |
d6e01aa5 KL |
7732 | |
7733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7734 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7735 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
7862d3a8 AS |
7736 | |
7737 | # Is the header present? | |
d6e01aa5 KL |
7738 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7739 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
7862d3a8 AS |
7740 | cat >conftest.$ac_ext <<_ACEOF |
7741 | /* confdefs.h. */ | |
7742 | _ACEOF | |
7743 | cat confdefs.h >>conftest.$ac_ext | |
7744 | cat >>conftest.$ac_ext <<_ACEOF | |
7745 | /* end confdefs.h. */ | |
7746 | #include <$ac_header> | |
7747 | _ACEOF | |
d6e01aa5 KL |
7748 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7749 | case "(($ac_try" in | |
7750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7751 | *) ac_try_echo=$ac_try;; | |
7752 | esac | |
7753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7754 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7862d3a8 AS |
7755 | ac_status=$? |
7756 | grep -v '^ *+' conftest.er1 >conftest.err | |
7757 | rm -f conftest.er1 | |
7758 | cat conftest.err >&5 | |
7759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
7760 | (exit $ac_status); } >/dev/null && { |
7761 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7762 | test ! -s conftest.err | |
7763 | }; then | |
7862d3a8 AS |
7764 | ac_header_preproc=yes |
7765 | else | |
7766 | echo "$as_me: failed program was:" >&5 | |
7767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7768 | ||
7769 | ac_header_preproc=no | |
7770 | fi | |
d6e01aa5 | 7771 | |
7862d3a8 | 7772 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
7773 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7774 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
7862d3a8 AS |
7775 | |
7776 | # So? What about this header? | |
edfaf76d LK |
7777 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7778 | yes:no: ) | |
7862d3a8 AS |
7779 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7780 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
7781 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
7782 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7783 | ac_header_preproc=yes | |
7862d3a8 | 7784 | ;; |
edfaf76d | 7785 | no:yes:* ) |
7862d3a8 AS |
7786 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7787 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
7788 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
7789 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7790 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7791 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7792 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7793 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7862d3a8 AS |
7794 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7795 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
7796 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
7797 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 7798 | |
7862d3a8 AS |
7799 | ;; |
7800 | esac | |
d6e01aa5 KL |
7801 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7802 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7803 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7862d3a8 AS |
7804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7805 | else | |
edfaf76d | 7806 | eval "$as_ac_Header=\$ac_header_preproc" |
7862d3a8 | 7807 | fi |
d6e01aa5 KL |
7808 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7809 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7810 | echo "${ECHO_T}$ac_res" >&6; } | |
7862d3a8 AS |
7811 | |
7812 | fi | |
7813 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7814 | cat >>confdefs.h <<_ACEOF | |
7815 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7816 | _ACEOF | |
7817 | ||
7818 | fi | |
7819 | ||
7820 | done | |
7821 | ||
7822 | ||
7823 | for ac_header in net/if.h | |
7824 | do | |
7825 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
7826 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7827 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7828 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7862d3a8 AS |
7829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7830 | else | |
7831 | cat >conftest.$ac_ext <<_ACEOF | |
7832 | /* confdefs.h. */ | |
7833 | _ACEOF | |
7834 | cat confdefs.h >>conftest.$ac_ext | |
7835 | cat >>conftest.$ac_ext <<_ACEOF | |
7836 | /* end confdefs.h. */ | |
7837 | $ac_includes_default | |
7838 | #if HAVE_SYS_SOCKET_H | |
7839 | #include <sys/socket.h> | |
7840 | #endif | |
7841 | ||
7842 | #include <$ac_header> | |
7843 | _ACEOF | |
7844 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
7845 | if { (ac_try="$ac_compile" |
7846 | case "(($ac_try" in | |
7847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7848 | *) ac_try_echo=$ac_try;; | |
7849 | esac | |
7850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7851 | (eval "$ac_compile") 2>conftest.er1 | |
7862d3a8 | 7852 | ac_status=$? |
edfaf76d LK |
7853 | grep -v '^ *+' conftest.er1 >conftest.err |
7854 | rm -f conftest.er1 | |
7855 | cat conftest.err >&5 | |
7862d3a8 | 7856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
7857 | (exit $ac_status); } && { |
7858 | test -z "$ac_c_werror_flag" || | |
7859 | test ! -s conftest.err | |
7860 | } && test -s conftest.$ac_objext; then | |
7862d3a8 AS |
7861 | eval "$as_ac_Header=yes" |
7862 | else | |
7863 | echo "$as_me: failed program was:" >&5 | |
7864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7865 | ||
d6e01aa5 | 7866 | eval "$as_ac_Header=no" |
7862d3a8 | 7867 | fi |
d6e01aa5 KL |
7868 | |
7869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7862d3a8 | 7870 | fi |
d6e01aa5 KL |
7871 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7872 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7873 | echo "${ECHO_T}$ac_res" >&6; } | |
7862d3a8 AS |
7874 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7875 | cat >>confdefs.h <<_ACEOF | |
7876 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7877 | _ACEOF | |
7878 | ||
7879 | fi | |
7880 | ||
7881 | done | |
7882 | ||
7883 | ||
d6e01aa5 KL |
7884 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
7885 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
98418dba | 7886 | if test "${ac_cv_struct_tm+set}" = set; then |
503d2be0 | 7887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 7888 | else |
503d2be0 | 7889 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7890 | /* confdefs.h. */ |
7891 | _ACEOF | |
7892 | cat confdefs.h >>conftest.$ac_ext | |
7893 | cat >>conftest.$ac_ext <<_ACEOF | |
7894 | /* end confdefs.h. */ | |
98418dba CW |
7895 | #include <sys/types.h> |
7896 | #include <time.h> | |
7397acc4 | 7897 | |
503d2be0 AS |
7898 | int |
7899 | main () | |
7900 | { | |
d6e01aa5 KL |
7901 | struct tm tm; |
7902 | int *p = &tm.tm_sec; | |
7903 | return !p; | |
503d2be0 AS |
7904 | ; |
7905 | return 0; | |
7906 | } | |
7907 | _ACEOF | |
7908 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
7909 | if { (ac_try="$ac_compile" |
7910 | case "(($ac_try" in | |
7911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7912 | *) ac_try_echo=$ac_try;; | |
7913 | esac | |
7914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7915 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7916 | ac_status=$? |
edfaf76d LK |
7917 | grep -v '^ *+' conftest.er1 >conftest.err |
7918 | rm -f conftest.er1 | |
7919 | cat conftest.err >&5 | |
c0d27fcc | 7920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
7921 | (exit $ac_status); } && { |
7922 | test -z "$ac_c_werror_flag" || | |
7923 | test ! -s conftest.err | |
7924 | } && test -s conftest.$ac_objext; then | |
35996d22 AS |
7925 | ac_cv_struct_tm=time.h |
7926 | else | |
503d2be0 | 7927 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7928 | sed 's/^/| /' conftest.$ac_ext >&5 |
7929 | ||
d6e01aa5 | 7930 | ac_cv_struct_tm=sys/time.h |
7397acc4 | 7931 | fi |
d6e01aa5 KL |
7932 | |
7933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7397acc4 | 7934 | fi |
d6e01aa5 KL |
7935 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
7936 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
98418dba | 7937 | if test $ac_cv_struct_tm = sys/time.h; then |
7397acc4 | 7938 | |
c0d27fcc | 7939 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7940 | #define TM_IN_SYS_TIME 1 |
c0d27fcc | 7941 | _ACEOF |
7397acc4 DL |
7942 | |
7943 | fi | |
ba4481b5 | 7944 | |
d6e01aa5 KL |
7945 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
7946 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } | |
98418dba | 7947 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
503d2be0 | 7948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7949 | else |
98418dba | 7950 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7951 | /* confdefs.h. */ |
7952 | _ACEOF | |
7953 | cat confdefs.h >>conftest.$ac_ext | |
7954 | cat >>conftest.$ac_ext <<_ACEOF | |
7955 | /* end confdefs.h. */ | |
98418dba CW |
7956 | #include <sys/types.h> |
7957 | #include <$ac_cv_struct_tm> | |
ba4481b5 | 7958 | |
c0d27fcc | 7959 | |
98418dba CW |
7960 | int |
7961 | main () | |
7962 | { | |
7963 | static struct tm ac_aggr; | |
7964 | if (ac_aggr.tm_zone) | |
7965 | return 0; | |
7966 | ; | |
7967 | return 0; | |
7968 | } | |
7969 | _ACEOF | |
7970 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
7971 | if { (ac_try="$ac_compile" |
7972 | case "(($ac_try" in | |
7973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7974 | *) ac_try_echo=$ac_try;; | |
7975 | esac | |
7976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7977 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 7978 | ac_status=$? |
edfaf76d LK |
7979 | grep -v '^ *+' conftest.er1 >conftest.err |
7980 | rm -f conftest.er1 | |
7981 | cat conftest.err >&5 | |
c0d27fcc | 7982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
7983 | (exit $ac_status); } && { |
7984 | test -z "$ac_c_werror_flag" || | |
7985 | test ! -s conftest.err | |
7986 | } && test -s conftest.$ac_objext; then | |
98418dba | 7987 | ac_cv_member_struct_tm_tm_zone=yes |
ba4481b5 | 7988 | else |
98418dba | 7989 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7990 | sed 's/^/| /' conftest.$ac_ext >&5 |
7991 | ||
d6e01aa5 | 7992 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7993 | /* confdefs.h. */ |
7994 | _ACEOF | |
7995 | cat confdefs.h >>conftest.$ac_ext | |
7996 | cat >>conftest.$ac_ext <<_ACEOF | |
7997 | /* end confdefs.h. */ | |
6bae0ccf DL |
7998 | #include <sys/types.h> |
7999 | #include <$ac_cv_struct_tm> | |
8000 | ||
8001 | ||
8002 | int | |
8003 | main () | |
8004 | { | |
8005 | static struct tm ac_aggr; | |
8006 | if (sizeof ac_aggr.tm_zone) | |
8007 | return 0; | |
8008 | ; | |
8009 | return 0; | |
8010 | } | |
8011 | _ACEOF | |
8012 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
8013 | if { (ac_try="$ac_compile" |
8014 | case "(($ac_try" in | |
8015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8016 | *) ac_try_echo=$ac_try;; | |
8017 | esac | |
8018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8019 | (eval "$ac_compile") 2>conftest.er1 | |
6bae0ccf | 8020 | ac_status=$? |
edfaf76d LK |
8021 | grep -v '^ *+' conftest.er1 >conftest.err |
8022 | rm -f conftest.er1 | |
8023 | cat conftest.err >&5 | |
6bae0ccf | 8024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
8025 | (exit $ac_status); } && { |
8026 | test -z "$ac_c_werror_flag" || | |
8027 | test ! -s conftest.err | |
8028 | } && test -s conftest.$ac_objext; then | |
6bae0ccf DL |
8029 | ac_cv_member_struct_tm_tm_zone=yes |
8030 | else | |
8031 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8032 | sed 's/^/| /' conftest.$ac_ext >&5 |
8033 | ||
d6e01aa5 | 8034 | ac_cv_member_struct_tm_tm_zone=no |
ba4481b5 | 8035 | fi |
d6e01aa5 KL |
8036 | |
8037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 8038 | fi |
d6e01aa5 KL |
8039 | |
8040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bae0ccf | 8041 | fi |
d6e01aa5 KL |
8042 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
8043 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } | |
98418dba | 8044 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
503d2be0 | 8045 | |
c0d27fcc | 8046 | cat >>confdefs.h <<_ACEOF |
98418dba | 8047 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
c0d27fcc MR |
8048 | _ACEOF |
8049 | ||
ba4481b5 | 8050 | |
98418dba | 8051 | fi |
ba4481b5 | 8052 | |
98418dba | 8053 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
ba4481b5 | 8054 | |
c0d27fcc | 8055 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8056 | #define HAVE_TM_ZONE 1 |
c0d27fcc | 8057 | _ACEOF |
ba4481b5 | 8058 | |
ba4481b5 | 8059 | else |
d6e01aa5 KL |
8060 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
8061 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } | |
8062 | if test "${ac_cv_have_decl_tzname+set}" = set; then | |
8063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8064 | else | |
8065 | cat >conftest.$ac_ext <<_ACEOF | |
8066 | /* confdefs.h. */ | |
8067 | _ACEOF | |
8068 | cat confdefs.h >>conftest.$ac_ext | |
8069 | cat >>conftest.$ac_ext <<_ACEOF | |
8070 | /* end confdefs.h. */ | |
8071 | #include <time.h> | |
8072 | ||
8073 | int | |
8074 | main () | |
8075 | { | |
8076 | #ifndef tzname | |
8077 | (void) tzname; | |
8078 | #endif | |
8079 | ||
8080 | ; | |
8081 | return 0; | |
8082 | } | |
8083 | _ACEOF | |
8084 | rm -f conftest.$ac_objext | |
8085 | if { (ac_try="$ac_compile" | |
8086 | case "(($ac_try" in | |
8087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8088 | *) ac_try_echo=$ac_try;; | |
8089 | esac | |
8090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8091 | (eval "$ac_compile") 2>conftest.er1 | |
8092 | ac_status=$? | |
8093 | grep -v '^ *+' conftest.er1 >conftest.err | |
8094 | rm -f conftest.er1 | |
8095 | cat conftest.err >&5 | |
8096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8097 | (exit $ac_status); } && { | |
8098 | test -z "$ac_c_werror_flag" || | |
8099 | test ! -s conftest.err | |
8100 | } && test -s conftest.$ac_objext; then | |
8101 | ac_cv_have_decl_tzname=yes | |
8102 | else | |
8103 | echo "$as_me: failed program was:" >&5 | |
8104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8105 | ||
8106 | ac_cv_have_decl_tzname=no | |
8107 | fi | |
8108 | ||
8109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8110 | fi | |
8111 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 | |
8112 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } | |
8113 | if test $ac_cv_have_decl_tzname = yes; then | |
8114 | ||
8115 | cat >>confdefs.h <<_ACEOF | |
8116 | #define HAVE_DECL_TZNAME 1 | |
8117 | _ACEOF | |
8118 | ||
8119 | ||
8120 | else | |
8121 | cat >>confdefs.h <<_ACEOF | |
8122 | #define HAVE_DECL_TZNAME 0 | |
8123 | _ACEOF | |
8124 | ||
8125 | ||
8126 | fi | |
8127 | ||
8128 | ||
8129 | { echo "$as_me:$LINENO: checking for tzname" >&5 | |
8130 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } | |
98418dba | 8131 | if test "${ac_cv_var_tzname+set}" = set; then |
503d2be0 | 8132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 8133 | else |
98418dba | 8134 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
8135 | /* confdefs.h. */ |
8136 | _ACEOF | |
8137 | cat confdefs.h >>conftest.$ac_ext | |
8138 | cat >>conftest.$ac_ext <<_ACEOF | |
8139 | /* end confdefs.h. */ | |
98418dba | 8140 | #include <time.h> |
d6e01aa5 KL |
8141 | #if !HAVE_DECL_TZNAME |
8142 | extern char *tzname[]; | |
98418dba CW |
8143 | #endif |
8144 | ||
98418dba CW |
8145 | int |
8146 | main () | |
8147 | { | |
d6e01aa5 | 8148 | return tzname[0][0]; |
98418dba CW |
8149 | ; |
8150 | return 0; | |
8151 | } | |
8152 | _ACEOF | |
8153 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
8154 | if { (ac_try="$ac_link" |
8155 | case "(($ac_try" in | |
8156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8157 | *) ac_try_echo=$ac_try;; | |
8158 | esac | |
8159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8160 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 8161 | ac_status=$? |
edfaf76d LK |
8162 | grep -v '^ *+' conftest.er1 >conftest.err |
8163 | rm -f conftest.er1 | |
8164 | cat conftest.err >&5 | |
c0d27fcc | 8165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
8166 | (exit $ac_status); } && { |
8167 | test -z "$ac_c_werror_flag" || | |
8168 | test ! -s conftest.err | |
8169 | } && test -s conftest$ac_exeext && | |
8170 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
8171 | ac_cv_var_tzname=yes |
8172 | else | |
8173 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8174 | sed 's/^/| /' conftest.$ac_ext >&5 |
8175 | ||
d6e01aa5 | 8176 | ac_cv_var_tzname=no |
ba4481b5 | 8177 | fi |
d6e01aa5 KL |
8178 | |
8179 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 8180 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 8181 | fi |
d6e01aa5 KL |
8182 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
8183 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } | |
98418dba | 8184 | if test $ac_cv_var_tzname = yes; then |
ba4481b5 | 8185 | |
c0d27fcc | 8186 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8187 | #define HAVE_TZNAME 1 |
c0d27fcc | 8188 | _ACEOF |
503d2be0 | 8189 | |
98418dba CW |
8190 | fi |
8191 | fi | |
503d2be0 | 8192 | |
d6e01aa5 KL |
8193 | { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 |
8194 | echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; } | |
b936fae4 | 8195 | if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then |
98418dba CW |
8196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8197 | else | |
8198 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8199 | /* confdefs.h. */ |
8200 | _ACEOF | |
8201 | cat confdefs.h >>conftest.$ac_ext | |
8202 | cat >>conftest.$ac_ext <<_ACEOF | |
8203 | /* end confdefs.h. */ | |
98418dba | 8204 | #include <time.h> |
b936fae4 | 8205 | |
98418dba CW |
8206 | int |
8207 | main () | |
8208 | { | |
b936fae4 AS |
8209 | static struct tm ac_aggr; |
8210 | if (ac_aggr.tm_gmtoff) | |
8211 | return 0; | |
98418dba CW |
8212 | ; |
8213 | return 0; | |
8214 | } | |
8215 | _ACEOF | |
b936fae4 | 8216 | rm -f conftest.$ac_objext |
d6e01aa5 KL |
8217 | if { (ac_try="$ac_compile" |
8218 | case "(($ac_try" in | |
8219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8220 | *) ac_try_echo=$ac_try;; | |
8221 | esac | |
8222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8223 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 8224 | ac_status=$? |
edfaf76d LK |
8225 | grep -v '^ *+' conftest.er1 >conftest.err |
8226 | rm -f conftest.er1 | |
8227 | cat conftest.err >&5 | |
c0d27fcc | 8228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
8229 | (exit $ac_status); } && { |
8230 | test -z "$ac_c_werror_flag" || | |
8231 | test ! -s conftest.err | |
8232 | } && test -s conftest.$ac_objext; then | |
b936fae4 | 8233 | ac_cv_member_struct_tm_tm_gmtoff=yes |
98418dba CW |
8234 | else |
8235 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8236 | sed 's/^/| /' conftest.$ac_ext >&5 |
8237 | ||
d6e01aa5 | 8238 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
8239 | /* confdefs.h. */ |
8240 | _ACEOF | |
8241 | cat confdefs.h >>conftest.$ac_ext | |
8242 | cat >>conftest.$ac_ext <<_ACEOF | |
8243 | /* end confdefs.h. */ | |
6bae0ccf DL |
8244 | #include <time.h> |
8245 | ||
8799b3e4 CW |
8246 | int |
8247 | main () | |
8248 | { | |
6bae0ccf DL |
8249 | static struct tm ac_aggr; |
8250 | if (sizeof ac_aggr.tm_gmtoff) | |
8251 | return 0; | |
8799b3e4 CW |
8252 | ; |
8253 | return 0; | |
8254 | } | |
8255 | _ACEOF | |
6bae0ccf | 8256 | rm -f conftest.$ac_objext |
d6e01aa5 KL |
8257 | if { (ac_try="$ac_compile" |
8258 | case "(($ac_try" in | |
8259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8260 | *) ac_try_echo=$ac_try;; | |
8261 | esac | |
8262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8263 | (eval "$ac_compile") 2>conftest.er1 | |
8799b3e4 | 8264 | ac_status=$? |
edfaf76d LK |
8265 | grep -v '^ *+' conftest.er1 >conftest.err |
8266 | rm -f conftest.er1 | |
8267 | cat conftest.err >&5 | |
c0d27fcc | 8268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
8269 | (exit $ac_status); } && { |
8270 | test -z "$ac_c_werror_flag" || | |
8271 | test ! -s conftest.err | |
8272 | } && test -s conftest.$ac_objext; then | |
6bae0ccf | 8273 | ac_cv_member_struct_tm_tm_gmtoff=yes |
8799b3e4 CW |
8274 | else |
8275 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8276 | sed 's/^/| /' conftest.$ac_ext >&5 |
8277 | ||
d6e01aa5 | 8278 | ac_cv_member_struct_tm_tm_gmtoff=no |
8799b3e4 | 8279 | fi |
d6e01aa5 KL |
8280 | |
8281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bae0ccf | 8282 | fi |
d6e01aa5 KL |
8283 | |
8284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8799b3e4 | 8285 | fi |
d6e01aa5 KL |
8286 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 |
8287 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; } | |
6bae0ccf DL |
8288 | if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then |
8289 | ||
8290 | cat >>confdefs.h <<\_ACEOF | |
8291 | #define HAVE_TM_GMTOFF 1 | |
8292 | _ACEOF | |
8293 | ||
8294 | fi | |
8295 | ||
d6e01aa5 KL |
8296 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5 |
8297 | echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; } | |
96f3a036 DL |
8298 | if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then |
8299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8300 | else | |
8301 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8302 | /* confdefs.h. */ |
8303 | _ACEOF | |
8304 | cat confdefs.h >>conftest.$ac_ext | |
8305 | cat >>conftest.$ac_ext <<_ACEOF | |
8306 | /* end confdefs.h. */ | |
7862d3a8 AS |
8307 | $ac_includes_default |
8308 | #if HAVE_SYS_SOCKET_H | |
8309 | #include <sys/socket.h> | |
8310 | #endif | |
8311 | #if HAVE_NET_IF_H | |
96f3a036 | 8312 | #include <net/if.h> |
7862d3a8 | 8313 | #endif |
96f3a036 DL |
8314 | |
8315 | int | |
8316 | main () | |
8317 | { | |
8318 | static struct ifreq ac_aggr; | |
8319 | if (ac_aggr.ifr_flags) | |
8320 | return 0; | |
8321 | ; | |
8322 | return 0; | |
8323 | } | |
8324 | _ACEOF | |
8325 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
8326 | if { (ac_try="$ac_compile" |
8327 | case "(($ac_try" in | |
8328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8329 | *) ac_try_echo=$ac_try;; | |
8330 | esac | |
8331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8332 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8333 | ac_status=$? |
edfaf76d LK |
8334 | grep -v '^ *+' conftest.er1 >conftest.err |
8335 | rm -f conftest.er1 | |
8336 | cat conftest.err >&5 | |
96f3a036 | 8337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
8338 | (exit $ac_status); } && { |
8339 | test -z "$ac_c_werror_flag" || | |
8340 | test ! -s conftest.err | |
8341 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8342 | ac_cv_member_struct_ifreq_ifr_flags=yes |
8343 | else | |
8344 | echo "$as_me: failed program was:" >&5 | |
8345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8346 | ||
d6e01aa5 | 8347 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8348 | /* confdefs.h. */ |
8349 | _ACEOF | |
8350 | cat confdefs.h >>conftest.$ac_ext | |
8351 | cat >>conftest.$ac_ext <<_ACEOF | |
8352 | /* end confdefs.h. */ | |
7862d3a8 AS |
8353 | $ac_includes_default |
8354 | #if HAVE_SYS_SOCKET_H | |
8355 | #include <sys/socket.h> | |
8356 | #endif | |
8357 | #if HAVE_NET_IF_H | |
96f3a036 | 8358 | #include <net/if.h> |
7862d3a8 | 8359 | #endif |
96f3a036 DL |
8360 | |
8361 | int | |
8362 | main () | |
8363 | { | |
8364 | static struct ifreq ac_aggr; | |
8365 | if (sizeof ac_aggr.ifr_flags) | |
8366 | return 0; | |
8367 | ; | |
8368 | return 0; | |
8369 | } | |
8370 | _ACEOF | |
8371 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
8372 | if { (ac_try="$ac_compile" |
8373 | case "(($ac_try" in | |
8374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8375 | *) ac_try_echo=$ac_try;; | |
8376 | esac | |
8377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8378 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8379 | ac_status=$? |
edfaf76d LK |
8380 | grep -v '^ *+' conftest.er1 >conftest.err |
8381 | rm -f conftest.er1 | |
8382 | cat conftest.err >&5 | |
96f3a036 | 8383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
8384 | (exit $ac_status); } && { |
8385 | test -z "$ac_c_werror_flag" || | |
8386 | test ! -s conftest.err | |
8387 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8388 | ac_cv_member_struct_ifreq_ifr_flags=yes |
8389 | else | |
8390 | echo "$as_me: failed program was:" >&5 | |
8391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8392 | ||
d6e01aa5 | 8393 | ac_cv_member_struct_ifreq_ifr_flags=no |
96f3a036 | 8394 | fi |
d6e01aa5 KL |
8395 | |
8396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8397 | fi |
d6e01aa5 KL |
8398 | |
8399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8400 | fi |
d6e01aa5 KL |
8401 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5 |
8402 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; } | |
96f3a036 DL |
8403 | if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then |
8404 | ||
8405 | cat >>confdefs.h <<_ACEOF | |
8406 | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 | |
8407 | _ACEOF | |
8408 | ||
8409 | ||
8410 | fi | |
d6e01aa5 KL |
8411 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5 |
8412 | echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; } | |
96f3a036 DL |
8413 | if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then |
8414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8415 | else | |
8416 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8417 | /* confdefs.h. */ |
8418 | _ACEOF | |
8419 | cat confdefs.h >>conftest.$ac_ext | |
8420 | cat >>conftest.$ac_ext <<_ACEOF | |
8421 | /* end confdefs.h. */ | |
7862d3a8 AS |
8422 | $ac_includes_default |
8423 | #if HAVE_SYS_SOCKET_H | |
8424 | #include <sys/socket.h> | |
8425 | #endif | |
8426 | #if HAVE_NET_IF_H | |
96f3a036 | 8427 | #include <net/if.h> |
7862d3a8 | 8428 | #endif |
96f3a036 DL |
8429 | |
8430 | int | |
8431 | main () | |
8432 | { | |
8433 | static struct ifreq ac_aggr; | |
8434 | if (ac_aggr.ifr_hwaddr) | |
8435 | return 0; | |
8436 | ; | |
8437 | return 0; | |
8438 | } | |
8439 | _ACEOF | |
8440 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
8441 | if { (ac_try="$ac_compile" |
8442 | case "(($ac_try" in | |
8443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8444 | *) ac_try_echo=$ac_try;; | |
8445 | esac | |
8446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8447 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8448 | ac_status=$? |
edfaf76d LK |
8449 | grep -v '^ *+' conftest.er1 >conftest.err |
8450 | rm -f conftest.er1 | |
8451 | cat conftest.err >&5 | |
96f3a036 | 8452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
8453 | (exit $ac_status); } && { |
8454 | test -z "$ac_c_werror_flag" || | |
8455 | test ! -s conftest.err | |
8456 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8457 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes |
8458 | else | |
8459 | echo "$as_me: failed program was:" >&5 | |
8460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8461 | ||
d6e01aa5 | 8462 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8463 | /* confdefs.h. */ |
8464 | _ACEOF | |
8465 | cat confdefs.h >>conftest.$ac_ext | |
8466 | cat >>conftest.$ac_ext <<_ACEOF | |
8467 | /* end confdefs.h. */ | |
7862d3a8 AS |
8468 | $ac_includes_default |
8469 | #if HAVE_SYS_SOCKET_H | |
8470 | #include <sys/socket.h> | |
8471 | #endif | |
8472 | #if HAVE_NET_IF_H | |
96f3a036 | 8473 | #include <net/if.h> |
7862d3a8 | 8474 | #endif |
96f3a036 DL |
8475 | |
8476 | int | |
8477 | main () | |
8478 | { | |
8479 | static struct ifreq ac_aggr; | |
8480 | if (sizeof ac_aggr.ifr_hwaddr) | |
8481 | return 0; | |
8482 | ; | |
8483 | return 0; | |
8484 | } | |
8485 | _ACEOF | |
8486 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
8487 | if { (ac_try="$ac_compile" |
8488 | case "(($ac_try" in | |
8489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8490 | *) ac_try_echo=$ac_try;; | |
8491 | esac | |
8492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8493 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8494 | ac_status=$? |
edfaf76d LK |
8495 | grep -v '^ *+' conftest.er1 >conftest.err |
8496 | rm -f conftest.er1 | |
8497 | cat conftest.err >&5 | |
96f3a036 | 8498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
8499 | (exit $ac_status); } && { |
8500 | test -z "$ac_c_werror_flag" || | |
8501 | test ! -s conftest.err | |
8502 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8503 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes |
8504 | else | |
8505 | echo "$as_me: failed program was:" >&5 | |
8506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8507 | ||
d6e01aa5 | 8508 | ac_cv_member_struct_ifreq_ifr_hwaddr=no |
96f3a036 | 8509 | fi |
d6e01aa5 KL |
8510 | |
8511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8512 | fi |
d6e01aa5 KL |
8513 | |
8514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8515 | fi |
d6e01aa5 KL |
8516 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5 |
8517 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; } | |
96f3a036 DL |
8518 | if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then |
8519 | ||
8520 | cat >>confdefs.h <<_ACEOF | |
8521 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 | |
8522 | _ACEOF | |
8523 | ||
8524 | ||
8525 | fi | |
d6e01aa5 KL |
8526 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5 |
8527 | echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; } | |
96f3a036 DL |
8528 | if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then |
8529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8530 | else | |
8531 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8532 | /* confdefs.h. */ |
8533 | _ACEOF | |
8534 | cat confdefs.h >>conftest.$ac_ext | |
8535 | cat >>conftest.$ac_ext <<_ACEOF | |
8536 | /* end confdefs.h. */ | |
7862d3a8 AS |
8537 | $ac_includes_default |
8538 | #if HAVE_SYS_SOCKET_H | |
8539 | #include <sys/socket.h> | |
8540 | #endif | |
8541 | #if HAVE_NET_IF_H | |
96f3a036 | 8542 | #include <net/if.h> |
7862d3a8 | 8543 | #endif |
96f3a036 DL |
8544 | |
8545 | int | |
8546 | main () | |
8547 | { | |
8548 | static struct ifreq ac_aggr; | |
8549 | if (ac_aggr.ifr_netmask) | |
8550 | return 0; | |
8551 | ; | |
8552 | return 0; | |
8553 | } | |
8554 | _ACEOF | |
8555 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
8556 | if { (ac_try="$ac_compile" |
8557 | case "(($ac_try" in | |
8558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8559 | *) ac_try_echo=$ac_try;; | |
8560 | esac | |
8561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8562 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8563 | ac_status=$? |
edfaf76d LK |
8564 | grep -v '^ *+' conftest.er1 >conftest.err |
8565 | rm -f conftest.er1 | |
8566 | cat conftest.err >&5 | |
96f3a036 | 8567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
8568 | (exit $ac_status); } && { |
8569 | test -z "$ac_c_werror_flag" || | |
8570 | test ! -s conftest.err | |
8571 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8572 | ac_cv_member_struct_ifreq_ifr_netmask=yes |
8573 | else | |
8574 | echo "$as_me: failed program was:" >&5 | |
8575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8576 | ||
d6e01aa5 | 8577 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8578 | /* confdefs.h. */ |
8579 | _ACEOF | |
8580 | cat confdefs.h >>conftest.$ac_ext | |
8581 | cat >>conftest.$ac_ext <<_ACEOF | |
8582 | /* end confdefs.h. */ | |
7862d3a8 AS |
8583 | $ac_includes_default |
8584 | #if HAVE_SYS_SOCKET_H | |
8585 | #include <sys/socket.h> | |
8586 | #endif | |
8587 | #if HAVE_NET_IF_H | |
96f3a036 | 8588 | #include <net/if.h> |
7862d3a8 | 8589 | #endif |
96f3a036 DL |
8590 | |
8591 | int | |
8592 | main () | |
8593 | { | |
8594 | static struct ifreq ac_aggr; | |
8595 | if (sizeof ac_aggr.ifr_netmask) | |
8596 | return 0; | |
8597 | ; | |
8598 | return 0; | |
8599 | } | |
8600 | _ACEOF | |
8601 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
8602 | if { (ac_try="$ac_compile" |
8603 | case "(($ac_try" in | |
8604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8605 | *) ac_try_echo=$ac_try;; | |
8606 | esac | |
8607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8608 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8609 | ac_status=$? |
edfaf76d LK |
8610 | grep -v '^ *+' conftest.er1 >conftest.err |
8611 | rm -f conftest.er1 | |
8612 | cat conftest.err >&5 | |
96f3a036 | 8613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
8614 | (exit $ac_status); } && { |
8615 | test -z "$ac_c_werror_flag" || | |
8616 | test ! -s conftest.err | |
8617 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8618 | ac_cv_member_struct_ifreq_ifr_netmask=yes |
8619 | else | |
8620 | echo "$as_me: failed program was:" >&5 | |
8621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8622 | ||
d6e01aa5 | 8623 | ac_cv_member_struct_ifreq_ifr_netmask=no |
96f3a036 | 8624 | fi |
d6e01aa5 KL |
8625 | |
8626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8627 | fi |
d6e01aa5 KL |
8628 | |
8629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8630 | fi |
d6e01aa5 KL |
8631 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5 |
8632 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; } | |
96f3a036 DL |
8633 | if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then |
8634 | ||
8635 | cat >>confdefs.h <<_ACEOF | |
8636 | #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 | |
8637 | _ACEOF | |
8638 | ||
8639 | ||
8640 | fi | |
d6e01aa5 KL |
8641 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5 |
8642 | echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; } | |
96f3a036 DL |
8643 | if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then |
8644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8645 | else | |
8646 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8647 | /* confdefs.h. */ |
8648 | _ACEOF | |
8649 | cat confdefs.h >>conftest.$ac_ext | |
8650 | cat >>conftest.$ac_ext <<_ACEOF | |
8651 | /* end confdefs.h. */ | |
7862d3a8 AS |
8652 | $ac_includes_default |
8653 | #if HAVE_SYS_SOCKET_H | |
8654 | #include <sys/socket.h> | |
8655 | #endif | |
8656 | #if HAVE_NET_IF_H | |
96f3a036 | 8657 | #include <net/if.h> |
7862d3a8 | 8658 | #endif |
96f3a036 DL |
8659 | |
8660 | int | |
8661 | main () | |
8662 | { | |
8663 | static struct ifreq ac_aggr; | |
8664 | if (ac_aggr.ifr_broadaddr) | |
8665 | return 0; | |
8666 | ; | |
8667 | return 0; | |
8668 | } | |
8669 | _ACEOF | |
8670 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
8671 | if { (ac_try="$ac_compile" |
8672 | case "(($ac_try" in | |
8673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8674 | *) ac_try_echo=$ac_try;; | |
8675 | esac | |
8676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8677 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8678 | ac_status=$? |
edfaf76d LK |
8679 | grep -v '^ *+' conftest.er1 >conftest.err |
8680 | rm -f conftest.er1 | |
8681 | cat conftest.err >&5 | |
96f3a036 | 8682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
8683 | (exit $ac_status); } && { |
8684 | test -z "$ac_c_werror_flag" || | |
8685 | test ! -s conftest.err | |
8686 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8687 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes |
8688 | else | |
8689 | echo "$as_me: failed program was:" >&5 | |
8690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8691 | ||
d6e01aa5 | 8692 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8693 | /* confdefs.h. */ |
8694 | _ACEOF | |
8695 | cat confdefs.h >>conftest.$ac_ext | |
8696 | cat >>conftest.$ac_ext <<_ACEOF | |
8697 | /* end confdefs.h. */ | |
7862d3a8 AS |
8698 | $ac_includes_default |
8699 | #if HAVE_SYS_SOCKET_H | |
8700 | #include <sys/socket.h> | |
8701 | #endif | |
8702 | #if HAVE_NET_IF_H | |
96f3a036 | 8703 | #include <net/if.h> |
7862d3a8 | 8704 | #endif |
96f3a036 DL |
8705 | |
8706 | int | |
8707 | main () | |
8708 | { | |
8709 | static struct ifreq ac_aggr; | |
8710 | if (sizeof ac_aggr.ifr_broadaddr) | |
8711 | return 0; | |
8712 | ; | |
8713 | return 0; | |
8714 | } | |
8715 | _ACEOF | |
8716 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
8717 | if { (ac_try="$ac_compile" |
8718 | case "(($ac_try" in | |
8719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8720 | *) ac_try_echo=$ac_try;; | |
8721 | esac | |
8722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8723 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8724 | ac_status=$? |
edfaf76d LK |
8725 | grep -v '^ *+' conftest.er1 >conftest.err |
8726 | rm -f conftest.er1 | |
8727 | cat conftest.err >&5 | |
96f3a036 | 8728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
8729 | (exit $ac_status); } && { |
8730 | test -z "$ac_c_werror_flag" || | |
8731 | test ! -s conftest.err | |
8732 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8733 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes |
8734 | else | |
8735 | echo "$as_me: failed program was:" >&5 | |
8736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8737 | ||
d6e01aa5 | 8738 | ac_cv_member_struct_ifreq_ifr_broadaddr=no |
96f3a036 | 8739 | fi |
d6e01aa5 KL |
8740 | |
8741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8742 | fi |
d6e01aa5 KL |
8743 | |
8744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8745 | fi |
d6e01aa5 KL |
8746 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5 |
8747 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; } | |
96f3a036 DL |
8748 | if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then |
8749 | ||
8750 | cat >>confdefs.h <<_ACEOF | |
8751 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 | |
8752 | _ACEOF | |
8753 | ||
8754 | ||
8755 | fi | |
d6e01aa5 KL |
8756 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5 |
8757 | echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; } | |
96f3a036 DL |
8758 | if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then |
8759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8760 | else | |
8761 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8762 | /* confdefs.h. */ |
8763 | _ACEOF | |
8764 | cat confdefs.h >>conftest.$ac_ext | |
8765 | cat >>conftest.$ac_ext <<_ACEOF | |
8766 | /* end confdefs.h. */ | |
7862d3a8 AS |
8767 | $ac_includes_default |
8768 | #if HAVE_SYS_SOCKET_H | |
8769 | #include <sys/socket.h> | |
8770 | #endif | |
8771 | #if HAVE_NET_IF_H | |
96f3a036 | 8772 | #include <net/if.h> |
7862d3a8 | 8773 | #endif |
96f3a036 DL |
8774 | |
8775 | int | |
8776 | main () | |
8777 | { | |
8778 | static struct ifreq ac_aggr; | |
8779 | if (ac_aggr.ifr_addr) | |
8780 | return 0; | |
8781 | ; | |
8782 | return 0; | |
8783 | } | |
8784 | _ACEOF | |
8785 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
8786 | if { (ac_try="$ac_compile" |
8787 | case "(($ac_try" in | |
8788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8789 | *) ac_try_echo=$ac_try;; | |
8790 | esac | |
8791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8792 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8793 | ac_status=$? |
edfaf76d LK |
8794 | grep -v '^ *+' conftest.er1 >conftest.err |
8795 | rm -f conftest.er1 | |
8796 | cat conftest.err >&5 | |
96f3a036 | 8797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
8798 | (exit $ac_status); } && { |
8799 | test -z "$ac_c_werror_flag" || | |
8800 | test ! -s conftest.err | |
8801 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8802 | ac_cv_member_struct_ifreq_ifr_addr=yes |
8803 | else | |
8804 | echo "$as_me: failed program was:" >&5 | |
8805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8806 | ||
d6e01aa5 | 8807 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8808 | /* confdefs.h. */ |
8809 | _ACEOF | |
8810 | cat confdefs.h >>conftest.$ac_ext | |
8811 | cat >>conftest.$ac_ext <<_ACEOF | |
8812 | /* end confdefs.h. */ | |
7862d3a8 AS |
8813 | $ac_includes_default |
8814 | #if HAVE_SYS_SOCKET_H | |
8815 | #include <sys/socket.h> | |
8816 | #endif | |
8817 | #if HAVE_NET_IF_H | |
96f3a036 | 8818 | #include <net/if.h> |
7862d3a8 | 8819 | #endif |
96f3a036 DL |
8820 | |
8821 | int | |
8822 | main () | |
8823 | { | |
8824 | static struct ifreq ac_aggr; | |
8825 | if (sizeof ac_aggr.ifr_addr) | |
8826 | return 0; | |
8827 | ; | |
8828 | return 0; | |
8829 | } | |
8830 | _ACEOF | |
8831 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
8832 | if { (ac_try="$ac_compile" |
8833 | case "(($ac_try" in | |
8834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8835 | *) ac_try_echo=$ac_try;; | |
8836 | esac | |
8837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8838 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8839 | ac_status=$? |
edfaf76d LK |
8840 | grep -v '^ *+' conftest.er1 >conftest.err |
8841 | rm -f conftest.er1 | |
8842 | cat conftest.err >&5 | |
96f3a036 | 8843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
8844 | (exit $ac_status); } && { |
8845 | test -z "$ac_c_werror_flag" || | |
8846 | test ! -s conftest.err | |
8847 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8848 | ac_cv_member_struct_ifreq_ifr_addr=yes |
8849 | else | |
8850 | echo "$as_me: failed program was:" >&5 | |
8851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8852 | ||
d6e01aa5 | 8853 | ac_cv_member_struct_ifreq_ifr_addr=no |
96f3a036 | 8854 | fi |
d6e01aa5 KL |
8855 | |
8856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8857 | fi |
d6e01aa5 KL |
8858 | |
8859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8860 | fi |
d6e01aa5 KL |
8861 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5 |
8862 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; } | |
96f3a036 DL |
8863 | if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then |
8864 | ||
8865 | cat >>confdefs.h <<_ACEOF | |
8866 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 | |
8867 | _ACEOF | |
8868 | ||
8869 | ||
8870 | fi | |
8871 | ||
8799b3e4 | 8872 | |
8799b3e4 | 8873 | |
d6e01aa5 KL |
8874 | { echo "$as_me:$LINENO: checking for function prototypes" >&5 |
8875 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; } | |
8876 | if test "$ac_cv_prog_cc_c89" != no; then | |
8877 | { echo "$as_me:$LINENO: result: yes" >&5 | |
8878 | echo "${ECHO_T}yes" >&6; } | |
98418dba | 8879 | |
c0d27fcc | 8880 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8881 | #define PROTOTYPES 1 |
c0d27fcc MR |
8882 | _ACEOF |
8883 | ||
8884 | ||
8885 | cat >>confdefs.h <<\_ACEOF | |
8886 | #define __PROTOTYPES 1 | |
8887 | _ACEOF | |
98418dba CW |
8888 | |
8889 | else | |
d6e01aa5 KL |
8890 | { echo "$as_me:$LINENO: result: no" >&5 |
8891 | echo "${ECHO_T}no" >&6; } | |
98418dba CW |
8892 | fi |
8893 | ||
d6e01aa5 KL |
8894 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
8895 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } | |
98418dba CW |
8896 | if test "${ac_cv_c_volatile+set}" = set; then |
8897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8898 | else | |
8899 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8900 | /* confdefs.h. */ |
8901 | _ACEOF | |
8902 | cat confdefs.h >>conftest.$ac_ext | |
8903 | cat >>conftest.$ac_ext <<_ACEOF | |
8904 | /* end confdefs.h. */ | |
98418dba | 8905 | |
98418dba CW |
8906 | int |
8907 | main () | |
8908 | { | |
8909 | ||
8910 | volatile int x; | |
d6e01aa5 KL |
8911 | int * volatile y = (int *) 0; |
8912 | return !x && !y; | |
98418dba CW |
8913 | ; |
8914 | return 0; | |
8915 | } | |
8916 | _ACEOF | |
8917 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
8918 | if { (ac_try="$ac_compile" |
8919 | case "(($ac_try" in | |
8920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8921 | *) ac_try_echo=$ac_try;; | |
8922 | esac | |
8923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8924 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 8925 | ac_status=$? |
edfaf76d LK |
8926 | grep -v '^ *+' conftest.er1 >conftest.err |
8927 | rm -f conftest.er1 | |
8928 | cat conftest.err >&5 | |
c0d27fcc | 8929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
8930 | (exit $ac_status); } && { |
8931 | test -z "$ac_c_werror_flag" || | |
8932 | test ! -s conftest.err | |
8933 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
8934 | ac_cv_c_volatile=yes |
8935 | else | |
8936 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8937 | sed 's/^/| /' conftest.$ac_ext >&5 |
8938 | ||
d6e01aa5 | 8939 | ac_cv_c_volatile=no |
98418dba | 8940 | fi |
d6e01aa5 KL |
8941 | |
8942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 8943 | fi |
d6e01aa5 KL |
8944 | { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
8945 | echo "${ECHO_T}$ac_cv_c_volatile" >&6; } | |
98418dba CW |
8946 | if test $ac_cv_c_volatile = no; then |
8947 | ||
c0d27fcc | 8948 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8949 | #define volatile |
c0d27fcc | 8950 | _ACEOF |
98418dba CW |
8951 | |
8952 | fi | |
8953 | ||
d6e01aa5 KL |
8954 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
8955 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
98418dba CW |
8956 | if test "${ac_cv_c_const+set}" = set; then |
8957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8958 | else | |
8959 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8960 | /* confdefs.h. */ |
8961 | _ACEOF | |
8962 | cat confdefs.h >>conftest.$ac_ext | |
8963 | cat >>conftest.$ac_ext <<_ACEOF | |
8964 | /* end confdefs.h. */ | |
98418dba | 8965 | |
98418dba CW |
8966 | int |
8967 | main () | |
8968 | { | |
8969 | /* FIXME: Include the comments suggested by Paul. */ | |
8970 | #ifndef __cplusplus | |
8971 | /* Ultrix mips cc rejects this. */ | |
8972 | typedef int charset[2]; | |
d6e01aa5 | 8973 | const charset cs; |
98418dba | 8974 | /* SunOS 4.1.1 cc rejects this. */ |
d6e01aa5 KL |
8975 | char const *const *pcpcc; |
8976 | char **ppc; | |
98418dba CW |
8977 | /* NEC SVR4.0.2 mips cc rejects this. */ |
8978 | struct point {int x, y;}; | |
8979 | static struct point const zero = {0,0}; | |
8980 | /* AIX XL C 1.02.0.0 rejects this. | |
8981 | It does not let you subtract one const X* pointer from another in | |
8982 | an arm of an if-expression whose if-part is not a constant | |
8983 | expression */ | |
8984 | const char *g = "string"; | |
d6e01aa5 | 8985 | pcpcc = &g + (g ? g-g : 0); |
98418dba | 8986 | /* HPUX 7.0 cc rejects these. */ |
d6e01aa5 KL |
8987 | ++pcpcc; |
8988 | ppc = (char**) pcpcc; | |
8989 | pcpcc = (char const *const *) ppc; | |
98418dba CW |
8990 | { /* SCO 3.2v4 cc rejects this. */ |
8991 | char *t; | |
8992 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
8993 | ||
8994 | *t++ = 0; | |
d6e01aa5 | 8995 | if (s) return 0; |
98418dba CW |
8996 | } |
8997 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
8998 | int x[] = {25, 17}; | |
8999 | const int *foo = &x[0]; | |
9000 | ++foo; | |
9001 | } | |
9002 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
9003 | typedef const int *iptr; | |
9004 | iptr p = 0; | |
9005 | ++p; | |
9006 | } | |
9007 | { /* AIX XL C 1.02.0.0 rejects this saying | |
9008 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
9009 | struct s { int j; const int *ap[3]; }; | |
9010 | struct s *b; b->j = 5; | |
9011 | } | |
9012 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
9013 | const int foo = 10; | |
d6e01aa5 | 9014 | if (!foo) return 0; |
98418dba | 9015 | } |
d6e01aa5 | 9016 | return !cs[0] && !zero.x; |
98418dba CW |
9017 | #endif |
9018 | ||
9019 | ; | |
9020 | return 0; | |
9021 | } | |
9022 | _ACEOF | |
9023 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
9024 | if { (ac_try="$ac_compile" |
9025 | case "(($ac_try" in | |
9026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9027 | *) ac_try_echo=$ac_try;; | |
9028 | esac | |
9029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9030 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 9031 | ac_status=$? |
edfaf76d LK |
9032 | grep -v '^ *+' conftest.er1 >conftest.err |
9033 | rm -f conftest.er1 | |
9034 | cat conftest.err >&5 | |
c0d27fcc | 9035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
9036 | (exit $ac_status); } && { |
9037 | test -z "$ac_c_werror_flag" || | |
9038 | test ! -s conftest.err | |
9039 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
9040 | ac_cv_c_const=yes |
9041 | else | |
9042 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9043 | sed 's/^/| /' conftest.$ac_ext >&5 |
9044 | ||
d6e01aa5 | 9045 | ac_cv_c_const=no |
98418dba | 9046 | fi |
d6e01aa5 KL |
9047 | |
9048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 9049 | fi |
d6e01aa5 KL |
9050 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
9051 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
98418dba CW |
9052 | if test $ac_cv_c_const = no; then |
9053 | ||
c0d27fcc | 9054 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9055 | #define const |
c0d27fcc | 9056 | _ACEOF |
98418dba CW |
9057 | |
9058 | fi | |
9059 | ||
d6e01aa5 KL |
9060 | { echo "$as_me:$LINENO: checking for void * support" >&5 |
9061 | echo $ECHO_N "checking for void * support... $ECHO_C" >&6; } | |
98418dba CW |
9062 | if test "${emacs_cv_void_star+set}" = set; then |
9063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9064 | else | |
9065 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9066 | /* confdefs.h. */ |
9067 | _ACEOF | |
9068 | cat confdefs.h >>conftest.$ac_ext | |
9069 | cat >>conftest.$ac_ext <<_ACEOF | |
9070 | /* end confdefs.h. */ | |
98418dba | 9071 | |
98418dba CW |
9072 | int |
9073 | main () | |
9074 | { | |
9075 | void * foo; | |
9076 | ; | |
9077 | return 0; | |
9078 | } | |
9079 | _ACEOF | |
9080 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
9081 | if { (ac_try="$ac_compile" |
9082 | case "(($ac_try" in | |
9083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9084 | *) ac_try_echo=$ac_try;; | |
9085 | esac | |
9086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9087 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 9088 | ac_status=$? |
edfaf76d LK |
9089 | grep -v '^ *+' conftest.er1 >conftest.err |
9090 | rm -f conftest.er1 | |
9091 | cat conftest.err >&5 | |
c0d27fcc | 9092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
9093 | (exit $ac_status); } && { |
9094 | test -z "$ac_c_werror_flag" || | |
9095 | test ! -s conftest.err | |
9096 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
9097 | emacs_cv_void_star=yes |
9098 | else | |
9099 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9100 | sed 's/^/| /' conftest.$ac_ext >&5 |
9101 | ||
d6e01aa5 | 9102 | emacs_cv_void_star=no |
98418dba | 9103 | fi |
d6e01aa5 KL |
9104 | |
9105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 9106 | fi |
d6e01aa5 KL |
9107 | { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 |
9108 | echo "${ECHO_T}$emacs_cv_void_star" >&6; } | |
98418dba | 9109 | if test $emacs_cv_void_star = yes; then |
c0d27fcc | 9110 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9111 | #define POINTER_TYPE void |
c0d27fcc | 9112 | _ACEOF |
98418dba CW |
9113 | |
9114 | else | |
c0d27fcc | 9115 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9116 | #define POINTER_TYPE char |
c0d27fcc | 9117 | _ACEOF |
98418dba CW |
9118 | |
9119 | fi | |
9120 | ||
c0d27fcc | 9121 | |
4494a266 JD |
9122 | |
9123 | ||
cd958eb3 | 9124 | |
d6e01aa5 KL |
9125 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
9126 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
9127 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
9128 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba CW |
9129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9130 | else | |
c0d27fcc | 9131 | cat >conftest.make <<\_ACEOF |
d6e01aa5 | 9132 | SHELL = /bin/sh |
98418dba | 9133 | all: |
d6e01aa5 | 9134 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
c0d27fcc | 9135 | _ACEOF |
98418dba | 9136 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
d6e01aa5 KL |
9137 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
9138 | *@@@%%%=?*=@@@%%%*) | |
9139 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
9140 | *) | |
9141 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
9142 | esac | |
98418dba CW |
9143 | rm -f conftest.make |
9144 | fi | |
d6e01aa5 KL |
9145 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
9146 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9147 | echo "${ECHO_T}yes" >&6; } | |
98418dba CW |
9148 | SET_MAKE= |
9149 | else | |
d6e01aa5 KL |
9150 | { echo "$as_me:$LINENO: result: no" >&5 |
9151 | echo "${ECHO_T}no" >&6; } | |
98418dba CW |
9152 | SET_MAKE="MAKE=${MAKE-make}" |
9153 | fi | |
9154 | ||
c0d27fcc | 9155 | |
d6e01aa5 KL |
9156 | { echo "$as_me:$LINENO: checking for long file names" >&5 |
9157 | echo $ECHO_N "checking for long file names... $ECHO_C" >&6; } | |
98418dba CW |
9158 | if test "${ac_cv_sys_long_file_names+set}" = set; then |
9159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9160 | else | |
9161 | ac_cv_sys_long_file_names=yes | |
9162 | # Test for long file names in all the places we know might matter: | |
9163 | # . the current directory, where building will happen | |
9164 | # $prefix/lib where we will be installing things | |
9165 | # $exec_prefix/lib likewise | |
98418dba | 9166 | # $TMPDIR if set, where it might want to write temporary files |
98418dba CW |
9167 | # /tmp where it might want to write temporary files |
9168 | # /var/tmp likewise | |
9169 | # /usr/tmp likewise | |
d6e01aa5 KL |
9170 | for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do |
9171 | # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib | |
9172 | # in the usual case where exec_prefix is '${prefix}'. | |
9173 | case $ac_dir in #( | |
9174 | . | /* | ?:[\\/]*) ;; #( | |
9175 | *) continue;; | |
9176 | esac | |
9177 | test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. | |
98418dba | 9178 | ac_xdir=$ac_dir/cf$$ |
d6e01aa5 | 9179 | (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue |
98418dba CW |
9180 | ac_tf1=$ac_xdir/conftest9012345 |
9181 | ac_tf2=$ac_xdir/conftest9012346 | |
d6e01aa5 | 9182 | touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || |
98418dba | 9183 | ac_cv_sys_long_file_names=no |
d6e01aa5 KL |
9184 | rm -f -r "$ac_xdir" 2>/dev/null |
9185 | test $ac_cv_sys_long_file_names = no && break | |
98418dba CW |
9186 | done |
9187 | fi | |
d6e01aa5 KL |
9188 | { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 |
9189 | echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; } | |
98418dba CW |
9190 | if test $ac_cv_sys_long_file_names = yes; then |
9191 | ||
c0d27fcc | 9192 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9193 | #define HAVE_LONG_FILE_NAMES 1 |
c0d27fcc | 9194 | _ACEOF |
98418dba CW |
9195 | |
9196 | fi | |
9197 | ||
c0d27fcc | 9198 | |
98418dba CW |
9199 | #### Choose a window system. |
9200 | ||
d6e01aa5 KL |
9201 | { echo "$as_me:$LINENO: checking for X" >&5 |
9202 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } | |
98418dba | 9203 | |
c0d27fcc | 9204 | |
d6e01aa5 | 9205 | # Check whether --with-x was given. |
98418dba | 9206 | if test "${with_x+set}" = set; then |
d6e01aa5 KL |
9207 | withval=$with_x; |
9208 | fi | |
98418dba | 9209 | |
98418dba CW |
9210 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9211 | if test "x$with_x" = xno; then | |
9212 | # The user explicitly disabled X. | |
9213 | have_x=disabled | |
9214 | else | |
d6e01aa5 KL |
9215 | case $x_includes,$x_libraries in #( |
9216 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 | |
9217 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} | |
9218 | { (exit 1); exit 1; }; };; #( | |
9219 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then | |
98418dba CW |
9220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9221 | else | |
9222 | # One or both of the vars are not set, and there is no cached value. | |
9223 | ac_x_includes=no ac_x_libraries=no | |
d6e01aa5 | 9224 | rm -f -r conftest.dir |
98418dba CW |
9225 | if mkdir conftest.dir; then |
9226 | cd conftest.dir | |
c0d27fcc | 9227 | cat >Imakefile <<'_ACEOF' |
d6e01aa5 KL |
9228 | incroot: |
9229 | @echo incroot='${INCROOT}' | |
9230 | usrlibdir: | |
9231 | @echo usrlibdir='${USRLIBDIR}' | |
9232 | libdir: | |
9233 | @echo libdir='${LIBDIR}' | |
9234 | _ACEOF | |
9235 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | |
98418dba | 9236 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
d6e01aa5 KL |
9237 | for ac_var in incroot usrlibdir libdir; do |
9238 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | |
9239 | done | |
98418dba CW |
9240 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
9241 | for ac_extension in a so sl; do | |
d6e01aa5 KL |
9242 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
9243 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | |
edfaf76d | 9244 | ac_im_usrlibdir=$ac_im_libdir; break |
98418dba CW |
9245 | fi |
9246 | done | |
9247 | # Screen out bogus values from the imake configuration. They are | |
9248 | # bogus both because they are the default anyway, and because | |
9249 | # using them would break gcc on systems where it needs fixed includes. | |
9250 | case $ac_im_incroot in | |
d6e01aa5 | 9251 | /usr/include) ac_x_includes= ;; |
98418dba CW |
9252 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
9253 | esac | |
9254 | case $ac_im_usrlibdir in | |
9255 | /usr/lib | /lib) ;; | |
9256 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
9257 | esac | |
9258 | fi | |
9259 | cd .. | |
d6e01aa5 | 9260 | rm -f -r conftest.dir |
98418dba CW |
9261 | fi |
9262 | ||
9263 | # Standard set of common directories for X headers. | |
9264 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9265 | ac_x_header_dirs=' | |
9266 | /usr/X11/include | |
9267 | /usr/X11R6/include | |
9268 | /usr/X11R5/include | |
9269 | /usr/X11R4/include | |
9270 | ||
9271 | /usr/include/X11 | |
9272 | /usr/include/X11R6 | |
9273 | /usr/include/X11R5 | |
9274 | /usr/include/X11R4 | |
9275 | ||
9276 | /usr/local/X11/include | |
9277 | /usr/local/X11R6/include | |
9278 | /usr/local/X11R5/include | |
9279 | /usr/local/X11R4/include | |
9280 | ||
9281 | /usr/local/include/X11 | |
9282 | /usr/local/include/X11R6 | |
9283 | /usr/local/include/X11R5 | |
9284 | /usr/local/include/X11R4 | |
9285 | ||
9286 | /usr/X386/include | |
9287 | /usr/x386/include | |
9288 | /usr/XFree86/include/X11 | |
9289 | ||
9290 | /usr/include | |
9291 | /usr/local/include | |
9292 | /usr/unsupported/include | |
9293 | /usr/athena/include | |
9294 | /usr/local/x11r5/include | |
9295 | /usr/lpp/Xamples/include | |
9296 | ||
9297 | /usr/openwin/include | |
9298 | /usr/openwin/share/include' | |
9299 | ||
9300 | if test "$ac_x_includes" = no; then | |
d6e01aa5 | 9301 | # Guess where to find include files, by looking for Xlib.h. |
98418dba CW |
9302 | # First, try using that file with no special directory specified. |
9303 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9304 | /* confdefs.h. */ |
9305 | _ACEOF | |
9306 | cat confdefs.h >>conftest.$ac_ext | |
9307 | cat >>conftest.$ac_ext <<_ACEOF | |
9308 | /* end confdefs.h. */ | |
c3a63088 | 9309 | #include <X11/Xlib.h> |
98418dba | 9310 | _ACEOF |
d6e01aa5 KL |
9311 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9312 | case "(($ac_try" in | |
9313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9314 | *) ac_try_echo=$ac_try;; | |
9315 | esac | |
9316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9317 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 9318 | ac_status=$? |
6bae0ccf | 9319 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
9320 | rm -f conftest.er1 |
9321 | cat conftest.err >&5 | |
c0d27fcc | 9322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
9323 | (exit $ac_status); } >/dev/null && { |
9324 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9325 | test ! -s conftest.err | |
9326 | }; then | |
98418dba CW |
9327 | # We can compile using X headers with no special include directory. |
9328 | ac_x_includes= | |
9329 | else | |
9330 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9331 | sed 's/^/| /' conftest.$ac_ext >&5 |
9332 | ||
98418dba | 9333 | for ac_dir in $ac_x_header_dirs; do |
c3a63088 | 9334 | if test -r "$ac_dir/X11/Xlib.h"; then |
98418dba CW |
9335 | ac_x_includes=$ac_dir |
9336 | break | |
9337 | fi | |
9338 | done | |
9339 | fi | |
d6e01aa5 | 9340 | |
98418dba CW |
9341 | rm -f conftest.err conftest.$ac_ext |
9342 | fi # $ac_x_includes = no | |
9343 | ||
9344 | if test "$ac_x_libraries" = no; then | |
9345 | # Check for the libraries. | |
9346 | # See if we find them without any special options. | |
9347 | # Don't add to $LIBS permanently. | |
9348 | ac_save_LIBS=$LIBS | |
c3a63088 | 9349 | LIBS="-lX11 $LIBS" |
98418dba | 9350 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
9351 | /* confdefs.h. */ |
9352 | _ACEOF | |
9353 | cat confdefs.h >>conftest.$ac_ext | |
9354 | cat >>conftest.$ac_ext <<_ACEOF | |
9355 | /* end confdefs.h. */ | |
c3a63088 | 9356 | #include <X11/Xlib.h> |
98418dba CW |
9357 | int |
9358 | main () | |
9359 | { | |
c3a63088 | 9360 | XrmInitialize () |
98418dba CW |
9361 | ; |
9362 | return 0; | |
9363 | } | |
9364 | _ACEOF | |
9365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
9366 | if { (ac_try="$ac_link" |
9367 | case "(($ac_try" in | |
9368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9369 | *) ac_try_echo=$ac_try;; | |
9370 | esac | |
9371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9372 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 9373 | ac_status=$? |
edfaf76d LK |
9374 | grep -v '^ *+' conftest.er1 >conftest.err |
9375 | rm -f conftest.er1 | |
9376 | cat conftest.err >&5 | |
c0d27fcc | 9377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
9378 | (exit $ac_status); } && { |
9379 | test -z "$ac_c_werror_flag" || | |
9380 | test ! -s conftest.err | |
9381 | } && test -s conftest$ac_exeext && | |
9382 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
9383 | LIBS=$ac_save_LIBS |
9384 | # We can link X programs with no special library path. | |
9385 | ac_x_libraries= | |
9386 | else | |
9387 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9388 | sed 's/^/| /' conftest.$ac_ext >&5 |
9389 | ||
d6e01aa5 | 9390 | LIBS=$ac_save_LIBS |
98418dba CW |
9391 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
9392 | do | |
9393 | # Don't even attempt the hair of trying to link an X program! | |
9394 | for ac_extension in a so sl; do | |
d6e01aa5 | 9395 | if test -r "$ac_dir/libX11.$ac_extension"; then |
98418dba CW |
9396 | ac_x_libraries=$ac_dir |
9397 | break 2 | |
9398 | fi | |
9399 | done | |
9400 | done | |
9401 | fi | |
d6e01aa5 KL |
9402 | |
9403 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 9404 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
9405 | fi # $ac_x_libraries = no |
9406 | ||
d6e01aa5 KL |
9407 | case $ac_x_includes,$ac_x_libraries in #( |
9408 | no,* | *,no | *\'*) | |
9409 | # Didn't find X, or a directory has "'" in its name. | |
9410 | ac_cv_have_x="have_x=no";; #( | |
9411 | *) | |
9412 | # Record where we found X for the cache. | |
9413 | ac_cv_have_x="have_x=yes\ | |
9414 | ac_x_includes='$ac_x_includes'\ | |
9415 | ac_x_libraries='$ac_x_libraries'" | |
9416 | esac | |
98418dba | 9417 | fi |
d6e01aa5 KL |
9418 | ;; #( |
9419 | *) have_x=yes;; | |
9420 | esac | |
98418dba CW |
9421 | eval "$ac_cv_have_x" |
9422 | fi # $with_x != no | |
9423 | ||
9424 | if test "$have_x" != yes; then | |
d6e01aa5 KL |
9425 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
9426 | echo "${ECHO_T}$have_x" >&6; } | |
98418dba CW |
9427 | no_x=yes |
9428 | else | |
9429 | # If each of the values was on the command line, it overrides each guess. | |
9430 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
9431 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
9432 | # Update the cache value to reflect the command line values. | |
d6e01aa5 KL |
9433 | ac_cv_have_x="have_x=yes\ |
9434 | ac_x_includes='$x_includes'\ | |
9435 | ac_x_libraries='$x_libraries'" | |
9436 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | |
9437 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } | |
98418dba CW |
9438 | fi |
9439 | ||
9440 | if test "$no_x" = yes; then | |
9441 | window_system=none | |
9442 | else | |
9443 | window_system=x11 | |
9444 | fi | |
9445 | ||
92d1ccf4 AS |
9446 | if test "${x_libraries}" != NONE; then |
9447 | if test -n "${x_libraries}"; then | |
9448 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
9449 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
9450 | fi | |
98418dba | 9451 | x_default_search_path="" |
92d1ccf4 AS |
9452 | x_search_path=${x_libraries} |
9453 | if test -z "${x_search_path}"; then | |
9454 | x_search_path=/usr/lib | |
9455 | fi | |
9456 | for x_library in `echo ${x_search_path}: | \ | |
9457 | sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do | |
98418dba CW |
9458 | x_search_path="\ |
9459 | ${x_library}/X11/%L/%T/%N%C%S:\ | |
9460 | ${x_library}/X11/%l/%T/%N%C%S:\ | |
9461 | ${x_library}/X11/%T/%N%C%S:\ | |
9462 | ${x_library}/X11/%L/%T/%N%S:\ | |
9463 | ${x_library}/X11/%l/%T/%N%S:\ | |
9464 | ${x_library}/X11/%T/%N%S" | |
9465 | if test x"${x_default_search_path}" = x; then | |
9466 | x_default_search_path=${x_search_path} | |
9467 | else | |
9468 | x_default_search_path="${x_search_path}:${x_default_search_path}" | |
9469 | fi | |
9470 | done | |
9471 | fi | |
9472 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
9473 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
9474 | fi | |
9475 | ||
9476 | if test x"${x_includes}" = x; then | |
9477 | bitmapdir=/usr/include/X11/bitmaps | |
9478 | else | |
9479 | # accumulate include directories that have X11 bitmap subdirectories | |
9480 | bmd_acc="dummyval" | |
9481 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
9482 | if test -d "${bmd}/X11/bitmaps"; then | |
9483 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
9484 | fi | |
9485 | if test -d "${bmd}/bitmaps"; then | |
9486 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" | |
9487 | fi | |
9488 | done | |
9489 | if test ${bmd_acc} != "dummyval"; then | |
9490 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
9491 | fi | |
9492 | fi | |
9493 | ||
5d6da11e | 9494 | HAVE_CARBON=no |
1d4d5604 YM |
9495 | if test "${with_carbon}" != no; then |
9496 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
d6e01aa5 KL |
9497 | { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
9498 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; } | |
5d6da11e YM |
9499 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
9500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9501 | fi | |
d6e01aa5 KL |
9502 | { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
9503 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; } | |
5d6da11e YM |
9504 | else |
9505 | # Is the header compilable? | |
d6e01aa5 KL |
9506 | { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
9507 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; } | |
5d6da11e YM |
9508 | cat >conftest.$ac_ext <<_ACEOF |
9509 | /* confdefs.h. */ | |
9510 | _ACEOF | |
9511 | cat confdefs.h >>conftest.$ac_ext | |
9512 | cat >>conftest.$ac_ext <<_ACEOF | |
9513 | /* end confdefs.h. */ | |
9514 | $ac_includes_default | |
9515 | #include <Carbon/Carbon.h> | |
9516 | _ACEOF | |
9517 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
9518 | if { (ac_try="$ac_compile" |
9519 | case "(($ac_try" in | |
9520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9521 | *) ac_try_echo=$ac_try;; | |
9522 | esac | |
9523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9524 | (eval "$ac_compile") 2>conftest.er1 | |
5d6da11e | 9525 | ac_status=$? |
edfaf76d LK |
9526 | grep -v '^ *+' conftest.er1 >conftest.err |
9527 | rm -f conftest.er1 | |
9528 | cat conftest.err >&5 | |
5d6da11e | 9529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
9530 | (exit $ac_status); } && { |
9531 | test -z "$ac_c_werror_flag" || | |
9532 | test ! -s conftest.err | |
9533 | } && test -s conftest.$ac_objext; then | |
5d6da11e YM |
9534 | ac_header_compiler=yes |
9535 | else | |
9536 | echo "$as_me: failed program was:" >&5 | |
9537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9538 | ||
d6e01aa5 | 9539 | ac_header_compiler=no |
5d6da11e | 9540 | fi |
d6e01aa5 KL |
9541 | |
9542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9543 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9544 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
5d6da11e YM |
9545 | |
9546 | # Is the header present? | |
d6e01aa5 KL |
9547 | { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
9548 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; } | |
5d6da11e YM |
9549 | cat >conftest.$ac_ext <<_ACEOF |
9550 | /* confdefs.h. */ | |
9551 | _ACEOF | |
9552 | cat confdefs.h >>conftest.$ac_ext | |
9553 | cat >>conftest.$ac_ext <<_ACEOF | |
9554 | /* end confdefs.h. */ | |
9555 | #include <Carbon/Carbon.h> | |
9556 | _ACEOF | |
d6e01aa5 KL |
9557 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9558 | case "(($ac_try" in | |
9559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9560 | *) ac_try_echo=$ac_try;; | |
9561 | esac | |
9562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9563 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5d6da11e YM |
9564 | ac_status=$? |
9565 | grep -v '^ *+' conftest.er1 >conftest.err | |
9566 | rm -f conftest.er1 | |
9567 | cat conftest.err >&5 | |
9568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
9569 | (exit $ac_status); } >/dev/null && { |
9570 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9571 | test ! -s conftest.err | |
9572 | }; then | |
5d6da11e YM |
9573 | ac_header_preproc=yes |
9574 | else | |
9575 | echo "$as_me: failed program was:" >&5 | |
9576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9577 | ||
9578 | ac_header_preproc=no | |
9579 | fi | |
d6e01aa5 | 9580 | |
5d6da11e | 9581 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
9582 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9583 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
5d6da11e YM |
9584 | |
9585 | # So? What about this header? | |
edfaf76d LK |
9586 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9587 | yes:no: ) | |
5d6da11e YM |
9588 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9589 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
9590 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
9591 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} | |
9592 | ac_header_preproc=yes | |
5d6da11e | 9593 | ;; |
edfaf76d | 9594 | no:yes:* ) |
5d6da11e YM |
9595 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
9596 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
9597 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
9598 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} | |
9599 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 | |
9600 | echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} | |
9601 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9602 | echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5d6da11e YM |
9603 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
9604 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
9605 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
9606 | echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 9607 | |
5d6da11e YM |
9608 | ;; |
9609 | esac | |
d6e01aa5 KL |
9610 | { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
9611 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; } | |
5d6da11e YM |
9612 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
9613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9614 | else | |
9615 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc | |
9616 | fi | |
d6e01aa5 KL |
9617 | { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
9618 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; } | |
5d6da11e YM |
9619 | |
9620 | fi | |
9621 | if test $ac_cv_header_Carbon_Carbon_h = yes; then | |
9622 | HAVE_CARBON=yes | |
9623 | fi | |
9624 | ||
9625 | ||
1d4d5604 YM |
9626 | fi |
9627 | if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then | |
9628 | if test "${with_carbon+set}" != set \ | |
9629 | && test "${carbon_appdir_x+set}" != set; then | |
ec8fcb10 YM |
9630 | for var in with_x with_x_toolkit with_gtk with_xim \ |
9631 | with_xpm with_jpeg with_tiff with_gif with_png; do | |
9632 | if eval test \"\${$var+set}\" = set; then | |
9633 | HAVE_CARBON=no | |
9634 | break | |
9635 | fi | |
9636 | done | |
5d6da11e YM |
9637 | fi |
9638 | fi | |
1d4d5604 YM |
9639 | if test "${HAVE_CARBON}" = yes; then |
9640 | window_system=mac | |
9641 | fi | |
9642 | ||
9643 | case "${window_system}" in | |
9644 | x11 ) | |
9645 | HAVE_X_WINDOWS=yes | |
9646 | HAVE_X11=yes | |
9647 | case "${with_x_toolkit}" in | |
9648 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
9649 | motif ) USE_X_TOOLKIT=MOTIF ;; | |
9650 | gtk ) with_gtk=yes | |
9651 | USE_X_TOOLKIT=none ;; | |
9652 | no ) USE_X_TOOLKIT=none ;; | |
089a966d GM |
9653 | * ) |
9654 | if test x"$with_gtk" = xyes; then | |
9655 | USE_X_TOOLKIT=none | |
9656 | else | |
9657 | USE_X_TOOLKIT=maybe | |
9658 | fi | |
9659 | ;; | |
1d4d5604 YM |
9660 | esac |
9661 | ;; | |
9662 | mac | none ) | |
9663 | HAVE_X_WINDOWS=no | |
9664 | HAVE_X11=no | |
9665 | USE_X_TOOLKIT=none | |
9666 | ;; | |
9667 | esac | |
9668 | ||
cfe440b8 JD |
9669 | if test "$window_system" = none && test "X$with_x" != "Xno"; then |
9670 | # Extract the first word of "X", so it can be a program name with args. | |
9671 | set dummy X; ac_word=$2 | |
9672 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
9674 | if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then | |
9675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9676 | else | |
9677 | if test -n "$HAVE_XSERVER"; then | |
9678 | ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. | |
9679 | else | |
9680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9681 | for as_dir in $PATH | |
9682 | do | |
9683 | IFS=$as_save_IFS | |
9684 | test -z "$as_dir" && as_dir=. | |
9685 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9686 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9687 | ac_cv_prog_HAVE_XSERVER="true" | |
9688 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9689 | break 2 | |
9690 | fi | |
9691 | done | |
9692 | done | |
9693 | IFS=$as_save_IFS | |
9694 | ||
9695 | test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" | |
9696 | fi | |
9697 | fi | |
9698 | HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER | |
9699 | if test -n "$HAVE_XSERVER"; then | |
9700 | { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5 | |
9701 | echo "${ECHO_T}$HAVE_XSERVER" >&6; } | |
9702 | else | |
9703 | { echo "$as_me:$LINENO: result: no" >&5 | |
9704 | echo "${ECHO_T}no" >&6; } | |
9705 | fi | |
9706 | ||
9707 | ||
9708 | if test "$HAVE_XSERVER" = true || | |
9709 | test -n "$DISPLAY" || | |
9710 | test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then | |
9711 | { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries | |
0cfc0546 GM |
9712 | were found. You should install the relevant development files for X |
9713 | and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make | |
cfe440b8 JD |
9714 | sure you have development files for image handling, i.e. |
9715 | tiff, gif, jpeg, png and xpm. | |
9716 | If you are sure you want Emacs compiled without X window support, pass | |
9717 | --without-x | |
9718 | to configure." >&5 | |
9719 | echo "$as_me: error: You seem to be running X, but no X development libraries | |
0cfc0546 GM |
9720 | were found. You should install the relevant development files for X |
9721 | and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make | |
cfe440b8 JD |
9722 | sure you have development files for image handling, i.e. |
9723 | tiff, gif, jpeg, png and xpm. | |
9724 | If you are sure you want Emacs compiled without X window support, pass | |
9725 | --without-x | |
9726 | to configure." >&2;} | |
9727 | { (exit 1); exit 1; }; } | |
9728 | fi | |
9729 | fi | |
9730 | ||
1d4d5604 YM |
9731 | ### If we're using X11, we should use the X menu package. |
9732 | HAVE_MENUS=no | |
9733 | case ${HAVE_X11} in | |
9734 | yes ) HAVE_MENUS=yes ;; | |
9735 | esac | |
9736 | ||
9737 | if test "${opsys}" = "hpux9"; then | |
9738 | case "${x_libraries}" in | |
9739 | *X11R4* ) | |
9740 | opsysfile="s/hpux9-x11r4.h" | |
9741 | ;; | |
9742 | esac | |
9743 | fi | |
9744 | ||
9745 | if test "${opsys}" = "hpux9shr"; then | |
9746 | case "${x_libraries}" in | |
9747 | *X11R4* ) | |
9748 | opsysfile="s/hpux9shxr4.h" | |
9749 | ;; | |
9750 | esac | |
9751 | fi | |
5d6da11e | 9752 | |
98418dba CW |
9753 | ### Compute the unexec source name from the object name. |
9754 | UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
9755 | ||
9756 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
9757 | # Assume not, until told otherwise. | |
9758 | GNU_MALLOC=yes | |
9759 | doug_lea_malloc=yes | |
d6e01aa5 KL |
9760 | { echo "$as_me:$LINENO: checking for malloc_get_state" >&5 |
9761 | echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; } | |
98418dba CW |
9762 | if test "${ac_cv_func_malloc_get_state+set}" = set; then |
9763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9764 | else | |
9765 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9766 | /* confdefs.h. */ |
9767 | _ACEOF | |
9768 | cat confdefs.h >>conftest.$ac_ext | |
9769 | cat >>conftest.$ac_ext <<_ACEOF | |
9770 | /* end confdefs.h. */ | |
edfaf76d LK |
9771 | /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state. |
9772 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9773 | #define malloc_get_state innocuous_malloc_get_state | |
9774 | ||
98418dba | 9775 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
9776 | which can conflict with char malloc_get_state (); below. |
9777 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9778 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 9779 | |
19650fd6 AS |
9780 | #ifdef __STDC__ |
9781 | # include <limits.h> | |
9782 | #else | |
9783 | # include <assert.h> | |
9784 | #endif | |
edfaf76d LK |
9785 | |
9786 | #undef malloc_get_state | |
9787 | ||
d6e01aa5 KL |
9788 | /* Override any GCC internal prototype to avoid an error. |
9789 | Use char because int might match the return type of a GCC | |
9790 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
9791 | #ifdef __cplusplus |
9792 | extern "C" | |
9793 | #endif | |
98418dba | 9794 | char malloc_get_state (); |
98418dba CW |
9795 | /* The GNU C library defines this for functions which it implements |
9796 | to always fail with ENOSYS. Some functions are actually named | |
9797 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 9798 | #if defined __stub_malloc_get_state || defined __stub___malloc_get_state |
98418dba | 9799 | choke me |
98418dba CW |
9800 | #endif |
9801 | ||
19650fd6 AS |
9802 | int |
9803 | main () | |
9804 | { | |
d6e01aa5 | 9805 | return malloc_get_state (); |
98418dba CW |
9806 | ; |
9807 | return 0; | |
9808 | } | |
9809 | _ACEOF | |
9810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
9811 | if { (ac_try="$ac_link" |
9812 | case "(($ac_try" in | |
9813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9814 | *) ac_try_echo=$ac_try;; | |
9815 | esac | |
9816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9817 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 9818 | ac_status=$? |
edfaf76d LK |
9819 | grep -v '^ *+' conftest.er1 >conftest.err |
9820 | rm -f conftest.er1 | |
9821 | cat conftest.err >&5 | |
c0d27fcc | 9822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
9823 | (exit $ac_status); } && { |
9824 | test -z "$ac_c_werror_flag" || | |
9825 | test ! -s conftest.err | |
9826 | } && test -s conftest$ac_exeext && | |
9827 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
9828 | ac_cv_func_malloc_get_state=yes |
9829 | else | |
9830 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9831 | sed 's/^/| /' conftest.$ac_ext >&5 |
9832 | ||
d6e01aa5 | 9833 | ac_cv_func_malloc_get_state=no |
98418dba | 9834 | fi |
d6e01aa5 KL |
9835 | |
9836 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 9837 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 9838 | fi |
d6e01aa5 KL |
9839 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 |
9840 | echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; } | |
98418dba CW |
9841 | if test $ac_cv_func_malloc_get_state = yes; then |
9842 | : | |
9843 | else | |
9844 | doug_lea_malloc=no | |
9845 | fi | |
9846 | ||
d6e01aa5 KL |
9847 | { echo "$as_me:$LINENO: checking for malloc_set_state" >&5 |
9848 | echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; } | |
98418dba CW |
9849 | if test "${ac_cv_func_malloc_set_state+set}" = set; then |
9850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9851 | else | |
9852 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9853 | /* confdefs.h. */ |
9854 | _ACEOF | |
9855 | cat confdefs.h >>conftest.$ac_ext | |
9856 | cat >>conftest.$ac_ext <<_ACEOF | |
9857 | /* end confdefs.h. */ | |
edfaf76d LK |
9858 | /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state. |
9859 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9860 | #define malloc_set_state innocuous_malloc_set_state | |
9861 | ||
98418dba | 9862 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
9863 | which can conflict with char malloc_set_state (); below. |
9864 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9865 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 9866 | |
19650fd6 AS |
9867 | #ifdef __STDC__ |
9868 | # include <limits.h> | |
9869 | #else | |
9870 | # include <assert.h> | |
9871 | #endif | |
edfaf76d LK |
9872 | |
9873 | #undef malloc_set_state | |
9874 | ||
d6e01aa5 KL |
9875 | /* Override any GCC internal prototype to avoid an error. |
9876 | Use char because int might match the return type of a GCC | |
9877 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
9878 | #ifdef __cplusplus |
9879 | extern "C" | |
9880 | #endif | |
98418dba | 9881 | char malloc_set_state (); |
98418dba CW |
9882 | /* The GNU C library defines this for functions which it implements |
9883 | to always fail with ENOSYS. Some functions are actually named | |
9884 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 9885 | #if defined __stub_malloc_set_state || defined __stub___malloc_set_state |
98418dba | 9886 | choke me |
98418dba CW |
9887 | #endif |
9888 | ||
19650fd6 AS |
9889 | int |
9890 | main () | |
9891 | { | |
d6e01aa5 | 9892 | return malloc_set_state (); |
98418dba CW |
9893 | ; |
9894 | return 0; | |
9895 | } | |
9896 | _ACEOF | |
9897 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
9898 | if { (ac_try="$ac_link" |
9899 | case "(($ac_try" in | |
9900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9901 | *) ac_try_echo=$ac_try;; | |
9902 | esac | |
9903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9904 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 9905 | ac_status=$? |
edfaf76d LK |
9906 | grep -v '^ *+' conftest.er1 >conftest.err |
9907 | rm -f conftest.er1 | |
9908 | cat conftest.err >&5 | |
c0d27fcc | 9909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
9910 | (exit $ac_status); } && { |
9911 | test -z "$ac_c_werror_flag" || | |
9912 | test ! -s conftest.err | |
9913 | } && test -s conftest$ac_exeext && | |
9914 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
9915 | ac_cv_func_malloc_set_state=yes |
9916 | else | |
9917 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9918 | sed 's/^/| /' conftest.$ac_ext >&5 |
9919 | ||
d6e01aa5 | 9920 | ac_cv_func_malloc_set_state=no |
98418dba | 9921 | fi |
d6e01aa5 KL |
9922 | |
9923 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 9924 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 9925 | fi |
d6e01aa5 KL |
9926 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 |
9927 | echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; } | |
98418dba CW |
9928 | if test $ac_cv_func_malloc_set_state = yes; then |
9929 | : | |
9930 | else | |
9931 | doug_lea_malloc=no | |
9932 | fi | |
9933 | ||
d6e01aa5 KL |
9934 | { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 |
9935 | echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; } | |
98418dba CW |
9936 | if test "${emacs_cv_var___after_morecore_hook+set}" = set; then |
9937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9938 | else | |
9939 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9940 | /* confdefs.h. */ |
9941 | _ACEOF | |
9942 | cat confdefs.h >>conftest.$ac_ext | |
9943 | cat >>conftest.$ac_ext <<_ACEOF | |
9944 | /* end confdefs.h. */ | |
98418dba | 9945 | extern void (* __after_morecore_hook)(); |
98418dba CW |
9946 | int |
9947 | main () | |
9948 | { | |
9949 | __after_morecore_hook = 0 | |
9950 | ; | |
9951 | return 0; | |
9952 | } | |
9953 | _ACEOF | |
9954 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
9955 | if { (ac_try="$ac_link" |
9956 | case "(($ac_try" in | |
9957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9958 | *) ac_try_echo=$ac_try;; | |
9959 | esac | |
9960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9961 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 9962 | ac_status=$? |
edfaf76d LK |
9963 | grep -v '^ *+' conftest.er1 >conftest.err |
9964 | rm -f conftest.er1 | |
9965 | cat conftest.err >&5 | |
c0d27fcc | 9966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
9967 | (exit $ac_status); } && { |
9968 | test -z "$ac_c_werror_flag" || | |
9969 | test ! -s conftest.err | |
9970 | } && test -s conftest$ac_exeext && | |
9971 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
9972 | emacs_cv_var___after_morecore_hook=yes |
9973 | else | |
9974 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9975 | sed 's/^/| /' conftest.$ac_ext >&5 |
9976 | ||
d6e01aa5 | 9977 | emacs_cv_var___after_morecore_hook=no |
98418dba | 9978 | fi |
d6e01aa5 KL |
9979 | |
9980 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 9981 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 9982 | fi |
d6e01aa5 KL |
9983 | { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 |
9984 | echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; } | |
98418dba CW |
9985 | if test $emacs_cv_var___after_morecore_hook = no; then |
9986 | doug_lea_malloc=no | |
9987 | fi | |
9988 | if test "${system_malloc}" = "yes"; then | |
9989 | GNU_MALLOC=no | |
9990 | GNU_MALLOC_reason=" | |
9991 | (The GNU allocators don't work with this system configuration.)" | |
9992 | fi | |
9993 | if test "$doug_lea_malloc" = "yes" ; then | |
9994 | if test "$GNU_MALLOC" = yes ; then | |
9995 | GNU_MALLOC_reason=" | |
9996 | (Using Doug Lea's new malloc from the GNU C Library.)" | |
9997 | fi | |
b936fae4 | 9998 | |
c0d27fcc | 9999 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10000 | #define DOUG_LEA_MALLOC 1 |
c0d27fcc | 10001 | _ACEOF |
98418dba CW |
10002 | |
10003 | fi | |
10004 | ||
10005 | if test x"${REL_ALLOC}" = x; then | |
10006 | REL_ALLOC=${GNU_MALLOC} | |
10007 | fi | |
10008 | ||
10009 | ||
c0d27fcc MR |
10010 | |
10011 | ||
10012 | for ac_header in stdlib.h unistd.h | |
98418dba CW |
10013 | do |
10014 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
10015 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10016 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10017 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10018 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba | 10019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 10020 | fi |
d6e01aa5 KL |
10021 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10022 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10023 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 10024 | else |
c0d27fcc | 10025 | # Is the header compilable? |
d6e01aa5 KL |
10026 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10027 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 10028 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10029 | /* confdefs.h. */ |
10030 | _ACEOF | |
10031 | cat confdefs.h >>conftest.$ac_ext | |
10032 | cat >>conftest.$ac_ext <<_ACEOF | |
10033 | /* end confdefs.h. */ | |
98418dba CW |
10034 | $ac_includes_default |
10035 | #include <$ac_header> | |
10036 | _ACEOF | |
10037 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
10038 | if { (ac_try="$ac_compile" |
10039 | case "(($ac_try" in | |
10040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10041 | *) ac_try_echo=$ac_try;; | |
10042 | esac | |
10043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10044 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 10045 | ac_status=$? |
edfaf76d LK |
10046 | grep -v '^ *+' conftest.er1 >conftest.err |
10047 | rm -f conftest.er1 | |
10048 | cat conftest.err >&5 | |
c0d27fcc | 10049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
10050 | (exit $ac_status); } && { |
10051 | test -z "$ac_c_werror_flag" || | |
10052 | test ! -s conftest.err | |
10053 | } && test -s conftest.$ac_objext; then | |
c0d27fcc | 10054 | ac_header_compiler=yes |
98418dba CW |
10055 | else |
10056 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10057 | sed 's/^/| /' conftest.$ac_ext >&5 |
10058 | ||
d6e01aa5 | 10059 | ac_header_compiler=no |
98418dba | 10060 | fi |
d6e01aa5 KL |
10061 | |
10062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10063 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10064 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
98418dba | 10065 | |
c0d27fcc | 10066 | # Is the header present? |
d6e01aa5 KL |
10067 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10068 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 10069 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10070 | /* confdefs.h. */ |
10071 | _ACEOF | |
10072 | cat confdefs.h >>conftest.$ac_ext | |
10073 | cat >>conftest.$ac_ext <<_ACEOF | |
10074 | /* end confdefs.h. */ | |
98418dba CW |
10075 | #include <$ac_header> |
10076 | _ACEOF | |
d6e01aa5 KL |
10077 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10078 | case "(($ac_try" in | |
10079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10080 | *) ac_try_echo=$ac_try;; | |
10081 | esac | |
10082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10083 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 10084 | ac_status=$? |
6bae0ccf | 10085 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
10086 | rm -f conftest.er1 |
10087 | cat conftest.err >&5 | |
c0d27fcc | 10088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
10089 | (exit $ac_status); } >/dev/null && { |
10090 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10091 | test ! -s conftest.err | |
10092 | }; then | |
c0d27fcc | 10093 | ac_header_preproc=yes |
98418dba CW |
10094 | else |
10095 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10096 | sed 's/^/| /' conftest.$ac_ext >&5 |
10097 | ||
c0d27fcc | 10098 | ac_header_preproc=no |
98418dba | 10099 | fi |
d6e01aa5 | 10100 | |
98418dba | 10101 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
10102 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10103 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
10104 | |
10105 | # So? What about this header? | |
edfaf76d LK |
10106 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10107 | yes:no: ) | |
c0d27fcc MR |
10108 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10109 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
10110 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10111 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10112 | ac_header_preproc=yes | |
10113 | ;; | |
10114 | no:yes:* ) | |
10115 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10116 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10117 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10118 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10119 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10120 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10121 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10122 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7c9e5167 JD |
10123 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10124 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
10125 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10126 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 10127 | |
19650fd6 | 10128 | ;; |
c0d27fcc | 10129 | esac |
d6e01aa5 KL |
10130 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10131 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10132 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
10133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10134 | else | |
edfaf76d | 10135 | eval "$as_ac_Header=\$ac_header_preproc" |
98418dba | 10136 | fi |
d6e01aa5 KL |
10137 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10138 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10139 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
10140 | |
10141 | fi | |
98418dba | 10142 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 10143 | cat >>confdefs.h <<_ACEOF |
98418dba | 10144 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 10145 | _ACEOF |
98418dba CW |
10146 | |
10147 | fi | |
c0d27fcc | 10148 | |
98418dba CW |
10149 | done |
10150 | ||
c0d27fcc | 10151 | |
98418dba CW |
10152 | for ac_func in getpagesize |
10153 | do | |
10154 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
d6e01aa5 KL |
10155 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10156 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10157 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba CW |
10158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10159 | else | |
10160 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10161 | /* confdefs.h. */ |
10162 | _ACEOF | |
10163 | cat confdefs.h >>conftest.$ac_ext | |
10164 | cat >>conftest.$ac_ext <<_ACEOF | |
10165 | /* end confdefs.h. */ | |
edfaf76d LK |
10166 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10167 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10168 | #define $ac_func innocuous_$ac_func | |
10169 | ||
98418dba | 10170 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
10171 | which can conflict with char $ac_func (); below. |
10172 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10173 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 10174 | |
19650fd6 AS |
10175 | #ifdef __STDC__ |
10176 | # include <limits.h> | |
10177 | #else | |
10178 | # include <assert.h> | |
10179 | #endif | |
edfaf76d LK |
10180 | |
10181 | #undef $ac_func | |
10182 | ||
d6e01aa5 KL |
10183 | /* Override any GCC internal prototype to avoid an error. |
10184 | Use char because int might match the return type of a GCC | |
10185 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
10186 | #ifdef __cplusplus |
10187 | extern "C" | |
10188 | #endif | |
98418dba | 10189 | char $ac_func (); |
98418dba CW |
10190 | /* The GNU C library defines this for functions which it implements |
10191 | to always fail with ENOSYS. Some functions are actually named | |
10192 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 10193 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 10194 | choke me |
98418dba CW |
10195 | #endif |
10196 | ||
19650fd6 AS |
10197 | int |
10198 | main () | |
10199 | { | |
d6e01aa5 | 10200 | return $ac_func (); |
98418dba CW |
10201 | ; |
10202 | return 0; | |
10203 | } | |
10204 | _ACEOF | |
10205 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
10206 | if { (ac_try="$ac_link" |
10207 | case "(($ac_try" in | |
10208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10209 | *) ac_try_echo=$ac_try;; | |
10210 | esac | |
10211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10212 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10213 | ac_status=$? |
edfaf76d LK |
10214 | grep -v '^ *+' conftest.er1 >conftest.err |
10215 | rm -f conftest.er1 | |
10216 | cat conftest.err >&5 | |
c0d27fcc | 10217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
10218 | (exit $ac_status); } && { |
10219 | test -z "$ac_c_werror_flag" || | |
10220 | test ! -s conftest.err | |
10221 | } && test -s conftest$ac_exeext && | |
10222 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10223 | eval "$as_ac_var=yes" |
10224 | else | |
10225 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10226 | sed 's/^/| /' conftest.$ac_ext >&5 |
10227 | ||
d6e01aa5 | 10228 | eval "$as_ac_var=no" |
98418dba | 10229 | fi |
d6e01aa5 KL |
10230 | |
10231 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 10232 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 10233 | fi |
d6e01aa5 KL |
10234 | ac_res=`eval echo '${'$as_ac_var'}'` |
10235 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10236 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 10237 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 10238 | cat >>confdefs.h <<_ACEOF |
98418dba | 10239 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 10240 | _ACEOF |
98418dba CW |
10241 | |
10242 | fi | |
10243 | done | |
10244 | ||
d6e01aa5 KL |
10245 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
10246 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
98418dba CW |
10247 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
10248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10249 | else | |
10250 | if test "$cross_compiling" = yes; then | |
10251 | ac_cv_func_mmap_fixed_mapped=no | |
10252 | else | |
10253 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10254 | /* confdefs.h. */ |
10255 | _ACEOF | |
10256 | cat confdefs.h >>conftest.$ac_ext | |
10257 | cat >>conftest.$ac_ext <<_ACEOF | |
10258 | /* end confdefs.h. */ | |
98418dba | 10259 | $ac_includes_default |
c0d27fcc MR |
10260 | /* malloc might have been renamed as rpl_malloc. */ |
10261 | #undef malloc | |
10262 | ||
98418dba CW |
10263 | /* Thanks to Mike Haertel and Jim Avera for this test. |
10264 | Here is a matrix of mmap possibilities: | |
10265 | mmap private not fixed | |
10266 | mmap private fixed at somewhere currently unmapped | |
10267 | mmap private fixed at somewhere already mapped | |
10268 | mmap shared not fixed | |
10269 | mmap shared fixed at somewhere currently unmapped | |
10270 | mmap shared fixed at somewhere already mapped | |
10271 | For private mappings, we should verify that changes cannot be read() | |
10272 | back from the file, nor mmap's back from the file at a different | |
10273 | address. (There have been systems where private was not correctly | |
10274 | implemented like the infamous i386 svr4.0, and systems where the | |
10275 | VM page cache was not coherent with the file system buffer cache | |
10276 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
10277 | For shared mappings, we should conversely verify that changes get | |
c0d27fcc | 10278 | propagated back to all the places they're supposed to be. |
98418dba CW |
10279 | |
10280 | Grep wants private fixed already mapped. | |
10281 | The main things grep needs to know about mmap are: | |
10282 | * does it exist and is it safe to write into the mmap'd area | |
10283 | * how to use it (BSD variants) */ | |
10284 | ||
10285 | #include <fcntl.h> | |
10286 | #include <sys/mman.h> | |
10287 | ||
d6e01aa5 | 10288 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
98418dba CW |
10289 | char *malloc (); |
10290 | #endif | |
10291 | ||
10292 | /* This mess was copied from the GNU getpagesize.h. */ | |
d6e01aa5 | 10293 | #ifndef HAVE_GETPAGESIZE |
98418dba | 10294 | /* Assume that all systems that can run configure have sys/param.h. */ |
d6e01aa5 | 10295 | # ifndef HAVE_SYS_PARAM_H |
98418dba CW |
10296 | # define HAVE_SYS_PARAM_H 1 |
10297 | # endif | |
10298 | ||
10299 | # ifdef _SC_PAGESIZE | |
10300 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
10301 | # else /* no _SC_PAGESIZE */ | |
d6e01aa5 | 10302 | # ifdef HAVE_SYS_PARAM_H |
98418dba CW |
10303 | # include <sys/param.h> |
10304 | # ifdef EXEC_PAGESIZE | |
10305 | # define getpagesize() EXEC_PAGESIZE | |
10306 | # else /* no EXEC_PAGESIZE */ | |
10307 | # ifdef NBPG | |
10308 | # define getpagesize() NBPG * CLSIZE | |
10309 | # ifndef CLSIZE | |
10310 | # define CLSIZE 1 | |
10311 | # endif /* no CLSIZE */ | |
10312 | # else /* no NBPG */ | |
10313 | # ifdef NBPC | |
10314 | # define getpagesize() NBPC | |
10315 | # else /* no NBPC */ | |
10316 | # ifdef PAGESIZE | |
10317 | # define getpagesize() PAGESIZE | |
10318 | # endif /* PAGESIZE */ | |
10319 | # endif /* no NBPC */ | |
10320 | # endif /* no NBPG */ | |
10321 | # endif /* no EXEC_PAGESIZE */ | |
10322 | # else /* no HAVE_SYS_PARAM_H */ | |
10323 | # define getpagesize() 8192 /* punt totally */ | |
10324 | # endif /* no HAVE_SYS_PARAM_H */ | |
10325 | # endif /* no _SC_PAGESIZE */ | |
10326 | ||
10327 | #endif /* no HAVE_GETPAGESIZE */ | |
10328 | ||
10329 | int | |
10330 | main () | |
10331 | { | |
10332 | char *data, *data2, *data3; | |
10333 | int i, pagesize; | |
10334 | int fd; | |
10335 | ||
10336 | pagesize = getpagesize (); | |
10337 | ||
10338 | /* First, make a file with some known garbage in it. */ | |
10339 | data = (char *) malloc (pagesize); | |
10340 | if (!data) | |
d6e01aa5 | 10341 | return 1; |
98418dba CW |
10342 | for (i = 0; i < pagesize; ++i) |
10343 | *(data + i) = rand (); | |
10344 | umask (0); | |
10345 | fd = creat ("conftest.mmap", 0600); | |
10346 | if (fd < 0) | |
d6e01aa5 | 10347 | return 1; |
98418dba | 10348 | if (write (fd, data, pagesize) != pagesize) |
d6e01aa5 | 10349 | return 1; |
98418dba CW |
10350 | close (fd); |
10351 | ||
10352 | /* Next, try to mmap the file at a fixed address which already has | |
10353 | something else allocated at it. If we can, also make sure that | |
10354 | we see the same garbage. */ | |
10355 | fd = open ("conftest.mmap", O_RDWR); | |
10356 | if (fd < 0) | |
d6e01aa5 | 10357 | return 1; |
98418dba CW |
10358 | data2 = (char *) malloc (2 * pagesize); |
10359 | if (!data2) | |
d6e01aa5 KL |
10360 | return 1; |
10361 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
98418dba | 10362 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
edfaf76d | 10363 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
d6e01aa5 | 10364 | return 1; |
98418dba CW |
10365 | for (i = 0; i < pagesize; ++i) |
10366 | if (*(data + i) != *(data2 + i)) | |
d6e01aa5 | 10367 | return 1; |
98418dba CW |
10368 | |
10369 | /* Finally, make sure that changes to the mapped area do not | |
10370 | percolate back to the file as seen by read(). (This is a bug on | |
10371 | some variants of i386 svr4.0.) */ | |
10372 | for (i = 0; i < pagesize; ++i) | |
10373 | *(data2 + i) = *(data2 + i) + 1; | |
10374 | data3 = (char *) malloc (pagesize); | |
10375 | if (!data3) | |
d6e01aa5 | 10376 | return 1; |
98418dba | 10377 | if (read (fd, data3, pagesize) != pagesize) |
d6e01aa5 | 10378 | return 1; |
98418dba CW |
10379 | for (i = 0; i < pagesize; ++i) |
10380 | if (*(data + i) != *(data3 + i)) | |
d6e01aa5 | 10381 | return 1; |
98418dba | 10382 | close (fd); |
d6e01aa5 | 10383 | return 0; |
98418dba CW |
10384 | } |
10385 | _ACEOF | |
10386 | rm -f conftest$ac_exeext | |
d6e01aa5 KL |
10387 | if { (ac_try="$ac_link" |
10388 | case "(($ac_try" in | |
10389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10390 | *) ac_try_echo=$ac_try;; | |
10391 | esac | |
10392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10393 | (eval "$ac_link") 2>&5 | |
98418dba | 10394 | ac_status=$? |
c0d27fcc | 10395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10396 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d6e01aa5 KL |
10397 | { (case "(($ac_try" in |
10398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10399 | *) ac_try_echo=$ac_try;; | |
10400 | esac | |
10401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10402 | (eval "$ac_try") 2>&5 | |
98418dba | 10403 | ac_status=$? |
c0d27fcc | 10404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10405 | (exit $ac_status); }; }; then |
10406 | ac_cv_func_mmap_fixed_mapped=yes | |
10407 | else | |
10408 | echo "$as_me: program exited with status $ac_status" >&5 | |
10409 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10410 | sed 's/^/| /' conftest.$ac_ext >&5 |
10411 | ||
c0d27fcc | 10412 | ( exit $ac_status ) |
98418dba CW |
10413 | ac_cv_func_mmap_fixed_mapped=no |
10414 | fi | |
d6e01aa5 | 10415 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
98418dba | 10416 | fi |
d6e01aa5 KL |
10417 | |
10418 | ||
98418dba | 10419 | fi |
d6e01aa5 KL |
10420 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
10421 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
98418dba CW |
10422 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
10423 | ||
c0d27fcc | 10424 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10425 | #define HAVE_MMAP 1 |
c0d27fcc | 10426 | _ACEOF |
98418dba CW |
10427 | |
10428 | fi | |
10429 | rm -f conftest.mmap | |
10430 | ||
10431 | if test $use_mmap_for_buffers = yes; then | |
10432 | REL_ALLOC=no | |
10433 | fi | |
10434 | ||
10435 | LIBS="$libsrc_libs $LIBS" | |
10436 | ||
c0d27fcc | 10437 | |
d6e01aa5 KL |
10438 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
10439 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } | |
98418dba CW |
10440 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
10441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10442 | else | |
10443 | ac_check_lib_save_LIBS=$LIBS | |
10444 | LIBS="-ldnet $LIBS" | |
10445 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10446 | /* confdefs.h. */ |
10447 | _ACEOF | |
10448 | cat confdefs.h >>conftest.$ac_ext | |
10449 | cat >>conftest.$ac_ext <<_ACEOF | |
10450 | /* end confdefs.h. */ | |
98418dba | 10451 | |
d6e01aa5 KL |
10452 | /* Override any GCC internal prototype to avoid an error. |
10453 | Use char because int might match the return type of a GCC | |
10454 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
10455 | #ifdef __cplusplus |
10456 | extern "C" | |
10457 | #endif | |
98418dba | 10458 | char dnet_ntoa (); |
98418dba CW |
10459 | int |
10460 | main () | |
10461 | { | |
d6e01aa5 | 10462 | return dnet_ntoa (); |
98418dba CW |
10463 | ; |
10464 | return 0; | |
10465 | } | |
10466 | _ACEOF | |
10467 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
10468 | if { (ac_try="$ac_link" |
10469 | case "(($ac_try" in | |
10470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10471 | *) ac_try_echo=$ac_try;; | |
10472 | esac | |
10473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10474 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10475 | ac_status=$? |
edfaf76d LK |
10476 | grep -v '^ *+' conftest.er1 >conftest.err |
10477 | rm -f conftest.er1 | |
10478 | cat conftest.err >&5 | |
c0d27fcc | 10479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
10480 | (exit $ac_status); } && { |
10481 | test -z "$ac_c_werror_flag" || | |
10482 | test ! -s conftest.err | |
10483 | } && test -s conftest$ac_exeext && | |
10484 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10485 | ac_cv_lib_dnet_dnet_ntoa=yes |
10486 | else | |
10487 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10488 | sed 's/^/| /' conftest.$ac_ext >&5 |
10489 | ||
d6e01aa5 | 10490 | ac_cv_lib_dnet_dnet_ntoa=no |
98418dba | 10491 | fi |
d6e01aa5 KL |
10492 | |
10493 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 10494 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10495 | LIBS=$ac_check_lib_save_LIBS |
10496 | fi | |
d6e01aa5 KL |
10497 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
10498 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } | |
98418dba | 10499 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
c0d27fcc | 10500 | cat >>confdefs.h <<_ACEOF |
98418dba | 10501 | #define HAVE_LIBDNET 1 |
c0d27fcc | 10502 | _ACEOF |
98418dba CW |
10503 | |
10504 | LIBS="-ldnet $LIBS" | |
10505 | ||
10506 | fi | |
10507 | ||
c0d27fcc | 10508 | |
d6e01aa5 KL |
10509 | { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 |
10510 | echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; } | |
98418dba CW |
10511 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then |
10512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10513 | else | |
10514 | ac_check_lib_save_LIBS=$LIBS | |
10515 | LIBS="-lXbsd $LIBS" | |
10516 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10517 | /* confdefs.h. */ |
10518 | _ACEOF | |
10519 | cat confdefs.h >>conftest.$ac_ext | |
10520 | cat >>conftest.$ac_ext <<_ACEOF | |
10521 | /* end confdefs.h. */ | |
98418dba | 10522 | |
c0d27fcc | 10523 | |
98418dba CW |
10524 | int |
10525 | main () | |
10526 | { | |
d6e01aa5 | 10527 | return main (); |
98418dba CW |
10528 | ; |
10529 | return 0; | |
10530 | } | |
10531 | _ACEOF | |
10532 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
10533 | if { (ac_try="$ac_link" |
10534 | case "(($ac_try" in | |
10535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10536 | *) ac_try_echo=$ac_try;; | |
10537 | esac | |
10538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10539 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10540 | ac_status=$? |
edfaf76d LK |
10541 | grep -v '^ *+' conftest.er1 >conftest.err |
10542 | rm -f conftest.er1 | |
10543 | cat conftest.err >&5 | |
c0d27fcc | 10544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
10545 | (exit $ac_status); } && { |
10546 | test -z "$ac_c_werror_flag" || | |
10547 | test ! -s conftest.err | |
10548 | } && test -s conftest$ac_exeext && | |
10549 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10550 | ac_cv_lib_Xbsd_main=yes |
10551 | else | |
10552 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10553 | sed 's/^/| /' conftest.$ac_ext >&5 |
10554 | ||
d6e01aa5 | 10555 | ac_cv_lib_Xbsd_main=no |
98418dba | 10556 | fi |
d6e01aa5 KL |
10557 | |
10558 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 10559 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10560 | LIBS=$ac_check_lib_save_LIBS |
10561 | fi | |
d6e01aa5 KL |
10562 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 |
10563 | echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; } | |
98418dba CW |
10564 | if test $ac_cv_lib_Xbsd_main = yes; then |
10565 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
10566 | fi | |
10567 | ||
c0d27fcc MR |
10568 | |
10569 | ||
d6e01aa5 KL |
10570 | { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5 |
10571 | echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; } | |
98418dba CW |
10572 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then |
10573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10574 | else | |
10575 | ac_check_lib_save_LIBS=$LIBS | |
10576 | LIBS="-lpthreads $LIBS" | |
10577 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10578 | /* confdefs.h. */ |
10579 | _ACEOF | |
10580 | cat confdefs.h >>conftest.$ac_ext | |
10581 | cat >>conftest.$ac_ext <<_ACEOF | |
10582 | /* end confdefs.h. */ | |
98418dba | 10583 | |
d6e01aa5 KL |
10584 | /* Override any GCC internal prototype to avoid an error. |
10585 | Use char because int might match the return type of a GCC | |
10586 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
10587 | #ifdef __cplusplus |
10588 | extern "C" | |
10589 | #endif | |
98418dba | 10590 | char cma_open (); |
98418dba CW |
10591 | int |
10592 | main () | |
10593 | { | |
d6e01aa5 | 10594 | return cma_open (); |
98418dba CW |
10595 | ; |
10596 | return 0; | |
10597 | } | |
10598 | _ACEOF | |
10599 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
10600 | if { (ac_try="$ac_link" |
10601 | case "(($ac_try" in | |
10602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10603 | *) ac_try_echo=$ac_try;; | |
10604 | esac | |
10605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10606 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10607 | ac_status=$? |
edfaf76d LK |
10608 | grep -v '^ *+' conftest.er1 >conftest.err |
10609 | rm -f conftest.er1 | |
10610 | cat conftest.err >&5 | |
c0d27fcc | 10611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
10612 | (exit $ac_status); } && { |
10613 | test -z "$ac_c_werror_flag" || | |
10614 | test ! -s conftest.err | |
10615 | } && test -s conftest$ac_exeext && | |
10616 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10617 | ac_cv_lib_pthreads_cma_open=yes |
10618 | else | |
10619 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10620 | sed 's/^/| /' conftest.$ac_ext >&5 |
10621 | ||
d6e01aa5 | 10622 | ac_cv_lib_pthreads_cma_open=no |
98418dba | 10623 | fi |
d6e01aa5 KL |
10624 | |
10625 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 10626 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10627 | LIBS=$ac_check_lib_save_LIBS |
10628 | fi | |
d6e01aa5 KL |
10629 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 |
10630 | echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; } | |
98418dba | 10631 | if test $ac_cv_lib_pthreads_cma_open = yes; then |
c0d27fcc | 10632 | cat >>confdefs.h <<_ACEOF |
98418dba | 10633 | #define HAVE_LIBPTHREADS 1 |
c0d27fcc | 10634 | _ACEOF |
98418dba CW |
10635 | |
10636 | LIBS="-lpthreads $LIBS" | |
10637 | ||
10638 | fi | |
10639 | ||
c0d27fcc | 10640 | |
d6e01aa5 KL |
10641 | { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5 |
10642 | echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; } | |
98418dba CW |
10643 | if test -d /usr/X386/include; then |
10644 | HAVE_XFREE386=yes | |
10645 | : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
10646 | else | |
10647 | HAVE_XFREE386=no | |
10648 | fi | |
d6e01aa5 KL |
10649 | { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5 |
10650 | echo "${ECHO_T}$HAVE_XFREE386" >&6; } | |
98418dba | 10651 | |
55597d70 DL |
10652 | |
10653 | case ${host_os} in | |
10654 | aix*) | |
d6e01aa5 KL |
10655 | { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
10656 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; } | |
55597d70 DL |
10657 | if test "${gdb_cv_bigtoc+set}" = set; then |
10658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10659 | else | |
10660 | ||
10661 | case $GCC in | |
10662 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
10663 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
10664 | esac | |
10665 | ||
10666 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
10667 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10668 | /* confdefs.h. */ |
10669 | _ACEOF | |
10670 | cat confdefs.h >>conftest.$ac_ext | |
10671 | cat >>conftest.$ac_ext <<_ACEOF | |
10672 | /* end confdefs.h. */ | |
55597d70 DL |
10673 | |
10674 | int | |
10675 | main () | |
10676 | { | |
10677 | int i; | |
10678 | ; | |
10679 | return 0; | |
10680 | } | |
10681 | _ACEOF | |
10682 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
10683 | if { (ac_try="$ac_link" |
10684 | case "(($ac_try" in | |
10685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10686 | *) ac_try_echo=$ac_try;; | |
10687 | esac | |
10688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10689 | (eval "$ac_link") 2>conftest.er1 | |
55597d70 | 10690 | ac_status=$? |
edfaf76d LK |
10691 | grep -v '^ *+' conftest.er1 >conftest.err |
10692 | rm -f conftest.er1 | |
10693 | cat conftest.err >&5 | |
55597d70 | 10694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
10695 | (exit $ac_status); } && { |
10696 | test -z "$ac_c_werror_flag" || | |
10697 | test ! -s conftest.err | |
10698 | } && test -s conftest$ac_exeext && | |
10699 | $as_test_x conftest$ac_exeext; then | |
55597d70 DL |
10700 | : |
10701 | else | |
10702 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10703 | sed 's/^/| /' conftest.$ac_ext >&5 |
10704 | ||
d6e01aa5 | 10705 | gdb_cv_bigtoc= |
55597d70 | 10706 | fi |
d6e01aa5 KL |
10707 | |
10708 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 10709 | conftest$ac_exeext conftest.$ac_ext |
55597d70 DL |
10710 | |
10711 | fi | |
d6e01aa5 KL |
10712 | { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
10713 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6; } | |
55597d70 DL |
10714 | ;; |
10715 | esac | |
10716 | ||
ae1a998c RS |
10717 | # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
10718 | # used for the tests that follow. We set them back to REAL_CFLAGS and | |
10719 | # REAL_CPPFLAGS later on. | |
98418dba CW |
10720 | |
10721 | REAL_CPPFLAGS="$CPPFLAGS" | |
10722 | ||
10723 | if test "${HAVE_X11}" = "yes"; then | |
10724 | DEFS="$C_SWITCH_X_SITE $DEFS" | |
10725 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
10726 | LIBS="$LIBX $LIBS" | |
10727 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
10728 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" | |
10729 | ||
10730 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
10731 | # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
10732 | # but it's more convenient here to set LD_RUN_PATH | |
10733 | # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
10734 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
10735 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
10736 | export LD_RUN_PATH | |
10737 | fi | |
10738 | ||
10739 | if test "${opsys}" = "gnu-linux"; then | |
d6e01aa5 KL |
10740 | { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 |
10741 | echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; } | |
98418dba | 10742 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10743 | /* confdefs.h. */ |
10744 | _ACEOF | |
10745 | cat confdefs.h >>conftest.$ac_ext | |
10746 | cat >>conftest.$ac_ext <<_ACEOF | |
10747 | /* end confdefs.h. */ | |
98418dba | 10748 | |
98418dba CW |
10749 | int |
10750 | main () | |
10751 | { | |
10752 | XOpenDisplay ("foo"); | |
10753 | ; | |
10754 | return 0; | |
10755 | } | |
10756 | _ACEOF | |
10757 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
10758 | if { (ac_try="$ac_link" |
10759 | case "(($ac_try" in | |
10760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10761 | *) ac_try_echo=$ac_try;; | |
10762 | esac | |
10763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10764 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10765 | ac_status=$? |
edfaf76d LK |
10766 | grep -v '^ *+' conftest.er1 >conftest.err |
10767 | rm -f conftest.er1 | |
10768 | cat conftest.err >&5 | |
c0d27fcc | 10769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
10770 | (exit $ac_status); } && { |
10771 | test -z "$ac_c_werror_flag" || | |
10772 | test ! -s conftest.err | |
10773 | } && test -s conftest$ac_exeext && | |
10774 | $as_test_x conftest$ac_exeext; then | |
35996d22 | 10775 | xlinux_first_failure=no |
98418dba CW |
10776 | else |
10777 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10778 | sed 's/^/| /' conftest.$ac_ext >&5 |
10779 | ||
d6e01aa5 | 10780 | xlinux_first_failure=yes |
98418dba | 10781 | fi |
d6e01aa5 KL |
10782 | |
10783 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 10784 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10785 | if test "${xlinux_first_failure}" = "yes"; then |
10786 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
10787 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
10788 | OLD_CPPFLAGS="$CPPFLAGS" | |
10789 | OLD_LIBS="$LIBS" | |
10790 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
10791 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
10792 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
10793 | LIBS="$LIBS -b i486-linuxaout" | |
10794 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10795 | /* confdefs.h. */ |
10796 | _ACEOF | |
10797 | cat confdefs.h >>conftest.$ac_ext | |
10798 | cat >>conftest.$ac_ext <<_ACEOF | |
10799 | /* end confdefs.h. */ | |
98418dba | 10800 | |
98418dba CW |
10801 | int |
10802 | main () | |
10803 | { | |
10804 | XOpenDisplay ("foo"); | |
10805 | ; | |
10806 | return 0; | |
10807 | } | |
10808 | _ACEOF | |
10809 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
10810 | if { (ac_try="$ac_link" |
10811 | case "(($ac_try" in | |
10812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10813 | *) ac_try_echo=$ac_try;; | |
10814 | esac | |
10815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10816 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10817 | ac_status=$? |
edfaf76d LK |
10818 | grep -v '^ *+' conftest.er1 >conftest.err |
10819 | rm -f conftest.er1 | |
10820 | cat conftest.err >&5 | |
c0d27fcc | 10821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
10822 | (exit $ac_status); } && { |
10823 | test -z "$ac_c_werror_flag" || | |
10824 | test ! -s conftest.err | |
10825 | } && test -s conftest$ac_exeext && | |
10826 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10827 | xlinux_second_failure=no |
10828 | else | |
10829 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10830 | sed 's/^/| /' conftest.$ac_ext >&5 |
10831 | ||
d6e01aa5 | 10832 | xlinux_second_failure=yes |
98418dba | 10833 | fi |
d6e01aa5 KL |
10834 | |
10835 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 10836 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10837 | if test "${xlinux_second_failure}" = "yes"; then |
10838 | # If we get the same failure with -b, there is no use adding -b. | |
10839 | # So take it out. This plays safe. | |
10840 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
10841 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
10842 | CPPFLAGS="$OLD_CPPFLAGS" | |
10843 | LIBS="$OLD_LIBS" | |
d6e01aa5 KL |
10844 | { echo "$as_me:$LINENO: result: no" >&5 |
10845 | echo "${ECHO_T}no" >&6; } | |
98418dba | 10846 | else |
d6e01aa5 KL |
10847 | { echo "$as_me:$LINENO: result: yes" >&5 |
10848 | echo "${ECHO_T}yes" >&6; } | |
98418dba CW |
10849 | fi |
10850 | else | |
d6e01aa5 KL |
10851 | { echo "$as_me:$LINENO: result: no" >&5 |
10852 | echo "${ECHO_T}no" >&6; } | |
98418dba CW |
10853 | fi |
10854 | fi | |
10855 | ||
10856 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing | |
10857 | # header files included from there. | |
d6e01aa5 KL |
10858 | { echo "$as_me:$LINENO: checking for Xkb" >&5 |
10859 | echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; } | |
98418dba | 10860 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10861 | /* confdefs.h. */ |
10862 | _ACEOF | |
10863 | cat confdefs.h >>conftest.$ac_ext | |
10864 | cat >>conftest.$ac_ext <<_ACEOF | |
10865 | /* end confdefs.h. */ | |
98418dba CW |
10866 | #include <X11/Xlib.h> |
10867 | #include <X11/XKBlib.h> | |
98418dba CW |
10868 | int |
10869 | main () | |
10870 | { | |
10871 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | |
10872 | ; | |
10873 | return 0; | |
10874 | } | |
10875 | _ACEOF | |
10876 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
10877 | if { (ac_try="$ac_link" |
10878 | case "(($ac_try" in | |
10879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10880 | *) ac_try_echo=$ac_try;; | |
10881 | esac | |
10882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10883 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10884 | ac_status=$? |
edfaf76d LK |
10885 | grep -v '^ *+' conftest.er1 >conftest.err |
10886 | rm -f conftest.er1 | |
10887 | cat conftest.err >&5 | |
c0d27fcc | 10888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
10889 | (exit $ac_status); } && { |
10890 | test -z "$ac_c_werror_flag" || | |
10891 | test ! -s conftest.err | |
10892 | } && test -s conftest$ac_exeext && | |
10893 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10894 | emacs_xkb=yes |
10895 | else | |
10896 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10897 | sed 's/^/| /' conftest.$ac_ext >&5 |
10898 | ||
d6e01aa5 | 10899 | emacs_xkb=no |
98418dba | 10900 | fi |
d6e01aa5 KL |
10901 | |
10902 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 10903 | conftest$ac_exeext conftest.$ac_ext |
d6e01aa5 KL |
10904 | { echo "$as_me:$LINENO: result: $emacs_xkb" >&5 |
10905 | echo "${ECHO_T}$emacs_xkb" >&6; } | |
98418dba | 10906 | if test $emacs_xkb = yes; then |
b936fae4 | 10907 | |
c0d27fcc | 10908 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10909 | #define HAVE_XKBGETKEYBOARD 1 |
c0d27fcc | 10910 | _ACEOF |
98418dba CW |
10911 | |
10912 | fi | |
10913 | ||
c0d27fcc MR |
10914 | |
10915 | ||
10916 | ||
10917 | ||
98418dba CW |
10918 | for ac_func in XrmSetDatabase XScreenResourceString \ |
10919 | XScreenNumberOfScreen XSetWMProtocols | |
10920 | do | |
10921 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
d6e01aa5 KL |
10922 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10923 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10924 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba CW |
10925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10926 | else | |
10927 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10928 | /* confdefs.h. */ |
10929 | _ACEOF | |
10930 | cat confdefs.h >>conftest.$ac_ext | |
10931 | cat >>conftest.$ac_ext <<_ACEOF | |
10932 | /* end confdefs.h. */ | |
edfaf76d LK |
10933 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10934 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10935 | #define $ac_func innocuous_$ac_func | |
10936 | ||
98418dba | 10937 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
10938 | which can conflict with char $ac_func (); below. |
10939 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10940 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 10941 | |
19650fd6 AS |
10942 | #ifdef __STDC__ |
10943 | # include <limits.h> | |
10944 | #else | |
10945 | # include <assert.h> | |
10946 | #endif | |
edfaf76d LK |
10947 | |
10948 | #undef $ac_func | |
10949 | ||
d6e01aa5 KL |
10950 | /* Override any GCC internal prototype to avoid an error. |
10951 | Use char because int might match the return type of a GCC | |
10952 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
10953 | #ifdef __cplusplus |
10954 | extern "C" | |
10955 | #endif | |
98418dba | 10956 | char $ac_func (); |
98418dba CW |
10957 | /* The GNU C library defines this for functions which it implements |
10958 | to always fail with ENOSYS. Some functions are actually named | |
10959 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 10960 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 10961 | choke me |
98418dba CW |
10962 | #endif |
10963 | ||
19650fd6 AS |
10964 | int |
10965 | main () | |
10966 | { | |
d6e01aa5 | 10967 | return $ac_func (); |
98418dba CW |
10968 | ; |
10969 | return 0; | |
10970 | } | |
10971 | _ACEOF | |
10972 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
10973 | if { (ac_try="$ac_link" |
10974 | case "(($ac_try" in | |
10975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10976 | *) ac_try_echo=$ac_try;; | |
10977 | esac | |
10978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10979 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10980 | ac_status=$? |
edfaf76d LK |
10981 | grep -v '^ *+' conftest.er1 >conftest.err |
10982 | rm -f conftest.er1 | |
10983 | cat conftest.err >&5 | |
c0d27fcc | 10984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
10985 | (exit $ac_status); } && { |
10986 | test -z "$ac_c_werror_flag" || | |
10987 | test ! -s conftest.err | |
10988 | } && test -s conftest$ac_exeext && | |
10989 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10990 | eval "$as_ac_var=yes" |
10991 | else | |
10992 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10993 | sed 's/^/| /' conftest.$ac_ext >&5 |
10994 | ||
d6e01aa5 | 10995 | eval "$as_ac_var=no" |
98418dba | 10996 | fi |
d6e01aa5 KL |
10997 | |
10998 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 10999 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 11000 | fi |
d6e01aa5 KL |
11001 | ac_res=`eval echo '${'$as_ac_var'}'` |
11002 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11003 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 11004 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 11005 | cat >>confdefs.h <<_ACEOF |
98418dba | 11006 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 11007 | _ACEOF |
98418dba CW |
11008 | |
11009 | fi | |
11010 | done | |
11011 | ||
11012 | fi | |
11013 | ||
11014 | if test "${window_system}" = "x11"; then | |
d6e01aa5 KL |
11015 | { echo "$as_me:$LINENO: checking X11 version 6" >&5 |
11016 | echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; } | |
98418dba CW |
11017 | if test "${emacs_cv_x11_version_6+set}" = set; then |
11018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11019 | else | |
11020 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11021 | /* confdefs.h. */ |
11022 | _ACEOF | |
11023 | cat confdefs.h >>conftest.$ac_ext | |
11024 | cat >>conftest.$ac_ext <<_ACEOF | |
11025 | /* end confdefs.h. */ | |
98418dba | 11026 | #include <X11/Xlib.h> |
98418dba CW |
11027 | int |
11028 | main () | |
11029 | { | |
11030 | #if XlibSpecificationRelease < 6 | |
11031 | fail; | |
11032 | #endif | |
11033 | ||
11034 | ; | |
11035 | return 0; | |
11036 | } | |
11037 | _ACEOF | |
11038 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
11039 | if { (ac_try="$ac_link" |
11040 | case "(($ac_try" in | |
11041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11042 | *) ac_try_echo=$ac_try;; | |
11043 | esac | |
11044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11045 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 11046 | ac_status=$? |
edfaf76d LK |
11047 | grep -v '^ *+' conftest.er1 >conftest.err |
11048 | rm -f conftest.er1 | |
11049 | cat conftest.err >&5 | |
c0d27fcc | 11050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
11051 | (exit $ac_status); } && { |
11052 | test -z "$ac_c_werror_flag" || | |
11053 | test ! -s conftest.err | |
11054 | } && test -s conftest$ac_exeext && | |
11055 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
11056 | emacs_cv_x11_version_6=yes |
11057 | else | |
11058 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11059 | sed 's/^/| /' conftest.$ac_ext >&5 |
11060 | ||
d6e01aa5 | 11061 | emacs_cv_x11_version_6=no |
98418dba | 11062 | fi |
d6e01aa5 KL |
11063 | |
11064 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 11065 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
11066 | fi |
11067 | ||
11068 | if test $emacs_cv_x11_version_6 = yes; then | |
d6e01aa5 KL |
11069 | { echo "$as_me:$LINENO: result: 6 or newer" >&5 |
11070 | echo "${ECHO_T}6 or newer" >&6; } | |
b936fae4 | 11071 | |
c0d27fcc | 11072 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11073 | #define HAVE_X11R6 1 |
c0d27fcc | 11074 | _ACEOF |
98418dba CW |
11075 | |
11076 | else | |
d6e01aa5 KL |
11077 | { echo "$as_me:$LINENO: result: before 6" >&5 |
11078 | echo "${ECHO_T}before 6" >&6; } | |
98418dba CW |
11079 | fi |
11080 | fi | |
11081 | ||
11082 | if test "${window_system}" = "x11"; then | |
d6e01aa5 KL |
11083 | { echo "$as_me:$LINENO: checking X11 version 5" >&5 |
11084 | echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; } | |
98418dba CW |
11085 | if test "${emacs_cv_x11_version_5+set}" = set; then |
11086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11087 | else | |
11088 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11089 | /* confdefs.h. */ |
11090 | _ACEOF | |
11091 | cat confdefs.h >>conftest.$ac_ext | |
11092 | cat >>conftest.$ac_ext <<_ACEOF | |
11093 | /* end confdefs.h. */ | |
98418dba | 11094 | #include <X11/Xlib.h> |
98418dba CW |
11095 | int |
11096 | main () | |
11097 | { | |
11098 | #if XlibSpecificationRelease < 5 | |
11099 | fail; | |
11100 | #endif | |
11101 | ||
11102 | ; | |
11103 | return 0; | |
11104 | } | |
11105 | _ACEOF | |
11106 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
11107 | if { (ac_try="$ac_link" |
11108 | case "(($ac_try" in | |
11109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11110 | *) ac_try_echo=$ac_try;; | |
11111 | esac | |
11112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11113 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 11114 | ac_status=$? |
edfaf76d LK |
11115 | grep -v '^ *+' conftest.er1 >conftest.err |
11116 | rm -f conftest.er1 | |
11117 | cat conftest.err >&5 | |
c0d27fcc | 11118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
11119 | (exit $ac_status); } && { |
11120 | test -z "$ac_c_werror_flag" || | |
11121 | test ! -s conftest.err | |
11122 | } && test -s conftest$ac_exeext && | |
11123 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
11124 | emacs_cv_x11_version_5=yes |
11125 | else | |
11126 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11127 | sed 's/^/| /' conftest.$ac_ext >&5 |
11128 | ||
d6e01aa5 | 11129 | emacs_cv_x11_version_5=no |
98418dba | 11130 | fi |
d6e01aa5 KL |
11131 | |
11132 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 11133 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
11134 | fi |
11135 | ||
11136 | if test $emacs_cv_x11_version_5 = yes; then | |
d6e01aa5 KL |
11137 | { echo "$as_me:$LINENO: result: 5 or newer" >&5 |
11138 | echo "${ECHO_T}5 or newer" >&6; } | |
98418dba | 11139 | HAVE_X11R5=yes |
b936fae4 | 11140 | |
c0d27fcc | 11141 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11142 | #define HAVE_X11R5 1 |
c0d27fcc | 11143 | _ACEOF |
98418dba CW |
11144 | |
11145 | else | |
11146 | HAVE_X11R5=no | |
d6e01aa5 KL |
11147 | { echo "$as_me:$LINENO: result: before 5" >&5 |
11148 | echo "${ECHO_T}before 5" >&6; } | |
98418dba CW |
11149 | fi |
11150 | fi | |
11151 | ||
0cfc0546 GM |
11152 | ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified. |
11153 | HAVE_RSVG=no | |
ae0476ed | 11154 | if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then |
0cfc0546 GM |
11155 | if test "${with_rsvg}" != "no"; then |
11156 | if test "X${with_pkg_config_prog}" != X; then | |
11157 | PKG_CONFIG="${with_pkg_config_prog}" | |
11158 | fi | |
11159 | ||
11160 | RSVG_REQUIRED=2.0.0 | |
11161 | RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED" | |
11162 | ||
11163 | ||
11164 | succeeded=no | |
11165 | ||
11166 | if test -z "$PKG_CONFIG"; then | |
11167 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11168 | set dummy pkg-config; ac_word=$2 | |
11169 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
11171 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
11172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11173 | else | |
11174 | case $PKG_CONFIG in | |
11175 | [\\/]* | ?:[\\/]*) | |
11176 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11177 | ;; | |
11178 | *) | |
11179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11180 | for as_dir in $PATH | |
11181 | do | |
11182 | IFS=$as_save_IFS | |
11183 | test -z "$as_dir" && as_dir=. | |
11184 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11185 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11186 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11187 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11188 | break 2 | |
11189 | fi | |
11190 | done | |
11191 | done | |
11192 | IFS=$as_save_IFS | |
11193 | ||
11194 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11195 | ;; | |
11196 | esac | |
11197 | fi | |
11198 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11199 | if test -n "$PKG_CONFIG"; then | |
11200 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
11201 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
11202 | else | |
11203 | { echo "$as_me:$LINENO: result: no" >&5 | |
11204 | echo "${ECHO_T}no" >&6; } | |
11205 | fi | |
11206 | ||
11207 | ||
11208 | fi | |
11209 | ||
11210 | if test "$PKG_CONFIG" = "no" ; then | |
11211 | : | |
11212 | else | |
11213 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
11214 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
11215 | { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5 | |
11216 | echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; } | |
11217 | ||
11218 | if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then | |
11219 | { echo "$as_me:$LINENO: result: yes" >&5 | |
11220 | echo "${ECHO_T}yes" >&6; } | |
11221 | succeeded=yes | |
11222 | ||
11223 | { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5 | |
11224 | echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; } | |
11225 | RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` | |
11226 | { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5 | |
11227 | echo "${ECHO_T}$RSVG_CFLAGS" >&6; } | |
11228 | ||
11229 | { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5 | |
11230 | echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; } | |
11231 | RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` | |
11232 | { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5 | |
11233 | echo "${ECHO_T}$RSVG_LIBS" >&6; } | |
11234 | else | |
11235 | { echo "$as_me:$LINENO: result: no" >&5 | |
11236 | echo "${ECHO_T}no" >&6; } | |
11237 | RSVG_CFLAGS="" | |
11238 | RSVG_LIBS="" | |
11239 | ## If we have a custom action on failure, don't print errors, but | |
11240 | ## do set a variable so people can do so. | |
11241 | RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"` | |
11242 | ||
11243 | fi | |
11244 | ||
11245 | ||
11246 | ||
11247 | else | |
11248 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11249 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
11250 | fi | |
11251 | fi | |
11252 | ||
11253 | if test $succeeded = yes; then | |
11254 | : | |
11255 | else | |
11256 | : | |
11257 | fi | |
11258 | ||
11259 | ||
11260 | ||
11261 | ||
11262 | if test ".${RSVG_CFLAGS}" != "."; then | |
11263 | HAVE_RSVG=yes | |
11264 | ||
11265 | cat >>confdefs.h <<\_ACEOF | |
11266 | #define HAVE_RSVG 1 | |
11267 | _ACEOF | |
11268 | ||
11269 | CFLAGS="$CFLAGS $RSVG_CFLAGS" | |
11270 | LIBS="$RSVG_LIBS $LIBS" | |
11271 | fi | |
11272 | fi | |
11273 | fi | |
11274 | ||
11275 | ||
488dd4c4 | 11276 | HAVE_GTK=no |
8eeae1c9 JD |
11277 | if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then |
11278 | USE_X_TOOLKIT=none | |
11279 | fi | |
089a966d GM |
11280 | if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \ |
11281 | test "$USE_X_TOOLKIT" = "maybe"; then | |
cd890796 | 11282 | if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then |
488dd4c4 JD |
11283 | { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5 |
11284 | echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;} | |
11285 | { (exit 1); exit 1; }; }; | |
11286 | fi | |
787eb67d JD |
11287 | GLIB_REQUIRED=2.6 |
11288 | GTK_REQUIRED=2.6 | |
488dd4c4 JD |
11289 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" |
11290 | ||
11291 | if test "X${with_pkg_config_prog}" != X; then | |
11292 | PKG_CONFIG="${with_pkg_config_prog}" | |
11293 | fi | |
11294 | ||
11295 | succeeded=no | |
11296 | ||
11297 | if test -z "$PKG_CONFIG"; then | |
11298 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11299 | set dummy pkg-config; ac_word=$2 | |
d6e01aa5 KL |
11300 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
488dd4c4 JD |
11302 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
11303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11304 | else | |
11305 | case $PKG_CONFIG in | |
11306 | [\\/]* | ?:[\\/]*) | |
11307 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11308 | ;; | |
11309 | *) | |
11310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11311 | for as_dir in $PATH | |
11312 | do | |
11313 | IFS=$as_save_IFS | |
11314 | test -z "$as_dir" && as_dir=. | |
11315 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6e01aa5 | 11316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
488dd4c4 JD |
11317 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
11318 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11319 | break 2 | |
11320 | fi | |
11321 | done | |
11322 | done | |
d6e01aa5 | 11323 | IFS=$as_save_IFS |
488dd4c4 JD |
11324 | |
11325 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11326 | ;; | |
11327 | esac | |
11328 | fi | |
11329 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
488dd4c4 | 11330 | if test -n "$PKG_CONFIG"; then |
d6e01aa5 KL |
11331 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
11332 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
488dd4c4 | 11333 | else |
d6e01aa5 KL |
11334 | { echo "$as_me:$LINENO: result: no" >&5 |
11335 | echo "${ECHO_T}no" >&6; } | |
488dd4c4 JD |
11336 | fi |
11337 | ||
d6e01aa5 | 11338 | |
488dd4c4 JD |
11339 | fi |
11340 | ||
11341 | if test "$PKG_CONFIG" = "no" ; then | |
089a966d | 11342 | pkg_check_gtk=no |
488dd4c4 JD |
11343 | else |
11344 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
11345 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
d6e01aa5 KL |
11346 | { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 |
11347 | echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; } | |
488dd4c4 | 11348 | |
67db6aa2 | 11349 | if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then |
d6e01aa5 KL |
11350 | { echo "$as_me:$LINENO: result: yes" >&5 |
11351 | echo "${ECHO_T}yes" >&6; } | |
488dd4c4 JD |
11352 | succeeded=yes |
11353 | ||
d6e01aa5 KL |
11354 | { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 |
11355 | echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; } | |
94315858 | 11356 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` |
d6e01aa5 KL |
11357 | { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 |
11358 | echo "${ECHO_T}$GTK_CFLAGS" >&6; } | |
488dd4c4 | 11359 | |
d6e01aa5 KL |
11360 | { echo "$as_me:$LINENO: checking GTK_LIBS" >&5 |
11361 | echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; } | |
94315858 | 11362 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` |
d6e01aa5 KL |
11363 | { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 |
11364 | echo "${ECHO_T}$GTK_LIBS" >&6; } | |
488dd4c4 | 11365 | else |
d6e01aa5 KL |
11366 | { echo "$as_me:$LINENO: result: no" >&5 |
11367 | echo "${ECHO_T}no" >&6; } | |
488dd4c4 JD |
11368 | GTK_CFLAGS="" |
11369 | GTK_LIBS="" | |
11370 | ## If we have a custom action on failure, don't print errors, but | |
11371 | ## do set a variable so people can do so. | |
11372 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` | |
089a966d | 11373 | |
488dd4c4 JD |
11374 | fi |
11375 | ||
11376 | ||
11377 | ||
11378 | else | |
11379 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11380 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
11381 | fi | |
11382 | fi | |
11383 | ||
11384 | if test $succeeded = yes; then | |
089a966d | 11385 | pkg_check_gtk=yes |
488dd4c4 | 11386 | else |
089a966d GM |
11387 | pkg_check_gtk=no |
11388 | fi | |
11389 | ||
11390 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then | |
11391 | { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5 | |
11392 | echo "$as_me: error: $GTK_PKG_ERRORS" >&2;} | |
488dd4c4 JD |
11393 | { (exit 1); exit 1; }; } |
11394 | fi | |
089a966d GM |
11395 | fi |
11396 | ||
11397 | ||
11398 | if test x"$pkg_check_gtk" = xyes; then | |
488dd4c4 JD |
11399 | |
11400 | ||
11401 | ||
11402 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | |
57669b57 JD |
11403 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
11404 | LIBS="$GTK_LIBS $LIBS" | |
8eeae1c9 | 11405 | GTK_COMPILES=no |
57669b57 | 11406 | |
8eeae1c9 | 11407 | for ac_func in gtk_main |
57669b57 JD |
11408 | do |
11409 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
11410 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11411 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11412 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
57669b57 JD |
11413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11414 | else | |
11415 | cat >conftest.$ac_ext <<_ACEOF | |
57669b57 JD |
11416 | /* confdefs.h. */ |
11417 | _ACEOF | |
11418 | cat confdefs.h >>conftest.$ac_ext | |
11419 | cat >>conftest.$ac_ext <<_ACEOF | |
11420 | /* end confdefs.h. */ | |
edfaf76d LK |
11421 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11422 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11423 | #define $ac_func innocuous_$ac_func | |
11424 | ||
57669b57 JD |
11425 | /* System header to define __stub macros and hopefully few prototypes, |
11426 | which can conflict with char $ac_func (); below. | |
11427 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11428 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 11429 | |
57669b57 JD |
11430 | #ifdef __STDC__ |
11431 | # include <limits.h> | |
11432 | #else | |
11433 | # include <assert.h> | |
11434 | #endif | |
edfaf76d LK |
11435 | |
11436 | #undef $ac_func | |
11437 | ||
ca81d7a0 JD |
11438 | /* Override any GCC internal prototype to avoid an error. |
11439 | Use char because int might match the return type of a GCC | |
11440 | builtin and then its argument prototype would still apply. */ | |
57669b57 JD |
11441 | #ifdef __cplusplus |
11442 | extern "C" | |
57669b57 | 11443 | #endif |
57669b57 JD |
11444 | char $ac_func (); |
11445 | /* The GNU C library defines this for functions which it implements | |
11446 | to always fail with ENOSYS. Some functions are actually named | |
11447 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 11448 | #if defined __stub_$ac_func || defined __stub___$ac_func |
57669b57 | 11449 | choke me |
57669b57 JD |
11450 | #endif |
11451 | ||
11452 | int | |
11453 | main () | |
11454 | { | |
ca81d7a0 | 11455 | return $ac_func (); |
57669b57 JD |
11456 | ; |
11457 | return 0; | |
11458 | } | |
11459 | _ACEOF | |
11460 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11461 | if { (ac_try="$ac_link" |
11462 | case "(($ac_try" in | |
11463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11464 | *) ac_try_echo=$ac_try;; | |
11465 | esac | |
11466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11467 | (eval "$ac_link") 2>conftest.er1 | |
57669b57 | 11468 | ac_status=$? |
edfaf76d LK |
11469 | grep -v '^ *+' conftest.er1 >conftest.err |
11470 | rm -f conftest.er1 | |
11471 | cat conftest.err >&5 | |
57669b57 | 11472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11473 | (exit $ac_status); } && { |
11474 | test -z "$ac_c_werror_flag" || | |
11475 | test ! -s conftest.err | |
11476 | } && test -s conftest$ac_exeext && | |
11477 | $as_test_x conftest$ac_exeext; then | |
57669b57 JD |
11478 | eval "$as_ac_var=yes" |
11479 | else | |
11480 | echo "$as_me: failed program was:" >&5 | |
11481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11482 | ||
ca81d7a0 | 11483 | eval "$as_ac_var=no" |
57669b57 | 11484 | fi |
ca81d7a0 | 11485 | |
f053c89f | 11486 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 11487 | conftest$ac_exeext conftest.$ac_ext |
57669b57 | 11488 | fi |
ca81d7a0 JD |
11489 | ac_res=`eval echo '${'$as_ac_var'}'` |
11490 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11491 | echo "${ECHO_T}$ac_res" >&6; } | |
57669b57 JD |
11492 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11493 | cat >>confdefs.h <<_ACEOF | |
11494 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11495 | _ACEOF | |
8eeae1c9 | 11496 | GTK_COMPILES=yes |
57669b57 JD |
11497 | fi |
11498 | done | |
11499 | ||
8eeae1c9 | 11500 | if test "${GTK_COMPILES}" != "yes"; then |
089a966d GM |
11501 | if test "$USE_X_TOOLKIT" != "maybe"; then |
11502 | { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5 | |
8eeae1c9 JD |
11503 | echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;} |
11504 | { (exit 1); exit 1; }; }; | |
089a966d GM |
11505 | fi |
11506 | else | |
11507 | HAVE_GTK=yes | |
488dd4c4 JD |
11508 | |
11509 | cat >>confdefs.h <<\_ACEOF | |
11510 | #define HAVE_GTK 1 | |
11511 | _ACEOF | |
11512 | ||
089a966d GM |
11513 | USE_X_TOOLKIT=none |
11514 | fi | |
11515 | ||
11516 | fi | |
11517 | ||
11518 | ||
11519 | if test "${HAVE_GTK}" = "yes"; then | |
488dd4c4 | 11520 | |
d0a80c21 JD |
11521 | if test "$with_toolkit_scroll_bars" != no; then |
11522 | with_toolkit_scroll_bars=yes | |
11523 | fi | |
57669b57 | 11524 | |
c982cf7d | 11525 | HAVE_GTK_MULTIDISPLAY=no |
fa1b1007 KL |
11526 | |
11527 | for ac_func in gdk_display_open | |
11528 | do | |
11529 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11530 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11531 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11532 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
11533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11534 | else | |
11535 | cat >conftest.$ac_ext <<_ACEOF | |
11536 | /* confdefs.h. */ | |
11537 | _ACEOF | |
11538 | cat confdefs.h >>conftest.$ac_ext | |
11539 | cat >>conftest.$ac_ext <<_ACEOF | |
11540 | /* end confdefs.h. */ | |
11541 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11542 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11543 | #define $ac_func innocuous_$ac_func | |
11544 | ||
11545 | /* System header to define __stub macros and hopefully few prototypes, | |
11546 | which can conflict with char $ac_func (); below. | |
11547 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11548 | <limits.h> exists even on freestanding compilers. */ | |
11549 | ||
11550 | #ifdef __STDC__ | |
11551 | # include <limits.h> | |
11552 | #else | |
11553 | # include <assert.h> | |
11554 | #endif | |
11555 | ||
11556 | #undef $ac_func | |
11557 | ||
11558 | /* Override any GCC internal prototype to avoid an error. | |
11559 | Use char because int might match the return type of a GCC | |
11560 | builtin and then its argument prototype would still apply. */ | |
11561 | #ifdef __cplusplus | |
11562 | extern "C" | |
11563 | #endif | |
11564 | char $ac_func (); | |
11565 | /* The GNU C library defines this for functions which it implements | |
11566 | to always fail with ENOSYS. Some functions are actually named | |
11567 | something starting with __ and the normal name is an alias. */ | |
11568 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
11569 | choke me | |
11570 | #endif | |
11571 | ||
11572 | int | |
11573 | main () | |
11574 | { | |
11575 | return $ac_func (); | |
11576 | ; | |
11577 | return 0; | |
11578 | } | |
11579 | _ACEOF | |
11580 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11581 | if { (ac_try="$ac_link" | |
11582 | case "(($ac_try" in | |
11583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11584 | *) ac_try_echo=$ac_try;; | |
11585 | esac | |
11586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11587 | (eval "$ac_link") 2>conftest.er1 | |
11588 | ac_status=$? | |
11589 | grep -v '^ *+' conftest.er1 >conftest.err | |
11590 | rm -f conftest.er1 | |
11591 | cat conftest.err >&5 | |
11592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11593 | (exit $ac_status); } && { | |
11594 | test -z "$ac_c_werror_flag" || | |
11595 | test ! -s conftest.err | |
11596 | } && test -s conftest$ac_exeext && | |
11597 | $as_test_x conftest$ac_exeext; then | |
11598 | eval "$as_ac_var=yes" | |
11599 | else | |
11600 | echo "$as_me: failed program was:" >&5 | |
11601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11602 | ||
11603 | eval "$as_ac_var=no" | |
11604 | fi | |
11605 | ||
11606 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11607 | conftest$ac_exeext conftest.$ac_ext | |
11608 | fi | |
11609 | ac_res=`eval echo '${'$as_ac_var'}'` | |
11610 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11611 | echo "${ECHO_T}$ac_res" >&6; } | |
11612 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11613 | cat >>confdefs.h <<_ACEOF | |
11614 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11615 | _ACEOF | |
11616 | HAVE_GTK_MULTIDISPLAY=yes | |
11617 | fi | |
11618 | done | |
11619 | ||
11620 | if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then | |
11621 | ||
11622 | cat >>confdefs.h <<\_ACEOF | |
11623 | #define HAVE_GTK_MULTIDISPLAY 1 | |
11624 | _ACEOF | |
11625 | ||
11626 | fi | |
57669b57 | 11627 | |
572a3cc2 JD |
11628 | HAVE_GTK_FILE_SELECTION=no |
11629 | ||
11630 | for ac_func in gtk_file_selection_new | |
11631 | do | |
11632 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
d6e01aa5 KL |
11633 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11634 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11635 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
572a3cc2 JD |
11636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11637 | else | |
11638 | cat >conftest.$ac_ext <<_ACEOF | |
11639 | /* confdefs.h. */ | |
11640 | _ACEOF | |
11641 | cat confdefs.h >>conftest.$ac_ext | |
11642 | cat >>conftest.$ac_ext <<_ACEOF | |
11643 | /* end confdefs.h. */ | |
edfaf76d LK |
11644 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11645 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11646 | #define $ac_func innocuous_$ac_func | |
11647 | ||
572a3cc2 JD |
11648 | /* System header to define __stub macros and hopefully few prototypes, |
11649 | which can conflict with char $ac_func (); below. | |
11650 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11651 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 11652 | |
572a3cc2 JD |
11653 | #ifdef __STDC__ |
11654 | # include <limits.h> | |
11655 | #else | |
11656 | # include <assert.h> | |
11657 | #endif | |
edfaf76d LK |
11658 | |
11659 | #undef $ac_func | |
11660 | ||
d6e01aa5 KL |
11661 | /* Override any GCC internal prototype to avoid an error. |
11662 | Use char because int might match the return type of a GCC | |
11663 | builtin and then its argument prototype would still apply. */ | |
572a3cc2 JD |
11664 | #ifdef __cplusplus |
11665 | extern "C" | |
572a3cc2 | 11666 | #endif |
572a3cc2 JD |
11667 | char $ac_func (); |
11668 | /* The GNU C library defines this for functions which it implements | |
11669 | to always fail with ENOSYS. Some functions are actually named | |
11670 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 11671 | #if defined __stub_$ac_func || defined __stub___$ac_func |
572a3cc2 | 11672 | choke me |
572a3cc2 JD |
11673 | #endif |
11674 | ||
11675 | int | |
11676 | main () | |
11677 | { | |
d6e01aa5 | 11678 | return $ac_func (); |
572a3cc2 JD |
11679 | ; |
11680 | return 0; | |
11681 | } | |
11682 | _ACEOF | |
11683 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
11684 | if { (ac_try="$ac_link" |
11685 | case "(($ac_try" in | |
11686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11687 | *) ac_try_echo=$ac_try;; | |
11688 | esac | |
11689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11690 | (eval "$ac_link") 2>conftest.er1 | |
572a3cc2 | 11691 | ac_status=$? |
edfaf76d LK |
11692 | grep -v '^ *+' conftest.er1 >conftest.err |
11693 | rm -f conftest.er1 | |
11694 | cat conftest.err >&5 | |
572a3cc2 | 11695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
11696 | (exit $ac_status); } && { |
11697 | test -z "$ac_c_werror_flag" || | |
11698 | test ! -s conftest.err | |
11699 | } && test -s conftest$ac_exeext && | |
11700 | $as_test_x conftest$ac_exeext; then | |
572a3cc2 JD |
11701 | eval "$as_ac_var=yes" |
11702 | else | |
11703 | echo "$as_me: failed program was:" >&5 | |
11704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11705 | ||
d6e01aa5 | 11706 | eval "$as_ac_var=no" |
572a3cc2 | 11707 | fi |
d6e01aa5 KL |
11708 | |
11709 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 11710 | conftest$ac_exeext conftest.$ac_ext |
572a3cc2 | 11711 | fi |
d6e01aa5 KL |
11712 | ac_res=`eval echo '${'$as_ac_var'}'` |
11713 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11714 | echo "${ECHO_T}$ac_res" >&6; } | |
572a3cc2 JD |
11715 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11716 | cat >>confdefs.h <<_ACEOF | |
11717 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11718 | _ACEOF | |
11719 | HAVE_GTK_FILE_SELECTION=yes | |
11720 | fi | |
11721 | done | |
11722 | ||
11723 | ||
11724 | HAVE_GTK_FILE_CHOOSER=no | |
11725 | ||
11726 | for ac_func in gtk_file_chooser_dialog_new | |
11727 | do | |
11728 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
d6e01aa5 KL |
11729 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11730 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11731 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
572a3cc2 JD |
11732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11733 | else | |
11734 | cat >conftest.$ac_ext <<_ACEOF | |
11735 | /* confdefs.h. */ | |
11736 | _ACEOF | |
11737 | cat confdefs.h >>conftest.$ac_ext | |
11738 | cat >>conftest.$ac_ext <<_ACEOF | |
11739 | /* end confdefs.h. */ | |
edfaf76d LK |
11740 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11741 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11742 | #define $ac_func innocuous_$ac_func | |
11743 | ||
572a3cc2 JD |
11744 | /* System header to define __stub macros and hopefully few prototypes, |
11745 | which can conflict with char $ac_func (); below. | |
11746 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11747 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 11748 | |
572a3cc2 JD |
11749 | #ifdef __STDC__ |
11750 | # include <limits.h> | |
11751 | #else | |
11752 | # include <assert.h> | |
11753 | #endif | |
edfaf76d LK |
11754 | |
11755 | #undef $ac_func | |
11756 | ||
d6e01aa5 KL |
11757 | /* Override any GCC internal prototype to avoid an error. |
11758 | Use char because int might match the return type of a GCC | |
11759 | builtin and then its argument prototype would still apply. */ | |
572a3cc2 JD |
11760 | #ifdef __cplusplus |
11761 | extern "C" | |
572a3cc2 | 11762 | #endif |
572a3cc2 JD |
11763 | char $ac_func (); |
11764 | /* The GNU C library defines this for functions which it implements | |
11765 | to always fail with ENOSYS. Some functions are actually named | |
11766 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 11767 | #if defined __stub_$ac_func || defined __stub___$ac_func |
572a3cc2 | 11768 | choke me |
572a3cc2 JD |
11769 | #endif |
11770 | ||
11771 | int | |
11772 | main () | |
11773 | { | |
d6e01aa5 | 11774 | return $ac_func (); |
572a3cc2 JD |
11775 | ; |
11776 | return 0; | |
11777 | } | |
11778 | _ACEOF | |
11779 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
11780 | if { (ac_try="$ac_link" |
11781 | case "(($ac_try" in | |
11782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11783 | *) ac_try_echo=$ac_try;; | |
11784 | esac | |
11785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11786 | (eval "$ac_link") 2>conftest.er1 | |
572a3cc2 | 11787 | ac_status=$? |
edfaf76d LK |
11788 | grep -v '^ *+' conftest.er1 >conftest.err |
11789 | rm -f conftest.er1 | |
11790 | cat conftest.err >&5 | |
572a3cc2 | 11791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
11792 | (exit $ac_status); } && { |
11793 | test -z "$ac_c_werror_flag" || | |
11794 | test ! -s conftest.err | |
11795 | } && test -s conftest$ac_exeext && | |
11796 | $as_test_x conftest$ac_exeext; then | |
572a3cc2 JD |
11797 | eval "$as_ac_var=yes" |
11798 | else | |
11799 | echo "$as_me: failed program was:" >&5 | |
11800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11801 | ||
d6e01aa5 | 11802 | eval "$as_ac_var=no" |
572a3cc2 | 11803 | fi |
d6e01aa5 KL |
11804 | |
11805 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 11806 | conftest$ac_exeext conftest.$ac_ext |
572a3cc2 | 11807 | fi |
d6e01aa5 KL |
11808 | ac_res=`eval echo '${'$as_ac_var'}'` |
11809 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11810 | echo "${ECHO_T}$ac_res" >&6; } | |
572a3cc2 JD |
11811 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11812 | cat >>confdefs.h <<_ACEOF | |
11813 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11814 | _ACEOF | |
11815 | HAVE_GTK_FILE_CHOOSER=yes | |
11816 | fi | |
11817 | done | |
11818 | ||
11819 | ||
11820 | if test "$HAVE_GTK_FILE_SELECTION" = yes \ | |
11821 | && test "$HAVE_GTK_FILE_CHOOSER" = yes; then | |
11822 | ||
11823 | cat >>confdefs.h <<\_ACEOF | |
11824 | #define HAVE_GTK_FILE_BOTH 1 | |
57669b57 JD |
11825 | _ACEOF |
11826 | ||
b8bdffbe JD |
11827 | fi |
11828 | ||
11829 | if test "$HAVE_GTK_FILE_CHOOSER" = yes; then | |
11830 | HAVE_GTK_AND_PTHREAD=no | |
11831 | ||
11832 | for ac_header in pthread.h | |
11833 | do | |
11834 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
11835 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11836 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11837 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11838 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b8bdffbe JD |
11839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11840 | fi | |
d6e01aa5 KL |
11841 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11842 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11843 | echo "${ECHO_T}$ac_res" >&6; } | |
b8bdffbe JD |
11844 | else |
11845 | # Is the header compilable? | |
d6e01aa5 KL |
11846 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11847 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b8bdffbe JD |
11848 | cat >conftest.$ac_ext <<_ACEOF |
11849 | /* confdefs.h. */ | |
11850 | _ACEOF | |
11851 | cat confdefs.h >>conftest.$ac_ext | |
11852 | cat >>conftest.$ac_ext <<_ACEOF | |
11853 | /* end confdefs.h. */ | |
11854 | $ac_includes_default | |
11855 | #include <$ac_header> | |
11856 | _ACEOF | |
11857 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
11858 | if { (ac_try="$ac_compile" |
11859 | case "(($ac_try" in | |
11860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11861 | *) ac_try_echo=$ac_try;; | |
11862 | esac | |
11863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11864 | (eval "$ac_compile") 2>conftest.er1 | |
b8bdffbe | 11865 | ac_status=$? |
edfaf76d LK |
11866 | grep -v '^ *+' conftest.er1 >conftest.err |
11867 | rm -f conftest.er1 | |
11868 | cat conftest.err >&5 | |
b8bdffbe | 11869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
11870 | (exit $ac_status); } && { |
11871 | test -z "$ac_c_werror_flag" || | |
11872 | test ! -s conftest.err | |
11873 | } && test -s conftest.$ac_objext; then | |
b8bdffbe JD |
11874 | ac_header_compiler=yes |
11875 | else | |
11876 | echo "$as_me: failed program was:" >&5 | |
11877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11878 | ||
d6e01aa5 | 11879 | ac_header_compiler=no |
b8bdffbe | 11880 | fi |
b8bdffbe | 11881 | |
d6e01aa5 KL |
11882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11883 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11884 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b8bdffbe JD |
11885 | |
11886 | # Is the header present? | |
d6e01aa5 KL |
11887 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11888 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b8bdffbe JD |
11889 | cat >conftest.$ac_ext <<_ACEOF |
11890 | /* confdefs.h. */ | |
11891 | _ACEOF | |
11892 | cat confdefs.h >>conftest.$ac_ext | |
11893 | cat >>conftest.$ac_ext <<_ACEOF | |
11894 | /* end confdefs.h. */ | |
11895 | #include <$ac_header> | |
11896 | _ACEOF | |
d6e01aa5 KL |
11897 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11898 | case "(($ac_try" in | |
11899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11900 | *) ac_try_echo=$ac_try;; | |
11901 | esac | |
11902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11903 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b8bdffbe JD |
11904 | ac_status=$? |
11905 | grep -v '^ *+' conftest.er1 >conftest.err | |
11906 | rm -f conftest.er1 | |
11907 | cat conftest.err >&5 | |
11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
11909 | (exit $ac_status); } >/dev/null && { |
11910 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11911 | test ! -s conftest.err | |
11912 | }; then | |
b8bdffbe JD |
11913 | ac_header_preproc=yes |
11914 | else | |
11915 | echo "$as_me: failed program was:" >&5 | |
11916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11917 | ||
11918 | ac_header_preproc=no | |
11919 | fi | |
d6e01aa5 | 11920 | |
b8bdffbe | 11921 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
11922 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11923 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b8bdffbe JD |
11924 | |
11925 | # So? What about this header? | |
edfaf76d LK |
11926 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11927 | yes:no: ) | |
b8bdffbe JD |
11928 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11929 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
11930 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11931 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11932 | ac_header_preproc=yes | |
b8bdffbe | 11933 | ;; |
edfaf76d | 11934 | no:yes:* ) |
b8bdffbe JD |
11935 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11936 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
11937 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11938 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11939 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11940 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11941 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11942 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
b8bdffbe JD |
11943 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11944 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
11945 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11946 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 11947 | |
b8bdffbe JD |
11948 | ;; |
11949 | esac | |
d6e01aa5 KL |
11950 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11951 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11952 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b8bdffbe JD |
11953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11954 | else | |
edfaf76d | 11955 | eval "$as_ac_Header=\$ac_header_preproc" |
b8bdffbe | 11956 | fi |
d6e01aa5 KL |
11957 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11958 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11959 | echo "${ECHO_T}$ac_res" >&6; } | |
b8bdffbe JD |
11960 | |
11961 | fi | |
11962 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11963 | cat >>confdefs.h <<_ACEOF | |
11964 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11965 | _ACEOF | |
11966 | ||
11967 | fi | |
11968 | ||
11969 | done | |
11970 | ||
11971 | if test "$ac_cv_header_pthread_h"; then | |
d6e01aa5 KL |
11972 | { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5 |
11973 | echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; } | |
b8bdffbe JD |
11974 | if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then |
11975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11976 | else | |
11977 | ac_check_lib_save_LIBS=$LIBS | |
11978 | LIBS="-lpthread $LIBS" | |
11979 | cat >conftest.$ac_ext <<_ACEOF | |
11980 | /* confdefs.h. */ | |
11981 | _ACEOF | |
11982 | cat confdefs.h >>conftest.$ac_ext | |
11983 | cat >>conftest.$ac_ext <<_ACEOF | |
11984 | /* end confdefs.h. */ | |
11985 | ||
d6e01aa5 KL |
11986 | /* Override any GCC internal prototype to avoid an error. |
11987 | Use char because int might match the return type of a GCC | |
11988 | builtin and then its argument prototype would still apply. */ | |
b8bdffbe JD |
11989 | #ifdef __cplusplus |
11990 | extern "C" | |
11991 | #endif | |
b8bdffbe JD |
11992 | char pthread_self (); |
11993 | int | |
11994 | main () | |
11995 | { | |
d6e01aa5 | 11996 | return pthread_self (); |
b8bdffbe JD |
11997 | ; |
11998 | return 0; | |
11999 | } | |
12000 | _ACEOF | |
12001 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
12002 | if { (ac_try="$ac_link" |
12003 | case "(($ac_try" in | |
12004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12005 | *) ac_try_echo=$ac_try;; | |
12006 | esac | |
12007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12008 | (eval "$ac_link") 2>conftest.er1 | |
b8bdffbe | 12009 | ac_status=$? |
edfaf76d LK |
12010 | grep -v '^ *+' conftest.er1 >conftest.err |
12011 | rm -f conftest.er1 | |
12012 | cat conftest.err >&5 | |
b8bdffbe | 12013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
12014 | (exit $ac_status); } && { |
12015 | test -z "$ac_c_werror_flag" || | |
12016 | test ! -s conftest.err | |
12017 | } && test -s conftest$ac_exeext && | |
12018 | $as_test_x conftest$ac_exeext; then | |
b8bdffbe JD |
12019 | ac_cv_lib_pthread_pthread_self=yes |
12020 | else | |
12021 | echo "$as_me: failed program was:" >&5 | |
12022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12023 | ||
d6e01aa5 | 12024 | ac_cv_lib_pthread_pthread_self=no |
b8bdffbe | 12025 | fi |
d6e01aa5 KL |
12026 | |
12027 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 12028 | conftest$ac_exeext conftest.$ac_ext |
b8bdffbe JD |
12029 | LIBS=$ac_check_lib_save_LIBS |
12030 | fi | |
d6e01aa5 KL |
12031 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5 |
12032 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; } | |
b8bdffbe JD |
12033 | if test $ac_cv_lib_pthread_pthread_self = yes; then |
12034 | HAVE_GTK_AND_PTHREAD=yes | |
12035 | fi | |
12036 | ||
12037 | fi | |
12038 | if test "$HAVE_GTK_AND_PTHREAD" = yes; then | |
846d1b3e JD |
12039 | case "${canonical}" in |
12040 | *-hpux*) ;; | |
12041 | *) GTK_LIBS="$GTK_LIBS -lpthread" ;; | |
12042 | esac | |
b8bdffbe JD |
12043 | |
12044 | cat >>confdefs.h <<\_ACEOF | |
12045 | #define HAVE_GTK_AND_PTHREAD 1 | |
12046 | _ACEOF | |
12047 | ||
12048 | fi | |
57669b57 | 12049 | fi |
488dd4c4 JD |
12050 | fi |
12051 | ||
9d89ffd0 JD |
12052 | ### Link with -lXft if available to work around a bug. |
12053 | HAVE_XFT=maybe | |
12054 | if test "${HAVE_GTK}" = "yes"; then | |
12055 | if test "X${with_pkg_config_prog}" != X; then | |
12056 | PKG_CONFIG="${with_pkg_config_prog}" | |
12057 | fi | |
12058 | ||
12059 | ||
12060 | succeeded=no | |
12061 | ||
12062 | if test -z "$PKG_CONFIG"; then | |
12063 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
12064 | set dummy pkg-config; ac_word=$2 | |
12065 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12066 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
12067 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
12068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12069 | else | |
12070 | case $PKG_CONFIG in | |
12071 | [\\/]* | ?:[\\/]*) | |
12072 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
12073 | ;; | |
12074 | *) | |
12075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12076 | for as_dir in $PATH | |
12077 | do | |
12078 | IFS=$as_save_IFS | |
12079 | test -z "$as_dir" && as_dir=. | |
12080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12081 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12082 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
12083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12084 | break 2 | |
12085 | fi | |
12086 | done | |
12087 | done | |
12088 | IFS=$as_save_IFS | |
12089 | ||
12090 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
12091 | ;; | |
12092 | esac | |
12093 | fi | |
12094 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
12095 | if test -n "$PKG_CONFIG"; then | |
12096 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
12097 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
12098 | else | |
12099 | { echo "$as_me:$LINENO: result: no" >&5 | |
12100 | echo "${ECHO_T}no" >&6; } | |
12101 | fi | |
12102 | ||
12103 | ||
12104 | fi | |
12105 | ||
12106 | if test "$PKG_CONFIG" = "no" ; then | |
12107 | HAVE_XFT=no | |
12108 | else | |
12109 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
12110 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
12111 | { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5 | |
12112 | echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; } | |
12113 | ||
12114 | if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then | |
12115 | { echo "$as_me:$LINENO: result: yes" >&5 | |
12116 | echo "${ECHO_T}yes" >&6; } | |
12117 | succeeded=yes | |
12118 | ||
12119 | { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5 | |
12120 | echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; } | |
94315858 | 12121 | XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` |
9d89ffd0 JD |
12122 | { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5 |
12123 | echo "${ECHO_T}$XFT_CFLAGS" >&6; } | |
12124 | ||
12125 | { echo "$as_me:$LINENO: checking XFT_LIBS" >&5 | |
12126 | echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; } | |
94315858 | 12127 | XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` |
9d89ffd0 JD |
12128 | { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5 |
12129 | echo "${ECHO_T}$XFT_LIBS" >&6; } | |
12130 | else | |
12131 | { echo "$as_me:$LINENO: result: no" >&5 | |
12132 | echo "${ECHO_T}no" >&6; } | |
12133 | XFT_CFLAGS="" | |
12134 | XFT_LIBS="" | |
12135 | ## If we have a custom action on failure, don't print errors, but | |
12136 | ## do set a variable so people can do so. | |
12137 | XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"` | |
12138 | ||
12139 | fi | |
12140 | ||
12141 | ||
12142 | ||
12143 | else | |
12144 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
12145 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
12146 | fi | |
12147 | fi | |
12148 | ||
12149 | if test $succeeded = yes; then | |
12150 | : | |
12151 | else | |
12152 | HAVE_XFT=no | |
12153 | fi | |
12154 | ||
12155 | if test "$HAVE_XFT" != no; then | |
12156 | OLD_CFLAGS="$CPPFLAGS" | |
f23323c5 | 12157 | OLD_CPPFLAGS="$CFLAGS" |
9d89ffd0 JD |
12158 | OLD_LIBS="$LIBS" |
12159 | CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" | |
12160 | CFLAGS="$CFLAGS $XFT_CFLAGS" | |
12161 | LIBS="$XFT_LIBS $LIBS" | |
12162 | if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
12163 | { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 | |
12164 | echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; } | |
12165 | if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
12166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12167 | fi | |
12168 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 | |
12169 | echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; } | |
12170 | else | |
12171 | # Is the header compilable? | |
12172 | { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5 | |
12173 | echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; } | |
12174 | cat >conftest.$ac_ext <<_ACEOF | |
12175 | /* confdefs.h. */ | |
12176 | _ACEOF | |
12177 | cat confdefs.h >>conftest.$ac_ext | |
12178 | cat >>conftest.$ac_ext <<_ACEOF | |
12179 | /* end confdefs.h. */ | |
12180 | $ac_includes_default | |
12181 | #include <X11/Xft/Xft.h> | |
12182 | _ACEOF | |
12183 | rm -f conftest.$ac_objext | |
12184 | if { (ac_try="$ac_compile" | |
12185 | case "(($ac_try" in | |
12186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12187 | *) ac_try_echo=$ac_try;; | |
12188 | esac | |
12189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12190 | (eval "$ac_compile") 2>conftest.er1 | |
12191 | ac_status=$? | |
12192 | grep -v '^ *+' conftest.er1 >conftest.err | |
12193 | rm -f conftest.er1 | |
12194 | cat conftest.err >&5 | |
12195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12196 | (exit $ac_status); } && { | |
12197 | test -z "$ac_c_werror_flag" || | |
12198 | test ! -s conftest.err | |
12199 | } && test -s conftest.$ac_objext; then | |
12200 | ac_header_compiler=yes | |
12201 | else | |
12202 | echo "$as_me: failed program was:" >&5 | |
12203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12204 | ||
12205 | ac_header_compiler=no | |
12206 | fi | |
12207 | ||
12208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12209 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12210 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
12211 | ||
12212 | # Is the header present? | |
12213 | { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5 | |
12214 | echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; } | |
12215 | cat >conftest.$ac_ext <<_ACEOF | |
12216 | /* confdefs.h. */ | |
12217 | _ACEOF | |
12218 | cat confdefs.h >>conftest.$ac_ext | |
12219 | cat >>conftest.$ac_ext <<_ACEOF | |
12220 | /* end confdefs.h. */ | |
12221 | #include <X11/Xft/Xft.h> | |
12222 | _ACEOF | |
12223 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12224 | case "(($ac_try" in | |
12225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12226 | *) ac_try_echo=$ac_try;; | |
12227 | esac | |
12228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12229 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12230 | ac_status=$? | |
12231 | grep -v '^ *+' conftest.er1 >conftest.err | |
12232 | rm -f conftest.er1 | |
12233 | cat conftest.err >&5 | |
12234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12235 | (exit $ac_status); } >/dev/null && { | |
12236 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12237 | test ! -s conftest.err | |
12238 | }; then | |
12239 | ac_header_preproc=yes | |
12240 | else | |
12241 | echo "$as_me: failed program was:" >&5 | |
12242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12243 | ||
12244 | ac_header_preproc=no | |
12245 | fi | |
12246 | ||
12247 | rm -f conftest.err conftest.$ac_ext | |
12248 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12249 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
12250 | ||
12251 | # So? What about this header? | |
12252 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12253 | yes:no: ) | |
12254 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12255 | echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12256 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5 | |
12257 | echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;} | |
12258 | ac_header_preproc=yes | |
12259 | ;; | |
12260 | no:yes:* ) | |
12261 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5 | |
12262 | echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;} | |
12263 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5 | |
12264 | echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;} | |
12265 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5 | |
12266 | echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;} | |
12267 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5 | |
12268 | echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
12269 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5 | |
12270 | echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;} | |
12271 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5 | |
12272 | echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;} | |
12273 | ||
12274 | ;; | |
12275 | esac | |
12276 | { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 | |
12277 | echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; } | |
12278 | if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
12279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12280 | else | |
12281 | ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc | |
12282 | fi | |
12283 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 | |
12284 | echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; } | |
12285 | ||
12286 | fi | |
12287 | if test $ac_cv_header_X11_Xft_Xft_h = yes; then | |
12288 | { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5 | |
12289 | echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; } | |
12290 | if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then | |
12291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12292 | else | |
12293 | ac_check_lib_save_LIBS=$LIBS | |
12294 | LIBS="-lXft $XFT_LIBS $LIBS" | |
12295 | cat >conftest.$ac_ext <<_ACEOF | |
12296 | /* confdefs.h. */ | |
12297 | _ACEOF | |
12298 | cat confdefs.h >>conftest.$ac_ext | |
12299 | cat >>conftest.$ac_ext <<_ACEOF | |
12300 | /* end confdefs.h. */ | |
12301 | ||
12302 | /* Override any GCC internal prototype to avoid an error. | |
12303 | Use char because int might match the return type of a GCC | |
12304 | builtin and then its argument prototype would still apply. */ | |
12305 | #ifdef __cplusplus | |
12306 | extern "C" | |
12307 | #endif | |
12308 | char XftFontOpen (); | |
12309 | int | |
12310 | main () | |
12311 | { | |
12312 | return XftFontOpen (); | |
12313 | ; | |
12314 | return 0; | |
12315 | } | |
12316 | _ACEOF | |
12317 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12318 | if { (ac_try="$ac_link" | |
12319 | case "(($ac_try" in | |
12320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12321 | *) ac_try_echo=$ac_try;; | |
12322 | esac | |
12323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12324 | (eval "$ac_link") 2>conftest.er1 | |
12325 | ac_status=$? | |
12326 | grep -v '^ *+' conftest.er1 >conftest.err | |
12327 | rm -f conftest.er1 | |
12328 | cat conftest.err >&5 | |
12329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12330 | (exit $ac_status); } && { | |
12331 | test -z "$ac_c_werror_flag" || | |
12332 | test ! -s conftest.err | |
12333 | } && test -s conftest$ac_exeext && | |
12334 | $as_test_x conftest$ac_exeext; then | |
12335 | ac_cv_lib_Xft_XftFontOpen=yes | |
12336 | else | |
12337 | echo "$as_me: failed program was:" >&5 | |
12338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12339 | ||
12340 | ac_cv_lib_Xft_XftFontOpen=no | |
12341 | fi | |
12342 | ||
12343 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12344 | conftest$ac_exeext conftest.$ac_ext | |
12345 | LIBS=$ac_check_lib_save_LIBS | |
12346 | fi | |
12347 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5 | |
12348 | echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; } | |
12349 | if test $ac_cv_lib_Xft_XftFontOpen = yes; then | |
12350 | HAVE_XFT=yes | |
12351 | fi | |
12352 | ||
12353 | fi | |
12354 | ||
12355 | ||
12356 | ||
12357 | if test "${HAVE_XFT}" = "yes"; then | |
12358 | ||
12359 | cat >>confdefs.h <<\_ACEOF | |
12360 | #define HAVE_XFT 1 | |
12361 | _ACEOF | |
12362 | ||
12363 | ||
12364 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" | |
12365 | else | |
12366 | CFLAGS="$OLD_CPPFLAGS" | |
12367 | CFLAGS="$OLD_CFLAGS" | |
12368 | LIBS="$OLD_LIBS" | |
12369 | fi | |
12370 | fi | |
12371 | fi | |
12372 | ||
dba7bae0 | 12373 | HAVE_XAW3D=no |
3685ba3f | 12374 | if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then |
dba7bae0 CY |
12375 | if test x"${HAVE_X11R5}" != xyes; then |
12376 | USE_X_TOOLKIT=none | |
12377 | else | |
c982cf7d JD |
12378 | if test "$with_xaw3d" != no; then |
12379 | { echo "$as_me:$LINENO: checking for xaw3d" >&5 | |
dba7bae0 | 12380 | echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; } |
c982cf7d | 12381 | if test "${emacs_cv_xaw3d+set}" = set; then |
98418dba CW |
12382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12383 | else | |
12384 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12385 | /* confdefs.h. */ |
12386 | _ACEOF | |
12387 | cat confdefs.h >>conftest.$ac_ext | |
12388 | cat >>conftest.$ac_ext <<_ACEOF | |
12389 | /* end confdefs.h. */ | |
98418dba CW |
12390 | |
12391 | #include <X11/Intrinsic.h> | |
dba7bae0 | 12392 | #include <X11/Xaw3d/Simple.h> |
98418dba CW |
12393 | int |
12394 | main () | |
12395 | { | |
12396 | ||
12397 | ; | |
12398 | return 0; | |
12399 | } | |
12400 | _ACEOF | |
12401 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
12402 | if { (ac_try="$ac_link" |
12403 | case "(($ac_try" in | |
12404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12405 | *) ac_try_echo=$ac_try;; | |
12406 | esac | |
12407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12408 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12409 | ac_status=$? |
edfaf76d LK |
12410 | grep -v '^ *+' conftest.er1 >conftest.err |
12411 | rm -f conftest.er1 | |
12412 | cat conftest.err >&5 | |
c0d27fcc | 12413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
12414 | (exit $ac_status); } && { |
12415 | test -z "$ac_c_werror_flag" || | |
12416 | test ! -s conftest.err | |
12417 | } && test -s conftest$ac_exeext && | |
12418 | $as_test_x conftest$ac_exeext; then | |
dba7bae0 | 12419 | emacs_cv_xaw3d=yes |
98418dba CW |
12420 | else |
12421 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12422 | sed 's/^/| /' conftest.$ac_ext >&5 |
12423 | ||
dba7bae0 | 12424 | emacs_cv_xaw3d=no |
98418dba | 12425 | fi |
d6e01aa5 KL |
12426 | |
12427 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 12428 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12429 | fi |
12430 | ||
c982cf7d JD |
12431 | else |
12432 | emacs_cv_xaw3d=no | |
12433 | fi | |
dba7bae0 CY |
12434 | if test $emacs_cv_xaw3d = yes; then |
12435 | { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 | |
12436 | echo "${ECHO_T}yes; using Lucid toolkit" >&6; } | |
98418dba | 12437 | USE_X_TOOLKIT=LUCID |
dba7bae0 CY |
12438 | HAVE_XAW3D=yes |
12439 | ||
12440 | cat >>confdefs.h <<\_ACEOF | |
12441 | #define HAVE_XAW3D 1 | |
12442 | _ACEOF | |
12443 | ||
98418dba | 12444 | else |
dba7bae0 CY |
12445 | { echo "$as_me:$LINENO: result: no" >&5 |
12446 | echo "${ECHO_T}no" >&6; } | |
12447 | { echo "$as_me:$LINENO: checking for libXaw" >&5 | |
12448 | echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; } | |
12449 | if test "${emacs_cv_xaw+set}" = set; then | |
12450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12451 | else | |
12452 | cat >conftest.$ac_ext <<_ACEOF | |
12453 | /* confdefs.h. */ | |
12454 | _ACEOF | |
12455 | cat confdefs.h >>conftest.$ac_ext | |
12456 | cat >>conftest.$ac_ext <<_ACEOF | |
12457 | /* end confdefs.h. */ | |
12458 | ||
12459 | #include <X11/Intrinsic.h> | |
12460 | #include <X11/Xaw/Simple.h> | |
12461 | int | |
12462 | main () | |
12463 | { | |
12464 | ||
12465 | ; | |
12466 | return 0; | |
12467 | } | |
12468 | _ACEOF | |
12469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12470 | if { (ac_try="$ac_link" | |
12471 | case "(($ac_try" in | |
12472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12473 | *) ac_try_echo=$ac_try;; | |
12474 | esac | |
12475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12476 | (eval "$ac_link") 2>conftest.er1 | |
12477 | ac_status=$? | |
12478 | grep -v '^ *+' conftest.er1 >conftest.err | |
12479 | rm -f conftest.er1 | |
12480 | cat conftest.err >&5 | |
12481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12482 | (exit $ac_status); } && { | |
12483 | test -z "$ac_c_werror_flag" || | |
12484 | test ! -s conftest.err | |
12485 | } && test -s conftest$ac_exeext && | |
12486 | $as_test_x conftest$ac_exeext; then | |
12487 | emacs_cv_xaw=yes | |
12488 | else | |
12489 | echo "$as_me: failed program was:" >&5 | |
12490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12491 | ||
12492 | emacs_cv_xaw=no | |
12493 | fi | |
12494 | ||
12495 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12496 | conftest$ac_exeext conftest.$ac_ext | |
12497 | fi | |
12498 | ||
12499 | if test $emacs_cv_xaw = yes; then | |
12500 | { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 | |
12501 | echo "${ECHO_T}yes; using Lucid toolkit" >&6; } | |
12502 | USE_X_TOOLKIT=LUCID | |
12503 | elif test x"${USE_X_TOOLKIT}" = xLUCID; then | |
3685ba3f CY |
12504 | { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5 |
12505 | echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;} | |
12506 | { (exit 1); exit 1; }; } | |
12507 | else | |
dba7bae0 CY |
12508 | { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5 |
12509 | echo "${ECHO_T}no; do not use toolkit by default" >&6; } | |
3685ba3f CY |
12510 | USE_X_TOOLKIT=none |
12511 | fi | |
98418dba | 12512 | fi |
98418dba CW |
12513 | fi |
12514 | fi | |
12515 | ||
12516 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
12517 | ||
12518 | if test "${USE_X_TOOLKIT}" != "none"; then | |
d6e01aa5 KL |
12519 | { echo "$as_me:$LINENO: checking X11 toolkit version" >&5 |
12520 | echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; } | |
98418dba CW |
12521 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then |
12522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12523 | else | |
12524 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12525 | /* confdefs.h. */ |
12526 | _ACEOF | |
12527 | cat confdefs.h >>conftest.$ac_ext | |
12528 | cat >>conftest.$ac_ext <<_ACEOF | |
12529 | /* end confdefs.h. */ | |
98418dba | 12530 | #include <X11/Intrinsic.h> |
98418dba CW |
12531 | int |
12532 | main () | |
12533 | { | |
12534 | #if XtSpecificationRelease < 6 | |
12535 | fail; | |
12536 | #endif | |
12537 | ||
12538 | ; | |
12539 | return 0; | |
12540 | } | |
12541 | _ACEOF | |
12542 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
12543 | if { (ac_try="$ac_link" |
12544 | case "(($ac_try" in | |
12545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12546 | *) ac_try_echo=$ac_try;; | |
12547 | esac | |
12548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12549 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12550 | ac_status=$? |
edfaf76d LK |
12551 | grep -v '^ *+' conftest.er1 >conftest.err |
12552 | rm -f conftest.er1 | |
12553 | cat conftest.err >&5 | |
c0d27fcc | 12554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
12555 | (exit $ac_status); } && { |
12556 | test -z "$ac_c_werror_flag" || | |
12557 | test ! -s conftest.err | |
12558 | } && test -s conftest$ac_exeext && | |
12559 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
12560 | emacs_cv_x11_toolkit_version_6=yes |
12561 | else | |
12562 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12563 | sed 's/^/| /' conftest.$ac_ext >&5 |
12564 | ||
d6e01aa5 | 12565 | emacs_cv_x11_toolkit_version_6=no |
98418dba | 12566 | fi |
d6e01aa5 KL |
12567 | |
12568 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 12569 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12570 | fi |
12571 | ||
12572 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
12573 | if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
d6e01aa5 KL |
12574 | { echo "$as_me:$LINENO: result: 6 or newer" >&5 |
12575 | echo "${ECHO_T}6 or newer" >&6; } | |
b936fae4 | 12576 | |
c0d27fcc | 12577 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12578 | #define HAVE_X11XTR6 1 |
c0d27fcc | 12579 | _ACEOF |
98418dba CW |
12580 | |
12581 | else | |
d6e01aa5 KL |
12582 | { echo "$as_me:$LINENO: result: before 6" >&5 |
12583 | echo "${ECHO_T}before 6" >&6; } | |
98418dba CW |
12584 | fi |
12585 | ||
12586 | OLDLIBS="$LIBS" | |
12587 | if test x$HAVE_X11XTR6 = xyes; then | |
12588 | LIBS="-lXt -lSM -lICE $LIBS" | |
12589 | else | |
12590 | LIBS="-lXt $LIBS" | |
12591 | fi | |
12592 | ||
d6e01aa5 KL |
12593 | { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5 |
12594 | echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; } | |
98418dba CW |
12595 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then |
12596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12597 | else | |
12598 | ac_check_lib_save_LIBS=$LIBS | |
12599 | LIBS="-lXmu $LIBS" | |
12600 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12601 | /* confdefs.h. */ |
12602 | _ACEOF | |
12603 | cat confdefs.h >>conftest.$ac_ext | |
12604 | cat >>conftest.$ac_ext <<_ACEOF | |
12605 | /* end confdefs.h. */ | |
98418dba | 12606 | |
d6e01aa5 KL |
12607 | /* Override any GCC internal prototype to avoid an error. |
12608 | Use char because int might match the return type of a GCC | |
12609 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
12610 | #ifdef __cplusplus |
12611 | extern "C" | |
12612 | #endif | |
98418dba | 12613 | char XmuConvertStandardSelection (); |
98418dba CW |
12614 | int |
12615 | main () | |
12616 | { | |
d6e01aa5 | 12617 | return XmuConvertStandardSelection (); |
98418dba CW |
12618 | ; |
12619 | return 0; | |
12620 | } | |
12621 | _ACEOF | |
12622 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
12623 | if { (ac_try="$ac_link" |
12624 | case "(($ac_try" in | |
12625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12626 | *) ac_try_echo=$ac_try;; | |
12627 | esac | |
12628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12629 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12630 | ac_status=$? |
edfaf76d LK |
12631 | grep -v '^ *+' conftest.er1 >conftest.err |
12632 | rm -f conftest.er1 | |
12633 | cat conftest.err >&5 | |
c0d27fcc | 12634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
12635 | (exit $ac_status); } && { |
12636 | test -z "$ac_c_werror_flag" || | |
12637 | test ! -s conftest.err | |
12638 | } && test -s conftest$ac_exeext && | |
12639 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
12640 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes |
12641 | else | |
12642 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12643 | sed 's/^/| /' conftest.$ac_ext >&5 |
12644 | ||
d6e01aa5 | 12645 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no |
98418dba | 12646 | fi |
d6e01aa5 KL |
12647 | |
12648 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 12649 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12650 | LIBS=$ac_check_lib_save_LIBS |
12651 | fi | |
d6e01aa5 KL |
12652 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
12653 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } | |
98418dba | 12654 | if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then |
c0d27fcc | 12655 | cat >>confdefs.h <<_ACEOF |
98418dba | 12656 | #define HAVE_LIBXMU 1 |
c0d27fcc | 12657 | _ACEOF |
98418dba CW |
12658 | |
12659 | LIBS="-lXmu $LIBS" | |
12660 | ||
12661 | fi | |
12662 | ||
12663 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" | |
12664 | fi | |
12665 | ||
12666 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
12667 | if test "${HAVE_X11}" = "yes"; then | |
12668 | if test "${USE_X_TOOLKIT}" != "none"; then | |
12669 | ||
d6e01aa5 KL |
12670 | { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
12671 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; } | |
98418dba CW |
12672 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
12673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12674 | else | |
12675 | ac_check_lib_save_LIBS=$LIBS | |
12676 | LIBS="-lXext $LIBS" | |
12677 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12678 | /* confdefs.h. */ |
12679 | _ACEOF | |
12680 | cat confdefs.h >>conftest.$ac_ext | |
12681 | cat >>conftest.$ac_ext <<_ACEOF | |
12682 | /* end confdefs.h. */ | |
98418dba | 12683 | |
d6e01aa5 KL |
12684 | /* Override any GCC internal prototype to avoid an error. |
12685 | Use char because int might match the return type of a GCC | |
12686 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
12687 | #ifdef __cplusplus |
12688 | extern "C" | |
12689 | #endif | |
98418dba | 12690 | char XShapeQueryExtension (); |
98418dba CW |
12691 | int |
12692 | main () | |
12693 | { | |
d6e01aa5 | 12694 | return XShapeQueryExtension (); |
98418dba CW |
12695 | ; |
12696 | return 0; | |
12697 | } | |
12698 | _ACEOF | |
12699 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
12700 | if { (ac_try="$ac_link" |
12701 | case "(($ac_try" in | |
12702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12703 | *) ac_try_echo=$ac_try;; | |
12704 | esac | |
12705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12706 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12707 | ac_status=$? |
edfaf76d LK |
12708 | grep -v '^ *+' conftest.er1 >conftest.err |
12709 | rm -f conftest.er1 | |
12710 | cat conftest.err >&5 | |
c0d27fcc | 12711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
12712 | (exit $ac_status); } && { |
12713 | test -z "$ac_c_werror_flag" || | |
12714 | test ! -s conftest.err | |
12715 | } && test -s conftest$ac_exeext && | |
12716 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
12717 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
12718 | else | |
12719 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12720 | sed 's/^/| /' conftest.$ac_ext >&5 |
12721 | ||
d6e01aa5 | 12722 | ac_cv_lib_Xext_XShapeQueryExtension=no |
98418dba | 12723 | fi |
d6e01aa5 KL |
12724 | |
12725 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 12726 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12727 | LIBS=$ac_check_lib_save_LIBS |
12728 | fi | |
d6e01aa5 KL |
12729 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
12730 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } | |
98418dba | 12731 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
c0d27fcc | 12732 | cat >>confdefs.h <<_ACEOF |
98418dba | 12733 | #define HAVE_LIBXEXT 1 |
c0d27fcc | 12734 | _ACEOF |
98418dba CW |
12735 | |
12736 | LIBS="-lXext $LIBS" | |
12737 | ||
12738 | fi | |
12739 | ||
12740 | fi | |
12741 | fi | |
12742 | ||
12743 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
d6e01aa5 KL |
12744 | { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 |
12745 | echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; } | |
98418dba CW |
12746 | if test "${emacs_cv_motif_version_2_1+set}" = set; then |
12747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12748 | else | |
12749 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12750 | /* confdefs.h. */ |
12751 | _ACEOF | |
12752 | cat confdefs.h >>conftest.$ac_ext | |
12753 | cat >>conftest.$ac_ext <<_ACEOF | |
12754 | /* end confdefs.h. */ | |
98418dba | 12755 | #include <Xm/Xm.h> |
98418dba CW |
12756 | int |
12757 | main () | |
12758 | { | |
12759 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
12760 | int x = 5; | |
12761 | #else | |
12762 | Motif version prior to 2.1. | |
12763 | #endif | |
12764 | ; | |
12765 | return 0; | |
12766 | } | |
12767 | _ACEOF | |
12768 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
12769 | if { (ac_try="$ac_compile" |
12770 | case "(($ac_try" in | |
12771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12772 | *) ac_try_echo=$ac_try;; | |
12773 | esac | |
12774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12775 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 12776 | ac_status=$? |
edfaf76d LK |
12777 | grep -v '^ *+' conftest.er1 >conftest.err |
12778 | rm -f conftest.er1 | |
12779 | cat conftest.err >&5 | |
c0d27fcc | 12780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
12781 | (exit $ac_status); } && { |
12782 | test -z "$ac_c_werror_flag" || | |
12783 | test ! -s conftest.err | |
12784 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
12785 | emacs_cv_motif_version_2_1=yes |
12786 | else | |
12787 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12788 | sed 's/^/| /' conftest.$ac_ext >&5 |
12789 | ||
d6e01aa5 | 12790 | emacs_cv_motif_version_2_1=no |
98418dba | 12791 | fi |
d6e01aa5 KL |
12792 | |
12793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 12794 | fi |
d6e01aa5 KL |
12795 | { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 |
12796 | echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; } | |
98418dba CW |
12797 | HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 |
12798 | if test $emacs_cv_motif_version_2_1 = yes; then | |
12799 | HAVE_LIBXP=no | |
b936fae4 | 12800 | |
c0d27fcc | 12801 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12802 | #define HAVE_MOTIF_2_1 1 |
c0d27fcc | 12803 | _ACEOF |
98418dba | 12804 | |
d6e01aa5 KL |
12805 | { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 |
12806 | echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; } | |
98418dba CW |
12807 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then |
12808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12809 | else | |
12810 | ac_check_lib_save_LIBS=$LIBS | |
12811 | LIBS="-lXp $LIBS" | |
12812 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12813 | /* confdefs.h. */ |
12814 | _ACEOF | |
12815 | cat confdefs.h >>conftest.$ac_ext | |
12816 | cat >>conftest.$ac_ext <<_ACEOF | |
12817 | /* end confdefs.h. */ | |
98418dba | 12818 | |
d6e01aa5 KL |
12819 | /* Override any GCC internal prototype to avoid an error. |
12820 | Use char because int might match the return type of a GCC | |
12821 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
12822 | #ifdef __cplusplus |
12823 | extern "C" | |
12824 | #endif | |
98418dba | 12825 | char XpCreateContext (); |
98418dba CW |
12826 | int |
12827 | main () | |
12828 | { | |
d6e01aa5 | 12829 | return XpCreateContext (); |
98418dba CW |
12830 | ; |
12831 | return 0; | |
12832 | } | |
12833 | _ACEOF | |
12834 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
12835 | if { (ac_try="$ac_link" |
12836 | case "(($ac_try" in | |
12837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12838 | *) ac_try_echo=$ac_try;; | |
12839 | esac | |
12840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12841 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12842 | ac_status=$? |
edfaf76d LK |
12843 | grep -v '^ *+' conftest.er1 >conftest.err |
12844 | rm -f conftest.er1 | |
12845 | cat conftest.err >&5 | |
c0d27fcc | 12846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
12847 | (exit $ac_status); } && { |
12848 | test -z "$ac_c_werror_flag" || | |
12849 | test ! -s conftest.err | |
12850 | } && test -s conftest$ac_exeext && | |
12851 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
12852 | ac_cv_lib_Xp_XpCreateContext=yes |
12853 | else | |
12854 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12855 | sed 's/^/| /' conftest.$ac_ext >&5 |
12856 | ||
d6e01aa5 | 12857 | ac_cv_lib_Xp_XpCreateContext=no |
98418dba | 12858 | fi |
d6e01aa5 KL |
12859 | |
12860 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 12861 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12862 | LIBS=$ac_check_lib_save_LIBS |
12863 | fi | |
d6e01aa5 KL |
12864 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
12865 | echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; } | |
98418dba CW |
12866 | if test $ac_cv_lib_Xp_XpCreateContext = yes; then |
12867 | HAVE_LIBXP=yes | |
12868 | fi | |
503d2be0 | 12869 | |
98418dba | 12870 | if test ${HAVE_LIBXP} = yes; then |
b936fae4 | 12871 | |
c0d27fcc | 12872 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12873 | #define HAVE_LIBXP 1 |
c0d27fcc | 12874 | _ACEOF |
503d2be0 | 12875 | |
98418dba | 12876 | fi |
4693dbc9 | 12877 | else |
d6e01aa5 KL |
12878 | { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 |
12879 | echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; } | |
4693dbc9 SM |
12880 | if test "${emacs_cv_lesstif+set}" = set; then |
12881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12882 | else | |
12883 | # We put this in CFLAGS temporarily to precede other -I options | |
12884 | # that might be in CFLAGS temporarily. | |
12885 | # We put this in CPPFLAGS where it precedes the other -I options. | |
12886 | OLD_CPPFLAGS=$CPPFLAGS | |
12887 | OLD_CFLAGS=$CFLAGS | |
12888 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | |
12889 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | |
12890 | cat >conftest.$ac_ext <<_ACEOF | |
12891 | /* confdefs.h. */ | |
12892 | _ACEOF | |
12893 | cat confdefs.h >>conftest.$ac_ext | |
12894 | cat >>conftest.$ac_ext <<_ACEOF | |
12895 | /* end confdefs.h. */ | |
12896 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> | |
12897 | int | |
12898 | main () | |
12899 | { | |
12900 | int x = 5; | |
12901 | ; | |
12902 | return 0; | |
12903 | } | |
12904 | _ACEOF | |
12905 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
12906 | if { (ac_try="$ac_compile" |
12907 | case "(($ac_try" in | |
12908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12909 | *) ac_try_echo=$ac_try;; | |
12910 | esac | |
12911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12912 | (eval "$ac_compile") 2>conftest.er1 | |
4693dbc9 | 12913 | ac_status=$? |
edfaf76d LK |
12914 | grep -v '^ *+' conftest.er1 >conftest.err |
12915 | rm -f conftest.er1 | |
12916 | cat conftest.err >&5 | |
4693dbc9 | 12917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
12918 | (exit $ac_status); } && { |
12919 | test -z "$ac_c_werror_flag" || | |
12920 | test ! -s conftest.err | |
12921 | } && test -s conftest.$ac_objext; then | |
4693dbc9 SM |
12922 | emacs_cv_lesstif=yes |
12923 | else | |
12924 | echo "$as_me: failed program was:" >&5 | |
12925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12926 | ||
d6e01aa5 | 12927 | emacs_cv_lesstif=no |
4693dbc9 | 12928 | fi |
d6e01aa5 KL |
12929 | |
12930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4693dbc9 | 12931 | fi |
d6e01aa5 KL |
12932 | { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 |
12933 | echo "${ECHO_T}$emacs_cv_lesstif" >&6; } | |
4693dbc9 SM |
12934 | if test $emacs_cv_lesstif = yes; then |
12935 | # Make sure this -I option remains in CPPFLAGS after it is set | |
12936 | # back to REAL_CPPFLAGS. | |
12937 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | |
12938 | # have those other -I options anyway. Ultimately, having this | |
12939 | # directory ultimately in CPPFLAGS will be enough. | |
12940 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | |
12941 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" | |
12942 | else | |
12943 | CFLAGS=$OLD_CFLAGS | |
12944 | CPPFLAGS=$OLD_CPPFLAGS | |
12945 | fi | |
98418dba CW |
12946 | fi |
12947 | fi | |
12948 | ||
c0d27fcc MR |
12949 | |
12950 | ||
98418dba CW |
12951 | USE_TOOLKIT_SCROLL_BARS=no |
12952 | if test "${with_toolkit_scroll_bars}" != "no"; then | |
12953 | if test "${USE_X_TOOLKIT}" != "none"; then | |
12954 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
c0d27fcc | 12955 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12956 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 12957 | _ACEOF |
98418dba CW |
12958 | |
12959 | HAVE_XAW3D=no | |
12960 | USE_TOOLKIT_SCROLL_BARS=yes | |
12961 | elif test "${HAVE_XAW3D}" = "yes"; then | |
c0d27fcc | 12962 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12963 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 12964 | _ACEOF |
98418dba CW |
12965 | |
12966 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 | 12967 | fi |
488dd4c4 JD |
12968 | elif test "${HAVE_GTK}" = "yes"; then |
12969 | cat >>confdefs.h <<\_ACEOF | |
12970 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
5d6da11e YM |
12971 | _ACEOF |
12972 | ||
12973 | USE_TOOLKIT_SCROLL_BARS=yes | |
12974 | elif test "${HAVE_CARBON}" = "yes"; then | |
12975 | cat >>confdefs.h <<\_ACEOF | |
12976 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
488dd4c4 JD |
12977 | _ACEOF |
12978 | ||
12979 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 DL |
12980 | fi |
12981 | fi | |
12982 | ||
abd39b57 | 12983 | cat >conftest.$ac_ext <<_ACEOF |
abd39b57 AC |
12984 | /* confdefs.h. */ |
12985 | _ACEOF | |
12986 | cat confdefs.h >>conftest.$ac_ext | |
12987 | cat >>conftest.$ac_ext <<_ACEOF | |
12988 | /* end confdefs.h. */ | |
12989 | ||
12990 | #include <X11/Xlib.h> | |
12991 | #include <X11/Xresource.h> | |
12992 | int | |
12993 | main () | |
12994 | { | |
12995 | XIMProc callback; | |
12996 | ; | |
12997 | return 0; | |
12998 | } | |
12999 | _ACEOF | |
13000 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
13001 | if { (ac_try="$ac_compile" |
13002 | case "(($ac_try" in | |
13003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13004 | *) ac_try_echo=$ac_try;; | |
13005 | esac | |
13006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13007 | (eval "$ac_compile") 2>conftest.er1 | |
abd39b57 | 13008 | ac_status=$? |
edfaf76d LK |
13009 | grep -v '^ *+' conftest.er1 >conftest.err |
13010 | rm -f conftest.er1 | |
13011 | cat conftest.err >&5 | |
abd39b57 | 13012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
13013 | (exit $ac_status); } && { |
13014 | test -z "$ac_c_werror_flag" || | |
13015 | test ! -s conftest.err | |
13016 | } && test -s conftest.$ac_objext; then | |
abd39b57 AC |
13017 | HAVE_XIM=yes |
13018 | ||
13019 | cat >>confdefs.h <<\_ACEOF | |
13020 | #define HAVE_XIM 1 | |
13021 | _ACEOF | |
13022 | ||
13023 | else | |
13024 | echo "$as_me: failed program was:" >&5 | |
13025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13026 | ||
d6e01aa5 | 13027 | HAVE_XIM=no |
abd39b57 | 13028 | fi |
d6e01aa5 KL |
13029 | |
13030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
abd39b57 | 13031 | |
c0d27fcc | 13032 | |
98418dba | 13033 | if test "${with_xim}" != "no"; then |
b936fae4 | 13034 | |
c0d27fcc | 13035 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13036 | #define USE_XIM 1 |
c0d27fcc | 13037 | _ACEOF |
98418dba | 13038 | |
793fa0d7 | 13039 | fi |
abd39b57 AC |
13040 | |
13041 | ||
13042 | if test "${HAVE_XIM}" != "no"; then | |
849d80cf DL |
13043 | late_CFLAGS=$CFLAGS |
13044 | if test "$GCC" = yes; then | |
13045 | CFLAGS="$CFLAGS --pedantic-errors" | |
13046 | fi | |
cffcede7 | 13047 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13048 | /* confdefs.h. */ |
13049 | _ACEOF | |
13050 | cat confdefs.h >>conftest.$ac_ext | |
13051 | cat >>conftest.$ac_ext <<_ACEOF | |
13052 | /* end confdefs.h. */ | |
cffcede7 JD |
13053 | |
13054 | #include <X11/Xlib.h> | |
13055 | #include <X11/Xresource.h> | |
13056 | int | |
13057 | main () | |
13058 | { | |
13059 | Display *display; | |
13060 | XrmDatabase db; | |
13061 | char *res_name; | |
13062 | char *res_class; | |
13063 | XIMProc callback; | |
13064 | XPointer *client_data; | |
849d80cf DL |
13065 | #ifndef __GNUC__ |
13066 | /* If we're not using GCC, it's probably not XFree86, and this is | |
13067 | probably right, but we can't use something like --pedantic-errors. */ | |
13068 | extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, | |
13069 | char*, XIMProc, XPointer*); | |
13070 | #endif | |
cffcede7 JD |
13071 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, |
13072 | client_data); | |
13073 | ; | |
13074 | return 0; | |
13075 | } | |
13076 | _ACEOF | |
13077 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
13078 | if { (ac_try="$ac_compile" |
13079 | case "(($ac_try" in | |
13080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13081 | *) ac_try_echo=$ac_try;; | |
13082 | esac | |
13083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13084 | (eval "$ac_compile") 2>conftest.er1 | |
cffcede7 | 13085 | ac_status=$? |
edfaf76d LK |
13086 | grep -v '^ *+' conftest.er1 >conftest.err |
13087 | rm -f conftest.er1 | |
13088 | cat conftest.err >&5 | |
cffcede7 | 13089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
13090 | (exit $ac_status); } && { |
13091 | test -z "$ac_c_werror_flag" || | |
13092 | test ! -s conftest.err | |
13093 | } && test -s conftest.$ac_objext; then | |
cffcede7 JD |
13094 | emacs_cv_arg6_star=yes |
13095 | else | |
13096 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13097 | sed 's/^/| /' conftest.$ac_ext >&5 |
13098 | ||
d6e01aa5 | 13099 | |
cffcede7 | 13100 | fi |
d6e01aa5 KL |
13101 | |
13102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cffcede7 JD |
13103 | |
13104 | if test "$emacs_cv_arg6_star" = yes; then | |
f57bd967 | 13105 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
13106 | #define XRegisterIMInstantiateCallback_arg6 XPointer* |
13107 | _ACEOF | |
13108 | ||
13109 | else | |
f57bd967 | 13110 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
13111 | #define XRegisterIMInstantiateCallback_arg6 XPointer |
13112 | _ACEOF | |
13113 | ||
13114 | fi | |
849d80cf | 13115 | CFLAGS=$late_CFLAGS |
98418dba CW |
13116 | fi |
13117 | ||
13118 | ### Use -lXpm if available, unless `--with-xpm=no'. | |
13119 | HAVE_XPM=no | |
13120 | if test "${HAVE_X11}" = "yes"; then | |
13121 | if test "${with_xpm}" != "no"; then | |
c0d27fcc | 13122 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
d6e01aa5 KL |
13123 | { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 |
13124 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; } | |
98418dba CW |
13125 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
13126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 13127 | fi |
d6e01aa5 KL |
13128 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 |
13129 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; } | |
98418dba | 13130 | else |
c0d27fcc | 13131 | # Is the header compilable? |
d6e01aa5 KL |
13132 | { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 |
13133 | echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 13134 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13135 | /* confdefs.h. */ |
13136 | _ACEOF | |
13137 | cat confdefs.h >>conftest.$ac_ext | |
13138 | cat >>conftest.$ac_ext <<_ACEOF | |
13139 | /* end confdefs.h. */ | |
c0d27fcc MR |
13140 | $ac_includes_default |
13141 | #include <X11/xpm.h> | |
13142 | _ACEOF | |
13143 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
13144 | if { (ac_try="$ac_compile" |
13145 | case "(($ac_try" in | |
13146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13147 | *) ac_try_echo=$ac_try;; | |
13148 | esac | |
13149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13150 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 13151 | ac_status=$? |
edfaf76d LK |
13152 | grep -v '^ *+' conftest.er1 >conftest.err |
13153 | rm -f conftest.er1 | |
13154 | cat conftest.err >&5 | |
c0d27fcc | 13155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
13156 | (exit $ac_status); } && { |
13157 | test -z "$ac_c_werror_flag" || | |
13158 | test ! -s conftest.err | |
13159 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
13160 | ac_header_compiler=yes |
13161 | else | |
13162 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13163 | sed 's/^/| /' conftest.$ac_ext >&5 |
13164 | ||
d6e01aa5 | 13165 | ac_header_compiler=no |
c0d27fcc | 13166 | fi |
d6e01aa5 KL |
13167 | |
13168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13169 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13170 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
13171 | |
13172 | # Is the header present? | |
d6e01aa5 KL |
13173 | { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 |
13174 | echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 13175 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13176 | /* confdefs.h. */ |
13177 | _ACEOF | |
13178 | cat confdefs.h >>conftest.$ac_ext | |
13179 | cat >>conftest.$ac_ext <<_ACEOF | |
13180 | /* end confdefs.h. */ | |
98418dba CW |
13181 | #include <X11/xpm.h> |
13182 | _ACEOF | |
d6e01aa5 KL |
13183 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13184 | case "(($ac_try" in | |
13185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13186 | *) ac_try_echo=$ac_try;; | |
13187 | esac | |
13188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13189 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 13190 | ac_status=$? |
6bae0ccf | 13191 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13192 | rm -f conftest.er1 |
13193 | cat conftest.err >&5 | |
c0d27fcc | 13194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
13195 | (exit $ac_status); } >/dev/null && { |
13196 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13197 | test ! -s conftest.err | |
13198 | }; then | |
c0d27fcc | 13199 | ac_header_preproc=yes |
98418dba CW |
13200 | else |
13201 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13202 | sed 's/^/| /' conftest.$ac_ext >&5 |
13203 | ||
c0d27fcc | 13204 | ac_header_preproc=no |
98418dba | 13205 | fi |
d6e01aa5 | 13206 | |
98418dba | 13207 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
13208 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13209 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
13210 | |
13211 | # So? What about this header? | |
edfaf76d LK |
13212 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13213 | yes:no: ) | |
c0d27fcc MR |
13214 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
13215 | echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
13216 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5 |
13217 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;} | |
13218 | ac_header_preproc=yes | |
13219 | ;; | |
13220 | no:yes:* ) | |
13221 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 | |
13222 | echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} | |
13223 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 | |
13224 | echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} | |
13225 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5 | |
13226 | echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;} | |
13227 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13228 | echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7c9e5167 JD |
13229 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 |
13230 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
13231 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5 |
13232 | echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 13233 | |
19650fd6 | 13234 | ;; |
c0d27fcc | 13235 | esac |
d6e01aa5 KL |
13236 | { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 |
13237 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
13238 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
13239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13240 | else | |
13241 | ac_cv_header_X11_xpm_h=$ac_header_preproc | |
ba4481b5 | 13242 | fi |
d6e01aa5 KL |
13243 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 |
13244 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; } | |
c0d27fcc MR |
13245 | |
13246 | fi | |
98418dba | 13247 | if test $ac_cv_header_X11_xpm_h = yes; then |
d6e01aa5 KL |
13248 | { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5 |
13249 | echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; } | |
98418dba | 13250 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then |
503d2be0 | 13251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13252 | else |
98418dba CW |
13253 | ac_check_lib_save_LIBS=$LIBS |
13254 | LIBS="-lXpm -lX11 $LIBS" | |
13255 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13256 | /* confdefs.h. */ |
13257 | _ACEOF | |
13258 | cat confdefs.h >>conftest.$ac_ext | |
13259 | cat >>conftest.$ac_ext <<_ACEOF | |
13260 | /* end confdefs.h. */ | |
98418dba | 13261 | |
d6e01aa5 KL |
13262 | /* Override any GCC internal prototype to avoid an error. |
13263 | Use char because int might match the return type of a GCC | |
13264 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
13265 | #ifdef __cplusplus |
13266 | extern "C" | |
13267 | #endif | |
98418dba | 13268 | char XpmReadFileToPixmap (); |
503d2be0 AS |
13269 | int |
13270 | main () | |
13271 | { | |
d6e01aa5 | 13272 | return XpmReadFileToPixmap (); |
503d2be0 AS |
13273 | ; |
13274 | return 0; | |
13275 | } | |
13276 | _ACEOF | |
13277 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
13278 | if { (ac_try="$ac_link" |
13279 | case "(($ac_try" in | |
13280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13281 | *) ac_try_echo=$ac_try;; | |
13282 | esac | |
13283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13284 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 13285 | ac_status=$? |
edfaf76d LK |
13286 | grep -v '^ *+' conftest.er1 >conftest.err |
13287 | rm -f conftest.er1 | |
13288 | cat conftest.err >&5 | |
c0d27fcc | 13289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
13290 | (exit $ac_status); } && { |
13291 | test -z "$ac_c_werror_flag" || | |
13292 | test ! -s conftest.err | |
13293 | } && test -s conftest$ac_exeext && | |
13294 | $as_test_x conftest$ac_exeext; then | |
98418dba | 13295 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes |
503d2be0 AS |
13296 | else |
13297 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13298 | sed 's/^/| /' conftest.$ac_ext >&5 |
13299 | ||
d6e01aa5 | 13300 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no |
503d2be0 | 13301 | fi |
d6e01aa5 KL |
13302 | |
13303 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 13304 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 13305 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 13306 | fi |
d6e01aa5 KL |
13307 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
13308 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } | |
98418dba CW |
13309 | if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then |
13310 | HAVE_XPM=yes | |
ba4481b5 DL |
13311 | fi |
13312 | ||
98418dba CW |
13313 | fi |
13314 | ||
c0d27fcc | 13315 | |
98418dba | 13316 | if test "${HAVE_XPM}" = "yes"; then |
d6e01aa5 KL |
13317 | { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 |
13318 | echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; } | |
98418dba | 13319 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13320 | /* confdefs.h. */ |
13321 | _ACEOF | |
13322 | cat confdefs.h >>conftest.$ac_ext | |
13323 | cat >>conftest.$ac_ext <<_ACEOF | |
13324 | /* end confdefs.h. */ | |
98418dba CW |
13325 | #include "X11/xpm.h" |
13326 | #ifndef XpmReturnAllocPixels | |
13327 | no_return_alloc_pixels | |
503d2be0 | 13328 | #endif |
ba4481b5 | 13329 | |
98418dba CW |
13330 | _ACEOF |
13331 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 13332 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then |
98418dba CW |
13333 | HAVE_XPM=no |
13334 | else | |
13335 | HAVE_XPM=yes | |
13336 | fi | |
13337 | rm -f conftest* | |
ba4481b5 | 13338 | |
c0d27fcc | 13339 | |
98418dba | 13340 | if test "${HAVE_XPM}" = "yes"; then |
d6e01aa5 KL |
13341 | { echo "$as_me:$LINENO: result: yes" >&5 |
13342 | echo "${ECHO_T}yes" >&6; } | |
98418dba | 13343 | else |
d6e01aa5 KL |
13344 | { echo "$as_me:$LINENO: result: no" >&5 |
13345 | echo "${ECHO_T}no" >&6; } | |
98418dba CW |
13346 | fi |
13347 | fi | |
13348 | fi | |
13349 | ||
13350 | if test "${HAVE_XPM}" = "yes"; then | |
b936fae4 | 13351 | |
c0d27fcc | 13352 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13353 | #define HAVE_XPM 1 |
c0d27fcc | 13354 | _ACEOF |
98418dba CW |
13355 | |
13356 | fi | |
13357 | fi | |
13358 | ||
13359 | ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
13360 | HAVE_JPEG=no | |
13361 | if test "${HAVE_X11}" = "yes"; then | |
13362 | if test "${with_jpeg}" != "no"; then | |
c0d27fcc | 13363 | if test "${ac_cv_header_jerror_h+set}" = set; then |
d6e01aa5 KL |
13364 | { echo "$as_me:$LINENO: checking for jerror.h" >&5 |
13365 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; } | |
98418dba CW |
13366 | if test "${ac_cv_header_jerror_h+set}" = set; then |
13367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 13368 | fi |
d6e01aa5 KL |
13369 | { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
13370 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; } | |
503d2be0 | 13371 | else |
c0d27fcc | 13372 | # Is the header compilable? |
d6e01aa5 KL |
13373 | { echo "$as_me:$LINENO: checking jerror.h usability" >&5 |
13374 | echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 13375 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13376 | /* confdefs.h. */ |
13377 | _ACEOF | |
13378 | cat confdefs.h >>conftest.$ac_ext | |
13379 | cat >>conftest.$ac_ext <<_ACEOF | |
13380 | /* end confdefs.h. */ | |
c0d27fcc MR |
13381 | $ac_includes_default |
13382 | #include <jerror.h> | |
13383 | _ACEOF | |
13384 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
13385 | if { (ac_try="$ac_compile" |
13386 | case "(($ac_try" in | |
13387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13388 | *) ac_try_echo=$ac_try;; | |
13389 | esac | |
13390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13391 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 13392 | ac_status=$? |
edfaf76d LK |
13393 | grep -v '^ *+' conftest.er1 >conftest.err |
13394 | rm -f conftest.er1 | |
13395 | cat conftest.err >&5 | |
c0d27fcc | 13396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
13397 | (exit $ac_status); } && { |
13398 | test -z "$ac_c_werror_flag" || | |
13399 | test ! -s conftest.err | |
13400 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
13401 | ac_header_compiler=yes |
13402 | else | |
13403 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13404 | sed 's/^/| /' conftest.$ac_ext >&5 |
13405 | ||
d6e01aa5 | 13406 | ac_header_compiler=no |
c0d27fcc | 13407 | fi |
d6e01aa5 KL |
13408 | |
13409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13410 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13411 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
13412 | |
13413 | # Is the header present? | |
d6e01aa5 KL |
13414 | { echo "$as_me:$LINENO: checking jerror.h presence" >&5 |
13415 | echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 13416 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13417 | /* confdefs.h. */ |
13418 | _ACEOF | |
13419 | cat confdefs.h >>conftest.$ac_ext | |
13420 | cat >>conftest.$ac_ext <<_ACEOF | |
13421 | /* end confdefs.h. */ | |
98418dba CW |
13422 | #include <jerror.h> |
13423 | _ACEOF | |
d6e01aa5 KL |
13424 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13425 | case "(($ac_try" in | |
13426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13427 | *) ac_try_echo=$ac_try;; | |
13428 | esac | |
13429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13430 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 13431 | ac_status=$? |
6bae0ccf | 13432 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13433 | rm -f conftest.er1 |
13434 | cat conftest.err >&5 | |
c0d27fcc | 13435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
13436 | (exit $ac_status); } >/dev/null && { |
13437 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13438 | test ! -s conftest.err | |
13439 | }; then | |
c0d27fcc | 13440 | ac_header_preproc=yes |
ba4481b5 | 13441 | else |
98418dba | 13442 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13443 | sed 's/^/| /' conftest.$ac_ext >&5 |
13444 | ||
c0d27fcc | 13445 | ac_header_preproc=no |
98418dba | 13446 | fi |
d6e01aa5 | 13447 | |
98418dba | 13448 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
13449 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13450 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
13451 | |
13452 | # So? What about this header? | |
edfaf76d LK |
13453 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13454 | yes:no: ) | |
c0d27fcc MR |
13455 | { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
13456 | echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
13457 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5 |
13458 | echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;} | |
13459 | ac_header_preproc=yes | |
19650fd6 | 13460 | ;; |
edfaf76d | 13461 | no:yes:* ) |
c0d27fcc MR |
13462 | { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 |
13463 | echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
13464 | { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 |
13465 | echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} | |
13466 | { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5 | |
13467 | echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;} | |
13468 | { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13469 | echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13470 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13471 | echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
13472 | { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5 |
13473 | echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 13474 | |
19650fd6 | 13475 | ;; |
c0d27fcc | 13476 | esac |
d6e01aa5 KL |
13477 | { echo "$as_me:$LINENO: checking for jerror.h" >&5 |
13478 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
13479 | if test "${ac_cv_header_jerror_h+set}" = set; then |
13480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13481 | else | |
13482 | ac_cv_header_jerror_h=$ac_header_preproc | |
ba4481b5 | 13483 | fi |
d6e01aa5 KL |
13484 | { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
13485 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; } | |
c0d27fcc MR |
13486 | |
13487 | fi | |
98418dba | 13488 | if test $ac_cv_header_jerror_h = yes; then |
d6e01aa5 KL |
13489 | { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5 |
13490 | echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; } | |
98418dba | 13491 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then |
503d2be0 | 13492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13493 | else |
98418dba CW |
13494 | ac_check_lib_save_LIBS=$LIBS |
13495 | LIBS="-ljpeg $LIBS" | |
13496 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13497 | /* confdefs.h. */ |
13498 | _ACEOF | |
13499 | cat confdefs.h >>conftest.$ac_ext | |
13500 | cat >>conftest.$ac_ext <<_ACEOF | |
13501 | /* end confdefs.h. */ | |
98418dba | 13502 | |
d6e01aa5 KL |
13503 | /* Override any GCC internal prototype to avoid an error. |
13504 | Use char because int might match the return type of a GCC | |
13505 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
13506 | #ifdef __cplusplus |
13507 | extern "C" | |
13508 | #endif | |
98418dba | 13509 | char jpeg_destroy_compress (); |
503d2be0 AS |
13510 | int |
13511 | main () | |
13512 | { | |
d6e01aa5 | 13513 | return jpeg_destroy_compress (); |
503d2be0 AS |
13514 | ; |
13515 | return 0; | |
13516 | } | |
13517 | _ACEOF | |
13518 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
13519 | if { (ac_try="$ac_link" |
13520 | case "(($ac_try" in | |
13521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13522 | *) ac_try_echo=$ac_try;; | |
13523 | esac | |
13524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13525 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 13526 | ac_status=$? |
edfaf76d LK |
13527 | grep -v '^ *+' conftest.er1 >conftest.err |
13528 | rm -f conftest.er1 | |
13529 | cat conftest.err >&5 | |
c0d27fcc | 13530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
13531 | (exit $ac_status); } && { |
13532 | test -z "$ac_c_werror_flag" || | |
13533 | test ! -s conftest.err | |
13534 | } && test -s conftest$ac_exeext && | |
13535 | $as_test_x conftest$ac_exeext; then | |
98418dba | 13536 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes |
ba4481b5 | 13537 | else |
503d2be0 | 13538 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13539 | sed 's/^/| /' conftest.$ac_ext >&5 |
13540 | ||
d6e01aa5 | 13541 | ac_cv_lib_jpeg_jpeg_destroy_compress=no |
ba4481b5 | 13542 | fi |
d6e01aa5 KL |
13543 | |
13544 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 13545 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 13546 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 13547 | fi |
d6e01aa5 KL |
13548 | { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
13549 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } | |
98418dba CW |
13550 | if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then |
13551 | HAVE_JPEG=yes | |
ba4481b5 | 13552 | fi |
98418dba | 13553 | |
ba4481b5 | 13554 | fi |
98418dba | 13555 | |
c0d27fcc | 13556 | |
ba4481b5 | 13557 | fi |
ba4481b5 | 13558 | |
c0d27fcc | 13559 | |
98418dba | 13560 | if test "${HAVE_JPEG}" = "yes"; then |
c0d27fcc | 13561 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13562 | #define HAVE_JPEG 1 |
c0d27fcc | 13563 | _ACEOF |
98418dba CW |
13564 | |
13565 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13566 | /* confdefs.h. */ |
13567 | _ACEOF | |
13568 | cat confdefs.h >>conftest.$ac_ext | |
13569 | cat >>conftest.$ac_ext <<_ACEOF | |
13570 | /* end confdefs.h. */ | |
22044edf | 13571 | #include <jpeglib.h> |
98418dba CW |
13572 | version=JPEG_LIB_VERSION |
13573 | ||
13574 | _ACEOF | |
13575 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 13576 | $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then |
c0d27fcc | 13577 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13578 | #define HAVE_JPEG 1 |
c0d27fcc | 13579 | _ACEOF |
ba4481b5 | 13580 | |
98418dba | 13581 | else |
c0d27fcc | 13582 | { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 |
98418dba CW |
13583 | echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
13584 | HAVE_JPEG=no | |
ba4481b5 | 13585 | fi |
98418dba | 13586 | rm -f conftest* |
ba4481b5 | 13587 | |
98418dba CW |
13588 | fi |
13589 | fi | |
503d2be0 | 13590 | |
98418dba CW |
13591 | ### Use -lpng if available, unless `--with-png=no'. |
13592 | HAVE_PNG=no | |
13593 | if test "${HAVE_X11}" = "yes"; then | |
13594 | if test "${with_png}" != "no"; then | |
f57bd967 DL |
13595 | # Debian unstable as of July 2003 has multiple libpngs, and puts png.h |
13596 | # in /usr/include/libpng. | |
13597 | ||
13598 | ||
13599 | for ac_header in png.h libpng/png.h | |
13600 | do | |
13601 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
13602 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
13603 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13604 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
13605 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 13606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 13607 | fi |
d6e01aa5 KL |
13608 | ac_res=`eval echo '${'$as_ac_Header'}'` |
13609 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13610 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 13611 | else |
c0d27fcc | 13612 | # Is the header compilable? |
d6e01aa5 KL |
13613 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13614 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 13615 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13616 | /* confdefs.h. */ |
13617 | _ACEOF | |
13618 | cat confdefs.h >>conftest.$ac_ext | |
13619 | cat >>conftest.$ac_ext <<_ACEOF | |
13620 | /* end confdefs.h. */ | |
c0d27fcc | 13621 | $ac_includes_default |
f57bd967 | 13622 | #include <$ac_header> |
c0d27fcc MR |
13623 | _ACEOF |
13624 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
13625 | if { (ac_try="$ac_compile" |
13626 | case "(($ac_try" in | |
13627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13628 | *) ac_try_echo=$ac_try;; | |
13629 | esac | |
13630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13631 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 13632 | ac_status=$? |
edfaf76d LK |
13633 | grep -v '^ *+' conftest.er1 >conftest.err |
13634 | rm -f conftest.er1 | |
13635 | cat conftest.err >&5 | |
c0d27fcc | 13636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
13637 | (exit $ac_status); } && { |
13638 | test -z "$ac_c_werror_flag" || | |
13639 | test ! -s conftest.err | |
13640 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
13641 | ac_header_compiler=yes |
13642 | else | |
13643 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13644 | sed 's/^/| /' conftest.$ac_ext >&5 |
13645 | ||
d6e01aa5 | 13646 | ac_header_compiler=no |
c0d27fcc | 13647 | fi |
d6e01aa5 KL |
13648 | |
13649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13650 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13651 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
13652 | |
13653 | # Is the header present? | |
d6e01aa5 KL |
13654 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13655 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 13656 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13657 | /* confdefs.h. */ |
13658 | _ACEOF | |
13659 | cat confdefs.h >>conftest.$ac_ext | |
13660 | cat >>conftest.$ac_ext <<_ACEOF | |
13661 | /* end confdefs.h. */ | |
f57bd967 | 13662 | #include <$ac_header> |
503d2be0 | 13663 | _ACEOF |
d6e01aa5 KL |
13664 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13665 | case "(($ac_try" in | |
13666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13667 | *) ac_try_echo=$ac_try;; | |
13668 | esac | |
13669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13670 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 13671 | ac_status=$? |
6bae0ccf | 13672 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
13673 | rm -f conftest.er1 |
13674 | cat conftest.err >&5 | |
c0d27fcc | 13675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
13676 | (exit $ac_status); } >/dev/null && { |
13677 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13678 | test ! -s conftest.err | |
13679 | }; then | |
c0d27fcc | 13680 | ac_header_preproc=yes |
503d2be0 AS |
13681 | else |
13682 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13683 | sed 's/^/| /' conftest.$ac_ext >&5 |
13684 | ||
c0d27fcc | 13685 | ac_header_preproc=no |
ba4481b5 | 13686 | fi |
d6e01aa5 | 13687 | |
503d2be0 | 13688 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
13689 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13690 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
13691 | |
13692 | # So? What about this header? | |
edfaf76d LK |
13693 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13694 | yes:no: ) | |
f57bd967 DL |
13695 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13696 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
13697 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13698 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13699 | ac_header_preproc=yes | |
19650fd6 | 13700 | ;; |
edfaf76d | 13701 | no:yes:* ) |
f57bd967 DL |
13702 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13703 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
13704 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13705 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13706 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13707 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13708 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13709 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
f57bd967 | 13710 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13711 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
13712 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13713 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 13714 | |
19650fd6 | 13715 | ;; |
c0d27fcc | 13716 | esac |
d6e01aa5 KL |
13717 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13718 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
13719 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
13720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13721 | else | |
edfaf76d | 13722 | eval "$as_ac_Header=\$ac_header_preproc" |
f57bd967 | 13723 | fi |
d6e01aa5 KL |
13724 | ac_res=`eval echo '${'$as_ac_Header'}'` |
13725 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13726 | echo "${ECHO_T}$ac_res" >&6; } | |
f57bd967 | 13727 | |
ba4481b5 | 13728 | fi |
f57bd967 DL |
13729 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13730 | cat >>confdefs.h <<_ACEOF | |
13731 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13732 | _ACEOF | |
c0d27fcc MR |
13733 | |
13734 | fi | |
f57bd967 DL |
13735 | |
13736 | done | |
13737 | ||
13738 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | |
d6e01aa5 KL |
13739 | { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 |
13740 | echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; } | |
98418dba | 13741 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then |
503d2be0 | 13742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13743 | else |
98418dba CW |
13744 | ac_check_lib_save_LIBS=$LIBS |
13745 | LIBS="-lpng -lz -lm $LIBS" | |
13746 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13747 | /* confdefs.h. */ |
13748 | _ACEOF | |
13749 | cat confdefs.h >>conftest.$ac_ext | |
13750 | cat >>conftest.$ac_ext <<_ACEOF | |
13751 | /* end confdefs.h. */ | |
98418dba | 13752 | |
d6e01aa5 KL |
13753 | /* Override any GCC internal prototype to avoid an error. |
13754 | Use char because int might match the return type of a GCC | |
13755 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
13756 | #ifdef __cplusplus |
13757 | extern "C" | |
13758 | #endif | |
98418dba | 13759 | char png_get_channels (); |
503d2be0 AS |
13760 | int |
13761 | main () | |
13762 | { | |
d6e01aa5 | 13763 | return png_get_channels (); |
503d2be0 AS |
13764 | ; |
13765 | return 0; | |
13766 | } | |
13767 | _ACEOF | |
13768 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
13769 | if { (ac_try="$ac_link" |
13770 | case "(($ac_try" in | |
13771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13772 | *) ac_try_echo=$ac_try;; | |
13773 | esac | |
13774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13775 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 13776 | ac_status=$? |
edfaf76d LK |
13777 | grep -v '^ *+' conftest.er1 >conftest.err |
13778 | rm -f conftest.er1 | |
13779 | cat conftest.err >&5 | |
c0d27fcc | 13780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
13781 | (exit $ac_status); } && { |
13782 | test -z "$ac_c_werror_flag" || | |
13783 | test ! -s conftest.err | |
13784 | } && test -s conftest$ac_exeext && | |
13785 | $as_test_x conftest$ac_exeext; then | |
98418dba | 13786 | ac_cv_lib_png_png_get_channels=yes |
73b77ee5 | 13787 | else |
98418dba | 13788 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13789 | sed 's/^/| /' conftest.$ac_ext >&5 |
13790 | ||
d6e01aa5 | 13791 | ac_cv_lib_png_png_get_channels=no |
73b77ee5 | 13792 | fi |
d6e01aa5 KL |
13793 | |
13794 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 13795 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 13796 | LIBS=$ac_check_lib_save_LIBS |
73b77ee5 | 13797 | fi |
d6e01aa5 KL |
13798 | { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 |
13799 | echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; } | |
98418dba CW |
13800 | if test $ac_cv_lib_png_png_get_channels = yes; then |
13801 | HAVE_PNG=yes | |
73b77ee5 | 13802 | fi |
503d2be0 | 13803 | |
f57bd967 | 13804 | fi |
98418dba CW |
13805 | fi |
13806 | ||
13807 | if test "${HAVE_PNG}" = "yes"; then | |
b936fae4 | 13808 | |
c0d27fcc | 13809 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13810 | #define HAVE_PNG 1 |
c0d27fcc | 13811 | _ACEOF |
73b77ee5 | 13812 | |
98418dba | 13813 | fi |
73b77ee5 GM |
13814 | fi |
13815 | ||
98418dba CW |
13816 | ### Use -ltiff if available, unless `--with-tiff=no'. |
13817 | HAVE_TIFF=no | |
13818 | if test "${HAVE_X11}" = "yes"; then | |
13819 | if test "${with_tiff}" != "no"; then | |
c0d27fcc | 13820 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
d6e01aa5 KL |
13821 | { echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
13822 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; } | |
98418dba CW |
13823 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
13824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 13825 | fi |
d6e01aa5 KL |
13826 | { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
13827 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; } | |
98418dba | 13828 | else |
c0d27fcc | 13829 | # Is the header compilable? |
d6e01aa5 KL |
13830 | { echo "$as_me:$LINENO: checking tiffio.h usability" >&5 |
13831 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 13832 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13833 | /* confdefs.h. */ |
13834 | _ACEOF | |
13835 | cat confdefs.h >>conftest.$ac_ext | |
13836 | cat >>conftest.$ac_ext <<_ACEOF | |
13837 | /* end confdefs.h. */ | |
c0d27fcc MR |
13838 | $ac_includes_default |
13839 | #include <tiffio.h> | |
13840 | _ACEOF | |
13841 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
13842 | if { (ac_try="$ac_compile" |
13843 | case "(($ac_try" in | |
13844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13845 | *) ac_try_echo=$ac_try;; | |
13846 | esac | |
13847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13848 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 13849 | ac_status=$? |
edfaf76d LK |
13850 | grep -v '^ *+' conftest.er1 >conftest.err |
13851 | rm -f conftest.er1 | |
13852 | cat conftest.err >&5 | |
c0d27fcc | 13853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
13854 | (exit $ac_status); } && { |
13855 | test -z "$ac_c_werror_flag" || | |
13856 | test ! -s conftest.err | |
13857 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
13858 | ac_header_compiler=yes |
13859 | else | |
13860 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13861 | sed 's/^/| /' conftest.$ac_ext >&5 |
13862 | ||
d6e01aa5 | 13863 | ac_header_compiler=no |
c0d27fcc | 13864 | fi |
d6e01aa5 KL |
13865 | |
13866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13867 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13868 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
13869 | |
13870 | # Is the header present? | |
d6e01aa5 KL |
13871 | { echo "$as_me:$LINENO: checking tiffio.h presence" >&5 |
13872 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 13873 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13874 | /* confdefs.h. */ |
13875 | _ACEOF | |
13876 | cat confdefs.h >>conftest.$ac_ext | |
13877 | cat >>conftest.$ac_ext <<_ACEOF | |
13878 | /* end confdefs.h. */ | |
98418dba CW |
13879 | #include <tiffio.h> |
13880 | _ACEOF | |
d6e01aa5 KL |
13881 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13882 | case "(($ac_try" in | |
13883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13884 | *) ac_try_echo=$ac_try;; | |
13885 | esac | |
13886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13887 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 13888 | ac_status=$? |
6bae0ccf | 13889 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13890 | rm -f conftest.er1 |
13891 | cat conftest.err >&5 | |
c0d27fcc | 13892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
13893 | (exit $ac_status); } >/dev/null && { |
13894 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13895 | test ! -s conftest.err | |
13896 | }; then | |
c0d27fcc | 13897 | ac_header_preproc=yes |
98418dba CW |
13898 | else |
13899 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13900 | sed 's/^/| /' conftest.$ac_ext >&5 |
13901 | ||
c0d27fcc | 13902 | ac_header_preproc=no |
98418dba | 13903 | fi |
d6e01aa5 | 13904 | |
98418dba | 13905 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
13906 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13907 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
13908 | |
13909 | # So? What about this header? | |
edfaf76d LK |
13910 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13911 | yes:no: ) | |
c0d27fcc MR |
13912 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
13913 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
13914 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
13915 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
13916 | ac_header_preproc=yes | |
19650fd6 | 13917 | ;; |
edfaf76d | 13918 | no:yes:* ) |
c0d27fcc MR |
13919 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
13920 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
13921 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
13922 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
13923 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
13924 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
13925 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13926 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13927 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13928 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
13929 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
13930 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 13931 | |
19650fd6 | 13932 | ;; |
c0d27fcc | 13933 | esac |
d6e01aa5 KL |
13934 | { echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
13935 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
13936 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
13937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13938 | else | |
13939 | ac_cv_header_tiffio_h=$ac_header_preproc | |
98418dba | 13940 | fi |
d6e01aa5 KL |
13941 | { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
13942 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; } | |
c0d27fcc MR |
13943 | |
13944 | fi | |
98418dba CW |
13945 | if test $ac_cv_header_tiffio_h = yes; then |
13946 | tifflibs="-lz -lm" | |
13947 | # At least one tiff package requires the jpeg library. | |
13948 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
d6e01aa5 KL |
13949 | { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 |
13950 | echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; } | |
98418dba | 13951 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then |
503d2be0 | 13952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 13953 | else |
503d2be0 | 13954 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 13955 | LIBS="-ltiff $tifflibs $LIBS" |
503d2be0 | 13956 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13957 | /* confdefs.h. */ |
13958 | _ACEOF | |
13959 | cat confdefs.h >>conftest.$ac_ext | |
13960 | cat >>conftest.$ac_ext <<_ACEOF | |
13961 | /* end confdefs.h. */ | |
503d2be0 | 13962 | |
d6e01aa5 KL |
13963 | /* Override any GCC internal prototype to avoid an error. |
13964 | Use char because int might match the return type of a GCC | |
13965 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
13966 | #ifdef __cplusplus |
13967 | extern "C" | |
13968 | #endif | |
98418dba | 13969 | char TIFFGetVersion (); |
503d2be0 AS |
13970 | int |
13971 | main () | |
13972 | { | |
d6e01aa5 | 13973 | return TIFFGetVersion (); |
503d2be0 AS |
13974 | ; |
13975 | return 0; | |
13976 | } | |
13977 | _ACEOF | |
13978 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
13979 | if { (ac_try="$ac_link" |
13980 | case "(($ac_try" in | |
13981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13982 | *) ac_try_echo=$ac_try;; | |
13983 | esac | |
13984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13985 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 13986 | ac_status=$? |
edfaf76d LK |
13987 | grep -v '^ *+' conftest.er1 >conftest.err |
13988 | rm -f conftest.er1 | |
13989 | cat conftest.err >&5 | |
c0d27fcc | 13990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
13991 | (exit $ac_status); } && { |
13992 | test -z "$ac_c_werror_flag" || | |
13993 | test ! -s conftest.err | |
13994 | } && test -s conftest$ac_exeext && | |
13995 | $as_test_x conftest$ac_exeext; then | |
98418dba | 13996 | ac_cv_lib_tiff_TIFFGetVersion=yes |
503d2be0 AS |
13997 | else |
13998 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13999 | sed 's/^/| /' conftest.$ac_ext >&5 |
14000 | ||
d6e01aa5 | 14001 | ac_cv_lib_tiff_TIFFGetVersion=no |
503d2be0 | 14002 | fi |
d6e01aa5 KL |
14003 | |
14004 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 14005 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
14006 | LIBS=$ac_check_lib_save_LIBS |
14007 | fi | |
d6e01aa5 KL |
14008 | { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
14009 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; } | |
98418dba CW |
14010 | if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then |
14011 | HAVE_TIFF=yes | |
14012 | fi | |
14013 | ||
14014 | fi | |
73b77ee5 | 14015 | |
c0d27fcc | 14016 | |
98418dba CW |
14017 | fi |
14018 | ||
14019 | if test "${HAVE_TIFF}" = "yes"; then | |
b936fae4 | 14020 | |
c0d27fcc | 14021 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14022 | #define HAVE_TIFF 1 |
c0d27fcc | 14023 | _ACEOF |
98418dba CW |
14024 | |
14025 | fi | |
73b77ee5 GM |
14026 | fi |
14027 | ||
9aeb8aaa | 14028 | ### Use -lgif or -lungif if available, unless `--with-gif=no'. |
98418dba | 14029 | HAVE_GIF=no |
9aeb8aaa GM |
14030 | if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then |
14031 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
d6e01aa5 KL |
14032 | { echo "$as_me:$LINENO: checking for gif_lib.h" >&5 |
14033 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; } | |
98418dba CW |
14034 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
14035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 14036 | fi |
d6e01aa5 KL |
14037 | { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 |
14038 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; } | |
98418dba | 14039 | else |
c0d27fcc | 14040 | # Is the header compilable? |
d6e01aa5 KL |
14041 | { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 |
14042 | echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 14043 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14044 | /* confdefs.h. */ |
14045 | _ACEOF | |
14046 | cat confdefs.h >>conftest.$ac_ext | |
14047 | cat >>conftest.$ac_ext <<_ACEOF | |
14048 | /* end confdefs.h. */ | |
c0d27fcc MR |
14049 | $ac_includes_default |
14050 | #include <gif_lib.h> | |
14051 | _ACEOF | |
14052 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
14053 | if { (ac_try="$ac_compile" |
14054 | case "(($ac_try" in | |
14055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14056 | *) ac_try_echo=$ac_try;; | |
14057 | esac | |
14058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14059 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 14060 | ac_status=$? |
edfaf76d LK |
14061 | grep -v '^ *+' conftest.er1 >conftest.err |
14062 | rm -f conftest.er1 | |
14063 | cat conftest.err >&5 | |
c0d27fcc | 14064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
14065 | (exit $ac_status); } && { |
14066 | test -z "$ac_c_werror_flag" || | |
14067 | test ! -s conftest.err | |
14068 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
14069 | ac_header_compiler=yes |
14070 | else | |
14071 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14072 | sed 's/^/| /' conftest.$ac_ext >&5 |
14073 | ||
d6e01aa5 | 14074 | ac_header_compiler=no |
c0d27fcc | 14075 | fi |
d6e01aa5 KL |
14076 | |
14077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14078 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14079 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
14080 | |
14081 | # Is the header present? | |
d6e01aa5 KL |
14082 | { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 |
14083 | echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 14084 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14085 | /* confdefs.h. */ |
14086 | _ACEOF | |
14087 | cat confdefs.h >>conftest.$ac_ext | |
14088 | cat >>conftest.$ac_ext <<_ACEOF | |
14089 | /* end confdefs.h. */ | |
98418dba CW |
14090 | #include <gif_lib.h> |
14091 | _ACEOF | |
d6e01aa5 KL |
14092 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14093 | case "(($ac_try" in | |
14094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14095 | *) ac_try_echo=$ac_try;; | |
14096 | esac | |
14097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14098 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 14099 | ac_status=$? |
6bae0ccf | 14100 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
14101 | rm -f conftest.er1 |
14102 | cat conftest.err >&5 | |
c0d27fcc | 14103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
14104 | (exit $ac_status); } >/dev/null && { |
14105 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14106 | test ! -s conftest.err | |
14107 | }; then | |
c0d27fcc | 14108 | ac_header_preproc=yes |
98418dba CW |
14109 | else |
14110 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14111 | sed 's/^/| /' conftest.$ac_ext >&5 |
14112 | ||
c0d27fcc | 14113 | ac_header_preproc=no |
98418dba | 14114 | fi |
d6e01aa5 | 14115 | |
98418dba | 14116 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
14117 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14118 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
14119 | |
14120 | # So? What about this header? | |
edfaf76d LK |
14121 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14122 | yes:no: ) | |
c0d27fcc MR |
14123 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
14124 | echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
14125 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5 |
14126 | echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;} | |
14127 | ac_header_preproc=yes | |
19650fd6 | 14128 | ;; |
edfaf76d | 14129 | no:yes:* ) |
c0d27fcc MR |
14130 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 |
14131 | echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
14132 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 |
14133 | echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} | |
14134 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5 | |
14135 | echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;} | |
14136 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14137 | echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 14138 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 14139 | echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
14140 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5 |
14141 | echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 14142 | |
19650fd6 | 14143 | ;; |
c0d27fcc | 14144 | esac |
d6e01aa5 KL |
14145 | { echo "$as_me:$LINENO: checking for gif_lib.h" >&5 |
14146 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
14147 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
14148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14149 | else | |
14150 | ac_cv_header_gif_lib_h=$ac_header_preproc | |
98418dba | 14151 | fi |
d6e01aa5 KL |
14152 | { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 |
14153 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; } | |
c0d27fcc MR |
14154 | |
14155 | fi | |
98418dba CW |
14156 | if test $ac_cv_header_gif_lib_h = yes; then |
14157 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | |
14158 | # Earlier versions can crash Emacs. | |
63175cd2 GM |
14159 | { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5 |
14160 | echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; } | |
14161 | if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then | |
503d2be0 | 14162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 14163 | else |
503d2be0 | 14164 | ac_check_lib_save_LIBS=$LIBS |
63175cd2 | 14165 | LIBS="-lgif $LIBS" |
503d2be0 | 14166 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14167 | /* confdefs.h. */ |
14168 | _ACEOF | |
14169 | cat confdefs.h >>conftest.$ac_ext | |
14170 | cat >>conftest.$ac_ext <<_ACEOF | |
14171 | /* end confdefs.h. */ | |
73b77ee5 | 14172 | |
d6e01aa5 KL |
14173 | /* Override any GCC internal prototype to avoid an error. |
14174 | Use char because int might match the return type of a GCC | |
14175 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
14176 | #ifdef __cplusplus |
14177 | extern "C" | |
14178 | #endif | |
98418dba | 14179 | char EGifPutExtensionLast (); |
503d2be0 AS |
14180 | int |
14181 | main () | |
14182 | { | |
d6e01aa5 | 14183 | return EGifPutExtensionLast (); |
503d2be0 AS |
14184 | ; |
14185 | return 0; | |
14186 | } | |
14187 | _ACEOF | |
14188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
14189 | if { (ac_try="$ac_link" |
14190 | case "(($ac_try" in | |
14191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14192 | *) ac_try_echo=$ac_try;; | |
14193 | esac | |
14194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14195 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14196 | ac_status=$? |
edfaf76d LK |
14197 | grep -v '^ *+' conftest.er1 >conftest.err |
14198 | rm -f conftest.er1 | |
14199 | cat conftest.err >&5 | |
c0d27fcc | 14200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
14201 | (exit $ac_status); } && { |
14202 | test -z "$ac_c_werror_flag" || | |
14203 | test ! -s conftest.err | |
14204 | } && test -s conftest$ac_exeext && | |
14205 | $as_test_x conftest$ac_exeext; then | |
63175cd2 | 14206 | ac_cv_lib_gif_EGifPutExtensionLast=yes |
35996d22 | 14207 | else |
98418dba | 14208 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14209 | sed 's/^/| /' conftest.$ac_ext >&5 |
14210 | ||
63175cd2 | 14211 | ac_cv_lib_gif_EGifPutExtensionLast=no |
98418dba | 14212 | fi |
d6e01aa5 KL |
14213 | |
14214 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 14215 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
14216 | LIBS=$ac_check_lib_save_LIBS |
14217 | fi | |
63175cd2 GM |
14218 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 |
14219 | echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } | |
14220 | if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then | |
98418dba | 14221 | HAVE_GIF=yes |
9aeb8aaa | 14222 | else |
63175cd2 | 14223 | try_libungif=yes |
98418dba CW |
14224 | fi |
14225 | ||
14226 | fi | |
14227 | ||
c0d27fcc | 14228 | |
9aeb8aaa GM |
14229 | |
14230 | if test "$HAVE_GIF" = yes; then | |
63175cd2 | 14231 | ac_gif_lib_name="-lgif" |
9aeb8aaa GM |
14232 | fi |
14233 | ||
63175cd2 GM |
14234 | # If gif_lib.h but no libgif, try libungif. |
14235 | if test x"$try_libungif" = xyes; then | |
14236 | { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 | |
14237 | echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; } | |
14238 | if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | |
9aeb8aaa GM |
14239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14240 | else | |
14241 | ac_check_lib_save_LIBS=$LIBS | |
63175cd2 | 14242 | LIBS="-lungif $LIBS" |
9aeb8aaa GM |
14243 | cat >conftest.$ac_ext <<_ACEOF |
14244 | /* confdefs.h. */ | |
14245 | _ACEOF | |
14246 | cat confdefs.h >>conftest.$ac_ext | |
14247 | cat >>conftest.$ac_ext <<_ACEOF | |
14248 | /* end confdefs.h. */ | |
14249 | ||
14250 | /* Override any GCC internal prototype to avoid an error. | |
14251 | Use char because int might match the return type of a GCC | |
14252 | builtin and then its argument prototype would still apply. */ | |
14253 | #ifdef __cplusplus | |
14254 | extern "C" | |
14255 | #endif | |
14256 | char EGifPutExtensionLast (); | |
14257 | int | |
14258 | main () | |
14259 | { | |
14260 | return EGifPutExtensionLast (); | |
14261 | ; | |
14262 | return 0; | |
14263 | } | |
14264 | _ACEOF | |
14265 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14266 | if { (ac_try="$ac_link" | |
14267 | case "(($ac_try" in | |
14268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14269 | *) ac_try_echo=$ac_try;; | |
14270 | esac | |
14271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14272 | (eval "$ac_link") 2>conftest.er1 | |
14273 | ac_status=$? | |
14274 | grep -v '^ *+' conftest.er1 >conftest.err | |
14275 | rm -f conftest.er1 | |
14276 | cat conftest.err >&5 | |
14277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14278 | (exit $ac_status); } && { | |
14279 | test -z "$ac_c_werror_flag" || | |
14280 | test ! -s conftest.err | |
14281 | } && test -s conftest$ac_exeext && | |
14282 | $as_test_x conftest$ac_exeext; then | |
63175cd2 | 14283 | ac_cv_lib_ungif_EGifPutExtensionLast=yes |
9aeb8aaa GM |
14284 | else |
14285 | echo "$as_me: failed program was:" >&5 | |
14286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14287 | ||
63175cd2 | 14288 | ac_cv_lib_ungif_EGifPutExtensionLast=no |
98418dba CW |
14289 | fi |
14290 | ||
9aeb8aaa GM |
14291 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14292 | conftest$ac_exeext conftest.$ac_ext | |
14293 | LIBS=$ac_check_lib_save_LIBS | |
14294 | fi | |
63175cd2 GM |
14295 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
14296 | echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } | |
14297 | if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | |
9aeb8aaa | 14298 | HAVE_GIF=yes |
98418dba CW |
14299 | fi |
14300 | ||
c0d27fcc | 14301 | |
9aeb8aaa GM |
14302 | if test "$HAVE_GIF" = yes; then |
14303 | ||
14304 | cat >>confdefs.h <<\_ACEOF | |
63175cd2 | 14305 | #define LIBGIF -lungif |
9aeb8aaa GM |
14306 | _ACEOF |
14307 | ||
63175cd2 | 14308 | ac_gif_lib_name="-lungif" |
9aeb8aaa | 14309 | fi |
98418dba CW |
14310 | fi |
14311 | ||
14312 | if test "${HAVE_GIF}" = "yes"; then | |
b936fae4 | 14313 | |
c0d27fcc | 14314 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14315 | #define HAVE_GIF 1 |
c0d27fcc | 14316 | _ACEOF |
98418dba CW |
14317 | |
14318 | fi | |
14319 | fi | |
14320 | ||
5afbeb22 JD |
14321 | if test "${HAVE_X11}" = "yes"; then |
14322 | MISSING="" | |
14323 | WITH_NO="" | |
14324 | test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" && | |
14325 | MISSING="libXpm" && WITH_NO="--with-xpm=no" | |
14326 | test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" && | |
14327 | MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no" | |
14328 | test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" && | |
14329 | MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no" | |
14330 | test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" && | |
14331 | MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" | |
14332 | test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && | |
14333 | MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" | |
14334 | ||
14335 | if test "X${MISSING}" != X; then | |
c982cf7d | 14336 | { { echo "$as_me:$LINENO: error: The following required libraries were not found: |
5afbeb22 | 14337 | $MISSING |
86e73516 | 14338 | Maybe some development libraries/packages are missing? |
5afbeb22 JD |
14339 | If you don't want to link with them give |
14340 | $WITH_NO | |
14341 | as options to configure" >&5 | |
c982cf7d | 14342 | echo "$as_me: error: The following required libraries were not found: |
5afbeb22 | 14343 | $MISSING |
86e73516 | 14344 | Maybe some development libraries/packages are missing? |
5afbeb22 JD |
14345 | If you don't want to link with them give |
14346 | $WITH_NO | |
14347 | as options to configure" >&2;} | |
86e73516 | 14348 | { (exit 1); exit 1; }; } |
98418dba CW |
14349 | fi |
14350 | fi | |
14351 | ||
79011b82 NR |
14352 | ### Use -lgpm if available, unless `--with-gpm=no'. |
14353 | HAVE_GPM=no | |
14354 | if test "${with_gpm}" != "no"; then | |
14355 | if test "${ac_cv_header_gpm_h+set}" = set; then | |
14356 | { echo "$as_me:$LINENO: checking for gpm.h" >&5 | |
14357 | echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; } | |
14358 | if test "${ac_cv_header_gpm_h+set}" = set; then | |
14359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14360 | fi | |
14361 | { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5 | |
14362 | echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; } | |
14363 | else | |
14364 | # Is the header compilable? | |
14365 | { echo "$as_me:$LINENO: checking gpm.h usability" >&5 | |
14366 | echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; } | |
14367 | cat >conftest.$ac_ext <<_ACEOF | |
14368 | /* confdefs.h. */ | |
14369 | _ACEOF | |
14370 | cat confdefs.h >>conftest.$ac_ext | |
14371 | cat >>conftest.$ac_ext <<_ACEOF | |
14372 | /* end confdefs.h. */ | |
14373 | $ac_includes_default | |
14374 | #include <gpm.h> | |
14375 | _ACEOF | |
14376 | rm -f conftest.$ac_objext | |
14377 | if { (ac_try="$ac_compile" | |
14378 | case "(($ac_try" in | |
14379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14380 | *) ac_try_echo=$ac_try;; | |
14381 | esac | |
14382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14383 | (eval "$ac_compile") 2>conftest.er1 | |
14384 | ac_status=$? | |
14385 | grep -v '^ *+' conftest.er1 >conftest.err | |
14386 | rm -f conftest.er1 | |
14387 | cat conftest.err >&5 | |
14388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14389 | (exit $ac_status); } && { | |
14390 | test -z "$ac_c_werror_flag" || | |
14391 | test ! -s conftest.err | |
14392 | } && test -s conftest.$ac_objext; then | |
14393 | ac_header_compiler=yes | |
14394 | else | |
14395 | echo "$as_me: failed program was:" >&5 | |
14396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14397 | ||
14398 | ac_header_compiler=no | |
14399 | fi | |
14400 | ||
14401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14402 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14403 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
14404 | ||
14405 | # Is the header present? | |
14406 | { echo "$as_me:$LINENO: checking gpm.h presence" >&5 | |
14407 | echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; } | |
14408 | cat >conftest.$ac_ext <<_ACEOF | |
14409 | /* confdefs.h. */ | |
14410 | _ACEOF | |
14411 | cat confdefs.h >>conftest.$ac_ext | |
14412 | cat >>conftest.$ac_ext <<_ACEOF | |
14413 | /* end confdefs.h. */ | |
14414 | #include <gpm.h> | |
14415 | _ACEOF | |
14416 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14417 | case "(($ac_try" in | |
14418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14419 | *) ac_try_echo=$ac_try;; | |
14420 | esac | |
14421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14422 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14423 | ac_status=$? | |
14424 | grep -v '^ *+' conftest.er1 >conftest.err | |
14425 | rm -f conftest.er1 | |
14426 | cat conftest.err >&5 | |
14427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14428 | (exit $ac_status); } >/dev/null && { | |
14429 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14430 | test ! -s conftest.err | |
14431 | }; then | |
14432 | ac_header_preproc=yes | |
14433 | else | |
14434 | echo "$as_me: failed program was:" >&5 | |
14435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14436 | ||
14437 | ac_header_preproc=no | |
14438 | fi | |
14439 | ||
14440 | rm -f conftest.err conftest.$ac_ext | |
14441 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14442 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
14443 | ||
14444 | # So? What about this header? | |
14445 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14446 | yes:no: ) | |
14447 | { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14448 | echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14449 | { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5 | |
14450 | echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;} | |
14451 | ac_header_preproc=yes | |
14452 | ;; | |
14453 | no:yes:* ) | |
14454 | { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5 | |
14455 | echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;} | |
14456 | { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5 | |
14457 | echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;} | |
14458 | { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5 | |
14459 | echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;} | |
14460 | { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14461 | echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14462 | { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5 | |
14463 | echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;} | |
14464 | { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5 | |
14465 | echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;} | |
14466 | ||
14467 | ;; | |
14468 | esac | |
14469 | { echo "$as_me:$LINENO: checking for gpm.h" >&5 | |
14470 | echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; } | |
14471 | if test "${ac_cv_header_gpm_h+set}" = set; then | |
14472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14473 | else | |
14474 | ac_cv_header_gpm_h=$ac_header_preproc | |
14475 | fi | |
14476 | { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5 | |
14477 | echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; } | |
14478 | ||
14479 | fi | |
14480 | if test $ac_cv_header_gpm_h = yes; then | |
14481 | { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5 | |
14482 | echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; } | |
14483 | if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then | |
14484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14485 | else | |
14486 | ac_check_lib_save_LIBS=$LIBS | |
14487 | LIBS="-lgpm $LIBS" | |
14488 | cat >conftest.$ac_ext <<_ACEOF | |
14489 | /* confdefs.h. */ | |
14490 | _ACEOF | |
14491 | cat confdefs.h >>conftest.$ac_ext | |
14492 | cat >>conftest.$ac_ext <<_ACEOF | |
14493 | /* end confdefs.h. */ | |
14494 | ||
14495 | /* Override any GCC internal prototype to avoid an error. | |
14496 | Use char because int might match the return type of a GCC | |
14497 | builtin and then its argument prototype would still apply. */ | |
14498 | #ifdef __cplusplus | |
14499 | extern "C" | |
14500 | #endif | |
14501 | char Gpm_Open (); | |
14502 | int | |
14503 | main () | |
14504 | { | |
14505 | return Gpm_Open (); | |
14506 | ; | |
14507 | return 0; | |
14508 | } | |
14509 | _ACEOF | |
14510 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14511 | if { (ac_try="$ac_link" | |
14512 | case "(($ac_try" in | |
14513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14514 | *) ac_try_echo=$ac_try;; | |
14515 | esac | |
14516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14517 | (eval "$ac_link") 2>conftest.er1 | |
14518 | ac_status=$? | |
14519 | grep -v '^ *+' conftest.er1 >conftest.err | |
14520 | rm -f conftest.er1 | |
14521 | cat conftest.err >&5 | |
14522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14523 | (exit $ac_status); } && { | |
14524 | test -z "$ac_c_werror_flag" || | |
14525 | test ! -s conftest.err | |
14526 | } && test -s conftest$ac_exeext && | |
14527 | $as_test_x conftest$ac_exeext; then | |
14528 | ac_cv_lib_gpm_Gpm_Open=yes | |
14529 | else | |
14530 | echo "$as_me: failed program was:" >&5 | |
14531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14532 | ||
14533 | ac_cv_lib_gpm_Gpm_Open=no | |
14534 | fi | |
14535 | ||
14536 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14537 | conftest$ac_exeext conftest.$ac_ext | |
14538 | LIBS=$ac_check_lib_save_LIBS | |
14539 | fi | |
14540 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5 | |
14541 | echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; } | |
14542 | if test $ac_cv_lib_gpm_Gpm_Open = yes; then | |
14543 | HAVE_GPM=yes | |
14544 | fi | |
14545 | ||
14546 | fi | |
14547 | ||
14548 | ||
14549 | fi | |
14550 | ||
14551 | if test "${HAVE_GPM}" = "yes"; then | |
14552 | ||
14553 | cat >>confdefs.h <<\_ACEOF | |
14554 | #define HAVE_GPM 1 | |
14555 | _ACEOF | |
14556 | ||
14557 | fi | |
14558 | ||
cef11da2 | 14559 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then |
d6e01aa5 KL |
14560 | { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 |
14561 | echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; } | |
cef11da2 ST |
14562 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then |
14563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14564 | fi | |
d6e01aa5 KL |
14565 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 |
14566 | echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; } | |
cef11da2 ST |
14567 | else |
14568 | # Is the header compilable? | |
d6e01aa5 KL |
14569 | { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5 |
14570 | echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; } | |
cef11da2 ST |
14571 | cat >conftest.$ac_ext <<_ACEOF |
14572 | /* confdefs.h. */ | |
14573 | _ACEOF | |
14574 | cat confdefs.h >>conftest.$ac_ext | |
14575 | cat >>conftest.$ac_ext <<_ACEOF | |
14576 | /* end confdefs.h. */ | |
14577 | $ac_includes_default | |
14578 | #include <malloc/malloc.h> | |
14579 | _ACEOF | |
14580 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
14581 | if { (ac_try="$ac_compile" |
14582 | case "(($ac_try" in | |
14583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14584 | *) ac_try_echo=$ac_try;; | |
14585 | esac | |
14586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14587 | (eval "$ac_compile") 2>conftest.er1 | |
cef11da2 | 14588 | ac_status=$? |
edfaf76d LK |
14589 | grep -v '^ *+' conftest.er1 >conftest.err |
14590 | rm -f conftest.er1 | |
14591 | cat conftest.err >&5 | |
cef11da2 | 14592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
14593 | (exit $ac_status); } && { |
14594 | test -z "$ac_c_werror_flag" || | |
14595 | test ! -s conftest.err | |
14596 | } && test -s conftest.$ac_objext; then | |
cef11da2 ST |
14597 | ac_header_compiler=yes |
14598 | else | |
14599 | echo "$as_me: failed program was:" >&5 | |
14600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14601 | ||
d6e01aa5 | 14602 | ac_header_compiler=no |
cef11da2 | 14603 | fi |
d6e01aa5 KL |
14604 | |
14605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14606 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14607 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
cef11da2 ST |
14608 | |
14609 | # Is the header present? | |
d6e01aa5 KL |
14610 | { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5 |
14611 | echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; } | |
cef11da2 ST |
14612 | cat >conftest.$ac_ext <<_ACEOF |
14613 | /* confdefs.h. */ | |
14614 | _ACEOF | |
14615 | cat confdefs.h >>conftest.$ac_ext | |
14616 | cat >>conftest.$ac_ext <<_ACEOF | |
14617 | /* end confdefs.h. */ | |
14618 | #include <malloc/malloc.h> | |
14619 | _ACEOF | |
d6e01aa5 KL |
14620 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14621 | case "(($ac_try" in | |
14622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14623 | *) ac_try_echo=$ac_try;; | |
14624 | esac | |
14625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14626 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
cef11da2 ST |
14627 | ac_status=$? |
14628 | grep -v '^ *+' conftest.er1 >conftest.err | |
14629 | rm -f conftest.er1 | |
14630 | cat conftest.err >&5 | |
14631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
14632 | (exit $ac_status); } >/dev/null && { |
14633 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14634 | test ! -s conftest.err | |
14635 | }; then | |
cef11da2 ST |
14636 | ac_header_preproc=yes |
14637 | else | |
14638 | echo "$as_me: failed program was:" >&5 | |
14639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14640 | ||
14641 | ac_header_preproc=no | |
14642 | fi | |
d6e01aa5 | 14643 | |
cef11da2 | 14644 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
14645 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14646 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
cef11da2 ST |
14647 | |
14648 | # So? What about this header? | |
edfaf76d LK |
14649 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14650 | yes:no: ) | |
cef11da2 ST |
14651 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
14652 | echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
14653 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5 |
14654 | echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;} | |
14655 | ac_header_preproc=yes | |
cef11da2 | 14656 | ;; |
edfaf76d | 14657 | no:yes:* ) |
cef11da2 ST |
14658 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5 |
14659 | echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
14660 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5 |
14661 | echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;} | |
14662 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5 | |
14663 | echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;} | |
14664 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14665 | echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
cef11da2 ST |
14666 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5 |
14667 | echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
14668 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5 |
14669 | echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 14670 | |
cef11da2 ST |
14671 | ;; |
14672 | esac | |
d6e01aa5 KL |
14673 | { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 |
14674 | echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; } | |
cef11da2 ST |
14675 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then |
14676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14677 | else | |
14678 | ac_cv_header_malloc_malloc_h=$ac_header_preproc | |
14679 | fi | |
d6e01aa5 KL |
14680 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 |
14681 | echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; } | |
cef11da2 ST |
14682 | |
14683 | fi | |
14684 | if test $ac_cv_header_malloc_malloc_h = yes; then | |
14685 | ||
14686 | cat >>confdefs.h <<\_ACEOF | |
14687 | #define HAVE_MALLOC_MALLOC_H 1 | |
14688 | _ACEOF | |
14689 | ||
14690 | fi | |
14691 | ||
14692 | ||
14693 | ||
5d6da11e | 14694 | ### Use Mac OS X Carbon API to implement GUI. |
e0f712ba | 14695 | if test "${HAVE_CARBON}" = "yes"; then |
e3ba1015 | 14696 | |
c0d27fcc | 14697 | cat >>confdefs.h <<\_ACEOF |
e0f712ba | 14698 | #define HAVE_CARBON 1 |
c0d27fcc | 14699 | _ACEOF |
e0f712ba | 14700 | |
6a3a24fa JD |
14701 | ## Specify the install directory |
14702 | carbon_appdir= | |
14703 | if test "${carbon_appdir_x}" != ""; then | |
14704 | case ${carbon_appdir_x} in | |
14705 | y | ye | yes) carbon_appdir=/Applications ;; | |
14706 | * ) carbon_appdir=${carbon_appdir_x} ;; | |
14707 | esac | |
14708 | fi | |
8f417b3b AS |
14709 | # We also have mouse menus. |
14710 | HAVE_MENUS=yes | |
e0f712ba AC |
14711 | fi |
14712 | ||
98418dba CW |
14713 | ### Use session management (-lSM -lICE) if available |
14714 | HAVE_X_SM=no | |
14715 | if test "${HAVE_X11}" = "yes"; then | |
c0d27fcc | 14716 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
d6e01aa5 KL |
14717 | { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 |
14718 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; } | |
98418dba CW |
14719 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
14720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 14721 | fi |
d6e01aa5 KL |
14722 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
14723 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; } | |
503d2be0 | 14724 | else |
c0d27fcc | 14725 | # Is the header compilable? |
d6e01aa5 KL |
14726 | { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 |
14727 | echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 14728 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14729 | /* confdefs.h. */ |
14730 | _ACEOF | |
14731 | cat confdefs.h >>conftest.$ac_ext | |
14732 | cat >>conftest.$ac_ext <<_ACEOF | |
14733 | /* end confdefs.h. */ | |
c0d27fcc MR |
14734 | $ac_includes_default |
14735 | #include <X11/SM/SMlib.h> | |
14736 | _ACEOF | |
14737 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
14738 | if { (ac_try="$ac_compile" |
14739 | case "(($ac_try" in | |
14740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14741 | *) ac_try_echo=$ac_try;; | |
14742 | esac | |
14743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14744 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 14745 | ac_status=$? |
edfaf76d LK |
14746 | grep -v '^ *+' conftest.er1 >conftest.err |
14747 | rm -f conftest.er1 | |
14748 | cat conftest.err >&5 | |
c0d27fcc | 14749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
14750 | (exit $ac_status); } && { |
14751 | test -z "$ac_c_werror_flag" || | |
14752 | test ! -s conftest.err | |
14753 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
14754 | ac_header_compiler=yes |
14755 | else | |
14756 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14757 | sed 's/^/| /' conftest.$ac_ext >&5 |
14758 | ||
d6e01aa5 | 14759 | ac_header_compiler=no |
c0d27fcc | 14760 | fi |
d6e01aa5 KL |
14761 | |
14762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14763 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14764 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
14765 | |
14766 | # Is the header present? | |
d6e01aa5 KL |
14767 | { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 |
14768 | echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 14769 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14770 | /* confdefs.h. */ |
14771 | _ACEOF | |
14772 | cat confdefs.h >>conftest.$ac_ext | |
14773 | cat >>conftest.$ac_ext <<_ACEOF | |
14774 | /* end confdefs.h. */ | |
98418dba CW |
14775 | #include <X11/SM/SMlib.h> |
14776 | _ACEOF | |
d6e01aa5 KL |
14777 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14778 | case "(($ac_try" in | |
14779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14780 | *) ac_try_echo=$ac_try;; | |
14781 | esac | |
14782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14783 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 14784 | ac_status=$? |
6bae0ccf | 14785 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
14786 | rm -f conftest.er1 |
14787 | cat conftest.err >&5 | |
c0d27fcc | 14788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
14789 | (exit $ac_status); } >/dev/null && { |
14790 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14791 | test ! -s conftest.err | |
14792 | }; then | |
c0d27fcc | 14793 | ac_header_preproc=yes |
98418dba CW |
14794 | else |
14795 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14796 | sed 's/^/| /' conftest.$ac_ext >&5 |
14797 | ||
c0d27fcc | 14798 | ac_header_preproc=no |
98418dba | 14799 | fi |
d6e01aa5 | 14800 | |
98418dba | 14801 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
14802 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14803 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
14804 | |
14805 | # So? What about this header? | |
edfaf76d LK |
14806 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14807 | yes:no: ) | |
c0d27fcc MR |
14808 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
14809 | echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
14810 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5 |
14811 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;} | |
14812 | ac_header_preproc=yes | |
19650fd6 | 14813 | ;; |
edfaf76d | 14814 | no:yes:* ) |
c0d27fcc MR |
14815 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 |
14816 | echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
14817 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 |
14818 | echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} | |
14819 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5 | |
14820 | echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;} | |
14821 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14822 | echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 14823 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 14824 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
14825 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5 |
14826 | echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 14827 | |
19650fd6 | 14828 | ;; |
c0d27fcc | 14829 | esac |
d6e01aa5 KL |
14830 | { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 |
14831 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
14832 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
14833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14834 | else | |
14835 | ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc | |
73b77ee5 | 14836 | fi |
d6e01aa5 KL |
14837 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
14838 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; } | |
c0d27fcc MR |
14839 | |
14840 | fi | |
98418dba | 14841 | if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
d6e01aa5 KL |
14842 | { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 |
14843 | echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; } | |
98418dba | 14844 | if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then |
503d2be0 | 14845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 14846 | else |
503d2be0 | 14847 | ac_check_lib_save_LIBS=$LIBS |
1660500f | 14848 | LIBS="-lSM -lICE $LIBS" |
503d2be0 | 14849 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14850 | /* confdefs.h. */ |
14851 | _ACEOF | |
14852 | cat confdefs.h >>conftest.$ac_ext | |
14853 | cat >>conftest.$ac_ext <<_ACEOF | |
14854 | /* end confdefs.h. */ | |
503d2be0 | 14855 | |
d6e01aa5 KL |
14856 | /* Override any GCC internal prototype to avoid an error. |
14857 | Use char because int might match the return type of a GCC | |
14858 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
14859 | #ifdef __cplusplus |
14860 | extern "C" | |
14861 | #endif | |
98418dba | 14862 | char SmcOpenConnection (); |
503d2be0 AS |
14863 | int |
14864 | main () | |
14865 | { | |
d6e01aa5 | 14866 | return SmcOpenConnection (); |
503d2be0 AS |
14867 | ; |
14868 | return 0; | |
14869 | } | |
14870 | _ACEOF | |
14871 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
14872 | if { (ac_try="$ac_link" |
14873 | case "(($ac_try" in | |
14874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14875 | *) ac_try_echo=$ac_try;; | |
14876 | esac | |
14877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14878 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14879 | ac_status=$? |
edfaf76d LK |
14880 | grep -v '^ *+' conftest.er1 >conftest.err |
14881 | rm -f conftest.er1 | |
14882 | cat conftest.err >&5 | |
c0d27fcc | 14883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
14884 | (exit $ac_status); } && { |
14885 | test -z "$ac_c_werror_flag" || | |
14886 | test ! -s conftest.err | |
14887 | } && test -s conftest$ac_exeext && | |
14888 | $as_test_x conftest$ac_exeext; then | |
98418dba | 14889 | ac_cv_lib_SM_SmcOpenConnection=yes |
503d2be0 AS |
14890 | else |
14891 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14892 | sed 's/^/| /' conftest.$ac_ext >&5 |
14893 | ||
d6e01aa5 | 14894 | ac_cv_lib_SM_SmcOpenConnection=no |
503d2be0 | 14895 | fi |
d6e01aa5 KL |
14896 | |
14897 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 14898 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
14899 | LIBS=$ac_check_lib_save_LIBS |
14900 | fi | |
d6e01aa5 KL |
14901 | { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
14902 | echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; } | |
98418dba CW |
14903 | if test $ac_cv_lib_SM_SmcOpenConnection = yes; then |
14904 | HAVE_X_SM=yes | |
73b77ee5 GM |
14905 | fi |
14906 | ||
73b77ee5 | 14907 | fi |
73b77ee5 | 14908 | |
c0d27fcc MR |
14909 | |
14910 | ||
98418dba | 14911 | if test "${HAVE_X_SM}" = "yes"; then |
b936fae4 | 14912 | |
c0d27fcc | 14913 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14914 | #define HAVE_X_SM 1 |
c0d27fcc | 14915 | _ACEOF |
73b77ee5 | 14916 | |
98418dba CW |
14917 | case "$LIBS" in |
14918 | *-lSM*) ;; | |
14919 | *) LIBS="-lSM -lICE $LIBS" ;; | |
14920 | esac | |
73b77ee5 | 14921 | fi |
98418dba | 14922 | fi |
73b77ee5 | 14923 | |
98418dba | 14924 | # If netdb.h doesn't declare h_errno, we must declare it by hand. |
d6e01aa5 KL |
14925 | { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 |
14926 | echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; } | |
98418dba CW |
14927 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then |
14928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14929 | else | |
14930 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14931 | /* confdefs.h. */ |
14932 | _ACEOF | |
14933 | cat confdefs.h >>conftest.$ac_ext | |
14934 | cat >>conftest.$ac_ext <<_ACEOF | |
14935 | /* end confdefs.h. */ | |
98418dba | 14936 | #include <netdb.h> |
503d2be0 AS |
14937 | int |
14938 | main () | |
14939 | { | |
98418dba | 14940 | return h_errno; |
503d2be0 AS |
14941 | ; |
14942 | return 0; | |
14943 | } | |
14944 | _ACEOF | |
14945 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
14946 | if { (ac_try="$ac_link" |
14947 | case "(($ac_try" in | |
14948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14949 | *) ac_try_echo=$ac_try;; | |
14950 | esac | |
14951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14952 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14953 | ac_status=$? |
edfaf76d LK |
14954 | grep -v '^ *+' conftest.er1 >conftest.err |
14955 | rm -f conftest.er1 | |
14956 | cat conftest.err >&5 | |
c0d27fcc | 14957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
14958 | (exit $ac_status); } && { |
14959 | test -z "$ac_c_werror_flag" || | |
14960 | test ! -s conftest.err | |
14961 | } && test -s conftest$ac_exeext && | |
14962 | $as_test_x conftest$ac_exeext; then | |
98418dba | 14963 | emacs_cv_netdb_declares_h_errno=yes |
73b77ee5 | 14964 | else |
503d2be0 | 14965 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14966 | sed 's/^/| /' conftest.$ac_ext >&5 |
14967 | ||
d6e01aa5 | 14968 | emacs_cv_netdb_declares_h_errno=no |
73b77ee5 | 14969 | fi |
d6e01aa5 KL |
14970 | |
14971 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 14972 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 14973 | fi |
d6e01aa5 KL |
14974 | { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 |
14975 | echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; } | |
98418dba | 14976 | if test $emacs_cv_netdb_declares_h_errno = yes; then |
b936fae4 | 14977 | |
c0d27fcc | 14978 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14979 | #define HAVE_H_ERRNO 1 |
c0d27fcc | 14980 | _ACEOF |
73b77ee5 | 14981 | |
98418dba CW |
14982 | fi |
14983 | ||
14984 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
14985 | # for constant arguments. Useless! | |
d6e01aa5 KL |
14986 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
14987 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
98418dba CW |
14988 | if test "${ac_cv_working_alloca_h+set}" = set; then |
14989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14990 | else | |
14991 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14992 | /* confdefs.h. */ |
14993 | _ACEOF | |
14994 | cat confdefs.h >>conftest.$ac_ext | |
14995 | cat >>conftest.$ac_ext <<_ACEOF | |
14996 | /* end confdefs.h. */ | |
98418dba | 14997 | #include <alloca.h> |
503d2be0 AS |
14998 | int |
14999 | main () | |
15000 | { | |
98418dba | 15001 | char *p = (char *) alloca (2 * sizeof (int)); |
d6e01aa5 | 15002 | if (p) return 0; |
503d2be0 AS |
15003 | ; |
15004 | return 0; | |
15005 | } | |
15006 | _ACEOF | |
15007 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
15008 | if { (ac_try="$ac_link" |
15009 | case "(($ac_try" in | |
15010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15011 | *) ac_try_echo=$ac_try;; | |
15012 | esac | |
15013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15014 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15015 | ac_status=$? |
edfaf76d LK |
15016 | grep -v '^ *+' conftest.er1 >conftest.err |
15017 | rm -f conftest.er1 | |
15018 | cat conftest.err >&5 | |
c0d27fcc | 15019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
15020 | (exit $ac_status); } && { |
15021 | test -z "$ac_c_werror_flag" || | |
15022 | test ! -s conftest.err | |
15023 | } && test -s conftest$ac_exeext && | |
15024 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15025 | ac_cv_working_alloca_h=yes |
73b77ee5 | 15026 | else |
503d2be0 | 15027 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
15028 | sed 's/^/| /' conftest.$ac_ext >&5 |
15029 | ||
d6e01aa5 | 15030 | ac_cv_working_alloca_h=no |
73b77ee5 | 15031 | fi |
d6e01aa5 KL |
15032 | |
15033 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 15034 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 15035 | fi |
d6e01aa5 KL |
15036 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
15037 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
98418dba | 15038 | if test $ac_cv_working_alloca_h = yes; then |
73b77ee5 | 15039 | |
c0d27fcc | 15040 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15041 | #define HAVE_ALLOCA_H 1 |
c0d27fcc | 15042 | _ACEOF |
98418dba CW |
15043 | |
15044 | fi | |
15045 | ||
d6e01aa5 KL |
15046 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
15047 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
98418dba CW |
15048 | if test "${ac_cv_func_alloca_works+set}" = set; then |
15049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15050 | else | |
503d2be0 | 15051 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15052 | /* confdefs.h. */ |
15053 | _ACEOF | |
15054 | cat confdefs.h >>conftest.$ac_ext | |
15055 | cat >>conftest.$ac_ext <<_ACEOF | |
15056 | /* end confdefs.h. */ | |
98418dba CW |
15057 | #ifdef __GNUC__ |
15058 | # define alloca __builtin_alloca | |
15059 | #else | |
15060 | # ifdef _MSC_VER | |
15061 | # include <malloc.h> | |
15062 | # define alloca _alloca | |
15063 | # else | |
d6e01aa5 | 15064 | # ifdef HAVE_ALLOCA_H |
98418dba CW |
15065 | # include <alloca.h> |
15066 | # else | |
15067 | # ifdef _AIX | |
15068 | #pragma alloca | |
15069 | # else | |
15070 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
15071 | char *alloca (); | |
15072 | # endif | |
15073 | # endif | |
15074 | # endif | |
15075 | # endif | |
15076 | #endif | |
15077 | ||
503d2be0 AS |
15078 | int |
15079 | main () | |
15080 | { | |
98418dba | 15081 | char *p = (char *) alloca (1); |
d6e01aa5 | 15082 | if (p) return 0; |
503d2be0 AS |
15083 | ; |
15084 | return 0; | |
15085 | } | |
15086 | _ACEOF | |
15087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
15088 | if { (ac_try="$ac_link" |
15089 | case "(($ac_try" in | |
15090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15091 | *) ac_try_echo=$ac_try;; | |
15092 | esac | |
15093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15094 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15095 | ac_status=$? |
edfaf76d LK |
15096 | grep -v '^ *+' conftest.er1 >conftest.err |
15097 | rm -f conftest.er1 | |
15098 | cat conftest.err >&5 | |
c0d27fcc | 15099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
15100 | (exit $ac_status); } && { |
15101 | test -z "$ac_c_werror_flag" || | |
15102 | test ! -s conftest.err | |
15103 | } && test -s conftest$ac_exeext && | |
15104 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15105 | ac_cv_func_alloca_works=yes |
ac95a621 | 15106 | else |
503d2be0 | 15107 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
15108 | sed 's/^/| /' conftest.$ac_ext >&5 |
15109 | ||
d6e01aa5 | 15110 | ac_cv_func_alloca_works=no |
ac95a621 | 15111 | fi |
d6e01aa5 KL |
15112 | |
15113 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 15114 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 15115 | fi |
d6e01aa5 KL |
15116 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
15117 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
ac95a621 | 15118 | |
98418dba CW |
15119 | if test $ac_cv_func_alloca_works = yes; then |
15120 | ||
c0d27fcc | 15121 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15122 | #define HAVE_ALLOCA 1 |
c0d27fcc | 15123 | _ACEOF |
98418dba CW |
15124 | |
15125 | else | |
15126 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
15127 | # that cause trouble. Some versions do not even contain alloca or | |
15128 | # contain a buggy version. If you still want to use their alloca, | |
15129 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
15130 | ||
d6e01aa5 | 15131 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
98418dba | 15132 | |
c0d27fcc | 15133 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15134 | #define C_ALLOCA 1 |
c0d27fcc | 15135 | _ACEOF |
98418dba | 15136 | |
c0d27fcc | 15137 | |
d6e01aa5 KL |
15138 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
15139 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
98418dba CW |
15140 | if test "${ac_cv_os_cray+set}" = set; then |
15141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15142 | else | |
15143 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15144 | /* confdefs.h. */ |
15145 | _ACEOF | |
15146 | cat confdefs.h >>conftest.$ac_ext | |
15147 | cat >>conftest.$ac_ext <<_ACEOF | |
15148 | /* end confdefs.h. */ | |
d6e01aa5 | 15149 | #if defined CRAY && ! defined CRAY2 |
98418dba CW |
15150 | webecray |
15151 | #else | |
15152 | wenotbecray | |
15153 | #endif | |
15154 | ||
15155 | _ACEOF | |
15156 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 15157 | $EGREP "webecray" >/dev/null 2>&1; then |
98418dba CW |
15158 | ac_cv_os_cray=yes |
15159 | else | |
15160 | ac_cv_os_cray=no | |
15161 | fi | |
15162 | rm -f conftest* | |
ac95a621 | 15163 | |
98418dba | 15164 | fi |
d6e01aa5 KL |
15165 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
15166 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
98418dba CW |
15167 | if test $ac_cv_os_cray = yes; then |
15168 | for ac_func in _getb67 GETB67 getb67; do | |
15169 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
d6e01aa5 KL |
15170 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15171 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
15172 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 15173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 15174 | else |
503d2be0 | 15175 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15176 | /* confdefs.h. */ |
15177 | _ACEOF | |
15178 | cat confdefs.h >>conftest.$ac_ext | |
15179 | cat >>conftest.$ac_ext <<_ACEOF | |
15180 | /* end confdefs.h. */ | |
edfaf76d LK |
15181 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15182 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15183 | #define $ac_func innocuous_$ac_func | |
15184 | ||
73b77ee5 | 15185 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
15186 | which can conflict with char $ac_func (); below. |
15187 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15188 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 15189 | |
19650fd6 AS |
15190 | #ifdef __STDC__ |
15191 | # include <limits.h> | |
15192 | #else | |
15193 | # include <assert.h> | |
15194 | #endif | |
edfaf76d LK |
15195 | |
15196 | #undef $ac_func | |
15197 | ||
d6e01aa5 KL |
15198 | /* Override any GCC internal prototype to avoid an error. |
15199 | Use char because int might match the return type of a GCC | |
15200 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
15201 | #ifdef __cplusplus |
15202 | extern "C" | |
15203 | #endif | |
503d2be0 | 15204 | char $ac_func (); |
73b77ee5 GM |
15205 | /* The GNU C library defines this for functions which it implements |
15206 | to always fail with ENOSYS. Some functions are actually named | |
15207 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 15208 | #if defined __stub_$ac_func || defined __stub___$ac_func |
73b77ee5 | 15209 | choke me |
73b77ee5 GM |
15210 | #endif |
15211 | ||
19650fd6 AS |
15212 | int |
15213 | main () | |
15214 | { | |
d6e01aa5 | 15215 | return $ac_func (); |
503d2be0 AS |
15216 | ; |
15217 | return 0; | |
15218 | } | |
15219 | _ACEOF | |
15220 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
15221 | if { (ac_try="$ac_link" |
15222 | case "(($ac_try" in | |
15223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15224 | *) ac_try_echo=$ac_try;; | |
15225 | esac | |
15226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15227 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15228 | ac_status=$? |
edfaf76d LK |
15229 | grep -v '^ *+' conftest.er1 >conftest.err |
15230 | rm -f conftest.er1 | |
15231 | cat conftest.err >&5 | |
c0d27fcc | 15232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
15233 | (exit $ac_status); } && { |
15234 | test -z "$ac_c_werror_flag" || | |
15235 | test ! -s conftest.err | |
15236 | } && test -s conftest$ac_exeext && | |
15237 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
15238 | eval "$as_ac_var=yes" |
15239 | else | |
15240 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15241 | sed 's/^/| /' conftest.$ac_ext >&5 |
15242 | ||
d6e01aa5 | 15243 | eval "$as_ac_var=no" |
503d2be0 | 15244 | fi |
d6e01aa5 KL |
15245 | |
15246 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 15247 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 15248 | fi |
d6e01aa5 KL |
15249 | ac_res=`eval echo '${'$as_ac_var'}'` |
15250 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15251 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 15252 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
73b77ee5 | 15253 | |
c0d27fcc | 15254 | cat >>confdefs.h <<_ACEOF |
98418dba | 15255 | #define CRAY_STACKSEG_END $ac_func |
c0d27fcc | 15256 | _ACEOF |
98418dba CW |
15257 | |
15258 | break | |
73b77ee5 | 15259 | fi |
73b77ee5 | 15260 | |
98418dba | 15261 | done |
73b77ee5 GM |
15262 | fi |
15263 | ||
d6e01aa5 KL |
15264 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
15265 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
98418dba | 15266 | if test "${ac_cv_c_stack_direction+set}" = set; then |
503d2be0 | 15267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
98418dba CW |
15268 | else |
15269 | if test "$cross_compiling" = yes; then | |
15270 | ac_cv_c_stack_direction=0 | |
73b77ee5 | 15271 | else |
503d2be0 | 15272 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15273 | /* confdefs.h. */ |
15274 | _ACEOF | |
15275 | cat confdefs.h >>conftest.$ac_ext | |
15276 | cat >>conftest.$ac_ext <<_ACEOF | |
15277 | /* end confdefs.h. */ | |
d6e01aa5 | 15278 | $ac_includes_default |
503d2be0 | 15279 | int |
98418dba | 15280 | find_stack_direction () |
503d2be0 | 15281 | { |
98418dba CW |
15282 | static char *addr = 0; |
15283 | auto char dummy; | |
15284 | if (addr == 0) | |
15285 | { | |
15286 | addr = &dummy; | |
15287 | return find_stack_direction (); | |
15288 | } | |
73b77ee5 | 15289 | else |
98418dba CW |
15290 | return (&dummy > addr) ? 1 : -1; |
15291 | } | |
ba4481b5 | 15292 | |
503d2be0 AS |
15293 | int |
15294 | main () | |
15295 | { | |
d6e01aa5 | 15296 | return find_stack_direction () < 0; |
503d2be0 AS |
15297 | } |
15298 | _ACEOF | |
98418dba | 15299 | rm -f conftest$ac_exeext |
d6e01aa5 KL |
15300 | if { (ac_try="$ac_link" |
15301 | case "(($ac_try" in | |
15302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15303 | *) ac_try_echo=$ac_try;; | |
15304 | esac | |
15305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15306 | (eval "$ac_link") 2>&5 | |
503d2be0 | 15307 | ac_status=$? |
c0d27fcc | 15308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 15309 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d6e01aa5 KL |
15310 | { (case "(($ac_try" in |
15311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15312 | *) ac_try_echo=$ac_try;; | |
15313 | esac | |
15314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15315 | (eval "$ac_try") 2>&5 | |
503d2be0 | 15316 | ac_status=$? |
c0d27fcc | 15317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15318 | (exit $ac_status); }; }; then |
98418dba | 15319 | ac_cv_c_stack_direction=1 |
ba4481b5 | 15320 | else |
98418dba CW |
15321 | echo "$as_me: program exited with status $ac_status" >&5 |
15322 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15323 | sed 's/^/| /' conftest.$ac_ext >&5 |
15324 | ||
c0d27fcc | 15325 | ( exit $ac_status ) |
98418dba | 15326 | ac_cv_c_stack_direction=-1 |
ba4481b5 | 15327 | fi |
d6e01aa5 | 15328 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 15329 | fi |
d6e01aa5 KL |
15330 | |
15331 | ||
98418dba | 15332 | fi |
d6e01aa5 KL |
15333 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
15334 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
98418dba | 15335 | |
c0d27fcc | 15336 | cat >>confdefs.h <<_ACEOF |
98418dba | 15337 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
c0d27fcc MR |
15338 | _ACEOF |
15339 | ||
ba4481b5 | 15340 | |
ba4481b5 DL |
15341 | fi |
15342 | ||
c0d27fcc | 15343 | |
611adb3e GM |
15344 | if test x"$ac_cv_func_alloca_works" != xyes; then |
15345 | { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5 | |
15346 | echo "$as_me: error: a system implementation of alloca is required " >&2;} | |
15347 | { (exit 1); exit 1; }; } | |
15348 | fi | |
15349 | ||
98418dba CW |
15350 | # fmod, logb, and frexp are found in -lm on most systems. |
15351 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
15352 | ||
d6e01aa5 KL |
15353 | { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
15354 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; } | |
98418dba | 15355 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
503d2be0 | 15356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 15357 | else |
98418dba CW |
15358 | ac_check_lib_save_LIBS=$LIBS |
15359 | LIBS="-lm $LIBS" | |
15360 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15361 | /* confdefs.h. */ |
15362 | _ACEOF | |
15363 | cat confdefs.h >>conftest.$ac_ext | |
15364 | cat >>conftest.$ac_ext <<_ACEOF | |
15365 | /* end confdefs.h. */ | |
ba4481b5 | 15366 | |
d6e01aa5 KL |
15367 | /* Override any GCC internal prototype to avoid an error. |
15368 | Use char because int might match the return type of a GCC | |
15369 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
15370 | #ifdef __cplusplus |
15371 | extern "C" | |
15372 | #endif | |
98418dba | 15373 | char sqrt (); |
503d2be0 AS |
15374 | int |
15375 | main () | |
15376 | { | |
d6e01aa5 | 15377 | return sqrt (); |
503d2be0 AS |
15378 | ; |
15379 | return 0; | |
15380 | } | |
15381 | _ACEOF | |
15382 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
15383 | if { (ac_try="$ac_link" |
15384 | case "(($ac_try" in | |
15385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15386 | *) ac_try_echo=$ac_try;; | |
15387 | esac | |
15388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15389 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15390 | ac_status=$? |
edfaf76d LK |
15391 | grep -v '^ *+' conftest.er1 >conftest.err |
15392 | rm -f conftest.er1 | |
15393 | cat conftest.err >&5 | |
c0d27fcc | 15394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
15395 | (exit $ac_status); } && { |
15396 | test -z "$ac_c_werror_flag" || | |
15397 | test ! -s conftest.err | |
15398 | } && test -s conftest$ac_exeext && | |
15399 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15400 | ac_cv_lib_m_sqrt=yes |
ba4481b5 | 15401 | else |
503d2be0 | 15402 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
15403 | sed 's/^/| /' conftest.$ac_ext >&5 |
15404 | ||
d6e01aa5 | 15405 | ac_cv_lib_m_sqrt=no |
ba4481b5 | 15406 | fi |
d6e01aa5 KL |
15407 | |
15408 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 15409 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 15410 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 15411 | fi |
d6e01aa5 KL |
15412 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
15413 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; } | |
98418dba | 15414 | if test $ac_cv_lib_m_sqrt = yes; then |
c0d27fcc | 15415 | cat >>confdefs.h <<_ACEOF |
98418dba | 15416 | #define HAVE_LIBM 1 |
c0d27fcc | 15417 | _ACEOF |
98418dba CW |
15418 | |
15419 | LIBS="-lm $LIBS" | |
ba4481b5 | 15420 | |
ba4481b5 DL |
15421 | fi |
15422 | ||
c0d27fcc | 15423 | |
55597d70 DL |
15424 | # Check for mail-locking functions in a "mail" library. Probably this should |
15425 | # have the same check as for liblockfile below. | |
98418dba | 15426 | |
d6e01aa5 KL |
15427 | { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 |
15428 | echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; } | |
98418dba | 15429 | if test "${ac_cv_lib_mail_maillock+set}" = set; then |
503d2be0 | 15430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 15431 | else |
98418dba CW |
15432 | ac_check_lib_save_LIBS=$LIBS |
15433 | LIBS="-lmail $LIBS" | |
15434 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15435 | /* confdefs.h. */ |
15436 | _ACEOF | |
15437 | cat confdefs.h >>conftest.$ac_ext | |
15438 | cat >>conftest.$ac_ext <<_ACEOF | |
15439 | /* end confdefs.h. */ | |
98418dba | 15440 | |
d6e01aa5 KL |
15441 | /* Override any GCC internal prototype to avoid an error. |
15442 | Use char because int might match the return type of a GCC | |
15443 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
15444 | #ifdef __cplusplus |
15445 | extern "C" | |
15446 | #endif | |
98418dba | 15447 | char maillock (); |
503d2be0 AS |
15448 | int |
15449 | main () | |
15450 | { | |
d6e01aa5 | 15451 | return maillock (); |
503d2be0 AS |
15452 | ; |
15453 | return 0; | |
15454 | } | |
15455 | _ACEOF | |
15456 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
15457 | if { (ac_try="$ac_link" |
15458 | case "(($ac_try" in | |
15459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15460 | *) ac_try_echo=$ac_try;; | |
15461 | esac | |
15462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15463 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15464 | ac_status=$? |
edfaf76d LK |
15465 | grep -v '^ *+' conftest.er1 >conftest.err |
15466 | rm -f conftest.er1 | |
15467 | cat conftest.err >&5 | |
c0d27fcc | 15468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
15469 | (exit $ac_status); } && { |
15470 | test -z "$ac_c_werror_flag" || | |
15471 | test ! -s conftest.err | |
15472 | } && test -s conftest$ac_exeext && | |
15473 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15474 | ac_cv_lib_mail_maillock=yes |
ba4481b5 | 15475 | else |
503d2be0 | 15476 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
15477 | sed 's/^/| /' conftest.$ac_ext >&5 |
15478 | ||
d6e01aa5 | 15479 | ac_cv_lib_mail_maillock=no |
ba4481b5 | 15480 | fi |
d6e01aa5 KL |
15481 | |
15482 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 15483 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 15484 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 15485 | fi |
d6e01aa5 KL |
15486 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 |
15487 | echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; } | |
98418dba | 15488 | if test $ac_cv_lib_mail_maillock = yes; then |
c0d27fcc | 15489 | cat >>confdefs.h <<_ACEOF |
98418dba | 15490 | #define HAVE_LIBMAIL 1 |
c0d27fcc | 15491 | _ACEOF |
ba4481b5 | 15492 | |
98418dba | 15493 | LIBS="-lmail $LIBS" |
ba4481b5 | 15494 | |
98418dba | 15495 | fi |
ba4481b5 | 15496 | |
c0d27fcc | 15497 | |
d6e01aa5 KL |
15498 | { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 |
15499 | echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; } | |
98418dba | 15500 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then |
503d2be0 | 15501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 15502 | else |
503d2be0 | 15503 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 15504 | LIBS="-llockfile $LIBS" |
503d2be0 | 15505 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15506 | /* confdefs.h. */ |
15507 | _ACEOF | |
15508 | cat confdefs.h >>conftest.$ac_ext | |
15509 | cat >>conftest.$ac_ext <<_ACEOF | |
15510 | /* end confdefs.h. */ | |
503d2be0 | 15511 | |
d6e01aa5 KL |
15512 | /* Override any GCC internal prototype to avoid an error. |
15513 | Use char because int might match the return type of a GCC | |
15514 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
15515 | #ifdef __cplusplus |
15516 | extern "C" | |
15517 | #endif | |
98418dba | 15518 | char maillock (); |
503d2be0 AS |
15519 | int |
15520 | main () | |
15521 | { | |
d6e01aa5 | 15522 | return maillock (); |
503d2be0 AS |
15523 | ; |
15524 | return 0; | |
15525 | } | |
15526 | _ACEOF | |
15527 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
15528 | if { (ac_try="$ac_link" |
15529 | case "(($ac_try" in | |
15530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15531 | *) ac_try_echo=$ac_try;; | |
15532 | esac | |
15533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15534 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15535 | ac_status=$? |
edfaf76d LK |
15536 | grep -v '^ *+' conftest.er1 >conftest.err |
15537 | rm -f conftest.er1 | |
15538 | cat conftest.err >&5 | |
c0d27fcc | 15539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
15540 | (exit $ac_status); } && { |
15541 | test -z "$ac_c_werror_flag" || | |
15542 | test ! -s conftest.err | |
15543 | } && test -s conftest$ac_exeext && | |
15544 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15545 | ac_cv_lib_lockfile_maillock=yes |
503d2be0 AS |
15546 | else |
15547 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15548 | sed 's/^/| /' conftest.$ac_ext >&5 |
15549 | ||
d6e01aa5 | 15550 | ac_cv_lib_lockfile_maillock=no |
98418dba | 15551 | fi |
d6e01aa5 KL |
15552 | |
15553 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 15554 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
15555 | LIBS=$ac_check_lib_save_LIBS |
15556 | fi | |
d6e01aa5 KL |
15557 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 |
15558 | echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; } | |
98418dba | 15559 | if test $ac_cv_lib_lockfile_maillock = yes; then |
c0d27fcc | 15560 | cat >>confdefs.h <<_ACEOF |
98418dba | 15561 | #define HAVE_LIBLOCKFILE 1 |
c0d27fcc | 15562 | _ACEOF |
98418dba CW |
15563 | |
15564 | LIBS="-llockfile $LIBS" | |
15565 | ||
15566 | fi | |
15567 | ||
15568 | # If we have the shared liblockfile, assume we must use it for mail | |
15569 | # locking (e.g. Debian). If we couldn't link against liblockfile | |
15570 | # (no liblockfile.a installed), ensure that we don't need to. | |
15571 | if test "$ac_cv_lib_lockfile_maillock" = no; then | |
15572 | # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
15573 | set dummy liblockfile.so; ac_word=$2 | |
d6e01aa5 KL |
15574 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
98418dba CW |
15576 | if test "${ac_cv_prog_liblockfile+set}" = set; then |
15577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15578 | else | |
15579 | if test -n "$liblockfile"; then | |
15580 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
15581 | else | |
c0d27fcc | 15582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6bae0ccf DL |
15583 | as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
15584 | for as_dir in $as_dummy | |
c0d27fcc MR |
15585 | do |
15586 | IFS=$as_save_IFS | |
15587 | test -z "$as_dir" && as_dir=. | |
15588 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6e01aa5 | 15589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
15590 | ac_cv_prog_liblockfile="yes" |
15591 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15592 | break 2 | |
15593 | fi | |
15594 | done | |
98418dba | 15595 | done |
d6e01aa5 | 15596 | IFS=$as_save_IFS |
98418dba CW |
15597 | |
15598 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
503d2be0 | 15599 | fi |
503d2be0 | 15600 | fi |
98418dba CW |
15601 | liblockfile=$ac_cv_prog_liblockfile |
15602 | if test -n "$liblockfile"; then | |
d6e01aa5 KL |
15603 | { echo "$as_me:$LINENO: result: $liblockfile" >&5 |
15604 | echo "${ECHO_T}$liblockfile" >&6; } | |
98418dba | 15605 | else |
d6e01aa5 KL |
15606 | { echo "$as_me:$LINENO: result: no" >&5 |
15607 | echo "${ECHO_T}no" >&6; } | |
ba4481b5 DL |
15608 | fi |
15609 | ||
d6e01aa5 | 15610 | |
98418dba | 15611 | if test $ac_cv_prog_liblockfile = yes; then |
c0d27fcc | 15612 | { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. |
98418dba CW |
15613 | This probably means that movemail could lose mail. |
15614 | There may be a \`development' package to install containing liblockfile." >&5 | |
15615 | echo "$as_me: error: Shared liblockfile found but can't link against it. | |
15616 | This probably means that movemail could lose mail. | |
15617 | There may be a \`development' package to install containing liblockfile." >&2;} | |
15618 | { (exit 1); exit 1; }; } | |
98418dba | 15619 | else : |
55597d70 | 15620 | fi |
98418dba | 15621 | fi |
503d2be0 | 15622 | |
98418dba CW |
15623 | for ac_func in touchlock |
15624 | do | |
15625 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
d6e01aa5 KL |
15626 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15627 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
15628 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 15629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
457b792c | 15630 | else |
98418dba | 15631 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15632 | /* confdefs.h. */ |
15633 | _ACEOF | |
15634 | cat confdefs.h >>conftest.$ac_ext | |
15635 | cat >>conftest.$ac_ext <<_ACEOF | |
15636 | /* end confdefs.h. */ | |
edfaf76d LK |
15637 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15638 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15639 | #define $ac_func innocuous_$ac_func | |
15640 | ||
98418dba | 15641 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
15642 | which can conflict with char $ac_func (); below. |
15643 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15644 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 15645 | |
19650fd6 AS |
15646 | #ifdef __STDC__ |
15647 | # include <limits.h> | |
15648 | #else | |
15649 | # include <assert.h> | |
15650 | #endif | |
edfaf76d LK |
15651 | |
15652 | #undef $ac_func | |
15653 | ||
d6e01aa5 KL |
15654 | /* Override any GCC internal prototype to avoid an error. |
15655 | Use char because int might match the return type of a GCC | |
15656 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
15657 | #ifdef __cplusplus |
15658 | extern "C" | |
15659 | #endif | |
98418dba | 15660 | char $ac_func (); |
98418dba CW |
15661 | /* The GNU C library defines this for functions which it implements |
15662 | to always fail with ENOSYS. Some functions are actually named | |
15663 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 15664 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 15665 | choke me |
cd958eb3 MB |
15666 | #endif |
15667 | ||
19650fd6 AS |
15668 | int |
15669 | main () | |
15670 | { | |
d6e01aa5 | 15671 | return $ac_func (); |
503d2be0 AS |
15672 | ; |
15673 | return 0; | |
15674 | } | |
15675 | _ACEOF | |
15676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
15677 | if { (ac_try="$ac_link" |
15678 | case "(($ac_try" in | |
15679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15680 | *) ac_try_echo=$ac_try;; | |
15681 | esac | |
15682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15683 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15684 | ac_status=$? |
edfaf76d LK |
15685 | grep -v '^ *+' conftest.er1 >conftest.err |
15686 | rm -f conftest.er1 | |
15687 | cat conftest.err >&5 | |
c0d27fcc | 15688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
15689 | (exit $ac_status); } && { |
15690 | test -z "$ac_c_werror_flag" || | |
15691 | test ! -s conftest.err | |
15692 | } && test -s conftest$ac_exeext && | |
15693 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15694 | eval "$as_ac_var=yes" |
503d2be0 AS |
15695 | else |
15696 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15697 | sed 's/^/| /' conftest.$ac_ext >&5 |
15698 | ||
d6e01aa5 | 15699 | eval "$as_ac_var=no" |
503d2be0 | 15700 | fi |
d6e01aa5 KL |
15701 | |
15702 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 15703 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 15704 | fi |
d6e01aa5 KL |
15705 | ac_res=`eval echo '${'$as_ac_var'}'` |
15706 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15707 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 15708 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 15709 | cat >>confdefs.h <<_ACEOF |
98418dba | 15710 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 15711 | _ACEOF |
457b792c | 15712 | |
457b792c | 15713 | fi |
98418dba | 15714 | done |
457b792c | 15715 | |
c0d27fcc | 15716 | |
98418dba CW |
15717 | for ac_header in maillock.h |
15718 | do | |
15719 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
15720 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
15721 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15722 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
15723 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 15724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 15725 | fi |
d6e01aa5 KL |
15726 | ac_res=`eval echo '${'$as_ac_Header'}'` |
15727 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15728 | echo "${ECHO_T}$ac_res" >&6; } | |
ba4481b5 | 15729 | else |
c0d27fcc | 15730 | # Is the header compilable? |
d6e01aa5 KL |
15731 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15732 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 15733 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15734 | /* confdefs.h. */ |
15735 | _ACEOF | |
15736 | cat confdefs.h >>conftest.$ac_ext | |
15737 | cat >>conftest.$ac_ext <<_ACEOF | |
15738 | /* end confdefs.h. */ | |
c0d27fcc MR |
15739 | $ac_includes_default |
15740 | #include <$ac_header> | |
15741 | _ACEOF | |
15742 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
15743 | if { (ac_try="$ac_compile" |
15744 | case "(($ac_try" in | |
15745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15746 | *) ac_try_echo=$ac_try;; | |
15747 | esac | |
15748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15749 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 15750 | ac_status=$? |
edfaf76d LK |
15751 | grep -v '^ *+' conftest.er1 >conftest.err |
15752 | rm -f conftest.er1 | |
15753 | cat conftest.err >&5 | |
c0d27fcc | 15754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
15755 | (exit $ac_status); } && { |
15756 | test -z "$ac_c_werror_flag" || | |
15757 | test ! -s conftest.err | |
15758 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
15759 | ac_header_compiler=yes |
15760 | else | |
15761 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15762 | sed 's/^/| /' conftest.$ac_ext >&5 |
15763 | ||
d6e01aa5 | 15764 | ac_header_compiler=no |
c0d27fcc | 15765 | fi |
d6e01aa5 KL |
15766 | |
15767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15768 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15769 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
15770 | |
15771 | # Is the header present? | |
d6e01aa5 KL |
15772 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15773 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 15774 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15775 | /* confdefs.h. */ |
15776 | _ACEOF | |
15777 | cat confdefs.h >>conftest.$ac_ext | |
15778 | cat >>conftest.$ac_ext <<_ACEOF | |
15779 | /* end confdefs.h. */ | |
98418dba | 15780 | #include <$ac_header> |
503d2be0 | 15781 | _ACEOF |
d6e01aa5 KL |
15782 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15783 | case "(($ac_try" in | |
15784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15785 | *) ac_try_echo=$ac_try;; | |
15786 | esac | |
15787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15788 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 15789 | ac_status=$? |
6bae0ccf | 15790 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
15791 | rm -f conftest.er1 |
15792 | cat conftest.err >&5 | |
c0d27fcc | 15793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
15794 | (exit $ac_status); } >/dev/null && { |
15795 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15796 | test ! -s conftest.err | |
15797 | }; then | |
c0d27fcc | 15798 | ac_header_preproc=yes |
98418dba CW |
15799 | else |
15800 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15801 | sed 's/^/| /' conftest.$ac_ext >&5 |
15802 | ||
c0d27fcc | 15803 | ac_header_preproc=no |
503d2be0 | 15804 | fi |
d6e01aa5 | 15805 | |
98418dba | 15806 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
15807 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15808 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
15809 | |
15810 | # So? What about this header? | |
edfaf76d LK |
15811 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15812 | yes:no: ) | |
c0d27fcc MR |
15813 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15814 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
15815 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15816 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15817 | ac_header_preproc=yes | |
19650fd6 | 15818 | ;; |
edfaf76d | 15819 | no:yes:* ) |
c0d27fcc MR |
15820 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15821 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
15822 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15823 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15824 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15825 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15826 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15827 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15828 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15829 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
15830 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15831 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 15832 | |
19650fd6 | 15833 | ;; |
c0d27fcc | 15834 | esac |
d6e01aa5 KL |
15835 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15836 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
15837 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
15838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15839 | else | |
edfaf76d | 15840 | eval "$as_ac_Header=\$ac_header_preproc" |
ba4481b5 | 15841 | fi |
d6e01aa5 KL |
15842 | ac_res=`eval echo '${'$as_ac_Header'}'` |
15843 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15844 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
15845 | |
15846 | fi | |
98418dba | 15847 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15848 | cat >>confdefs.h <<_ACEOF |
98418dba | 15849 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 15850 | _ACEOF |
48d4b120 | 15851 | |
ba4481b5 | 15852 | fi |
c0d27fcc | 15853 | |
98418dba CW |
15854 | done |
15855 | ||
c0d27fcc MR |
15856 | |
15857 | ||
15858 | ||
15859 | ||
15860 | ||
15861 | ||
15862 | ||
15863 | ||
15864 | ||
15865 | ||
15866 | ||
15867 | ||
15868 | ||
15869 | ||
15870 | ||
15871 | ||
15872 | ||
15873 | ||
15874 | ||
15875 | ||
15876 | ||
15877 | ||
15878 | ||
15879 | ||
15880 | ||
15881 | ||
15882 | ||
15883 | ||
15884 | ||
15885 | ||
15886 | ||
15887 | ||
15888 | ||
15889 | ||
15890 | ||
15891 | ||
15892 | ||
15893 | ||
15894 | ||
15895 | ||
15896 | ||
15897 | ||
15898 | ||
15899 | ||
15900 | ||
15901 | ||
15902 | ||
15903 | ||
15904 | ||
15905 | ||
15906 | ||
15907 | ||
15908 | ||
15909 | ||
15910 | ||
22044edf DL |
15911 | |
15912 | ||
c0d27fcc | 15913 | |
b0e44248 RB |
15914 | |
15915 | ||
973a76b1 DL |
15916 | |
15917 | ||
15918 | ||
cd958eb3 | 15919 | |
25ca0bca | 15920 | |
ea92fc9f | 15921 | |
e2fcf543 | 15922 | |
c0d27fcc MR |
15923 | |
15924 | ||
98418dba | 15925 | for ac_func in gethostname getdomainname dup2 \ |
e2fcf543 | 15926 | rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ |
bc3512d0 | 15927 | random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \ |
98418dba | 15928 | strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ |
973a76b1 | 15929 | utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \ |
98418dba CW |
15930 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
15931 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ | |
190956b3 | 15932 | gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ |
4489ece2 | 15933 | memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign |
98418dba CW |
15934 | do |
15935 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
d6e01aa5 KL |
15936 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15937 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
15938 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 15939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 15940 | else |
503d2be0 | 15941 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15942 | /* confdefs.h. */ |
15943 | _ACEOF | |
15944 | cat confdefs.h >>conftest.$ac_ext | |
15945 | cat >>conftest.$ac_ext <<_ACEOF | |
15946 | /* end confdefs.h. */ | |
edfaf76d LK |
15947 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15948 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15949 | #define $ac_func innocuous_$ac_func | |
15950 | ||
98418dba | 15951 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
15952 | which can conflict with char $ac_func (); below. |
15953 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15954 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 15955 | |
19650fd6 AS |
15956 | #ifdef __STDC__ |
15957 | # include <limits.h> | |
15958 | #else | |
15959 | # include <assert.h> | |
15960 | #endif | |
edfaf76d LK |
15961 | |
15962 | #undef $ac_func | |
15963 | ||
d6e01aa5 KL |
15964 | /* Override any GCC internal prototype to avoid an error. |
15965 | Use char because int might match the return type of a GCC | |
15966 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
15967 | #ifdef __cplusplus |
15968 | extern "C" | |
15969 | #endif | |
98418dba | 15970 | char $ac_func (); |
98418dba CW |
15971 | /* The GNU C library defines this for functions which it implements |
15972 | to always fail with ENOSYS. Some functions are actually named | |
15973 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 15974 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 15975 | choke me |
98418dba CW |
15976 | #endif |
15977 | ||
19650fd6 AS |
15978 | int |
15979 | main () | |
15980 | { | |
d6e01aa5 | 15981 | return $ac_func (); |
503d2be0 AS |
15982 | ; |
15983 | return 0; | |
15984 | } | |
15985 | _ACEOF | |
15986 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
15987 | if { (ac_try="$ac_link" |
15988 | case "(($ac_try" in | |
15989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15990 | *) ac_try_echo=$ac_try;; | |
15991 | esac | |
15992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15993 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15994 | ac_status=$? |
edfaf76d LK |
15995 | grep -v '^ *+' conftest.er1 >conftest.err |
15996 | rm -f conftest.er1 | |
15997 | cat conftest.err >&5 | |
c0d27fcc | 15998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
15999 | (exit $ac_status); } && { |
16000 | test -z "$ac_c_werror_flag" || | |
16001 | test ! -s conftest.err | |
16002 | } && test -s conftest$ac_exeext && | |
16003 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16004 | eval "$as_ac_var=yes" |
503d2be0 AS |
16005 | else |
16006 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16007 | sed 's/^/| /' conftest.$ac_ext >&5 |
16008 | ||
d6e01aa5 | 16009 | eval "$as_ac_var=no" |
503d2be0 | 16010 | fi |
d6e01aa5 KL |
16011 | |
16012 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 16013 | conftest$ac_exeext conftest.$ac_ext |
ba4481b5 | 16014 | fi |
d6e01aa5 KL |
16015 | ac_res=`eval echo '${'$as_ac_var'}'` |
16016 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16017 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 16018 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 16019 | cat >>confdefs.h <<_ACEOF |
98418dba | 16020 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16021 | _ACEOF |
ba4481b5 | 16022 | |
ba4481b5 | 16023 | fi |
98418dba | 16024 | done |
ba4481b5 | 16025 | |
c0d27fcc MR |
16026 | |
16027 | ||
98418dba CW |
16028 | for ac_header in sys/un.h |
16029 | do | |
16030 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
16031 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
16032 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16033 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
16034 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba | 16035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 16036 | fi |
d6e01aa5 KL |
16037 | ac_res=`eval echo '${'$as_ac_Header'}'` |
16038 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16039 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 16040 | else |
c0d27fcc | 16041 | # Is the header compilable? |
d6e01aa5 KL |
16042 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16043 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 16044 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16045 | /* confdefs.h. */ |
16046 | _ACEOF | |
16047 | cat confdefs.h >>conftest.$ac_ext | |
16048 | cat >>conftest.$ac_ext <<_ACEOF | |
16049 | /* end confdefs.h. */ | |
c0d27fcc MR |
16050 | $ac_includes_default |
16051 | #include <$ac_header> | |
16052 | _ACEOF | |
16053 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
16054 | if { (ac_try="$ac_compile" |
16055 | case "(($ac_try" in | |
16056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16057 | *) ac_try_echo=$ac_try;; | |
16058 | esac | |
16059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16060 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 16061 | ac_status=$? |
edfaf76d LK |
16062 | grep -v '^ *+' conftest.er1 >conftest.err |
16063 | rm -f conftest.er1 | |
16064 | cat conftest.err >&5 | |
c0d27fcc | 16065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
16066 | (exit $ac_status); } && { |
16067 | test -z "$ac_c_werror_flag" || | |
16068 | test ! -s conftest.err | |
16069 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
16070 | ac_header_compiler=yes |
16071 | else | |
16072 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16073 | sed 's/^/| /' conftest.$ac_ext >&5 |
16074 | ||
d6e01aa5 | 16075 | ac_header_compiler=no |
c0d27fcc | 16076 | fi |
d6e01aa5 KL |
16077 | |
16078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16079 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16080 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
16081 | |
16082 | # Is the header present? | |
d6e01aa5 KL |
16083 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16084 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 16085 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16086 | /* confdefs.h. */ |
16087 | _ACEOF | |
16088 | cat confdefs.h >>conftest.$ac_ext | |
16089 | cat >>conftest.$ac_ext <<_ACEOF | |
16090 | /* end confdefs.h. */ | |
98418dba | 16091 | #include <$ac_header> |
503d2be0 | 16092 | _ACEOF |
d6e01aa5 KL |
16093 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16094 | case "(($ac_try" in | |
16095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16096 | *) ac_try_echo=$ac_try;; | |
16097 | esac | |
16098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16099 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 16100 | ac_status=$? |
6bae0ccf | 16101 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
16102 | rm -f conftest.er1 |
16103 | cat conftest.err >&5 | |
c0d27fcc | 16104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
16105 | (exit $ac_status); } >/dev/null && { |
16106 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16107 | test ! -s conftest.err | |
16108 | }; then | |
c0d27fcc | 16109 | ac_header_preproc=yes |
ba4481b5 | 16110 | else |
503d2be0 | 16111 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
16112 | sed 's/^/| /' conftest.$ac_ext >&5 |
16113 | ||
c0d27fcc | 16114 | ac_header_preproc=no |
ba4481b5 | 16115 | fi |
d6e01aa5 | 16116 | |
503d2be0 | 16117 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
16118 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16119 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
16120 | |
16121 | # So? What about this header? | |
edfaf76d LK |
16122 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16123 | yes:no: ) | |
c0d27fcc MR |
16124 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16125 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
16126 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16127 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16128 | ac_header_preproc=yes | |
19650fd6 | 16129 | ;; |
edfaf76d | 16130 | no:yes:* ) |
c0d27fcc MR |
16131 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16132 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
16133 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16134 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16135 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16136 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16137 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16138 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 16139 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 16140 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
16141 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16142 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 16143 | |
19650fd6 | 16144 | ;; |
c0d27fcc | 16145 | esac |
d6e01aa5 KL |
16146 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16147 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
16148 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
16149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16150 | else | |
edfaf76d | 16151 | eval "$as_ac_Header=\$ac_header_preproc" |
ba4481b5 | 16152 | fi |
d6e01aa5 KL |
16153 | ac_res=`eval echo '${'$as_ac_Header'}'` |
16154 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16155 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
16156 | |
16157 | fi | |
925c2f3f | 16158 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 16159 | cat >>confdefs.h <<_ACEOF |
925c2f3f | 16160 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 16161 | _ACEOF |
503d2be0 | 16162 | |
925c2f3f | 16163 | fi |
c0d27fcc | 16164 | |
925c2f3f EZ |
16165 | done |
16166 | ||
c0d27fcc MR |
16167 | |
16168 | ||
16169 | ||
edfaf76d | 16170 | |
d6e01aa5 KL |
16171 | |
16172 | for ac_header in $ac_header_list | |
925c2f3f EZ |
16173 | do |
16174 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
16175 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
16176 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16177 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
16178 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
925c2f3f | 16179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 16180 | fi |
d6e01aa5 KL |
16181 | ac_res=`eval echo '${'$as_ac_Header'}'` |
16182 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16183 | echo "${ECHO_T}$ac_res" >&6; } | |
925c2f3f | 16184 | else |
c0d27fcc | 16185 | # Is the header compilable? |
d6e01aa5 KL |
16186 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16187 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 16188 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16189 | /* confdefs.h. */ |
16190 | _ACEOF | |
16191 | cat confdefs.h >>conftest.$ac_ext | |
16192 | cat >>conftest.$ac_ext <<_ACEOF | |
16193 | /* end confdefs.h. */ | |
c0d27fcc MR |
16194 | $ac_includes_default |
16195 | #include <$ac_header> | |
16196 | _ACEOF | |
16197 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
16198 | if { (ac_try="$ac_compile" |
16199 | case "(($ac_try" in | |
16200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16201 | *) ac_try_echo=$ac_try;; | |
16202 | esac | |
16203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16204 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 16205 | ac_status=$? |
edfaf76d LK |
16206 | grep -v '^ *+' conftest.er1 >conftest.err |
16207 | rm -f conftest.er1 | |
16208 | cat conftest.err >&5 | |
c0d27fcc | 16209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
16210 | (exit $ac_status); } && { |
16211 | test -z "$ac_c_werror_flag" || | |
16212 | test ! -s conftest.err | |
16213 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
16214 | ac_header_compiler=yes |
16215 | else | |
16216 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16217 | sed 's/^/| /' conftest.$ac_ext >&5 |
16218 | ||
d6e01aa5 | 16219 | ac_header_compiler=no |
c0d27fcc | 16220 | fi |
d6e01aa5 KL |
16221 | |
16222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16223 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16224 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
16225 | |
16226 | # Is the header present? | |
d6e01aa5 KL |
16227 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16228 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 16229 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16230 | /* confdefs.h. */ |
16231 | _ACEOF | |
16232 | cat confdefs.h >>conftest.$ac_ext | |
16233 | cat >>conftest.$ac_ext <<_ACEOF | |
16234 | /* end confdefs.h. */ | |
98418dba | 16235 | #include <$ac_header> |
503d2be0 | 16236 | _ACEOF |
d6e01aa5 KL |
16237 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16238 | case "(($ac_try" in | |
16239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16240 | *) ac_try_echo=$ac_try;; | |
16241 | esac | |
16242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16243 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 16244 | ac_status=$? |
6bae0ccf | 16245 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
16246 | rm -f conftest.er1 |
16247 | cat conftest.err >&5 | |
c0d27fcc | 16248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
16249 | (exit $ac_status); } >/dev/null && { |
16250 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16251 | test ! -s conftest.err | |
16252 | }; then | |
c0d27fcc | 16253 | ac_header_preproc=yes |
98418dba CW |
16254 | else |
16255 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16256 | sed 's/^/| /' conftest.$ac_ext >&5 |
16257 | ||
c0d27fcc | 16258 | ac_header_preproc=no |
98418dba | 16259 | fi |
d6e01aa5 | 16260 | |
98418dba | 16261 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
16262 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16263 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
16264 | |
16265 | # So? What about this header? | |
edfaf76d LK |
16266 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16267 | yes:no: ) | |
c0d27fcc MR |
16268 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16269 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
16270 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16271 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16272 | ac_header_preproc=yes | |
19650fd6 | 16273 | ;; |
edfaf76d | 16274 | no:yes:* ) |
c0d27fcc MR |
16275 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16276 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
16277 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16278 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16279 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16280 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16281 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16282 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 16283 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 16284 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
16285 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16286 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 16287 | |
19650fd6 | 16288 | ;; |
c0d27fcc | 16289 | esac |
d6e01aa5 KL |
16290 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16291 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
16292 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
16293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16294 | else | |
edfaf76d | 16295 | eval "$as_ac_Header=\$ac_header_preproc" |
ffe36136 | 16296 | fi |
d6e01aa5 KL |
16297 | ac_res=`eval echo '${'$as_ac_Header'}'` |
16298 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16299 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
16300 | |
16301 | fi | |
98418dba | 16302 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 16303 | cat >>confdefs.h <<_ACEOF |
98418dba | 16304 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 16305 | _ACEOF |
98418dba CW |
16306 | |
16307 | fi | |
c0d27fcc | 16308 | |
98418dba CW |
16309 | done |
16310 | ||
c0d27fcc | 16311 | |
d6e01aa5 KL |
16312 | |
16313 | ||
16314 | ||
16315 | ||
16316 | ||
16317 | ||
16318 | ||
16319 | for ac_func in $ac_func_list | |
98418dba CW |
16320 | do |
16321 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
d6e01aa5 KL |
16322 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16323 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
16324 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 16325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16326 | else |
98418dba | 16327 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16328 | /* confdefs.h. */ |
16329 | _ACEOF | |
16330 | cat confdefs.h >>conftest.$ac_ext | |
16331 | cat >>conftest.$ac_ext <<_ACEOF | |
16332 | /* end confdefs.h. */ | |
edfaf76d LK |
16333 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16334 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16335 | #define $ac_func innocuous_$ac_func | |
16336 | ||
98418dba | 16337 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16338 | which can conflict with char $ac_func (); below. |
16339 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16340 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 16341 | |
19650fd6 AS |
16342 | #ifdef __STDC__ |
16343 | # include <limits.h> | |
16344 | #else | |
16345 | # include <assert.h> | |
16346 | #endif | |
edfaf76d LK |
16347 | |
16348 | #undef $ac_func | |
16349 | ||
d6e01aa5 KL |
16350 | /* Override any GCC internal prototype to avoid an error. |
16351 | Use char because int might match the return type of a GCC | |
16352 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
16353 | #ifdef __cplusplus |
16354 | extern "C" | |
16355 | #endif | |
98418dba | 16356 | char $ac_func (); |
98418dba CW |
16357 | /* The GNU C library defines this for functions which it implements |
16358 | to always fail with ENOSYS. Some functions are actually named | |
16359 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 16360 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 16361 | choke me |
98418dba CW |
16362 | #endif |
16363 | ||
19650fd6 AS |
16364 | int |
16365 | main () | |
16366 | { | |
d6e01aa5 | 16367 | return $ac_func (); |
503d2be0 AS |
16368 | ; |
16369 | return 0; | |
16370 | } | |
16371 | _ACEOF | |
16372 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
16373 | if { (ac_try="$ac_link" |
16374 | case "(($ac_try" in | |
16375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16376 | *) ac_try_echo=$ac_try;; | |
16377 | esac | |
16378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16379 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16380 | ac_status=$? |
edfaf76d LK |
16381 | grep -v '^ *+' conftest.er1 >conftest.err |
16382 | rm -f conftest.er1 | |
16383 | cat conftest.err >&5 | |
c0d27fcc | 16384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
16385 | (exit $ac_status); } && { |
16386 | test -z "$ac_c_werror_flag" || | |
16387 | test ! -s conftest.err | |
16388 | } && test -s conftest$ac_exeext && | |
16389 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16390 | eval "$as_ac_var=yes" |
503d2be0 AS |
16391 | else |
16392 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16393 | sed 's/^/| /' conftest.$ac_ext >&5 |
16394 | ||
d6e01aa5 | 16395 | eval "$as_ac_var=no" |
503d2be0 | 16396 | fi |
d6e01aa5 KL |
16397 | |
16398 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 16399 | conftest$ac_exeext conftest.$ac_ext |
ffe36136 | 16400 | fi |
d6e01aa5 KL |
16401 | ac_res=`eval echo '${'$as_ac_var'}'` |
16402 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16403 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 16404 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 16405 | cat >>confdefs.h <<_ACEOF |
98418dba | 16406 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16407 | _ACEOF |
ffe36136 | 16408 | |
ba4481b5 | 16409 | fi |
98418dba | 16410 | done |
ba4481b5 | 16411 | |
d6e01aa5 KL |
16412 | |
16413 | ||
16414 | ||
16415 | ||
16416 | ||
16417 | ||
16418 | ||
16419 | ||
16420 | ||
16421 | ||
16422 | ||
16423 | ||
16424 | ||
16425 | ||
16426 | ||
16427 | ||
16428 | { echo "$as_me:$LINENO: checking for working mktime" >&5 | |
16429 | echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; } | |
98418dba CW |
16430 | if test "${ac_cv_func_working_mktime+set}" = set; then |
16431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16432 | else | |
16433 | if test "$cross_compiling" = yes; then | |
16434 | ac_cv_func_working_mktime=no | |
16435 | else | |
16436 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16437 | /* confdefs.h. */ |
16438 | _ACEOF | |
16439 | cat confdefs.h >>conftest.$ac_ext | |
16440 | cat >>conftest.$ac_ext <<_ACEOF | |
16441 | /* end confdefs.h. */ | |
98418dba | 16442 | /* Test program from Paul Eggert and Tony Leneis. */ |
d6e01aa5 | 16443 | #ifdef TIME_WITH_SYS_TIME |
98418dba CW |
16444 | # include <sys/time.h> |
16445 | # include <time.h> | |
16446 | #else | |
d6e01aa5 | 16447 | # ifdef HAVE_SYS_TIME_H |
98418dba CW |
16448 | # include <sys/time.h> |
16449 | # else | |
16450 | # include <time.h> | |
16451 | # endif | |
16452 | #endif | |
ba4481b5 | 16453 | |
d6e01aa5 | 16454 | #include <stdlib.h> |
edfaf76d | 16455 | |
d6e01aa5 | 16456 | #ifdef HAVE_UNISTD_H |
98418dba CW |
16457 | # include <unistd.h> |
16458 | #endif | |
ba4481b5 | 16459 | |
d6e01aa5 | 16460 | #ifndef HAVE_ALARM |
98418dba CW |
16461 | # define alarm(X) /* empty */ |
16462 | #endif | |
df645f7c | 16463 | |
98418dba CW |
16464 | /* Work around redefinition to rpl_putenv by other config tests. */ |
16465 | #undef putenv | |
df645f7c | 16466 | |
98418dba | 16467 | static time_t time_t_max; |
edfaf76d | 16468 | static time_t time_t_min; |
df645f7c | 16469 | |
98418dba | 16470 | /* Values we'll use to set the TZ environment variable. */ |
edfaf76d LK |
16471 | static char *tz_strings[] = { |
16472 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | |
98418dba CW |
16473 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
16474 | }; | |
16475 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
503d2be0 | 16476 | |
d6e01aa5 | 16477 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. |
98418dba | 16478 | Based on a problem report from Andreas Jaeger. */ |
d6e01aa5 | 16479 | static int |
98418dba CW |
16480 | spring_forward_gap () |
16481 | { | |
16482 | /* glibc (up to about 1998-10-07) failed this test. */ | |
16483 | struct tm tm; | |
16484 | ||
16485 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
16486 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
16487 | on systems that don't support the Olson extension, or don't have the | |
16488 | full zoneinfo tables installed. */ | |
16489 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
16490 | ||
16491 | tm.tm_year = 98; | |
16492 | tm.tm_mon = 3; | |
16493 | tm.tm_mday = 5; | |
16494 | tm.tm_hour = 2; | |
16495 | tm.tm_min = 0; | |
16496 | tm.tm_sec = 0; | |
16497 | tm.tm_isdst = -1; | |
d6e01aa5 | 16498 | return mktime (&tm) != (time_t) -1; |
98418dba CW |
16499 | } |
16500 | ||
d6e01aa5 | 16501 | static int |
edfaf76d | 16502 | mktime_test1 (now) |
98418dba CW |
16503 | time_t now; |
16504 | { | |
16505 | struct tm *lt; | |
d6e01aa5 | 16506 | return ! (lt = localtime (&now)) || mktime (lt) == now; |
edfaf76d LK |
16507 | } |
16508 | ||
d6e01aa5 | 16509 | static int |
edfaf76d LK |
16510 | mktime_test (now) |
16511 | time_t now; | |
16512 | { | |
d6e01aa5 KL |
16513 | return (mktime_test1 (now) |
16514 | && mktime_test1 ((time_t) (time_t_max - now)) | |
16515 | && mktime_test1 ((time_t) (time_t_min + now))); | |
98418dba CW |
16516 | } |
16517 | ||
d6e01aa5 | 16518 | static int |
98418dba CW |
16519 | irix_6_4_bug () |
16520 | { | |
16521 | /* Based on code from Ariel Faigon. */ | |
16522 | struct tm tm; | |
16523 | tm.tm_year = 96; | |
16524 | tm.tm_mon = 3; | |
16525 | tm.tm_mday = 0; | |
16526 | tm.tm_hour = 0; | |
16527 | tm.tm_min = 0; | |
16528 | tm.tm_sec = 0; | |
16529 | tm.tm_isdst = -1; | |
16530 | mktime (&tm); | |
d6e01aa5 | 16531 | return tm.tm_mon == 2 && tm.tm_mday == 31; |
98418dba CW |
16532 | } |
16533 | ||
d6e01aa5 | 16534 | static int |
98418dba CW |
16535 | bigtime_test (j) |
16536 | int j; | |
16537 | { | |
16538 | struct tm tm; | |
16539 | time_t now; | |
16540 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
16541 | now = mktime (&tm); | |
16542 | if (now != (time_t) -1) | |
16543 | { | |
16544 | struct tm *lt = localtime (&now); | |
16545 | if (! (lt | |
16546 | && lt->tm_year == tm.tm_year | |
16547 | && lt->tm_mon == tm.tm_mon | |
16548 | && lt->tm_mday == tm.tm_mday | |
16549 | && lt->tm_hour == tm.tm_hour | |
16550 | && lt->tm_min == tm.tm_min | |
16551 | && lt->tm_sec == tm.tm_sec | |
16552 | && lt->tm_yday == tm.tm_yday | |
16553 | && lt->tm_wday == tm.tm_wday | |
16554 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
16555 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
d6e01aa5 | 16556 | return 0; |
98418dba | 16557 | } |
d6e01aa5 KL |
16558 | return 1; |
16559 | } | |
16560 | ||
16561 | static int | |
16562 | year_2050_test () | |
16563 | { | |
16564 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, | |
16565 | ignoring leap seconds. */ | |
16566 | unsigned long int answer = 2527315200UL; | |
16567 | ||
16568 | struct tm tm; | |
16569 | time_t t; | |
16570 | tm.tm_year = 2050 - 1900; | |
16571 | tm.tm_mon = 2 - 1; | |
16572 | tm.tm_mday = 1; | |
16573 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; | |
16574 | tm.tm_isdst = -1; | |
16575 | ||
16576 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
16577 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
16578 | on systems that don't support the Olson extension, or don't have the | |
16579 | full zoneinfo tables installed. */ | |
16580 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
16581 | ||
16582 | t = mktime (&tm); | |
16583 | ||
16584 | /* Check that the result is either a failure, or close enough | |
16585 | to the correct answer that we can assume the discrepancy is | |
16586 | due to leap seconds. */ | |
16587 | return (t == (time_t) -1 | |
16588 | || (0 < t && answer - 120 <= t && t <= answer + 120)); | |
98418dba CW |
16589 | } |
16590 | ||
16591 | int | |
16592 | main () | |
16593 | { | |
16594 | time_t t, delta; | |
16595 | int i, j; | |
16596 | ||
16597 | /* This test makes some buggy mktime implementations loop. | |
16598 | Give up after 60 seconds; a mktime slower than that | |
16599 | isn't worth using anyway. */ | |
16600 | alarm (60); | |
16601 | ||
16602 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
16603 | continue; | |
16604 | time_t_max--; | |
edfaf76d LK |
16605 | if ((time_t) -1 < 0) |
16606 | for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) | |
16607 | continue; | |
98418dba CW |
16608 | delta = time_t_max / 997; /* a suitable prime number */ |
16609 | for (i = 0; i < N_STRINGS; i++) | |
16610 | { | |
16611 | if (tz_strings[i]) | |
16612 | putenv (tz_strings[i]); | |
503d2be0 | 16613 | |
98418dba | 16614 | for (t = 0; t <= time_t_max - delta; t += delta) |
d6e01aa5 KL |
16615 | if (! mktime_test (t)) |
16616 | return 1; | |
16617 | if (! (mktime_test ((time_t) 1) | |
16618 | && mktime_test ((time_t) (60 * 60)) | |
16619 | && mktime_test ((time_t) (60 * 60 * 24)))) | |
16620 | return 1; | |
98418dba CW |
16621 | |
16622 | for (j = 1; 0 < j; j *= 2) | |
d6e01aa5 KL |
16623 | if (! bigtime_test (j)) |
16624 | return 1; | |
16625 | if (! bigtime_test (j - 1)) | |
16626 | return 1; | |
98418dba | 16627 | } |
d6e01aa5 | 16628 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); |
503d2be0 AS |
16629 | } |
16630 | _ACEOF | |
98418dba | 16631 | rm -f conftest$ac_exeext |
d6e01aa5 KL |
16632 | if { (ac_try="$ac_link" |
16633 | case "(($ac_try" in | |
16634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16635 | *) ac_try_echo=$ac_try;; | |
16636 | esac | |
16637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16638 | (eval "$ac_link") 2>&5 | |
503d2be0 | 16639 | ac_status=$? |
c0d27fcc | 16640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 16641 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d6e01aa5 KL |
16642 | { (case "(($ac_try" in |
16643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16644 | *) ac_try_echo=$ac_try;; | |
16645 | esac | |
16646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16647 | (eval "$ac_try") 2>&5 | |
503d2be0 | 16648 | ac_status=$? |
c0d27fcc | 16649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16650 | (exit $ac_status); }; }; then |
98418dba | 16651 | ac_cv_func_working_mktime=yes |
503d2be0 | 16652 | else |
98418dba CW |
16653 | echo "$as_me: program exited with status $ac_status" >&5 |
16654 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16655 | sed 's/^/| /' conftest.$ac_ext >&5 |
16656 | ||
c0d27fcc | 16657 | ( exit $ac_status ) |
98418dba | 16658 | ac_cv_func_working_mktime=no |
503d2be0 | 16659 | fi |
d6e01aa5 | 16660 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 16661 | fi |
d6e01aa5 KL |
16662 | |
16663 | ||
ba4481b5 | 16664 | fi |
d6e01aa5 KL |
16665 | { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
16666 | echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; } | |
98418dba | 16667 | if test $ac_cv_func_working_mktime = no; then |
d6e01aa5 | 16668 | case " $LIBOBJS " in |
edfaf76d | 16669 | *" mktime.$ac_objext "* ) ;; |
d6e01aa5 KL |
16670 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" |
16671 | ;; | |
edfaf76d LK |
16672 | esac |
16673 | ||
ba4481b5 DL |
16674 | fi |
16675 | ||
98418dba | 16676 | if test "$ac_cv_func_working_mktime" = no; then |
b936fae4 | 16677 | |
c0d27fcc | 16678 | cat >>confdefs.h <<\_ACEOF |
98418dba | 16679 | #define BROKEN_MKTIME 1 |
c0d27fcc | 16680 | _ACEOF |
ba4481b5 | 16681 | |
ba4481b5 | 16682 | fi |
503d2be0 | 16683 | |
98418dba CW |
16684 | ac_have_func=no # yes means we've found a way to get the load average. |
16685 | ||
6bae0ccf DL |
16686 | # Make sure getloadavg.c is where it belongs, at configure-time. |
16687 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || | |
16688 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 | |
16689 | echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;} | |
16690 | { (exit 1); exit 1; }; } | |
16691 | ||
98418dba CW |
16692 | ac_save_LIBS=$LIBS |
16693 | ||
16694 | # Check for getloadavg, but be sure not to touch the cache variable. | |
d6e01aa5 KL |
16695 | ({ echo "$as_me:$LINENO: checking for getloadavg" >&5 |
16696 | echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; } | |
98418dba | 16697 | if test "${ac_cv_func_getloadavg+set}" = set; then |
503d2be0 | 16698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16699 | else |
503d2be0 | 16700 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16701 | /* confdefs.h. */ |
16702 | _ACEOF | |
16703 | cat confdefs.h >>conftest.$ac_ext | |
16704 | cat >>conftest.$ac_ext <<_ACEOF | |
16705 | /* end confdefs.h. */ | |
edfaf76d LK |
16706 | /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg. |
16707 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16708 | #define getloadavg innocuous_getloadavg | |
16709 | ||
98418dba | 16710 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16711 | which can conflict with char getloadavg (); below. |
16712 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16713 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 16714 | |
19650fd6 AS |
16715 | #ifdef __STDC__ |
16716 | # include <limits.h> | |
16717 | #else | |
16718 | # include <assert.h> | |
16719 | #endif | |
edfaf76d LK |
16720 | |
16721 | #undef getloadavg | |
16722 | ||
d6e01aa5 KL |
16723 | /* Override any GCC internal prototype to avoid an error. |
16724 | Use char because int might match the return type of a GCC | |
16725 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
16726 | #ifdef __cplusplus |
16727 | extern "C" | |
16728 | #endif | |
98418dba | 16729 | char getloadavg (); |
98418dba CW |
16730 | /* The GNU C library defines this for functions which it implements |
16731 | to always fail with ENOSYS. Some functions are actually named | |
16732 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 16733 | #if defined __stub_getloadavg || defined __stub___getloadavg |
98418dba | 16734 | choke me |
cd958eb3 MB |
16735 | #endif |
16736 | ||
19650fd6 AS |
16737 | int |
16738 | main () | |
16739 | { | |
d6e01aa5 | 16740 | return getloadavg (); |
503d2be0 AS |
16741 | ; |
16742 | return 0; | |
16743 | } | |
16744 | _ACEOF | |
16745 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
16746 | if { (ac_try="$ac_link" |
16747 | case "(($ac_try" in | |
16748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16749 | *) ac_try_echo=$ac_try;; | |
16750 | esac | |
16751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16752 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16753 | ac_status=$? |
edfaf76d LK |
16754 | grep -v '^ *+' conftest.er1 >conftest.err |
16755 | rm -f conftest.er1 | |
16756 | cat conftest.err >&5 | |
c0d27fcc | 16757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
16758 | (exit $ac_status); } && { |
16759 | test -z "$ac_c_werror_flag" || | |
16760 | test ! -s conftest.err | |
16761 | } && test -s conftest$ac_exeext && | |
16762 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16763 | ac_cv_func_getloadavg=yes |
503d2be0 AS |
16764 | else |
16765 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16766 | sed 's/^/| /' conftest.$ac_ext >&5 |
16767 | ||
d6e01aa5 | 16768 | ac_cv_func_getloadavg=no |
503d2be0 | 16769 | fi |
d6e01aa5 KL |
16770 | |
16771 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 16772 | conftest$ac_exeext conftest.$ac_ext |
ba4481b5 | 16773 | fi |
d6e01aa5 KL |
16774 | { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 |
16775 | echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; } | |
98418dba CW |
16776 | if test $ac_cv_func_getloadavg = yes; then |
16777 | exit 0 | |
16778 | else | |
16779 | exit 1 | |
ba4481b5 | 16780 | fi |
98418dba | 16781 | ) && ac_have_func=yes |
ba4481b5 | 16782 | |
98418dba | 16783 | # On HPUX9, an unprivileged user can get load averages through this function. |
503d2be0 | 16784 | |
98418dba CW |
16785 | for ac_func in pstat_getdynamic |
16786 | do | |
16787 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
d6e01aa5 KL |
16788 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16789 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
16790 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 16791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16792 | else |
503d2be0 | 16793 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16794 | /* confdefs.h. */ |
16795 | _ACEOF | |
16796 | cat confdefs.h >>conftest.$ac_ext | |
16797 | cat >>conftest.$ac_ext <<_ACEOF | |
16798 | /* end confdefs.h. */ | |
edfaf76d LK |
16799 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16800 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16801 | #define $ac_func innocuous_$ac_func | |
16802 | ||
98418dba | 16803 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16804 | which can conflict with char $ac_func (); below. |
16805 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16806 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 16807 | |
19650fd6 AS |
16808 | #ifdef __STDC__ |
16809 | # include <limits.h> | |
16810 | #else | |
16811 | # include <assert.h> | |
16812 | #endif | |
edfaf76d LK |
16813 | |
16814 | #undef $ac_func | |
16815 | ||
d6e01aa5 KL |
16816 | /* Override any GCC internal prototype to avoid an error. |
16817 | Use char because int might match the return type of a GCC | |
16818 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
16819 | #ifdef __cplusplus |
16820 | extern "C" | |
16821 | #endif | |
98418dba | 16822 | char $ac_func (); |
98418dba CW |
16823 | /* The GNU C library defines this for functions which it implements |
16824 | to always fail with ENOSYS. Some functions are actually named | |
16825 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 16826 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 16827 | choke me |
98418dba CW |
16828 | #endif |
16829 | ||
19650fd6 AS |
16830 | int |
16831 | main () | |
16832 | { | |
d6e01aa5 | 16833 | return $ac_func (); |
98418dba CW |
16834 | ; |
16835 | return 0; | |
16836 | } | |
f21fadcc | 16837 | _ACEOF |
98418dba | 16838 | rm -f conftest.$ac_objext conftest$ac_exeext |
d6e01aa5 KL |
16839 | if { (ac_try="$ac_link" |
16840 | case "(($ac_try" in | |
16841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16842 | *) ac_try_echo=$ac_try;; | |
16843 | esac | |
16844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16845 | (eval "$ac_link") 2>conftest.er1 | |
f21fadcc | 16846 | ac_status=$? |
edfaf76d LK |
16847 | grep -v '^ *+' conftest.er1 >conftest.err |
16848 | rm -f conftest.er1 | |
16849 | cat conftest.err >&5 | |
c0d27fcc | 16850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
16851 | (exit $ac_status); } && { |
16852 | test -z "$ac_c_werror_flag" || | |
16853 | test ! -s conftest.err | |
16854 | } && test -s conftest$ac_exeext && | |
16855 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16856 | eval "$as_ac_var=yes" |
f21fadcc JD |
16857 | else |
16858 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16859 | sed 's/^/| /' conftest.$ac_ext >&5 |
16860 | ||
d6e01aa5 | 16861 | eval "$as_ac_var=no" |
f21fadcc | 16862 | fi |
d6e01aa5 KL |
16863 | |
16864 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 16865 | conftest$ac_exeext conftest.$ac_ext |
f21fadcc | 16866 | fi |
d6e01aa5 KL |
16867 | ac_res=`eval echo '${'$as_ac_var'}'` |
16868 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16869 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 16870 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 16871 | cat >>confdefs.h <<_ACEOF |
98418dba | 16872 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16873 | _ACEOF |
98418dba CW |
16874 | |
16875 | fi | |
16876 | done | |
16877 | ||
c0d27fcc | 16878 | |
98418dba CW |
16879 | # Solaris has libkstat which does not require root. |
16880 | ||
d6e01aa5 KL |
16881 | { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 |
16882 | echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; } | |
98418dba | 16883 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then |
f21fadcc JD |
16884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16885 | else | |
16886 | ac_check_lib_save_LIBS=$LIBS | |
98418dba | 16887 | LIBS="-lkstat $LIBS" |
f21fadcc | 16888 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16889 | /* confdefs.h. */ |
16890 | _ACEOF | |
16891 | cat confdefs.h >>conftest.$ac_ext | |
16892 | cat >>conftest.$ac_ext <<_ACEOF | |
16893 | /* end confdefs.h. */ | |
f21fadcc | 16894 | |
d6e01aa5 KL |
16895 | /* Override any GCC internal prototype to avoid an error. |
16896 | Use char because int might match the return type of a GCC | |
16897 | builtin and then its argument prototype would still apply. */ | |
f21fadcc JD |
16898 | #ifdef __cplusplus |
16899 | extern "C" | |
16900 | #endif | |
98418dba | 16901 | char kstat_open (); |
f21fadcc JD |
16902 | int |
16903 | main () | |
16904 | { | |
d6e01aa5 | 16905 | return kstat_open (); |
f21fadcc JD |
16906 | ; |
16907 | return 0; | |
16908 | } | |
16909 | _ACEOF | |
16910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
16911 | if { (ac_try="$ac_link" |
16912 | case "(($ac_try" in | |
16913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16914 | *) ac_try_echo=$ac_try;; | |
16915 | esac | |
16916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16917 | (eval "$ac_link") 2>conftest.er1 | |
f21fadcc | 16918 | ac_status=$? |
edfaf76d LK |
16919 | grep -v '^ *+' conftest.er1 >conftest.err |
16920 | rm -f conftest.er1 | |
16921 | cat conftest.err >&5 | |
c0d27fcc | 16922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
16923 | (exit $ac_status); } && { |
16924 | test -z "$ac_c_werror_flag" || | |
16925 | test ! -s conftest.err | |
16926 | } && test -s conftest$ac_exeext && | |
16927 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16928 | ac_cv_lib_kstat_kstat_open=yes |
f21fadcc JD |
16929 | else |
16930 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16931 | sed 's/^/| /' conftest.$ac_ext >&5 |
16932 | ||
d6e01aa5 | 16933 | ac_cv_lib_kstat_kstat_open=no |
f21fadcc | 16934 | fi |
d6e01aa5 KL |
16935 | |
16936 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 16937 | conftest$ac_exeext conftest.$ac_ext |
f21fadcc JD |
16938 | LIBS=$ac_check_lib_save_LIBS |
16939 | fi | |
d6e01aa5 KL |
16940 | { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 |
16941 | echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; } | |
98418dba | 16942 | if test $ac_cv_lib_kstat_kstat_open = yes; then |
c0d27fcc | 16943 | cat >>confdefs.h <<_ACEOF |
98418dba | 16944 | #define HAVE_LIBKSTAT 1 |
c0d27fcc | 16945 | _ACEOF |
f21fadcc | 16946 | |
98418dba | 16947 | LIBS="-lkstat $LIBS" |
f21fadcc | 16948 | |
f21fadcc JD |
16949 | fi |
16950 | ||
98418dba CW |
16951 | test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes |
16952 | ||
16953 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
16954 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
16955 | # to get the right answer into the cache. | |
16956 | # For kstat on solaris, we need libelf to force the definition of SVR4 below. | |
16957 | if test $ac_have_func = no; then | |
d6e01aa5 KL |
16958 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
16959 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } | |
98418dba | 16960 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
503d2be0 | 16961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16962 | else |
98418dba CW |
16963 | ac_check_lib_save_LIBS=$LIBS |
16964 | LIBS="-lelf $LIBS" | |
16965 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16966 | /* confdefs.h. */ |
16967 | _ACEOF | |
16968 | cat confdefs.h >>conftest.$ac_ext | |
16969 | cat >>conftest.$ac_ext <<_ACEOF | |
16970 | /* end confdefs.h. */ | |
98418dba | 16971 | |
d6e01aa5 KL |
16972 | /* Override any GCC internal prototype to avoid an error. |
16973 | Use char because int might match the return type of a GCC | |
16974 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
16975 | #ifdef __cplusplus |
16976 | extern "C" | |
16977 | #endif | |
98418dba | 16978 | char elf_begin (); |
503d2be0 AS |
16979 | int |
16980 | main () | |
16981 | { | |
d6e01aa5 | 16982 | return elf_begin (); |
503d2be0 AS |
16983 | ; |
16984 | return 0; | |
16985 | } | |
16986 | _ACEOF | |
16987 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
16988 | if { (ac_try="$ac_link" |
16989 | case "(($ac_try" in | |
16990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16991 | *) ac_try_echo=$ac_try;; | |
16992 | esac | |
16993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16994 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16995 | ac_status=$? |
edfaf76d LK |
16996 | grep -v '^ *+' conftest.er1 >conftest.err |
16997 | rm -f conftest.er1 | |
16998 | cat conftest.err >&5 | |
c0d27fcc | 16999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
17000 | (exit $ac_status); } && { |
17001 | test -z "$ac_c_werror_flag" || | |
17002 | test ! -s conftest.err | |
17003 | } && test -s conftest$ac_exeext && | |
17004 | $as_test_x conftest$ac_exeext; then | |
98418dba | 17005 | ac_cv_lib_elf_elf_begin=yes |
ba4481b5 | 17006 | else |
503d2be0 | 17007 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
17008 | sed 's/^/| /' conftest.$ac_ext >&5 |
17009 | ||
d6e01aa5 | 17010 | ac_cv_lib_elf_elf_begin=no |
ba4481b5 | 17011 | fi |
d6e01aa5 KL |
17012 | |
17013 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 17014 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 17015 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 17016 | fi |
d6e01aa5 KL |
17017 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
17018 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } | |
98418dba CW |
17019 | if test $ac_cv_lib_elf_elf_begin = yes; then |
17020 | LIBS="-lelf $LIBS" | |
ba4481b5 DL |
17021 | fi |
17022 | ||
98418dba CW |
17023 | fi |
17024 | if test $ac_have_func = no; then | |
d6e01aa5 KL |
17025 | { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 |
17026 | echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; } | |
98418dba | 17027 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then |
503d2be0 | 17028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17029 | else |
98418dba CW |
17030 | ac_check_lib_save_LIBS=$LIBS |
17031 | LIBS="-lkvm $LIBS" | |
17032 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17033 | /* confdefs.h. */ |
17034 | _ACEOF | |
17035 | cat confdefs.h >>conftest.$ac_ext | |
17036 | cat >>conftest.$ac_ext <<_ACEOF | |
17037 | /* end confdefs.h. */ | |
98418dba | 17038 | |
d6e01aa5 KL |
17039 | /* Override any GCC internal prototype to avoid an error. |
17040 | Use char because int might match the return type of a GCC | |
17041 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
17042 | #ifdef __cplusplus |
17043 | extern "C" | |
17044 | #endif | |
98418dba | 17045 | char kvm_open (); |
503d2be0 AS |
17046 | int |
17047 | main () | |
17048 | { | |
d6e01aa5 | 17049 | return kvm_open (); |
503d2be0 AS |
17050 | ; |
17051 | return 0; | |
17052 | } | |
17053 | _ACEOF | |
17054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
17055 | if { (ac_try="$ac_link" |
17056 | case "(($ac_try" in | |
17057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17058 | *) ac_try_echo=$ac_try;; | |
17059 | esac | |
17060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17061 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 17062 | ac_status=$? |
edfaf76d LK |
17063 | grep -v '^ *+' conftest.er1 >conftest.err |
17064 | rm -f conftest.er1 | |
17065 | cat conftest.err >&5 | |
c0d27fcc | 17066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
17067 | (exit $ac_status); } && { |
17068 | test -z "$ac_c_werror_flag" || | |
17069 | test ! -s conftest.err | |
17070 | } && test -s conftest$ac_exeext && | |
17071 | $as_test_x conftest$ac_exeext; then | |
98418dba | 17072 | ac_cv_lib_kvm_kvm_open=yes |
503d2be0 AS |
17073 | else |
17074 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17075 | sed 's/^/| /' conftest.$ac_ext >&5 |
17076 | ||
d6e01aa5 | 17077 | ac_cv_lib_kvm_kvm_open=no |
503d2be0 | 17078 | fi |
d6e01aa5 KL |
17079 | |
17080 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 17081 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 17082 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 17083 | fi |
d6e01aa5 KL |
17084 | { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 |
17085 | echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; } | |
98418dba CW |
17086 | if test $ac_cv_lib_kvm_kvm_open = yes; then |
17087 | LIBS="-lkvm $LIBS" | |
ba4481b5 DL |
17088 | fi |
17089 | ||
98418dba | 17090 | # Check for the 4.4BSD definition of getloadavg. |
d6e01aa5 KL |
17091 | { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 |
17092 | echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; } | |
98418dba | 17093 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then |
503d2be0 | 17094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17095 | else |
98418dba CW |
17096 | ac_check_lib_save_LIBS=$LIBS |
17097 | LIBS="-lutil $LIBS" | |
17098 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17099 | /* confdefs.h. */ |
17100 | _ACEOF | |
17101 | cat confdefs.h >>conftest.$ac_ext | |
17102 | cat >>conftest.$ac_ext <<_ACEOF | |
17103 | /* end confdefs.h. */ | |
98418dba | 17104 | |
d6e01aa5 KL |
17105 | /* Override any GCC internal prototype to avoid an error. |
17106 | Use char because int might match the return type of a GCC | |
17107 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
17108 | #ifdef __cplusplus |
17109 | extern "C" | |
17110 | #endif | |
98418dba | 17111 | char getloadavg (); |
503d2be0 AS |
17112 | int |
17113 | main () | |
17114 | { | |
d6e01aa5 | 17115 | return getloadavg (); |
503d2be0 AS |
17116 | ; |
17117 | return 0; | |
17118 | } | |
17119 | _ACEOF | |
17120 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
17121 | if { (ac_try="$ac_link" |
17122 | case "(($ac_try" in | |
17123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17124 | *) ac_try_echo=$ac_try;; | |
17125 | esac | |
17126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17127 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 17128 | ac_status=$? |
edfaf76d LK |
17129 | grep -v '^ *+' conftest.er1 >conftest.err |
17130 | rm -f conftest.er1 | |
17131 | cat conftest.err >&5 | |
c0d27fcc | 17132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
17133 | (exit $ac_status); } && { |
17134 | test -z "$ac_c_werror_flag" || | |
17135 | test ! -s conftest.err | |
17136 | } && test -s conftest$ac_exeext && | |
17137 | $as_test_x conftest$ac_exeext; then | |
35996d22 AS |
17138 | ac_cv_lib_util_getloadavg=yes |
17139 | else | |
503d2be0 | 17140 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
17141 | sed 's/^/| /' conftest.$ac_ext >&5 |
17142 | ||
d6e01aa5 | 17143 | ac_cv_lib_util_getloadavg=no |
ba4481b5 | 17144 | fi |
d6e01aa5 KL |
17145 | |
17146 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 17147 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
17148 | LIBS=$ac_check_lib_save_LIBS |
17149 | fi | |
d6e01aa5 KL |
17150 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 |
17151 | echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; } | |
98418dba CW |
17152 | if test $ac_cv_lib_util_getloadavg = yes; then |
17153 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
ba4481b5 | 17154 | fi |
503d2be0 | 17155 | |
98418dba | 17156 | fi |
ba4481b5 | 17157 | |
98418dba CW |
17158 | if test $ac_have_func = no; then |
17159 | # There is a commonly available library for RS/6000 AIX. | |
17160 | # Since it is not a standard part of AIX, it might be installed locally. | |
17161 | ac_getloadavg_LIBS=$LIBS | |
17162 | LIBS="-L/usr/local/lib $LIBS" | |
d6e01aa5 KL |
17163 | { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 |
17164 | echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; } | |
98418dba | 17165 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then |
503d2be0 | 17166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17167 | else |
98418dba CW |
17168 | ac_check_lib_save_LIBS=$LIBS |
17169 | LIBS="-lgetloadavg $LIBS" | |
17170 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17171 | /* confdefs.h. */ |
17172 | _ACEOF | |
17173 | cat confdefs.h >>conftest.$ac_ext | |
17174 | cat >>conftest.$ac_ext <<_ACEOF | |
17175 | /* end confdefs.h. */ | |
ba4481b5 | 17176 | |
d6e01aa5 KL |
17177 | /* Override any GCC internal prototype to avoid an error. |
17178 | Use char because int might match the return type of a GCC | |
17179 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
17180 | #ifdef __cplusplus |
17181 | extern "C" | |
17182 | #endif | |
98418dba | 17183 | char getloadavg (); |
98418dba CW |
17184 | int |
17185 | main () | |
17186 | { | |
d6e01aa5 | 17187 | return getloadavg (); |
98418dba CW |
17188 | ; |
17189 | return 0; | |
17190 | } | |
503d2be0 | 17191 | _ACEOF |
98418dba | 17192 | rm -f conftest.$ac_objext conftest$ac_exeext |
d6e01aa5 KL |
17193 | if { (ac_try="$ac_link" |
17194 | case "(($ac_try" in | |
17195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17196 | *) ac_try_echo=$ac_try;; | |
17197 | esac | |
17198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17199 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 17200 | ac_status=$? |
edfaf76d LK |
17201 | grep -v '^ *+' conftest.er1 >conftest.err |
17202 | rm -f conftest.er1 | |
17203 | cat conftest.err >&5 | |
c0d27fcc | 17204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
17205 | (exit $ac_status); } && { |
17206 | test -z "$ac_c_werror_flag" || | |
17207 | test ! -s conftest.err | |
17208 | } && test -s conftest$ac_exeext && | |
17209 | $as_test_x conftest$ac_exeext; then | |
98418dba | 17210 | ac_cv_lib_getloadavg_getloadavg=yes |
ba4481b5 | 17211 | else |
98418dba | 17212 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
17213 | sed 's/^/| /' conftest.$ac_ext >&5 |
17214 | ||
d6e01aa5 | 17215 | ac_cv_lib_getloadavg_getloadavg=no |
98418dba | 17216 | fi |
d6e01aa5 KL |
17217 | |
17218 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 17219 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
17220 | LIBS=$ac_check_lib_save_LIBS |
17221 | fi | |
d6e01aa5 KL |
17222 | { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
17223 | echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; } | |
98418dba CW |
17224 | if test $ac_cv_lib_getloadavg_getloadavg = yes; then |
17225 | LIBS="-lgetloadavg $LIBS" | |
17226 | else | |
17227 | LIBS=$ac_getloadavg_LIBS | |
ba4481b5 | 17228 | fi |
ba4481b5 DL |
17229 | |
17230 | fi | |
98418dba CW |
17231 | |
17232 | # Make sure it is really in the library, if we think we found it, | |
17233 | # otherwise set up the replacement function. | |
17234 | ||
17235 | for ac_func in getloadavg | |
17236 | do | |
17237 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
d6e01aa5 KL |
17238 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17239 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
17240 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 17241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17242 | else |
503d2be0 | 17243 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17244 | /* confdefs.h. */ |
17245 | _ACEOF | |
17246 | cat confdefs.h >>conftest.$ac_ext | |
17247 | cat >>conftest.$ac_ext <<_ACEOF | |
17248 | /* end confdefs.h. */ | |
edfaf76d LK |
17249 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17250 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17251 | #define $ac_func innocuous_$ac_func | |
17252 | ||
ba4481b5 | 17253 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
17254 | which can conflict with char $ac_func (); below. |
17255 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17256 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 17257 | |
19650fd6 AS |
17258 | #ifdef __STDC__ |
17259 | # include <limits.h> | |
17260 | #else | |
17261 | # include <assert.h> | |
17262 | #endif | |
edfaf76d LK |
17263 | |
17264 | #undef $ac_func | |
17265 | ||
d6e01aa5 KL |
17266 | /* Override any GCC internal prototype to avoid an error. |
17267 | Use char because int might match the return type of a GCC | |
17268 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
17269 | #ifdef __cplusplus |
17270 | extern "C" | |
17271 | #endif | |
503d2be0 | 17272 | char $ac_func (); |
ba4481b5 DL |
17273 | /* The GNU C library defines this for functions which it implements |
17274 | to always fail with ENOSYS. Some functions are actually named | |
17275 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 17276 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ba4481b5 | 17277 | choke me |
cd958eb3 MB |
17278 | #endif |
17279 | ||
19650fd6 AS |
17280 | int |
17281 | main () | |
17282 | { | |
d6e01aa5 | 17283 | return $ac_func (); |
503d2be0 AS |
17284 | ; |
17285 | return 0; | |
17286 | } | |
17287 | _ACEOF | |
17288 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
17289 | if { (ac_try="$ac_link" |
17290 | case "(($ac_try" in | |
17291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17292 | *) ac_try_echo=$ac_try;; | |
17293 | esac | |
17294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17295 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 17296 | ac_status=$? |
edfaf76d LK |
17297 | grep -v '^ *+' conftest.er1 >conftest.err |
17298 | rm -f conftest.er1 | |
17299 | cat conftest.err >&5 | |
c0d27fcc | 17300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
17301 | (exit $ac_status); } && { |
17302 | test -z "$ac_c_werror_flag" || | |
17303 | test ! -s conftest.err | |
17304 | } && test -s conftest$ac_exeext && | |
17305 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
17306 | eval "$as_ac_var=yes" |
17307 | else | |
17308 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17309 | sed 's/^/| /' conftest.$ac_ext >&5 |
17310 | ||
d6e01aa5 | 17311 | eval "$as_ac_var=no" |
503d2be0 | 17312 | fi |
d6e01aa5 KL |
17313 | |
17314 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 17315 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 17316 | fi |
d6e01aa5 KL |
17317 | ac_res=`eval echo '${'$as_ac_var'}'` |
17318 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17319 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 17320 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 17321 | cat >>confdefs.h <<_ACEOF |
98418dba | 17322 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 17323 | _ACEOF |
503d2be0 | 17324 | |
98418dba | 17325 | else |
d6e01aa5 | 17326 | case " $LIBOBJS " in |
edfaf76d | 17327 | *" getloadavg.$ac_objext "* ) ;; |
d6e01aa5 KL |
17328 | *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" |
17329 | ;; | |
edfaf76d LK |
17330 | esac |
17331 | ||
ba4481b5 | 17332 | |
c0d27fcc | 17333 | cat >>confdefs.h <<\_ACEOF |
98418dba | 17334 | #define C_GETLOADAVG 1 |
c0d27fcc | 17335 | _ACEOF |
ba4481b5 | 17336 | |
98418dba CW |
17337 | # Figure out what our getloadavg.c needs. |
17338 | ac_have_func=no | |
c0d27fcc | 17339 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
d6e01aa5 KL |
17340 | { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 |
17341 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; } | |
98418dba | 17342 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
503d2be0 | 17343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 17344 | fi |
d6e01aa5 KL |
17345 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
17346 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; } | |
ba4481b5 | 17347 | else |
c0d27fcc | 17348 | # Is the header compilable? |
d6e01aa5 KL |
17349 | { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 |
17350 | echo $ECHO_N "checking sys/dg_sys_info.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/dg_sys_info.h> | |
17359 | _ACEOF | |
17360 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
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 |
d6e01aa5 KL |
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 | ||
d6e01aa5 | 17382 | ac_header_compiler=no |
c0d27fcc | 17383 | fi |
d6e01aa5 KL |
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? | |
d6e01aa5 KL |
17390 | { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 |
17391 | echo $ECHO_N "checking sys/dg_sys_info.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/dg_sys_info.h> |
17399 | _ACEOF | |
d6e01aa5 KL |
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 |
d6e01aa5 KL |
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 |
ba4481b5 | 17422 | fi |
d6e01aa5 | 17423 | |
98418dba | 17424 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
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/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
17432 | echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
17433 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5 |
17434 | echo "$as_me: WARNING: sys/dg_sys_info.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/dg_sys_info.h: present but cannot be compiled" >&5 |
17439 | echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
17440 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 |
17441 | echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
17442 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5 | |
17443 | echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;} | |
17444 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5 | |
17445 | echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17446 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17447 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
17448 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5 |
17449 | echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 17450 | |
19650fd6 | 17451 | ;; |
c0d27fcc | 17452 | esac |
d6e01aa5 KL |
17453 | { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 |
17454 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
17455 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
17456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17457 | else | |
17458 | ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
98418dba | 17459 | fi |
d6e01aa5 KL |
17460 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
17461 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; } | |
c0d27fcc MR |
17462 | |
17463 | fi | |
98418dba CW |
17464 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then |
17465 | ac_have_func=yes | |
ba4481b5 | 17466 | |
c0d27fcc | 17467 | cat >>confdefs.h <<\_ACEOF |
98418dba | 17468 | #define DGUX 1 |
c0d27fcc MR |
17469 | _ACEOF |
17470 | ||
503d2be0 | 17471 | |
d6e01aa5 KL |
17472 | { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 |
17473 | echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; } | |
98418dba | 17474 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then |
503d2be0 | 17475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17476 | else |
503d2be0 | 17477 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 17478 | LIBS="-ldgc $LIBS" |
503d2be0 | 17479 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17480 | /* confdefs.h. */ |
17481 | _ACEOF | |
17482 | cat confdefs.h >>conftest.$ac_ext | |
17483 | cat >>conftest.$ac_ext <<_ACEOF | |
17484 | /* end confdefs.h. */ | |
503d2be0 | 17485 | |
d6e01aa5 KL |
17486 | /* Override any GCC internal prototype to avoid an error. |
17487 | Use char because int might match the return type of a GCC | |
17488 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
17489 | #ifdef __cplusplus |
17490 | extern "C" | |
17491 | #endif | |
98418dba | 17492 | char dg_sys_info (); |
503d2be0 AS |
17493 | int |
17494 | main () | |
17495 | { | |
d6e01aa5 | 17496 | return dg_sys_info (); |
503d2be0 AS |
17497 | ; |
17498 | return 0; | |
17499 | } | |
17500 | _ACEOF | |
17501 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
17502 | if { (ac_try="$ac_link" |
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_link") 2>conftest.er1 | |
503d2be0 | 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 |
d6e01aa5 KL |
17514 | (exit $ac_status); } && { |
17515 | test -z "$ac_c_werror_flag" || | |
17516 | test ! -s conftest.err | |
17517 | } && test -s conftest$ac_exeext && | |
17518 | $as_test_x conftest$ac_exeext; then | |
98418dba | 17519 | ac_cv_lib_dgc_dg_sys_info=yes |
503d2be0 AS |
17520 | else |
17521 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17522 | sed 's/^/| /' conftest.$ac_ext >&5 |
17523 | ||
d6e01aa5 | 17524 | ac_cv_lib_dgc_dg_sys_info=no |
503d2be0 | 17525 | fi |
d6e01aa5 KL |
17526 | |
17527 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 17528 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
17529 | LIBS=$ac_check_lib_save_LIBS |
17530 | fi | |
d6e01aa5 KL |
17531 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
17532 | echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; } | |
98418dba | 17533 | if test $ac_cv_lib_dgc_dg_sys_info = yes; then |
c0d27fcc | 17534 | cat >>confdefs.h <<_ACEOF |
98418dba | 17535 | #define HAVE_LIBDGC 1 |
c0d27fcc | 17536 | _ACEOF |
ba4481b5 | 17537 | |
98418dba | 17538 | LIBS="-ldgc $LIBS" |
ba4481b5 | 17539 | |
ba4481b5 DL |
17540 | fi |
17541 | ||
98418dba | 17542 | fi |
503d2be0 | 17543 | |
c0d27fcc MR |
17544 | |
17545 | ||
17546 | if test "${ac_cv_header_locale_h+set}" = set; then | |
d6e01aa5 KL |
17547 | { echo "$as_me:$LINENO: checking for locale.h" >&5 |
17548 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; } | |
98418dba | 17549 | if test "${ac_cv_header_locale_h+set}" = set; then |
503d2be0 | 17550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 17551 | fi |
d6e01aa5 KL |
17552 | { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 |
17553 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6; } | |
503d2be0 | 17554 | else |
c0d27fcc | 17555 | # Is the header compilable? |
d6e01aa5 KL |
17556 | { echo "$as_me:$LINENO: checking locale.h usability" >&5 |
17557 | echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 17558 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17559 | /* confdefs.h. */ |
17560 | _ACEOF | |
17561 | cat confdefs.h >>conftest.$ac_ext | |
17562 | cat >>conftest.$ac_ext <<_ACEOF | |
17563 | /* end confdefs.h. */ | |
c0d27fcc MR |
17564 | $ac_includes_default |
17565 | #include <locale.h> | |
17566 | _ACEOF | |
17567 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
17568 | if { (ac_try="$ac_compile" |
17569 | case "(($ac_try" in | |
17570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17571 | *) ac_try_echo=$ac_try;; | |
17572 | esac | |
17573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17574 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 17575 | ac_status=$? |
edfaf76d LK |
17576 | grep -v '^ *+' conftest.er1 >conftest.err |
17577 | rm -f conftest.er1 | |
17578 | cat conftest.err >&5 | |
c0d27fcc | 17579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
17580 | (exit $ac_status); } && { |
17581 | test -z "$ac_c_werror_flag" || | |
17582 | test ! -s conftest.err | |
17583 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
17584 | ac_header_compiler=yes |
17585 | else | |
17586 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17587 | sed 's/^/| /' conftest.$ac_ext >&5 |
17588 | ||
d6e01aa5 | 17589 | ac_header_compiler=no |
c0d27fcc | 17590 | fi |
d6e01aa5 KL |
17591 | |
17592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17593 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17594 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
17595 | |
17596 | # Is the header present? | |
d6e01aa5 KL |
17597 | { echo "$as_me:$LINENO: checking locale.h presence" >&5 |
17598 | echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 17599 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17600 | /* confdefs.h. */ |
17601 | _ACEOF | |
17602 | cat confdefs.h >>conftest.$ac_ext | |
17603 | cat >>conftest.$ac_ext <<_ACEOF | |
17604 | /* end confdefs.h. */ | |
98418dba | 17605 | #include <locale.h> |
503d2be0 | 17606 | _ACEOF |
d6e01aa5 KL |
17607 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17608 | case "(($ac_try" in | |
17609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17610 | *) ac_try_echo=$ac_try;; | |
17611 | esac | |
17612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17613 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 17614 | ac_status=$? |
6bae0ccf | 17615 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
17616 | rm -f conftest.er1 |
17617 | cat conftest.err >&5 | |
c0d27fcc | 17618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
17619 | (exit $ac_status); } >/dev/null && { |
17620 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17621 | test ! -s conftest.err | |
17622 | }; then | |
c0d27fcc | 17623 | ac_header_preproc=yes |
98418dba CW |
17624 | else |
17625 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17626 | sed 's/^/| /' conftest.$ac_ext >&5 |
17627 | ||
c0d27fcc | 17628 | ac_header_preproc=no |
ba4481b5 | 17629 | fi |
d6e01aa5 | 17630 | |
98418dba | 17631 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
17632 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17633 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
17634 | |
17635 | # So? What about this header? | |
edfaf76d LK |
17636 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17637 | yes:no: ) | |
c0d27fcc MR |
17638 | { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
17639 | echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
17640 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 |
17641 | echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} | |
17642 | ac_header_preproc=yes | |
19650fd6 | 17643 | ;; |
edfaf76d | 17644 | no:yes:* ) |
c0d27fcc MR |
17645 | { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 |
17646 | echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
17647 | { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 |
17648 | echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
17649 | { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 | |
17650 | echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} | |
17651 | { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 | |
17652 | echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17653 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17654 | echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
17655 | { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 |
17656 | echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 17657 | |
19650fd6 | 17658 | ;; |
c0d27fcc | 17659 | esac |
d6e01aa5 KL |
17660 | { echo "$as_me:$LINENO: checking for locale.h" >&5 |
17661 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
17662 | if test "${ac_cv_header_locale_h+set}" = set; then |
17663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17664 | else | |
17665 | ac_cv_header_locale_h=$ac_header_preproc | |
ba4481b5 | 17666 | fi |
d6e01aa5 KL |
17667 | { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 |
17668 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6; } | |
98418dba | 17669 | |
c0d27fcc MR |
17670 | fi |
17671 | ||
17672 | ||
17673 | ||
98418dba | 17674 | for ac_func in setlocale |
ba4481b5 | 17675 | do |
503d2be0 | 17676 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
d6e01aa5 KL |
17677 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17678 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
17679 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 17680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17681 | else |
503d2be0 | 17682 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17683 | /* confdefs.h. */ |
17684 | _ACEOF | |
17685 | cat confdefs.h >>conftest.$ac_ext | |
17686 | cat >>conftest.$ac_ext <<_ACEOF | |
17687 | /* end confdefs.h. */ | |
edfaf76d LK |
17688 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17689 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17690 | #define $ac_func innocuous_$ac_func | |
17691 | ||
ba4481b5 | 17692 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
17693 | which can conflict with char $ac_func (); below. |
17694 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17695 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 17696 | |
19650fd6 AS |
17697 | #ifdef __STDC__ |
17698 | # include <limits.h> | |
17699 | #else | |
17700 | # include <assert.h> | |
17701 | #endif | |
edfaf76d LK |
17702 | |
17703 | #undef $ac_func | |
17704 | ||
d6e01aa5 KL |
17705 | /* Override any GCC internal prototype to avoid an error. |
17706 | Use char because int might match the return type of a GCC | |
17707 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
17708 | #ifdef __cplusplus |
17709 | extern "C" | |
17710 | #endif | |
503d2be0 | 17711 | char $ac_func (); |
ba4481b5 DL |
17712 | /* The GNU C library defines this for functions which it implements |
17713 | to always fail with ENOSYS. Some functions are actually named | |
17714 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 17715 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ba4481b5 | 17716 | choke me |
ba4481b5 DL |
17717 | #endif |
17718 | ||
19650fd6 AS |
17719 | int |
17720 | main () | |
17721 | { | |
d6e01aa5 | 17722 | return $ac_func (); |
503d2be0 AS |
17723 | ; |
17724 | return 0; | |
17725 | } | |
17726 | _ACEOF | |
17727 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
17728 | if { (ac_try="$ac_link" |
17729 | case "(($ac_try" in | |
17730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17731 | *) ac_try_echo=$ac_try;; | |
17732 | esac | |
17733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17734 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 17735 | ac_status=$? |
edfaf76d LK |
17736 | grep -v '^ *+' conftest.er1 >conftest.err |
17737 | rm -f conftest.er1 | |
17738 | cat conftest.err >&5 | |
c0d27fcc | 17739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
17740 | (exit $ac_status); } && { |
17741 | test -z "$ac_c_werror_flag" || | |
17742 | test ! -s conftest.err | |
17743 | } && test -s conftest$ac_exeext && | |
17744 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
17745 | eval "$as_ac_var=yes" |
17746 | else | |
17747 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17748 | sed 's/^/| /' conftest.$ac_ext >&5 |
17749 | ||
d6e01aa5 | 17750 | eval "$as_ac_var=no" |
503d2be0 | 17751 | fi |
d6e01aa5 KL |
17752 | |
17753 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 17754 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 17755 | fi |
d6e01aa5 KL |
17756 | ac_res=`eval echo '${'$as_ac_var'}'` |
17757 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17758 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 17759 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 17760 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17761 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 17762 | _ACEOF |
ba4481b5 | 17763 | |
ba4481b5 DL |
17764 | fi |
17765 | done | |
17766 | ||
c0d27fcc | 17767 | |
98418dba CW |
17768 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
17769 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
17770 | # Irix 4.0.5F has the header but not the library. | |
17771 | if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
17772 | ac_have_func=yes | |
17773 | ||
c0d27fcc | 17774 | cat >>confdefs.h <<\_ACEOF |
98418dba | 17775 | #define SVR4 1 |
c0d27fcc | 17776 | _ACEOF |
98418dba CW |
17777 | |
17778 | fi | |
17779 | ||
17780 | if test $ac_have_func = no; then | |
c0d27fcc | 17781 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
d6e01aa5 KL |
17782 | { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 |
17783 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; } | |
98418dba | 17784 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
503d2be0 | 17785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 17786 | fi |
d6e01aa5 KL |
17787 | { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
17788 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; } | |
98418dba | 17789 | else |
c0d27fcc | 17790 | # Is the header compilable? |
d6e01aa5 KL |
17791 | { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 |
17792 | echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 17793 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17794 | /* confdefs.h. */ |
17795 | _ACEOF | |
17796 | cat confdefs.h >>conftest.$ac_ext | |
17797 | cat >>conftest.$ac_ext <<_ACEOF | |
17798 | /* end confdefs.h. */ | |
c0d27fcc MR |
17799 | $ac_includes_default |
17800 | #include <inq_stats/cpustats.h> | |
17801 | _ACEOF | |
17802 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
17803 | if { (ac_try="$ac_compile" |
17804 | case "(($ac_try" in | |
17805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17806 | *) ac_try_echo=$ac_try;; | |
17807 | esac | |
17808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17809 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 17810 | ac_status=$? |
edfaf76d LK |
17811 | grep -v '^ *+' conftest.er1 >conftest.err |
17812 | rm -f conftest.er1 | |
17813 | cat conftest.err >&5 | |
c0d27fcc | 17814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
17815 | (exit $ac_status); } && { |
17816 | test -z "$ac_c_werror_flag" || | |
17817 | test ! -s conftest.err | |
17818 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
17819 | ac_header_compiler=yes |
17820 | else | |
17821 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17822 | sed 's/^/| /' conftest.$ac_ext >&5 |
17823 | ||
d6e01aa5 | 17824 | ac_header_compiler=no |
c0d27fcc | 17825 | fi |
d6e01aa5 KL |
17826 | |
17827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17828 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17829 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
17830 | |
17831 | # Is the header present? | |
d6e01aa5 KL |
17832 | { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 |
17833 | echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 17834 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17835 | /* confdefs.h. */ |
17836 | _ACEOF | |
17837 | cat confdefs.h >>conftest.$ac_ext | |
17838 | cat >>conftest.$ac_ext <<_ACEOF | |
17839 | /* end confdefs.h. */ | |
98418dba | 17840 | #include <inq_stats/cpustats.h> |
503d2be0 | 17841 | _ACEOF |
d6e01aa5 KL |
17842 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17843 | case "(($ac_try" in | |
17844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17845 | *) ac_try_echo=$ac_try;; | |
17846 | esac | |
17847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17848 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 17849 | ac_status=$? |
6bae0ccf | 17850 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
17851 | rm -f conftest.er1 |
17852 | cat conftest.err >&5 | |
c0d27fcc | 17853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
17854 | (exit $ac_status); } >/dev/null && { |
17855 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17856 | test ! -s conftest.err | |
17857 | }; then | |
c0d27fcc | 17858 | ac_header_preproc=yes |
503d2be0 AS |
17859 | else |
17860 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17861 | sed 's/^/| /' conftest.$ac_ext >&5 |
17862 | ||
c0d27fcc | 17863 | ac_header_preproc=no |
ba4481b5 | 17864 | fi |
d6e01aa5 | 17865 | |
503d2be0 | 17866 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
17867 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17868 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
17869 | |
17870 | # So? What about this header? | |
edfaf76d LK |
17871 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17872 | yes:no: ) | |
c0d27fcc MR |
17873 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
17874 | echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
17875 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5 |
17876 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;} | |
17877 | ac_header_preproc=yes | |
19650fd6 | 17878 | ;; |
edfaf76d | 17879 | no:yes:* ) |
c0d27fcc MR |
17880 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 |
17881 | echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
17882 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 |
17883 | echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
17884 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5 | |
17885 | echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;} | |
17886 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
17887 | echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17888 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17889 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
17890 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5 |
17891 | echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 17892 | |
19650fd6 | 17893 | ;; |
c0d27fcc | 17894 | esac |
d6e01aa5 KL |
17895 | { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 |
17896 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
17897 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
17898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17899 | else | |
17900 | ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
ba4481b5 | 17901 | fi |
d6e01aa5 KL |
17902 | { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
17903 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; } | |
c0d27fcc MR |
17904 | |
17905 | fi | |
98418dba CW |
17906 | if test $ac_cv_header_inq_stats_cpustats_h = yes; then |
17907 | ac_have_func=yes | |
ba4481b5 | 17908 | |
c0d27fcc | 17909 | cat >>confdefs.h <<\_ACEOF |
98418dba | 17910 | #define UMAX 1 |
c0d27fcc | 17911 | _ACEOF |
98418dba | 17912 | |
c0d27fcc MR |
17913 | |
17914 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 17915 | #define UMAX4_3 1 |
c0d27fcc | 17916 | _ACEOF |
98418dba CW |
17917 | |
17918 | fi | |
17919 | ||
c0d27fcc | 17920 | |
98418dba CW |
17921 | fi |
17922 | ||
17923 | if test $ac_have_func = no; then | |
c0d27fcc | 17924 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
d6e01aa5 KL |
17925 | { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 |
17926 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; } | |
98418dba | 17927 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
503d2be0 | 17928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 17929 | fi |
d6e01aa5 KL |
17930 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 |
17931 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; } | |
503d2be0 | 17932 | else |
c0d27fcc | 17933 | # Is the header compilable? |
d6e01aa5 KL |
17934 | { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 |
17935 | echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 17936 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17937 | /* confdefs.h. */ |
17938 | _ACEOF | |
17939 | cat confdefs.h >>conftest.$ac_ext | |
17940 | cat >>conftest.$ac_ext <<_ACEOF | |
17941 | /* end confdefs.h. */ | |
c0d27fcc MR |
17942 | $ac_includes_default |
17943 | #include <sys/cpustats.h> | |
17944 | _ACEOF | |
17945 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
17946 | if { (ac_try="$ac_compile" |
17947 | case "(($ac_try" in | |
17948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17949 | *) ac_try_echo=$ac_try;; | |
17950 | esac | |
17951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17952 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 17953 | ac_status=$? |
edfaf76d LK |
17954 | grep -v '^ *+' conftest.er1 >conftest.err |
17955 | rm -f conftest.er1 | |
17956 | cat conftest.err >&5 | |
c0d27fcc | 17957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
17958 | (exit $ac_status); } && { |
17959 | test -z "$ac_c_werror_flag" || | |
17960 | test ! -s conftest.err | |
17961 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
17962 | ac_header_compiler=yes |
17963 | else | |
17964 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17965 | sed 's/^/| /' conftest.$ac_ext >&5 |
17966 | ||
d6e01aa5 | 17967 | ac_header_compiler=no |
c0d27fcc | 17968 | fi |
d6e01aa5 KL |
17969 | |
17970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17971 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17972 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
17973 | |
17974 | # Is the header present? | |
d6e01aa5 KL |
17975 | { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 |
17976 | echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 17977 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17978 | /* confdefs.h. */ |
17979 | _ACEOF | |
17980 | cat confdefs.h >>conftest.$ac_ext | |
17981 | cat >>conftest.$ac_ext <<_ACEOF | |
17982 | /* end confdefs.h. */ | |
98418dba CW |
17983 | #include <sys/cpustats.h> |
17984 | _ACEOF | |
d6e01aa5 KL |
17985 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17986 | case "(($ac_try" in | |
17987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17988 | *) ac_try_echo=$ac_try;; | |
17989 | esac | |
17990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17991 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 17992 | ac_status=$? |
6bae0ccf | 17993 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
17994 | rm -f conftest.er1 |
17995 | cat conftest.err >&5 | |
c0d27fcc | 17996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
17997 | (exit $ac_status); } >/dev/null && { |
17998 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17999 | test ! -s conftest.err | |
18000 | }; then | |
c0d27fcc | 18001 | ac_header_preproc=yes |
98418dba CW |
18002 | else |
18003 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18004 | sed 's/^/| /' conftest.$ac_ext >&5 |
18005 | ||
c0d27fcc | 18006 | ac_header_preproc=no |
98418dba | 18007 | fi |
d6e01aa5 | 18008 | |
98418dba | 18009 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
18010 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18011 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
18012 | |
18013 | # So? What about this header? | |
edfaf76d LK |
18014 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18015 | yes:no: ) | |
c0d27fcc MR |
18016 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
18017 | echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
18018 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5 |
18019 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;} | |
18020 | ac_header_preproc=yes | |
19650fd6 | 18021 | ;; |
edfaf76d | 18022 | no:yes:* ) |
c0d27fcc MR |
18023 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 |
18024 | echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
18025 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 |
18026 | echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
18027 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5 | |
18028 | echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;} | |
18029 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
18030 | echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18031 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18032 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
18033 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5 |
18034 | echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 18035 | |
19650fd6 | 18036 | ;; |
c0d27fcc | 18037 | esac |
d6e01aa5 KL |
18038 | { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 |
18039 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
18040 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
18041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18042 | else | |
18043 | ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
98418dba | 18044 | fi |
d6e01aa5 KL |
18045 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 |
18046 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; } | |
c0d27fcc MR |
18047 | |
18048 | fi | |
98418dba | 18049 | if test $ac_cv_header_sys_cpustats_h = yes; then |
c0d27fcc | 18050 | ac_have_func=yes; cat >>confdefs.h <<\_ACEOF |
98418dba | 18051 | #define UMAX 1 |
c0d27fcc | 18052 | _ACEOF |
ba4481b5 | 18053 | |
98418dba CW |
18054 | fi |
18055 | ||
c0d27fcc | 18056 | |
98418dba CW |
18057 | fi |
18058 | ||
18059 | if test $ac_have_func = no; then | |
18060 | ||
18061 | for ac_header in mach/mach.h | |
2c9dccc9 PJ |
18062 | do |
18063 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
18064 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
18065 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18066 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18067 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
2c9dccc9 | 18068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 18069 | fi |
d6e01aa5 KL |
18070 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18071 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18072 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 18073 | else |
c0d27fcc | 18074 | # Is the header compilable? |
d6e01aa5 KL |
18075 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
18076 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 18077 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18078 | /* confdefs.h. */ |
18079 | _ACEOF | |
18080 | cat confdefs.h >>conftest.$ac_ext | |
18081 | cat >>conftest.$ac_ext <<_ACEOF | |
18082 | /* end confdefs.h. */ | |
c0d27fcc MR |
18083 | $ac_includes_default |
18084 | #include <$ac_header> | |
18085 | _ACEOF | |
18086 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
18087 | if { (ac_try="$ac_compile" |
18088 | case "(($ac_try" in | |
18089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18090 | *) ac_try_echo=$ac_try;; | |
18091 | esac | |
18092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18093 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 18094 | ac_status=$? |
edfaf76d LK |
18095 | grep -v '^ *+' conftest.er1 >conftest.err |
18096 | rm -f conftest.er1 | |
18097 | cat conftest.err >&5 | |
c0d27fcc | 18098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
18099 | (exit $ac_status); } && { |
18100 | test -z "$ac_c_werror_flag" || | |
18101 | test ! -s conftest.err | |
18102 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
18103 | ac_header_compiler=yes |
18104 | else | |
18105 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18106 | sed 's/^/| /' conftest.$ac_ext >&5 |
18107 | ||
d6e01aa5 | 18108 | ac_header_compiler=no |
c0d27fcc | 18109 | fi |
d6e01aa5 KL |
18110 | |
18111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18112 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18113 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
18114 | |
18115 | # Is the header present? | |
d6e01aa5 KL |
18116 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
18117 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 18118 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18119 | /* confdefs.h. */ |
18120 | _ACEOF | |
18121 | cat confdefs.h >>conftest.$ac_ext | |
18122 | cat >>conftest.$ac_ext <<_ACEOF | |
18123 | /* end confdefs.h. */ | |
2c9dccc9 PJ |
18124 | #include <$ac_header> |
18125 | _ACEOF | |
d6e01aa5 KL |
18126 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
18127 | case "(($ac_try" in | |
18128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18129 | *) ac_try_echo=$ac_try;; | |
18130 | esac | |
18131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18132 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
2c9dccc9 | 18133 | ac_status=$? |
6bae0ccf | 18134 | grep -v '^ *+' conftest.er1 >conftest.err |
2c9dccc9 PJ |
18135 | rm -f conftest.er1 |
18136 | cat conftest.err >&5 | |
c0d27fcc | 18137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
18138 | (exit $ac_status); } >/dev/null && { |
18139 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
18140 | test ! -s conftest.err | |
18141 | }; then | |
c0d27fcc MR |
18142 | ac_header_preproc=yes |
18143 | else | |
18144 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18145 | sed 's/^/| /' conftest.$ac_ext >&5 |
18146 | ||
c0d27fcc MR |
18147 | ac_header_preproc=no |
18148 | fi | |
d6e01aa5 | 18149 | |
c0d27fcc | 18150 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
18151 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18152 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
18153 | |
18154 | # So? What about this header? | |
edfaf76d LK |
18155 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18156 | yes:no: ) | |
c0d27fcc MR |
18157 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18158 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
18159 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18160 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18161 | ac_header_preproc=yes | |
19650fd6 | 18162 | ;; |
edfaf76d | 18163 | no:yes:* ) |
c0d27fcc MR |
18164 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18165 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
18166 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18167 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18168 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18169 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18170 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18171 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18172 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18173 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
18174 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18175 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 18176 | |
19650fd6 | 18177 | ;; |
c0d27fcc | 18178 | esac |
d6e01aa5 KL |
18179 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
18180 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18181 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
18182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18183 | else | |
edfaf76d | 18184 | eval "$as_ac_Header=\$ac_header_preproc" |
c0d27fcc | 18185 | fi |
d6e01aa5 KL |
18186 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18187 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18188 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
18189 | |
18190 | fi | |
18191 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18192 | cat >>confdefs.h <<_ACEOF | |
18193 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18194 | _ACEOF | |
18195 | ||
18196 | fi | |
18197 | ||
18198 | done | |
18199 | ||
18200 | fi | |
18201 | ||
18202 | ||
18203 | for ac_header in nlist.h | |
18204 | do | |
18205 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
18206 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
18207 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18208 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18209 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
18210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18211 | fi | |
d6e01aa5 KL |
18212 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18213 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18214 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
18215 | else |
18216 | # Is the header compilable? | |
d6e01aa5 KL |
18217 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
18218 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 18219 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18220 | /* confdefs.h. */ |
18221 | _ACEOF | |
18222 | cat confdefs.h >>conftest.$ac_ext | |
18223 | cat >>conftest.$ac_ext <<_ACEOF | |
18224 | /* end confdefs.h. */ | |
c0d27fcc MR |
18225 | $ac_includes_default |
18226 | #include <$ac_header> | |
18227 | _ACEOF | |
18228 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
18229 | if { (ac_try="$ac_compile" |
18230 | case "(($ac_try" in | |
18231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18232 | *) ac_try_echo=$ac_try;; | |
18233 | esac | |
18234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18235 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 18236 | ac_status=$? |
edfaf76d LK |
18237 | grep -v '^ *+' conftest.er1 >conftest.err |
18238 | rm -f conftest.er1 | |
18239 | cat conftest.err >&5 | |
c0d27fcc | 18240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
18241 | (exit $ac_status); } && { |
18242 | test -z "$ac_c_werror_flag" || | |
18243 | test ! -s conftest.err | |
18244 | } && test -s conftest.$ac_objext; then | |
c0d27fcc | 18245 | ac_header_compiler=yes |
2c9dccc9 PJ |
18246 | else |
18247 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18248 | sed 's/^/| /' conftest.$ac_ext >&5 |
18249 | ||
d6e01aa5 | 18250 | ac_header_compiler=no |
98418dba | 18251 | fi |
d6e01aa5 KL |
18252 | |
18253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18254 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18255 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
98418dba | 18256 | |
c0d27fcc | 18257 | # Is the header present? |
d6e01aa5 KL |
18258 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
18259 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 18260 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18261 | /* confdefs.h. */ |
18262 | _ACEOF | |
18263 | cat confdefs.h >>conftest.$ac_ext | |
18264 | cat >>conftest.$ac_ext <<_ACEOF | |
18265 | /* end confdefs.h. */ | |
503d2be0 AS |
18266 | #include <$ac_header> |
18267 | _ACEOF | |
d6e01aa5 KL |
18268 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
18269 | case "(($ac_try" in | |
18270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18271 | *) ac_try_echo=$ac_try;; | |
18272 | esac | |
18273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18274 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 18275 | ac_status=$? |
6bae0ccf | 18276 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18277 | rm -f conftest.er1 |
18278 | cat conftest.err >&5 | |
c0d27fcc | 18279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
18280 | (exit $ac_status); } >/dev/null && { |
18281 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
18282 | test ! -s conftest.err | |
18283 | }; then | |
c0d27fcc | 18284 | ac_header_preproc=yes |
503d2be0 AS |
18285 | else |
18286 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18287 | sed 's/^/| /' conftest.$ac_ext >&5 |
18288 | ||
c0d27fcc | 18289 | ac_header_preproc=no |
b5de8dc0 | 18290 | fi |
d6e01aa5 | 18291 | |
503d2be0 | 18292 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
18293 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18294 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
18295 | |
18296 | # So? What about this header? | |
edfaf76d LK |
18297 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18298 | yes:no: ) | |
c0d27fcc MR |
18299 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18300 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
18301 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18302 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18303 | ac_header_preproc=yes | |
19650fd6 | 18304 | ;; |
edfaf76d | 18305 | no:yes:* ) |
c0d27fcc MR |
18306 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18307 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
18308 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18309 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18310 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18311 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18312 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18313 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18314 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18315 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
18316 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18317 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 18318 | |
19650fd6 | 18319 | ;; |
c0d27fcc | 18320 | esac |
d6e01aa5 KL |
18321 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
18322 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18323 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
18324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18325 | else | |
edfaf76d | 18326 | eval "$as_ac_Header=\$ac_header_preproc" |
b5de8dc0 | 18327 | fi |
d6e01aa5 KL |
18328 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18329 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18330 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
18331 | |
18332 | fi | |
98418dba | 18333 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18334 | cat >>confdefs.h <<_ACEOF |
98418dba | 18335 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18336 | _ACEOF |
d6e01aa5 KL |
18337 | { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 |
18338 | echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; } | |
98418dba | 18339 | if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then |
503d2be0 | 18340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b5de8dc0 | 18341 | else |
503d2be0 | 18342 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18343 | /* confdefs.h. */ |
18344 | _ACEOF | |
18345 | cat confdefs.h >>conftest.$ac_ext | |
18346 | cat >>conftest.$ac_ext <<_ACEOF | |
18347 | /* end confdefs.h. */ | |
98418dba | 18348 | #include <nlist.h> |
b5de8dc0 | 18349 | |
503d2be0 AS |
18350 | int |
18351 | main () | |
18352 | { | |
98418dba CW |
18353 | static struct nlist ac_aggr; |
18354 | if (ac_aggr.n_un.n_name) | |
18355 | return 0; | |
503d2be0 AS |
18356 | ; |
18357 | return 0; | |
18358 | } | |
18359 | _ACEOF | |
98418dba | 18360 | rm -f conftest.$ac_objext |
d6e01aa5 KL |
18361 | if { (ac_try="$ac_compile" |
18362 | case "(($ac_try" in | |
18363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18364 | *) ac_try_echo=$ac_try;; | |
18365 | esac | |
18366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18367 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 18368 | ac_status=$? |
edfaf76d LK |
18369 | grep -v '^ *+' conftest.er1 >conftest.err |
18370 | rm -f conftest.er1 | |
18371 | cat conftest.err >&5 | |
c0d27fcc | 18372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
18373 | (exit $ac_status); } && { |
18374 | test -z "$ac_c_werror_flag" || | |
18375 | test ! -s conftest.err | |
18376 | } && test -s conftest.$ac_objext; then | |
edfaf76d | 18377 | ac_cv_member_struct_nlist_n_un_n_name=yes |
503d2be0 AS |
18378 | else |
18379 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18380 | sed 's/^/| /' conftest.$ac_ext >&5 |
18381 | ||
d6e01aa5 | 18382 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18383 | /* confdefs.h. */ |
18384 | _ACEOF | |
18385 | cat confdefs.h >>conftest.$ac_ext | |
18386 | cat >>conftest.$ac_ext <<_ACEOF | |
18387 | /* end confdefs.h. */ | |
6bae0ccf DL |
18388 | #include <nlist.h> |
18389 | ||
18390 | int | |
18391 | main () | |
18392 | { | |
18393 | static struct nlist ac_aggr; | |
18394 | if (sizeof ac_aggr.n_un.n_name) | |
18395 | return 0; | |
18396 | ; | |
18397 | return 0; | |
18398 | } | |
18399 | _ACEOF | |
18400 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
18401 | if { (ac_try="$ac_compile" |
18402 | case "(($ac_try" in | |
18403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18404 | *) ac_try_echo=$ac_try;; | |
18405 | esac | |
18406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18407 | (eval "$ac_compile") 2>conftest.er1 | |
6bae0ccf | 18408 | ac_status=$? |
edfaf76d LK |
18409 | grep -v '^ *+' conftest.er1 >conftest.err |
18410 | rm -f conftest.er1 | |
18411 | cat conftest.err >&5 | |
6bae0ccf | 18412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
18413 | (exit $ac_status); } && { |
18414 | test -z "$ac_c_werror_flag" || | |
18415 | test ! -s conftest.err | |
18416 | } && test -s conftest.$ac_objext; then | |
6bae0ccf DL |
18417 | ac_cv_member_struct_nlist_n_un_n_name=yes |
18418 | else | |
18419 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18420 | sed 's/^/| /' conftest.$ac_ext >&5 |
18421 | ||
d6e01aa5 | 18422 | ac_cv_member_struct_nlist_n_un_n_name=no |
503d2be0 | 18423 | fi |
d6e01aa5 KL |
18424 | |
18425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b5de8dc0 | 18426 | fi |
d6e01aa5 KL |
18427 | |
18428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bae0ccf | 18429 | fi |
d6e01aa5 KL |
18430 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
18431 | echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; } | |
98418dba | 18432 | if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then |
b5de8dc0 | 18433 | |
c0d27fcc | 18434 | cat >>confdefs.h <<_ACEOF |
98418dba | 18435 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
c0d27fcc | 18436 | _ACEOF |
b5de8dc0 | 18437 | |
c0d27fcc MR |
18438 | |
18439 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 18440 | #define NLIST_NAME_UNION 1 |
c0d27fcc | 18441 | _ACEOF |
b5de8dc0 | 18442 | |
98418dba | 18443 | fi |
b5de8dc0 | 18444 | |
c0d27fcc | 18445 | |
98418dba | 18446 | fi |
c0d27fcc | 18447 | |
98418dba | 18448 | done |
b5de8dc0 | 18449 | |
98418dba CW |
18450 | fi |
18451 | done | |
b5de8dc0 | 18452 | |
c0d27fcc | 18453 | |
98418dba | 18454 | # Some definitions of getloadavg require that the program be installed setgid. |
d6e01aa5 KL |
18455 | { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 |
18456 | echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; } | |
98418dba CW |
18457 | if test "${ac_cv_func_getloadavg_setgid+set}" = set; then |
18458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18459 | else | |
18460 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18461 | /* confdefs.h. */ |
18462 | _ACEOF | |
18463 | cat confdefs.h >>conftest.$ac_ext | |
18464 | cat >>conftest.$ac_ext <<_ACEOF | |
18465 | /* end confdefs.h. */ | |
6bae0ccf | 18466 | #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" |
98418dba CW |
18467 | #ifdef LDAV_PRIVILEGED |
18468 | Yowza Am I SETGID yet | |
18469 | #endif | |
18470 | _ACEOF | |
18471 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 18472 | $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then |
98418dba CW |
18473 | ac_cv_func_getloadavg_setgid=yes |
18474 | else | |
18475 | ac_cv_func_getloadavg_setgid=no | |
18476 | fi | |
18477 | rm -f conftest* | |
b5de8dc0 | 18478 | |
98418dba | 18479 | fi |
d6e01aa5 KL |
18480 | { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 |
18481 | echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; } | |
98418dba CW |
18482 | if test $ac_cv_func_getloadavg_setgid = yes; then |
18483 | NEED_SETGID=true | |
b5de8dc0 | 18484 | |
c0d27fcc | 18485 | cat >>confdefs.h <<\_ACEOF |
98418dba | 18486 | #define GETLOADAVG_PRIVILEGED 1 |
c0d27fcc | 18487 | _ACEOF |
98418dba | 18488 | |
b5de8dc0 | 18489 | else |
98418dba | 18490 | NEED_SETGID=false |
b5de8dc0 | 18491 | fi |
98418dba CW |
18492 | |
18493 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
d6e01aa5 KL |
18494 | { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 |
18495 | echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; } | |
98418dba CW |
18496 | if test "${ac_cv_group_kmem+set}" = set; then |
18497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18498 | else | |
18499 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
18500 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
18501 | # If we got an error (system does not support symlinks), try without -L. | |
18502 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
18503 | ac_cv_group_kmem=`echo $ac_ls_output \ | |
edfaf76d | 18504 | | sed -ne 's/[ ][ ]*/ /g; |
98418dba CW |
18505 | s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; |
18506 | / /s/.* //;p;'` | |
18507 | ||
b5de8dc0 | 18508 | fi |
d6e01aa5 KL |
18509 | { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 |
18510 | echo "${ECHO_T}$ac_cv_group_kmem" >&6; } | |
98418dba | 18511 | KMEM_GROUP=$ac_cv_group_kmem |
b5de8dc0 | 18512 | fi |
98418dba CW |
18513 | if test "x$ac_save_LIBS" = x; then |
18514 | GETLOADAVG_LIBS=$LIBS | |
18515 | else | |
18516 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
b5de8dc0 | 18517 | fi |
98418dba | 18518 | LIBS=$ac_save_LIBS |
b5de8dc0 | 18519 | |
c0d27fcc MR |
18520 | |
18521 | ||
d6e01aa5 KL |
18522 | { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
18523 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; } | |
b936fae4 | 18524 | if test "${ac_cv_sys_largefile_source+set}" = set; then |
503d2be0 | 18525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 18526 | else |
b936fae4 | 18527 | while :; do |
503d2be0 | 18528 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18529 | /* confdefs.h. */ |
18530 | _ACEOF | |
18531 | cat confdefs.h >>conftest.$ac_ext | |
18532 | cat >>conftest.$ac_ext <<_ACEOF | |
18533 | /* end confdefs.h. */ | |
bc3512d0 | 18534 | #include <stdio.h> |
503d2be0 AS |
18535 | int |
18536 | main () | |
18537 | { | |
bc3512d0 | 18538 | return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); |
b936fae4 AS |
18539 | ; |
18540 | return 0; | |
18541 | } | |
18542 | _ACEOF | |
d6e01aa5 KL |
18543 | rm -f conftest.$ac_objext conftest$ac_exeext |
18544 | if { (ac_try="$ac_link" | |
18545 | case "(($ac_try" in | |
18546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18547 | *) ac_try_echo=$ac_try;; | |
18548 | esac | |
18549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18550 | (eval "$ac_link") 2>conftest.er1 | |
b936fae4 | 18551 | ac_status=$? |
edfaf76d LK |
18552 | grep -v '^ *+' conftest.er1 >conftest.err |
18553 | rm -f conftest.er1 | |
18554 | cat conftest.err >&5 | |
c0d27fcc | 18555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
18556 | (exit $ac_status); } && { |
18557 | test -z "$ac_c_werror_flag" || | |
18558 | test ! -s conftest.err | |
18559 | } && test -s conftest$ac_exeext && | |
18560 | $as_test_x conftest$ac_exeext; then | |
18561 | ac_cv_sys_largefile_source=no; break | |
b936fae4 AS |
18562 | else |
18563 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18564 | sed 's/^/| /' conftest.$ac_ext >&5 |
18565 | ||
d6e01aa5 | 18566 | |
b936fae4 | 18567 | fi |
d6e01aa5 KL |
18568 | |
18569 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18570 | conftest$ac_exeext conftest.$ac_ext | |
b936fae4 | 18571 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18572 | /* confdefs.h. */ |
18573 | _ACEOF | |
18574 | cat confdefs.h >>conftest.$ac_ext | |
18575 | cat >>conftest.$ac_ext <<_ACEOF | |
18576 | /* end confdefs.h. */ | |
b936fae4 | 18577 | #define _LARGEFILE_SOURCE 1 |
bc3512d0 | 18578 | #include <stdio.h> |
b936fae4 AS |
18579 | int |
18580 | main () | |
18581 | { | |
bc3512d0 | 18582 | return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); |
b936fae4 AS |
18583 | ; |
18584 | return 0; | |
18585 | } | |
18586 | _ACEOF | |
d6e01aa5 KL |
18587 | rm -f conftest.$ac_objext conftest$ac_exeext |
18588 | if { (ac_try="$ac_link" | |
18589 | case "(($ac_try" in | |
18590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18591 | *) ac_try_echo=$ac_try;; | |
18592 | esac | |
18593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18594 | (eval "$ac_link") 2>conftest.er1 | |
b936fae4 | 18595 | ac_status=$? |
edfaf76d LK |
18596 | grep -v '^ *+' conftest.er1 >conftest.err |
18597 | rm -f conftest.er1 | |
18598 | cat conftest.err >&5 | |
c0d27fcc | 18599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
18600 | (exit $ac_status); } && { |
18601 | test -z "$ac_c_werror_flag" || | |
18602 | test ! -s conftest.err | |
18603 | } && test -s conftest$ac_exeext && | |
18604 | $as_test_x conftest$ac_exeext; then | |
b936fae4 AS |
18605 | ac_cv_sys_largefile_source=1; break |
18606 | else | |
18607 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18608 | sed 's/^/| /' conftest.$ac_ext >&5 |
18609 | ||
d6e01aa5 | 18610 | |
b936fae4 | 18611 | fi |
d6e01aa5 KL |
18612 | |
18613 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18614 | conftest$ac_exeext conftest.$ac_ext | |
18615 | ac_cv_sys_largefile_source=unknown | |
b936fae4 AS |
18616 | break |
18617 | done | |
18618 | fi | |
d6e01aa5 KL |
18619 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
18620 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; } | |
18621 | case $ac_cv_sys_largefile_source in #( | |
18622 | no | unknown) ;; | |
18623 | *) | |
c0d27fcc | 18624 | cat >>confdefs.h <<_ACEOF |
b936fae4 | 18625 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
c0d27fcc | 18626 | _ACEOF |
d6e01aa5 KL |
18627 | ;; |
18628 | esac | |
b936fae4 | 18629 | rm -f conftest* |
4c343001 | 18630 | |
b936fae4 AS |
18631 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
18632 | # in glibc 2.1.3, but that breaks too many other things. | |
18633 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
d6e01aa5 | 18634 | if test $ac_cv_sys_largefile_source != unknown; then |
b936fae4 | 18635 | |
c0d27fcc | 18636 | cat >>confdefs.h <<\_ACEOF |
b936fae4 | 18637 | #define HAVE_FSEEKO 1 |
c0d27fcc | 18638 | _ACEOF |
b936fae4 | 18639 | |
4c343001 DL |
18640 | fi |
18641 | ||
c0d27fcc | 18642 | |
52dbaac8 PE |
18643 | # Configure getopt. |
18644 | # getopt.m4 serial 10 | |
18645 | ||
18646 | # The getopt module assume you want GNU getopt, with getopt_long etc, | |
18647 | # rather than vanilla POSIX getopt. This means your your code should | |
18648 | # always include <getopt.h> for the getopt prototypes. | |
18649 | ||
18650 | ||
18651 | ||
18652 | ||
18653 | ||
18654 | ||
18655 | ||
18656 | ||
18657 | ||
18658 | ||
18659 | ||
18660 | # Prerequisites of lib/getopt*. | |
18661 | ||
18662 | ||
18663 | ||
10a3b1a1 | 18664 | |
52dbaac8 PE |
18665 | GETOPT_H= |
18666 | ||
18667 | for ac_header in getopt.h | |
18668 | do | |
18669 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
18670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
18671 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18672 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18673 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
52dbaac8 PE |
18674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18675 | fi | |
d6e01aa5 KL |
18676 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18677 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18678 | echo "${ECHO_T}$ac_res" >&6; } | |
52dbaac8 PE |
18679 | else |
18680 | # Is the header compilable? | |
d6e01aa5 KL |
18681 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
18682 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
52dbaac8 PE |
18683 | cat >conftest.$ac_ext <<_ACEOF |
18684 | /* confdefs.h. */ | |
18685 | _ACEOF | |
18686 | cat confdefs.h >>conftest.$ac_ext | |
18687 | cat >>conftest.$ac_ext <<_ACEOF | |
18688 | /* end confdefs.h. */ | |
18689 | $ac_includes_default | |
18690 | #include <$ac_header> | |
18691 | _ACEOF | |
18692 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
18693 | if { (ac_try="$ac_compile" |
18694 | case "(($ac_try" in | |
18695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18696 | *) ac_try_echo=$ac_try;; | |
18697 | esac | |
18698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18699 | (eval "$ac_compile") 2>conftest.er1 | |
52dbaac8 PE |
18700 | ac_status=$? |
18701 | grep -v '^ *+' conftest.er1 >conftest.err | |
18702 | rm -f conftest.er1 | |
18703 | cat conftest.err >&5 | |
18704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
18705 | (exit $ac_status); } && { |
18706 | test -z "$ac_c_werror_flag" || | |
18707 | test ! -s conftest.err | |
18708 | } && test -s conftest.$ac_objext; then | |
52dbaac8 PE |
18709 | ac_header_compiler=yes |
18710 | else | |
18711 | echo "$as_me: failed program was:" >&5 | |
18712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18713 | ||
d6e01aa5 | 18714 | ac_header_compiler=no |
52dbaac8 | 18715 | fi |
d6e01aa5 KL |
18716 | |
18717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18718 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18719 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
52dbaac8 PE |
18720 | |
18721 | # Is the header present? | |
d6e01aa5 KL |
18722 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
18723 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
52dbaac8 PE |
18724 | cat >conftest.$ac_ext <<_ACEOF |
18725 | /* confdefs.h. */ | |
18726 | _ACEOF | |
18727 | cat confdefs.h >>conftest.$ac_ext | |
18728 | cat >>conftest.$ac_ext <<_ACEOF | |
18729 | /* end confdefs.h. */ | |
18730 | #include <$ac_header> | |
18731 | _ACEOF | |
d6e01aa5 KL |
18732 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
18733 | case "(($ac_try" in | |
18734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18735 | *) ac_try_echo=$ac_try;; | |
18736 | esac | |
18737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18738 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
52dbaac8 PE |
18739 | ac_status=$? |
18740 | grep -v '^ *+' conftest.er1 >conftest.err | |
18741 | rm -f conftest.er1 | |
18742 | cat conftest.err >&5 | |
18743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
18744 | (exit $ac_status); } >/dev/null && { |
18745 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
18746 | test ! -s conftest.err | |
18747 | }; then | |
52dbaac8 PE |
18748 | ac_header_preproc=yes |
18749 | else | |
18750 | echo "$as_me: failed program was:" >&5 | |
18751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18752 | ||
18753 | ac_header_preproc=no | |
18754 | fi | |
d6e01aa5 | 18755 | |
52dbaac8 | 18756 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
18757 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18758 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
52dbaac8 PE |
18759 | |
18760 | # So? What about this header? | |
18761 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
18762 | yes:no: ) | |
18763 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18764 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18765 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
18766 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18767 | ac_header_preproc=yes | |
18768 | ;; | |
18769 | no:yes:* ) | |
18770 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
18771 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
18772 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
18773 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18774 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18775 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18776 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18777 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
18778 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
18779 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
18780 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
18781 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 18782 | |
52dbaac8 PE |
18783 | ;; |
18784 | esac | |
d6e01aa5 KL |
18785 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
18786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18787 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
52dbaac8 PE |
18788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18789 | else | |
18790 | eval "$as_ac_Header=\$ac_header_preproc" | |
18791 | fi | |
d6e01aa5 KL |
18792 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18793 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18794 | echo "${ECHO_T}$ac_res" >&6; } | |
52dbaac8 PE |
18795 | |
18796 | fi | |
18797 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18798 | cat >>confdefs.h <<_ACEOF | |
18799 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18800 | _ACEOF | |
18801 | ||
18802 | else | |
18803 | GETOPT_H=getopt.h | |
18804 | fi | |
18805 | ||
18806 | done | |
18807 | ||
18808 | if test -z "$GETOPT_H"; then | |
18809 | ||
18810 | for ac_func in getopt_long_only | |
18811 | do | |
18812 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
d6e01aa5 KL |
18813 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18814 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
18815 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
52dbaac8 PE |
18816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18817 | else | |
18818 | cat >conftest.$ac_ext <<_ACEOF | |
18819 | /* confdefs.h. */ | |
18820 | _ACEOF | |
18821 | cat confdefs.h >>conftest.$ac_ext | |
18822 | cat >>conftest.$ac_ext <<_ACEOF | |
18823 | /* end confdefs.h. */ | |
18824 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18825 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18826 | #define $ac_func innocuous_$ac_func | |
18827 | ||
18828 | /* System header to define __stub macros and hopefully few prototypes, | |
18829 | which can conflict with char $ac_func (); below. | |
18830 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18831 | <limits.h> exists even on freestanding compilers. */ | |
18832 | ||
18833 | #ifdef __STDC__ | |
18834 | # include <limits.h> | |
18835 | #else | |
18836 | # include <assert.h> | |
18837 | #endif | |
18838 | ||
18839 | #undef $ac_func | |
18840 | ||
d6e01aa5 KL |
18841 | /* Override any GCC internal prototype to avoid an error. |
18842 | Use char because int might match the return type of a GCC | |
18843 | builtin and then its argument prototype would still apply. */ | |
52dbaac8 PE |
18844 | #ifdef __cplusplus |
18845 | extern "C" | |
52dbaac8 | 18846 | #endif |
52dbaac8 PE |
18847 | char $ac_func (); |
18848 | /* The GNU C library defines this for functions which it implements | |
18849 | to always fail with ENOSYS. Some functions are actually named | |
18850 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 18851 | #if defined __stub_$ac_func || defined __stub___$ac_func |
52dbaac8 | 18852 | choke me |
52dbaac8 PE |
18853 | #endif |
18854 | ||
18855 | int | |
18856 | main () | |
18857 | { | |
d6e01aa5 | 18858 | return $ac_func (); |
52dbaac8 PE |
18859 | ; |
18860 | return 0; | |
18861 | } | |
18862 | _ACEOF | |
18863 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
18864 | if { (ac_try="$ac_link" |
18865 | case "(($ac_try" in | |
18866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18867 | *) ac_try_echo=$ac_try;; | |
18868 | esac | |
18869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18870 | (eval "$ac_link") 2>conftest.er1 | |
52dbaac8 PE |
18871 | ac_status=$? |
18872 | grep -v '^ *+' conftest.er1 >conftest.err | |
18873 | rm -f conftest.er1 | |
18874 | cat conftest.err >&5 | |
18875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
18876 | (exit $ac_status); } && { |
18877 | test -z "$ac_c_werror_flag" || | |
18878 | test ! -s conftest.err | |
18879 | } && test -s conftest$ac_exeext && | |
18880 | $as_test_x conftest$ac_exeext; then | |
52dbaac8 PE |
18881 | eval "$as_ac_var=yes" |
18882 | else | |
18883 | echo "$as_me: failed program was:" >&5 | |
18884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18885 | ||
d6e01aa5 | 18886 | eval "$as_ac_var=no" |
52dbaac8 | 18887 | fi |
d6e01aa5 KL |
18888 | |
18889 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
52dbaac8 PE |
18890 | conftest$ac_exeext conftest.$ac_ext |
18891 | fi | |
d6e01aa5 KL |
18892 | ac_res=`eval echo '${'$as_ac_var'}'` |
18893 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18894 | echo "${ECHO_T}$ac_res" >&6; } | |
52dbaac8 PE |
18895 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18896 | cat >>confdefs.h <<_ACEOF | |
18897 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18898 | _ACEOF | |
18899 | ||
18900 | else | |
18901 | GETOPT_H=getopt.h | |
18902 | fi | |
18903 | done | |
18904 | ||
18905 | fi | |
18906 | ||
18907 | if test -z "$GETOPT_H"; then | |
d6e01aa5 KL |
18908 | { echo "$as_me:$LINENO: checking whether optreset is declared" >&5 |
18909 | echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; } | |
52dbaac8 PE |
18910 | if test "${ac_cv_have_decl_optreset+set}" = set; then |
18911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18912 | else | |
18913 | cat >conftest.$ac_ext <<_ACEOF | |
18914 | /* confdefs.h. */ | |
18915 | _ACEOF | |
18916 | cat confdefs.h >>conftest.$ac_ext | |
18917 | cat >>conftest.$ac_ext <<_ACEOF | |
18918 | /* end confdefs.h. */ | |
18919 | #include <getopt.h> | |
18920 | ||
18921 | int | |
18922 | main () | |
18923 | { | |
18924 | #ifndef optreset | |
d6e01aa5 | 18925 | (void) optreset; |
52dbaac8 PE |
18926 | #endif |
18927 | ||
18928 | ; | |
18929 | return 0; | |
18930 | } | |
18931 | _ACEOF | |
18932 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
18933 | if { (ac_try="$ac_compile" |
18934 | case "(($ac_try" in | |
18935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18936 | *) ac_try_echo=$ac_try;; | |
18937 | esac | |
18938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18939 | (eval "$ac_compile") 2>conftest.er1 | |
52dbaac8 PE |
18940 | ac_status=$? |
18941 | grep -v '^ *+' conftest.er1 >conftest.err | |
18942 | rm -f conftest.er1 | |
18943 | cat conftest.err >&5 | |
18944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
18945 | (exit $ac_status); } && { |
18946 | test -z "$ac_c_werror_flag" || | |
18947 | test ! -s conftest.err | |
18948 | } && test -s conftest.$ac_objext; then | |
52dbaac8 PE |
18949 | ac_cv_have_decl_optreset=yes |
18950 | else | |
18951 | echo "$as_me: failed program was:" >&5 | |
18952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18953 | ||
d6e01aa5 | 18954 | ac_cv_have_decl_optreset=no |
52dbaac8 | 18955 | fi |
d6e01aa5 KL |
18956 | |
18957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
52dbaac8 | 18958 | fi |
d6e01aa5 KL |
18959 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 |
18960 | echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; } | |
52dbaac8 PE |
18961 | if test $ac_cv_have_decl_optreset = yes; then |
18962 | GETOPT_H=getopt.h | |
18963 | fi | |
18964 | ||
18965 | fi | |
18966 | ||
18967 | if test -z "$GETOPT_H"; then | |
d6e01aa5 KL |
18968 | { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 |
18969 | echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; } | |
52dbaac8 PE |
18970 | if test "${gl_cv_func_gnu_getopt+set}" = set; then |
18971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18972 | else | |
18973 | if test "$cross_compiling" = yes; then | |
d6e01aa5 KL |
18974 | { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5 |
18975 | echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; } | |
52dbaac8 PE |
18976 | if test "${ac_cv_have_decl_getopt_clip+set}" = set; then |
18977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18978 | else | |
18979 | cat >conftest.$ac_ext <<_ACEOF | |
18980 | /* confdefs.h. */ | |
18981 | _ACEOF | |
18982 | cat confdefs.h >>conftest.$ac_ext | |
18983 | cat >>conftest.$ac_ext <<_ACEOF | |
18984 | /* end confdefs.h. */ | |
18985 | #include <getopt.h> | |
18986 | ||
18987 | int | |
18988 | main () | |
18989 | { | |
18990 | #ifndef getopt_clip | |
d6e01aa5 | 18991 | (void) getopt_clip; |
52dbaac8 PE |
18992 | #endif |
18993 | ||
18994 | ; | |
18995 | return 0; | |
18996 | } | |
18997 | _ACEOF | |
18998 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
18999 | if { (ac_try="$ac_compile" |
19000 | case "(($ac_try" in | |
19001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19002 | *) ac_try_echo=$ac_try;; | |
19003 | esac | |
19004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19005 | (eval "$ac_compile") 2>conftest.er1 | |
52dbaac8 PE |
19006 | ac_status=$? |
19007 | grep -v '^ *+' conftest.er1 >conftest.err | |
19008 | rm -f conftest.er1 | |
19009 | cat conftest.err >&5 | |
19010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
19011 | (exit $ac_status); } && { |
19012 | test -z "$ac_c_werror_flag" || | |
19013 | test ! -s conftest.err | |
19014 | } && test -s conftest.$ac_objext; then | |
52dbaac8 PE |
19015 | ac_cv_have_decl_getopt_clip=yes |
19016 | else | |
19017 | echo "$as_me: failed program was:" >&5 | |
19018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19019 | ||
d6e01aa5 | 19020 | ac_cv_have_decl_getopt_clip=no |
52dbaac8 | 19021 | fi |
d6e01aa5 KL |
19022 | |
19023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
52dbaac8 | 19024 | fi |
d6e01aa5 KL |
19025 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5 |
19026 | echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; } | |
52dbaac8 PE |
19027 | if test $ac_cv_have_decl_getopt_clip = yes; then |
19028 | gl_cv_func_gnu_getopt=no | |
19029 | else | |
19030 | gl_cv_func_gnu_getopt=yes | |
19031 | fi | |
19032 | ||
19033 | else | |
19034 | cat >conftest.$ac_ext <<_ACEOF | |
19035 | /* confdefs.h. */ | |
19036 | _ACEOF | |
19037 | cat confdefs.h >>conftest.$ac_ext | |
19038 | cat >>conftest.$ac_ext <<_ACEOF | |
19039 | /* end confdefs.h. */ | |
19040 | #include <getopt.h> | |
19041 | int | |
19042 | main () | |
19043 | { | |
19044 | ||
19045 | char *myargv[3]; | |
19046 | myargv[0] = "conftest"; | |
19047 | myargv[1] = "-+"; | |
19048 | myargv[2] = 0; | |
19049 | return getopt (2, myargv, "+a") != '?'; | |
19050 | ||
19051 | ; | |
19052 | return 0; | |
19053 | } | |
19054 | _ACEOF | |
19055 | rm -f conftest$ac_exeext | |
d6e01aa5 KL |
19056 | if { (ac_try="$ac_link" |
19057 | case "(($ac_try" in | |
19058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19059 | *) ac_try_echo=$ac_try;; | |
19060 | esac | |
19061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19062 | (eval "$ac_link") 2>&5 | |
52dbaac8 PE |
19063 | ac_status=$? |
19064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19065 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
d6e01aa5 KL |
19066 | { (case "(($ac_try" in |
19067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19068 | *) ac_try_echo=$ac_try;; | |
19069 | esac | |
19070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19071 | (eval "$ac_try") 2>&5 | |
52dbaac8 PE |
19072 | ac_status=$? |
19073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19074 | (exit $ac_status); }; }; then | |
19075 | gl_cv_func_gnu_getopt=yes | |
19076 | else | |
19077 | echo "$as_me: program exited with status $ac_status" >&5 | |
19078 | echo "$as_me: failed program was:" >&5 | |
19079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19080 | ||
19081 | ( exit $ac_status ) | |
19082 | gl_cv_func_gnu_getopt=no | |
19083 | fi | |
d6e01aa5 | 19084 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
52dbaac8 | 19085 | fi |
d6e01aa5 KL |
19086 | |
19087 | ||
52dbaac8 | 19088 | fi |
d6e01aa5 KL |
19089 | { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 |
19090 | echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; } | |
52dbaac8 PE |
19091 | if test "$gl_cv_func_gnu_getopt" = "no"; then |
19092 | GETOPT_H=getopt.h | |
19093 | fi | |
19094 | fi | |
19095 | ||
19096 | ||
19097 | ||
19098 | if test -n "$GETOPT_H"; then | |
19099 | ||
19100 | ||
19101 | GETOPT_H=getopt.h | |
19102 | ||
19103 | cat >>confdefs.h <<\_ACEOF | |
19104 | #define __GETOPT_PREFIX rpl_ | |
19105 | _ACEOF | |
19106 | ||
19107 | ||
19108 | ||
19109 | : | |
19110 | GETOPTOBJS='getopt.o getopt1.o' | |
19111 | ||
19112 | fi | |
19113 | ||
19114 | ||
19115 | ||
19116 | ||
d6e01aa5 KL |
19117 | { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
19118 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; } | |
cd958eb3 MB |
19119 | if test "${ac_cv_func_getpgrp_void+set}" = set; then |
19120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19121 | else | |
19122 | # Use it with a single arg. | |
19123 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19124 | /* confdefs.h. */ |
19125 | _ACEOF | |
19126 | cat confdefs.h >>conftest.$ac_ext | |
19127 | cat >>conftest.$ac_ext <<_ACEOF | |
19128 | /* end confdefs.h. */ | |
cd958eb3 MB |
19129 | $ac_includes_default |
19130 | int | |
19131 | main () | |
19132 | { | |
19133 | getpgrp (0); | |
19134 | ; | |
19135 | return 0; | |
19136 | } | |
19137 | _ACEOF | |
19138 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
19139 | if { (ac_try="$ac_compile" |
19140 | case "(($ac_try" in | |
19141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19142 | *) ac_try_echo=$ac_try;; | |
19143 | esac | |
19144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19145 | (eval "$ac_compile") 2>conftest.er1 | |
cd958eb3 | 19146 | ac_status=$? |
edfaf76d LK |
19147 | grep -v '^ *+' conftest.er1 >conftest.err |
19148 | rm -f conftest.er1 | |
19149 | cat conftest.err >&5 | |
cd958eb3 | 19150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
19151 | (exit $ac_status); } && { |
19152 | test -z "$ac_c_werror_flag" || | |
19153 | test ! -s conftest.err | |
19154 | } && test -s conftest.$ac_objext; then | |
cd958eb3 MB |
19155 | ac_cv_func_getpgrp_void=no |
19156 | else | |
19157 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19158 | sed 's/^/| /' conftest.$ac_ext >&5 |
19159 | ||
d6e01aa5 | 19160 | ac_cv_func_getpgrp_void=yes |
cd958eb3 | 19161 | fi |
d6e01aa5 KL |
19162 | |
19163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cd958eb3 MB |
19164 | |
19165 | fi | |
d6e01aa5 KL |
19166 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 |
19167 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; } | |
cd958eb3 MB |
19168 | if test $ac_cv_func_getpgrp_void = yes; then |
19169 | ||
19170 | cat >>confdefs.h <<\_ACEOF | |
19171 | #define GETPGRP_VOID 1 | |
19172 | _ACEOF | |
19173 | ||
19174 | fi | |
19175 | ||
19176 | ||
973a76b1 DL |
19177 | |
19178 | for ac_func in strftime | |
19179 | do | |
19180 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
d6e01aa5 KL |
19181 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19182 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
19183 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
973a76b1 DL |
19184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19185 | else | |
19186 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19187 | /* confdefs.h. */ |
19188 | _ACEOF | |
19189 | cat confdefs.h >>conftest.$ac_ext | |
19190 | cat >>conftest.$ac_ext <<_ACEOF | |
19191 | /* end confdefs.h. */ | |
edfaf76d LK |
19192 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19194 | #define $ac_func innocuous_$ac_func | |
19195 | ||
973a76b1 | 19196 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19197 | which can conflict with char $ac_func (); below. |
19198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19199 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 19200 | |
19650fd6 AS |
19201 | #ifdef __STDC__ |
19202 | # include <limits.h> | |
19203 | #else | |
19204 | # include <assert.h> | |
19205 | #endif | |
edfaf76d LK |
19206 | |
19207 | #undef $ac_func | |
19208 | ||
d6e01aa5 KL |
19209 | /* Override any GCC internal prototype to avoid an error. |
19210 | Use char because int might match the return type of a GCC | |
19211 | builtin and then its argument prototype would still apply. */ | |
973a76b1 DL |
19212 | #ifdef __cplusplus |
19213 | extern "C" | |
973a76b1 | 19214 | #endif |
973a76b1 DL |
19215 | char $ac_func (); |
19216 | /* The GNU C library defines this for functions which it implements | |
19217 | to always fail with ENOSYS. Some functions are actually named | |
19218 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 19219 | #if defined __stub_$ac_func || defined __stub___$ac_func |
973a76b1 | 19220 | choke me |
973a76b1 DL |
19221 | #endif |
19222 | ||
19650fd6 AS |
19223 | int |
19224 | main () | |
19225 | { | |
d6e01aa5 | 19226 | return $ac_func (); |
973a76b1 DL |
19227 | ; |
19228 | return 0; | |
19229 | } | |
19230 | _ACEOF | |
19231 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
19232 | if { (ac_try="$ac_link" |
19233 | case "(($ac_try" in | |
19234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19235 | *) ac_try_echo=$ac_try;; | |
19236 | esac | |
19237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19238 | (eval "$ac_link") 2>conftest.er1 | |
973a76b1 | 19239 | ac_status=$? |
edfaf76d LK |
19240 | grep -v '^ *+' conftest.er1 >conftest.err |
19241 | rm -f conftest.er1 | |
19242 | cat conftest.err >&5 | |
973a76b1 | 19243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
19244 | (exit $ac_status); } && { |
19245 | test -z "$ac_c_werror_flag" || | |
19246 | test ! -s conftest.err | |
19247 | } && test -s conftest$ac_exeext && | |
19248 | $as_test_x conftest$ac_exeext; then | |
973a76b1 DL |
19249 | eval "$as_ac_var=yes" |
19250 | else | |
19251 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19252 | sed 's/^/| /' conftest.$ac_ext >&5 |
19253 | ||
d6e01aa5 | 19254 | eval "$as_ac_var=no" |
973a76b1 | 19255 | fi |
d6e01aa5 KL |
19256 | |
19257 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 19258 | conftest$ac_exeext conftest.$ac_ext |
973a76b1 | 19259 | fi |
d6e01aa5 KL |
19260 | ac_res=`eval echo '${'$as_ac_var'}'` |
19261 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19262 | echo "${ECHO_T}$ac_res" >&6; } | |
973a76b1 DL |
19263 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19264 | cat >>confdefs.h <<_ACEOF | |
19265 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19266 | _ACEOF | |
19267 | ||
19268 | else | |
19269 | # strftime is in -lintl on SCO UNIX. | |
d6e01aa5 KL |
19270 | { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 |
19271 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } | |
973a76b1 DL |
19272 | if test "${ac_cv_lib_intl_strftime+set}" = set; then |
19273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19274 | else | |
19275 | ac_check_lib_save_LIBS=$LIBS | |
19276 | LIBS="-lintl $LIBS" | |
19277 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19278 | /* confdefs.h. */ |
19279 | _ACEOF | |
19280 | cat confdefs.h >>conftest.$ac_ext | |
19281 | cat >>conftest.$ac_ext <<_ACEOF | |
19282 | /* end confdefs.h. */ | |
973a76b1 | 19283 | |
d6e01aa5 KL |
19284 | /* Override any GCC internal prototype to avoid an error. |
19285 | Use char because int might match the return type of a GCC | |
19286 | builtin and then its argument prototype would still apply. */ | |
973a76b1 DL |
19287 | #ifdef __cplusplus |
19288 | extern "C" | |
19289 | #endif | |
973a76b1 DL |
19290 | char strftime (); |
19291 | int | |
19292 | main () | |
19293 | { | |
d6e01aa5 | 19294 | return strftime (); |
973a76b1 DL |
19295 | ; |
19296 | return 0; | |
19297 | } | |
19298 | _ACEOF | |
19299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
19300 | if { (ac_try="$ac_link" |
19301 | case "(($ac_try" in | |
19302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19303 | *) ac_try_echo=$ac_try;; | |
19304 | esac | |
19305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19306 | (eval "$ac_link") 2>conftest.er1 | |
973a76b1 | 19307 | ac_status=$? |
edfaf76d LK |
19308 | grep -v '^ *+' conftest.er1 >conftest.err |
19309 | rm -f conftest.er1 | |
19310 | cat conftest.err >&5 | |
973a76b1 | 19311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
19312 | (exit $ac_status); } && { |
19313 | test -z "$ac_c_werror_flag" || | |
19314 | test ! -s conftest.err | |
19315 | } && test -s conftest$ac_exeext && | |
19316 | $as_test_x conftest$ac_exeext; then | |
973a76b1 DL |
19317 | ac_cv_lib_intl_strftime=yes |
19318 | else | |
19319 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19320 | sed 's/^/| /' conftest.$ac_ext >&5 |
19321 | ||
d6e01aa5 | 19322 | ac_cv_lib_intl_strftime=no |
973a76b1 | 19323 | fi |
d6e01aa5 KL |
19324 | |
19325 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 19326 | conftest$ac_exeext conftest.$ac_ext |
973a76b1 DL |
19327 | LIBS=$ac_check_lib_save_LIBS |
19328 | fi | |
d6e01aa5 KL |
19329 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 |
19330 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } | |
973a76b1 DL |
19331 | if test $ac_cv_lib_intl_strftime = yes; then |
19332 | cat >>confdefs.h <<\_ACEOF | |
19333 | #define HAVE_STRFTIME 1 | |
19334 | _ACEOF | |
19335 | ||
19336 | LIBS="-lintl $LIBS" | |
19337 | fi | |
19338 | ||
19339 | fi | |
19340 | done | |
19341 | ||
19342 | ||
b936fae4 AS |
19343 | # UNIX98 PTYs. |
19344 | ||
19345 | for ac_func in grantpt | |
503d2be0 AS |
19346 | do |
19347 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
d6e01aa5 KL |
19348 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19349 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
19350 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 19351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 19352 | else |
503d2be0 | 19353 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19354 | /* confdefs.h. */ |
19355 | _ACEOF | |
19356 | cat confdefs.h >>conftest.$ac_ext | |
19357 | cat >>conftest.$ac_ext <<_ACEOF | |
19358 | /* end confdefs.h. */ | |
edfaf76d LK |
19359 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19360 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19361 | #define $ac_func innocuous_$ac_func | |
19362 | ||
503d2be0 | 19363 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19364 | which can conflict with char $ac_func (); below. |
19365 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19366 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 19367 | |
19650fd6 AS |
19368 | #ifdef __STDC__ |
19369 | # include <limits.h> | |
19370 | #else | |
19371 | # include <assert.h> | |
19372 | #endif | |
edfaf76d LK |
19373 | |
19374 | #undef $ac_func | |
19375 | ||
d6e01aa5 KL |
19376 | /* Override any GCC internal prototype to avoid an error. |
19377 | Use char because int might match the return type of a GCC | |
19378 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19379 | #ifdef __cplusplus |
19380 | extern "C" | |
19381 | #endif | |
503d2be0 | 19382 | char $ac_func (); |
503d2be0 AS |
19383 | /* The GNU C library defines this for functions which it implements |
19384 | to always fail with ENOSYS. Some functions are actually named | |
19385 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 19386 | #if defined __stub_$ac_func || defined __stub___$ac_func |
503d2be0 | 19387 | choke me |
503d2be0 | 19388 | #endif |
4c343001 | 19389 | |
19650fd6 AS |
19390 | int |
19391 | main () | |
19392 | { | |
d6e01aa5 | 19393 | return $ac_func (); |
503d2be0 AS |
19394 | ; |
19395 | return 0; | |
19396 | } | |
19397 | _ACEOF | |
19398 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
19399 | if { (ac_try="$ac_link" |
19400 | case "(($ac_try" in | |
19401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19402 | *) ac_try_echo=$ac_try;; | |
19403 | esac | |
19404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19405 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 19406 | ac_status=$? |
edfaf76d LK |
19407 | grep -v '^ *+' conftest.er1 >conftest.err |
19408 | rm -f conftest.er1 | |
19409 | cat conftest.err >&5 | |
c0d27fcc | 19410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
19411 | (exit $ac_status); } && { |
19412 | test -z "$ac_c_werror_flag" || | |
19413 | test ! -s conftest.err | |
19414 | } && test -s conftest$ac_exeext && | |
19415 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19416 | eval "$as_ac_var=yes" |
19417 | else | |
19418 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19419 | sed 's/^/| /' conftest.$ac_ext >&5 |
19420 | ||
d6e01aa5 | 19421 | eval "$as_ac_var=no" |
503d2be0 | 19422 | fi |
d6e01aa5 KL |
19423 | |
19424 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 19425 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 19426 | fi |
d6e01aa5 KL |
19427 | ac_res=`eval echo '${'$as_ac_var'}'` |
19428 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19429 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 19430 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 19431 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19432 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 19433 | _ACEOF |
4c343001 DL |
19434 | |
19435 | fi | |
503d2be0 AS |
19436 | done |
19437 | ||
c0d27fcc | 19438 | |
b936fae4 | 19439 | # PTY-related GNU extensions. |
4c343001 | 19440 | |
b936fae4 AS |
19441 | for ac_func in getpt |
19442 | do | |
19443 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
d6e01aa5 KL |
19444 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19445 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
19446 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 19447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 19448 | else |
b936fae4 | 19449 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19450 | /* confdefs.h. */ |
19451 | _ACEOF | |
19452 | cat confdefs.h >>conftest.$ac_ext | |
19453 | cat >>conftest.$ac_ext <<_ACEOF | |
19454 | /* end confdefs.h. */ | |
edfaf76d LK |
19455 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19456 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19457 | #define $ac_func innocuous_$ac_func | |
19458 | ||
087121cc | 19459 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19460 | which can conflict with char $ac_func (); below. |
19461 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19462 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 19463 | |
19650fd6 AS |
19464 | #ifdef __STDC__ |
19465 | # include <limits.h> | |
19466 | #else | |
19467 | # include <assert.h> | |
19468 | #endif | |
edfaf76d LK |
19469 | |
19470 | #undef $ac_func | |
19471 | ||
d6e01aa5 KL |
19472 | /* Override any GCC internal prototype to avoid an error. |
19473 | Use char because int might match the return type of a GCC | |
19474 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19475 | #ifdef __cplusplus |
19476 | extern "C" | |
19477 | #endif | |
503d2be0 | 19478 | char $ac_func (); |
087121cc GM |
19479 | /* The GNU C library defines this for functions which it implements |
19480 | to always fail with ENOSYS. Some functions are actually named | |
19481 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 19482 | #if defined __stub_$ac_func || defined __stub___$ac_func |
087121cc | 19483 | choke me |
087121cc GM |
19484 | #endif |
19485 | ||
19650fd6 AS |
19486 | int |
19487 | main () | |
19488 | { | |
d6e01aa5 | 19489 | return $ac_func (); |
503d2be0 AS |
19490 | ; |
19491 | return 0; | |
19492 | } | |
19493 | _ACEOF | |
19494 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
19495 | if { (ac_try="$ac_link" |
19496 | case "(($ac_try" in | |
19497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19498 | *) ac_try_echo=$ac_try;; | |
19499 | esac | |
19500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19501 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 19502 | ac_status=$? |
edfaf76d LK |
19503 | grep -v '^ *+' conftest.er1 >conftest.err |
19504 | rm -f conftest.er1 | |
19505 | cat conftest.err >&5 | |
c0d27fcc | 19506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
19507 | (exit $ac_status); } && { |
19508 | test -z "$ac_c_werror_flag" || | |
19509 | test ! -s conftest.err | |
19510 | } && test -s conftest$ac_exeext && | |
19511 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19512 | eval "$as_ac_var=yes" |
19513 | else | |
19514 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19515 | sed 's/^/| /' conftest.$ac_ext >&5 |
19516 | ||
d6e01aa5 | 19517 | eval "$as_ac_var=no" |
503d2be0 | 19518 | fi |
d6e01aa5 KL |
19519 | |
19520 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 19521 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 19522 | fi |
d6e01aa5 KL |
19523 | ac_res=`eval echo '${'$as_ac_var'}'` |
19524 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19525 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 19526 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 19527 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19528 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 19529 | _ACEOF |
087121cc | 19530 | |
087121cc GM |
19531 | fi |
19532 | done | |
19533 | ||
c0d27fcc | 19534 | |
ba4481b5 DL |
19535 | # Check this now, so that we will NOT find the above functions in ncurses. |
19536 | # That is because we have not set up to link ncurses in lib-src. | |
19537 | # It's better to believe a function is not available | |
19538 | # than to expect to find it in ncurses. | |
503d2be0 | 19539 | |
d6e01aa5 KL |
19540 | { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5 |
19541 | echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; } | |
503d2be0 AS |
19542 | if test "${ac_cv_lib_ncurses_tparm+set}" = set; then |
19543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 19544 | else |
503d2be0 | 19545 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 19546 | LIBS="-lncurses $LIBS" |
503d2be0 | 19547 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19548 | /* confdefs.h. */ |
19549 | _ACEOF | |
19550 | cat confdefs.h >>conftest.$ac_ext | |
19551 | cat >>conftest.$ac_ext <<_ACEOF | |
19552 | /* end confdefs.h. */ | |
503d2be0 | 19553 | |
d6e01aa5 KL |
19554 | /* Override any GCC internal prototype to avoid an error. |
19555 | Use char because int might match the return type of a GCC | |
19556 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19557 | #ifdef __cplusplus |
19558 | extern "C" | |
19559 | #endif | |
503d2be0 AS |
19560 | char tparm (); |
19561 | int | |
19562 | main () | |
19563 | { | |
d6e01aa5 | 19564 | return tparm (); |
503d2be0 AS |
19565 | ; |
19566 | return 0; | |
19567 | } | |
19568 | _ACEOF | |
19569 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
19570 | if { (ac_try="$ac_link" |
19571 | case "(($ac_try" in | |
19572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19573 | *) ac_try_echo=$ac_try;; | |
19574 | esac | |
19575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19576 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 19577 | ac_status=$? |
edfaf76d LK |
19578 | grep -v '^ *+' conftest.er1 >conftest.err |
19579 | rm -f conftest.er1 | |
19580 | cat conftest.err >&5 | |
c0d27fcc | 19581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
19582 | (exit $ac_status); } && { |
19583 | test -z "$ac_c_werror_flag" || | |
19584 | test ! -s conftest.err | |
19585 | } && test -s conftest$ac_exeext && | |
19586 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19587 | ac_cv_lib_ncurses_tparm=yes |
19588 | else | |
19589 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19590 | sed 's/^/| /' conftest.$ac_ext >&5 |
19591 | ||
d6e01aa5 | 19592 | ac_cv_lib_ncurses_tparm=no |
503d2be0 | 19593 | fi |
d6e01aa5 KL |
19594 | |
19595 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 19596 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
19597 | LIBS=$ac_check_lib_save_LIBS |
19598 | fi | |
d6e01aa5 KL |
19599 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5 |
19600 | echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; } | |
503d2be0 | 19601 | if test $ac_cv_lib_ncurses_tparm = yes; then |
c0d27fcc | 19602 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19603 | #define HAVE_LIBNCURSES 1 |
c0d27fcc | 19604 | _ACEOF |
ba4481b5 DL |
19605 | |
19606 | LIBS="-lncurses $LIBS" | |
19607 | ||
ba4481b5 DL |
19608 | fi |
19609 | ||
c0d27fcc | 19610 | |
bc3512d0 CY |
19611 | # Do we have res_init, for detecting changes in /etc/resolv.conf? |
19612 | ||
19613 | resolv=no | |
19614 | { echo "$as_me:$LINENO: checking for res_init" >&5 | |
19615 | echo $ECHO_N "checking for res_init... $ECHO_C" >&6; } | |
19616 | if test "${ac_cv_func_res_init+set}" = set; then | |
19617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19618 | else | |
19619 | cat >conftest.$ac_ext <<_ACEOF | |
19620 | /* confdefs.h. */ | |
19621 | _ACEOF | |
19622 | cat confdefs.h >>conftest.$ac_ext | |
19623 | cat >>conftest.$ac_ext <<_ACEOF | |
19624 | /* end confdefs.h. */ | |
19625 | /* Define res_init to an innocuous variant, in case <limits.h> declares res_init. | |
19626 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19627 | #define res_init innocuous_res_init | |
19628 | ||
19629 | /* System header to define __stub macros and hopefully few prototypes, | |
19630 | which can conflict with char res_init (); below. | |
19631 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19632 | <limits.h> exists even on freestanding compilers. */ | |
19633 | ||
19634 | #ifdef __STDC__ | |
19635 | # include <limits.h> | |
19636 | #else | |
19637 | # include <assert.h> | |
19638 | #endif | |
19639 | ||
19640 | #undef res_init | |
19641 | ||
19642 | /* Override any GCC internal prototype to avoid an error. | |
19643 | Use char because int might match the return type of a GCC | |
19644 | builtin and then its argument prototype would still apply. */ | |
19645 | #ifdef __cplusplus | |
19646 | extern "C" | |
19647 | #endif | |
19648 | char res_init (); | |
19649 | /* The GNU C library defines this for functions which it implements | |
19650 | to always fail with ENOSYS. Some functions are actually named | |
19651 | something starting with __ and the normal name is an alias. */ | |
19652 | #if defined __stub_res_init || defined __stub___res_init | |
19653 | choke me | |
19654 | #endif | |
19655 | ||
19656 | int | |
19657 | main () | |
19658 | { | |
19659 | return res_init (); | |
19660 | ; | |
19661 | return 0; | |
19662 | } | |
19663 | _ACEOF | |
19664 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19665 | if { (ac_try="$ac_link" | |
19666 | case "(($ac_try" in | |
19667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19668 | *) ac_try_echo=$ac_try;; | |
19669 | esac | |
19670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19671 | (eval "$ac_link") 2>conftest.er1 | |
19672 | ac_status=$? | |
19673 | grep -v '^ *+' conftest.er1 >conftest.err | |
19674 | rm -f conftest.er1 | |
19675 | cat conftest.err >&5 | |
19676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19677 | (exit $ac_status); } && { | |
19678 | test -z "$ac_c_werror_flag" || | |
19679 | test ! -s conftest.err | |
19680 | } && test -s conftest$ac_exeext && | |
19681 | $as_test_x conftest$ac_exeext; then | |
19682 | ac_cv_func_res_init=yes | |
19683 | else | |
19684 | echo "$as_me: failed program was:" >&5 | |
19685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19686 | ||
19687 | ac_cv_func_res_init=no | |
19688 | fi | |
19689 | ||
19690 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19691 | conftest$ac_exeext conftest.$ac_ext | |
19692 | fi | |
19693 | { echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5 | |
19694 | echo "${ECHO_T}$ac_cv_func_res_init" >&6; } | |
19695 | if test $ac_cv_func_res_init = yes; then | |
19696 | have_res_init=yes | |
19697 | else | |
19698 | have_res_init=no | |
19699 | fi | |
19700 | ||
19701 | if test "$have_res_init" = no; then | |
19702 | OLIBS="$LIBS" | |
19703 | LIBS="$LIBS -lresolv" | |
19704 | { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5 | |
19705 | echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; } | |
19706 | cat >conftest.$ac_ext <<_ACEOF | |
19707 | /* confdefs.h. */ | |
19708 | _ACEOF | |
19709 | cat confdefs.h >>conftest.$ac_ext | |
19710 | cat >>conftest.$ac_ext <<_ACEOF | |
19711 | /* end confdefs.h. */ | |
19712 | #include <netinet/in.h> | |
19713 | #include <arpa/nameser.h> | |
19714 | #include <resolv.h> | |
19715 | int | |
19716 | main () | |
19717 | { | |
19718 | res_init(); | |
19719 | ; | |
19720 | return 0; | |
19721 | } | |
19722 | _ACEOF | |
19723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19724 | if { (ac_try="$ac_link" | |
19725 | case "(($ac_try" in | |
19726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19727 | *) ac_try_echo=$ac_try;; | |
19728 | esac | |
19729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19730 | (eval "$ac_link") 2>conftest.er1 | |
19731 | ac_status=$? | |
19732 | grep -v '^ *+' conftest.er1 >conftest.err | |
19733 | rm -f conftest.er1 | |
19734 | cat conftest.err >&5 | |
19735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19736 | (exit $ac_status); } && { | |
19737 | test -z "$ac_c_werror_flag" || | |
19738 | test ! -s conftest.err | |
19739 | } && test -s conftest$ac_exeext && | |
19740 | $as_test_x conftest$ac_exeext; then | |
19741 | have_res_init=yes | |
19742 | else | |
19743 | echo "$as_me: failed program was:" >&5 | |
19744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19745 | ||
19746 | have_res_init=no | |
19747 | fi | |
19748 | ||
19749 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19750 | conftest$ac_exeext conftest.$ac_ext | |
19751 | { echo "$as_me:$LINENO: result: $have_res_init" >&5 | |
19752 | echo "${ECHO_T}$have_res_init" >&6; } | |
19753 | if test "$have_res_init" = yes ; then | |
19754 | resolv=yes | |
19755 | fi | |
19756 | LIBS="$OLIBS" | |
19757 | fi | |
19758 | ||
19759 | if test "$have_res_init" = yes; then | |
19760 | ||
19761 | cat >>confdefs.h <<\_ACEOF | |
19762 | #define HAVE_RES_INIT 1 | |
19763 | _ACEOF | |
19764 | ||
19765 | fi | |
19766 | ||
84e70f78 KR |
19767 | # Do we need the Hesiod library to provide the support routines? |
19768 | if test "$with_hesiod" = yes ; then | |
19769 | # Don't set $LIBS here -- see comments above. | |
d6e01aa5 KL |
19770 | { echo "$as_me:$LINENO: checking for res_send" >&5 |
19771 | echo $ECHO_N "checking for res_send... $ECHO_C" >&6; } | |
84e70f78 KR |
19772 | if test "${ac_cv_func_res_send+set}" = set; then |
19773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19774 | else | |
19775 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19776 | /* confdefs.h. */ |
19777 | _ACEOF | |
19778 | cat confdefs.h >>conftest.$ac_ext | |
19779 | cat >>conftest.$ac_ext <<_ACEOF | |
19780 | /* end confdefs.h. */ | |
edfaf76d LK |
19781 | /* Define res_send to an innocuous variant, in case <limits.h> declares res_send. |
19782 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19783 | #define res_send innocuous_res_send | |
19784 | ||
84e70f78 | 19785 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19786 | which can conflict with char res_send (); below. |
19787 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19788 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 19789 | |
19650fd6 AS |
19790 | #ifdef __STDC__ |
19791 | # include <limits.h> | |
19792 | #else | |
19793 | # include <assert.h> | |
19794 | #endif | |
edfaf76d LK |
19795 | |
19796 | #undef res_send | |
19797 | ||
d6e01aa5 KL |
19798 | /* Override any GCC internal prototype to avoid an error. |
19799 | Use char because int might match the return type of a GCC | |
19800 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
19801 | #ifdef __cplusplus |
19802 | extern "C" | |
19803 | #endif | |
84e70f78 | 19804 | char res_send (); |
84e70f78 KR |
19805 | /* The GNU C library defines this for functions which it implements |
19806 | to always fail with ENOSYS. Some functions are actually named | |
19807 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 19808 | #if defined __stub_res_send || defined __stub___res_send |
84e70f78 | 19809 | choke me |
cd958eb3 MB |
19810 | #endif |
19811 | ||
19650fd6 AS |
19812 | int |
19813 | main () | |
19814 | { | |
d6e01aa5 | 19815 | return res_send (); |
84e70f78 KR |
19816 | ; |
19817 | return 0; | |
19818 | } | |
19819 | _ACEOF | |
19820 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
19821 | if { (ac_try="$ac_link" |
19822 | case "(($ac_try" in | |
19823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19824 | *) ac_try_echo=$ac_try;; | |
19825 | esac | |
19826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19827 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 19828 | ac_status=$? |
edfaf76d LK |
19829 | grep -v '^ *+' conftest.er1 >conftest.err |
19830 | rm -f conftest.er1 | |
19831 | cat conftest.err >&5 | |
c0d27fcc | 19832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
19833 | (exit $ac_status); } && { |
19834 | test -z "$ac_c_werror_flag" || | |
19835 | test ! -s conftest.err | |
19836 | } && test -s conftest$ac_exeext && | |
19837 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
19838 | ac_cv_func_res_send=yes |
19839 | else | |
19840 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19841 | sed 's/^/| /' conftest.$ac_ext >&5 |
19842 | ||
d6e01aa5 | 19843 | ac_cv_func_res_send=no |
84e70f78 | 19844 | fi |
d6e01aa5 KL |
19845 | |
19846 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 19847 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 | 19848 | fi |
d6e01aa5 KL |
19849 | { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 |
19850 | echo "${ECHO_T}$ac_cv_func_res_send" >&6; } | |
84e70f78 KR |
19851 | if test $ac_cv_func_res_send = yes; then |
19852 | : | |
19853 | else | |
d6e01aa5 KL |
19854 | { echo "$as_me:$LINENO: checking for __res_send" >&5 |
19855 | echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; } | |
84e70f78 KR |
19856 | if test "${ac_cv_func___res_send+set}" = set; then |
19857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19858 | else | |
19859 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19860 | /* confdefs.h. */ |
19861 | _ACEOF | |
19862 | cat confdefs.h >>conftest.$ac_ext | |
19863 | cat >>conftest.$ac_ext <<_ACEOF | |
19864 | /* end confdefs.h. */ | |
edfaf76d LK |
19865 | /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send. |
19866 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19867 | #define __res_send innocuous___res_send | |
19868 | ||
84e70f78 | 19869 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19870 | which can conflict with char __res_send (); below. |
19871 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19872 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 19873 | |
19650fd6 AS |
19874 | #ifdef __STDC__ |
19875 | # include <limits.h> | |
19876 | #else | |
19877 | # include <assert.h> | |
19878 | #endif | |
edfaf76d LK |
19879 | |
19880 | #undef __res_send | |
19881 | ||
d6e01aa5 KL |
19882 | /* Override any GCC internal prototype to avoid an error. |
19883 | Use char because int might match the return type of a GCC | |
19884 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
19885 | #ifdef __cplusplus |
19886 | extern "C" | |
19887 | #endif | |
84e70f78 | 19888 | char __res_send (); |
84e70f78 KR |
19889 | /* The GNU C library defines this for functions which it implements |
19890 | to always fail with ENOSYS. Some functions are actually named | |
19891 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 19892 | #if defined __stub___res_send || defined __stub_____res_send |
84e70f78 | 19893 | choke me |
84e70f78 KR |
19894 | #endif |
19895 | ||
19650fd6 AS |
19896 | int |
19897 | main () | |
19898 | { | |
d6e01aa5 | 19899 | return __res_send (); |
84e70f78 KR |
19900 | ; |
19901 | return 0; | |
19902 | } | |
19903 | _ACEOF | |
19904 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
19905 | if { (ac_try="$ac_link" |
19906 | case "(($ac_try" in | |
19907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19908 | *) ac_try_echo=$ac_try;; | |
19909 | esac | |
19910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19911 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 19912 | ac_status=$? |
edfaf76d LK |
19913 | grep -v '^ *+' conftest.er1 >conftest.err |
19914 | rm -f conftest.er1 | |
19915 | cat conftest.err >&5 | |
c0d27fcc | 19916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
19917 | (exit $ac_status); } && { |
19918 | test -z "$ac_c_werror_flag" || | |
19919 | test ! -s conftest.err | |
19920 | } && test -s conftest$ac_exeext && | |
19921 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
19922 | ac_cv_func___res_send=yes |
19923 | else | |
19924 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19925 | sed 's/^/| /' conftest.$ac_ext >&5 |
19926 | ||
d6e01aa5 | 19927 | ac_cv_func___res_send=no |
84e70f78 | 19928 | fi |
d6e01aa5 KL |
19929 | |
19930 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 19931 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 | 19932 | fi |
d6e01aa5 KL |
19933 | { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5 |
19934 | echo "${ECHO_T}$ac_cv_func___res_send" >&6; } | |
84e70f78 KR |
19935 | if test $ac_cv_func___res_send = yes; then |
19936 | : | |
19937 | else | |
d6e01aa5 KL |
19938 | { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 |
19939 | echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; } | |
84e70f78 KR |
19940 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then |
19941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19942 | else | |
19943 | ac_check_lib_save_LIBS=$LIBS | |
19944 | LIBS="-lresolv $LIBS" | |
19945 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19946 | /* confdefs.h. */ |
19947 | _ACEOF | |
19948 | cat confdefs.h >>conftest.$ac_ext | |
19949 | cat >>conftest.$ac_ext <<_ACEOF | |
19950 | /* end confdefs.h. */ | |
84e70f78 | 19951 | |
d6e01aa5 KL |
19952 | /* Override any GCC internal prototype to avoid an error. |
19953 | Use char because int might match the return type of a GCC | |
19954 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
19955 | #ifdef __cplusplus |
19956 | extern "C" | |
19957 | #endif | |
84e70f78 KR |
19958 | char res_send (); |
19959 | int | |
19960 | main () | |
19961 | { | |
d6e01aa5 | 19962 | return res_send (); |
84e70f78 KR |
19963 | ; |
19964 | return 0; | |
19965 | } | |
19966 | _ACEOF | |
19967 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
19968 | if { (ac_try="$ac_link" |
19969 | case "(($ac_try" in | |
19970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19971 | *) ac_try_echo=$ac_try;; | |
19972 | esac | |
19973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19974 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 19975 | ac_status=$? |
edfaf76d LK |
19976 | grep -v '^ *+' conftest.er1 >conftest.err |
19977 | rm -f conftest.er1 | |
19978 | cat conftest.err >&5 | |
c0d27fcc | 19979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
19980 | (exit $ac_status); } && { |
19981 | test -z "$ac_c_werror_flag" || | |
19982 | test ! -s conftest.err | |
19983 | } && test -s conftest$ac_exeext && | |
19984 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
19985 | ac_cv_lib_resolv_res_send=yes |
19986 | else | |
19987 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19988 | sed 's/^/| /' conftest.$ac_ext >&5 |
19989 | ||
d6e01aa5 | 19990 | ac_cv_lib_resolv_res_send=no |
84e70f78 | 19991 | fi |
d6e01aa5 KL |
19992 | |
19993 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 19994 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 KR |
19995 | LIBS=$ac_check_lib_save_LIBS |
19996 | fi | |
d6e01aa5 KL |
19997 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 |
19998 | echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; } | |
84e70f78 KR |
19999 | if test $ac_cv_lib_resolv_res_send = yes; then |
20000 | resolv=yes | |
20001 | else | |
d6e01aa5 KL |
20002 | { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 |
20003 | echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; } | |
84e70f78 KR |
20004 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then |
20005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20006 | else | |
20007 | ac_check_lib_save_LIBS=$LIBS | |
20008 | LIBS="-lresolv $LIBS" | |
20009 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20010 | /* confdefs.h. */ |
20011 | _ACEOF | |
20012 | cat confdefs.h >>conftest.$ac_ext | |
20013 | cat >>conftest.$ac_ext <<_ACEOF | |
20014 | /* end confdefs.h. */ | |
84e70f78 | 20015 | |
d6e01aa5 KL |
20016 | /* Override any GCC internal prototype to avoid an error. |
20017 | Use char because int might match the return type of a GCC | |
20018 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
20019 | #ifdef __cplusplus |
20020 | extern "C" | |
20021 | #endif | |
84e70f78 KR |
20022 | char __res_send (); |
20023 | int | |
20024 | main () | |
20025 | { | |
d6e01aa5 | 20026 | return __res_send (); |
84e70f78 KR |
20027 | ; |
20028 | return 0; | |
20029 | } | |
20030 | _ACEOF | |
20031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
20032 | if { (ac_try="$ac_link" |
20033 | case "(($ac_try" in | |
20034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20035 | *) ac_try_echo=$ac_try;; | |
20036 | esac | |
20037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20038 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 20039 | ac_status=$? |
edfaf76d LK |
20040 | grep -v '^ *+' conftest.er1 >conftest.err |
20041 | rm -f conftest.er1 | |
20042 | cat conftest.err >&5 | |
c0d27fcc | 20043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
20044 | (exit $ac_status); } && { |
20045 | test -z "$ac_c_werror_flag" || | |
20046 | test ! -s conftest.err | |
20047 | } && test -s conftest$ac_exeext && | |
20048 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
20049 | ac_cv_lib_resolv___res_send=yes |
20050 | else | |
20051 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20052 | sed 's/^/| /' conftest.$ac_ext >&5 |
20053 | ||
d6e01aa5 | 20054 | ac_cv_lib_resolv___res_send=no |
84e70f78 | 20055 | fi |
d6e01aa5 KL |
20056 | |
20057 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 20058 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 KR |
20059 | LIBS=$ac_check_lib_save_LIBS |
20060 | fi | |
d6e01aa5 KL |
20061 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 |
20062 | echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; } | |
84e70f78 KR |
20063 | if test $ac_cv_lib_resolv___res_send = yes; then |
20064 | resolv=yes | |
20065 | fi | |
20066 | ||
20067 | fi | |
20068 | ||
20069 | fi | |
20070 | ||
20071 | fi | |
20072 | ||
20073 | if test "$resolv" = yes ; then | |
20074 | RESOLVLIB=-lresolv | |
84e70f78 KR |
20075 | else |
20076 | RESOLVLIB= | |
20077 | fi | |
d6e01aa5 KL |
20078 | { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 |
20079 | echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; } | |
84e70f78 KR |
20080 | if test "${ac_cv_func_hes_getmailhost+set}" = set; then |
20081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20082 | else | |
20083 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20084 | /* confdefs.h. */ |
20085 | _ACEOF | |
20086 | cat confdefs.h >>conftest.$ac_ext | |
20087 | cat >>conftest.$ac_ext <<_ACEOF | |
20088 | /* end confdefs.h. */ | |
edfaf76d LK |
20089 | /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost. |
20090 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20091 | #define hes_getmailhost innocuous_hes_getmailhost | |
20092 | ||
84e70f78 | 20093 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
20094 | which can conflict with char hes_getmailhost (); below. |
20095 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20096 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 20097 | |
19650fd6 AS |
20098 | #ifdef __STDC__ |
20099 | # include <limits.h> | |
20100 | #else | |
20101 | # include <assert.h> | |
20102 | #endif | |
edfaf76d LK |
20103 | |
20104 | #undef hes_getmailhost | |
20105 | ||
d6e01aa5 KL |
20106 | /* Override any GCC internal prototype to avoid an error. |
20107 | Use char because int might match the return type of a GCC | |
20108 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
20109 | #ifdef __cplusplus |
20110 | extern "C" | |
20111 | #endif | |
84e70f78 | 20112 | char hes_getmailhost (); |
84e70f78 KR |
20113 | /* The GNU C library defines this for functions which it implements |
20114 | to always fail with ENOSYS. Some functions are actually named | |
20115 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 20116 | #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost |
84e70f78 | 20117 | choke me |
cd958eb3 MB |
20118 | #endif |
20119 | ||
19650fd6 AS |
20120 | int |
20121 | main () | |
20122 | { | |
d6e01aa5 | 20123 | return hes_getmailhost (); |
84e70f78 KR |
20124 | ; |
20125 | return 0; | |
20126 | } | |
20127 | _ACEOF | |
20128 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
20129 | if { (ac_try="$ac_link" |
20130 | case "(($ac_try" in | |
20131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20132 | *) ac_try_echo=$ac_try;; | |
20133 | esac | |
20134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20135 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 20136 | ac_status=$? |
edfaf76d LK |
20137 | grep -v '^ *+' conftest.er1 >conftest.err |
20138 | rm -f conftest.er1 | |
20139 | cat conftest.err >&5 | |
c0d27fcc | 20140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
20141 | (exit $ac_status); } && { |
20142 | test -z "$ac_c_werror_flag" || | |
20143 | test ! -s conftest.err | |
20144 | } && test -s conftest$ac_exeext && | |
20145 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
20146 | ac_cv_func_hes_getmailhost=yes |
20147 | else | |
20148 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20149 | sed 's/^/| /' conftest.$ac_ext >&5 |
20150 | ||
d6e01aa5 | 20151 | ac_cv_func_hes_getmailhost=no |
84e70f78 | 20152 | fi |
d6e01aa5 KL |
20153 | |
20154 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 20155 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 | 20156 | fi |
d6e01aa5 KL |
20157 | { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5 |
20158 | echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; } | |
84e70f78 KR |
20159 | if test $ac_cv_func_hes_getmailhost = yes; then |
20160 | : | |
20161 | else | |
d6e01aa5 KL |
20162 | { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5 |
20163 | echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; } | |
84e70f78 KR |
20164 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then |
20165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20166 | else | |
20167 | ac_check_lib_save_LIBS=$LIBS | |
20168 | LIBS="-lhesiod $RESOLVLIB $LIBS" | |
20169 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20170 | /* confdefs.h. */ |
20171 | _ACEOF | |
20172 | cat confdefs.h >>conftest.$ac_ext | |
20173 | cat >>conftest.$ac_ext <<_ACEOF | |
20174 | /* end confdefs.h. */ | |
84e70f78 | 20175 | |
d6e01aa5 KL |
20176 | /* Override any GCC internal prototype to avoid an error. |
20177 | Use char because int might match the return type of a GCC | |
20178 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
20179 | #ifdef __cplusplus |
20180 | extern "C" | |
20181 | #endif | |
84e70f78 KR |
20182 | char hes_getmailhost (); |
20183 | int | |
20184 | main () | |
20185 | { | |
d6e01aa5 | 20186 | return hes_getmailhost (); |
84e70f78 KR |
20187 | ; |
20188 | return 0; | |
20189 | } | |
20190 | _ACEOF | |
20191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
20192 | if { (ac_try="$ac_link" |
20193 | case "(($ac_try" in | |
20194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20195 | *) ac_try_echo=$ac_try;; | |
20196 | esac | |
20197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20198 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 20199 | ac_status=$? |
edfaf76d LK |
20200 | grep -v '^ *+' conftest.er1 >conftest.err |
20201 | rm -f conftest.er1 | |
20202 | cat conftest.err >&5 | |
c0d27fcc | 20203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
20204 | (exit $ac_status); } && { |
20205 | test -z "$ac_c_werror_flag" || | |
20206 | test ! -s conftest.err | |
20207 | } && test -s conftest$ac_exeext && | |
20208 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
20209 | ac_cv_lib_hesiod_hes_getmailhost=yes |
20210 | else | |
20211 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20212 | sed 's/^/| /' conftest.$ac_ext >&5 |
20213 | ||
d6e01aa5 | 20214 | ac_cv_lib_hesiod_hes_getmailhost=no |
84e70f78 | 20215 | fi |
d6e01aa5 KL |
20216 | |
20217 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 20218 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 KR |
20219 | LIBS=$ac_check_lib_save_LIBS |
20220 | fi | |
d6e01aa5 KL |
20221 | { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
20222 | echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; } | |
84e70f78 | 20223 | if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then |
b936fae4 | 20224 | |
c0d27fcc | 20225 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 20226 | #define HAVE_LIBHESIOD 1 |
c0d27fcc | 20227 | _ACEOF |
84e70f78 KR |
20228 | |
20229 | else | |
20230 | : | |
20231 | fi | |
20232 | ||
20233 | fi | |
20234 | ||
20235 | fi | |
20236 | ||
bc3512d0 CY |
20237 | # Do we need libresolv (due to res_init or Hesiod)? |
20238 | if test "$resolv" = yes ; then | |
20239 | ||
20240 | cat >>confdefs.h <<\_ACEOF | |
20241 | #define HAVE_LIBRESOLV 1 | |
20242 | _ACEOF | |
20243 | ||
20244 | fi | |
20245 | ||
a21616bd KR |
20246 | # These tell us which Kerberos-related libraries to use. |
20247 | if test "${with_kerberos+set}" = set; then | |
503d2be0 | 20248 | |
d6e01aa5 KL |
20249 | { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 |
20250 | echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; } | |
503d2be0 AS |
20251 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then |
20252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20253 | else |
503d2be0 | 20254 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20255 | LIBS="-lcom_err $LIBS" |
503d2be0 | 20256 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20257 | /* confdefs.h. */ |
20258 | _ACEOF | |
20259 | cat confdefs.h >>conftest.$ac_ext | |
20260 | cat >>conftest.$ac_ext <<_ACEOF | |
20261 | /* end confdefs.h. */ | |
503d2be0 | 20262 | |
d6e01aa5 KL |
20263 | /* Override any GCC internal prototype to avoid an error. |
20264 | Use char because int might match the return type of a GCC | |
20265 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20266 | #ifdef __cplusplus |
20267 | extern "C" | |
20268 | #endif | |
503d2be0 AS |
20269 | char com_err (); |
20270 | int | |
20271 | main () | |
20272 | { | |
d6e01aa5 | 20273 | return com_err (); |
503d2be0 AS |
20274 | ; |
20275 | return 0; | |
20276 | } | |
20277 | _ACEOF | |
20278 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
20279 | if { (ac_try="$ac_link" |
20280 | case "(($ac_try" in | |
20281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20282 | *) ac_try_echo=$ac_try;; | |
20283 | esac | |
20284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20285 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20286 | ac_status=$? |
edfaf76d LK |
20287 | grep -v '^ *+' conftest.er1 >conftest.err |
20288 | rm -f conftest.er1 | |
20289 | cat conftest.err >&5 | |
c0d27fcc | 20290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
20291 | (exit $ac_status); } && { |
20292 | test -z "$ac_c_werror_flag" || | |
20293 | test ! -s conftest.err | |
20294 | } && test -s conftest$ac_exeext && | |
20295 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20296 | ac_cv_lib_com_err_com_err=yes |
20297 | else | |
20298 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20299 | sed 's/^/| /' conftest.$ac_ext >&5 |
20300 | ||
d6e01aa5 | 20301 | ac_cv_lib_com_err_com_err=no |
503d2be0 | 20302 | fi |
d6e01aa5 KL |
20303 | |
20304 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 20305 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20306 | LIBS=$ac_check_lib_save_LIBS |
20307 | fi | |
d6e01aa5 KL |
20308 | { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 |
20309 | echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; } | |
503d2be0 | 20310 | if test $ac_cv_lib_com_err_com_err = yes; then |
c0d27fcc | 20311 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20312 | #define HAVE_LIBCOM_ERR 1 |
c0d27fcc | 20313 | _ACEOF |
a21616bd KR |
20314 | |
20315 | LIBS="-lcom_err $LIBS" | |
20316 | ||
a21616bd KR |
20317 | fi |
20318 | ||
c0d27fcc | 20319 | |
d6e01aa5 KL |
20320 | { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
20321 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; } | |
503d2be0 AS |
20322 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then |
20323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20324 | else |
503d2be0 | 20325 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20326 | LIBS="-lk5crypto $LIBS" |
503d2be0 | 20327 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20328 | /* confdefs.h. */ |
20329 | _ACEOF | |
20330 | cat confdefs.h >>conftest.$ac_ext | |
20331 | cat >>conftest.$ac_ext <<_ACEOF | |
20332 | /* end confdefs.h. */ | |
503d2be0 | 20333 | |
d6e01aa5 KL |
20334 | /* Override any GCC internal prototype to avoid an error. |
20335 | Use char because int might match the return type of a GCC | |
20336 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20337 | #ifdef __cplusplus |
20338 | extern "C" | |
20339 | #endif | |
503d2be0 AS |
20340 | char mit_des_cbc_encrypt (); |
20341 | int | |
20342 | main () | |
20343 | { | |
d6e01aa5 | 20344 | return mit_des_cbc_encrypt (); |
503d2be0 AS |
20345 | ; |
20346 | return 0; | |
20347 | } | |
20348 | _ACEOF | |
20349 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
20350 | if { (ac_try="$ac_link" |
20351 | case "(($ac_try" in | |
20352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20353 | *) ac_try_echo=$ac_try;; | |
20354 | esac | |
20355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20356 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20357 | ac_status=$? |
edfaf76d LK |
20358 | grep -v '^ *+' conftest.er1 >conftest.err |
20359 | rm -f conftest.er1 | |
20360 | cat conftest.err >&5 | |
c0d27fcc | 20361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
20362 | (exit $ac_status); } && { |
20363 | test -z "$ac_c_werror_flag" || | |
20364 | test ! -s conftest.err | |
20365 | } && test -s conftest$ac_exeext && | |
20366 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20367 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes |
20368 | else | |
20369 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20370 | sed 's/^/| /' conftest.$ac_ext >&5 |
20371 | ||
d6e01aa5 | 20372 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no |
503d2be0 | 20373 | fi |
d6e01aa5 KL |
20374 | |
20375 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 20376 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20377 | LIBS=$ac_check_lib_save_LIBS |
20378 | fi | |
d6e01aa5 KL |
20379 | { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
20380 | echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } | |
503d2be0 | 20381 | if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then |
c0d27fcc | 20382 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20383 | #define HAVE_LIBK5CRYPTO 1 |
c0d27fcc | 20384 | _ACEOF |
a21616bd KR |
20385 | |
20386 | LIBS="-lk5crypto $LIBS" | |
20387 | ||
a21616bd KR |
20388 | fi |
20389 | ||
c0d27fcc | 20390 | |
d6e01aa5 KL |
20391 | { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
20392 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; } | |
503d2be0 AS |
20393 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then |
20394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20395 | else |
503d2be0 | 20396 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20397 | LIBS="-lcrypto $LIBS" |
503d2be0 | 20398 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20399 | /* confdefs.h. */ |
20400 | _ACEOF | |
20401 | cat confdefs.h >>conftest.$ac_ext | |
20402 | cat >>conftest.$ac_ext <<_ACEOF | |
20403 | /* end confdefs.h. */ | |
503d2be0 | 20404 | |
d6e01aa5 KL |
20405 | /* Override any GCC internal prototype to avoid an error. |
20406 | Use char because int might match the return type of a GCC | |
20407 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20408 | #ifdef __cplusplus |
20409 | extern "C" | |
20410 | #endif | |
503d2be0 AS |
20411 | char mit_des_cbc_encrypt (); |
20412 | int | |
20413 | main () | |
20414 | { | |
d6e01aa5 | 20415 | return mit_des_cbc_encrypt (); |
503d2be0 AS |
20416 | ; |
20417 | return 0; | |
20418 | } | |
20419 | _ACEOF | |
20420 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
20421 | if { (ac_try="$ac_link" |
20422 | case "(($ac_try" in | |
20423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20424 | *) ac_try_echo=$ac_try;; | |
20425 | esac | |
20426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20427 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20428 | ac_status=$? |
edfaf76d LK |
20429 | grep -v '^ *+' conftest.er1 >conftest.err |
20430 | rm -f conftest.er1 | |
20431 | cat conftest.err >&5 | |
c0d27fcc | 20432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
20433 | (exit $ac_status); } && { |
20434 | test -z "$ac_c_werror_flag" || | |
20435 | test ! -s conftest.err | |
20436 | } && test -s conftest$ac_exeext && | |
20437 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20438 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes |
20439 | else | |
20440 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20441 | sed 's/^/| /' conftest.$ac_ext >&5 |
20442 | ||
d6e01aa5 | 20443 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no |
503d2be0 | 20444 | fi |
d6e01aa5 KL |
20445 | |
20446 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 20447 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20448 | LIBS=$ac_check_lib_save_LIBS |
20449 | fi | |
d6e01aa5 KL |
20450 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
20451 | echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } | |
503d2be0 | 20452 | if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then |
c0d27fcc | 20453 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20454 | #define HAVE_LIBCRYPTO 1 |
c0d27fcc | 20455 | _ACEOF |
a21616bd KR |
20456 | |
20457 | LIBS="-lcrypto $LIBS" | |
20458 | ||
a21616bd KR |
20459 | fi |
20460 | ||
c0d27fcc | 20461 | |
d6e01aa5 KL |
20462 | { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 |
20463 | echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; } | |
503d2be0 AS |
20464 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then |
20465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20466 | else |
503d2be0 | 20467 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20468 | LIBS="-lkrb5 $LIBS" |
503d2be0 | 20469 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20470 | /* confdefs.h. */ |
20471 | _ACEOF | |
20472 | cat confdefs.h >>conftest.$ac_ext | |
20473 | cat >>conftest.$ac_ext <<_ACEOF | |
20474 | /* end confdefs.h. */ | |
a21616bd | 20475 | |
d6e01aa5 KL |
20476 | /* Override any GCC internal prototype to avoid an error. |
20477 | Use char because int might match the return type of a GCC | |
20478 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20479 | #ifdef __cplusplus |
20480 | extern "C" | |
20481 | #endif | |
503d2be0 AS |
20482 | char krb5_init_context (); |
20483 | int | |
20484 | main () | |
20485 | { | |
d6e01aa5 | 20486 | return krb5_init_context (); |
503d2be0 AS |
20487 | ; |
20488 | return 0; | |
20489 | } | |
20490 | _ACEOF | |
20491 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
20492 | if { (ac_try="$ac_link" |
20493 | case "(($ac_try" in | |
20494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20495 | *) ac_try_echo=$ac_try;; | |
20496 | esac | |
20497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20498 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20499 | ac_status=$? |
edfaf76d LK |
20500 | grep -v '^ *+' conftest.er1 >conftest.err |
20501 | rm -f conftest.er1 | |
20502 | cat conftest.err >&5 | |
c0d27fcc | 20503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
20504 | (exit $ac_status); } && { |
20505 | test -z "$ac_c_werror_flag" || | |
20506 | test ! -s conftest.err | |
20507 | } && test -s conftest$ac_exeext && | |
20508 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20509 | ac_cv_lib_krb5_krb5_init_context=yes |
20510 | else | |
20511 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20512 | sed 's/^/| /' conftest.$ac_ext >&5 |
20513 | ||
d6e01aa5 | 20514 | ac_cv_lib_krb5_krb5_init_context=no |
503d2be0 | 20515 | fi |
d6e01aa5 KL |
20516 | |
20517 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 20518 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20519 | LIBS=$ac_check_lib_save_LIBS |
20520 | fi | |
d6e01aa5 KL |
20521 | { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
20522 | echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; } | |
503d2be0 | 20523 | if test $ac_cv_lib_krb5_krb5_init_context = yes; then |
c0d27fcc | 20524 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20525 | #define HAVE_LIBKRB5 1 |
c0d27fcc | 20526 | _ACEOF |
a21616bd KR |
20527 | |
20528 | LIBS="-lkrb5 $LIBS" | |
20529 | ||
a21616bd KR |
20530 | fi |
20531 | ||
20532 | if test "${with_kerberos5+set}" != set; then | |
503d2be0 | 20533 | |
d6e01aa5 KL |
20534 | { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 |
20535 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; } | |
503d2be0 AS |
20536 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then |
20537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20538 | else |
503d2be0 | 20539 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20540 | LIBS="-ldes425 $LIBS" |
503d2be0 | 20541 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20542 | /* confdefs.h. */ |
20543 | _ACEOF | |
20544 | cat confdefs.h >>conftest.$ac_ext | |
20545 | cat >>conftest.$ac_ext <<_ACEOF | |
20546 | /* end confdefs.h. */ | |
503d2be0 | 20547 | |
d6e01aa5 KL |
20548 | /* Override any GCC internal prototype to avoid an error. |
20549 | Use char because int might match the return type of a GCC | |
20550 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20551 | #ifdef __cplusplus |
20552 | extern "C" | |
20553 | #endif | |
503d2be0 AS |
20554 | char des_cbc_encrypt (); |
20555 | int | |
20556 | main () | |
20557 | { | |
d6e01aa5 | 20558 | return des_cbc_encrypt (); |
503d2be0 AS |
20559 | ; |
20560 | return 0; | |
20561 | } | |
20562 | _ACEOF | |
20563 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
20564 | if { (ac_try="$ac_link" |
20565 | case "(($ac_try" in | |
20566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20567 | *) ac_try_echo=$ac_try;; | |
20568 | esac | |
20569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20570 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20571 | ac_status=$? |
edfaf76d LK |
20572 | grep -v '^ *+' conftest.er1 >conftest.err |
20573 | rm -f conftest.er1 | |
20574 | cat conftest.err >&5 | |
c0d27fcc | 20575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
20576 | (exit $ac_status); } && { |
20577 | test -z "$ac_c_werror_flag" || | |
20578 | test ! -s conftest.err | |
20579 | } && test -s conftest$ac_exeext && | |
20580 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20581 | ac_cv_lib_des425_des_cbc_encrypt=yes |
20582 | else | |
20583 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20584 | sed 's/^/| /' conftest.$ac_ext >&5 |
20585 | ||
d6e01aa5 | 20586 | ac_cv_lib_des425_des_cbc_encrypt=no |
503d2be0 | 20587 | fi |
d6e01aa5 KL |
20588 | |
20589 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 20590 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20591 | LIBS=$ac_check_lib_save_LIBS |
20592 | fi | |
d6e01aa5 KL |
20593 | { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
20594 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; } | |
503d2be0 | 20595 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then |
c0d27fcc | 20596 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20597 | #define HAVE_LIBDES425 1 |
c0d27fcc | 20598 | _ACEOF |
a21616bd KR |
20599 | |
20600 | LIBS="-ldes425 $LIBS" | |
20601 | ||
20602 | else | |
503d2be0 | 20603 | |
d6e01aa5 KL |
20604 | { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 |
20605 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; } | |
503d2be0 AS |
20606 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then |
20607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20608 | else |
503d2be0 | 20609 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20610 | LIBS="-ldes $LIBS" |
503d2be0 | 20611 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20612 | /* confdefs.h. */ |
20613 | _ACEOF | |
20614 | cat confdefs.h >>conftest.$ac_ext | |
20615 | cat >>conftest.$ac_ext <<_ACEOF | |
20616 | /* end confdefs.h. */ | |
503d2be0 | 20617 | |
d6e01aa5 KL |
20618 | /* Override any GCC internal prototype to avoid an error. |
20619 | Use char because int might match the return type of a GCC | |
20620 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20621 | #ifdef __cplusplus |
20622 | extern "C" | |
20623 | #endif | |
503d2be0 AS |
20624 | char des_cbc_encrypt (); |
20625 | int | |
20626 | main () | |
20627 | { | |
d6e01aa5 | 20628 | return des_cbc_encrypt (); |
503d2be0 AS |
20629 | ; |
20630 | return 0; | |
20631 | } | |
20632 | _ACEOF | |
20633 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
20634 | if { (ac_try="$ac_link" |
20635 | case "(($ac_try" in | |
20636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20637 | *) ac_try_echo=$ac_try;; | |
20638 | esac | |
20639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20640 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20641 | ac_status=$? |
edfaf76d LK |
20642 | grep -v '^ *+' conftest.er1 >conftest.err |
20643 | rm -f conftest.er1 | |
20644 | cat conftest.err >&5 | |
c0d27fcc | 20645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
20646 | (exit $ac_status); } && { |
20647 | test -z "$ac_c_werror_flag" || | |
20648 | test ! -s conftest.err | |
20649 | } && test -s conftest$ac_exeext && | |
20650 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20651 | ac_cv_lib_des_des_cbc_encrypt=yes |
20652 | else | |
20653 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20654 | sed 's/^/| /' conftest.$ac_ext >&5 |
20655 | ||
d6e01aa5 | 20656 | ac_cv_lib_des_des_cbc_encrypt=no |
503d2be0 | 20657 | fi |
d6e01aa5 KL |
20658 | |
20659 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 20660 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20661 | LIBS=$ac_check_lib_save_LIBS |
20662 | fi | |
d6e01aa5 KL |
20663 | { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
20664 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; } | |
503d2be0 | 20665 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then |
c0d27fcc | 20666 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20667 | #define HAVE_LIBDES 1 |
c0d27fcc | 20668 | _ACEOF |
a21616bd KR |
20669 | |
20670 | LIBS="-ldes $LIBS" | |
20671 | ||
a21616bd KR |
20672 | fi |
20673 | ||
20674 | fi | |
20675 | ||
c0d27fcc | 20676 | |
d6e01aa5 KL |
20677 | { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 |
20678 | echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; } | |
503d2be0 AS |
20679 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then |
20680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20681 | else |
503d2be0 | 20682 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20683 | LIBS="-lkrb4 $LIBS" |
503d2be0 | 20684 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20685 | /* confdefs.h. */ |
20686 | _ACEOF | |
20687 | cat confdefs.h >>conftest.$ac_ext | |
20688 | cat >>conftest.$ac_ext <<_ACEOF | |
20689 | /* end confdefs.h. */ | |
503d2be0 | 20690 | |
d6e01aa5 KL |
20691 | /* Override any GCC internal prototype to avoid an error. |
20692 | Use char because int might match the return type of a GCC | |
20693 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20694 | #ifdef __cplusplus |
20695 | extern "C" | |
20696 | #endif | |
503d2be0 AS |
20697 | char krb_get_cred (); |
20698 | int | |
20699 | main () | |
20700 | { | |
d6e01aa5 | 20701 | return krb_get_cred (); |
503d2be0 AS |
20702 | ; |
20703 | return 0; | |
20704 | } | |
20705 | _ACEOF | |
20706 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
20707 | if { (ac_try="$ac_link" |
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_link") 2>conftest.er1 | |
503d2be0 | 20714 | ac_status=$? |
edfaf76d LK |
20715 | grep -v '^ *+' conftest.er1 >conftest.err |
20716 | rm -f conftest.er1 | |
20717 | cat conftest.err >&5 | |
c0d27fcc | 20718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
20719 | (exit $ac_status); } && { |
20720 | test -z "$ac_c_werror_flag" || | |
20721 | test ! -s conftest.err | |
20722 | } && test -s conftest$ac_exeext && | |
20723 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20724 | ac_cv_lib_krb4_krb_get_cred=yes |
20725 | else | |
20726 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20727 | sed 's/^/| /' conftest.$ac_ext >&5 |
20728 | ||
d6e01aa5 | 20729 | ac_cv_lib_krb4_krb_get_cred=no |
503d2be0 | 20730 | fi |
d6e01aa5 KL |
20731 | |
20732 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 20733 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20734 | LIBS=$ac_check_lib_save_LIBS |
20735 | fi | |
d6e01aa5 KL |
20736 | { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
20737 | echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; } | |
503d2be0 | 20738 | if test $ac_cv_lib_krb4_krb_get_cred = yes; then |
c0d27fcc | 20739 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20740 | #define HAVE_LIBKRB4 1 |
c0d27fcc | 20741 | _ACEOF |
a21616bd KR |
20742 | |
20743 | LIBS="-lkrb4 $LIBS" | |
20744 | ||
20745 | else | |
503d2be0 | 20746 | |
d6e01aa5 KL |
20747 | { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 |
20748 | echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; } | |
503d2be0 AS |
20749 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then |
20750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20751 | else |
503d2be0 | 20752 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20753 | LIBS="-lkrb $LIBS" |
503d2be0 | 20754 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20755 | /* confdefs.h. */ |
20756 | _ACEOF | |
20757 | cat confdefs.h >>conftest.$ac_ext | |
20758 | cat >>conftest.$ac_ext <<_ACEOF | |
20759 | /* end confdefs.h. */ | |
503d2be0 | 20760 | |
d6e01aa5 KL |
20761 | /* Override any GCC internal prototype to avoid an error. |
20762 | Use char because int might match the return type of a GCC | |
20763 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20764 | #ifdef __cplusplus |
20765 | extern "C" | |
20766 | #endif | |
503d2be0 AS |
20767 | char krb_get_cred (); |
20768 | int | |
20769 | main () | |
20770 | { | |
d6e01aa5 | 20771 | return krb_get_cred (); |
503d2be0 AS |
20772 | ; |
20773 | return 0; | |
20774 | } | |
20775 | _ACEOF | |
20776 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
20777 | if { (ac_try="$ac_link" |
20778 | case "(($ac_try" in | |
20779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20780 | *) ac_try_echo=$ac_try;; | |
20781 | esac | |
20782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20783 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20784 | ac_status=$? |
edfaf76d LK |
20785 | grep -v '^ *+' conftest.er1 >conftest.err |
20786 | rm -f conftest.er1 | |
20787 | cat conftest.err >&5 | |
c0d27fcc | 20788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
20789 | (exit $ac_status); } && { |
20790 | test -z "$ac_c_werror_flag" || | |
20791 | test ! -s conftest.err | |
20792 | } && test -s conftest$ac_exeext && | |
20793 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20794 | ac_cv_lib_krb_krb_get_cred=yes |
20795 | else | |
20796 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20797 | sed 's/^/| /' conftest.$ac_ext >&5 |
20798 | ||
d6e01aa5 | 20799 | ac_cv_lib_krb_krb_get_cred=no |
503d2be0 | 20800 | fi |
d6e01aa5 KL |
20801 | |
20802 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 20803 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20804 | LIBS=$ac_check_lib_save_LIBS |
20805 | fi | |
d6e01aa5 KL |
20806 | { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
20807 | echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; } | |
503d2be0 | 20808 | if test $ac_cv_lib_krb_krb_get_cred = yes; then |
c0d27fcc | 20809 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20810 | #define HAVE_LIBKRB 1 |
c0d27fcc | 20811 | _ACEOF |
a21616bd KR |
20812 | |
20813 | LIBS="-lkrb $LIBS" | |
20814 | ||
a21616bd KR |
20815 | fi |
20816 | ||
20817 | fi | |
20818 | ||
20819 | fi | |
20820 | ||
20821 | if test "${with_kerberos5+set}" = set; then | |
503d2be0 AS |
20822 | |
20823 | for ac_header in krb5.h | |
a21616bd | 20824 | do |
503d2be0 | 20825 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d6e01aa5 KL |
20826 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20827 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20828 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20829 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 20830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 20831 | fi |
d6e01aa5 KL |
20832 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20833 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20834 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 20835 | else |
c0d27fcc | 20836 | # Is the header compilable? |
d6e01aa5 KL |
20837 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20838 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 20839 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20840 | /* confdefs.h. */ |
20841 | _ACEOF | |
20842 | cat confdefs.h >>conftest.$ac_ext | |
20843 | cat >>conftest.$ac_ext <<_ACEOF | |
20844 | /* end confdefs.h. */ | |
c0d27fcc MR |
20845 | $ac_includes_default |
20846 | #include <$ac_header> | |
20847 | _ACEOF | |
20848 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
20849 | if { (ac_try="$ac_compile" |
20850 | case "(($ac_try" in | |
20851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20852 | *) ac_try_echo=$ac_try;; | |
20853 | esac | |
20854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20855 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 20856 | ac_status=$? |
edfaf76d LK |
20857 | grep -v '^ *+' conftest.er1 >conftest.err |
20858 | rm -f conftest.er1 | |
20859 | cat conftest.err >&5 | |
c0d27fcc | 20860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
20861 | (exit $ac_status); } && { |
20862 | test -z "$ac_c_werror_flag" || | |
20863 | test ! -s conftest.err | |
20864 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
20865 | ac_header_compiler=yes |
20866 | else | |
20867 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20868 | sed 's/^/| /' conftest.$ac_ext >&5 |
20869 | ||
d6e01aa5 | 20870 | ac_header_compiler=no |
c0d27fcc | 20871 | fi |
d6e01aa5 KL |
20872 | |
20873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20874 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20875 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
20876 | |
20877 | # Is the header present? | |
d6e01aa5 KL |
20878 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20879 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 20880 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20881 | /* confdefs.h. */ |
20882 | _ACEOF | |
20883 | cat confdefs.h >>conftest.$ac_ext | |
20884 | cat >>conftest.$ac_ext <<_ACEOF | |
20885 | /* end confdefs.h. */ | |
503d2be0 AS |
20886 | #include <$ac_header> |
20887 | _ACEOF | |
d6e01aa5 KL |
20888 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
20889 | case "(($ac_try" in | |
20890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20891 | *) ac_try_echo=$ac_try;; | |
20892 | esac | |
20893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20894 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 20895 | ac_status=$? |
6bae0ccf | 20896 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20897 | rm -f conftest.er1 |
20898 | cat conftest.err >&5 | |
c0d27fcc | 20899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
20900 | (exit $ac_status); } >/dev/null && { |
20901 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20902 | test ! -s conftest.err | |
20903 | }; then | |
c0d27fcc | 20904 | ac_header_preproc=yes |
503d2be0 AS |
20905 | else |
20906 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20907 | sed 's/^/| /' conftest.$ac_ext >&5 |
20908 | ||
c0d27fcc | 20909 | ac_header_preproc=no |
a21616bd | 20910 | fi |
d6e01aa5 | 20911 | |
503d2be0 | 20912 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
20913 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20914 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
20915 | |
20916 | # So? What about this header? | |
edfaf76d LK |
20917 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20918 | yes:no: ) | |
c0d27fcc MR |
20919 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20920 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
20921 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20922 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20923 | ac_header_preproc=yes | |
19650fd6 | 20924 | ;; |
edfaf76d | 20925 | no:yes:* ) |
c0d27fcc MR |
20926 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20927 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
20928 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20929 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20930 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20931 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20932 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20933 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20934 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20935 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
20936 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20937 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 20938 | |
19650fd6 | 20939 | ;; |
c0d27fcc | 20940 | esac |
d6e01aa5 KL |
20941 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20942 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20943 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
20944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20945 | else | |
edfaf76d | 20946 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 20947 | fi |
d6e01aa5 KL |
20948 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20949 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20950 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
20951 | |
20952 | fi | |
503d2be0 | 20953 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 20954 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20955 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 20956 | _ACEOF |
503d2be0 | 20957 | |
a21616bd | 20958 | fi |
c0d27fcc | 20959 | |
a21616bd KR |
20960 | done |
20961 | ||
20962 | else | |
503d2be0 AS |
20963 | |
20964 | for ac_header in des.h | |
a21616bd | 20965 | do |
503d2be0 | 20966 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d6e01aa5 KL |
20967 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20968 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20969 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20970 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 20971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 20972 | fi |
d6e01aa5 KL |
20973 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20974 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20975 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 20976 | else |
c0d27fcc | 20977 | # Is the header compilable? |
d6e01aa5 KL |
20978 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20979 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 20980 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20981 | /* confdefs.h. */ |
20982 | _ACEOF | |
20983 | cat confdefs.h >>conftest.$ac_ext | |
20984 | cat >>conftest.$ac_ext <<_ACEOF | |
20985 | /* end confdefs.h. */ | |
c0d27fcc MR |
20986 | $ac_includes_default |
20987 | #include <$ac_header> | |
20988 | _ACEOF | |
20989 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
20990 | if { (ac_try="$ac_compile" |
20991 | case "(($ac_try" in | |
20992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20993 | *) ac_try_echo=$ac_try;; | |
20994 | esac | |
20995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20996 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 20997 | ac_status=$? |
edfaf76d LK |
20998 | grep -v '^ *+' conftest.er1 >conftest.err |
20999 | rm -f conftest.er1 | |
21000 | cat conftest.err >&5 | |
c0d27fcc | 21001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
21002 | (exit $ac_status); } && { |
21003 | test -z "$ac_c_werror_flag" || | |
21004 | test ! -s conftest.err | |
21005 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21006 | ac_header_compiler=yes |
21007 | else | |
21008 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21009 | sed 's/^/| /' conftest.$ac_ext >&5 |
21010 | ||
d6e01aa5 | 21011 | ac_header_compiler=no |
c0d27fcc | 21012 | fi |
d6e01aa5 KL |
21013 | |
21014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21015 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21016 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21017 | |
21018 | # Is the header present? | |
d6e01aa5 KL |
21019 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21020 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21021 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21022 | /* confdefs.h. */ |
21023 | _ACEOF | |
21024 | cat confdefs.h >>conftest.$ac_ext | |
21025 | cat >>conftest.$ac_ext <<_ACEOF | |
21026 | /* end confdefs.h. */ | |
503d2be0 AS |
21027 | #include <$ac_header> |
21028 | _ACEOF | |
d6e01aa5 KL |
21029 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21030 | case "(($ac_try" in | |
21031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21032 | *) ac_try_echo=$ac_try;; | |
21033 | esac | |
21034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21035 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21036 | ac_status=$? |
6bae0ccf | 21037 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21038 | rm -f conftest.er1 |
21039 | cat conftest.err >&5 | |
c0d27fcc | 21040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
21041 | (exit $ac_status); } >/dev/null && { |
21042 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21043 | test ! -s conftest.err | |
21044 | }; then | |
c0d27fcc | 21045 | ac_header_preproc=yes |
503d2be0 AS |
21046 | else |
21047 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21048 | sed 's/^/| /' conftest.$ac_ext >&5 |
21049 | ||
c0d27fcc | 21050 | ac_header_preproc=no |
a21616bd | 21051 | fi |
d6e01aa5 | 21052 | |
503d2be0 | 21053 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
21054 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21055 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21056 | |
21057 | # So? What about this header? | |
edfaf76d LK |
21058 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21059 | yes:no: ) | |
c0d27fcc MR |
21060 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21061 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21062 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21063 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21064 | ac_header_preproc=yes | |
19650fd6 | 21065 | ;; |
edfaf76d | 21066 | no:yes:* ) |
c0d27fcc MR |
21067 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21068 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21069 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21070 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21071 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21072 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21073 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21074 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21075 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21076 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21077 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21078 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 21079 | |
19650fd6 | 21080 | ;; |
c0d27fcc | 21081 | esac |
d6e01aa5 KL |
21082 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21083 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21084 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21086 | else | |
edfaf76d | 21087 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21088 | fi |
d6e01aa5 KL |
21089 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21090 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21091 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21092 | |
21093 | fi | |
503d2be0 | 21094 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21095 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21096 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21097 | _ACEOF |
503d2be0 | 21098 | |
a21616bd | 21099 | else |
503d2be0 AS |
21100 | |
21101 | for ac_header in kerberosIV/des.h | |
a21616bd | 21102 | do |
503d2be0 | 21103 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d6e01aa5 KL |
21104 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21105 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21106 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21107 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 21108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21109 | fi |
d6e01aa5 KL |
21110 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21111 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21112 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 21113 | else |
c0d27fcc | 21114 | # Is the header compilable? |
d6e01aa5 KL |
21115 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21116 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21117 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21118 | /* confdefs.h. */ |
21119 | _ACEOF | |
21120 | cat confdefs.h >>conftest.$ac_ext | |
21121 | cat >>conftest.$ac_ext <<_ACEOF | |
21122 | /* end confdefs.h. */ | |
c0d27fcc MR |
21123 | $ac_includes_default |
21124 | #include <$ac_header> | |
21125 | _ACEOF | |
21126 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
21127 | if { (ac_try="$ac_compile" |
21128 | case "(($ac_try" in | |
21129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21130 | *) ac_try_echo=$ac_try;; | |
21131 | esac | |
21132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21133 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 21134 | ac_status=$? |
edfaf76d LK |
21135 | grep -v '^ *+' conftest.er1 >conftest.err |
21136 | rm -f conftest.er1 | |
21137 | cat conftest.err >&5 | |
c0d27fcc | 21138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
21139 | (exit $ac_status); } && { |
21140 | test -z "$ac_c_werror_flag" || | |
21141 | test ! -s conftest.err | |
21142 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21143 | ac_header_compiler=yes |
21144 | else | |
21145 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21146 | sed 's/^/| /' conftest.$ac_ext >&5 |
21147 | ||
d6e01aa5 | 21148 | ac_header_compiler=no |
c0d27fcc | 21149 | fi |
d6e01aa5 KL |
21150 | |
21151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21152 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21153 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21154 | |
21155 | # Is the header present? | |
d6e01aa5 KL |
21156 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21157 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21158 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21159 | /* confdefs.h. */ |
21160 | _ACEOF | |
21161 | cat confdefs.h >>conftest.$ac_ext | |
21162 | cat >>conftest.$ac_ext <<_ACEOF | |
21163 | /* end confdefs.h. */ | |
503d2be0 AS |
21164 | #include <$ac_header> |
21165 | _ACEOF | |
d6e01aa5 KL |
21166 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21167 | case "(($ac_try" in | |
21168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21169 | *) ac_try_echo=$ac_try;; | |
21170 | esac | |
21171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21172 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21173 | ac_status=$? |
6bae0ccf | 21174 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21175 | rm -f conftest.er1 |
21176 | cat conftest.err >&5 | |
c0d27fcc | 21177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
21178 | (exit $ac_status); } >/dev/null && { |
21179 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21180 | test ! -s conftest.err | |
21181 | }; then | |
c0d27fcc | 21182 | ac_header_preproc=yes |
503d2be0 AS |
21183 | else |
21184 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21185 | sed 's/^/| /' conftest.$ac_ext >&5 |
21186 | ||
c0d27fcc | 21187 | ac_header_preproc=no |
a21616bd | 21188 | fi |
d6e01aa5 | 21189 | |
503d2be0 | 21190 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
21191 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21192 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21193 | |
21194 | # So? What about this header? | |
edfaf76d LK |
21195 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21196 | yes:no: ) | |
c0d27fcc MR |
21197 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21198 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21199 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21200 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21201 | ac_header_preproc=yes | |
19650fd6 | 21202 | ;; |
edfaf76d | 21203 | no:yes:* ) |
c0d27fcc MR |
21204 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21205 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21206 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21207 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21208 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21209 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21210 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21211 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21212 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21213 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21214 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21215 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 21216 | |
19650fd6 | 21217 | ;; |
c0d27fcc | 21218 | esac |
d6e01aa5 KL |
21219 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21221 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21223 | else | |
edfaf76d | 21224 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21225 | fi |
d6e01aa5 KL |
21226 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21227 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21228 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21229 | |
21230 | fi | |
503d2be0 | 21231 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21232 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21233 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21234 | _ACEOF |
503d2be0 | 21235 | |
a21616bd | 21236 | else |
503d2be0 AS |
21237 | |
21238 | for ac_header in kerberos/des.h | |
a21616bd | 21239 | do |
503d2be0 | 21240 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d6e01aa5 KL |
21241 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21242 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21243 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21244 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 21245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21246 | fi |
d6e01aa5 KL |
21247 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21248 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21249 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 21250 | else |
c0d27fcc | 21251 | # Is the header compilable? |
d6e01aa5 KL |
21252 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21253 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21254 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21255 | /* confdefs.h. */ |
21256 | _ACEOF | |
21257 | cat confdefs.h >>conftest.$ac_ext | |
21258 | cat >>conftest.$ac_ext <<_ACEOF | |
21259 | /* end confdefs.h. */ | |
c0d27fcc MR |
21260 | $ac_includes_default |
21261 | #include <$ac_header> | |
21262 | _ACEOF | |
21263 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
21264 | if { (ac_try="$ac_compile" |
21265 | case "(($ac_try" in | |
21266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21267 | *) ac_try_echo=$ac_try;; | |
21268 | esac | |
21269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21270 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 21271 | ac_status=$? |
edfaf76d LK |
21272 | grep -v '^ *+' conftest.er1 >conftest.err |
21273 | rm -f conftest.er1 | |
21274 | cat conftest.err >&5 | |
c0d27fcc | 21275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
21276 | (exit $ac_status); } && { |
21277 | test -z "$ac_c_werror_flag" || | |
21278 | test ! -s conftest.err | |
21279 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21280 | ac_header_compiler=yes |
21281 | else | |
21282 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21283 | sed 's/^/| /' conftest.$ac_ext >&5 |
21284 | ||
d6e01aa5 | 21285 | ac_header_compiler=no |
c0d27fcc | 21286 | fi |
d6e01aa5 KL |
21287 | |
21288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21289 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21290 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21291 | |
21292 | # Is the header present? | |
d6e01aa5 KL |
21293 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21294 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21295 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21296 | /* confdefs.h. */ |
21297 | _ACEOF | |
21298 | cat confdefs.h >>conftest.$ac_ext | |
21299 | cat >>conftest.$ac_ext <<_ACEOF | |
21300 | /* end confdefs.h. */ | |
503d2be0 AS |
21301 | #include <$ac_header> |
21302 | _ACEOF | |
d6e01aa5 KL |
21303 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21304 | case "(($ac_try" in | |
21305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21306 | *) ac_try_echo=$ac_try;; | |
21307 | esac | |
21308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21309 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21310 | ac_status=$? |
6bae0ccf | 21311 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21312 | rm -f conftest.er1 |
21313 | cat conftest.err >&5 | |
c0d27fcc | 21314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
21315 | (exit $ac_status); } >/dev/null && { |
21316 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21317 | test ! -s conftest.err | |
21318 | }; then | |
c0d27fcc | 21319 | ac_header_preproc=yes |
503d2be0 AS |
21320 | else |
21321 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21322 | sed 's/^/| /' conftest.$ac_ext >&5 |
21323 | ||
c0d27fcc | 21324 | ac_header_preproc=no |
a21616bd | 21325 | fi |
d6e01aa5 | 21326 | |
503d2be0 | 21327 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
21328 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21329 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21330 | |
21331 | # So? What about this header? | |
edfaf76d LK |
21332 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21333 | yes:no: ) | |
c0d27fcc MR |
21334 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21335 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21336 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21337 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21338 | ac_header_preproc=yes | |
19650fd6 | 21339 | ;; |
edfaf76d | 21340 | no:yes:* ) |
c0d27fcc MR |
21341 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21342 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21343 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21344 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21345 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21346 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21347 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21348 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21349 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21350 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21351 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21352 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 21353 | |
19650fd6 | 21354 | ;; |
c0d27fcc | 21355 | esac |
d6e01aa5 KL |
21356 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21357 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21358 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21360 | else | |
edfaf76d | 21361 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21362 | fi |
d6e01aa5 KL |
21363 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21364 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21365 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21366 | |
21367 | fi | |
503d2be0 | 21368 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21369 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21370 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21371 | _ACEOF |
a21616bd KR |
21372 | |
21373 | fi | |
c0d27fcc | 21374 | |
a21616bd KR |
21375 | done |
21376 | ||
98418dba | 21377 | fi |
c0d27fcc | 21378 | |
925c2f3f EZ |
21379 | done |
21380 | ||
98418dba | 21381 | fi |
c0d27fcc | 21382 | |
925c2f3f | 21383 | done |
98418dba | 21384 | |
c0d27fcc | 21385 | |
925c2f3f EZ |
21386 | for ac_header in krb.h |
21387 | do | |
21388 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
21389 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21390 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21391 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21392 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
925c2f3f | 21393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21394 | fi |
d6e01aa5 KL |
21395 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21396 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21397 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21398 | else |
21399 | # Is the header compilable? | |
d6e01aa5 KL |
21400 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21401 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21402 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21403 | /* confdefs.h. */ |
21404 | _ACEOF | |
21405 | cat confdefs.h >>conftest.$ac_ext | |
21406 | cat >>conftest.$ac_ext <<_ACEOF | |
21407 | /* end confdefs.h. */ | |
c0d27fcc MR |
21408 | $ac_includes_default |
21409 | #include <$ac_header> | |
21410 | _ACEOF | |
21411 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
21412 | if { (ac_try="$ac_compile" |
21413 | case "(($ac_try" in | |
21414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21415 | *) ac_try_echo=$ac_try;; | |
21416 | esac | |
21417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21418 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 21419 | ac_status=$? |
edfaf76d LK |
21420 | grep -v '^ *+' conftest.er1 >conftest.err |
21421 | rm -f conftest.er1 | |
21422 | cat conftest.err >&5 | |
c0d27fcc | 21423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
21424 | (exit $ac_status); } && { |
21425 | test -z "$ac_c_werror_flag" || | |
21426 | test ! -s conftest.err | |
21427 | } && test -s conftest.$ac_objext; then | |
c0d27fcc | 21428 | ac_header_compiler=yes |
925c2f3f | 21429 | else |
c0d27fcc | 21430 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
21431 | sed 's/^/| /' conftest.$ac_ext >&5 |
21432 | ||
d6e01aa5 | 21433 | ac_header_compiler=no |
c0d27fcc | 21434 | fi |
d6e01aa5 KL |
21435 | |
21436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21437 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21438 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21439 | |
21440 | # Is the header present? | |
d6e01aa5 KL |
21441 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21442 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21443 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21444 | /* confdefs.h. */ |
21445 | _ACEOF | |
21446 | cat confdefs.h >>conftest.$ac_ext | |
21447 | cat >>conftest.$ac_ext <<_ACEOF | |
21448 | /* end confdefs.h. */ | |
503d2be0 AS |
21449 | #include <$ac_header> |
21450 | _ACEOF | |
d6e01aa5 KL |
21451 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21452 | case "(($ac_try" in | |
21453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21454 | *) ac_try_echo=$ac_try;; | |
21455 | esac | |
21456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21457 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21458 | ac_status=$? |
6bae0ccf | 21459 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21460 | rm -f conftest.er1 |
21461 | cat conftest.err >&5 | |
c0d27fcc | 21462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
21463 | (exit $ac_status); } >/dev/null && { |
21464 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21465 | test ! -s conftest.err | |
21466 | }; then | |
c0d27fcc | 21467 | ac_header_preproc=yes |
503d2be0 AS |
21468 | else |
21469 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21470 | sed 's/^/| /' conftest.$ac_ext >&5 |
21471 | ||
c0d27fcc | 21472 | ac_header_preproc=no |
a21616bd | 21473 | fi |
d6e01aa5 | 21474 | |
503d2be0 | 21475 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
21476 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21477 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21478 | |
21479 | # So? What about this header? | |
edfaf76d LK |
21480 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21481 | yes:no: ) | |
c0d27fcc MR |
21482 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21483 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21484 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21485 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21486 | ac_header_preproc=yes | |
19650fd6 | 21487 | ;; |
edfaf76d | 21488 | no:yes:* ) |
c0d27fcc MR |
21489 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21490 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21491 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21492 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21493 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21494 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21495 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21496 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21497 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21498 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21499 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21500 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 21501 | |
19650fd6 | 21502 | ;; |
c0d27fcc | 21503 | esac |
d6e01aa5 KL |
21504 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21505 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21506 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21508 | else | |
edfaf76d | 21509 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21510 | fi |
d6e01aa5 KL |
21511 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21512 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21513 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21514 | |
21515 | fi | |
503d2be0 | 21516 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21517 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21518 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21519 | _ACEOF |
503d2be0 | 21520 | |
a21616bd | 21521 | else |
503d2be0 AS |
21522 | |
21523 | for ac_header in kerberosIV/krb.h | |
a21616bd | 21524 | do |
503d2be0 | 21525 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d6e01aa5 KL |
21526 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21527 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21528 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21529 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 21530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21531 | fi |
d6e01aa5 KL |
21532 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21533 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21534 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 21535 | else |
c0d27fcc | 21536 | # Is the header compilable? |
d6e01aa5 KL |
21537 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21538 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21539 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21540 | /* confdefs.h. */ |
21541 | _ACEOF | |
21542 | cat confdefs.h >>conftest.$ac_ext | |
21543 | cat >>conftest.$ac_ext <<_ACEOF | |
21544 | /* end confdefs.h. */ | |
c0d27fcc MR |
21545 | $ac_includes_default |
21546 | #include <$ac_header> | |
21547 | _ACEOF | |
21548 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
21549 | if { (ac_try="$ac_compile" |
21550 | case "(($ac_try" in | |
21551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21552 | *) ac_try_echo=$ac_try;; | |
21553 | esac | |
21554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21555 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 21556 | ac_status=$? |
edfaf76d LK |
21557 | grep -v '^ *+' conftest.er1 >conftest.err |
21558 | rm -f conftest.er1 | |
21559 | cat conftest.err >&5 | |
c0d27fcc | 21560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
21561 | (exit $ac_status); } && { |
21562 | test -z "$ac_c_werror_flag" || | |
21563 | test ! -s conftest.err | |
21564 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21565 | ac_header_compiler=yes |
21566 | else | |
21567 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21568 | sed 's/^/| /' conftest.$ac_ext >&5 |
21569 | ||
d6e01aa5 | 21570 | ac_header_compiler=no |
c0d27fcc | 21571 | fi |
d6e01aa5 KL |
21572 | |
21573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21574 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21575 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21576 | |
21577 | # Is the header present? | |
d6e01aa5 KL |
21578 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21579 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21580 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21581 | /* confdefs.h. */ |
21582 | _ACEOF | |
21583 | cat confdefs.h >>conftest.$ac_ext | |
21584 | cat >>conftest.$ac_ext <<_ACEOF | |
21585 | /* end confdefs.h. */ | |
503d2be0 AS |
21586 | #include <$ac_header> |
21587 | _ACEOF | |
d6e01aa5 KL |
21588 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21589 | case "(($ac_try" in | |
21590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21591 | *) ac_try_echo=$ac_try;; | |
21592 | esac | |
21593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21594 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21595 | ac_status=$? |
6bae0ccf | 21596 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21597 | rm -f conftest.er1 |
21598 | cat conftest.err >&5 | |
c0d27fcc | 21599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
21600 | (exit $ac_status); } >/dev/null && { |
21601 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21602 | test ! -s conftest.err | |
21603 | }; then | |
c0d27fcc | 21604 | ac_header_preproc=yes |
503d2be0 AS |
21605 | else |
21606 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21607 | sed 's/^/| /' conftest.$ac_ext >&5 |
21608 | ||
c0d27fcc | 21609 | ac_header_preproc=no |
a21616bd | 21610 | fi |
d6e01aa5 | 21611 | |
503d2be0 | 21612 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
21613 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21614 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21615 | |
21616 | # So? What about this header? | |
edfaf76d LK |
21617 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21618 | yes:no: ) | |
c0d27fcc MR |
21619 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21620 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21621 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21622 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21623 | ac_header_preproc=yes | |
19650fd6 | 21624 | ;; |
edfaf76d | 21625 | no:yes:* ) |
c0d27fcc MR |
21626 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21627 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21628 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21629 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21630 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21631 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21632 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21633 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21634 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21635 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21636 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21637 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 21638 | |
19650fd6 | 21639 | ;; |
c0d27fcc | 21640 | esac |
d6e01aa5 KL |
21641 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21643 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21645 | else | |
edfaf76d | 21646 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21647 | fi |
d6e01aa5 KL |
21648 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21649 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21650 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21651 | |
21652 | fi | |
503d2be0 | 21653 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21654 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21655 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21656 | _ACEOF |
503d2be0 | 21657 | |
a21616bd | 21658 | else |
503d2be0 AS |
21659 | |
21660 | for ac_header in kerberos/krb.h | |
a21616bd | 21661 | do |
503d2be0 | 21662 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d6e01aa5 KL |
21663 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21664 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21665 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21666 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 21667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21668 | fi |
d6e01aa5 KL |
21669 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21670 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21671 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 21672 | else |
c0d27fcc | 21673 | # Is the header compilable? |
d6e01aa5 KL |
21674 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21675 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21676 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21677 | /* confdefs.h. */ |
21678 | _ACEOF | |
21679 | cat confdefs.h >>conftest.$ac_ext | |
21680 | cat >>conftest.$ac_ext <<_ACEOF | |
21681 | /* end confdefs.h. */ | |
c0d27fcc MR |
21682 | $ac_includes_default |
21683 | #include <$ac_header> | |
21684 | _ACEOF | |
21685 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
21686 | if { (ac_try="$ac_compile" |
21687 | case "(($ac_try" in | |
21688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21689 | *) ac_try_echo=$ac_try;; | |
21690 | esac | |
21691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21692 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 21693 | ac_status=$? |
edfaf76d LK |
21694 | grep -v '^ *+' conftest.er1 >conftest.err |
21695 | rm -f conftest.er1 | |
21696 | cat conftest.err >&5 | |
c0d27fcc | 21697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
21698 | (exit $ac_status); } && { |
21699 | test -z "$ac_c_werror_flag" || | |
21700 | test ! -s conftest.err | |
21701 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21702 | ac_header_compiler=yes |
21703 | else | |
21704 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21705 | sed 's/^/| /' conftest.$ac_ext >&5 |
21706 | ||
d6e01aa5 | 21707 | ac_header_compiler=no |
c0d27fcc | 21708 | fi |
d6e01aa5 KL |
21709 | |
21710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21711 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21712 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21713 | |
21714 | # Is the header present? | |
d6e01aa5 KL |
21715 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21716 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21717 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21718 | /* confdefs.h. */ |
21719 | _ACEOF | |
21720 | cat confdefs.h >>conftest.$ac_ext | |
21721 | cat >>conftest.$ac_ext <<_ACEOF | |
21722 | /* end confdefs.h. */ | |
503d2be0 AS |
21723 | #include <$ac_header> |
21724 | _ACEOF | |
d6e01aa5 KL |
21725 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21726 | case "(($ac_try" in | |
21727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21728 | *) ac_try_echo=$ac_try;; | |
21729 | esac | |
21730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21731 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21732 | ac_status=$? |
6bae0ccf | 21733 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21734 | rm -f conftest.er1 |
21735 | cat conftest.err >&5 | |
c0d27fcc | 21736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
21737 | (exit $ac_status); } >/dev/null && { |
21738 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21739 | test ! -s conftest.err | |
21740 | }; then | |
c0d27fcc | 21741 | ac_header_preproc=yes |
503d2be0 AS |
21742 | else |
21743 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21744 | sed 's/^/| /' conftest.$ac_ext >&5 |
21745 | ||
c0d27fcc | 21746 | ac_header_preproc=no |
a21616bd | 21747 | fi |
d6e01aa5 | 21748 | |
503d2be0 | 21749 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
21750 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21751 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
35996d22 AS |
21752 | |
21753 | # So? What about this header? | |
edfaf76d LK |
21754 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21755 | yes:no: ) | |
35996d22 AS |
21756 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21757 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21758 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21759 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21760 | ac_header_preproc=yes | |
19650fd6 | 21761 | ;; |
edfaf76d | 21762 | no:yes:* ) |
c0d27fcc MR |
21763 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21764 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21765 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21766 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21767 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21768 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21769 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21770 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21771 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21772 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21773 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21774 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 21775 | |
19650fd6 | 21776 | ;; |
c0d27fcc | 21777 | esac |
d6e01aa5 KL |
21778 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21780 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21782 | else | |
edfaf76d | 21783 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21784 | fi |
d6e01aa5 KL |
21785 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21786 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21787 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21788 | |
21789 | fi | |
503d2be0 | 21790 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21791 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21792 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21793 | _ACEOF |
503d2be0 | 21794 | |
a21616bd | 21795 | fi |
c0d27fcc | 21796 | |
a21616bd KR |
21797 | done |
21798 | ||
21799 | fi | |
c0d27fcc | 21800 | |
a21616bd KR |
21801 | done |
21802 | ||
21803 | fi | |
c0d27fcc | 21804 | |
a21616bd KR |
21805 | done |
21806 | ||
21807 | fi | |
503d2be0 AS |
21808 | |
21809 | for ac_header in com_err.h | |
a21616bd | 21810 | do |
503d2be0 | 21811 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d6e01aa5 KL |
21812 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21813 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21814 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21815 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 21816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21817 | fi |
d6e01aa5 KL |
21818 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21819 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21820 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 21821 | else |
c0d27fcc | 21822 | # Is the header compilable? |
d6e01aa5 KL |
21823 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21824 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21825 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21826 | /* confdefs.h. */ |
21827 | _ACEOF | |
21828 | cat confdefs.h >>conftest.$ac_ext | |
21829 | cat >>conftest.$ac_ext <<_ACEOF | |
21830 | /* end confdefs.h. */ | |
c0d27fcc MR |
21831 | $ac_includes_default |
21832 | #include <$ac_header> | |
21833 | _ACEOF | |
21834 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
21835 | if { (ac_try="$ac_compile" |
21836 | case "(($ac_try" in | |
21837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21838 | *) ac_try_echo=$ac_try;; | |
21839 | esac | |
21840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21841 | (eval "$ac_compile") 2>conftest.er1 | |
edfaf76d LK |
21842 | ac_status=$? |
21843 | grep -v '^ *+' conftest.er1 >conftest.err | |
21844 | rm -f conftest.er1 | |
21845 | cat conftest.err >&5 | |
21846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
21847 | (exit $ac_status); } && { |
21848 | test -z "$ac_c_werror_flag" || | |
21849 | test ! -s conftest.err | |
21850 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21851 | ac_header_compiler=yes |
21852 | else | |
21853 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21854 | sed 's/^/| /' conftest.$ac_ext >&5 |
21855 | ||
d6e01aa5 | 21856 | ac_header_compiler=no |
c0d27fcc | 21857 | fi |
d6e01aa5 KL |
21858 | |
21859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21860 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21861 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21862 | |
21863 | # Is the header present? | |
d6e01aa5 KL |
21864 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21865 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21866 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21867 | /* confdefs.h. */ |
21868 | _ACEOF | |
21869 | cat confdefs.h >>conftest.$ac_ext | |
21870 | cat >>conftest.$ac_ext <<_ACEOF | |
21871 | /* end confdefs.h. */ | |
503d2be0 AS |
21872 | #include <$ac_header> |
21873 | _ACEOF | |
d6e01aa5 KL |
21874 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21875 | case "(($ac_try" in | |
21876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21877 | *) ac_try_echo=$ac_try;; | |
21878 | esac | |
21879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21880 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21881 | ac_status=$? |
6bae0ccf | 21882 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21883 | rm -f conftest.er1 |
21884 | cat conftest.err >&5 | |
c0d27fcc | 21885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
21886 | (exit $ac_status); } >/dev/null && { |
21887 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21888 | test ! -s conftest.err | |
21889 | }; then | |
c0d27fcc | 21890 | ac_header_preproc=yes |
503d2be0 AS |
21891 | else |
21892 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21893 | sed 's/^/| /' conftest.$ac_ext >&5 |
21894 | ||
c0d27fcc | 21895 | ac_header_preproc=no |
a21616bd | 21896 | fi |
d6e01aa5 | 21897 | |
503d2be0 | 21898 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
21899 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21900 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21901 | |
21902 | # So? What about this header? | |
edfaf76d LK |
21903 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21904 | yes:no: ) | |
c0d27fcc MR |
21905 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21906 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21907 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21908 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21909 | ac_header_preproc=yes | |
19650fd6 | 21910 | ;; |
edfaf76d | 21911 | no:yes:* ) |
c0d27fcc MR |
21912 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21913 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21914 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21915 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21916 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21917 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21918 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21919 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21920 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21921 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21922 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21923 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 21924 | |
19650fd6 | 21925 | ;; |
c0d27fcc | 21926 | esac |
d6e01aa5 KL |
21927 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21928 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21929 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21931 | else | |
edfaf76d | 21932 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21933 | fi |
d6e01aa5 KL |
21934 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21935 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21936 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21937 | |
21938 | fi | |
503d2be0 | 21939 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21940 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21941 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21942 | _ACEOF |
503d2be0 | 21943 | |
a21616bd | 21944 | fi |
c0d27fcc | 21945 | |
a21616bd KR |
21946 | done |
21947 | ||
21948 | fi | |
21949 | ||
ba4481b5 DL |
21950 | # Solaris requires -lintl if you want strerror (which calls dgettext) |
21951 | # to return localized messages. | |
503d2be0 | 21952 | |
d6e01aa5 KL |
21953 | { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 |
21954 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; } | |
503d2be0 AS |
21955 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then |
21956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 21957 | else |
503d2be0 | 21958 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 21959 | LIBS="-lintl $LIBS" |
503d2be0 | 21960 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21961 | /* confdefs.h. */ |
21962 | _ACEOF | |
21963 | cat confdefs.h >>conftest.$ac_ext | |
21964 | cat >>conftest.$ac_ext <<_ACEOF | |
21965 | /* end confdefs.h. */ | |
503d2be0 | 21966 | |
d6e01aa5 KL |
21967 | /* Override any GCC internal prototype to avoid an error. |
21968 | Use char because int might match the return type of a GCC | |
21969 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
21970 | #ifdef __cplusplus |
21971 | extern "C" | |
21972 | #endif | |
503d2be0 AS |
21973 | char dgettext (); |
21974 | int | |
21975 | main () | |
21976 | { | |
d6e01aa5 | 21977 | return dgettext (); |
503d2be0 AS |
21978 | ; |
21979 | return 0; | |
21980 | } | |
21981 | _ACEOF | |
21982 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
21983 | if { (ac_try="$ac_link" |
21984 | case "(($ac_try" in | |
21985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21986 | *) ac_try_echo=$ac_try;; | |
21987 | esac | |
21988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21989 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 21990 | ac_status=$? |
edfaf76d LK |
21991 | grep -v '^ *+' conftest.er1 >conftest.err |
21992 | rm -f conftest.er1 | |
21993 | cat conftest.err >&5 | |
c0d27fcc | 21994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
21995 | (exit $ac_status); } && { |
21996 | test -z "$ac_c_werror_flag" || | |
21997 | test ! -s conftest.err | |
21998 | } && test -s conftest$ac_exeext && | |
21999 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
22000 | ac_cv_lib_intl_dgettext=yes |
22001 | else | |
22002 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22003 | sed 's/^/| /' conftest.$ac_ext >&5 |
22004 | ||
d6e01aa5 | 22005 | ac_cv_lib_intl_dgettext=no |
503d2be0 | 22006 | fi |
d6e01aa5 KL |
22007 | |
22008 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 22009 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
22010 | LIBS=$ac_check_lib_save_LIBS |
22011 | fi | |
d6e01aa5 KL |
22012 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 |
22013 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; } | |
503d2be0 | 22014 | if test $ac_cv_lib_intl_dgettext = yes; then |
c0d27fcc | 22015 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 22016 | #define HAVE_LIBINTL 1 |
c0d27fcc | 22017 | _ACEOF |
ba4481b5 DL |
22018 | |
22019 | LIBS="-lintl $LIBS" | |
22020 | ||
ba4481b5 DL |
22021 | fi |
22022 | ||
c0d27fcc | 22023 | |
d6e01aa5 KL |
22024 | { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 |
22025 | echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; } | |
503d2be0 AS |
22026 | if test "${emacs_cv_localtime_cache+set}" = set; then |
22027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
22028 | else |
22029 | if test x$ac_cv_func_tzset = xyes; then | |
22030 | if test "$cross_compiling" = yes; then | |
22031 | # If we have tzset, assume the worst when cross-compiling. | |
22032 | emacs_cv_localtime_cache=yes | |
22033 | else | |
503d2be0 | 22034 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22035 | /* confdefs.h. */ |
22036 | _ACEOF | |
22037 | cat confdefs.h >>conftest.$ac_ext | |
22038 | cat >>conftest.$ac_ext <<_ACEOF | |
22039 | /* end confdefs.h. */ | |
ba4481b5 | 22040 | #include <time.h> |
ba4481b5 DL |
22041 | extern char **environ; |
22042 | unset_TZ () | |
22043 | { | |
22044 | char **from, **to; | |
22045 | for (to = from = environ; (*to = *from); from++) | |
22046 | if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
22047 | to++; | |
22048 | } | |
22049 | char TZ_GMT0[] = "TZ=GMT0"; | |
22050 | char TZ_PST8[] = "TZ=PST8"; | |
22051 | main() | |
22052 | { | |
22053 | time_t now = time ((time_t *) 0); | |
22054 | int hour_GMT0, hour_unset; | |
22055 | if (putenv (TZ_GMT0) != 0) | |
22056 | exit (1); | |
22057 | hour_GMT0 = localtime (&now)->tm_hour; | |
22058 | unset_TZ (); | |
22059 | hour_unset = localtime (&now)->tm_hour; | |
22060 | if (putenv (TZ_PST8) != 0) | |
22061 | exit (1); | |
22062 | if (localtime (&now)->tm_hour == hour_GMT0) | |
22063 | exit (1); | |
22064 | unset_TZ (); | |
22065 | if (localtime (&now)->tm_hour != hour_unset) | |
22066 | exit (1); | |
22067 | exit (0); | |
22068 | } | |
503d2be0 AS |
22069 | _ACEOF |
22070 | rm -f conftest$ac_exeext | |
d6e01aa5 KL |
22071 | if { (ac_try="$ac_link" |
22072 | case "(($ac_try" in | |
22073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22074 | *) ac_try_echo=$ac_try;; | |
22075 | esac | |
22076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22077 | (eval "$ac_link") 2>&5 | |
503d2be0 | 22078 | ac_status=$? |
c0d27fcc | 22079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 22080 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d6e01aa5 KL |
22081 | { (case "(($ac_try" in |
22082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22083 | *) ac_try_echo=$ac_try;; | |
22084 | esac | |
22085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22086 | (eval "$ac_try") 2>&5 | |
503d2be0 | 22087 | ac_status=$? |
c0d27fcc | 22088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 22089 | (exit $ac_status); }; }; then |
ba4481b5 DL |
22090 | emacs_cv_localtime_cache=no |
22091 | else | |
503d2be0 AS |
22092 | echo "$as_me: program exited with status $ac_status" >&5 |
22093 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22094 | sed 's/^/| /' conftest.$ac_ext >&5 |
22095 | ||
c0d27fcc | 22096 | ( exit $ac_status ) |
503d2be0 | 22097 | emacs_cv_localtime_cache=yes |
ba4481b5 | 22098 | fi |
d6e01aa5 | 22099 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 22100 | fi |
d6e01aa5 KL |
22101 | |
22102 | ||
ba4481b5 DL |
22103 | else |
22104 | # If we lack tzset, report that localtime does not cache TZ, | |
22105 | # since we can't invalidate the cache if we don't have tzset. | |
22106 | emacs_cv_localtime_cache=no | |
22107 | fi | |
22108 | fi | |
d6e01aa5 KL |
22109 | { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 |
22110 | echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; } | |
ba4481b5 | 22111 | if test $emacs_cv_localtime_cache = yes; then |
b936fae4 | 22112 | |
c0d27fcc | 22113 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 22114 | #define LOCALTIME_CACHE 1 |
c0d27fcc | 22115 | _ACEOF |
ba4481b5 DL |
22116 | |
22117 | fi | |
22118 | ||
22119 | if test "x$HAVE_TIMEVAL" = xyes; then | |
503d2be0 AS |
22120 | |
22121 | for ac_func in gettimeofday | |
48d4b120 | 22122 | do |
503d2be0 | 22123 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
d6e01aa5 KL |
22124 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22125 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
22126 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 22127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
48d4b120 | 22128 | else |
503d2be0 | 22129 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22130 | /* confdefs.h. */ |
22131 | _ACEOF | |
22132 | cat confdefs.h >>conftest.$ac_ext | |
22133 | cat >>conftest.$ac_ext <<_ACEOF | |
22134 | /* end confdefs.h. */ | |
edfaf76d LK |
22135 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22136 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22137 | #define $ac_func innocuous_$ac_func | |
22138 | ||
48d4b120 | 22139 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
22140 | which can conflict with char $ac_func (); below. |
22141 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22142 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 22143 | |
19650fd6 AS |
22144 | #ifdef __STDC__ |
22145 | # include <limits.h> | |
22146 | #else | |
22147 | # include <assert.h> | |
22148 | #endif | |
edfaf76d LK |
22149 | |
22150 | #undef $ac_func | |
22151 | ||
d6e01aa5 KL |
22152 | /* Override any GCC internal prototype to avoid an error. |
22153 | Use char because int might match the return type of a GCC | |
22154 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
22155 | #ifdef __cplusplus |
22156 | extern "C" | |
22157 | #endif | |
503d2be0 | 22158 | char $ac_func (); |
48d4b120 DL |
22159 | /* The GNU C library defines this for functions which it implements |
22160 | to always fail with ENOSYS. Some functions are actually named | |
22161 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 22162 | #if defined __stub_$ac_func || defined __stub___$ac_func |
48d4b120 | 22163 | choke me |
cd958eb3 MB |
22164 | #endif |
22165 | ||
19650fd6 AS |
22166 | int |
22167 | main () | |
22168 | { | |
d6e01aa5 | 22169 | return $ac_func (); |
503d2be0 AS |
22170 | ; |
22171 | return 0; | |
22172 | } | |
22173 | _ACEOF | |
22174 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
22175 | if { (ac_try="$ac_link" |
22176 | case "(($ac_try" in | |
22177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22178 | *) ac_try_echo=$ac_try;; | |
22179 | esac | |
22180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22181 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 22182 | ac_status=$? |
edfaf76d LK |
22183 | grep -v '^ *+' conftest.er1 >conftest.err |
22184 | rm -f conftest.er1 | |
22185 | cat conftest.err >&5 | |
c0d27fcc | 22186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
22187 | (exit $ac_status); } && { |
22188 | test -z "$ac_c_werror_flag" || | |
22189 | test ! -s conftest.err | |
22190 | } && test -s conftest$ac_exeext && | |
22191 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
22192 | eval "$as_ac_var=yes" |
22193 | else | |
22194 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22195 | sed 's/^/| /' conftest.$ac_ext >&5 |
22196 | ||
d6e01aa5 | 22197 | eval "$as_ac_var=no" |
503d2be0 | 22198 | fi |
d6e01aa5 KL |
22199 | |
22200 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 22201 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 22202 | fi |
d6e01aa5 KL |
22203 | ac_res=`eval echo '${'$as_ac_var'}'` |
22204 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22205 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 22206 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 22207 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 22208 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 22209 | _ACEOF |
48d4b120 | 22210 | |
48d4b120 DL |
22211 | fi |
22212 | done | |
22213 | ||
b936fae4 | 22214 | if test $ac_cv_func_gettimeofday = yes; then |
d6e01aa5 KL |
22215 | { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 |
22216 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; } | |
503d2be0 AS |
22217 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then |
22218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 22219 | else |
503d2be0 | 22220 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22221 | /* confdefs.h. */ |
22222 | _ACEOF | |
22223 | cat confdefs.h >>conftest.$ac_ext | |
22224 | cat >>conftest.$ac_ext <<_ACEOF | |
22225 | /* end confdefs.h. */ | |
ba4481b5 | 22226 | |
a3f08d9e DL |
22227 | #ifdef TIME_WITH_SYS_TIME |
22228 | #include <sys/time.h> | |
22229 | #include <time.h> | |
22230 | #else | |
22231 | #ifdef HAVE_SYS_TIME_H | |
22232 | #include <sys/time.h> | |
22233 | #else | |
22234 | #include <time.h> | |
22235 | #endif | |
22236 | #endif | |
503d2be0 AS |
22237 | int |
22238 | main () | |
22239 | { | |
a3f08d9e | 22240 | struct timeval time; |
b936fae4 | 22241 | gettimeofday (&time, 0); |
503d2be0 AS |
22242 | ; |
22243 | return 0; | |
22244 | } | |
22245 | _ACEOF | |
22246 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
22247 | if { (ac_try="$ac_compile" |
22248 | case "(($ac_try" in | |
22249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22250 | *) ac_try_echo=$ac_try;; | |
22251 | esac | |
22252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22253 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 22254 | ac_status=$? |
edfaf76d LK |
22255 | grep -v '^ *+' conftest.er1 >conftest.err |
22256 | rm -f conftest.er1 | |
22257 | cat conftest.err >&5 | |
c0d27fcc | 22258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
22259 | (exit $ac_status); } && { |
22260 | test -z "$ac_c_werror_flag" || | |
22261 | test ! -s conftest.err | |
22262 | } && test -s conftest.$ac_objext; then | |
ba4481b5 DL |
22263 | emacs_cv_gettimeofday_two_arguments=yes |
22264 | else | |
503d2be0 | 22265 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
22266 | sed 's/^/| /' conftest.$ac_ext >&5 |
22267 | ||
d6e01aa5 | 22268 | emacs_cv_gettimeofday_two_arguments=no |
ba4481b5 | 22269 | fi |
d6e01aa5 KL |
22270 | |
22271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 22272 | fi |
d6e01aa5 KL |
22273 | { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
22274 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; } | |
b936fae4 AS |
22275 | if test $emacs_cv_gettimeofday_two_arguments = no; then |
22276 | ||
c0d27fcc | 22277 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 22278 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
c0d27fcc | 22279 | _ACEOF |
ba4481b5 | 22280 | |
b936fae4 | 22281 | fi |
ba4481b5 DL |
22282 | fi |
22283 | fi | |
22284 | ||
22285 | ok_so_far=yes | |
d6e01aa5 KL |
22286 | { echo "$as_me:$LINENO: checking for socket" >&5 |
22287 | echo $ECHO_N "checking for socket... $ECHO_C" >&6; } | |
503d2be0 AS |
22288 | if test "${ac_cv_func_socket+set}" = set; then |
22289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 22290 | else |
503d2be0 | 22291 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22292 | /* confdefs.h. */ |
22293 | _ACEOF | |
22294 | cat confdefs.h >>conftest.$ac_ext | |
22295 | cat >>conftest.$ac_ext <<_ACEOF | |
22296 | /* end confdefs.h. */ | |
edfaf76d LK |
22297 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
22298 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22299 | #define socket innocuous_socket | |
22300 | ||
ba4481b5 | 22301 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
22302 | which can conflict with char socket (); below. |
22303 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22304 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 22305 | |
19650fd6 AS |
22306 | #ifdef __STDC__ |
22307 | # include <limits.h> | |
22308 | #else | |
22309 | # include <assert.h> | |
22310 | #endif | |
edfaf76d LK |
22311 | |
22312 | #undef socket | |
22313 | ||
d6e01aa5 KL |
22314 | /* Override any GCC internal prototype to avoid an error. |
22315 | Use char because int might match the return type of a GCC | |
22316 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
22317 | #ifdef __cplusplus |
22318 | extern "C" | |
22319 | #endif | |
503d2be0 | 22320 | char socket (); |
ba4481b5 DL |
22321 | /* The GNU C library defines this for functions which it implements |
22322 | to always fail with ENOSYS. Some functions are actually named | |
22323 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 22324 | #if defined __stub_socket || defined __stub___socket |
ba4481b5 | 22325 | choke me |
cd958eb3 MB |
22326 | #endif |
22327 | ||
19650fd6 AS |
22328 | int |
22329 | main () | |
22330 | { | |
d6e01aa5 | 22331 | return socket (); |
503d2be0 AS |
22332 | ; |
22333 | return 0; | |
22334 | } | |
22335 | _ACEOF | |
22336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
22337 | if { (ac_try="$ac_link" |
22338 | case "(($ac_try" in | |
22339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22340 | *) ac_try_echo=$ac_try;; | |
22341 | esac | |
22342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22343 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 22344 | ac_status=$? |
edfaf76d LK |
22345 | grep -v '^ *+' conftest.er1 >conftest.err |
22346 | rm -f conftest.er1 | |
22347 | cat conftest.err >&5 | |
c0d27fcc | 22348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
22349 | (exit $ac_status); } && { |
22350 | test -z "$ac_c_werror_flag" || | |
22351 | test ! -s conftest.err | |
22352 | } && test -s conftest$ac_exeext && | |
22353 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
22354 | ac_cv_func_socket=yes |
22355 | else | |
22356 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22357 | sed 's/^/| /' conftest.$ac_ext >&5 |
22358 | ||
d6e01aa5 | 22359 | ac_cv_func_socket=no |
503d2be0 | 22360 | fi |
d6e01aa5 KL |
22361 | |
22362 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 22363 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 22364 | fi |
d6e01aa5 KL |
22365 | { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
22366 | echo "${ECHO_T}$ac_cv_func_socket" >&6; } | |
503d2be0 | 22367 | if test $ac_cv_func_socket = yes; then |
ba4481b5 DL |
22368 | : |
22369 | else | |
503d2be0 | 22370 | ok_so_far=no |
ba4481b5 DL |
22371 | fi |
22372 | ||
22373 | if test $ok_so_far = yes; then | |
c0d27fcc | 22374 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
d6e01aa5 KL |
22375 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
22376 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } | |
503d2be0 AS |
22377 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
22378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 22379 | fi |
d6e01aa5 KL |
22380 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
22381 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } | |
98418dba | 22382 | else |
c0d27fcc | 22383 | # Is the header compilable? |
d6e01aa5 KL |
22384 | { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
22385 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 22386 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22387 | /* confdefs.h. */ |
22388 | _ACEOF | |
22389 | cat confdefs.h >>conftest.$ac_ext | |
22390 | cat >>conftest.$ac_ext <<_ACEOF | |
22391 | /* end confdefs.h. */ | |
c0d27fcc MR |
22392 | $ac_includes_default |
22393 | #include <netinet/in.h> | |
22394 | _ACEOF | |
22395 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
22396 | if { (ac_try="$ac_compile" |
22397 | case "(($ac_try" in | |
22398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22399 | *) ac_try_echo=$ac_try;; | |
22400 | esac | |
22401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22402 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 22403 | ac_status=$? |
edfaf76d LK |
22404 | grep -v '^ *+' conftest.er1 >conftest.err |
22405 | rm -f conftest.er1 | |
22406 | cat conftest.err >&5 | |
c0d27fcc | 22407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
22408 | (exit $ac_status); } && { |
22409 | test -z "$ac_c_werror_flag" || | |
22410 | test ! -s conftest.err | |
22411 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
22412 | ac_header_compiler=yes |
22413 | else | |
22414 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22415 | sed 's/^/| /' conftest.$ac_ext >&5 |
22416 | ||
d6e01aa5 | 22417 | ac_header_compiler=no |
c0d27fcc | 22418 | fi |
d6e01aa5 KL |
22419 | |
22420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22421 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22422 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
22423 | |
22424 | # Is the header present? | |
d6e01aa5 KL |
22425 | { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
22426 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 22427 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22428 | /* confdefs.h. */ |
22429 | _ACEOF | |
22430 | cat confdefs.h >>conftest.$ac_ext | |
22431 | cat >>conftest.$ac_ext <<_ACEOF | |
22432 | /* end confdefs.h. */ | |
ba4481b5 | 22433 | #include <netinet/in.h> |
503d2be0 | 22434 | _ACEOF |
d6e01aa5 KL |
22435 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22436 | case "(($ac_try" in | |
22437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22438 | *) ac_try_echo=$ac_try;; | |
22439 | esac | |
22440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22441 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 22442 | ac_status=$? |
6bae0ccf | 22443 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
22444 | rm -f conftest.er1 |
22445 | cat conftest.err >&5 | |
c0d27fcc | 22446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
22447 | (exit $ac_status); } >/dev/null && { |
22448 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22449 | test ! -s conftest.err | |
22450 | }; then | |
c0d27fcc | 22451 | ac_header_preproc=yes |
ba4481b5 | 22452 | else |
503d2be0 | 22453 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
22454 | sed 's/^/| /' conftest.$ac_ext >&5 |
22455 | ||
c0d27fcc | 22456 | ac_header_preproc=no |
ba4481b5 | 22457 | fi |
d6e01aa5 | 22458 | |
503d2be0 | 22459 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
22460 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22461 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
22462 | |
22463 | # So? What about this header? | |
edfaf76d LK |
22464 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22465 | yes:no: ) | |
c0d27fcc MR |
22466 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22467 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
22468 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
22469 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} | |
22470 | ac_header_preproc=yes | |
19650fd6 | 22471 | ;; |
edfaf76d | 22472 | no:yes:* ) |
c0d27fcc MR |
22473 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
22474 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
22475 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
22476 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} | |
22477 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 | |
22478 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} | |
22479 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22480 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 22481 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 22482 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
22483 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
22484 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 22485 | |
19650fd6 | 22486 | ;; |
c0d27fcc | 22487 | esac |
d6e01aa5 KL |
22488 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
22489 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
22490 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
22491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22492 | else | |
22493 | ac_cv_header_netinet_in_h=$ac_header_preproc | |
ba4481b5 | 22494 | fi |
d6e01aa5 KL |
22495 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
22496 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } | |
c0d27fcc MR |
22497 | |
22498 | fi | |
503d2be0 | 22499 | if test $ac_cv_header_netinet_in_h = yes; then |
ba4481b5 DL |
22500 | : |
22501 | else | |
503d2be0 | 22502 | ok_so_far=no |
ba4481b5 DL |
22503 | fi |
22504 | ||
c0d27fcc | 22505 | |
ba4481b5 DL |
22506 | fi |
22507 | if test $ok_so_far = yes; then | |
c0d27fcc | 22508 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
d6e01aa5 KL |
22509 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
22510 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } | |
503d2be0 AS |
22511 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
22512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 22513 | fi |
d6e01aa5 KL |
22514 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
22515 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } | |
98418dba | 22516 | else |
c0d27fcc | 22517 | # Is the header compilable? |
d6e01aa5 KL |
22518 | { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
22519 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 22520 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22521 | /* confdefs.h. */ |
22522 | _ACEOF | |
22523 | cat confdefs.h >>conftest.$ac_ext | |
22524 | cat >>conftest.$ac_ext <<_ACEOF | |
22525 | /* end confdefs.h. */ | |
c0d27fcc MR |
22526 | $ac_includes_default |
22527 | #include <arpa/inet.h> | |
22528 | _ACEOF | |
22529 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
22530 | if { (ac_try="$ac_compile" |
22531 | case "(($ac_try" in | |
22532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22533 | *) ac_try_echo=$ac_try;; | |
22534 | esac | |
22535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22536 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 22537 | ac_status=$? |
edfaf76d LK |
22538 | grep -v '^ *+' conftest.er1 >conftest.err |
22539 | rm -f conftest.er1 | |
22540 | cat conftest.err >&5 | |
c0d27fcc | 22541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
22542 | (exit $ac_status); } && { |
22543 | test -z "$ac_c_werror_flag" || | |
22544 | test ! -s conftest.err | |
22545 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
22546 | ac_header_compiler=yes |
22547 | else | |
22548 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22549 | sed 's/^/| /' conftest.$ac_ext >&5 |
22550 | ||
d6e01aa5 | 22551 | ac_header_compiler=no |
c0d27fcc | 22552 | fi |
d6e01aa5 KL |
22553 | |
22554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22555 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22556 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
22557 | |
22558 | # Is the header present? | |
d6e01aa5 KL |
22559 | { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
22560 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 22561 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22562 | /* confdefs.h. */ |
22563 | _ACEOF | |
22564 | cat confdefs.h >>conftest.$ac_ext | |
22565 | cat >>conftest.$ac_ext <<_ACEOF | |
22566 | /* end confdefs.h. */ | |
ba4481b5 | 22567 | #include <arpa/inet.h> |
503d2be0 | 22568 | _ACEOF |
d6e01aa5 KL |
22569 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22570 | case "(($ac_try" in | |
22571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22572 | *) ac_try_echo=$ac_try;; | |
22573 | esac | |
22574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22575 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 22576 | ac_status=$? |
6bae0ccf | 22577 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
22578 | rm -f conftest.er1 |
22579 | cat conftest.err >&5 | |
c0d27fcc | 22580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
22581 | (exit $ac_status); } >/dev/null && { |
22582 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22583 | test ! -s conftest.err | |
22584 | }; then | |
c0d27fcc | 22585 | ac_header_preproc=yes |
ba4481b5 | 22586 | else |
503d2be0 | 22587 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
22588 | sed 's/^/| /' conftest.$ac_ext >&5 |
22589 | ||
c0d27fcc | 22590 | ac_header_preproc=no |
ba4481b5 | 22591 | fi |
d6e01aa5 | 22592 | |
503d2be0 | 22593 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
22594 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22595 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
22596 | |
22597 | # So? What about this header? | |
edfaf76d LK |
22598 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22599 | yes:no: ) | |
c0d27fcc MR |
22600 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22601 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
22602 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
22603 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} | |
22604 | ac_header_preproc=yes | |
19650fd6 | 22605 | ;; |
edfaf76d | 22606 | no:yes:* ) |
c0d27fcc MR |
22607 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
22608 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
22609 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
22610 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} | |
22611 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 | |
22612 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} | |
22613 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22614 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 22615 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 22616 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
22617 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
22618 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 22619 | |
19650fd6 | 22620 | ;; |
c0d27fcc | 22621 | esac |
d6e01aa5 KL |
22622 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
22623 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
22624 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
22625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22626 | else | |
22627 | ac_cv_header_arpa_inet_h=$ac_header_preproc | |
ba4481b5 | 22628 | fi |
d6e01aa5 KL |
22629 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
22630 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } | |
c0d27fcc MR |
22631 | |
22632 | fi | |
503d2be0 | 22633 | if test $ac_cv_header_arpa_inet_h = yes; then |
ba4481b5 DL |
22634 | : |
22635 | else | |
503d2be0 | 22636 | ok_so_far=no |
ba4481b5 DL |
22637 | fi |
22638 | ||
c0d27fcc | 22639 | |
ba4481b5 DL |
22640 | fi |
22641 | if test $ok_so_far = yes; then | |
b936fae4 | 22642 | |
c0d27fcc | 22643 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 22644 | #define HAVE_INET_SOCKETS 1 |
c0d27fcc | 22645 | _ACEOF |
ba4481b5 DL |
22646 | |
22647 | fi | |
22648 | ||
2d2b6695 | 22649 | |
7862d3a8 | 22650 | for ac_header in sys/ioctl.h |
2d2b6695 KS |
22651 | do |
22652 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
22653 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
22654 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22655 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
22656 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
2d2b6695 KS |
22657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22658 | fi | |
d6e01aa5 KL |
22659 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22660 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22661 | echo "${ECHO_T}$ac_res" >&6; } | |
2d2b6695 KS |
22662 | else |
22663 | # Is the header compilable? | |
d6e01aa5 KL |
22664 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
22665 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
2d2b6695 | 22666 | cat >conftest.$ac_ext <<_ACEOF |
2d2b6695 KS |
22667 | /* confdefs.h. */ |
22668 | _ACEOF | |
22669 | cat confdefs.h >>conftest.$ac_ext | |
22670 | cat >>conftest.$ac_ext <<_ACEOF | |
22671 | /* end confdefs.h. */ | |
22672 | $ac_includes_default | |
22673 | #include <$ac_header> | |
22674 | _ACEOF | |
22675 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
22676 | if { (ac_try="$ac_compile" |
22677 | case "(($ac_try" in | |
22678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22679 | *) ac_try_echo=$ac_try;; | |
22680 | esac | |
22681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22682 | (eval "$ac_compile") 2>conftest.er1 | |
2d2b6695 | 22683 | ac_status=$? |
edfaf76d LK |
22684 | grep -v '^ *+' conftest.er1 >conftest.err |
22685 | rm -f conftest.er1 | |
22686 | cat conftest.err >&5 | |
2d2b6695 | 22687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
22688 | (exit $ac_status); } && { |
22689 | test -z "$ac_c_werror_flag" || | |
22690 | test ! -s conftest.err | |
22691 | } && test -s conftest.$ac_objext; then | |
2d2b6695 KS |
22692 | ac_header_compiler=yes |
22693 | else | |
22694 | echo "$as_me: failed program was:" >&5 | |
22695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22696 | ||
d6e01aa5 | 22697 | ac_header_compiler=no |
2d2b6695 | 22698 | fi |
d6e01aa5 KL |
22699 | |
22700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22701 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22702 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
2d2b6695 KS |
22703 | |
22704 | # Is the header present? | |
d6e01aa5 KL |
22705 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
22706 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
2d2b6695 | 22707 | cat >conftest.$ac_ext <<_ACEOF |
2d2b6695 KS |
22708 | /* confdefs.h. */ |
22709 | _ACEOF | |
22710 | cat confdefs.h >>conftest.$ac_ext | |
22711 | cat >>conftest.$ac_ext <<_ACEOF | |
22712 | /* end confdefs.h. */ | |
22713 | #include <$ac_header> | |
22714 | _ACEOF | |
d6e01aa5 KL |
22715 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22716 | case "(($ac_try" in | |
22717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22718 | *) ac_try_echo=$ac_try;; | |
22719 | esac | |
22720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22721 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
2d2b6695 KS |
22722 | ac_status=$? |
22723 | grep -v '^ *+' conftest.er1 >conftest.err | |
22724 | rm -f conftest.er1 | |
22725 | cat conftest.err >&5 | |
22726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d6e01aa5 KL |
22727 | (exit $ac_status); } >/dev/null && { |
22728 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22729 | test ! -s conftest.err | |
22730 | }; then | |
2d2b6695 KS |
22731 | ac_header_preproc=yes |
22732 | else | |
22733 | echo "$as_me: failed program was:" >&5 | |
22734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22735 | ||
22736 | ac_header_preproc=no | |
22737 | fi | |
d6e01aa5 | 22738 | |
2d2b6695 | 22739 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
22740 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22741 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
2d2b6695 KS |
22742 | |
22743 | # So? What about this header? | |
edfaf76d LK |
22744 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22745 | yes:no: ) | |
2d2b6695 KS |
22746 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22747 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
22748 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22749 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22750 | ac_header_preproc=yes | |
2d2b6695 | 22751 | ;; |
edfaf76d | 22752 | no:yes:* ) |
2d2b6695 KS |
22753 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22754 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
22755 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22756 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22757 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22758 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22759 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22760 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
2d2b6695 KS |
22761 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22762 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
22763 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22764 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 22765 | |
2d2b6695 KS |
22766 | ;; |
22767 | esac | |
d6e01aa5 KL |
22768 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22769 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
22770 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
2d2b6695 KS |
22771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22772 | else | |
edfaf76d | 22773 | eval "$as_ac_Header=\$ac_header_preproc" |
2d2b6695 | 22774 | fi |
d6e01aa5 KL |
22775 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22776 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22777 | echo "${ECHO_T}$ac_res" >&6; } | |
2d2b6695 KS |
22778 | |
22779 | fi | |
22780 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22781 | cat >>confdefs.h <<_ACEOF | |
22782 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22783 | _ACEOF | |
22784 | ||
22785 | fi | |
22786 | ||
22787 | done | |
22788 | ||
22789 | ||
ba4481b5 | 22790 | if test -f /usr/lpp/X11/bin/smt.exp; then |
b936fae4 | 22791 | |
c0d27fcc | 22792 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 22793 | #define HAVE_AIX_SMT_EXP 1 |
c0d27fcc | 22794 | _ACEOF |
ba4481b5 DL |
22795 | |
22796 | fi | |
22797 | ||
d6e01aa5 KL |
22798 | { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 |
22799 | echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; } | |
3d9fec71 | 22800 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
d6e01aa5 KL |
22801 | { echo "$as_me:$LINENO: result: yes" >&5 |
22802 | echo "${ECHO_T}yes" >&6; } | |
b936fae4 | 22803 | |
c0d27fcc | 22804 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 22805 | #define HAVE_DEV_PTMX 1 |
c0d27fcc | 22806 | _ACEOF |
3d9fec71 DL |
22807 | |
22808 | else | |
d6e01aa5 KL |
22809 | { echo "$as_me:$LINENO: result: no" >&5 |
22810 | echo "${ECHO_T}no" >&6; } | |
3d9fec71 DL |
22811 | fi |
22812 | ||
d6e01aa5 KL |
22813 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
22814 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
503d2be0 AS |
22815 | if test "${ac_cv_type_pid_t+set}" = set; then |
22816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
647847ea | 22817 | else |
503d2be0 | 22818 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22819 | /* confdefs.h. */ |
22820 | _ACEOF | |
22821 | cat confdefs.h >>conftest.$ac_ext | |
22822 | cat >>conftest.$ac_ext <<_ACEOF | |
22823 | /* end confdefs.h. */ | |
503d2be0 | 22824 | $ac_includes_default |
d6e01aa5 | 22825 | typedef pid_t ac__type_new_; |
503d2be0 AS |
22826 | int |
22827 | main () | |
22828 | { | |
d6e01aa5 | 22829 | if ((ac__type_new_ *) 0) |
503d2be0 | 22830 | return 0; |
d6e01aa5 | 22831 | if (sizeof (ac__type_new_)) |
503d2be0 AS |
22832 | return 0; |
22833 | ; | |
22834 | return 0; | |
22835 | } | |
22836 | _ACEOF | |
22837 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
22838 | if { (ac_try="$ac_compile" |
22839 | case "(($ac_try" in | |
22840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22841 | *) ac_try_echo=$ac_try;; | |
22842 | esac | |
22843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22844 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 22845 | ac_status=$? |
edfaf76d LK |
22846 | grep -v '^ *+' conftest.er1 >conftest.err |
22847 | rm -f conftest.er1 | |
22848 | cat conftest.err >&5 | |
c0d27fcc | 22849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
22850 | (exit $ac_status); } && { |
22851 | test -z "$ac_c_werror_flag" || | |
22852 | test ! -s conftest.err | |
22853 | } && test -s conftest.$ac_objext; then | |
647847ea DL |
22854 | ac_cv_type_pid_t=yes |
22855 | else | |
503d2be0 | 22856 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
22857 | sed 's/^/| /' conftest.$ac_ext >&5 |
22858 | ||
d6e01aa5 | 22859 | ac_cv_type_pid_t=no |
647847ea | 22860 | fi |
d6e01aa5 KL |
22861 | |
22862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
647847ea | 22863 | fi |
d6e01aa5 KL |
22864 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
22865 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
503d2be0 AS |
22866 | if test $ac_cv_type_pid_t = yes; then |
22867 | : | |
22868 | else | |
22869 | ||
c0d27fcc | 22870 | cat >>confdefs.h <<_ACEOF |
647847ea | 22871 | #define pid_t int |
c0d27fcc | 22872 | _ACEOF |
647847ea DL |
22873 | |
22874 | fi | |
22875 | ||
c0d27fcc | 22876 | |
d6e01aa5 | 22877 | for ac_header in vfork.h |
503d2be0 AS |
22878 | do |
22879 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d6e01aa5 KL |
22880 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
22881 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22882 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
22883 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 22884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 22885 | fi |
d6e01aa5 KL |
22886 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22887 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22888 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 22889 | else |
c0d27fcc | 22890 | # Is the header compilable? |
d6e01aa5 KL |
22891 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
22892 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 22893 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22894 | /* confdefs.h. */ |
22895 | _ACEOF | |
22896 | cat confdefs.h >>conftest.$ac_ext | |
22897 | cat >>conftest.$ac_ext <<_ACEOF | |
22898 | /* end confdefs.h. */ | |
c0d27fcc MR |
22899 | $ac_includes_default |
22900 | #include <$ac_header> | |
22901 | _ACEOF | |
22902 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
22903 | if { (ac_try="$ac_compile" |
22904 | case "(($ac_try" in | |
22905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22906 | *) ac_try_echo=$ac_try;; | |
22907 | esac | |
22908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22909 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 22910 | ac_status=$? |
edfaf76d LK |
22911 | grep -v '^ *+' conftest.er1 >conftest.err |
22912 | rm -f conftest.er1 | |
22913 | cat conftest.err >&5 | |
c0d27fcc | 22914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
22915 | (exit $ac_status); } && { |
22916 | test -z "$ac_c_werror_flag" || | |
22917 | test ! -s conftest.err | |
22918 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
22919 | ac_header_compiler=yes |
22920 | else | |
22921 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22922 | sed 's/^/| /' conftest.$ac_ext >&5 |
22923 | ||
d6e01aa5 | 22924 | ac_header_compiler=no |
c0d27fcc | 22925 | fi |
d6e01aa5 KL |
22926 | |
22927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22928 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22929 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
22930 | |
22931 | # Is the header present? | |
d6e01aa5 KL |
22932 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
22933 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 22934 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22935 | /* confdefs.h. */ |
22936 | _ACEOF | |
22937 | cat confdefs.h >>conftest.$ac_ext | |
22938 | cat >>conftest.$ac_ext <<_ACEOF | |
22939 | /* end confdefs.h. */ | |
503d2be0 AS |
22940 | #include <$ac_header> |
22941 | _ACEOF | |
d6e01aa5 KL |
22942 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22943 | case "(($ac_try" in | |
22944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22945 | *) ac_try_echo=$ac_try;; | |
22946 | esac | |
22947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22948 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 22949 | ac_status=$? |
6bae0ccf | 22950 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
22951 | rm -f conftest.er1 |
22952 | cat conftest.err >&5 | |
c0d27fcc | 22953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
22954 | (exit $ac_status); } >/dev/null && { |
22955 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22956 | test ! -s conftest.err | |
22957 | }; then | |
c0d27fcc | 22958 | ac_header_preproc=yes |
647847ea | 22959 | else |
503d2be0 | 22960 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
22961 | sed 's/^/| /' conftest.$ac_ext >&5 |
22962 | ||
c0d27fcc | 22963 | ac_header_preproc=no |
647847ea | 22964 | fi |
d6e01aa5 | 22965 | |
503d2be0 | 22966 | rm -f conftest.err conftest.$ac_ext |
d6e01aa5 KL |
22967 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22968 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
22969 | |
22970 | # So? What about this header? | |
edfaf76d LK |
22971 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22972 | yes:no: ) | |
c0d27fcc MR |
22973 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22974 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
22975 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22976 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22977 | ac_header_preproc=yes | |
19650fd6 | 22978 | ;; |
edfaf76d | 22979 | no:yes:* ) |
c0d27fcc MR |
22980 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22981 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
22982 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22983 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22984 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22985 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22986 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22987 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 22988 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 22989 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
22990 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22991 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d6e01aa5 | 22992 | |
19650fd6 | 22993 | ;; |
c0d27fcc | 22994 | esac |
d6e01aa5 KL |
22995 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22996 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
22997 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
22998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22999 | else | |
edfaf76d | 23000 | eval "$as_ac_Header=\$ac_header_preproc" |
647847ea | 23001 | fi |
d6e01aa5 KL |
23002 | ac_res=`eval echo '${'$as_ac_Header'}'` |
23003 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23004 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
23005 | |
23006 | fi | |
503d2be0 | 23007 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 23008 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 23009 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 23010 | _ACEOF |
647847ea | 23011 | |
73b77ee5 | 23012 | fi |
c0d27fcc | 23013 | |
503d2be0 | 23014 | done |
73b77ee5 | 23015 | |
c0d27fcc MR |
23016 | |
23017 | ||
503d2be0 AS |
23018 | for ac_func in fork vfork |
23019 | do | |
23020 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
d6e01aa5 KL |
23021 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
23022 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
23023 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 23024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fa0b693c | 23025 | else |
503d2be0 | 23026 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
23027 | /* confdefs.h. */ |
23028 | _ACEOF | |
23029 | cat confdefs.h >>conftest.$ac_ext | |
23030 | cat >>conftest.$ac_ext <<_ACEOF | |
23031 | /* end confdefs.h. */ | |
edfaf76d LK |
23032 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23033 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23034 | #define $ac_func innocuous_$ac_func | |
23035 | ||
fa0b693c | 23036 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
23037 | which can conflict with char $ac_func (); below. |
23038 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23039 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 23040 | |
19650fd6 AS |
23041 | #ifdef __STDC__ |
23042 | # include <limits.h> | |
23043 | #else | |
23044 | # include <assert.h> | |
23045 | #endif | |
edfaf76d LK |
23046 | |
23047 | #undef $ac_func | |
23048 | ||
d6e01aa5 KL |
23049 | /* Override any GCC internal prototype to avoid an error. |
23050 | Use char because int might match the return type of a GCC | |
23051 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
23052 | #ifdef __cplusplus |
23053 | extern "C" | |
23054 | #endif | |
503d2be0 | 23055 | char $ac_func (); |
fa0b693c GM |
23056 | /* The GNU C library defines this for functions which it implements |
23057 | to always fail with ENOSYS. Some functions are actually named | |
23058 | something starting with __ and the normal name is an alias. */ | |
d6e01aa5 | 23059 | #if defined __stub_$ac_func || defined __stub___$ac_func |
fa0b693c | 23060 | choke me |
fa0b693c GM |
23061 | #endif |
23062 | ||
19650fd6 AS |
23063 | int |
23064 | main () | |
23065 | { | |
d6e01aa5 | 23066 | return $ac_func (); |
503d2be0 AS |
23067 | ; |
23068 | return 0; | |
23069 | } | |
23070 | _ACEOF | |
23071 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
23072 | if { (ac_try="$ac_link" |
23073 | case "(($ac_try" in | |
23074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23075 | *) ac_try_echo=$ac_try;; | |
23076 | esac | |
23077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23078 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 23079 | ac_status=$? |
edfaf76d LK |
23080 | grep -v '^ *+' conftest.er1 >conftest.err |
23081 | rm -f conftest.er1 | |
23082 | cat conftest.err >&5 | |
c0d27fcc | 23083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
23084 | (exit $ac_status); } && { |
23085 | test -z "$ac_c_werror_flag" || | |
23086 | test ! -s conftest.err | |
23087 | } && test -s conftest$ac_exeext && | |
23088 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
23089 | eval "$as_ac_var=yes" |
23090 | else | |
23091 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23092 | sed 's/^/| /' conftest.$ac_ext >&5 |
23093 | ||
d6e01aa5 | 23094 | eval "$as_ac_var=no" |
503d2be0 | 23095 | fi |
d6e01aa5 KL |
23096 | |
23097 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 23098 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 23099 | fi |
d6e01aa5 KL |
23100 | ac_res=`eval echo '${'$as_ac_var'}'` |
23101 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23102 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 23103 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 23104 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 23105 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 23106 | _ACEOF |
503d2be0 | 23107 | |
fa0b693c | 23108 | fi |
503d2be0 | 23109 | done |
fa0b693c | 23110 | |
503d2be0 | 23111 | if test "x$ac_cv_func_fork" = xyes; then |
d6e01aa5 KL |
23112 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
23113 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
503d2be0 AS |
23114 | if test "${ac_cv_func_fork_works+set}" = set; then |
23115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 23116 | else |
503d2be0 AS |
23117 | if test "$cross_compiling" = yes; then |
23118 | ac_cv_func_fork_works=cross | |
23119 | else | |
23120 | cat >conftest.$ac_ext <<_ACEOF | |
c3a63088 KL |
23121 | /* confdefs.h. */ |
23122 | _ACEOF | |
23123 | cat confdefs.h >>conftest.$ac_ext | |
23124 | cat >>conftest.$ac_ext <<_ACEOF | |
23125 | /* end confdefs.h. */ | |
23126 | $ac_includes_default | |
23127 | int | |
23128 | main () | |
23129 | { | |
23130 | ||
23131 | /* By Ruediger Kuhlmann. */ | |
d6e01aa5 | 23132 | return fork () < 0; |
c3a63088 KL |
23133 | |
23134 | ; | |
23135 | return 0; | |
23136 | } | |
503d2be0 AS |
23137 | _ACEOF |
23138 | rm -f conftest$ac_exeext | |
d6e01aa5 KL |
23139 | if { (ac_try="$ac_link" |
23140 | case "(($ac_try" in | |
23141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23142 | *) ac_try_echo=$ac_try;; | |
23143 | esac | |
23144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23145 | (eval "$ac_link") 2>&5 | |
503d2be0 | 23146 | ac_status=$? |
c0d27fcc | 23147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 23148 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d6e01aa5 KL |
23149 | { (case "(($ac_try" in |
23150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23151 | *) ac_try_echo=$ac_try;; | |
23152 | esac | |
23153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23154 | (eval "$ac_try") 2>&5 | |
503d2be0 | 23155 | ac_status=$? |
c0d27fcc | 23156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
23157 | (exit $ac_status); }; }; then |
23158 | ac_cv_func_fork_works=yes | |
23159 | else | |
23160 | echo "$as_me: program exited with status $ac_status" >&5 | |
23161 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23162 | sed 's/^/| /' conftest.$ac_ext >&5 |
23163 | ||
c0d27fcc | 23164 | ( exit $ac_status ) |
503d2be0 AS |
23165 | ac_cv_func_fork_works=no |
23166 | fi | |
d6e01aa5 | 23167 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 23168 | fi |
d6e01aa5 KL |
23169 | |
23170 | ||
503d2be0 | 23171 | fi |
d6e01aa5 KL |
23172 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
23173 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
503d2be0 | 23174 | |
6bae0ccf DL |
23175 | else |
23176 | ac_cv_func_fork_works=$ac_cv_func_fork | |
503d2be0 AS |
23177 | fi |
23178 | if test "x$ac_cv_func_fork_works" = xcross; then | |
23179 | case $host in | |
23180 | *-*-amigaos* | *-*-msdosdjgpp*) | |
23181 | # Override, as these systems have only a dummy fork() stub | |
23182 | ac_cv_func_fork_works=no | |
23183 | ;; | |
23184 | *) | |
23185 | ac_cv_func_fork_works=yes | |
23186 | ;; | |
23187 | esac | |
c0d27fcc MR |
23188 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
23189 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
fa0b693c | 23190 | fi |
73b77ee5 | 23191 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
503d2be0 | 23192 | if test "x$ac_cv_func_vfork" = xyes; then |
d6e01aa5 KL |
23193 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
23194 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
503d2be0 AS |
23195 | if test "${ac_cv_func_vfork_works+set}" = set; then |
23196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23197 | else | |
23198 | if test "$cross_compiling" = yes; then | |
23199 | ac_cv_func_vfork_works=cross | |
fa0b693c | 23200 | else |
503d2be0 | 23201 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
23202 | /* confdefs.h. */ |
23203 | _ACEOF | |
23204 | cat confdefs.h >>conftest.$ac_ext | |
23205 | cat >>conftest.$ac_ext <<_ACEOF | |
23206 | /* end confdefs.h. */ | |
73b77ee5 | 23207 | /* Thanks to Paul Eggert for this test. */ |
d6e01aa5 | 23208 | $ac_includes_default |
19650fd6 | 23209 | #include <sys/wait.h> |
d6e01aa5 | 23210 | #ifdef HAVE_VFORK_H |
503d2be0 | 23211 | # include <vfork.h> |
73b77ee5 GM |
23212 | #endif |
23213 | /* On some sparc systems, changes by the child to local and incoming | |
503d2be0 AS |
23214 | argument registers are propagated back to the parent. The compiler |
23215 | is told about this with #include <vfork.h>, but some compilers | |
23216 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
23217 | static variable whose address is put into a register that is | |
23218 | clobbered by the vfork. */ | |
19650fd6 | 23219 | static void |
fa0b693c | 23220 | #ifdef __cplusplus |
73b77ee5 | 23221 | sparc_address_test (int arg) |
503d2be0 | 23222 | # else |
73b77ee5 | 23223 | sparc_address_test (arg) int arg; |
fa0b693c | 23224 | #endif |
fa0b693c | 23225 | { |
73b77ee5 GM |
23226 | static pid_t child; |
23227 | if (!child) { | |
23228 | child = vfork (); | |
23229 | if (child < 0) { | |
23230 | perror ("vfork"); | |
23231 | _exit(2); | |
23232 | } | |
23233 | if (!child) { | |
23234 | arg = getpid(); | |
23235 | write(-1, "", 0); | |
23236 | _exit (arg); | |
23237 | } | |
23238 | } | |
23239 | } | |
503d2be0 AS |
23240 | |
23241 | int | |
23242 | main () | |
23243 | { | |
73b77ee5 GM |
23244 | pid_t parent = getpid (); |
23245 | pid_t child; | |
fa0b693c | 23246 | |
19650fd6 | 23247 | sparc_address_test (0); |
fa0b693c | 23248 | |
73b77ee5 | 23249 | child = vfork (); |
fa0b693c | 23250 | |
73b77ee5 | 23251 | if (child == 0) { |
503d2be0 AS |
23252 | /* Here is another test for sparc vfork register problems. This |
23253 | test uses lots of local variables, at least as many local | |
23254 | variables as main has allocated so far including compiler | |
23255 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
23256 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
23257 | reuse the register of parent for one of the local variables, | |
23258 | since it will think that parent can't possibly be used any more | |
23259 | in this routine. Assigning to the local variable will thus | |
23260 | munge parent in the parent process. */ | |
73b77ee5 GM |
23261 | pid_t |
23262 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
23263 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
23264 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
23265 | use the same hardware register for all 8 local variables. */ | |
23266 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
23267 | || p != p5 || p != p6 || p != p7) | |
23268 | _exit(1); | |
fa0b693c | 23269 | |
503d2be0 AS |
23270 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
23271 | from child file descriptors. If the child closes a descriptor | |
23272 | before it execs or exits, this munges the parent's descriptor | |
23273 | as well. Test for this by closing stdout in the child. */ | |
73b77ee5 GM |
23274 | _exit(close(fileno(stdout)) != 0); |
23275 | } else { | |
23276 | int status; | |
23277 | struct stat st; | |
23278 | ||
23279 | while (wait(&status) != child) | |
23280 | ; | |
d6e01aa5 | 23281 | return ( |
73b77ee5 GM |
23282 | /* Was there some problem with vforking? */ |
23283 | child < 0 | |
23284 | ||
23285 | /* Did the child fail? (This shouldn't happen.) */ | |
23286 | || status | |
23287 | ||
23288 | /* Did the vfork/compiler bug occur? */ | |
23289 | || parent != getpid() | |
fa0b693c | 23290 | |
73b77ee5 GM |
23291 | /* Did the file descriptor bug occur? */ |
23292 | || fstat(fileno(stdout), &st) != 0 | |
23293 | ); | |
23294 | } | |
23295 | } | |
503d2be0 AS |
23296 | _ACEOF |
23297 | rm -f conftest$ac_exeext | |
d6e01aa5 KL |
23298 | if { (ac_try="$ac_link" |
23299 | case "(($ac_try" in | |
23300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23301 | *) ac_try_echo=$ac_try;; | |
23302 | esac | |
23303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23304 | (eval "$ac_link") 2>&5 | |
503d2be0 | 23305 | ac_status=$? |
c0d27fcc | 23306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 23307 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d6e01aa5 KL |
23308 | { (case "(($ac_try" in |
23309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23310 | *) ac_try_echo=$ac_try;; | |
23311 | esac | |
23312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23313 | (eval "$ac_try") 2>&5 | |
503d2be0 | 23314 | ac_status=$? |
c0d27fcc | 23315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 23316 | (exit $ac_status); }; }; then |
73b77ee5 | 23317 | ac_cv_func_vfork_works=yes |
fa0b693c | 23318 | else |
503d2be0 AS |
23319 | echo "$as_me: program exited with status $ac_status" >&5 |
23320 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23321 | sed 's/^/| /' conftest.$ac_ext >&5 |
23322 | ||
c0d27fcc | 23323 | ( exit $ac_status ) |
503d2be0 AS |
23324 | ac_cv_func_vfork_works=no |
23325 | fi | |
d6e01aa5 | 23326 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
fa0b693c | 23327 | fi |
d6e01aa5 KL |
23328 | |
23329 | ||
fa0b693c | 23330 | fi |
d6e01aa5 KL |
23331 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
23332 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
fa0b693c | 23333 | |
503d2be0 AS |
23334 | fi; |
23335 | if test "x$ac_cv_func_fork_works" = xcross; then | |
edfaf76d | 23336 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
c0d27fcc MR |
23337 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
23338 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
fa0b693c GM |
23339 | fi |
23340 | ||
503d2be0 AS |
23341 | if test "x$ac_cv_func_vfork_works" = xyes; then |
23342 | ||
c0d27fcc | 23343 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 23344 | #define HAVE_WORKING_VFORK 1 |
c0d27fcc | 23345 | _ACEOF |
503d2be0 AS |
23346 | |
23347 | else | |
23348 | ||
c0d27fcc | 23349 | cat >>confdefs.h <<\_ACEOF |
73b77ee5 | 23350 | #define vfork fork |
c0d27fcc | 23351 | _ACEOF |
fa0b693c GM |
23352 | |
23353 | fi | |
503d2be0 AS |
23354 | if test "x$ac_cv_func_fork_works" = xyes; then |
23355 | ||
c0d27fcc | 23356 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 23357 | #define HAVE_WORKING_FORK 1 |
c0d27fcc | 23358 | _ACEOF |
fa0b693c | 23359 | |
503d2be0 | 23360 | fi |
647847ea | 23361 | |
c0d27fcc | 23362 | |
d6e01aa5 KL |
23363 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
23364 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } | |
6a3a24fa JD |
23365 | if test "${emacs_cv_langinfo_codeset+set}" = set; then |
23366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23367 | else | |
23368 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
23369 | /* confdefs.h. */ |
23370 | _ACEOF | |
23371 | cat confdefs.h >>conftest.$ac_ext | |
23372 | cat >>conftest.$ac_ext <<_ACEOF | |
23373 | /* end confdefs.h. */ | |
6a3a24fa JD |
23374 | #include <langinfo.h> |
23375 | int | |
23376 | main () | |
23377 | { | |
23378 | char* cs = nl_langinfo(CODESET); | |
23379 | ; | |
23380 | return 0; | |
23381 | } | |
23382 | _ACEOF | |
23383 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d6e01aa5 KL |
23384 | if { (ac_try="$ac_link" |
23385 | case "(($ac_try" in | |
23386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23387 | *) ac_try_echo=$ac_try;; | |
23388 | esac | |
23389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23390 | (eval "$ac_link") 2>conftest.er1 | |
6a3a24fa | 23391 | ac_status=$? |
edfaf76d LK |
23392 | grep -v '^ *+' conftest.er1 >conftest.err |
23393 | rm -f conftest.er1 | |
23394 | cat conftest.err >&5 | |
6a3a24fa | 23395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
23396 | (exit $ac_status); } && { |
23397 | test -z "$ac_c_werror_flag" || | |
23398 | test ! -s conftest.err | |
23399 | } && test -s conftest$ac_exeext && | |
23400 | $as_test_x conftest$ac_exeext; then | |
6a3a24fa JD |
23401 | emacs_cv_langinfo_codeset=yes |
23402 | else | |
23403 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23404 | sed 's/^/| /' conftest.$ac_ext >&5 |
23405 | ||
d6e01aa5 | 23406 | emacs_cv_langinfo_codeset=no |
6a3a24fa | 23407 | fi |
d6e01aa5 KL |
23408 | |
23409 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 23410 | conftest$ac_exeext conftest.$ac_ext |
6a3a24fa JD |
23411 | |
23412 | fi | |
d6e01aa5 KL |
23413 | { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5 |
23414 | echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; } | |
6a3a24fa JD |
23415 | if test $emacs_cv_langinfo_codeset = yes; then |
23416 | ||
23417 | cat >>confdefs.h <<\_ACEOF | |
23418 | #define HAVE_LANGINFO_CODESET 1 | |
23419 | _ACEOF | |
23420 | ||
23421 | fi | |
23422 | ||
d6e01aa5 KL |
23423 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
23424 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
503d2be0 AS |
23425 | if test "${ac_cv_type_size_t+set}" = set; then |
23426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8730a8da | 23427 | else |
503d2be0 | 23428 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
23429 | /* confdefs.h. */ |
23430 | _ACEOF | |
23431 | cat confdefs.h >>conftest.$ac_ext | |
23432 | cat >>conftest.$ac_ext <<_ACEOF | |
23433 | /* end confdefs.h. */ | |
503d2be0 | 23434 | $ac_includes_default |
d6e01aa5 | 23435 | typedef size_t ac__type_new_; |
503d2be0 AS |
23436 | int |
23437 | main () | |
23438 | { | |
d6e01aa5 | 23439 | if ((ac__type_new_ *) 0) |
503d2be0 | 23440 | return 0; |
d6e01aa5 | 23441 | if (sizeof (ac__type_new_)) |
503d2be0 AS |
23442 | return 0; |
23443 | ; | |
23444 | return 0; | |
23445 | } | |
23446 | _ACEOF | |
23447 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
23448 | if { (ac_try="$ac_compile" |
23449 | case "(($ac_try" in | |
23450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23451 | *) ac_try_echo=$ac_try;; | |
23452 | esac | |
23453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23454 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 23455 | ac_status=$? |
edfaf76d LK |
23456 | grep -v '^ *+' conftest.er1 >conftest.err |
23457 | rm -f conftest.er1 | |
23458 | cat conftest.err >&5 | |
c0d27fcc | 23459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
23460 | (exit $ac_status); } && { |
23461 | test -z "$ac_c_werror_flag" || | |
23462 | test ! -s conftest.err | |
23463 | } && test -s conftest.$ac_objext; then | |
8730a8da DL |
23464 | ac_cv_type_size_t=yes |
23465 | else | |
503d2be0 | 23466 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
23467 | sed 's/^/| /' conftest.$ac_ext >&5 |
23468 | ||
d6e01aa5 | 23469 | ac_cv_type_size_t=no |
8730a8da | 23470 | fi |
d6e01aa5 KL |
23471 | |
23472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8730a8da | 23473 | fi |
d6e01aa5 KL |
23474 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
23475 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
503d2be0 | 23476 | if test $ac_cv_type_size_t = yes; then |
503d2be0 | 23477 | |
c0d27fcc MR |
23478 | cat >>confdefs.h <<_ACEOF |
23479 | #define HAVE_SIZE_T 1 | |
23480 | _ACEOF | |
23481 | ||
8730a8da DL |
23482 | |
23483 | fi | |
23484 | ||
c0d27fcc | 23485 | |
d6e01aa5 KL |
23486 | { echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
23487 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; } | |
973a76b1 DL |
23488 | if test "${ac_cv_type_mbstate_t+set}" = set; then |
23489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23490 | else | |
23491 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
23492 | /* confdefs.h. */ |
23493 | _ACEOF | |
23494 | cat confdefs.h >>conftest.$ac_ext | |
23495 | cat >>conftest.$ac_ext <<_ACEOF | |
23496 | /* end confdefs.h. */ | |
973a76b1 DL |
23497 | $ac_includes_default |
23498 | # include <wchar.h> | |
23499 | int | |
23500 | main () | |
23501 | { | |
23502 | mbstate_t x; return sizeof x; | |
23503 | ; | |
23504 | return 0; | |
23505 | } | |
23506 | _ACEOF | |
23507 | rm -f conftest.$ac_objext | |
d6e01aa5 KL |
23508 | if { (ac_try="$ac_compile" |
23509 | case "(($ac_try" in | |
23510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23511 | *) ac_try_echo=$ac_try;; | |
23512 | esac | |
23513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23514 | (eval "$ac_compile") 2>conftest.er1 | |
973a76b1 | 23515 | ac_status=$? |
edfaf76d LK |
23516 | grep -v '^ *+' conftest.er1 >conftest.err |
23517 | rm -f conftest.er1 | |
23518 | cat conftest.err >&5 | |
973a76b1 | 23519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
23520 | (exit $ac_status); } && { |
23521 | test -z "$ac_c_werror_flag" || | |
23522 | test ! -s conftest.err | |
23523 | } && test -s conftest.$ac_objext; then | |
973a76b1 DL |
23524 | ac_cv_type_mbstate_t=yes |
23525 | else | |
23526 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23527 | sed 's/^/| /' conftest.$ac_ext >&5 |
23528 | ||
d6e01aa5 | 23529 | ac_cv_type_mbstate_t=no |
973a76b1 | 23530 | fi |
d6e01aa5 KL |
23531 | |
23532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
973a76b1 | 23533 | fi |
d6e01aa5 KL |
23534 | { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 |
23535 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; } | |
973a76b1 DL |
23536 | if test $ac_cv_type_mbstate_t = yes; then |
23537 | ||
23538 | cat >>confdefs.h <<\_ACEOF | |
23539 | #define HAVE_MBSTATE_T 1 | |
23540 | _ACEOF | |
23541 | ||
23542 | else | |
23543 | ||
23544 | cat >>confdefs.h <<\_ACEOF | |
23545 | #define mbstate_t int | |
23546 | _ACEOF | |
23547 | ||
23548 | fi | |
23549 | ||
d6e01aa5 KL |
23550 | { echo "$as_me:$LINENO: checking for C restrict keyword" >&5 |
23551 | echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; } | |
22044edf DL |
23552 | if test "${emacs_cv_c_restrict+set}" = set; then |
23553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23554 | else | |
23555 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
23556 | /* confdefs.h. */ |
23557 | _ACEOF | |
23558 | cat confdefs.h >>conftest.$ac_ext | |
23559 | cat >>conftest.$ac_ext <<_ACEOF | |
23560 | /* end confdefs.h. */ | |
22044edf DL |
23561 | void fred (int *restrict x); |
23562 | int | |
23563 | main () | |
23564 | { | |
b936fae4 | 23565 | |
22044edf DL |
23566 | ; |
23567 | return 0; | |
23568 | } | |
c0d27fcc | 23569 | _ACEOF |
22044edf | 23570 | rm -f conftest.$ac_objext |
d6e01aa5 KL |
23571 | if { (ac_try="$ac_compile" |
23572 | case "(($ac_try" in | |
23573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23574 | *) ac_try_echo=$ac_try;; | |
23575 | esac | |
23576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23577 | (eval "$ac_compile") 2>conftest.er1 | |
22044edf | 23578 | ac_status=$? |
edfaf76d LK |
23579 | grep -v '^ *+' conftest.er1 >conftest.err |
23580 | rm -f conftest.er1 | |
23581 | cat conftest.err >&5 | |
22044edf | 23582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
23583 | (exit $ac_status); } && { |
23584 | test -z "$ac_c_werror_flag" || | |
23585 | test ! -s conftest.err | |
23586 | } && test -s conftest.$ac_objext; then | |
22044edf DL |
23587 | emacs_cv_c_restrict=yes |
23588 | else | |
23589 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23590 | sed 's/^/| /' conftest.$ac_ext >&5 |
23591 | ||
d6e01aa5 | 23592 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
23593 | /* confdefs.h. */ |
23594 | _ACEOF | |
23595 | cat confdefs.h >>conftest.$ac_ext | |
23596 | cat >>conftest.$ac_ext <<_ACEOF | |
23597 | /* end confdefs.h. */ | |
22044edf DL |
23598 | void fred (int *__restrict x); |
23599 | int | |
23600 | main () | |
23601 | { | |
c0d27fcc | 23602 | |
22044edf DL |
23603 | ; |
23604 | return 0; | |
23605 | } | |
c0d27fcc | 23606 | _ACEOF |
22044edf | 23607 | rm -f conftest.$ac_objext |
d6e01aa5 KL |
23608 | if { (ac_try="$ac_compile" |
23609 | case "(($ac_try" in | |
23610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23611 | *) ac_try_echo=$ac_try;; | |
23612 | esac | |
23613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23614 | (eval "$ac_compile") 2>conftest.er1 | |
22044edf | 23615 | ac_status=$? |
edfaf76d LK |
23616 | grep -v '^ *+' conftest.er1 >conftest.err |
23617 | rm -f conftest.er1 | |
23618 | cat conftest.err >&5 | |
22044edf | 23619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
23620 | (exit $ac_status); } && { |
23621 | test -z "$ac_c_werror_flag" || | |
23622 | test ! -s conftest.err | |
23623 | } && test -s conftest.$ac_objext; then | |
22044edf DL |
23624 | emacs_cv_c_restrict=__restrict |
23625 | else | |
23626 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23627 | sed 's/^/| /' conftest.$ac_ext >&5 |
23628 | ||
d6e01aa5 | 23629 | emacs_cv_c_restrict=no |
ba4481b5 | 23630 | fi |
d6e01aa5 KL |
23631 | |
23632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 23633 | fi |
d6e01aa5 KL |
23634 | |
23635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 23636 | fi |
d6e01aa5 KL |
23637 | { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 |
23638 | echo "${ECHO_T}$emacs_cv_c_restrict" >&6; } | |
22044edf DL |
23639 | case "$emacs_cv_c_restrict" in |
23640 | yes) emacs_restrict=restrict;; | |
23641 | no) emacs_restrict="";; | |
23642 | *) emacs_restrict="$emacs_cv_c_restrict";; | |
23643 | esac | |
23644 | if test "$emacs_restrict" != __restrict; then | |
b936fae4 | 23645 | |
22044edf DL |
23646 | cat >>confdefs.h <<_ACEOF |
23647 | #define __restrict $emacs_restrict | |
c0d27fcc | 23648 | _ACEOF |
ba4481b5 DL |
23649 | |
23650 | fi | |
ba4481b5 | 23651 | |
d6e01aa5 KL |
23652 | { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 |
23653 | echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; } | |
22044edf DL |
23654 | if test "${emacs_cv_c_restrict_arr+set}" = set; then |
23655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23656 | else | |
23657 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
23658 | /* confdefs.h. */ |
23659 | _ACEOF | |
23660 | cat confdefs.h >>conftest.$ac_ext | |
23661 | cat >>conftest.$ac_ext <<_ACEOF | |
23662 | /* end confdefs.h. */ | |
22044edf DL |
23663 | void fred (int x[__restrict]); |
23664 | int | |
23665 | main () | |
23666 | { | |
b936fae4 | 23667 | |
22044edf DL |
23668 | ; |
23669 | return 0; | |
23670 | } | |
c0d27fcc | 23671 | _ACEOF |
22044edf | 23672 | rm -f conftest.$ac_objext |
d6e01aa5 KL |
23673 | if { (ac_try="$ac_compile" |
23674 | case "(($ac_try" in | |
23675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23676 | *) ac_try_echo=$ac_try;; | |
23677 | esac | |
23678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23679 | (eval "$ac_compile") 2>conftest.er1 | |
22044edf | 23680 | ac_status=$? |
edfaf76d LK |
23681 | grep -v '^ *+' conftest.er1 >conftest.err |
23682 | rm -f conftest.er1 | |
23683 | cat conftest.err >&5 | |
22044edf | 23684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d6e01aa5 KL |
23685 | (exit $ac_status); } && { |
23686 | test -z "$ac_c_werror_flag" || | |
23687 | test ! -s conftest.err | |
23688 | } && test -s conftest.$ac_objext; then | |
22044edf DL |
23689 | emacs_cv_c_restrict_arr=yes |
23690 | else | |
23691 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23692 | sed 's/^/| /' conftest.$ac_ext >&5 |
23693 | ||
d6e01aa5 | 23694 | emacs_cv_c_restrict_arr=no |
ba4481b5 | 23695 | fi |
d6e01aa5 KL |
23696 | |
23697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22044edf | 23698 | fi |
d6e01aa5 KL |
23699 | { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 |
23700 | echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; } | |
22044edf | 23701 | if test "$emacs_cv_c_restrict_arr" = yes; then |
b936fae4 | 23702 | |
c0d27fcc | 23703 | cat >>confdefs.h <<\_ACEOF |
22044edf | 23704 | #define __restrict_arr __restrict |
c0d27fcc | 23705 | _ACEOF |
ba4481b5 | 23706 | |
ba4481b5 DL |
23707 | fi |
23708 | ||
c0d27fcc | 23709 | |
c0d27fcc | 23710 | |
22044edf DL |
23711 | # Set up the CFLAGS for real compilation, so we can substitute it. |
23712 | CFLAGS="$REAL_CFLAGS" | |
23713 | CPPFLAGS="$REAL_CPPFLAGS" | |
23714 | ||
23715 | #### Find out which version of Emacs this is. | |
23716 | version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
23717 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
23718 | if test x"${version}" = x; then | |
23719 | { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 | |
23720 | echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} | |
23721 | { (exit 1); exit 1; }; } | |
23722 | fi | |
23723 | ||
23724 | ### Specify what sort of things we'll be editing into Makefile and config.h. | |
23725 | ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
23726 | ||
23727 | ||
23728 | ||
23729 | ||
23730 | ||
23731 | ||
23732 | ||
23733 | ||
23734 | ||
23735 | ||
23736 | ||
23737 | ||
23738 | ||
23739 | ||
23740 | ||
23741 | ||
23742 | ||
23743 | ||
23744 | ||
23745 | ||
23746 | ||
23747 | ||
23748 | ||
23749 | ||
23750 | ||
23751 | ||
23752 | ||
23753 | ||
23754 | ||
23755 | ||
23756 | ||
23757 | ||
6a3a24fa | 23758 | |
22044edf DL |
23759 | |
23760 | ||
23761 | cat >>confdefs.h <<_ACEOF | |
23762 | #define EMACS_CONFIGURATION "${canonical}" | |
23763 | _ACEOF | |
23764 | ||
23765 | ||
23766 | cat >>confdefs.h <<_ACEOF | |
23767 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
23768 | _ACEOF | |
23769 | ||
23770 | ||
23771 | cat >>confdefs.h <<_ACEOF | |
23772 | #define config_machfile "${machfile}" | |
23773 | _ACEOF | |
23774 | ||
23775 | ||
23776 | cat >>confdefs.h <<_ACEOF | |
23777 | #define config_opsysfile "${opsysfile}" | |
23778 | _ACEOF | |
23779 | ||
23780 | ||
23781 | cat >>confdefs.h <<_ACEOF | |
23782 | #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
23783 | _ACEOF | |
23784 | ||
23785 | ||
23786 | cat >>confdefs.h <<_ACEOF | |
23787 | #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
23788 | _ACEOF | |
23789 | ||
23790 | ||
23791 | cat >>confdefs.h <<_ACEOF | |
23792 | #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
23793 | _ACEOF | |
23794 | ||
23795 | ||
23796 | cat >>confdefs.h <<_ACEOF | |
23797 | #define UNEXEC_SRC ${UNEXEC_SRC} | |
23798 | _ACEOF | |
23799 | ||
23800 | ||
23801 | if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
23802 | ||
23803 | cat >>confdefs.h <<\_ACEOF | |
23804 | #define HAVE_X_WINDOWS 1 | |
23805 | _ACEOF | |
23806 | ||
23807 | fi | |
23808 | if test "${USE_X_TOOLKIT}" != "none" ; then | |
23809 | ||
23810 | cat >>confdefs.h <<\_ACEOF | |
23811 | #define USE_X_TOOLKIT 1 | |
23812 | _ACEOF | |
23813 | ||
23814 | fi | |
23815 | if test "${HAVE_X11}" = "yes" ; then | |
23816 | ||
23817 | cat >>confdefs.h <<\_ACEOF | |
23818 | #define HAVE_X11 1 | |
23819 | _ACEOF | |
23820 | ||
23821 | fi | |
23822 | if test "${HAVE_XFREE386}" = "yes" ; then | |
23823 | ||
23824 | cat >>confdefs.h <<\_ACEOF | |
23825 | #define HAVE_XFREE386 1 | |
23826 | _ACEOF | |
23827 | ||
23828 | fi | |
23829 | if test "${HAVE_MENUS}" = "yes" ; then | |
23830 | ||
23831 | cat >>confdefs.h <<\_ACEOF | |
23832 | #define HAVE_MENUS 1 | |
23833 | _ACEOF | |
23834 | ||
23835 | fi | |
23836 | if test "${GNU_MALLOC}" = "yes" ; then | |
23837 | ||
23838 | cat >>confdefs.h <<\_ACEOF | |
23839 | #define GNU_MALLOC 1 | |
23840 | _ACEOF | |
23841 | ||
23842 | fi | |
23843 | if test "${REL_ALLOC}" = "yes" ; then | |
23844 | ||
23845 | cat >>confdefs.h <<\_ACEOF | |
23846 | #define REL_ALLOC 1 | |
23847 | _ACEOF | |
23848 | ||
23849 | fi | |
23850 | ||
23851 | ||
23852 | ||
c0d27fcc MR |
23853 | |
23854 | ||
5afbeb22 | 23855 | |
ba4481b5 | 23856 | #### Report on what we decided to do. |
488dd4c4 JD |
23857 | #### Report GTK as a toolkit, even if it doesn't use Xt. |
23858 | #### It makes printing result more understandable as using GTK sets | |
23859 | #### toolkit_scroll_bars to yes by default. | |
23860 | if test "${HAVE_GTK}" = "yes"; then | |
23861 | USE_X_TOOLKIT=GTK | |
23862 | fi | |
23863 | ||
ba4481b5 DL |
23864 | echo " |
23865 | Configured for \`${canonical}'. | |
23866 | ||
23867 | Where should the build process find the source code? ${srcdir} | |
23868 | What operating system and machine description files should Emacs use? | |
23869 | \`${opsysfile}' and \`${machfile}' | |
23870 | What compiler should emacs be built with? ${CC} ${CFLAGS} | |
23871 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
73b77ee5 | 23872 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
ef9e4345 | 23873 | Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
ba4481b5 | 23874 | What window system should Emacs use? ${window_system} |
8e967cf7 | 23875 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
ba4481b5 DL |
23876 | |
23877 | if test -n "${x_includes}"; then | |
23878 | echo " Where do we find X Windows header files? ${x_includes}" | |
23879 | else | |
23880 | echo " Where do we find X Windows header files? Standard dirs" | |
23881 | fi | |
23882 | if test -n "${x_libraries}"; then | |
23883 | echo " Where do we find X Windows libraries? ${x_libraries}" | |
23884 | else | |
23885 | echo " Where do we find X Windows libraries? Standard dirs" | |
23886 | fi | |
23887 | ||
23888 | echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
23889 | echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
23890 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
23891 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
9aeb8aaa | 23892 | echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name" |
ba4481b5 | 23893 | echo " Does Emacs use -lpng? ${HAVE_PNG}" |
0cfc0546 | 23894 | echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" |
79011b82 | 23895 | echo " Does Emacs use -lgpm? ${HAVE_GPM}" |
ba4481b5 DL |
23896 | echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" |
23897 | echo | |
23898 | ||
d0098f13 JD |
23899 | if test $USE_XASSERTS = yes; then |
23900 | echo " Compiling with asserts turned on." | |
d0098f13 JD |
23901 | CPPFLAGS="$CPPFLAGS -DXASSERTS=1" |
23902 | echo | |
23903 | fi | |
05cf15c6 | 23904 | |
a2d3b5bd JD |
23905 | if test "$USE_X_TOOLKIT" = GTK; then |
23906 | case "$canonical" in | |
23907 | *cygwin*) | |
23908 | echo "There are known problems with Emacs and Gtk+ on cygwin, so you | |
23909 | will probably get a crash on startup. If this happens, please use another | |
23910 | toolkit for Emacs. See etc/PROBLEMS for more information." | |
23911 | ;; | |
23912 | esac | |
23913 | fi | |
23914 | ||
05cf15c6 | 23915 | |
05cf15c6 | 23916 | |
ba4481b5 DL |
23917 | # Remove any trailing slashes in these variables. |
23918 | test "${prefix}" != NONE && | |
23919 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
23920 | test "${exec_prefix}" != NONE && | |
23921 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
23922 | ||
d0e9bfd2 GM |
23923 | ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
23924 | ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
23925 | ## from Makefile.c can correctly provide the arg `-traditional' to the | |
23926 | ## C preprocessor. | |
23927 | ||
503d2be0 | 23928 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
23929 | /* confdefs.h. */ |
23930 | _ACEOF | |
23931 | cat confdefs.h >>conftest.$ac_ext | |
23932 | cat >>conftest.$ac_ext <<_ACEOF | |
23933 | /* end confdefs.h. */ | |
d0e9bfd2 | 23934 | yes..yes |
503d2be0 | 23935 | _ACEOF |
d0e9bfd2 | 23936 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bae0ccf | 23937 | $EGREP "yes..yes" >/dev/null 2>&1; then |
d0e9bfd2 GM |
23938 | CPP_NEED_TRADITIONAL=no |
23939 | else | |
d0e9bfd2 GM |
23940 | CPP_NEED_TRADITIONAL=yes |
23941 | fi | |
23942 | rm -f conftest* | |
23943 | ||
c0d27fcc | 23944 | |
f657c21b | 23945 | ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile" |
d6e01aa5 KL |
23946 | |
23947 | ac_config_commands="$ac_config_commands default" | |
23948 | ||
503d2be0 | 23949 | cat >confcache <<\_ACEOF |
ba4481b5 DL |
23950 | # This file is a shell script that caches the results of configure |
23951 | # tests run on this system so they can be shared between configure | |
503d2be0 AS |
23952 | # scripts and configure runs, see configure's option --config-cache. |
23953 | # It is not useful on other systems. If it contains results you don't | |
23954 | # want to keep, you may remove or edit it. | |
ba4481b5 | 23955 | # |
503d2be0 AS |
23956 | # config.status only pays attention to the cache file if you give it |
23957 | # the --recheck option to rerun configure. | |
ba4481b5 | 23958 | # |
6bae0ccf | 23959 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
503d2be0 AS |
23960 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
23961 | # following values. | |
23962 | ||
23963 | _ACEOF | |
23964 | ||
ba4481b5 DL |
23965 | # The following way of writing the cache mishandles newlines in values, |
23966 | # but we know of no workaround that is simple, portable, and efficient. | |
d6e01aa5 | 23967 | # So, we kill variables containing newlines. |
ba4481b5 DL |
23968 | # Ultrix sh set writes to stderr and can't be redirected directly, |
23969 | # and sets the high bit in the cache file unless we assign to the vars. | |
d6e01aa5 KL |
23970 | ( |
23971 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
23972 | eval ac_val=\$$ac_var | |
23973 | case $ac_val in #( | |
23974 | *${as_nl}*) | |
23975 | case $ac_var in #( | |
23976 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
23977 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
23978 | esac | |
23979 | case $ac_var in #( | |
23980 | _ | IFS | as_nl) ;; #( | |
23981 | *) $as_unset $ac_var ;; | |
23982 | esac ;; | |
23983 | esac | |
23984 | done | |
23985 | ||
503d2be0 | 23986 | (set) 2>&1 | |
d6e01aa5 KL |
23987 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
23988 | *${as_nl}ac_space=\ *) | |
503d2be0 AS |
23989 | # `set' does not quote correctly, so add quotes (double-quote |
23990 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23991 | sed -n \ | |
edfaf76d LK |
23992 | "s/'/'\\\\''/g; |
23993 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
d6e01aa5 | 23994 | ;; #( |
503d2be0 AS |
23995 | *) |
23996 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
d6e01aa5 | 23997 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
503d2be0 | 23998 | ;; |
d6e01aa5 KL |
23999 | esac | |
24000 | sort | |
24001 | ) | | |
503d2be0 | 24002 | sed ' |
d6e01aa5 | 24003 | /^ac_cv_env_/b end |
503d2be0 | 24004 | t clear |
d6e01aa5 | 24005 | :clear |
503d2be0 AS |
24006 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
24007 | t end | |
d6e01aa5 KL |
24008 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
24009 | :end' >>confcache | |
24010 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
24011 | if test -w "$cache_file"; then | |
24012 | test "x$cache_file" != "x/dev/null" && | |
24013 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
24014 | echo "$as_me: updating cache $cache_file" >&6;} | |
503d2be0 | 24015 | cat confcache >$cache_file |
ba4481b5 | 24016 | else |
d6e01aa5 KL |
24017 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
24018 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
ba4481b5 DL |
24019 | fi |
24020 | fi | |
24021 | rm -f confcache | |
24022 | ||
ba4481b5 DL |
24023 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
24024 | # Let make expand exec_prefix. | |
24025 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
24026 | ||
ba4481b5 DL |
24027 | DEFS=-DHAVE_CONFIG_H |
24028 | ||
6bae0ccf DL |
24029 | ac_libobjs= |
24030 | ac_ltlibobjs= | |
24031 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
24032 | # 1. Remove the extension, and $U if already installed. | |
d6e01aa5 KL |
24033 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
24034 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
24035 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
24036 | # will be set to the directory where LIBOBJS objects are built. | |
24037 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
24038 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
6bae0ccf DL |
24039 | done |
24040 | LIBOBJS=$ac_libobjs | |
24041 | ||
24042 | LTLIBOBJS=$ac_ltlibobjs | |
24043 | ||
24044 | ||
c0d27fcc | 24045 | |
ba4481b5 | 24046 | : ${CONFIG_STATUS=./config.status} |
503d2be0 AS |
24047 | ac_clean_files_save=$ac_clean_files |
24048 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
c0d27fcc | 24049 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
503d2be0 AS |
24050 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
24051 | cat >$CONFIG_STATUS <<_ACEOF | |
24052 | #! $SHELL | |
c0d27fcc | 24053 | # Generated by $as_me. |
ba4481b5 | 24054 | # Run this file to recreate the current configuration. |
ba4481b5 | 24055 | # Compiler output produced by configure, useful for debugging |
503d2be0 | 24056 | # configure, is in config.log if it exists. |
ba4481b5 | 24057 | |
503d2be0 | 24058 | debug=false |
19650fd6 AS |
24059 | ac_cs_recheck=false |
24060 | ac_cs_silent=false | |
503d2be0 | 24061 | SHELL=\${CONFIG_SHELL-$SHELL} |
503d2be0 AS |
24062 | _ACEOF |
24063 | ||
24064 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c0d27fcc MR |
24065 | ## --------------------- ## |
24066 | ## M4sh Initialization. ## | |
24067 | ## --------------------- ## | |
24068 | ||
d6e01aa5 KL |
24069 | # Be more Bourne compatible |
24070 | DUALCASE=1; export DUALCASE # for MKS sh | |
503d2be0 AS |
24071 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
24072 | emulate sh | |
24073 | NULLCMD=: | |
6bae0ccf DL |
24074 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
24075 | # is contrary to our usage. Disable this feature. | |
24076 | alias -g '${1+"$@"}'='"$@"' | |
d6e01aa5 KL |
24077 | setopt NO_GLOB_SUBST |
24078 | else | |
24079 | case `(set -o) 2>/dev/null` in | |
24080 | *posix*) set -o posix ;; | |
24081 | esac | |
24082 | ||
24083 | fi | |
24084 | ||
24085 | ||
24086 | ||
24087 | ||
24088 | # PATH needs CR | |
24089 | # Avoid depending upon Character Ranges. | |
24090 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
24091 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
24092 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
24093 | as_cr_digits='0123456789' | |
24094 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
24095 | ||
24096 | # The user is always right. | |
24097 | if test "${PATH_SEPARATOR+set}" != set; then | |
24098 | echo "#! /bin/sh" >conf$$.sh | |
24099 | echo "exit 0" >>conf$$.sh | |
24100 | chmod +x conf$$.sh | |
24101 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
24102 | PATH_SEPARATOR=';' | |
24103 | else | |
24104 | PATH_SEPARATOR=: | |
24105 | fi | |
24106 | rm -f conf$$.sh | |
503d2be0 AS |
24107 | fi |
24108 | ||
c0d27fcc | 24109 | # Support unset when possible. |
edfaf76d | 24110 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
c0d27fcc MR |
24111 | as_unset=unset |
24112 | else | |
24113 | as_unset=false | |
24114 | fi | |
24115 | ||
6bae0ccf | 24116 | |
d6e01aa5 KL |
24117 | # IFS |
24118 | # We need space, tab and new line, in precisely that order. Quoting is | |
24119 | # there to prevent editors from complaining about space-tab. | |
24120 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
24121 | # splitting by setting IFS to empty value.) | |
24122 | as_nl=' | |
24123 | ' | |
24124 | IFS=" "" $as_nl" | |
24125 | ||
24126 | # Find who we are. Look in the path if we contain no directory separator. | |
24127 | case $0 in | |
24128 | *[\\/]* ) as_myself=$0 ;; | |
24129 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24130 | for as_dir in $PATH | |
24131 | do | |
24132 | IFS=$as_save_IFS | |
24133 | test -z "$as_dir" && as_dir=. | |
24134 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
24135 | done | |
24136 | IFS=$as_save_IFS | |
24137 | ||
24138 | ;; | |
24139 | esac | |
24140 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
24141 | # in which case we are not to be found in the path. | |
24142 | if test "x$as_myself" = x; then | |
24143 | as_myself=$0 | |
24144 | fi | |
24145 | if test ! -f "$as_myself"; then | |
24146 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
24147 | { (exit 1); exit 1; } | |
24148 | fi | |
24149 | ||
6bae0ccf | 24150 | # Work around bugs in pre-3.0 UWIN ksh. |
d6e01aa5 KL |
24151 | for as_var in ENV MAIL MAILPATH |
24152 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
24153 | done | |
6bae0ccf DL |
24154 | PS1='$ ' |
24155 | PS2='> ' | |
24156 | PS4='+ ' | |
24157 | ||
24158 | # NLS nuisances. | |
19650fd6 AS |
24159 | for as_var in \ |
24160 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
24161 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
24162 | LC_TELEPHONE LC_TIME | |
6bae0ccf | 24163 | do |
edfaf76d | 24164 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6bae0ccf DL |
24165 | eval $as_var=C; export $as_var |
24166 | else | |
d6e01aa5 | 24167 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
6bae0ccf DL |
24168 | fi |
24169 | done | |
24170 | ||
24171 | # Required to use basename. | |
d6e01aa5 KL |
24172 | if expr a : '\(a\)' >/dev/null 2>&1 && |
24173 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6bae0ccf DL |
24174 | as_expr=expr |
24175 | else | |
24176 | as_expr=false | |
24177 | fi | |
24178 | ||
d6e01aa5 | 24179 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6bae0ccf DL |
24180 | as_basename=basename |
24181 | else | |
24182 | as_basename=false | |
24183 | fi | |
c0d27fcc MR |
24184 | |
24185 | ||
503d2be0 | 24186 | # Name of the executable. |
d6e01aa5 | 24187 | as_me=`$as_basename -- "$0" || |
c0d27fcc MR |
24188 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
24189 | X"$0" : 'X\(//\)$' \| \ | |
d6e01aa5 | 24190 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c0d27fcc | 24191 | echo X/"$0" | |
d6e01aa5 KL |
24192 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
24193 | s//\1/ | |
24194 | q | |
24195 | } | |
24196 | /^X\/\(\/\/\)$/{ | |
24197 | s//\1/ | |
24198 | q | |
24199 | } | |
24200 | /^X\/\(\/\).*/{ | |
24201 | s//\1/ | |
24202 | q | |
24203 | } | |
24204 | s/.*/./; q'` | |
c0d27fcc | 24205 | |
d6e01aa5 KL |
24206 | # CDPATH. |
24207 | $as_unset CDPATH | |
c0d27fcc MR |
24208 | |
24209 | ||
c0d27fcc | 24210 | |
c0d27fcc MR |
24211 | as_lineno_1=$LINENO |
24212 | as_lineno_2=$LINENO | |
c0d27fcc | 24213 | test "x$as_lineno_1" != "x$as_lineno_2" && |
d6e01aa5 | 24214 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
c0d27fcc MR |
24215 | |
24216 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
24217 | # uniformly replaced by the line number. The first 'sed' inserts a | |
d6e01aa5 KL |
24218 | # line-number line after each line using $LINENO; the second 'sed' |
24219 | # does the real work. The second script uses 'N' to pair each | |
24220 | # line-number line with the line containing $LINENO, and appends | |
24221 | # trailing '-' during substitution so that $LINENO is not a special | |
24222 | # case at line end. | |
c0d27fcc | 24223 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
d6e01aa5 KL |
24224 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
24225 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
24226 | sed -n ' | |
24227 | p | |
24228 | /[$]LINENO/= | |
24229 | ' <$as_myself | | |
c0d27fcc | 24230 | sed ' |
d6e01aa5 KL |
24231 | s/[$]LINENO.*/&-/ |
24232 | t lineno | |
24233 | b | |
24234 | :lineno | |
c0d27fcc | 24235 | N |
d6e01aa5 KL |
24236 | :loop |
24237 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c0d27fcc | 24238 | t loop |
d6e01aa5 | 24239 | s/-\n.*// |
c0d27fcc | 24240 | ' >$as_me.lineno && |
d6e01aa5 KL |
24241 | chmod +x "$as_me.lineno" || |
24242 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
c0d27fcc MR |
24243 | { (exit 1); exit 1; }; } |
24244 | ||
24245 | # Don't try to exec as it changes $[0], causing all sort of problems | |
24246 | # (the dirname of $[0] is not the place where we might find the | |
d6e01aa5 KL |
24247 | # original and so on. Autoconf is especially sensitive to this). |
24248 | . "./$as_me.lineno" | |
c0d27fcc MR |
24249 | # Exit status is that of the last command. |
24250 | exit | |
24251 | } | |
24252 | ||
24253 | ||
d6e01aa5 KL |
24254 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
24255 | as_dirname=dirname | |
24256 | else | |
24257 | as_dirname=false | |
24258 | fi | |
24259 | ||
24260 | ECHO_C= ECHO_N= ECHO_T= | |
24261 | case `echo -n x` in | |
24262 | -n*) | |
24263 | case `echo 'x\c'` in | |
24264 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
24265 | *) ECHO_C='\c';; | |
24266 | esac;; | |
24267 | *) | |
24268 | ECHO_N='-n';; | |
c0d27fcc | 24269 | esac |
503d2be0 | 24270 | |
d6e01aa5 KL |
24271 | if expr a : '\(a\)' >/dev/null 2>&1 && |
24272 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
503d2be0 AS |
24273 | as_expr=expr |
24274 | else | |
24275 | as_expr=false | |
24276 | fi | |
24277 | ||
24278 | rm -f conf$$ conf$$.exe conf$$.file | |
d6e01aa5 KL |
24279 | if test -d conf$$.dir; then |
24280 | rm -f conf$$.dir/conf$$.file | |
24281 | else | |
24282 | rm -f conf$$.dir | |
24283 | mkdir conf$$.dir | |
24284 | fi | |
503d2be0 AS |
24285 | echo >conf$$.file |
24286 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
d6e01aa5 KL |
24287 | as_ln_s='ln -s' |
24288 | # ... but there are two gotchas: | |
24289 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
24290 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
24291 | # In both cases, we have to default to `cp -p'. | |
24292 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
503d2be0 | 24293 | as_ln_s='cp -p' |
503d2be0 AS |
24294 | elif ln conf$$.file conf$$ 2>/dev/null; then |
24295 | as_ln_s=ln | |
24296 | else | |
24297 | as_ln_s='cp -p' | |
24298 | fi | |
d6e01aa5 KL |
24299 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
24300 | rmdir conf$$.dir 2>/dev/null | |
503d2be0 | 24301 | |
6bae0ccf DL |
24302 | if mkdir -p . 2>/dev/null; then |
24303 | as_mkdir_p=: | |
24304 | else | |
edfaf76d | 24305 | test -d ./-p && rmdir ./-p |
6bae0ccf DL |
24306 | as_mkdir_p=false |
24307 | fi | |
24308 | ||
d6e01aa5 KL |
24309 | if test -x / >/dev/null 2>&1; then |
24310 | as_test_x='test -x' | |
24311 | else | |
24312 | if ls -dL / >/dev/null 2>&1; then | |
24313 | as_ls_L_option=L | |
24314 | else | |
24315 | as_ls_L_option= | |
24316 | fi | |
24317 | as_test_x=' | |
24318 | eval sh -c '\'' | |
24319 | if test -d "$1"; then | |
24320 | test -d "$1/."; | |
24321 | else | |
24322 | case $1 in | |
24323 | -*)set "./$1";; | |
24324 | esac; | |
24325 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
24326 | ???[sx]*):;;*)false;;esac;fi | |
24327 | '\'' sh | |
24328 | ' | |
24329 | fi | |
24330 | as_executable_p=$as_test_x | |
503d2be0 | 24331 | |
c0d27fcc | 24332 | # Sed expression to map a string onto a valid CPP name. |
edfaf76d | 24333 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
c0d27fcc MR |
24334 | |
24335 | # Sed expression to map a string onto a valid variable name. | |
edfaf76d | 24336 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
503d2be0 | 24337 | |
503d2be0 | 24338 | |
503d2be0 AS |
24339 | exec 6>&1 |
24340 | ||
d6e01aa5 | 24341 | # Save the log message, to keep $[0] and so on meaningful, and to |
c0d27fcc | 24342 | # report actual input values of CONFIG_FILES etc. instead of their |
d6e01aa5 KL |
24343 | # values after options handling. |
24344 | ac_log=" | |
c0d27fcc | 24345 | This file was extended by $as_me, which was |
d6e01aa5 | 24346 | generated by GNU Autoconf 2.61. Invocation command line was |
c0d27fcc MR |
24347 | |
24348 | CONFIG_FILES = $CONFIG_FILES | |
24349 | CONFIG_HEADERS = $CONFIG_HEADERS | |
24350 | CONFIG_LINKS = $CONFIG_LINKS | |
24351 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
24352 | $ $0 $@ | |
24353 | ||
d6e01aa5 KL |
24354 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
24355 | " | |
24356 | ||
503d2be0 AS |
24357 | _ACEOF |
24358 | ||
d6e01aa5 | 24359 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 | 24360 | # Files that config.status was made for. |
d6e01aa5 KL |
24361 | config_files="$ac_config_files" |
24362 | config_headers="$ac_config_headers" | |
24363 | config_commands="$ac_config_commands" | |
503d2be0 | 24364 | |
d6e01aa5 | 24365 | _ACEOF |
503d2be0 | 24366 | |
c0d27fcc | 24367 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
24368 | ac_cs_usage="\ |
24369 | \`$as_me' instantiates files from templates according to the | |
24370 | current configuration. | |
24371 | ||
24372 | Usage: $0 [OPTIONS] [FILE]... | |
24373 | ||
24374 | -h, --help print this help, then exit | |
d6e01aa5 | 24375 | -V, --version print version number and configuration settings, then exit |
19650fd6 | 24376 | -q, --quiet do not print progress messages |
503d2be0 AS |
24377 | -d, --debug don't remove temporary files |
24378 | --recheck update $as_me by reconfiguring in the same conditions | |
24379 | --file=FILE[:TEMPLATE] | |
edfaf76d | 24380 | instantiate the configuration file FILE |
503d2be0 | 24381 | --header=FILE[:TEMPLATE] |
edfaf76d | 24382 | instantiate the configuration header FILE |
503d2be0 AS |
24383 | |
24384 | Configuration files: | |
24385 | $config_files | |
24386 | ||
24387 | Configuration headers: | |
24388 | $config_headers | |
24389 | ||
24390 | Configuration commands: | |
24391 | $config_commands | |
24392 | ||
24393 | Report bugs to <bug-autoconf@gnu.org>." | |
503d2be0 | 24394 | |
d6e01aa5 | 24395 | _ACEOF |
c0d27fcc | 24396 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
24397 | ac_cs_version="\\ |
24398 | config.status | |
d6e01aa5 KL |
24399 | configured by $0, generated by GNU Autoconf 2.61, |
24400 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
503d2be0 | 24401 | |
d6e01aa5 | 24402 | Copyright (C) 2006 Free Software Foundation, Inc. |
503d2be0 AS |
24403 | This config.status script is free software; the Free Software Foundation |
24404 | gives unlimited permission to copy, distribute and modify it." | |
d6e01aa5 KL |
24405 | |
24406 | ac_pwd='$ac_pwd' | |
24407 | srcdir='$srcdir' | |
24408 | INSTALL='$INSTALL' | |
c0d27fcc | 24409 | _ACEOF |
503d2be0 | 24410 | |
c0d27fcc | 24411 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
24412 | # If no file are specified by the user, then we need to provide default |
24413 | # value. By we need to know if files were specified by the user. | |
24414 | ac_need_defaults=: | |
24415 | while test $# != 0 | |
ba4481b5 | 24416 | do |
503d2be0 AS |
24417 | case $1 in |
24418 | --*=*) | |
d6e01aa5 KL |
24419 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
24420 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
6bae0ccf DL |
24421 | ac_shift=: |
24422 | ;; | |
d6e01aa5 | 24423 | *) |
6bae0ccf DL |
24424 | ac_option=$1 |
24425 | ac_optarg=$2 | |
24426 | ac_shift=shift | |
503d2be0 | 24427 | ;; |
503d2be0 AS |
24428 | esac |
24429 | ||
6bae0ccf | 24430 | case $ac_option in |
503d2be0 | 24431 | # Handling of the options. |
19650fd6 AS |
24432 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
24433 | ac_cs_recheck=: ;; | |
d6e01aa5 KL |
24434 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
24435 | echo "$ac_cs_version"; exit ;; | |
24436 | --debug | --debu | --deb | --de | --d | -d ) | |
503d2be0 AS |
24437 | debug=: ;; |
24438 | --file | --fil | --fi | --f ) | |
6bae0ccf DL |
24439 | $ac_shift |
24440 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
503d2be0 AS |
24441 | ac_need_defaults=false;; |
24442 | --header | --heade | --head | --hea ) | |
6bae0ccf DL |
24443 | $ac_shift |
24444 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
503d2be0 | 24445 | ac_need_defaults=false;; |
d6e01aa5 KL |
24446 | --he | --h) |
24447 | # Conflict between --help and --header | |
24448 | { echo "$as_me: error: ambiguous option: $1 | |
24449 | Try \`$0 --help' for more information." >&2 | |
24450 | { (exit 1); exit 1; }; };; | |
24451 | --help | --hel | -h ) | |
24452 | echo "$ac_cs_usage"; exit ;; | |
19650fd6 AS |
24453 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
24454 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
24455 | ac_cs_silent=: ;; | |
503d2be0 AS |
24456 | |
24457 | # This is an error. | |
d6e01aa5 KL |
24458 | -*) { echo "$as_me: error: unrecognized option: $1 |
24459 | Try \`$0 --help' for more information." >&2 | |
503d2be0 AS |
24460 | { (exit 1); exit 1; }; } ;; |
24461 | ||
d6e01aa5 KL |
24462 | *) ac_config_targets="$ac_config_targets $1" |
24463 | ac_need_defaults=false ;; | |
503d2be0 | 24464 | |
ba4481b5 | 24465 | esac |
503d2be0 | 24466 | shift |
ba4481b5 DL |
24467 | done |
24468 | ||
19650fd6 AS |
24469 | ac_configure_extra_args= |
24470 | ||
24471 | if $ac_cs_silent; then | |
24472 | exec 6>/dev/null | |
24473 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
24474 | fi | |
24475 | ||
24476 | _ACEOF | |
24477 | cat >>$CONFIG_STATUS <<_ACEOF | |
24478 | if \$ac_cs_recheck; then | |
d6e01aa5 KL |
24479 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
24480 | CONFIG_SHELL=$SHELL | |
24481 | export CONFIG_SHELL | |
24482 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
19650fd6 AS |
24483 | fi |
24484 | ||
503d2be0 | 24485 | _ACEOF |
d6e01aa5 KL |
24486 | cat >>$CONFIG_STATUS <<\_ACEOF |
24487 | exec 5>>config.log | |
24488 | { | |
24489 | echo | |
24490 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
24491 | ## Running $as_me. ## | |
24492 | _ASBOX | |
24493 | echo "$ac_log" | |
24494 | } >&5 | |
ba4481b5 | 24495 | |
d6e01aa5 | 24496 | _ACEOF |
c0d27fcc | 24497 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 | 24498 | # |
d6e01aa5 | 24499 | # INIT-COMMANDS |
503d2be0 | 24500 | # |
503d2be0 AS |
24501 | GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" |
24502 | ||
c0d27fcc MR |
24503 | _ACEOF |
24504 | ||
c0d27fcc | 24505 | cat >>$CONFIG_STATUS <<\_ACEOF |
d6e01aa5 KL |
24506 | |
24507 | # Handling of arguments. | |
503d2be0 AS |
24508 | for ac_config_target in $ac_config_targets |
24509 | do | |
d6e01aa5 KL |
24510 | case $ac_config_target in |
24511 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
24512 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
24513 | "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
24514 | "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
f657c21b GM |
24515 | "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;; |
24516 | "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;; | |
24517 | "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;; | |
24518 | "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;; | |
d6e01aa5 | 24519 | "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; |
f657c21b | 24520 | "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; |
d6e01aa5 | 24521 | "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; |
d6e01aa5 KL |
24522 | "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
24523 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
24524 | ||
c0d27fcc | 24525 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
503d2be0 AS |
24526 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
24527 | { (exit 1); exit 1; }; };; | |
24528 | esac | |
ba4481b5 | 24529 | done |
503d2be0 | 24530 | |
d6e01aa5 | 24531 | |
503d2be0 AS |
24532 | # If the user did not use the arguments to specify the items to instantiate, |
24533 | # then the envvar interface is used. Set only those that are not. | |
24534 | # We use the long form for the default assignment because of an extremely | |
24535 | # bizarre bug on SunOS 4.1.3. | |
24536 | if $ac_need_defaults; then | |
24537 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
24538 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
24539 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
ba4481b5 | 24540 | fi |
503d2be0 | 24541 | |
19650fd6 | 24542 | # Have a temporary directory for convenience. Make it in the build tree |
d6e01aa5 | 24543 | # simply because there is no reason against having it here, and in addition, |
19650fd6 | 24544 | # creating and moving files from /tmp can sometimes cause problems. |
d6e01aa5 KL |
24545 | # Hook for its removal unless debugging. |
24546 | # Note that there is a small window in which the directory will not be cleaned: | |
24547 | # after its creation but before its name has been assigned to `$tmp'. | |
503d2be0 AS |
24548 | $debug || |
24549 | { | |
d6e01aa5 KL |
24550 | tmp= |
24551 | trap 'exit_status=$? | |
24552 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
24553 | ' 0 | |
503d2be0 AS |
24554 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
24555 | } | |
503d2be0 | 24556 | # Create a (secure) tmp directory for tmp files. |
19650fd6 | 24557 | |
503d2be0 | 24558 | { |
d6e01aa5 | 24559 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
503d2be0 AS |
24560 | test -n "$tmp" && test -d "$tmp" |
24561 | } || | |
24562 | { | |
d6e01aa5 KL |
24563 | tmp=./conf$$-$RANDOM |
24564 | (umask 077 && mkdir "$tmp") | |
503d2be0 AS |
24565 | } || |
24566 | { | |
19650fd6 | 24567 | echo "$me: cannot create a temporary directory in ." >&2 |
503d2be0 AS |
24568 | { (exit 1); exit 1; } |
24569 | } | |
24570 | ||
503d2be0 | 24571 | # |
d6e01aa5 | 24572 | # Set up the sed scripts for CONFIG_FILES section. |
503d2be0 AS |
24573 | # |
24574 | ||
24575 | # No need to generate the scripts if there are no CONFIG_FILES. | |
24576 | # This happens for instance when ./config.status config.h | |
d6e01aa5 KL |
24577 | if test -n "$CONFIG_FILES"; then |
24578 | ||
24579 | _ACEOF | |
24580 | ||
24581 | ||
24582 | ||
24583 | ac_delim='%!_!# ' | |
24584 | for ac_last_try in false false false false false :; do | |
24585 | cat >conf$$subs.sed <<_ACEOF | |
24586 | SHELL!$SHELL$ac_delim | |
24587 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
24588 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
24589 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
24590 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
24591 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
24592 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
24593 | exec_prefix!$exec_prefix$ac_delim | |
24594 | prefix!$prefix$ac_delim | |
24595 | program_transform_name!$program_transform_name$ac_delim | |
24596 | bindir!$bindir$ac_delim | |
24597 | sbindir!$sbindir$ac_delim | |
24598 | libexecdir!$libexecdir$ac_delim | |
24599 | datarootdir!$datarootdir$ac_delim | |
24600 | datadir!$datadir$ac_delim | |
24601 | sysconfdir!$sysconfdir$ac_delim | |
24602 | sharedstatedir!$sharedstatedir$ac_delim | |
24603 | localstatedir!$localstatedir$ac_delim | |
24604 | includedir!$includedir$ac_delim | |
24605 | oldincludedir!$oldincludedir$ac_delim | |
24606 | docdir!$docdir$ac_delim | |
24607 | infodir!$infodir$ac_delim | |
24608 | htmldir!$htmldir$ac_delim | |
24609 | dvidir!$dvidir$ac_delim | |
24610 | pdfdir!$pdfdir$ac_delim | |
24611 | psdir!$psdir$ac_delim | |
24612 | libdir!$libdir$ac_delim | |
24613 | localedir!$localedir$ac_delim | |
24614 | mandir!$mandir$ac_delim | |
24615 | DEFS!$DEFS$ac_delim | |
24616 | ECHO_C!$ECHO_C$ac_delim | |
24617 | ECHO_N!$ECHO_N$ac_delim | |
24618 | ECHO_T!$ECHO_T$ac_delim | |
24619 | LIBS!$LIBS$ac_delim | |
24620 | build_alias!$build_alias$ac_delim | |
24621 | host_alias!$host_alias$ac_delim | |
24622 | target_alias!$target_alias$ac_delim | |
24623 | MAINT!$MAINT$ac_delim | |
24624 | build!$build$ac_delim | |
24625 | build_cpu!$build_cpu$ac_delim | |
24626 | build_vendor!$build_vendor$ac_delim | |
24627 | build_os!$build_os$ac_delim | |
24628 | host!$host$ac_delim | |
24629 | host_cpu!$host_cpu$ac_delim | |
24630 | host_vendor!$host_vendor$ac_delim | |
24631 | host_os!$host_os$ac_delim | |
24632 | CC!$CC$ac_delim | |
24633 | CFLAGS!$CFLAGS$ac_delim | |
24634 | LDFLAGS!$LDFLAGS$ac_delim | |
24635 | CPPFLAGS!$CPPFLAGS$ac_delim | |
24636 | ac_ct_CC!$ac_ct_CC$ac_delim | |
24637 | EXEEXT!$EXEEXT$ac_delim | |
24638 | OBJEXT!$OBJEXT$ac_delim | |
24639 | CPP!$CPP$ac_delim | |
24640 | GREP!$GREP$ac_delim | |
24641 | EGREP!$EGREP$ac_delim | |
24642 | LN_S!$LN_S$ac_delim | |
24643 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
24644 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
24645 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
24646 | RANLIB!$RANLIB$ac_delim | |
24647 | INSTALL_INFO!$INSTALL_INFO$ac_delim | |
24648 | GZIP_PROG!$GZIP_PROG$ac_delim | |
c982cf7d | 24649 | MAKEINFO!$MAKEINFO$ac_delim |
d6e01aa5 KL |
24650 | LIBSOUND!$LIBSOUND$ac_delim |
24651 | PKG_CONFIG!$PKG_CONFIG$ac_delim | |
24652 | ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim | |
24653 | ALSA_LIBS!$ALSA_LIBS$ac_delim | |
24654 | CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim | |
24655 | SET_MAKE!$SET_MAKE$ac_delim | |
24656 | XMKMF!$XMKMF$ac_delim | |
cfe440b8 | 24657 | HAVE_XSERVER!$HAVE_XSERVER$ac_delim |
0cfc0546 GM |
24658 | RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim |
24659 | RSVG_LIBS!$RSVG_LIBS$ac_delim | |
d6e01aa5 KL |
24660 | GTK_CFLAGS!$GTK_CFLAGS$ac_delim |
24661 | GTK_LIBS!$GTK_LIBS$ac_delim | |
9d89ffd0 JD |
24662 | XFT_CFLAGS!$XFT_CFLAGS$ac_delim |
24663 | XFT_LIBS!$XFT_LIBS$ac_delim | |
d6e01aa5 KL |
24664 | ALLOCA!$ALLOCA$ac_delim |
24665 | liblockfile!$liblockfile$ac_delim | |
24666 | LIBOBJS!$LIBOBJS$ac_delim | |
24667 | NEED_SETGID!$NEED_SETGID$ac_delim | |
24668 | KMEM_GROUP!$KMEM_GROUP$ac_delim | |
24669 | GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim | |
24670 | GETOPT_H!$GETOPT_H$ac_delim | |
24671 | GETOPTOBJS!$GETOPTOBJS$ac_delim | |
24672 | version!$version$ac_delim | |
24673 | configuration!$configuration$ac_delim | |
24674 | canonical!$canonical$ac_delim | |
24675 | srcdir!$srcdir$ac_delim | |
24676 | lispdir!$lispdir$ac_delim | |
24677 | locallisppath!$locallisppath$ac_delim | |
24678 | lisppath!$lisppath$ac_delim | |
24679 | x_default_search_path!$x_default_search_path$ac_delim | |
24680 | etcdir!$etcdir$ac_delim | |
24681 | archlibdir!$archlibdir$ac_delim | |
24682 | bitmapdir!$bitmapdir$ac_delim | |
d6e01aa5 KL |
24683 | _ACEOF |
24684 | ||
24685 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
24686 | break | |
24687 | elif $ac_last_try; then | |
24688 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
24689 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
24690 | { (exit 1); exit 1; }; } | |
24691 | else | |
24692 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
503d2be0 | 24693 | fi |
d6e01aa5 KL |
24694 | done |
24695 | ||
24696 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
24697 | if test -n "$ac_eof"; then | |
24698 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
24699 | ac_eof=`expr $ac_eof + 1` | |
24700 | fi | |
24701 | ||
24702 | cat >>$CONFIG_STATUS <<_ACEOF | |
24703 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
24704 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
24705 | _ACEOF | |
24706 | sed ' | |
24707 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
24708 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
24709 | :n | |
24710 | t n | |
24711 | s/'"$ac_delim"'$/,g/; t | |
24712 | s/$/\\/; p | |
24713 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
24714 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
24715 | rm -f conf$$subs.sed | |
24716 | cat >>$CONFIG_STATUS <<_ACEOF | |
24717 | CEOF$ac_eof | |
24718 | _ACEOF | |
24719 | ||
ba4481b5 | 24720 | |
d6e01aa5 KL |
24721 | ac_delim='%!_!# ' |
24722 | for ac_last_try in false false false false false :; do | |
24723 | cat >conf$$subs.sed <<_ACEOF | |
c982cf7d | 24724 | gamedir!$gamedir$ac_delim |
0cfc0546 GM |
24725 | gameuser!$gameuser$ac_delim |
24726 | c_switch_system!$c_switch_system$ac_delim | |
cfe440b8 | 24727 | c_switch_machine!$c_switch_machine$ac_delim |
9d89ffd0 JD |
24728 | LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim |
24729 | LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim | |
d6e01aa5 KL |
24730 | C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim |
24731 | X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim | |
24732 | machfile!$machfile$ac_delim | |
24733 | opsysfile!$opsysfile$ac_delim | |
24734 | carbon_appdir!$carbon_appdir$ac_delim | |
24735 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
c0d27fcc | 24736 | _ACEOF |
d6e01aa5 | 24737 | |
c982cf7d | 24738 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then |
d6e01aa5 KL |
24739 | break |
24740 | elif $ac_last_try; then | |
24741 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
24742 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
24743 | { (exit 1); exit 1; }; } | |
24744 | else | |
24745 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
24746 | fi | |
24747 | done | |
24748 | ||
24749 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
24750 | if test -n "$ac_eof"; then | |
24751 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
24752 | ac_eof=`expr $ac_eof + 1` | |
24753 | fi | |
24754 | ||
24755 | cat >>$CONFIG_STATUS <<_ACEOF | |
24756 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
24757 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
24758 | _ACEOF | |
24759 | sed ' | |
24760 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
24761 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
24762 | :n | |
24763 | t n | |
24764 | s/'"$ac_delim"'$/,g/; t | |
24765 | s/$/\\/; p | |
24766 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
24767 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
24768 | rm -f conf$$subs.sed | |
24769 | cat >>$CONFIG_STATUS <<_ACEOF | |
24770 | :end | |
24771 | s/|#_!!_#|//g | |
24772 | CEOF$ac_eof | |
24773 | _ACEOF | |
24774 | ||
24775 | ||
24776 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
24777 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
24778 | # trailing colons and then remove the whole line if VPATH becomes empty | |
24779 | # (actually we leave an empty line to preserve line numbers). | |
24780 | if test "x$srcdir" = x.; then | |
24781 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
24782 | s/:*\$(srcdir):*/:/ | |
24783 | s/:*\${srcdir}:*/:/ | |
24784 | s/:*@srcdir@:*/:/ | |
24785 | s/^\([^=]*=[ ]*\):*/\1/ | |
24786 | s/:*$// | |
24787 | s/^[^=]*=[ ]*$// | |
24788 | }' | |
24789 | fi | |
24790 | ||
c0d27fcc | 24791 | cat >>$CONFIG_STATUS <<\_ACEOF |
d6e01aa5 KL |
24792 | fi # test -n "$CONFIG_FILES" |
24793 | ||
24794 | ||
24795 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
24796 | do | |
24797 | case $ac_tag in | |
24798 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
24799 | esac | |
24800 | case $ac_mode$ac_tag in | |
24801 | :[FHL]*:*);; | |
24802 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
24803 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
24804 | { (exit 1); exit 1; }; };; | |
24805 | :[FH]-) ac_tag=-:-;; | |
24806 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
ba4481b5 | 24807 | esac |
d6e01aa5 KL |
24808 | ac_save_IFS=$IFS |
24809 | IFS=: | |
24810 | set x $ac_tag | |
24811 | IFS=$ac_save_IFS | |
24812 | shift | |
24813 | ac_file=$1 | |
24814 | shift | |
24815 | ||
24816 | case $ac_mode in | |
24817 | :L) ac_source=$1;; | |
24818 | :[FH]) | |
24819 | ac_file_inputs= | |
24820 | for ac_f | |
24821 | do | |
24822 | case $ac_f in | |
24823 | -) ac_f="$tmp/stdin";; | |
24824 | *) # Look for the file first in the build tree, then in the source tree | |
24825 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
24826 | # because $ac_f cannot contain `:'. | |
24827 | test -f "$ac_f" || | |
24828 | case $ac_f in | |
24829 | [\\/$]*) false;; | |
24830 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
24831 | esac || | |
24832 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
24833 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
24834 | { (exit 1); exit 1; }; };; | |
24835 | esac | |
24836 | ac_file_inputs="$ac_file_inputs $ac_f" | |
24837 | done | |
ba4481b5 | 24838 | |
d6e01aa5 KL |
24839 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
24840 | # use $as_me), people would be surprised to read: | |
24841 | # /* config.h. Generated by config.status. */ | |
24842 | configure_input="Generated from "`IFS=: | |
24843 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
24844 | if test x"$ac_file" != x-; then | |
24845 | configure_input="$ac_file. $configure_input" | |
24846 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
24847 | echo "$as_me: creating $ac_file" >&6;} | |
24848 | fi | |
24849 | ||
24850 | case $ac_tag in | |
24851 | *:-:* | *:-) cat >"$tmp/stdin";; | |
24852 | esac | |
24853 | ;; | |
ba4481b5 DL |
24854 | esac |
24855 | ||
d6e01aa5 | 24856 | ac_dir=`$as_dirname -- "$ac_file" || |
c0d27fcc | 24857 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
edfaf76d LK |
24858 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
24859 | X"$ac_file" : 'X\(//\)$' \| \ | |
d6e01aa5 | 24860 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
503d2be0 | 24861 | echo X"$ac_file" | |
d6e01aa5 KL |
24862 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
24863 | s//\1/ | |
24864 | q | |
24865 | } | |
24866 | /^X\(\/\/\)[^/].*/{ | |
24867 | s//\1/ | |
24868 | q | |
24869 | } | |
24870 | /^X\(\/\/\)$/{ | |
24871 | s//\1/ | |
24872 | q | |
24873 | } | |
24874 | /^X\(\/\).*/{ | |
24875 | s//\1/ | |
24876 | q | |
24877 | } | |
24878 | s/.*/./; q'` | |
24879 | { as_dir="$ac_dir" | |
24880 | case $as_dir in #( | |
24881 | -*) as_dir=./$as_dir;; | |
24882 | esac | |
24883 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
6bae0ccf | 24884 | as_dirs= |
d6e01aa5 KL |
24885 | while :; do |
24886 | case $as_dir in #( | |
24887 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
24888 | *) as_qdir=$as_dir;; | |
24889 | esac | |
24890 | as_dirs="'$as_qdir' $as_dirs" | |
24891 | as_dir=`$as_dirname -- "$as_dir" || | |
6bae0ccf | 24892 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
edfaf76d LK |
24893 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
24894 | X"$as_dir" : 'X\(//\)$' \| \ | |
d6e01aa5 | 24895 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
6bae0ccf | 24896 | echo X"$as_dir" | |
d6e01aa5 KL |
24897 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
24898 | s//\1/ | |
24899 | q | |
24900 | } | |
24901 | /^X\(\/\/\)[^/].*/{ | |
24902 | s//\1/ | |
24903 | q | |
24904 | } | |
24905 | /^X\(\/\/\)$/{ | |
24906 | s//\1/ | |
24907 | q | |
24908 | } | |
24909 | /^X\(\/\).*/{ | |
24910 | s//\1/ | |
24911 | q | |
24912 | } | |
24913 | s/.*/./; q'` | |
24914 | test -d "$as_dir" && break | |
6bae0ccf | 24915 | done |
d6e01aa5 KL |
24916 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
24917 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
24918 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
6bae0ccf | 24919 | { (exit 1); exit 1; }; }; } |
c0d27fcc | 24920 | ac_builddir=. |
98418dba | 24921 | |
d6e01aa5 KL |
24922 | case "$ac_dir" in |
24923 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
24924 | *) | |
c0d27fcc | 24925 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
d6e01aa5 KL |
24926 | # A ".." for each directory in $ac_dir_suffix. |
24927 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
24928 | case $ac_top_builddir_sub in | |
24929 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
24930 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
24931 | esac ;; | |
24932 | esac | |
24933 | ac_abs_top_builddir=$ac_pwd | |
24934 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
24935 | # for backward compatibility: | |
24936 | ac_top_builddir=$ac_top_build_prefix | |
c0d27fcc MR |
24937 | |
24938 | case $srcdir in | |
d6e01aa5 | 24939 | .) # We are building in place. |
c0d27fcc | 24940 | ac_srcdir=. |
d6e01aa5 KL |
24941 | ac_top_srcdir=$ac_top_builddir_sub |
24942 | ac_abs_top_srcdir=$ac_pwd ;; | |
24943 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c0d27fcc | 24944 | ac_srcdir=$srcdir$ac_dir_suffix; |
d6e01aa5 KL |
24945 | ac_top_srcdir=$srcdir |
24946 | ac_abs_top_srcdir=$srcdir ;; | |
24947 | *) # Relative name. | |
24948 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
24949 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
24950 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c0d27fcc | 24951 | esac |
d6e01aa5 | 24952 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
edfaf76d | 24953 | |
c0d27fcc | 24954 | |
d6e01aa5 KL |
24955 | case $ac_mode in |
24956 | :F) | |
24957 | # | |
24958 | # CONFIG_FILE | |
24959 | # | |
ba4481b5 | 24960 | |
503d2be0 AS |
24961 | case $INSTALL in |
24962 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
d6e01aa5 | 24963 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
ba4481b5 | 24964 | esac |
d6e01aa5 | 24965 | _ACEOF |
ba4481b5 | 24966 | |
d6e01aa5 KL |
24967 | cat >>$CONFIG_STATUS <<\_ACEOF |
24968 | # If the template does not know about datarootdir, expand it. | |
24969 | # FIXME: This hack should be removed a few years after 2.60. | |
24970 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8ae52ca6 | 24971 | |
d6e01aa5 KL |
24972 | case `sed -n '/datarootdir/ { |
24973 | p | |
24974 | q | |
24975 | } | |
24976 | /@datadir@/p | |
24977 | /@docdir@/p | |
24978 | /@infodir@/p | |
24979 | /@localedir@/p | |
24980 | /@mandir@/p | |
24981 | ' $ac_file_inputs` in | |
24982 | *datarootdir*) ac_datarootdir_seen=yes;; | |
24983 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
24984 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
24985 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
24986 | _ACEOF | |
24987 | cat >>$CONFIG_STATUS <<_ACEOF | |
24988 | ac_datarootdir_hack=' | |
24989 | s&@datadir@&$datadir&g | |
24990 | s&@docdir@&$docdir&g | |
24991 | s&@infodir@&$infodir&g | |
24992 | s&@localedir@&$localedir&g | |
24993 | s&@mandir@&$mandir&g | |
24994 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
24995 | esac | |
c0d27fcc | 24996 | _ACEOF |
d6e01aa5 KL |
24997 | |
24998 | # Neutralize VPATH when `$srcdir' = `.'. | |
24999 | # Shell code in configure.ac might set extrasub. | |
25000 | # FIXME: do we really want to maintain this feature? | |
c0d27fcc | 25001 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
25002 | sed "$ac_vpsub |
25003 | $extrasub | |
c0d27fcc MR |
25004 | _ACEOF |
25005 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
25006 | :t |
25007 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
d6e01aa5 KL |
25008 | s&@configure_input@&$configure_input&;t t |
25009 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
25010 | s&@srcdir@&$ac_srcdir&;t t | |
25011 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
25012 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
25013 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
25014 | s&@builddir@&$ac_builddir&;t t | |
25015 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
25016 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
25017 | s&@INSTALL@&$ac_INSTALL&;t t | |
25018 | $ac_datarootdir_hack | |
25019 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
25020 | ||
25021 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
25022 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
25023 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
25024 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
25025 | which seems to be undefined. Please make sure it is defined." >&5 | |
25026 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
25027 | which seems to be undefined. Please make sure it is defined." >&2;} | |
25028 | ||
25029 | rm -f "$tmp/stdin" | |
503d2be0 | 25030 | case $ac_file in |
d6e01aa5 KL |
25031 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
25032 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
ba4481b5 | 25033 | esac |
d6e01aa5 KL |
25034 | ;; |
25035 | :H) | |
25036 | # | |
25037 | # CONFIG_HEADER | |
25038 | # | |
25039 | _ACEOF | |
25040 | ||
25041 | # Transform confdefs.h into a sed script `conftest.defines', that | |
25042 | # substitutes the proper values into config.h.in to produce config.h. | |
25043 | rm -f conftest.defines conftest.tail | |
25044 | # First, append a space to every undef/define line, to ease matching. | |
25045 | echo 's/$/ /' >conftest.defines | |
25046 | # Then, protect against being on the right side of a sed subst, or in | |
25047 | # an unquoted here document, in config.status. If some macros were | |
25048 | # called several times there might be several #defines for the same | |
25049 | # symbol, which is useless. But do not sort them, since the last | |
25050 | # AC_DEFINE must be honored. | |
25051 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
25052 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
25053 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
25054 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
25055 | # just an empty string. | |
25056 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
25057 | ac_dB='\\)[ (].*,\\1define\\2' | |
25058 | ac_dC=' ' | |
25059 | ac_dD=' ,' | |
25060 | ||
25061 | uniq confdefs.h | | |
25062 | sed -n ' | |
25063 | t rset | |
25064 | :rset | |
25065 | s/^[ ]*#[ ]*define[ ][ ]*// | |
25066 | t ok | |
25067 | d | |
25068 | :ok | |
25069 | s/[\\&,]/\\&/g | |
25070 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
25071 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
25072 | ' >>conftest.defines | |
25073 | ||
25074 | # Remove the space that was appended to ease matching. | |
25075 | # Then replace #undef with comments. This is necessary, for | |
ba4481b5 DL |
25076 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
25077 | # on some systems where configure will not decide to define it. | |
d6e01aa5 KL |
25078 | # (The regexp can be short, since the line contains either #define or #undef.) |
25079 | echo 's/ $// | |
25080 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
25081 | ||
25082 | # Break up conftest.defines: | |
25083 | ac_max_sed_lines=50 | |
25084 | ||
25085 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
25086 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
25087 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
25088 | # et cetera. | |
25089 | ac_in='$ac_file_inputs' | |
25090 | ac_out='"$tmp/out1"' | |
25091 | ac_nxt='"$tmp/out2"' | |
25092 | ||
25093 | while : | |
503d2be0 | 25094 | do |
d6e01aa5 KL |
25095 | # Write a here document: |
25096 | cat >>$CONFIG_STATUS <<_ACEOF | |
25097 | # First, check the format of the line: | |
25098 | cat >"\$tmp/defines.sed" <<\\CEOF | |
25099 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
25100 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
25101 | b | |
25102 | :def | |
25103 | _ACEOF | |
25104 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
503d2be0 | 25105 | echo 'CEOF |
d6e01aa5 KL |
25106 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
25107 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
25108 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
25109 | grep . conftest.tail >/dev/null || break | |
503d2be0 AS |
25110 | rm -f conftest.defines |
25111 | mv conftest.tail conftest.defines | |
25112 | done | |
d6e01aa5 | 25113 | rm -f conftest.defines conftest.tail |
503d2be0 | 25114 | |
d6e01aa5 | 25115 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
c0d27fcc | 25116 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 | 25117 | if test x"$ac_file" != x-; then |
d6e01aa5 KL |
25118 | echo "/* $configure_input */" >"$tmp/config.h" |
25119 | cat "$ac_result" >>"$tmp/config.h" | |
25120 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
c0d27fcc | 25121 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
503d2be0 AS |
25122 | echo "$as_me: $ac_file is unchanged" >&6;} |
25123 | else | |
503d2be0 | 25124 | rm -f $ac_file |
d6e01aa5 | 25125 | mv "$tmp/config.h" $ac_file |
ba4481b5 | 25126 | fi |
503d2be0 | 25127 | else |
d6e01aa5 KL |
25128 | echo "/* $configure_input */" |
25129 | cat "$ac_result" | |
ba4481b5 | 25130 | fi |
d6e01aa5 KL |
25131 | rm -f "$tmp/out12" |
25132 | ;; | |
edfaf76d | 25133 | |
d6e01aa5 KL |
25134 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
25135 | echo "$as_me: executing $ac_file commands" >&6;} | |
25136 | ;; | |
25137 | esac | |
ba4481b5 | 25138 | |
c0d27fcc | 25139 | |
d6e01aa5 KL |
25140 | case $ac_file$ac_mode in |
25141 | "default":C) | |
ba4481b5 DL |
25142 | |
25143 | ### Make the necessary directories, if they don't exist. | |
25144 | for dir in etc lisp ; do | |
25145 | test -d ${dir} || mkdir ${dir} | |
25146 | done | |
25147 | ||
25148 | # Build src/Makefile from ${srcdir}/src/Makefile.c | |
25149 | # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
25150 | # This must be done after src/config.h is built, since we rely on that file. | |
25151 | ||
25152 | # Now get this: Some word that is part of the ${srcdir} directory name | |
25153 | # or the ${configuration} value might, just might, happen to be an | |
25154 | # identifier like `sun4' or `i386' or something, and be predefined by | |
25155 | # the C preprocessor to some helpful value like 1, or maybe the empty | |
25156 | # string. Needless to say consequent macro substitutions are less | |
25157 | # than conducive to the makefile finding the correct directory. | |
25158 | undefs="`echo $top_srcdir $configuration $canonical | | |
25159 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
25160 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
25161 | `" | |
25162 | ||
25163 | echo creating src/epaths.h | |
4aa6b955 | 25164 | ${MAKE-make} epaths-force |
ba4481b5 | 25165 | |
1c203d4c DL |
25166 | # As of 2000-11-19, newest development versions of GNU cpp preprocess |
25167 | # `..' to `. .' unless invoked with -traditional | |
25168 | ||
d0e9bfd2 | 25169 | if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
1c203d4c DL |
25170 | CPPFLAGS="$CPPFLAGS -traditional" |
25171 | fi | |
25172 | ||
ba4481b5 DL |
25173 | echo creating lib-src/Makefile |
25174 | ( cd lib-src | |
25175 | rm -f junk.c junk1.c junk2.c | |
25176 | sed -e '/start of cpp stuff/q' \ | |
25177 | < Makefile.c > junk1.c | |
25178 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 25179 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 25180 | < Makefile.c > junk.c |
503d2be0 | 25181 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
25182 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
25183 | cat junk1.c junk2.c > Makefile.new | |
25184 | rm -f junk.c junk1.c junk2.c | |
25185 | chmod 444 Makefile.new | |
25186 | mv -f Makefile.new Makefile | |
25187 | ) | |
25188 | ||
25189 | echo creating src/Makefile | |
25190 | ( cd src | |
25191 | rm -f junk.c junk1.c junk2.c | |
25192 | sed -e '/start of cpp stuff/q' \ | |
25193 | < Makefile.c > junk1.c | |
25194 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 25195 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 25196 | < Makefile.c > junk.c |
503d2be0 | 25197 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
25198 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
25199 | cat junk1.c junk2.c > Makefile.new | |
25200 | rm -f junk.c junk1.c junk2.c | |
25201 | chmod 444 Makefile.new | |
25202 | mv -f Makefile.new Makefile | |
25203 | ) | |
25204 | ||
503d2be0 | 25205 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
ba4481b5 | 25206 | echo creating src/.gdbinit |
503d2be0 | 25207 | echo source $srcdir/src/.gdbinit > src/.gdbinit |
ba4481b5 DL |
25208 | fi |
25209 | ||
25210 | # This is how we know whether to re-run configure in certain cases. | |
25211 | touch src/config.stamp | |
25212 | ||
503d2be0 | 25213 | ;; |
d6e01aa5 | 25214 | |
503d2be0 | 25215 | esac |
d6e01aa5 | 25216 | done # for ac_tag |
503d2be0 | 25217 | |
ba4481b5 | 25218 | |
503d2be0 | 25219 | { (exit 0); exit 0; } |
c0d27fcc | 25220 | _ACEOF |
ba4481b5 | 25221 | chmod +x $CONFIG_STATUS |
503d2be0 AS |
25222 | ac_clean_files=$ac_clean_files_save |
25223 | ||
c0d27fcc | 25224 | |
503d2be0 AS |
25225 | # configure is writing to config.log, and then calls config.status. |
25226 | # config.status does its own redirection, appending to config.log. | |
25227 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
25228 | # by configure, so config.status won't be able to write to it; its | |
25229 | # output is simply discarded. So we exec the FD to /dev/null, | |
25230 | # effectively closing config.log, so it can be properly (re)opened and | |
25231 | # appended to by config.status. When coming back to configure, we | |
25232 | # need to make the FD available again. | |
25233 | if test "$no_create" != yes; then | |
25234 | ac_cs_success=: | |
19650fd6 AS |
25235 | ac_config_status_args= |
25236 | test "$silent" = yes && | |
25237 | ac_config_status_args="$ac_config_status_args --quiet" | |
503d2be0 | 25238 | exec 5>/dev/null |
19650fd6 | 25239 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
503d2be0 AS |
25240 | exec 5>>config.log |
25241 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
25242 | # would make configure fail if this is the last instruction. | |
25243 | $ac_cs_success || { (exit 1); exit 1; } | |
25244 | fi | |
f5f47add | 25245 | |
c0d27fcc | 25246 |