Commit | Line | Data |
---|---|---|
ba4481b5 | 1 | #! /bin/sh |
ba4481b5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
61a808e8 | 3 | # Generated by GNU Autoconf 2.62 for emacs 23.2. |
ba4481b5 | 4 | # |
ca81d7a0 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
bf89cb4d | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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. | |
bf89cb4d GM |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
503d2be0 | 12 | |
f053c89f CY |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
bf89cb4d | 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
503d2be0 AS |
16 | emulate sh |
17 | NULLCMD=: | |
e9a63f04 | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
6bae0ccf DL |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' | |
ca81d7a0 JD |
21 | setopt NO_GLOB_SUBST |
22 | else | |
bf89cb4d GM |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
f053c89f | 25 | esac |
bf89cb4d | 26 | |
503d2be0 | 27 | fi |
f053c89f CY |
28 | |
29 | ||
bf89cb4d GM |
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 | ||
e9a63f04 GM |
40 | as_nl=' |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
bf89cb4d | 47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
e9a63f04 GM |
48 | as_echo='printf %s\n' |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
7bbec45b | 54 | else |
e9a63f04 GM |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
bf89cb4d | 58 | case $arg in |
e9a63f04 GM |
59 | *"$as_nl"*) |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7bbec45b | 67 | fi |
e9a63f04 GM |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
503d2be0 AS |
79 | fi |
80 | ||
bf89cb4d GM |
81 | # Support unset when possible. |
82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
83 | as_unset=unset | |
84 | else | |
85 | as_unset=false | |
86 | fi | |
87 | ||
6bae0ccf | 88 | |
ca81d7a0 JD |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is | |
91 | # there to prevent editors from complaining about space-tab. | |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | # splitting by setting IFS to empty value.) | |
ca81d7a0 JD |
94 | IFS=" "" $as_nl" |
95 | ||
96 | # Find who we are. Look in the path if we contain no directory separator. | |
bf89cb4d | 97 | case $0 in |
ca81d7a0 JD |
98 | *[\\/]* ) as_myself=$0 ;; |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | for as_dir in $PATH | |
101 | do | |
102 | IFS=$as_save_IFS | |
103 | test -z "$as_dir" && as_dir=. | |
bf89cb4d GM |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
105 | done | |
ca81d7a0 JD |
106 | IFS=$as_save_IFS |
107 | ||
108 | ;; | |
109 | esac | |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | # in which case we are not to be found in the path. | |
112 | if test "x$as_myself" = x; then | |
113 | as_myself=$0 | |
114 | fi | |
115 | if test ! -f "$as_myself"; then | |
e9a63f04 | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
bf89cb4d | 117 | { (exit 1); exit 1; } |
ca81d7a0 JD |
118 | fi |
119 | ||
bf89cb4d GM |
120 | # Work around bugs in pre-3.0 UWIN ksh. |
121 | for as_var in ENV MAIL MAILPATH | |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
ca81d7a0 | 123 | done |
6bae0ccf DL |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
e9a63f04 GM |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
6bae0ccf | 133 | |
bf89cb4d | 134 | # Required to use basename. |
ca81d7a0 JD |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6bae0ccf DL |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
ca81d7a0 | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6bae0ccf DL |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
c0d27fcc MR |
147 | |
148 | ||
bf89cb4d | 149 | # Name of the executable. |
ca81d7a0 | 150 | as_me=`$as_basename -- "$0" || |
c0d27fcc MR |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
ca81d7a0 | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
e9a63f04 | 154 | $as_echo X/"$0" | |
ca81d7a0 JD |
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
156 | s//\1/ | |
157 | q | |
158 | } | |
159 | /^X\/\(\/\/\)$/{ | |
160 | s//\1/ | |
161 | q | |
162 | } | |
163 | /^X\/\(\/\).*/{ | |
164 | s//\1/ | |
165 | q | |
166 | } | |
167 | s/.*/./; q'` | |
c0d27fcc | 168 | |
bf89cb4d GM |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
6bae0ccf | 171 | |
c0d27fcc | 172 | |
bf89cb4d GM |
173 | if test "x$CONFIG_SHELL" = x; then |
174 | if (eval ":") 2>/dev/null; then | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
178 | fi | |
c0d27fcc | 179 | |
bf89cb4d GM |
180 | if test $as_have_required = yes && (eval ": |
181 | (as_func_return () { | |
182 | (exit \$1) | |
183 | } | |
184 | as_func_success () { | |
185 | as_func_return 0 | |
186 | } | |
187 | as_func_failure () { | |
188 | as_func_return 1 | |
189 | } | |
190 | as_func_ret_success () { | |
191 | return 0 | |
192 | } | |
193 | as_func_ret_failure () { | |
194 | return 1 | |
ca81d7a0 | 195 | } |
c0d27fcc | 196 | |
bf89cb4d GM |
197 | exitcode=0 |
198 | if as_func_success; then | |
199 | : | |
ca81d7a0 | 200 | else |
bf89cb4d GM |
201 | exitcode=1 |
202 | echo as_func_success failed. | |
ca81d7a0 JD |
203 | fi |
204 | ||
bf89cb4d GM |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
ca81d7a0 JD |
208 | fi |
209 | ||
bf89cb4d GM |
210 | if as_func_ret_success; then |
211 | : | |
ca81d7a0 | 212 | else |
bf89cb4d GM |
213 | exitcode=1 |
214 | echo as_func_ret_success failed. | |
ca81d7a0 JD |
215 | fi |
216 | ||
bf89cb4d GM |
217 | if as_func_ret_failure; then |
218 | exitcode=1 | |
219 | echo as_func_ret_failure succeeded. | |
220 | fi | |
ca81d7a0 | 221 | |
bf89cb4d GM |
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
223 | : | |
224 | else | |
225 | exitcode=1 | |
226 | echo positional parameters were not saved. | |
227 | fi | |
ca81d7a0 | 228 | |
bf89cb4d | 229 | test \$exitcode = 0) || { (exit 1); exit 1; } |
ca81d7a0 | 230 | |
bf89cb4d GM |
231 | ( |
232 | as_lineno_1=\$LINENO | |
233 | as_lineno_2=\$LINENO | |
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | ") 2> /dev/null; then | |
237 | : | |
238 | else | |
239 | as_candidate_shells= | |
240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
242 | do | |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
245 | case $as_dir in | |
246 | /*) | |
247 | for as_base in sh bash ksh sh5; do | |
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | done;; | |
250 | esac | |
251 | done | |
252 | IFS=$as_save_IFS | |
503d2be0 | 253 | |
bf89cb4d GM |
254 | |
255 | for as_shell in $as_candidate_shells $SHELL; do | |
256 | # Try only shells that exist, to save several forks. | |
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | emulate sh | |
261 | NULLCMD=: | |
262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
263 | # is contrary to our usage. Disable this feature. | |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
267 | case `(set -o) 2>/dev/null` in | |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
271 | fi | |
272 | ||
273 | ||
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | emulate sh | |
282 | NULLCMD=: | |
283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
284 | # is contrary to our usage. Disable this feature. | |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
288 | case `(set -o) 2>/dev/null` in | |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
292 | fi | |
293 | ||
294 | ||
295 | : | |
296 | (as_func_return () { | |
297 | (exit $1) | |
298 | } | |
299 | as_func_success () { | |
300 | as_func_return 0 | |
301 | } | |
302 | as_func_failure () { | |
303 | as_func_return 1 | |
304 | } | |
305 | as_func_ret_success () { | |
306 | return 0 | |
307 | } | |
308 | as_func_ret_failure () { | |
309 | return 1 | |
310 | } | |
311 | ||
312 | exitcode=0 | |
313 | if as_func_success; then | |
314 | : | |
315 | else | |
316 | exitcode=1 | |
317 | echo as_func_success failed. | |
318 | fi | |
319 | ||
320 | if as_func_failure; then | |
321 | exitcode=1 | |
322 | echo as_func_failure succeeded. | |
323 | fi | |
324 | ||
325 | if as_func_ret_success; then | |
326 | : | |
327 | else | |
328 | exitcode=1 | |
329 | echo as_func_ret_success failed. | |
330 | fi | |
331 | ||
332 | if as_func_ret_failure; then | |
333 | exitcode=1 | |
334 | echo as_func_ret_failure succeeded. | |
335 | fi | |
336 | ||
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | : | |
339 | else | |
340 | exitcode=1 | |
341 | echo positional parameters were not saved. | |
342 | fi | |
343 | ||
344 | test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | ||
346 | ( | |
347 | as_lineno_1=$LINENO | |
348 | as_lineno_2=$LINENO | |
349 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
351 | ||
352 | _ASEOF | |
353 | }; then | |
354 | break | |
355 | fi | |
356 | ||
357 | fi | |
358 | ||
359 | done | |
360 | ||
361 | if test "x$CONFIG_SHELL" != x; then | |
362 | for as_var in BASH_ENV ENV | |
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
364 | done | |
365 | export CONFIG_SHELL | |
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
367 | fi | |
368 | ||
369 | ||
370 | if test $as_have_required = no; then | |
371 | echo This script requires a shell more modern than all the | |
372 | echo shells that I found on your system. Please install a | |
373 | echo modern shell, or manually run the script under such a | |
374 | echo shell if you do have one. | |
375 | { (exit 1); exit 1; } | |
376 | fi | |
377 | ||
378 | ||
379 | fi | |
380 | ||
381 | fi | |
382 | ||
383 | ||
384 | ||
385 | (eval "as_func_return () { | |
386 | (exit \$1) | |
387 | } | |
388 | as_func_success () { | |
389 | as_func_return 0 | |
390 | } | |
391 | as_func_failure () { | |
392 | as_func_return 1 | |
393 | } | |
394 | as_func_ret_success () { | |
395 | return 0 | |
396 | } | |
397 | as_func_ret_failure () { | |
398 | return 1 | |
399 | } | |
400 | ||
401 | exitcode=0 | |
402 | if as_func_success; then | |
403 | : | |
404 | else | |
405 | exitcode=1 | |
406 | echo as_func_success failed. | |
407 | fi | |
408 | ||
409 | if as_func_failure; then | |
410 | exitcode=1 | |
411 | echo as_func_failure succeeded. | |
412 | fi | |
413 | ||
414 | if as_func_ret_success; then | |
415 | : | |
416 | else | |
417 | exitcode=1 | |
418 | echo as_func_ret_success failed. | |
419 | fi | |
420 | ||
421 | if as_func_ret_failure; then | |
422 | exitcode=1 | |
423 | echo as_func_ret_failure succeeded. | |
424 | fi | |
425 | ||
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | : | |
428 | else | |
429 | exitcode=1 | |
430 | echo positional parameters were not saved. | |
431 | fi | |
432 | ||
433 | test \$exitcode = 0") || { | |
434 | echo No shell found that supports shell functions. | |
435 | echo Please tell bug-autoconf@gnu.org about your system, | |
436 | echo including any error possibly output before this message. | |
437 | echo This can help us improve future autoconf versions. | |
438 | echo Configuration will now proceed without shell functions. | |
439 | } | |
440 | ||
441 | ||
442 | ||
443 | as_lineno_1=$LINENO | |
444 | as_lineno_2=$LINENO | |
445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
447 | ||
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
450 | # line-number line after each line using $LINENO; the second 'sed' | |
451 | # does the real work. The second script uses 'N' to pair each | |
452 | # line-number line with the line containing $LINENO, and appends | |
453 | # trailing '-' during substitution so that $LINENO is not a special | |
454 | # case at line end. | |
455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | sed -n ' | |
459 | p | |
460 | /[$]LINENO/= | |
461 | ' <$as_myself | | |
462 | sed ' | |
463 | s/[$]LINENO.*/&-/ | |
464 | t lineno | |
465 | b | |
466 | :lineno | |
467 | N | |
468 | :loop | |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
470 | t loop | |
471 | s/-\n.*// | |
472 | ' >$as_me.lineno && | |
473 | chmod +x "$as_me.lineno" || | |
474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
475 | { (exit 1); exit 1; }; } | |
476 | ||
477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | # (the dirname of $[0] is not the place where we might find the | |
479 | # original and so on. Autoconf is especially sensitive to this). | |
480 | . "./$as_me.lineno" | |
481 | # Exit status is that of the last command. | |
482 | exit | |
483 | } | |
484 | ||
485 | ||
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
487 | as_dirname=dirname | |
488 | else | |
489 | as_dirname=false | |
490 | fi | |
491 | ||
492 | ECHO_C= ECHO_N= ECHO_T= | |
493 | case `echo -n x` in | |
494 | -n*) | |
495 | case `echo 'x\c'` in | |
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | *) ECHO_C='\c';; | |
498 | esac;; | |
499 | *) | |
500 | ECHO_N='-n';; | |
501 | esac | |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
504 | as_expr=expr | |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
510 | if test -d conf$$.dir; then | |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
514 | mkdir conf$$.dir 2>/dev/null | |
515 | fi | |
516 | if (echo >conf$$.file) 2>/dev/null; then | |
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
518 | as_ln_s='ln -s' | |
519 | # ... but there are two gotchas: | |
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | # In both cases, we have to default to `cp -p'. | |
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | as_ln_s='cp -p' | |
525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s=ln | |
527 | else | |
528 | as_ln_s='cp -p' | |
529 | fi | |
530 | else | |
531 | as_ln_s='cp -p' | |
532 | fi | |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
534 | rmdir conf$$.dir 2>/dev/null | |
535 | ||
536 | if mkdir -p . 2>/dev/null; then | |
537 | as_mkdir_p=: | |
538 | else | |
539 | test -d ./-p && rmdir ./-p | |
540 | as_mkdir_p=false | |
541 | fi | |
542 | ||
543 | if test -x / >/dev/null 2>&1; then | |
544 | as_test_x='test -x' | |
545 | else | |
546 | if ls -dL / >/dev/null 2>&1; then | |
547 | as_ls_L_option=L | |
548 | else | |
549 | as_ls_L_option= | |
550 | fi | |
551 | as_test_x=' | |
552 | eval sh -c '\'' | |
553 | if test -d "$1"; then | |
554 | test -d "$1/."; | |
555 | else | |
556 | case $1 in | |
557 | -*)set "./$1";; | |
558 | esac; | |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
563 | fi | |
564 | as_executable_p=$as_test_x | |
565 | ||
566 | # Sed expression to map a string onto a valid CPP name. | |
567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
568 | ||
569 | # Sed expression to map a string onto a valid variable name. | |
570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
571 | ||
572 | ||
573 | ||
574 | exec 7<&0 </dev/null 6>&1 | |
575 | ||
576 | # Name of the host. | |
577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
578 | # so uname gets run too. | |
579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
503d2be0 | 580 | |
503d2be0 AS |
581 | # |
582 | # Initializations. | |
583 | # | |
ba4481b5 | 584 | ac_default_prefix=/usr/local |
ca81d7a0 | 585 | ac_clean_files= |
6bae0ccf | 586 | ac_config_libobj_dir=. |
ca81d7a0 | 587 | LIBOBJS= |
503d2be0 AS |
588 | cross_compiling=no |
589 | subdirs= | |
c0d27fcc MR |
590 | MFLAGS= |
591 | MAKEFLAGS= | |
bf89cb4d | 592 | SHELL=${CONFIG_SHELL-/bin/sh} |
503d2be0 | 593 | |
c0d27fcc | 594 | # Identity of this package. |
9cf8f393 JD |
595 | PACKAGE_NAME='emacs' |
596 | PACKAGE_TARNAME='emacs' | |
61a808e8 CY |
597 | PACKAGE_VERSION='23.2' |
598 | PACKAGE_STRING='emacs 23.2' | |
9cf8f393 | 599 | PACKAGE_BUGREPORT='' |
c0d27fcc | 600 | |
503d2be0 AS |
601 | ac_unique_file="src/lisp.h" |
602 | # Factoring default headers for most tests. | |
603 | ac_includes_default="\ | |
604 | #include <stdio.h> | |
f053c89f | 605 | #ifdef HAVE_SYS_TYPES_H |
503d2be0 AS |
606 | # include <sys/types.h> |
607 | #endif | |
f053c89f | 608 | #ifdef HAVE_SYS_STAT_H |
503d2be0 AS |
609 | # include <sys/stat.h> |
610 | #endif | |
f053c89f | 611 | #ifdef STDC_HEADERS |
503d2be0 AS |
612 | # include <stdlib.h> |
613 | # include <stddef.h> | |
614 | #else | |
f053c89f | 615 | # ifdef HAVE_STDLIB_H |
503d2be0 AS |
616 | # include <stdlib.h> |
617 | # endif | |
618 | #endif | |
f053c89f CY |
619 | #ifdef HAVE_STRING_H |
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
503d2be0 AS |
621 | # include <memory.h> |
622 | # endif | |
623 | # include <string.h> | |
624 | #endif | |
f053c89f | 625 | #ifdef HAVE_STRINGS_H |
503d2be0 AS |
626 | # include <strings.h> |
627 | #endif | |
f053c89f | 628 | #ifdef HAVE_INTTYPES_H |
503d2be0 | 629 | # include <inttypes.h> |
503d2be0 | 630 | #endif |
f053c89f | 631 | #ifdef HAVE_STDINT_H |
ca81d7a0 | 632 | # include <stdint.h> |
503d2be0 | 633 | #endif |
f053c89f | 634 | #ifdef HAVE_UNISTD_H |
503d2be0 AS |
635 | # include <unistd.h> |
636 | #endif" | |
ba4481b5 | 637 | |
a51f4969 | 638 | ac_config_libobj_dir=src |
c24fa7dc MB |
639 | ac_header_list= |
640 | ac_func_list= | |
bf89cb4d | 641 | ac_subst_vars='SHELL |
0ca10bb7 | 642 | PATH_SEPARATOR |
bf89cb4d GM |
643 | PACKAGE_NAME |
644 | PACKAGE_TARNAME | |
645 | PACKAGE_VERSION | |
646 | PACKAGE_STRING | |
647 | PACKAGE_BUGREPORT | |
648 | exec_prefix | |
649 | prefix | |
650 | program_transform_name | |
651 | bindir | |
652 | sbindir | |
653 | libexecdir | |
654 | datarootdir | |
655 | datadir | |
656 | sysconfdir | |
657 | sharedstatedir | |
658 | localstatedir | |
659 | includedir | |
660 | oldincludedir | |
661 | docdir | |
662 | infodir | |
663 | htmldir | |
664 | dvidir | |
665 | pdfdir | |
666 | psdir | |
667 | libdir | |
668 | localedir | |
669 | mandir | |
670 | DEFS | |
671 | ECHO_C | |
672 | ECHO_N | |
673 | ECHO_T | |
674 | LIBS | |
675 | build_alias | |
676 | host_alias | |
677 | target_alias | |
678 | MAINT | |
679 | build | |
680 | build_cpu | |
681 | build_vendor | |
682 | build_os | |
683 | host | |
684 | host_cpu | |
685 | host_vendor | |
686 | host_os | |
687 | CC | |
688 | CFLAGS | |
689 | LDFLAGS | |
690 | CPPFLAGS | |
691 | ac_ct_CC | |
692 | EXEEXT | |
693 | OBJEXT | |
694 | CPP | |
695 | GREP | |
696 | EGREP | |
697 | LN_S | |
698 | INSTALL_PROGRAM | |
699 | INSTALL_SCRIPT | |
700 | INSTALL_DATA | |
701 | RANLIB | |
702 | INSTALL_INFO | |
703 | GZIP_PROG | |
704 | MAKEINFO | |
705 | LIBSOUND | |
706 | PKG_CONFIG | |
707 | ALSA_CFLAGS | |
708 | ALSA_LIBS | |
709 | CFLAGS_SOUND | |
710 | SET_MAKE | |
711 | XMKMF | |
712 | HAVE_XSERVER | |
713 | RSVG_CFLAGS | |
714 | RSVG_LIBS | |
715 | GTK_CFLAGS | |
716 | GTK_LIBS | |
717 | DBUS_CFLAGS | |
718 | DBUS_LIBS | |
719 | GCONF_CFLAGS | |
720 | GCONF_LIBS | |
721 | FONTCONFIG_CFLAGS | |
722 | FONTCONFIG_LIBS | |
723 | XFT_CFLAGS | |
724 | XFT_LIBS | |
725 | LIBOTF_CFLAGS | |
726 | LIBOTF_LIBS | |
727 | M17N_FLT_CFLAGS | |
728 | M17N_FLT_LIBS | |
729 | FREETYPE_CFLAGS | |
730 | FREETYPE_LIBS | |
731 | ALLOCA | |
732 | liblockfile | |
733 | LIBOBJS | |
734 | NEED_SETGID | |
735 | KMEM_GROUP | |
736 | GETLOADAVG_LIBS | |
737 | GETOPT_H | |
738 | GETOPTOBJS | |
739 | version | |
740 | configuration | |
741 | canonical | |
742 | srcdir | |
743 | lispdir | |
744 | locallisppath | |
745 | lisppath | |
746 | x_default_search_path | |
747 | etcdir | |
748 | archlibdir | |
749 | bitmapdir | |
750 | gamedir | |
751 | gameuser | |
752 | c_switch_system | |
753 | c_switch_machine | |
754 | LD_SWITCH_X_SITE | |
755 | LD_SWITCH_X_SITE_AUX | |
756 | C_SWITCH_X_SITE | |
757 | X_TOOLKIT_TYPE | |
758 | machfile | |
759 | opsysfile | |
760 | ns_appdir | |
761 | ns_appbindir | |
762 | ns_appresdir | |
763 | ns_appsrc | |
764 | GNUSTEP_MAKEFILES | |
765 | GNUSTEP_SYSTEM_HEADERS | |
766 | GNUSTEP_SYSTEM_LIBRARIES | |
767 | GNU_OBJC_CFLAGS | |
768 | LIB_SRC_EXTRA_INSTALLABLES | |
769 | OTHER_FILES | |
770 | LTLIBOBJS' | |
6bae0ccf | 771 | ac_subst_files='' |
e9a63f04 GM |
772 | ac_user_opts=' |
773 | enable_option_checking | |
774 | with_pop | |
775 | with_kerberos | |
776 | with_kerberos5 | |
777 | with_hesiod | |
778 | with_sound | |
779 | with_sync_input | |
780 | with_x_toolkit | |
781 | with_xpm | |
782 | with_jpeg | |
783 | with_tiff | |
784 | with_gif | |
785 | with_png | |
786 | with_rsvg | |
787 | with_xft | |
788 | with_libotf | |
789 | with_m17n_flt | |
790 | with_toolkit_scroll_bars | |
791 | with_xaw3d | |
792 | with_xim | |
793 | with_ns | |
794 | with_gpm | |
795 | with_dbus | |
637fa988 | 796 | with_gconf |
e9a63f04 GM |
797 | with_makeinfo |
798 | with_gtk | |
799 | with_gcc | |
800 | with_pkg_config_prog | |
801 | with_gnustep_conf | |
802 | enable_ns_self_contained | |
803 | enable_asserts | |
804 | enable_maintainer_mode | |
805 | enable_locallisppath | |
806 | enable_checking | |
807 | enable_profiling | |
a53cfbe5 | 808 | enable_autodepend |
e9a63f04 GM |
809 | enable_largefile |
810 | with_x | |
811 | ' | |
ca81d7a0 JD |
812 | ac_precious_vars='build_alias |
813 | host_alias | |
814 | target_alias | |
815 | CC | |
816 | CFLAGS | |
817 | LDFLAGS | |
f053c89f | 818 | LIBS |
ca81d7a0 JD |
819 | CPPFLAGS |
820 | CPP | |
821 | XMKMF' | |
822 | ||
c0d27fcc | 823 | |
ba4481b5 | 824 | # Initialize some variables set by options. |
503d2be0 AS |
825 | ac_init_help= |
826 | ac_init_version=false | |
e9a63f04 GM |
827 | ac_unrecognized_opts= |
828 | ac_unrecognized_sep= | |
ba4481b5 DL |
829 | # The variables have the same names as the options, with |
830 | # dashes changed to underlines. | |
503d2be0 | 831 | cache_file=/dev/null |
ba4481b5 | 832 | exec_prefix=NONE |
ba4481b5 | 833 | no_create= |
ba4481b5 DL |
834 | no_recursion= |
835 | prefix=NONE | |
836 | program_prefix=NONE | |
837 | program_suffix=NONE | |
838 | program_transform_name=s,x,x, | |
839 | silent= | |
840 | site= | |
841 | srcdir= | |
ba4481b5 DL |
842 | verbose= |
843 | x_includes=NONE | |
844 | x_libraries=NONE | |
503d2be0 AS |
845 | |
846 | # Installation directory options. | |
847 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
848 | # and all the variables that are supposed to be based on exec_prefix | |
849 | # by default will actually change. | |
850 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
ca81d7a0 | 851 | # (The list follows the same order as the GNU Coding Standards.) |
ba4481b5 DL |
852 | bindir='${exec_prefix}/bin' |
853 | sbindir='${exec_prefix}/sbin' | |
854 | libexecdir='${exec_prefix}/libexec' | |
ca81d7a0 JD |
855 | datarootdir='${prefix}/share' |
856 | datadir='${datarootdir}' | |
ba4481b5 DL |
857 | sysconfdir='${prefix}/etc' |
858 | sharedstatedir='${prefix}/com' | |
859 | localstatedir='${prefix}/var' | |
ba4481b5 DL |
860 | includedir='${prefix}/include' |
861 | oldincludedir='/usr/include' | |
9cf8f393 | 862 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
ca81d7a0 JD |
863 | infodir='${datarootdir}/info' |
864 | htmldir='${docdir}' | |
865 | dvidir='${docdir}' | |
866 | pdfdir='${docdir}' | |
867 | psdir='${docdir}' | |
868 | libdir='${exec_prefix}/lib' | |
869 | localedir='${datarootdir}/locale' | |
870 | mandir='${datarootdir}/man' | |
ba4481b5 | 871 | |
ba4481b5 | 872 | ac_prev= |
ca81d7a0 | 873 | ac_dashdash= |
ba4481b5 DL |
874 | for ac_option |
875 | do | |
ba4481b5 DL |
876 | # If the previous option needs an argument, assign it. |
877 | if test -n "$ac_prev"; then | |
ca81d7a0 | 878 | eval $ac_prev=\$ac_option |
ba4481b5 DL |
879 | ac_prev= |
880 | continue | |
881 | fi | |
882 | ||
ca81d7a0 JD |
883 | case $ac_option in |
884 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
885 | *) ac_optarg=yes ;; | |
886 | esac | |
ba4481b5 DL |
887 | |
888 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
889 | ||
ca81d7a0 JD |
890 | case $ac_dashdash$ac_option in |
891 | --) | |
892 | ac_dashdash=yes ;; | |
ba4481b5 DL |
893 | |
894 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
895 | ac_prev=bindir ;; | |
896 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
503d2be0 | 897 | bindir=$ac_optarg ;; |
ba4481b5 DL |
898 | |
899 | -build | --build | --buil | --bui | --bu) | |
503d2be0 | 900 | ac_prev=build_alias ;; |
ba4481b5 | 901 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
503d2be0 | 902 | build_alias=$ac_optarg ;; |
ba4481b5 DL |
903 | |
904 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
905 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
906 | ac_prev=cache_file ;; | |
907 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
908 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
503d2be0 AS |
909 | cache_file=$ac_optarg ;; |
910 | ||
911 | --config-cache | -C) | |
912 | cache_file=config.cache ;; | |
ba4481b5 | 913 | |
ca81d7a0 | 914 | -datadir | --datadir | --datadi | --datad) |
ba4481b5 | 915 | ac_prev=datadir ;; |
ca81d7a0 | 916 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
503d2be0 | 917 | datadir=$ac_optarg ;; |
ba4481b5 | 918 | |
ca81d7a0 JD |
919 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
920 | | --dataroo | --dataro | --datar) | |
921 | ac_prev=datarootdir ;; | |
922 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
923 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
924 | datarootdir=$ac_optarg ;; | |
925 | ||
ba4481b5 | 926 | -disable-* | --disable-*) |
e9a63f04 | 927 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ba4481b5 | 928 | # Reject names that are not valid shell variable names. |
e9a63f04 | 929 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
bf89cb4d GM |
930 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
931 | { (exit 1); exit 1; }; } | |
e9a63f04 GM |
932 | ac_useropt_orig=$ac_useropt |
933 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
934 | case $ac_user_opts in | |
935 | *" | |
936 | "enable_$ac_useropt" | |
937 | "*) ;; | |
938 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
939 | ac_unrecognized_sep=', ';; | |
940 | esac | |
941 | eval enable_$ac_useropt=no ;; | |
ca81d7a0 JD |
942 | |
943 | -docdir | --docdir | --docdi | --doc | --do) | |
944 | ac_prev=docdir ;; | |
945 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
946 | docdir=$ac_optarg ;; | |
947 | ||
948 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
949 | ac_prev=dvidir ;; | |
950 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
951 | dvidir=$ac_optarg ;; | |
ba4481b5 DL |
952 | |
953 | -enable-* | --enable-*) | |
e9a63f04 | 954 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ba4481b5 | 955 | # Reject names that are not valid shell variable names. |
e9a63f04 | 956 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
bf89cb4d GM |
957 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
958 | { (exit 1); exit 1; }; } | |
e9a63f04 GM |
959 | ac_useropt_orig=$ac_useropt |
960 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
961 | case $ac_user_opts in | |
962 | *" | |
963 | "enable_$ac_useropt" | |
964 | "*) ;; | |
965 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
966 | ac_unrecognized_sep=', ';; | |
967 | esac | |
968 | eval enable_$ac_useropt=\$ac_optarg ;; | |
ba4481b5 DL |
969 | |
970 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
971 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
972 | | --exec | --exe | --ex) | |
973 | ac_prev=exec_prefix ;; | |
974 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
975 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
976 | | --exec=* | --exe=* | --ex=*) | |
503d2be0 | 977 | exec_prefix=$ac_optarg ;; |
ba4481b5 DL |
978 | |
979 | -gas | --gas | --ga | --g) | |
980 | # Obsolete; use --with-gas. | |
981 | with_gas=yes ;; | |
982 | ||
503d2be0 AS |
983 | -help | --help | --hel | --he | -h) |
984 | ac_init_help=long ;; | |
985 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
986 | ac_init_help=recursive ;; | |
987 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
988 | ac_init_help=short ;; | |
ba4481b5 DL |
989 | |
990 | -host | --host | --hos | --ho) | |
503d2be0 | 991 | ac_prev=host_alias ;; |
ba4481b5 | 992 | -host=* | --host=* | --hos=* | --ho=*) |
503d2be0 | 993 | host_alias=$ac_optarg ;; |
ba4481b5 | 994 | |
ca81d7a0 JD |
995 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
996 | ac_prev=htmldir ;; | |
997 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
998 | | --ht=*) | |
999 | htmldir=$ac_optarg ;; | |
1000 | ||
ba4481b5 DL |
1001 | -includedir | --includedir | --includedi | --included | --include \ |
1002 | | --includ | --inclu | --incl | --inc) | |
1003 | ac_prev=includedir ;; | |
1004 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1005 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
503d2be0 | 1006 | includedir=$ac_optarg ;; |
ba4481b5 DL |
1007 | |
1008 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1009 | ac_prev=infodir ;; | |
1010 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
503d2be0 | 1011 | infodir=$ac_optarg ;; |
ba4481b5 DL |
1012 | |
1013 | -libdir | --libdir | --libdi | --libd) | |
1014 | ac_prev=libdir ;; | |
1015 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
503d2be0 | 1016 | libdir=$ac_optarg ;; |
ba4481b5 DL |
1017 | |
1018 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1019 | | --libexe | --libex | --libe) | |
1020 | ac_prev=libexecdir ;; | |
1021 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1022 | | --libexe=* | --libex=* | --libe=*) | |
503d2be0 | 1023 | libexecdir=$ac_optarg ;; |
ba4481b5 | 1024 | |
ca81d7a0 JD |
1025 | -localedir | --localedir | --localedi | --localed | --locale) |
1026 | ac_prev=localedir ;; | |
1027 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1028 | localedir=$ac_optarg ;; | |
1029 | ||
ba4481b5 | 1030 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
ca81d7a0 | 1031 | | --localstate | --localstat | --localsta | --localst | --locals) |
ba4481b5 DL |
1032 | ac_prev=localstatedir ;; |
1033 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
ca81d7a0 | 1034 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
503d2be0 | 1035 | localstatedir=$ac_optarg ;; |
ba4481b5 DL |
1036 | |
1037 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1038 | ac_prev=mandir ;; | |
1039 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
503d2be0 | 1040 | mandir=$ac_optarg ;; |
ba4481b5 DL |
1041 | |
1042 | -nfp | --nfp | --nf) | |
1043 | # Obsolete; use --without-fp. | |
1044 | with_fp=no ;; | |
1045 | ||
1046 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c0d27fcc | 1047 | | --no-cr | --no-c | -n) |
ba4481b5 DL |
1048 | no_create=yes ;; |
1049 | ||
1050 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1051 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1052 | no_recursion=yes ;; | |
1053 | ||
1054 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1055 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1056 | | --oldin | --oldi | --old | --ol | --o) | |
1057 | ac_prev=oldincludedir ;; | |
1058 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1059 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1060 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503d2be0 | 1061 | oldincludedir=$ac_optarg ;; |
ba4481b5 DL |
1062 | |
1063 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1064 | ac_prev=prefix ;; | |
1065 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
503d2be0 | 1066 | prefix=$ac_optarg ;; |
ba4481b5 DL |
1067 | |
1068 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1069 | | --program-pre | --program-pr | --program-p) | |
1070 | ac_prev=program_prefix ;; | |
1071 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1072 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
503d2be0 | 1073 | program_prefix=$ac_optarg ;; |
ba4481b5 DL |
1074 | |
1075 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1076 | | --program-suf | --program-su | --program-s) | |
1077 | ac_prev=program_suffix ;; | |
1078 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1079 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
503d2be0 | 1080 | program_suffix=$ac_optarg ;; |
ba4481b5 DL |
1081 | |
1082 | -program-transform-name | --program-transform-name \ | |
1083 | | --program-transform-nam | --program-transform-na \ | |
1084 | | --program-transform-n | --program-transform- \ | |
1085 | | --program-transform | --program-transfor \ | |
1086 | | --program-transfo | --program-transf \ | |
1087 | | --program-trans | --program-tran \ | |
1088 | | --progr-tra | --program-tr | --program-t) | |
1089 | ac_prev=program_transform_name ;; | |
1090 | -program-transform-name=* | --program-transform-name=* \ | |
1091 | | --program-transform-nam=* | --program-transform-na=* \ | |
1092 | | --program-transform-n=* | --program-transform-=* \ | |
1093 | | --program-transform=* | --program-transfor=* \ | |
1094 | | --program-transfo=* | --program-transf=* \ | |
1095 | | --program-trans=* | --program-tran=* \ | |
1096 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
503d2be0 | 1097 | program_transform_name=$ac_optarg ;; |
ba4481b5 | 1098 | |
ca81d7a0 JD |
1099 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1100 | ac_prev=pdfdir ;; | |
1101 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1102 | pdfdir=$ac_optarg ;; | |
1103 | ||
1104 | -psdir | --psdir | --psdi | --psd | --ps) | |
1105 | ac_prev=psdir ;; | |
1106 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1107 | psdir=$ac_optarg ;; | |
1108 | ||
ba4481b5 DL |
1109 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1110 | | -silent | --silent | --silen | --sile | --sil) | |
1111 | silent=yes ;; | |
1112 | ||
1113 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1114 | ac_prev=sbindir ;; | |
1115 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1116 | | --sbi=* | --sb=*) | |
503d2be0 | 1117 | sbindir=$ac_optarg ;; |
ba4481b5 DL |
1118 | |
1119 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1120 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1121 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1122 | | --sha | --sh) | |
1123 | ac_prev=sharedstatedir ;; | |
1124 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1125 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1126 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1127 | | --sha=* | --sh=*) | |
503d2be0 | 1128 | sharedstatedir=$ac_optarg ;; |
ba4481b5 DL |
1129 | |
1130 | -site | --site | --sit) | |
1131 | ac_prev=site ;; | |
1132 | -site=* | --site=* | --sit=*) | |
503d2be0 | 1133 | site=$ac_optarg ;; |
ba4481b5 DL |
1134 | |
1135 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1136 | ac_prev=srcdir ;; | |
1137 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
503d2be0 | 1138 | srcdir=$ac_optarg ;; |
ba4481b5 DL |
1139 | |
1140 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1141 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1142 | ac_prev=sysconfdir ;; | |
1143 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1144 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
503d2be0 | 1145 | sysconfdir=$ac_optarg ;; |
ba4481b5 DL |
1146 | |
1147 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
503d2be0 | 1148 | ac_prev=target_alias ;; |
ba4481b5 | 1149 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
503d2be0 | 1150 | target_alias=$ac_optarg ;; |
ba4481b5 DL |
1151 | |
1152 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1153 | verbose=yes ;; | |
1154 | ||
503d2be0 AS |
1155 | -version | --version | --versio | --versi | --vers | -V) |
1156 | ac_init_version=: ;; | |
ba4481b5 DL |
1157 | |
1158 | -with-* | --with-*) | |
e9a63f04 | 1159 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ba4481b5 | 1160 | # Reject names that are not valid shell variable names. |
e9a63f04 | 1161 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
bf89cb4d GM |
1162 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
1163 | { (exit 1); exit 1; }; } | |
e9a63f04 GM |
1164 | ac_useropt_orig=$ac_useropt |
1165 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1166 | case $ac_user_opts in | |
1167 | *" | |
1168 | "with_$ac_useropt" | |
1169 | "*) ;; | |
1170 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1171 | ac_unrecognized_sep=', ';; | |
1172 | esac | |
1173 | eval with_$ac_useropt=\$ac_optarg ;; | |
ba4481b5 DL |
1174 | |
1175 | -without-* | --without-*) | |
e9a63f04 | 1176 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ba4481b5 | 1177 | # Reject names that are not valid shell variable names. |
e9a63f04 | 1178 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
bf89cb4d GM |
1179 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
1180 | { (exit 1); exit 1; }; } | |
e9a63f04 GM |
1181 | ac_useropt_orig=$ac_useropt |
1182 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1183 | case $ac_user_opts in | |
1184 | *" | |
1185 | "with_$ac_useropt" | |
1186 | "*) ;; | |
1187 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1188 | ac_unrecognized_sep=', ';; | |
1189 | esac | |
1190 | eval with_$ac_useropt=no ;; | |
ba4481b5 DL |
1191 | |
1192 | --x) | |
1193 | # Obsolete; use --with-x. | |
1194 | with_x=yes ;; | |
1195 | ||
1196 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1197 | | --x-incl | --x-inc | --x-in | --x-i) | |
1198 | ac_prev=x_includes ;; | |
1199 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1200 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
503d2be0 | 1201 | x_includes=$ac_optarg ;; |
ba4481b5 DL |
1202 | |
1203 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1204 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1205 | ac_prev=x_libraries ;; | |
1206 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1207 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
503d2be0 | 1208 | x_libraries=$ac_optarg ;; |
ba4481b5 | 1209 | |
bf89cb4d GM |
1210 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
1211 | Try \`$0 --help' for more information." >&2 | |
1212 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1213 | ;; |
1214 | ||
503d2be0 AS |
1215 | *=*) |
1216 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1217 | # Reject names that are not valid shell variable names. | |
bf89cb4d GM |
1218 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1219 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1220 | { (exit 1); exit 1; }; } | |
ca81d7a0 | 1221 | eval $ac_envvar=\$ac_optarg |
503d2be0 AS |
1222 | export $ac_envvar ;; |
1223 | ||
ba4481b5 | 1224 | *) |
503d2be0 | 1225 | # FIXME: should be removed in autoconf 3.0. |
e9a63f04 | 1226 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
503d2be0 | 1227 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
e9a63f04 | 1228 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
503d2be0 | 1229 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
ba4481b5 DL |
1230 | ;; |
1231 | ||
1232 | esac | |
1233 | done | |
1234 | ||
1235 | if test -n "$ac_prev"; then | |
503d2be0 | 1236 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
bf89cb4d GM |
1237 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
1238 | { (exit 1); exit 1; }; } | |
ba4481b5 | 1239 | fi |
ba4481b5 | 1240 | |
e9a63f04 GM |
1241 | if test -n "$ac_unrecognized_opts"; then |
1242 | case $enable_option_checking in | |
1243 | no) ;; | |
bf89cb4d GM |
1244 | fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 |
1245 | { (exit 1); exit 1; }; } ;; | |
1246 | *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
e9a63f04 GM |
1247 | esac |
1248 | fi | |
1249 | ||
1250 | # Check all directory arguments for consistency. | |
ca81d7a0 JD |
1251 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1252 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1253 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1254 | libdir localedir mandir | |
ba4481b5 | 1255 | do |
ca81d7a0 | 1256 | eval ac_val=\$$ac_var |
e9a63f04 GM |
1257 | # Remove trailing slashes. |
1258 | case $ac_val in | |
1259 | */ ) | |
1260 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1261 | eval $ac_var=\$ac_val;; | |
1262 | esac | |
1263 | # Be sure to have absolute directory names. | |
503d2be0 | 1264 | case $ac_val in |
ca81d7a0 JD |
1265 | [\\/$]* | ?:[\\/]* ) continue;; |
1266 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
ba4481b5 | 1267 | esac |
bf89cb4d GM |
1268 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1269 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1270 | done |
1271 | ||
503d2be0 AS |
1272 | # There might be people who depend on the old broken behavior: `$host' |
1273 | # used to hold the argument of --host etc. | |
c0d27fcc | 1274 | # FIXME: To remove some day. |
503d2be0 AS |
1275 | build=$build_alias |
1276 | host=$host_alias | |
1277 | target=$target_alias | |
1278 | ||
c0d27fcc | 1279 | # FIXME: To remove some day. |
503d2be0 AS |
1280 | if test "x$host_alias" != x; then |
1281 | if test "x$build_alias" = x; then | |
1282 | cross_compiling=maybe | |
e9a63f04 | 1283 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
503d2be0 AS |
1284 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1285 | elif test "x$build_alias" != "x$host_alias"; then | |
1286 | cross_compiling=yes | |
1287 | fi | |
1288 | fi | |
ba4481b5 | 1289 | |
503d2be0 AS |
1290 | ac_tool_prefix= |
1291 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
ba4481b5 | 1292 | |
503d2be0 | 1293 | test "$silent" = yes && exec 6>/dev/null |
ba4481b5 | 1294 | |
c0d27fcc | 1295 | |
ca81d7a0 JD |
1296 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1297 | ac_ls_di=`ls -di .` && | |
1298 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
bf89cb4d GM |
1299 | { $as_echo "$as_me: error: Working directory cannot be determined" >&2 |
1300 | { (exit 1); exit 1; }; } | |
ca81d7a0 | 1301 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
bf89cb4d GM |
1302 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
1303 | { (exit 1); exit 1; }; } | |
ca81d7a0 JD |
1304 | |
1305 | ||
ba4481b5 DL |
1306 | # Find the source files, if location was not specified. |
1307 | if test -z "$srcdir"; then | |
1308 | ac_srcdir_defaulted=yes | |
ca81d7a0 | 1309 | # Try the directory containing this script, then the parent directory. |
e9a63f04 GM |
1310 | ac_confdir=`$as_dirname -- "$as_myself" || |
1311 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1312 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1313 | X"$as_myself" : 'X\(//\)$' \| \ | |
1314 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1315 | $as_echo X"$as_myself" | | |
ca81d7a0 JD |
1316 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1317 | s//\1/ | |
1318 | q | |
1319 | } | |
1320 | /^X\(\/\/\)[^/].*/{ | |
1321 | s//\1/ | |
1322 | q | |
1323 | } | |
1324 | /^X\(\/\/\)$/{ | |
1325 | s//\1/ | |
1326 | q | |
1327 | } | |
1328 | /^X\(\/\).*/{ | |
1329 | s//\1/ | |
1330 | q | |
1331 | } | |
1332 | s/.*/./; q'` | |
ba4481b5 | 1333 | srcdir=$ac_confdir |
ca81d7a0 | 1334 | if test ! -r "$srcdir/$ac_unique_file"; then |
ba4481b5 DL |
1335 | srcdir=.. |
1336 | fi | |
1337 | else | |
1338 | ac_srcdir_defaulted=no | |
1339 | fi | |
ca81d7a0 JD |
1340 | if test ! -r "$srcdir/$ac_unique_file"; then |
1341 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
bf89cb4d GM |
1342 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1343 | { (exit 1); exit 1; }; } | |
ba4481b5 | 1344 | fi |
ca81d7a0 JD |
1345 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1346 | ac_abs_confdir=`( | |
bf89cb4d GM |
1347 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
1348 | { (exit 1); exit 1; }; } | |
ca81d7a0 JD |
1349 | pwd)` |
1350 | # When building in place, set srcdir=. | |
1351 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1352 | srcdir=. | |
1353 | fi | |
1354 | # Remove unnecessary trailing slashes from srcdir. | |
1355 | # Double slashes in file names in object file debugging info | |
1356 | # mess up M-x gdb in Emacs. | |
1357 | case $srcdir in | |
1358 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1359 | esac | |
1360 | for ac_var in $ac_precious_vars; do | |
1361 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1362 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1363 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1364 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1365 | done | |
503d2be0 AS |
1366 | |
1367 | # | |
1368 | # Report the --help message. | |
1369 | # | |
1370 | if test "$ac_init_help" = "long"; then | |
1371 | # Omit some internal or obsolete options to make the list less imposing. | |
1372 | # This message is too long to be a string in the A/UX 3.1 sh. | |
c0d27fcc | 1373 | cat <<_ACEOF |
61a808e8 | 1374 | \`configure' configures emacs 23.2 to adapt to many kinds of systems. |
503d2be0 AS |
1375 | |
1376 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1377 | ||
1378 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1379 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1380 | ||
1381 | Defaults for the options are specified in brackets. | |
1382 | ||
1383 | Configuration: | |
1384 | -h, --help display this help and exit | |
1385 | --help=short display options specific to this package | |
1386 | --help=recursive display the short help of all the included packages | |
1387 | -V, --version display version information and exit | |
1388 | -q, --quiet, --silent do not print \`checking...' messages | |
1389 | --cache-file=FILE cache test results in FILE [disabled] | |
1390 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1391 | -n, --no-create do not create output files | |
1392 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1393 | ||
503d2be0 AS |
1394 | Installation directories: |
1395 | --prefix=PREFIX install architecture-independent files in PREFIX | |
e9a63f04 | 1396 | [$ac_default_prefix] |
503d2be0 | 1397 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
e9a63f04 | 1398 | [PREFIX] |
503d2be0 AS |
1399 | |
1400 | By default, \`make install' will install all the files in | |
1401 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1402 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1403 | for instance \`--prefix=\$HOME'. | |
1404 | ||
1405 | For better control, use the options below. | |
1406 | ||
1407 | Fine tuning of the installation directories: | |
e9a63f04 GM |
1408 | --bindir=DIR user executables [EPREFIX/bin] |
1409 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1410 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1411 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1412 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1413 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1414 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1415 | --includedir=DIR C header files [PREFIX/include] | |
1416 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1417 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1418 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1419 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1420 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1421 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1422 | --docdir=DIR documentation root [DATAROOTDIR/doc/emacs] | |
1423 | --htmldir=DIR html documentation [DOCDIR] | |
1424 | --dvidir=DIR dvi documentation [DOCDIR] | |
1425 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1426 | --psdir=DIR ps documentation [DOCDIR] | |
c0d27fcc | 1427 | _ACEOF |
503d2be0 | 1428 | |
c0d27fcc | 1429 | cat <<\_ACEOF |
503d2be0 | 1430 | |
ba5da88a PJ |
1431 | Program names: |
1432 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1433 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1434 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1435 | ||
503d2be0 AS |
1436 | X features: |
1437 | --x-includes=DIR X include files are in DIR | |
1438 | --x-libraries=DIR X library files are in DIR | |
1439 | ||
1440 | System types: | |
1441 | --build=BUILD configure for building on BUILD [guessed] | |
c0d27fcc MR |
1442 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1443 | _ACEOF | |
503d2be0 AS |
1444 | fi |
1445 | ||
1446 | if test -n "$ac_init_help"; then | |
9cf8f393 | 1447 | case $ac_init_help in |
61a808e8 | 1448 | short | recursive ) echo "Configuration of emacs 23.2:";; |
9cf8f393 | 1449 | esac |
c0d27fcc | 1450 | cat <<\_ACEOF |
503d2be0 AS |
1451 | |
1452 | Optional Features: | |
e9a63f04 | 1453 | --disable-option-checking ignore unrecognized --enable/--with options |
503d2be0 AS |
1454 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1455 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6b8bc489 AS |
1456 | --disable-ns-self-contained |
1457 | disable self contained build under NeXTstep | |
d0098f13 | 1458 | --enable-asserts compile code with asserts enabled |
709e90de AS |
1459 | --enable-maintainer-mode |
1460 | enable make rules and dependencies not useful (and | |
1461 | sometimes confusing) to the casual installer | |
9adfabc2 LK |
1462 | --enable-locallisppath=PATH |
1463 | directories Emacs should search for lisp files | |
1464 | specific to this site | |
7df24305 AS |
1465 | --enable-checking[=LIST] |
1466 | enable expensive run-time checks. With LIST, enable | |
1467 | only specific categories of checks. Categories are: | |
1468 | all,yes,no. Flags are: stringbytes, stringoverrun, | |
1469 | stringfreelist, xmallocoverrun, conslist | |
1470 | --enable-profiling build emacs with profiling support. This might not | |
1471 | work on all platforms | |
a53cfbe5 JD |
1472 | --enable-autodepend automatically generate dependencies to .h-files. |
1473 | Requires GNU Make and Gcc. Enabled if GNU Make and | |
1474 | Gcc is found | |
503d2be0 AS |
1475 | --disable-largefile omit support for large files |
1476 | ||
1477 | Optional Packages: | |
1478 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1479 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
503d2be0 AS |
1480 | --without-pop don't support POP mail retrieval with movemail |
1481 | --with-kerberos support Kerberos-authenticated POP | |
1482 | --with-kerberos5 support Kerberos version 5 authenticated POP | |
1483 | --with-hesiod support Hesiod to get the POP server host | |
2c9dccc9 | 1484 | --without-sound don't compile with sound support |
ecd43cb9 | 1485 | --without-sync-input process async input synchronously |
49adb60f TTN |
1486 | --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena, |
1487 | motif, gtk, no) | |
c8467c40 GM |
1488 | --without-xpm don't compile with XPM image support |
1489 | --without-jpeg don't compile with JPEG image support | |
1490 | --without-tiff don't compile with TIFF image support | |
1491 | --without-gif don't compile with GIF image support | |
1492 | --without-png don't compile with PNG image support | |
1493 | --without-rsvg don't compile with SVG image support | |
4efcc8d1 | 1494 | --without-xft don't use XFT for anti aliased fonts |
d235ca2f MB |
1495 | --without-libotf don't use libotf for OpenType font support |
1496 | --without-m17n-flt don't use m17n-flt for text shaping | |
503d2be0 | 1497 | --without-toolkit-scroll-bars |
cc227489 | 1498 | don't use Motif or Xaw3d scroll bars |
c982cf7d | 1499 | --without-xaw3d don't use Xaw3d |
cc227489 | 1500 | --without-xim don't use X11 XIM |
edfda783 | 1501 | --with-ns use nextstep (Cocoa or GNUstep) windowing system |
c8467c40 GM |
1502 | --without-gpm don't use -lgpm for mouse support on a GNU/Linux |
1503 | console | |
b5a922de | 1504 | --without-dbus don't compile with D-Bus support |
637fa988 | 1505 | --without-gconf don't compile with GConf support |
921fbdf0 | 1506 | --without-makeinfo don't require makeinfo for building manuals |
9d2818d6 | 1507 | |
00b9c927 | 1508 | --with-pkg-config-prog=PATH |
ecd43cb9 GM |
1509 | path to pkg-config for finding GTK and librsvg |
1510 | --with-gnustep-conf=PATH | |
1511 | path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE, | |
1512 | or /etc/GNUstep/GNUstep.conf | |
503d2be0 AS |
1513 | --with-x use the X Window System |
1514 | ||
1515 | Some influential environment variables: | |
1516 | CC C compiler command | |
1517 | CFLAGS C compiler flags | |
1518 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1519 | nonstandard directory <lib dir> | |
f053c89f | 1520 | LIBS libraries to pass to the linker, e.g. -l<library> |
bf89cb4d | 1521 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
ca81d7a0 | 1522 | you have headers in a nonstandard directory <include dir> |
503d2be0 | 1523 | CPP C preprocessor |
ca81d7a0 | 1524 | XMKMF Path to xmkmf, Makefile generator for X Window System |
503d2be0 AS |
1525 | |
1526 | Use these variables to override the choices made by `configure' or to help | |
1527 | it to find libraries and programs with nonstandard names/locations. | |
1528 | ||
c0d27fcc | 1529 | _ACEOF |
ca81d7a0 | 1530 | ac_status=$? |
503d2be0 AS |
1531 | fi |
1532 | ||
1533 | if test "$ac_init_help" = "recursive"; then | |
1534 | # If there are subdirs, report their specific --help. | |
c0d27fcc | 1535 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
e9a63f04 GM |
1536 | test -d "$ac_dir" || |
1537 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1538 | continue | |
c0d27fcc MR |
1539 | ac_builddir=. |
1540 | ||
ca81d7a0 JD |
1541 | case "$ac_dir" in |
1542 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1543 | *) | |
e9a63f04 | 1544 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
ca81d7a0 | 1545 | # A ".." for each directory in $ac_dir_suffix. |
e9a63f04 | 1546 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
ca81d7a0 JD |
1547 | case $ac_top_builddir_sub in |
1548 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1549 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1550 | esac ;; | |
1551 | esac | |
1552 | ac_abs_top_builddir=$ac_pwd | |
1553 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1554 | # for backward compatibility: | |
1555 | ac_top_builddir=$ac_top_build_prefix | |
503d2be0 | 1556 | |
c0d27fcc | 1557 | case $srcdir in |
ca81d7a0 | 1558 | .) # We are building in place. |
c0d27fcc | 1559 | ac_srcdir=. |
ca81d7a0 JD |
1560 | ac_top_srcdir=$ac_top_builddir_sub |
1561 | ac_abs_top_srcdir=$ac_pwd ;; | |
1562 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c0d27fcc | 1563 | ac_srcdir=$srcdir$ac_dir_suffix; |
ca81d7a0 JD |
1564 | ac_top_srcdir=$srcdir |
1565 | ac_abs_top_srcdir=$srcdir ;; | |
1566 | *) # Relative name. | |
1567 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1568 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1569 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
edfaf76d | 1570 | esac |
ca81d7a0 JD |
1571 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1572 | ||
1573 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1574 | # Check for guested configure. | |
1575 | if test -f "$ac_srcdir/configure.gnu"; then | |
1576 | echo && | |
1577 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1578 | elif test -f "$ac_srcdir/configure"; then | |
1579 | echo && | |
1580 | $SHELL "$ac_srcdir/configure" --help=recursive | |
503d2be0 | 1581 | else |
e9a63f04 | 1582 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
ca81d7a0 JD |
1583 | fi || ac_status=$? |
1584 | cd "$ac_pwd" || { ac_status=$?; break; } | |
503d2be0 AS |
1585 | done |
1586 | fi | |
1587 | ||
ca81d7a0 | 1588 | test -n "$ac_init_help" && exit $ac_status |
503d2be0 | 1589 | if $ac_init_version; then |
c0d27fcc | 1590 | cat <<\_ACEOF |
61a808e8 | 1591 | emacs configure 23.2 |
bf89cb4d | 1592 | generated by GNU Autoconf 2.62 |
503d2be0 | 1593 | |
bf89cb4d GM |
1594 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1595 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
503d2be0 AS |
1596 | This configure script is free software; the Free Software Foundation |
1597 | gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc | 1598 | _ACEOF |
ca81d7a0 | 1599 | exit |
503d2be0 | 1600 | fi |
bf89cb4d GM |
1601 | cat >config.log <<_ACEOF |
1602 | This file contains any messages produced by compilers while | |
1603 | running configure, to aid debugging if configure makes a mistake. | |
1604 | ||
61a808e8 | 1605 | It was created by emacs $as_me 23.2, which was |
bf89cb4d | 1606 | generated by GNU Autoconf 2.62. Invocation command line was |
503d2be0 | 1607 | |
bf89cb4d | 1608 | $ $0 $@ |
503d2be0 | 1609 | |
bf89cb4d GM |
1610 | _ACEOF |
1611 | exec 5>>config.log | |
0ca10bb7 | 1612 | { |
bf89cb4d GM |
1613 | cat <<_ASUNAME |
1614 | ## --------- ## | |
1615 | ## Platform. ## | |
1616 | ## --------- ## | |
503d2be0 | 1617 | |
bf89cb4d GM |
1618 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1619 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1620 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1621 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1622 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
0ca10bb7 | 1623 | |
bf89cb4d GM |
1624 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1625 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
0ca10bb7 RC |
1626 | |
1627 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1628 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1629 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1630 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
503d2be0 AS |
1631 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1632 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1633 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1634 | ||
925c2f3f | 1635 | _ASUNAME |
c0d27fcc MR |
1636 | |
1637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1638 | for as_dir in $PATH | |
1639 | do | |
1640 | IFS=$as_save_IFS | |
1641 | test -z "$as_dir" && as_dir=. | |
bf89cb4d GM |
1642 | $as_echo "PATH: $as_dir" |
1643 | done | |
ca81d7a0 | 1644 | IFS=$as_save_IFS |
c0d27fcc | 1645 | |
503d2be0 AS |
1646 | } >&5 |
1647 | ||
c0d27fcc MR |
1648 | cat >&5 <<_ACEOF |
1649 | ||
1650 | ||
1651 | ## ----------- ## | |
1652 | ## Core tests. ## | |
1653 | ## ----------- ## | |
1654 | ||
1655 | _ACEOF | |
503d2be0 | 1656 | |
503d2be0 AS |
1657 | |
1658 | # Keep a trace of the command line. | |
1659 | # Strip out --no-create and --no-recursion so they do not pile up. | |
19650fd6 | 1660 | # Strip out --silent because we don't want to record it for future runs. |
503d2be0 | 1661 | # Also quote any args containing shell meta-characters. |
19650fd6 | 1662 | # Make two passes to allow for proper duplicate-argument suppression. |
503d2be0 | 1663 | ac_configure_args= |
19650fd6 AS |
1664 | ac_configure_args0= |
1665 | ac_configure_args1= | |
19650fd6 AS |
1666 | ac_must_keep_next=false |
1667 | for ac_pass in 1 2 | |
503d2be0 | 1668 | do |
19650fd6 AS |
1669 | for ac_arg |
1670 | do | |
1671 | case $ac_arg in | |
1672 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1673 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1674 | | -silent | --silent | --silen | --sile | --sil) | |
1675 | continue ;; | |
ca81d7a0 | 1676 | *\'*) |
e9a63f04 | 1677 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
19650fd6 AS |
1678 | esac |
1679 | case $ac_pass in | |
bf89cb4d | 1680 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
19650fd6 | 1681 | 2) |
bf89cb4d | 1682 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
19650fd6 | 1683 | if test $ac_must_keep_next = true; then |
edfaf76d | 1684 | ac_must_keep_next=false # Got value, back to normal. |
19650fd6 | 1685 | else |
edfaf76d LK |
1686 | case $ac_arg in |
1687 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1688 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1689 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1690 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1691 | case "$ac_configure_args0 " in | |
1692 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1693 | esac | |
1694 | ;; | |
1695 | -* ) ac_must_keep_next=true ;; | |
1696 | esac | |
19650fd6 | 1697 | fi |
bf89cb4d | 1698 | ac_configure_args="$ac_configure_args '$ac_arg'" |
19650fd6 AS |
1699 | ;; |
1700 | esac | |
1701 | done | |
503d2be0 | 1702 | done |
bf89cb4d GM |
1703 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1704 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
503d2be0 AS |
1705 | |
1706 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1707 | # config.log. We remove comments because anyway the quotes in there | |
1708 | # would cause problems or look ugly. | |
ca81d7a0 JD |
1709 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1710 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
503d2be0 AS |
1711 | trap 'exit_status=$? |
1712 | # Save into config.log some information that might help in debugging. | |
c0d27fcc MR |
1713 | { |
1714 | echo | |
6bae0ccf | 1715 | |
c0d27fcc MR |
1716 | cat <<\_ASBOX |
1717 | ## ---------------- ## | |
1718 | ## Cache variables. ## | |
1719 | ## ---------------- ## | |
1720 | _ASBOX | |
1721 | echo | |
1722 | # The following way of writing the cache mishandles newlines in values, | |
ca81d7a0 JD |
1723 | ( |
1724 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1725 | eval ac_val=\$$ac_var | |
1726 | case $ac_val in #( | |
1727 | *${as_nl}*) | |
1728 | case $ac_var in #( | |
bf89cb4d GM |
1729 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1730 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
ca81d7a0 JD |
1731 | esac |
1732 | case $ac_var in #( | |
1733 | _ | IFS | as_nl) ;; #( | |
e9a63f04 | 1734 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
bf89cb4d | 1735 | *) $as_unset $ac_var ;; |
ca81d7a0 JD |
1736 | esac ;; |
1737 | esac | |
1738 | done | |
503d2be0 | 1739 | (set) 2>&1 | |
ca81d7a0 JD |
1740 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1741 | *${as_nl}ac_space=\ *) | |
503d2be0 | 1742 | sed -n \ |
ca81d7a0 JD |
1743 | "s/'\''/'\''\\\\'\'''\''/g; |
1744 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1745 | ;; #( | |
503d2be0 | 1746 | *) |
ca81d7a0 | 1747 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
503d2be0 | 1748 | ;; |
ca81d7a0 JD |
1749 | esac | |
1750 | sort | |
1751 | ) | |
c0d27fcc | 1752 | echo |
6bae0ccf DL |
1753 | |
1754 | cat <<\_ASBOX | |
1755 | ## ----------------- ## | |
1756 | ## Output variables. ## | |
1757 | ## ----------------- ## | |
1758 | _ASBOX | |
1759 | echo | |
1760 | for ac_var in $ac_subst_vars | |
1761 | do | |
ca81d7a0 JD |
1762 | eval ac_val=\$$ac_var |
1763 | case $ac_val in | |
e9a63f04 | 1764 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
ca81d7a0 | 1765 | esac |
e9a63f04 | 1766 | $as_echo "$ac_var='\''$ac_val'\''" |
6bae0ccf DL |
1767 | done | sort |
1768 | echo | |
1769 | ||
1770 | if test -n "$ac_subst_files"; then | |
1771 | cat <<\_ASBOX | |
ca81d7a0 JD |
1772 | ## ------------------- ## |
1773 | ## File substitutions. ## | |
1774 | ## ------------------- ## | |
6bae0ccf DL |
1775 | _ASBOX |
1776 | echo | |
1777 | for ac_var in $ac_subst_files | |
1778 | do | |
ca81d7a0 JD |
1779 | eval ac_val=\$$ac_var |
1780 | case $ac_val in | |
e9a63f04 | 1781 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
ca81d7a0 | 1782 | esac |
e9a63f04 | 1783 | $as_echo "$ac_var='\''$ac_val'\''" |
6bae0ccf DL |
1784 | done | sort |
1785 | echo | |
1786 | fi | |
1787 | ||
c0d27fcc MR |
1788 | if test -s confdefs.h; then |
1789 | cat <<\_ASBOX | |
1790 | ## ----------- ## | |
1791 | ## confdefs.h. ## | |
1792 | ## ----------- ## | |
1793 | _ASBOX | |
1794 | echo | |
ca81d7a0 | 1795 | cat confdefs.h |
c0d27fcc MR |
1796 | echo |
1797 | fi | |
1798 | test "$ac_signal" != 0 && | |
e9a63f04 GM |
1799 | $as_echo "$as_me: caught signal $ac_signal" |
1800 | $as_echo "$as_me: exit $exit_status" | |
c0d27fcc | 1801 | } >&5 |
ca81d7a0 JD |
1802 | rm -f core *.core core.conftest.* && |
1803 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
503d2be0 | 1804 | exit $exit_status |
ca81d7a0 | 1805 | ' 0 |
503d2be0 | 1806 | for ac_signal in 1 2 13 15; do |
bf89cb4d | 1807 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
503d2be0 AS |
1808 | done |
1809 | ac_signal=0 | |
1810 | ||
1811 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
ca81d7a0 | 1812 | rm -f -r conftest* confdefs.h |
ba4481b5 | 1813 | |
c0d27fcc MR |
1814 | # Predefined preprocessor variables. |
1815 | ||
1816 | cat >>confdefs.h <<_ACEOF | |
1817 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1818 | _ACEOF | |
1819 | ||
bf89cb4d | 1820 | |
c0d27fcc MR |
1821 | cat >>confdefs.h <<_ACEOF |
1822 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1823 | _ACEOF | |
1824 | ||
bf89cb4d | 1825 | |
c0d27fcc MR |
1826 | cat >>confdefs.h <<_ACEOF |
1827 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1828 | _ACEOF | |
1829 | ||
bf89cb4d | 1830 | |
c0d27fcc MR |
1831 | cat >>confdefs.h <<_ACEOF |
1832 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1833 | _ACEOF | |
1834 | ||
c0d27fcc | 1835 | |
0ca10bb7 | 1836 | cat >>confdefs.h <<_ACEOF |
bf89cb4d | 1837 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
0ca10bb7 RC |
1838 | _ACEOF |
1839 | ||
c0d27fcc | 1840 | |
503d2be0 | 1841 | # Let the site file select an alternate cache file if it wants to. |
e9a63f04 GM |
1842 | # Prefer an explicitly selected file to automatically selected ones. |
1843 | ac_site_file1=NONE | |
1844 | ac_site_file2=NONE | |
ca81d7a0 | 1845 | if test -n "$CONFIG_SITE"; then |
e9a63f04 | 1846 | ac_site_file1=$CONFIG_SITE |
ca81d7a0 | 1847 | elif test "x$prefix" != xNONE; then |
e9a63f04 GM |
1848 | ac_site_file1=$prefix/share/config.site |
1849 | ac_site_file2=$prefix/etc/config.site | |
ca81d7a0 | 1850 | else |
e9a63f04 GM |
1851 | ac_site_file1=$ac_default_prefix/share/config.site |
1852 | ac_site_file2=$ac_default_prefix/etc/config.site | |
ba4481b5 | 1853 | fi |
e9a63f04 | 1854 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
ca81d7a0 | 1855 | do |
e9a63f04 | 1856 | test "x$ac_site_file" = xNONE && continue |
bf89cb4d GM |
1857 | if test -r "$ac_site_file"; then |
1858 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
e9a63f04 | 1859 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
c0d27fcc | 1860 | sed 's/^/| /' "$ac_site_file" >&5 |
ba4481b5 DL |
1861 | . "$ac_site_file" |
1862 | fi | |
1863 | done | |
1864 | ||
1865 | if test -r "$cache_file"; then | |
bf89cb4d GM |
1866 | # Some versions of bash will fail to source /dev/null (special |
1867 | # files actually), so we avoid doing that. | |
1868 | if test -f "$cache_file"; then | |
1869 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
e9a63f04 | 1870 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
503d2be0 | 1871 | case $cache_file in |
ca81d7a0 JD |
1872 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1873 | *) . "./$cache_file";; | |
503d2be0 AS |
1874 | esac |
1875 | fi | |
ba4481b5 | 1876 | else |
bf89cb4d | 1877 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
e9a63f04 | 1878 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
503d2be0 AS |
1879 | >$cache_file |
1880 | fi | |
1881 | ||
bf89cb4d GM |
1882 | ac_header_list="$ac_header_list sys/time.h" |
1883 | ac_header_list="$ac_header_list unistd.h" | |
1884 | ac_func_list="$ac_func_list alarm" | |
503d2be0 AS |
1885 | # Check that the precious variables saved in the cache have kept the same |
1886 | # value. | |
1887 | ac_cache_corrupted=false | |
ca81d7a0 | 1888 | for ac_var in $ac_precious_vars; do |
503d2be0 AS |
1889 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1890 | eval ac_new_set=\$ac_env_${ac_var}_set | |
ca81d7a0 JD |
1891 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1892 | eval ac_new_val=\$ac_env_${ac_var}_value | |
503d2be0 AS |
1893 | case $ac_old_set,$ac_new_set in |
1894 | set,) | |
bf89cb4d | 1895 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
e9a63f04 | 1896 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
503d2be0 AS |
1897 | ac_cache_corrupted=: ;; |
1898 | ,set) | |
bf89cb4d | 1899 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
e9a63f04 | 1900 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
503d2be0 AS |
1901 | ac_cache_corrupted=: ;; |
1902 | ,);; | |
1903 | *) | |
1904 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
e9a63f04 GM |
1905 | # differences in whitespace do not lead to failure. |
1906 | ac_old_val_w=`echo x $ac_old_val` | |
1907 | ac_new_val_w=`echo x $ac_new_val` | |
1908 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
bf89cb4d | 1909 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
e9a63f04 GM |
1910 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1911 | ac_cache_corrupted=: | |
1912 | else | |
bf89cb4d | 1913 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
e9a63f04 GM |
1914 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
1915 | eval $ac_var=\$ac_old_val | |
1916 | fi | |
bf89cb4d | 1917 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
e9a63f04 | 1918 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
bf89cb4d | 1919 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
e9a63f04 | 1920 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
503d2be0 AS |
1921 | fi;; |
1922 | esac | |
c0d27fcc | 1923 | # Pass precious variables to config.status. |
503d2be0 AS |
1924 | if test "$ac_new_set" = set; then |
1925 | case $ac_new_val in | |
e9a63f04 | 1926 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c0d27fcc MR |
1927 | *) ac_arg=$ac_var=$ac_new_val ;; |
1928 | esac | |
1929 | case " $ac_configure_args " in | |
1930 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
bf89cb4d | 1931 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
503d2be0 AS |
1932 | esac |
1933 | fi | |
1934 | done | |
1935 | if $ac_cache_corrupted; then | |
bf89cb4d | 1936 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
e9a63f04 | 1937 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
bf89cb4d GM |
1938 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1939 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1940 | { (exit 1); exit 1; }; } | |
ba4481b5 | 1941 | fi |
bf89cb4d GM |
1942 | |
1943 | ||
1944 | ||
1945 | ||
1946 | ||
1947 | ||
1948 | ||
1949 | ||
1950 | ||
1951 | ||
1952 | ||
1953 | ||
1954 | ||
1955 | ||
1956 | ||
1957 | ||
1958 | ||
1959 | ||
1960 | ||
1961 | ||
1962 | ||
1963 | ||
1964 | ||
1965 | ||
c0d27fcc | 1966 | |
ca81d7a0 JD |
1967 | ac_ext=c |
1968 | ac_cpp='$CPP $CPPFLAGS' | |
1969 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1970 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1971 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 | 1972 | |
6bae0ccf | 1973 | |
ca81d7a0 | 1974 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" |
ba4481b5 | 1975 | |
c0d27fcc | 1976 | |
9fb1ba80 | 1977 | |
ba5da88a | 1978 | test "$program_prefix" != NONE && |
ca81d7a0 | 1979 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
ba5da88a PJ |
1980 | # Use a double $ so make ignores it. |
1981 | test "$program_suffix" != NONE && | |
ca81d7a0 | 1982 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
e9a63f04 | 1983 | # Double any \ or $. |
ba5da88a | 1984 | # By default was `s,x,x', remove it if useless. |
e9a63f04 GM |
1985 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
1986 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
ba5da88a | 1987 | |
c0d27fcc | 1988 | |
ba4481b5 DL |
1989 | lispdir='${datadir}/emacs/${version}/lisp' |
1990 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
e9291f09 EZ |
1991 | '${datadir}/emacs/site-lisp' |
1992 | lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim' | |
ba4481b5 DL |
1993 | etcdir='${datadir}/emacs/${version}/etc' |
1994 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
1995 | docdir='${datadir}/emacs/${version}/etc' | |
24b01ec4 | 1996 | gamedir='${localstatedir}/games/emacs' |
98418dba CW |
1997 | |
1998 | gameuser=games | |
1999 | ||
c0d27fcc | 2000 | |
49adb60f | 2001 | |
00b9c927 | 2002 | |
ca81d7a0 | 2003 | # Check whether --with-pop was given. |
bf89cb4d | 2004 | if test "${with_pop+set}" = set; then |
00b9c927 | 2005 | withval=$with_pop; |
3d9fec71 | 2006 | else |
00b9c927 MO |
2007 | with_pop=yes |
2008 | fi | |
2009 | ||
2010 | if test "$with_pop" = yes; then | |
bf89cb4d GM |
2011 | cat >>confdefs.h <<\_ACEOF |
2012 | #define MAIL_USE_POP 1 | |
2013 | _ACEOF | |
3d9fec71 | 2014 | |
ca81d7a0 | 2015 | fi |
ba4481b5 | 2016 | |
c0d27fcc | 2017 | |
bf89cb4d | 2018 | |
ca81d7a0 | 2019 | # Check whether --with-kerberos was given. |
bf89cb4d | 2020 | if test "${with_kerberos+set}" = set; then |
00b9c927 MO |
2021 | withval=$with_kerberos; |
2022 | else | |
2023 | with_kerberos=no | |
2024 | fi | |
2025 | ||
ff1095d1 | 2026 | if test "$with_kerberos" != no; then |
bf89cb4d GM |
2027 | cat >>confdefs.h <<\_ACEOF |
2028 | #define KERBEROS 1 | |
2029 | _ACEOF | |
a21616bd | 2030 | |
ca81d7a0 | 2031 | fi |
c0d27fcc | 2032 | |
c0d27fcc | 2033 | |
bf89cb4d | 2034 | |
ca81d7a0 | 2035 | # Check whether --with-kerberos5 was given. |
bf89cb4d | 2036 | if test "${with_kerberos5+set}" = set; then |
00b9c927 MO |
2037 | withval=$with_kerberos5; |
2038 | else | |
2039 | with_kerberos5=no | |
2040 | fi | |
2041 | ||
ff1095d1 AR |
2042 | if test "${with_kerberos5}" != no; then |
2043 | if test "${with_kerberos}" = no; then | |
a21616bd | 2044 | with_kerberos=yes |
bf89cb4d GM |
2045 | cat >>confdefs.h <<\_ACEOF |
2046 | #define KERBEROS 1 | |
2047 | _ACEOF | |
a21616bd KR |
2048 | |
2049 | fi | |
b936fae4 | 2050 | |
bf89cb4d GM |
2051 | cat >>confdefs.h <<\_ACEOF |
2052 | #define KERBEROS5 1 | |
2053 | _ACEOF | |
a21616bd | 2054 | |
ca81d7a0 | 2055 | fi |
b936fae4 | 2056 | |
49adb60f | 2057 | |
ca81d7a0 | 2058 | # Check whether --with-hesiod was given. |
bf89cb4d | 2059 | if test "${with_hesiod+set}" = set; then |
00b9c927 MO |
2060 | withval=$with_hesiod; |
2061 | else | |
2062 | with_hesiod=no | |
2063 | fi | |
2064 | ||
ff1095d1 | 2065 | if test "$with_hesiod" != no; then |
54e6585f | 2066 | |
bf89cb4d GM |
2067 | cat >>confdefs.h <<\_ACEOF |
2068 | #define HESIOD 1 | |
2069 | _ACEOF | |
ba4481b5 | 2070 | |
ca81d7a0 | 2071 | fi |
c0d27fcc | 2072 | |
c0d27fcc | 2073 | |
ca81d7a0 | 2074 | # Check whether --with-sound was given. |
bf89cb4d | 2075 | if test "${with_sound+set}" = set; then |
ca81d7a0 | 2076 | withval=$with_sound; |
00b9c927 MO |
2077 | else |
2078 | with_sound=yes | |
ca81d7a0 | 2079 | fi |
2c9dccc9 | 2080 | |
2c9dccc9 | 2081 | |
c0d27fcc | 2082 | |
a51f4969 | 2083 | # Check whether --with-sync-input was given. |
bf89cb4d | 2084 | if test "${with_sync_input+set}" = set; then |
a51f4969 SM |
2085 | withval=$with_sync_input; |
2086 | else | |
2087 | with_sync_input=yes | |
2088 | fi | |
2089 | ||
2090 | if test "$with_sync_input" = yes; then | |
2091 | ||
bf89cb4d GM |
2092 | cat >>confdefs.h <<\_ACEOF |
2093 | #define SYNC_INPUT 1 | |
2094 | _ACEOF | |
a51f4969 SM |
2095 | |
2096 | fi | |
2097 | ||
2098 | ||
ca81d7a0 | 2099 | # Check whether --with-x-toolkit was given. |
bf89cb4d | 2100 | if test "${with_x_toolkit+set}" = set; then |
ca81d7a0 | 2101 | withval=$with_x_toolkit; case "${withval}" in |
089a966d | 2102 | y | ye | yes ) val=gtk ;; |
ba4481b5 DL |
2103 | n | no ) val=no ;; |
2104 | l | lu | luc | luci | lucid ) val=lucid ;; | |
2105 | a | at | ath | athe | athen | athena ) val=athena ;; | |
2106 | m | mo | mot | moti | motif ) val=motif ;; | |
488dd4c4 | 2107 | g | gt | gtk ) val=gtk ;; |
ba4481b5 | 2108 | * ) |
bf89cb4d | 2109 | { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid; |
488dd4c4 | 2110 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
bf89cb4d GM |
2111 | \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5 |
2112 | $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid; | |
2113 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. | |
2114 | \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;} | |
2115 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
2116 | ;; |
2117 | esac | |
2118 | with_x_toolkit=$val | |
2119 | ||
ca81d7a0 | 2120 | fi |
8eeae1c9 | 2121 | |
ba4481b5 | 2122 | |
49adb60f | 2123 | |
ca81d7a0 | 2124 | # Check whether --with-xpm was given. |
bf89cb4d | 2125 | if test "${with_xpm+set}" = set; then |
ca81d7a0 | 2126 | withval=$with_xpm; |
00b9c927 | 2127 | else |
c8467c40 | 2128 | with_xpm=yes |
ca81d7a0 | 2129 | fi |
503d2be0 | 2130 | |
ba4481b5 | 2131 | |
ca81d7a0 | 2132 | # Check whether --with-jpeg was given. |
bf89cb4d | 2133 | if test "${with_jpeg+set}" = set; then |
ca81d7a0 | 2134 | withval=$with_jpeg; |
00b9c927 | 2135 | else |
c8467c40 | 2136 | with_jpeg=yes |
ca81d7a0 | 2137 | fi |
503d2be0 | 2138 | |
ba4481b5 | 2139 | |
ca81d7a0 | 2140 | # Check whether --with-tiff was given. |
bf89cb4d | 2141 | if test "${with_tiff+set}" = set; then |
ca81d7a0 | 2142 | withval=$with_tiff; |
00b9c927 | 2143 | else |
c8467c40 | 2144 | with_tiff=yes |
ca81d7a0 | 2145 | fi |
503d2be0 | 2146 | |
ba4481b5 | 2147 | |
ca81d7a0 | 2148 | # Check whether --with-gif was given. |
bf89cb4d | 2149 | if test "${with_gif+set}" = set; then |
ca81d7a0 | 2150 | withval=$with_gif; |
00b9c927 | 2151 | else |
c8467c40 | 2152 | with_gif=yes |
ca81d7a0 | 2153 | fi |
503d2be0 | 2154 | |
ba4481b5 | 2155 | |
ca81d7a0 | 2156 | # Check whether --with-png was given. |
bf89cb4d | 2157 | if test "${with_png+set}" = set; then |
ca81d7a0 | 2158 | withval=$with_png; |
00b9c927 | 2159 | else |
c8467c40 | 2160 | with_png=yes |
ca81d7a0 | 2161 | fi |
503d2be0 | 2162 | |
ba4481b5 | 2163 | |
0cfc0546 | 2164 | # Check whether --with-rsvg was given. |
bf89cb4d | 2165 | if test "${with_rsvg+set}" = set; then |
0cfc0546 | 2166 | withval=$with_rsvg; |
00b9c927 | 2167 | else |
c8467c40 | 2168 | with_rsvg=yes |
0cfc0546 GM |
2169 | fi |
2170 | ||
2171 | ||
c8467c40 | 2172 | |
c24fa7dc | 2173 | # Check whether --with-xft was given. |
bf89cb4d | 2174 | if test "${with_xft+set}" = set; then |
c24fa7dc | 2175 | withval=$with_xft; |
d235ca2f | 2176 | else |
4efcc8d1 | 2177 | with_xft=yes |
c24fa7dc | 2178 | fi |
45a4b03e | 2179 | |
45a4b03e | 2180 | |
d235ca2f | 2181 | # Check whether --with-libotf was given. |
bf89cb4d | 2182 | if test "${with_libotf+set}" = set; then |
d235ca2f MB |
2183 | withval=$with_libotf; |
2184 | else | |
2185 | with_libotf=yes | |
79011b82 NR |
2186 | fi |
2187 | ||
2188 | ||
d235ca2f | 2189 | # Check whether --with-m17n-flt was given. |
bf89cb4d | 2190 | if test "${with_m17n_flt+set}" = set; then |
d235ca2f MB |
2191 | withval=$with_m17n_flt; |
2192 | else | |
2193 | with_m17n_flt=yes | |
0cfc0546 GM |
2194 | fi |
2195 | ||
2196 | ||
d235ca2f | 2197 | |
ca81d7a0 | 2198 | # Check whether --with-toolkit-scroll-bars was given. |
bf89cb4d | 2199 | if test "${with_toolkit_scroll_bars+set}" = set; then |
ca81d7a0 | 2200 | withval=$with_toolkit_scroll_bars; |
00b9c927 MO |
2201 | else |
2202 | with_toolkit_scroll_bars=yes | |
ca81d7a0 | 2203 | fi |
503d2be0 | 2204 | |
ba4481b5 | 2205 | |
e35a28cd | 2206 | # Check whether --with-xaw3d was given. |
bf89cb4d | 2207 | if test "${with_xaw3d+set}" = set; then |
e35a28cd | 2208 | withval=$with_xaw3d; |
00b9c927 MO |
2209 | else |
2210 | with_xaw3d=yes | |
c982cf7d JD |
2211 | fi |
2212 | ||
2213 | ||
ca81d7a0 | 2214 | # Check whether --with-xim was given. |
bf89cb4d | 2215 | if test "${with_xim+set}" = set; then |
ca81d7a0 | 2216 | withval=$with_xim; |
00b9c927 MO |
2217 | else |
2218 | with_xim=yes | |
ca81d7a0 | 2219 | fi |
1d36487c | 2220 | |
ba4481b5 | 2221 | |
edfda783 | 2222 | # Check whether --with-ns was given. |
bf89cb4d | 2223 | if test "${with_ns+set}" = set; then |
edfda783 AR |
2224 | withval=$with_ns; |
2225 | else | |
2226 | with_ns=no | |
2227 | fi | |
2228 | ||
2229 | ||
c8467c40 GM |
2230 | |
2231 | # Check whether --with-gpm was given. | |
bf89cb4d | 2232 | if test "${with_gpm+set}" = set; then |
c8467c40 GM |
2233 | withval=$with_gpm; |
2234 | else | |
2235 | with_gpm=yes | |
ca81d7a0 | 2236 | fi |
e0f712ba | 2237 | |
49adb60f | 2238 | |
131e4133 | 2239 | # Check whether --with-dbus was given. |
bf89cb4d | 2240 | if test "${with_dbus+set}" = set; then |
131e4133 | 2241 | withval=$with_dbus; |
00b9c927 | 2242 | else |
b5a922de | 2243 | with_dbus=yes |
131e4133 MA |
2244 | fi |
2245 | ||
2246 | ||
637fa988 | 2247 | # Check whether --with-gconf was given. |
bf89cb4d | 2248 | if test "${with_gconf+set}" = set; then |
637fa988 JD |
2249 | withval=$with_gconf; |
2250 | else | |
2251 | with_gconf=yes | |
2252 | fi | |
2253 | ||
2254 | ||
921fbdf0 GM |
2255 | ## For the times when you want to build Emacs but don't have |
2256 | ## a suitable makeinfo, and can live without the manuals. | |
2257 | ||
2258 | # Check whether --with-makeinfo was given. | |
bf89cb4d | 2259 | if test "${with_makeinfo+set}" = set; then |
921fbdf0 GM |
2260 | withval=$with_makeinfo; |
2261 | else | |
2262 | with_makeinfo=yes | |
2263 | fi | |
2264 | ||
2265 | ||
e70b2110 | 2266 | |
9d2818d6 | 2267 | # Check whether --with-gtk was given. |
bf89cb4d GM |
2268 | if test "${with_gtk+set}" = set; then |
2269 | withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to | |
2270 | specify a toolkit." >&5 | |
2271 | $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to | |
2272 | specify a toolkit." >&2;} | |
2273 | { (exit 1); exit 1; }; } | |
9d2818d6 DN |
2274 | fi |
2275 | ||
2276 | ||
2277 | ||
2278 | # Check whether --with-gcc was given. | |
bf89cb4d GM |
2279 | if test "${with_gcc+set}" = set; then |
2280 | withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment | |
2281 | variable to specify a compiler." >&5 | |
2282 | $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment | |
2283 | variable to specify a compiler." >&2;} | |
2284 | { (exit 1); exit 1; }; } | |
9d2818d6 DN |
2285 | fi |
2286 | ||
2287 | ||
2288 | ||
00b9c927 | 2289 | # Check whether --with-pkg-config-prog was given. |
bf89cb4d | 2290 | if test "${with_pkg_config_prog+set}" = set; then |
00b9c927 | 2291 | withval=$with_pkg_config_prog; |
e70b2110 KH |
2292 | fi |
2293 | ||
00b9c927 MO |
2294 | if test "X${with_pkg_config_prog}" != X; then |
2295 | if test "${with_pkg_config_prog}" != yes; then | |
2296 | PKG_CONFIG="${with_pkg_config_prog}" | |
2297 | fi | |
2298 | fi | |
e70b2110 | 2299 | |
ecd43cb9 GM |
2300 | |
2301 | # Check whether --with-gnustep-conf was given. | |
bf89cb4d | 2302 | if test "${with_gnustep_conf+set}" = set; then |
ecd43cb9 GM |
2303 | withval=$with_gnustep_conf; |
2304 | fi | |
2305 | ||
2306 | test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \ | |
2307 | GNUSTEP_CONFIG_FILE="${with_gnustep_conf}" | |
2308 | test "X$GNUSTEP_CONFIG_FILE" = "X" && \ | |
2309 | GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf | |
2310 | ||
06b62770 | 2311 | # Check whether --enable-ns-self-contained was given. |
bf89cb4d | 2312 | if test "${enable_ns_self_contained+set}" = set; then |
6b8bc489 | 2313 | enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval |
06b62770 AR |
2314 | else |
2315 | EN_NS_SELF_CONTAINED=yes | |
2316 | fi | |
2317 | ||
2318 | ||
c24fa7dc | 2319 | # Check whether --enable-asserts was given. |
bf89cb4d | 2320 | if test "${enable_asserts+set}" = set; then |
ca81d7a0 | 2321 | enableval=$enable_asserts; USE_XASSERTS=$enableval |
d0098f13 JD |
2322 | else |
2323 | USE_XASSERTS=no | |
ca81d7a0 | 2324 | fi |
8eeae1c9 | 2325 | |
d0098f13 | 2326 | |
ca81d7a0 | 2327 | # Check whether --enable-maintainer-mode was given. |
bf89cb4d | 2328 | if test "${enable_maintainer_mode+set}" = set; then |
ca81d7a0 | 2329 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
19650fd6 AS |
2330 | else |
2331 | USE_MAINTAINER_MODE=no | |
ca81d7a0 JD |
2332 | fi |
2333 | ||
19650fd6 AS |
2334 | if test $USE_MAINTAINER_MODE = yes; then |
2335 | MAINT= | |
2336 | else | |
2337 | MAINT=# | |
2338 | fi | |
2339 | ||
2340 | ||
ca81d7a0 | 2341 | # Check whether --enable-locallisppath was given. |
bf89cb4d | 2342 | if test "${enable_locallisppath+set}" = set; then |
ca81d7a0 | 2343 | enableval=$enable_locallisppath; if test "${enableval}" = "no"; then |
9adfabc2 LK |
2344 | locallisppath= |
2345 | elif test "${enableval}" != "yes"; then | |
2346 | locallisppath=${enableval} | |
2347 | fi | |
ca81d7a0 JD |
2348 | fi |
2349 | ||
9adfabc2 | 2350 | |
29771094 | 2351 | # Check whether --enable-checking was given. |
bf89cb4d | 2352 | if test "${enable_checking+set}" = set; then |
29771094 DN |
2353 | enableval=$enable_checking; ac_checking_flags="${enableval}" |
2354 | fi | |
2355 | ||
2356 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," | |
2357 | for check in $ac_checking_flags | |
2358 | do | |
2359 | case $check in | |
2360 | # these set all the flags to specific states | |
2361 | yes) ac_enable_checking=1 ;; | |
2362 | no) ac_enable_checking= ; | |
2363 | ac_gc_check_stringbytes= ; | |
2364 | ac_gc_check_string_overrun= ; | |
2365 | ac_gc_check_string_free_list= ; | |
2366 | ac_xmalloc_overrun= ; | |
2367 | ac_gc_check_cons_list= ;; | |
2368 | all) ac_enable_checking=1 ; | |
2369 | ac_gc_check_stringbytes=1 ; | |
2370 | ac_gc_check_string_overrun=1 ; | |
2371 | ac_gc_check_string_free_list=1 ; | |
2372 | ac_xmalloc_overrun=1 ; | |
2373 | ac_gc_check_cons_list=1 ;; | |
2374 | # these enable particular checks | |
2375 | stringbytes) ac_gc_check_stringbytes=1 ;; | |
2376 | stringoverrun) ac_gc_check_string_overrun=1 ;; | |
2377 | stringfreelist) ac_gc_check_string_free_list=1 ;; | |
2378 | xmallocoverrun) ac_xmalloc_overrun=1 ;; | |
2379 | conslist) ac_gc_check_cons_list=1 ;; | |
bf89cb4d GM |
2380 | *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5 |
2381 | $as_echo "$as_me: error: unknown check category $check" >&2;} | |
2382 | { (exit 1); exit 1; }; } ;; | |
29771094 DN |
2383 | esac |
2384 | done | |
2385 | IFS="$ac_save_IFS" | |
2386 | ||
2387 | if test x$ac_enable_checking != x ; then | |
2388 | ||
bf89cb4d GM |
2389 | cat >>confdefs.h <<\_ACEOF |
2390 | #define ENABLE_CHECKING 1 | |
2391 | _ACEOF | |
29771094 DN |
2392 | |
2393 | fi | |
2394 | if test x$ac_gc_check_stringbytes != x ; then | |
2395 | ||
bf89cb4d GM |
2396 | cat >>confdefs.h <<\_ACEOF |
2397 | #define GC_CHECK_STRING_BYTES 1 | |
2398 | _ACEOF | |
29771094 DN |
2399 | |
2400 | fi | |
2401 | if test x$ac_gc_check_stringoverrun != x ; then | |
2402 | ||
bf89cb4d GM |
2403 | cat >>confdefs.h <<\_ACEOF |
2404 | #define GC_CHECK_STRING_OVERRUN 1 | |
2405 | _ACEOF | |
29771094 DN |
2406 | |
2407 | fi | |
2408 | if test x$ac_gc_check_string_free_list != x ; then | |
2409 | ||
bf89cb4d GM |
2410 | cat >>confdefs.h <<\_ACEOF |
2411 | #define GC_CHECK_STRING_FREE_LIST 1 | |
2412 | _ACEOF | |
29771094 DN |
2413 | |
2414 | fi | |
2415 | if test x$ac_xmalloc_overrun != x ; then | |
2416 | ||
bf89cb4d GM |
2417 | cat >>confdefs.h <<\_ACEOF |
2418 | #define XMALLOC_OVERRUN_CHECK 1 | |
2419 | _ACEOF | |
29771094 DN |
2420 | |
2421 | fi | |
2422 | if test x$ac_gc_check_cons_list != x ; then | |
2423 | ||
bf89cb4d GM |
2424 | cat >>confdefs.h <<\_ACEOF |
2425 | #define GC_CHECK_CONS_LIST 1 | |
2426 | _ACEOF | |
29771094 DN |
2427 | |
2428 | fi | |
2429 | ||
9fe40f0e | 2430 | # Check whether --enable-profiling was given. |
bf89cb4d | 2431 | if test "${enable_profiling+set}" = set; then |
9fe40f0e DN |
2432 | enableval=$enable_profiling; ac_enable_profiling="${enableval}" |
2433 | fi | |
2434 | ||
2435 | if test x$ac_enable_profiling != x ; then | |
2436 | PROFILING_CFLAGS="-DPROFILING=1 -pg" | |
2437 | PROFILING_LDFLAGS="-pg" | |
2438 | else | |
2439 | PROFILING_CFLAGS= | |
2440 | PROFILING_LDFLAGS= | |
2441 | fi | |
2442 | ||
a53cfbe5 | 2443 | # Check whether --enable-autodepend was given. |
bf89cb4d | 2444 | if test "${enable_autodepend+set}" = set; then |
a53cfbe5 JD |
2445 | enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" |
2446 | else | |
2447 | ac_enable_autodepend=yes | |
2448 | fi | |
2449 | ||
2450 | ||
ba4481b5 | 2451 | #### Make srcdir absolute, if it isn't already. It's important to |
17494071 | 2452 | #### avoid running the path through pwd unnecessarily, since pwd can |
ba4481b5 DL |
2453 | #### give you automounter prefixes, which can go away. We do all this |
2454 | #### so Emacs can find its files when run uninstalled. | |
17494071 GM |
2455 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
2456 | unset CDPATH | |
ba4481b5 DL |
2457 | case "${srcdir}" in |
2458 | /* ) ;; | |
2459 | . ) | |
2460 | ## We may be able to use the $PWD environment variable to make this | |
2461 | ## absolute. But sometimes PWD is inaccurate. | |
df645f7c AS |
2462 | ## Note: we used to use ${PWD} at the end instead of `pwd`, |
2463 | ## but that tested only for a well-formed and valid PWD, | |
2464 | ## it did not object when PWD was well-formed and valid but just wrong. | |
2465 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
ba4481b5 DL |
2466 | then |
2467 | srcdir="$PWD" | |
2468 | else | |
2469 | srcdir="`(cd ${srcdir}; pwd)`" | |
2470 | fi | |
2471 | ;; | |
2472 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
2473 | esac | |
2474 | ||
2475 | #### Check if the source directory already has a configured system in it. | |
2476 | if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
2477 | && test -f "${srcdir}/src/config.h" ; then | |
bf89cb4d | 2478 | { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used |
503d2be0 AS |
2479 | as a build directory right now; it has been configured in its own |
2480 | right. To configure in another directory as well, you MUST | |
2481 | use GNU make. If you do not have GNU make, then you must | |
2482 | now do \`make distclean' in ${srcdir}, | |
2483 | and then run $0 again." >&5 | |
e9a63f04 | 2484 | $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used |
ba4481b5 DL |
2485 | as a build directory right now; it has been configured in its own |
2486 | right. To configure in another directory as well, you MUST | |
2487 | use GNU make. If you do not have GNU make, then you must | |
2488 | now do \`make distclean' in ${srcdir}, | |
503d2be0 | 2489 | and then run $0 again." >&2;} |
ba4481b5 DL |
2490 | fi |
2491 | ||
2492 | #### Given the configuration name, set machfile and opsysfile to the | |
2493 | #### names of the m/*.h and s/*.h files we should use. | |
2494 | ||
2495 | ### Canonicalize the configuration name. | |
2496 | ||
2497 | ac_aux_dir= | |
ca81d7a0 | 2498 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
bf89cb4d GM |
2499 | if test -f "$ac_dir/install-sh"; then |
2500 | ac_aux_dir=$ac_dir | |
2501 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2502 | break | |
2503 | elif test -f "$ac_dir/install.sh"; then | |
2504 | ac_aux_dir=$ac_dir | |
2505 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2506 | break | |
2507 | elif test -f "$ac_dir/shtool"; then | |
2508 | ac_aux_dir=$ac_dir | |
2509 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2510 | break | |
2511 | fi | |
ba4481b5 DL |
2512 | done |
2513 | if test -z "$ac_aux_dir"; then | |
bf89cb4d GM |
2514 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2515 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
2516 | { (exit 1); exit 1; }; } | |
ba4481b5 | 2517 | fi |
ca81d7a0 JD |
2518 | |
2519 | # These three variables are undocumented and unsupported, | |
2520 | # and are intended to be withdrawn in a future Autoconf release. | |
2521 | # They can cause serious problems if a builder's source tree is in a directory | |
2522 | # whose full name contains unusual characters. | |
2523 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2524 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2525 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2526 | ||
ba4481b5 DL |
2527 | |
2528 | # Make sure we can run config.sub. | |
ca81d7a0 | 2529 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
bf89cb4d GM |
2530 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2531 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
2532 | { (exit 1); exit 1; }; } | |
503d2be0 | 2533 | |
bf89cb4d | 2534 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
e9a63f04 | 2535 | $as_echo_n "checking build system type... " >&6; } |
bf89cb4d | 2536 | if test "${ac_cv_build+set}" = set; then |
e9a63f04 | 2537 | $as_echo_n "(cached) " >&6 |
503d2be0 | 2538 | else |
ca81d7a0 JD |
2539 | ac_build_alias=$build_alias |
2540 | test "x$ac_build_alias" = x && | |
2541 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2542 | test "x$ac_build_alias" = x && | |
bf89cb4d GM |
2543 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2544 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2545 | { (exit 1); exit 1; }; } | |
ca81d7a0 | 2546 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
bf89cb4d GM |
2547 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2548 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
2549 | { (exit 1); exit 1; }; } | |
503d2be0 AS |
2550 | |
2551 | fi | |
bf89cb4d | 2552 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
e9a63f04 | 2553 | $as_echo "$ac_cv_build" >&6; } |
ca81d7a0 JD |
2554 | case $ac_cv_build in |
2555 | *-*-*) ;; | |
bf89cb4d GM |
2556 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2557 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
2558 | { (exit 1); exit 1; }; };; | |
ca81d7a0 | 2559 | esac |
503d2be0 | 2560 | build=$ac_cv_build |
ca81d7a0 JD |
2561 | ac_save_IFS=$IFS; IFS='-' |
2562 | set x $ac_cv_build | |
2563 | shift | |
2564 | build_cpu=$1 | |
2565 | build_vendor=$2 | |
2566 | shift; shift | |
2567 | # Remember, the first character of IFS is used to create $*, | |
2568 | # except with old shells: | |
2569 | build_os=$* | |
2570 | IFS=$ac_save_IFS | |
2571 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2572 | ||
2573 | ||
bf89cb4d | 2574 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
e9a63f04 | 2575 | $as_echo_n "checking host system type... " >&6; } |
bf89cb4d | 2576 | if test "${ac_cv_host+set}" = set; then |
e9a63f04 | 2577 | $as_echo_n "(cached) " >&6 |
503d2be0 | 2578 | else |
ca81d7a0 JD |
2579 | if test "x$host_alias" = x; then |
2580 | ac_cv_host=$ac_cv_build | |
2581 | else | |
2582 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
bf89cb4d GM |
2583 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2584 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
2585 | { (exit 1); exit 1; }; } | |
ca81d7a0 | 2586 | fi |
503d2be0 AS |
2587 | |
2588 | fi | |
bf89cb4d | 2589 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
e9a63f04 | 2590 | $as_echo "$ac_cv_host" >&6; } |
ca81d7a0 JD |
2591 | case $ac_cv_host in |
2592 | *-*-*) ;; | |
bf89cb4d GM |
2593 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2594 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
2595 | { (exit 1); exit 1; }; };; | |
ca81d7a0 | 2596 | esac |
503d2be0 | 2597 | host=$ac_cv_host |
ca81d7a0 JD |
2598 | ac_save_IFS=$IFS; IFS='-' |
2599 | set x $ac_cv_host | |
2600 | shift | |
2601 | host_cpu=$1 | |
2602 | host_vendor=$2 | |
2603 | shift; shift | |
2604 | # Remember, the first character of IFS is used to create $*, | |
2605 | # except with old shells: | |
2606 | host_os=$* | |
2607 | IFS=$ac_save_IFS | |
2608 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ba4481b5 | 2609 | |
c0d27fcc | 2610 | |
ba4481b5 | 2611 | canonical=$host |
1770dcdc | 2612 | configuration=${host_alias-${build_alias-$host}} |
ba4481b5 | 2613 | |
c0d27fcc | 2614 | |
22044edf | 2615 | |
ba4481b5 DL |
2616 | ### If you add support for a new configuration, add code to this |
2617 | ### switch statement to recognize your configuration name and select | |
2618 | ### the appropriate operating system and machine description files. | |
2619 | ||
2620 | ### You would hope that you could choose an m/*.h file pretty much | |
2621 | ### based on the machine portion of the configuration name, and an s- | |
2622 | ### file based on the operating system portion. However, it turns out | |
2623 | ### that each m/*.h file is pretty manufacturer-specific - for | |
f2a77c3a DN |
2624 | ### example mips.h is MIPS |
2625 | ### So we basically have to have a special case for each | |
ba4481b5 DL |
2626 | ### configuration name. |
2627 | ### | |
2628 | ### As far as handling version numbers on operating systems is | |
2629 | ### concerned, make sure things will fail in a fixable way. If | |
2630 | ### /etc/MACHINES doesn't say anything about version numbers, be | |
2631 | ### prepared to handle anything reasonably. If version numbers | |
2632 | ### matter, be sure /etc/MACHINES says something about it. | |
2633 | ### | |
2634 | ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
2635 | ### "System V Release 4"; he writes, "The old convention encouraged | |
2636 | ### confusion between `system' and `release' levels'." | |
2637 | ||
2638 | machine='' opsys='' unported=no | |
2639 | case "${canonical}" in | |
2640 | ||
1096bcc0 | 2641 | ## FreeBSD ports |
6b0273cd | 2642 | *-*-freebsd* ) |
1096bcc0 GM |
2643 | opsys=freebsd |
2644 | case "${canonical}" in | |
2645 | alpha*-*-freebsd*) machine=alpha ;; | |
ece58427 | 2646 | arm*-*-freebsd*) machine=arm ;; |
ec8fcb10 | 2647 | ia64-*-freebsd*) machine=ia64 ;; |
ff1095d1 | 2648 | sparc-*-freebsd*) machine=sparc ;; |
ec8fcb10 YM |
2649 | sparc64-*-freebsd*) machine=sparc ;; |
2650 | powerpc-*-freebsd*) machine=macppc ;; | |
1096bcc0 | 2651 | i[3456]86-*-freebsd*) machine=intel386 ;; |
6b0273cd | 2652 | amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;; |
1096bcc0 GM |
2653 | esac |
2654 | ;; | |
2655 | ||
1b275743 GM |
2656 | ## FreeBSD kernel + glibc based userland |
2657 | *-*-kfreebsd*gnu* ) | |
2658 | opsys=gnu-kfreebsd | |
2659 | case "${canonical}" in | |
2660 | alpha*-*-kfreebsd*) machine=alpha ;; | |
2661 | ia64-*-kfreebsd*) machine=ia64 ;; | |
edfda783 | 2662 | sparc-*-kfreebsd*) machine=sparc ;; |
1b275743 GM |
2663 | sparc64-*-kfreebsd*) machine=sparc ;; |
2664 | powerpc-*-kfreebsd*) machine=macppc ;; | |
2665 | i[3456]86-*-kfreebsd*) machine=intel386 ;; | |
2666 | amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;; | |
2667 | esac | |
2668 | ;; | |
2669 | ||
ba4481b5 DL |
2670 | ## NetBSD ports |
2671 | *-*-netbsd* ) | |
2672 | opsys=netbsd | |
dd038e26 | 2673 | if test -f /usr/lib/crti.o; then |
f57bd967 | 2674 | |
bf89cb4d GM |
2675 | cat >>confdefs.h <<\_ACEOF |
2676 | #define HAVE_CRTIN /**/ | |
2677 | _ACEOF | |
dd038e26 AS |
2678 | |
2679 | fi | |
2680 | ||
ba4481b5 DL |
2681 | case "${canonical}" in |
2682 | alpha*-*-netbsd*) machine=alpha ;; | |
2683 | i[3456]86-*-netbsd*) machine=intel386 ;; | |
6978862d DN |
2684 | mips-*-netbsd*) machine=mips ;; |
2685 | mipsel-*-netbsd*) machine=mips ;; | |
2686 | mipseb-*-netbsd*) machine=mips ;; | |
3a64eef5 | 2687 | powerpc-*-netbsd*) machine=macppc ;; |
71c9ec51 | 2688 | sparc*-*-netbsd*) machine=sparc ;; |
ba4481b5 | 2689 | vax-*-netbsd*) machine=vax ;; |
2df636f4 | 2690 | arm-*-netbsd*) machine=arm ;; |
d54ee7b4 EZ |
2691 | x86_64-*-netbsd*) machine=amdx86-64 ;; |
2692 | hppa-*-netbsd*) machine=hp800 ;; | |
a078d6e5 | 2693 | m68k-*-netbsd*) machine=m68k ;; |
ba4481b5 DL |
2694 | esac |
2695 | ;; | |
2696 | ||
2697 | ## OpenBSD ports | |
2698 | *-*-openbsd* ) | |
2699 | opsys=openbsd | |
2700 | case "${canonical}" in | |
2701 | alpha*-*-openbsd*) machine=alpha ;; | |
85410b02 | 2702 | arm-*-openbsd*) machine=arm ;; |
85410b02 | 2703 | i386-*-openbsd*) machine=intel386 ;; |
85410b02 | 2704 | powerpc-*-openbsd*) machine=macppc ;; |
85410b02 CY |
2705 | sparc*-*-openbsd*) machine=sparc ;; |
2706 | vax-*-openbsd*) machine=vax ;; | |
2707 | x86_64-*-openbsd*) machine=amdx86-64 ;; | |
8bff6137 | 2708 | hppa-*-openbsd*) machine=hp800 ;; |
ba4481b5 DL |
2709 | esac |
2710 | ;; | |
2711 | ||
10a3b1a1 EZ |
2712 | ## LynxOS ports |
2713 | *-*-lynxos* ) | |
2714 | opsys=lynxos | |
2715 | case "${canonical}" in | |
2716 | i[3456]86-*-lynxos*) machine=intel386 ;; | |
2717 | powerpc-*-lynxos*) machine=powerpc ;; | |
2718 | esac | |
2719 | ;; | |
2720 | ||
ba4481b5 DL |
2721 | alpha*-*-linux-gnu* ) |
2722 | machine=alpha opsys=gnu-linux | |
2723 | ;; | |
2724 | ||
c4bb2108 DL |
2725 | arm*-*-linux-gnu* ) |
2726 | machine=arm opsys=gnu-linux | |
2727 | ;; | |
2728 | ||
040c474e CY |
2729 | ## Apple Darwin / Mac OS X |
2730 | *-apple-darwin* ) | |
2731 | case "${canonical}" in | |
2732 | i[3456]86-* ) machine=intel386 ;; | |
40dde9d1 | 2733 | powerpc-* ) machine=macppc ;; |
91231421 | 2734 | x86_64-* ) machine=amdx86-64 ;; |
040c474e CY |
2735 | * ) unported=yes ;; |
2736 | esac | |
2737 | opsys=darwin | |
2738 | # Define CPP as follows to make autoconf work correctly. | |
2739 | CPP="${CC-cc} -E -no-cpp-precomp" | |
2740 | # Use fink packages if available. | |
2741 | if test -d /sw/include && test -d /sw/lib; then | |
2742 | GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" | |
2743 | CPP="${CPP} ${GCC_TEST_OPTIONS}" | |
2744 | NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} | |
2745 | fi | |
2746 | ;; | |
2747 | ||
6fbb6db1 | 2748 | ## HP 9000 series 700 and 800, running HP/UX |
6fbb6db1 GM |
2749 | hppa*-hp-hpux10.2* ) |
2750 | machine=hp800 opsys=hpux10-20 | |
2751 | ;; | |
6fbb6db1 GM |
2752 | hppa*-hp-hpux1[1-9]* ) |
2753 | machine=hp800 opsys=hpux11 | |
2754 | CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS" | |
2755 | ;; | |
2756 | ||
409d9577 GM |
2757 | hppa*-*-linux-gnu* ) |
2758 | machine=hp800 opsys=gnu-linux | |
2759 | ;; | |
2760 | ||
ba4481b5 | 2761 | ## IBM machines |
55597d70 | 2762 | s390-*-linux-gnu* ) |
138f0859 GM |
2763 | machine=ibms390 opsys=gnu-linux |
2764 | ;; | |
bcdb1378 EZ |
2765 | s390x-*-linux-gnu* ) |
2766 | machine=ibms390x opsys=gnu-linux | |
2767 | ;; | |
ba4481b5 DL |
2768 | rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) |
2769 | machine=ibmrs6000 opsys=aix4-2 | |
2770 | ;; | |
67bf991b CY |
2771 | rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* ) |
2772 | machine=ibmrs6000 opsys=aix4-2 | |
2773 | ;; | |
55597d70 | 2774 | rs6000-ibm-aix5* | powerpc-ibm-aix5* ) |
d6b82250 EZ |
2775 | machine=ibmrs6000 opsys=aix4-2 |
2776 | ;; | |
1e447232 | 2777 | rs6000-ibm-aix6* | powerpc-ibm-aix6* ) |
26a42dac DN |
2778 | machine=ibmrs6000 opsys=aix4-2 |
2779 | ;; | |
ba4481b5 | 2780 | |
c76e04a8 GM |
2781 | ## Macintosh PowerPC |
2782 | powerpc*-*-linux-gnu* ) | |
2783 | machine=macppc opsys=gnu-linux | |
2784 | ;; | |
2785 | ||
ba4481b5 | 2786 | ## Silicon Graphics machines |
ba4481b5 | 2787 | ## Iris 4D |
ba4481b5 DL |
2788 | mips-sgi-irix6.5 ) |
2789 | machine=iris4d opsys=irix6-5 | |
946173ad DL |
2790 | # Without defining _LANGUAGE_C, things get masked out in the headers |
2791 | # so that, for instance, grepping for `free' in stdlib.h fails and | |
2792 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
2793 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2794 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
ba4481b5 | 2795 | ;; |
ba4481b5 | 2796 | |
ba4481b5 DL |
2797 | ## Suns |
2798 | sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
2799 | machine=sparc opsys=gnu-linux | |
2800 | ;; | |
2801 | ||
176fe5fc | 2802 | *-sun-solaris* \ |
7c54c0a0 DN |
2803 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \ |
2804 | | x86_64-*-solaris2* | x86_64-*-sunos5* \ | |
2805 | | powerpc*-*-solaris2* | rs6000-*-solaris2*) | |
ba4481b5 | 2806 | case "${canonical}" in |
ba4481b5 | 2807 | i[3456]86-*-* ) machine=intel386 ;; |
af46e133 | 2808 | amd64-*-*|x86_64-*-*) machine=amdx86-64 ;; |
ba4481b5 DL |
2809 | powerpc* | rs6000* ) machine=ibmrs6000 ;; |
2810 | sparc* ) machine=sparc ;; | |
2811 | * ) unported=yes ;; | |
2812 | esac | |
2813 | case "${canonical}" in | |
ba4481b5 DL |
2814 | *-sunos5.3* | *-solaris2.3* ) |
2815 | opsys=sol2-3 | |
2816 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2817 | ;; | |
2818 | *-sunos5.4* | *-solaris2.4* ) | |
2819 | opsys=sol2-4 | |
2820 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2821 | RANLIB="ar -ts" | |
2822 | ;; | |
2823 | *-sunos5.5* | *-solaris2.5* ) | |
2824 | opsys=sol2-5 | |
2825 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2826 | RANLIB="ar -ts" | |
2827 | ;; | |
8e967cf7 MR |
2828 | *-sunos5.6* | *-solaris2.6* ) |
2829 | opsys=sol2-6 | |
2830 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2831 | RANLIB="ar -ts" | |
2832 | ;; | |
2194ea1c | 2833 | *-sunos5.[7-9]* | *-solaris2.[7-9]* ) |
9e71690e | 2834 | opsys=sol2-6 |
089a966d GM |
2835 | emacs_check_sunpro_c=yes |
2836 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
6623890a | 2837 | ;; |
9b3362b8 DN |
2838 | *-sunos5* | *-solaris* ) |
2839 | opsys=sol2-10 | |
2840 | emacs_check_sunpro_c=yes | |
2841 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
ba4481b5 | 2842 | ;; |
ba4481b5 DL |
2843 | esac |
2844 | ## Watch out for a compiler that we know will not work. | |
2845 | case "${canonical}" in | |
2846 | *-solaris* | *-sunos5* ) | |
2847 | if [ "x$CC" = x/usr/ucb/cc ]; then | |
2848 | ## /usr/ucb/cc doesn't work; | |
2849 | ## we should find some other compiler that does work. | |
2850 | unset CC | |
2851 | fi | |
2852 | ;; | |
2853 | *) ;; | |
2854 | esac | |
2855 | ;; | |
ba4481b5 | 2856 | |
f4988be7 GM |
2857 | ## IA-64 |
2858 | ia64*-*-linux* ) | |
2859 | machine=ia64 opsys=gnu-linux | |
2860 | ;; | |
2861 | ||
ba4481b5 DL |
2862 | ## Intel 386 machines where we don't care about the manufacturer |
2863 | i[3456]86-*-* ) | |
2864 | machine=intel386 | |
2865 | case "${canonical}" in | |
c60ee5e7 | 2866 | *-cygwin ) opsys=cygwin ;; |
eae54018 | 2867 | *-darwin* ) opsys=darwin |
23fd4483 ST |
2868 | CPP="${CC-cc} -E -no-cpp-precomp" |
2869 | ;; | |
ba4481b5 | 2870 | *-linux-gnu* ) opsys=gnu-linux ;; |
ba4481b5 | 2871 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
55597d70 DL |
2872 | *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
2873 | *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
ba4481b5 DL |
2874 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. |
2875 | esac | |
2876 | ;; | |
2877 | ||
2878 | ## m68k Linux-based GNU system | |
2879 | m68k-*-linux-gnu* ) | |
2880 | machine=m68k opsys=gnu-linux | |
2881 | ;; | |
2882 | ||
2883 | ## Mips Linux-based GNU system | |
8bff6137 GM |
2884 | mips-*-linux-gnu* | mipsel-*-linux-gnu* \ |
2885 | | mips64-*-linux-gnu* | mips64el-*-linux-gnu* ) | |
ba4481b5 DL |
2886 | machine=mips opsys=gnu-linux |
2887 | ;; | |
2888 | ||
598a2813 AS |
2889 | ## AMD x86-64 Linux-based GNU system |
2890 | x86_64-*-linux-gnu* ) | |
24b01ec4 | 2891 | machine=amdx86-64 opsys=gnu-linux |
598a2813 AS |
2892 | ;; |
2893 | ||
94218e27 | 2894 | ## Tensilica Xtensa Linux-based GNU system |
8dd59f01 | 2895 | xtensa*-*-linux-gnu* ) |
94218e27 DN |
2896 | machine=xtensa opsys=gnu-linux |
2897 | ;; | |
2898 | ||
fac5dc61 DN |
2899 | ## SuperH Linux-based GNU system |
2900 | sh[34]*-*-linux-gnu* ) | |
2901 | machine=sh3 opsys=gnu-linux | |
2902 | ;; | |
2903 | ||
ba4481b5 DL |
2904 | * ) |
2905 | unported=yes | |
2906 | ;; | |
2907 | esac | |
2908 | ||
2909 | ### If the code above didn't choose an operating system, just choose | |
2910 | ### an operating system based on the configuration name. You really | |
2911 | ### only want to use this when you have no idea what the right | |
2912 | ### operating system is; if you know what operating systems a machine | |
2913 | ### runs, it's cleaner to make it explicit in the case statement | |
2914 | ### above. | |
2915 | if test x"${opsys}" = x; then | |
2916 | case "${canonical}" in | |
2917 | *-gnu* ) opsys=gnu ;; | |
ba4481b5 | 2918 | *-sysv4.2uw* ) opsys=unixware ;; |
55597d70 DL |
2919 | *-sysv5uw* ) opsys=unixware ;; |
2920 | *-sysv5OpenUNIX* ) opsys=unixware ;; | |
ba4481b5 DL |
2921 | *-sysv4.1* | *-sysvr4.1* ) |
2922 | NON_GNU_CPP=/usr/lib/cpp | |
2923 | opsys=usg5-4 ;; | |
2924 | *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
2925 | if [ x$NON_GNU_CPP = x ]; then | |
2926 | if [ -f /usr/ccs/lib/cpp ]; then | |
2927 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2928 | else | |
2929 | NON_GNU_CPP=/lib/cpp | |
2930 | fi | |
2931 | fi | |
2932 | opsys=usg5-4-2 ;; | |
2933 | *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
2934 | * ) | |
2935 | unported=yes | |
2936 | ;; | |
2937 | esac | |
2938 | fi | |
2939 | ||
c0d27fcc | 2940 | |
22044edf | 2941 | |
ba4481b5 | 2942 | if test $unported = yes; then |
bf89cb4d GM |
2943 | { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. |
2944 | Check \`etc/MACHINES' for recognized configuration names." >&5 | |
2945 | $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2946 | Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2947 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
2948 | fi |
2949 | ||
2950 | machfile="m/${machine}.h" | |
2951 | opsysfile="s/${opsys}.h" | |
2952 | ||
c0d27fcc | 2953 | |
ba4481b5 DL |
2954 | #### Choose a compiler. |
2955 | test -n "$CC" && cc_specified=yes | |
2956 | ||
2957 | # Save the value of CFLAGS that the user specified. | |
2958 | SPECIFIED_CFLAGS="$CFLAGS" | |
2959 | ||
503d2be0 AS |
2960 | ac_ext=c |
2961 | ac_cpp='$CPP $CPPFLAGS' | |
2962 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2963 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2964 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2965 | if test -n "$ac_tool_prefix"; then | |
2966 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2967 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
bf89cb4d | 2968 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
e9a63f04 | 2969 | $as_echo_n "checking for $ac_word... " >&6; } |
bf89cb4d | 2970 | if test "${ac_cv_prog_CC+set}" = set; then |
e9a63f04 | 2971 | $as_echo_n "(cached) " >&6 |
ba4481b5 DL |
2972 | else |
2973 | if test -n "$CC"; then | |
2974 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2975 | else | |
c0d27fcc MR |
2976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2977 | for as_dir in $PATH | |
2978 | do | |
2979 | IFS=$as_save_IFS | |
2980 | test -z "$as_dir" && as_dir=. | |
bf89cb4d | 2981 | for ac_exec_ext in '' $ac_executable_extensions; do |
f053c89f | 2982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc | 2983 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
bf89cb4d | 2984 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c0d27fcc MR |
2985 | break 2 |
2986 | fi | |
2987 | done | |
bf89cb4d | 2988 | done |
ca81d7a0 | 2989 | IFS=$as_save_IFS |
503d2be0 | 2990 | |
ba4481b5 DL |
2991 | fi |
2992 | fi | |
503d2be0 | 2993 | CC=$ac_cv_prog_CC |
ba4481b5 | 2994 | if test -n "$CC"; then |
bf89cb4d | 2995 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
e9a63f04 | 2996 | $as_echo "$CC" >&6; } |
503d2be0 | 2997 | else |
bf89cb4d | 2998 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
e9a63f04 | 2999 | $as_echo "no" >&6; } |
503d2be0 AS |
3000 | fi |
3001 | ||
ca81d7a0 | 3002 | |
503d2be0 AS |
3003 | fi |
3004 | if test -z "$ac_cv_prog_CC"; then | |
3005 | ac_ct_CC=$CC | |
3006 | # Extract the first word of "gcc", so it can be a program name with args. | |
3007 | set dummy gcc; ac_word=$2 | |
bf89cb4d | 3008 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
e9a63f04 | 3009 | $as_echo_n "checking for $ac_word... " >&6; } |
bf89cb4d | 3010 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
e9a63f04 | 3011 | $as_echo_n "(cached) " >&6 |
503d2be0 AS |
3012 | else |
3013 | if test -n "$ac_ct_CC"; then | |
3014 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3015 | else | |
c0d27fcc MR |
3016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3017 | for as_dir in $PATH | |
3018 | do | |
3019 | IFS=$as_save_IFS | |
3020 | test -z "$as_dir" && as_dir=. | |
bf89cb4d | 3021 | for ac_exec_ext in '' $ac_executable_extensions; do |
f053c89f | 3022 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc | 3023 | ac_cv_prog_ac_ct_CC="gcc" |
bf89cb4d | 3024 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c0d27fcc MR |
3025 | break 2 |
3026 | fi | |
3027 | done | |
bf89cb4d | 3028 | done |
ca81d7a0 | 3029 | IFS=$as_save_IFS |
503d2be0 AS |
3030 | |
3031 | fi | |
3032 | fi | |
3033 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3034 | if test -n "$ac_ct_CC"; then | |
bf89cb4d | 3035 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
e9a63f04 | 3036 | $as_echo "$ac_ct_CC" >&6; } |
ba4481b5 | 3037 | else |
bf89cb4d | 3038 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
e9a63f04 | 3039 | $as_echo "no" >&6; } |
503d2be0 AS |
3040 | fi |
3041 | ||
ca81d7a0 JD |
3042 | if test "x$ac_ct_CC" = x; then |
3043 | CC="" | |
3044 | else | |
3045 | case $cross_compiling:$ac_tool_warned in | |
3046 | yes:) | |
bf89cb4d GM |
3047 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
3048 | whose name does not start with the host triplet. If you think this | |
3049 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3050 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3051 | whose name does not start with the host triplet. If you think this | |
3052 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
ca81d7a0 JD |
3053 | ac_tool_warned=yes ;; |
3054 | esac | |
3055 | CC=$ac_ct_CC | |
3056 | fi | |
503d2be0 AS |
3057 | else |
3058 | CC="$ac_cv_prog_CC" | |
ba4481b5 DL |
3059 | fi |
3060 | ||
3061 | if test -z "$CC"; then | |
ca81d7a0 JD |
3062 | if test -n "$ac_tool_prefix"; then |
3063 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
503d2be0 | 3064 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
bf89cb4d | 3065 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
e9a63f04 | 3066 | $as_echo_n "checking for $ac_word... " >&6; } |
bf89cb4d | 3067 | if test "${ac_cv_prog_CC+set}" = set; then |
e9a63f04 | 3068 | $as_echo_n "(cached) " >&6 |
ba4481b5 DL |
3069 | else |
3070 | if test -n "$CC"; then | |
3071 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3072 | else | |
c0d27fcc MR |
3073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3074 | for as_dir in $PATH | |
3075 | do | |
3076 | IFS=$as_save_IFS | |
3077 | test -z "$as_dir" && as_dir=. | |
bf89cb4d | 3078 | for ac_exec_ext in '' $ac_executable_extensions; do |
f053c89f | 3079 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc | 3080 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
bf89cb4d | 3081 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c0d27fcc MR |
3082 | break 2 |
3083 | fi | |
3084 | done | |
bf89cb4d | 3085 | done |
ca81d7a0 | 3086 | IFS=$as_save_IFS |
503d2be0 AS |
3087 | |
3088 | fi | |
3089 | fi | |
3090 | CC=$ac_cv_prog_CC | |
3091 | if test -n "$CC"; then | |
bf89cb4d | 3092 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
e9a63f04 | 3093 | $as_echo "$CC" >&6; } |
503d2be0 | 3094 | else |
bf89cb4d | 3095 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
e9a63f04 | 3096 | $as_echo "no" >&6; } |
503d2be0 AS |
3097 | fi |
3098 | ||
503d2be0 | 3099 | |
ca81d7a0 | 3100 | fi |
503d2be0 AS |
3101 | fi |
3102 | if test -z "$CC"; then | |
3103 | # Extract the first word of "cc", so it can be a program name with args. | |
3104 | set dummy cc; ac_word=$2 | |
bf89cb4d | 3105 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
e9a63f04 | 3106 | $as_echo_n "checking for $ac_word... " >&6; } |
bf89cb4d | 3107 | if test "${ac_cv_prog_CC+set}" = set; then |
e9a63f04 | 3108 | $as_echo_n "(cached) " >&6 |
503d2be0 AS |
3109 | else |
3110 | if test -n "$CC"; then | |
3111 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3112 | else | |
3113 | ac_prog_rejected=no | |
c0d27fcc MR |
3114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3115 | for as_dir in $PATH | |
3116 | do | |
3117 | IFS=$as_save_IFS | |
3118 | test -z "$as_dir" && as_dir=. | |
bf89cb4d | 3119 | for ac_exec_ext in '' $ac_executable_extensions; do |
f053c89f | 3120 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3121 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3122 | ac_prog_rejected=yes | |
3123 | continue | |
3124 | fi | |
3125 | ac_cv_prog_CC="cc" | |
bf89cb4d | 3126 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c0d27fcc MR |
3127 | break 2 |
3128 | fi | |
3129 | done | |
bf89cb4d | 3130 | done |
ca81d7a0 | 3131 | IFS=$as_save_IFS |
503d2be0 | 3132 | |
ba4481b5 DL |
3133 | if test $ac_prog_rejected = yes; then |
3134 | # We found a bogon in the path, so make sure we never use it. | |
3135 | set dummy $ac_cv_prog_CC | |
3136 | shift | |
503d2be0 | 3137 | if test $# != 0; then |
ba4481b5 DL |
3138 | # We chose a different compiler from the bogus one. |
3139 | # However, it has the same basename, so the bogon will be chosen | |
3140 | # first if we set CC to just the basename; use the full file name. | |
3141 | shift | |
6bae0ccf | 3142 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
ba4481b5 DL |
3143 | fi |
3144 | fi | |
3145 | fi | |
3146 | fi | |
503d2be0 | 3147 | CC=$ac_cv_prog_CC |
ba4481b5 | 3148 | if test -n "$CC"; then |
bf89cb4d | 3149 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
e9a63f04 | 3150 | $as_echo "$CC" >&6; } |
ba4481b5 | 3151 | else |
bf89cb4d | 3152 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
e9a63f04 | 3153 | $as_echo "no" >&6; } |
ba4481b5 DL |
3154 | fi |
3155 | ||
ca81d7a0 | 3156 | |
503d2be0 AS |
3157 | fi |
3158 | if test -z "$CC"; then | |
3159 | if test -n "$ac_tool_prefix"; then | |
ca81d7a0 | 3160 | for ac_prog in cl.exe |
503d2be0 AS |
3161 | do |
3162 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3163 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
bf89cb4d | 3164 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
e9a63f04 | 3165 | $as_echo_n "checking for $ac_word... " >&6; } |
bf89cb4d | 3166 | if test "${ac_cv_prog_CC+set}" = set; then |
e9a63f04 | 3167 | $as_echo_n "(cached) " >&6 |
c4bb2108 DL |
3168 | else |
3169 | if test -n "$CC"; then | |
3170 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3171 | else | |
c0d27fcc MR |
3172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3173 | for as_dir in $PATH | |
3174 | do | |
3175 | IFS=$as_save_IFS | |
3176 | test -z "$as_dir" && as_dir=. | |
bf89cb4d | 3177 | for ac_exec_ext in '' $ac_executable_extensions; do |
f053c89f | 3178 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc | 3179 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
bf89cb4d | 3180 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c0d27fcc MR |
3181 | break 2 |
3182 | fi | |
3183 | done | |
bf89cb4d | 3184 | done |
ca81d7a0 | 3185 | IFS=$as_save_IFS |
503d2be0 | 3186 | |
c4bb2108 DL |
3187 | fi |
3188 | fi | |
503d2be0 | 3189 | CC=$ac_cv_prog_CC |
c4bb2108 | 3190 | if test -n "$CC"; then |
bf89cb4d | 3191 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
e9a63f04 | 3192 | $as_echo "$CC" >&6; } |
c4bb2108 | 3193 | else |
bf89cb4d | 3194 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
e9a63f04 | 3195 | $as_echo "no" >&6; } |
503d2be0 AS |
3196 | fi |
3197 | ||
ca81d7a0 | 3198 | |
503d2be0 AS |
3199 | test -n "$CC" && break |
3200 | done | |
3201 | fi | |
3202 | if test -z "$CC"; then | |
3203 | ac_ct_CC=$CC | |
ca81d7a0 | 3204 | for ac_prog in cl.exe |
503d2be0 AS |
3205 | do |
3206 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3207 | set dummy $ac_prog; ac_word=$2 | |
bf89cb4d | 3208 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
e9a63f04 | 3209 | $as_echo_n "checking for $ac_word... " >&6; } |
bf89cb4d | 3210 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
e9a63f04 | 3211 | $as_echo_n "(cached) " >&6 |
503d2be0 AS |
3212 | else |
3213 | if test -n "$ac_ct_CC"; then | |
3214 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3215 | else | |
c0d27fcc MR |
3216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3217 | for as_dir in $PATH | |
3218 | do | |
3219 | IFS=$as_save_IFS | |
3220 | test -z "$as_dir" && as_dir=. | |
bf89cb4d | 3221 | for ac_exec_ext in '' $ac_executable_extensions; do |
f053c89f | 3222 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc | 3223 | ac_cv_prog_ac_ct_CC="$ac_prog" |
bf89cb4d | 3224 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c0d27fcc MR |
3225 | break 2 |
3226 | fi | |
3227 | done | |
bf89cb4d | 3228 | done |
ca81d7a0 | 3229 | IFS=$as_save_IFS |
503d2be0 | 3230 | |
c4bb2108 | 3231 | fi |
503d2be0 AS |
3232 | fi |
3233 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3234 | if test -n "$ac_ct_CC"; then | |
bf89cb4d | 3235 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
e9a63f04 | 3236 | $as_echo "$ac_ct_CC" >&6; } |
503d2be0 | 3237 | else |
bf89cb4d | 3238 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
e9a63f04 | 3239 | $as_echo "no" >&6; } |
ba4481b5 DL |
3240 | fi |
3241 | ||
ca81d7a0 | 3242 | |
503d2be0 AS |
3243 | test -n "$ac_ct_CC" && break |
3244 | done | |
ba4481b5 | 3245 | |
ca81d7a0 JD |
3246 | if test "x$ac_ct_CC" = x; then |
3247 | CC="" | |
3248 | else | |
3249 | case $cross_compiling:$ac_tool_warned in | |
3250 | yes:) | |
bf89cb4d GM |
3251 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
3252 | whose name does not start with the host triplet. If you think this | |
3253 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3254 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3255 | whose name does not start with the host triplet. If you think this | |
3256 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
ca81d7a0 JD |
3257 | ac_tool_warned=yes ;; |
3258 | esac | |
3259 | CC=$ac_ct_CC | |
3260 | fi | |
503d2be0 AS |
3261 | fi |
3262 | ||
3263 | fi | |
ba4481b5 | 3264 | |
c0d27fcc | 3265 | |
bf89cb4d GM |
3266 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
3267 | See \`config.log' for more details." >&5 | |
3268 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3269 | See \`config.log' for more details." >&2;} | |
3270 | { (exit 1); exit 1; }; } | |
c4bb2108 | 3271 | |
503d2be0 | 3272 | # Provide some information about the compiler. |
bf89cb4d | 3273 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
e9a63f04 GM |
3274 | set X $ac_compile |
3275 | ac_compiler=$2 | |
bf89cb4d | 3276 | { (ac_try="$ac_compiler --version >&5" |
ca81d7a0 JD |
3277 | case "(($ac_try" in |
3278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3279 | *) ac_try_echo=$ac_try;; | |
3280 | esac | |
bf89cb4d GM |
3281 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3282 | $as_echo "$ac_try_echo") >&5 | |
3283 | (eval "$ac_compiler --version >&5") 2>&5 | |
503d2be0 | 3284 | ac_status=$? |
bf89cb4d GM |
3285 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3286 | (exit $ac_status); } | |
3287 | { (ac_try="$ac_compiler -v >&5" | |
3288 | case "(($ac_try" in | |
3289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3290 | *) ac_try_echo=$ac_try;; | |
3291 | esac | |
3292 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3293 | $as_echo "$ac_try_echo") >&5 | |
3294 | (eval "$ac_compiler -v >&5") 2>&5 | |
3295 | ac_status=$? | |
3296 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3297 | (exit $ac_status); } | |
3298 | { (ac_try="$ac_compiler -V >&5" | |
3299 | case "(($ac_try" in | |
3300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3301 | *) ac_try_echo=$ac_try;; | |
3302 | esac | |
3303 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3304 | $as_echo "$ac_try_echo") >&5 | |
3305 | (eval "$ac_compiler -V >&5") 2>&5 | |
3306 | ac_status=$? | |
3307 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3308 | (exit $ac_status); } | |
503d2be0 | 3309 | |
bf89cb4d GM |
3310 | cat >conftest.$ac_ext <<_ACEOF |
3311 | /* confdefs.h. */ | |
3312 | _ACEOF | |
3313 | cat confdefs.h >>conftest.$ac_ext | |
3314 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 3315 | /* end confdefs.h. */ |
c4bb2108 | 3316 | |
503d2be0 AS |
3317 | int |
3318 | main () | |
3319 | { | |
3320 | ||
3321 | ; | |
3322 | return 0; | |
3323 | } | |
3324 | _ACEOF | |
3325 | ac_clean_files_save=$ac_clean_files | |
e9a63f04 | 3326 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
503d2be0 AS |
3327 | # Try to create an executable without -o first, disregard a.out. |
3328 | # It will help us diagnose broken compilers, and finding out an intuition | |
3329 | # of exeext. | |
bf89cb4d GM |
3330 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3331 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
e9a63f04 GM |
3332 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3333 | ||
3334 | # The possible output files: | |
3335 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3336 | ||
ca81d7a0 JD |
3337 | ac_rmfiles= |
3338 | for ac_file in $ac_files | |
3339 | do | |
3340 | case $ac_file in | |
e9a63f04 | 3341 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ca81d7a0 JD |
3342 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3343 | esac | |
3344 | done | |
3345 | rm -f $ac_rmfiles | |
3346 | ||
bf89cb4d | 3347 | if { (ac_try="$ac_link_default" |
ca81d7a0 JD |
3348 | case "(($ac_try" in |
3349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3350 | *) ac_try_echo=$ac_try;; | |
3351 | esac | |
bf89cb4d GM |
3352 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3353 | $as_echo "$ac_try_echo") >&5 | |
ca81d7a0 | 3354 | (eval "$ac_link_default") 2>&5 |
503d2be0 | 3355 | ac_status=$? |
bf89cb4d GM |
3356 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3357 | (exit $ac_status); }; then | |
ca81d7a0 JD |
3358 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3359 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3360 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3361 | # so that the user can short-circuit this test for compilers unknown to | |
3362 | # Autoconf. | |
f053c89f | 3363 | for ac_file in $ac_files '' |
19650fd6 | 3364 | do |
6bae0ccf | 3365 | test -f "$ac_file" || continue |
503d2be0 | 3366 | case $ac_file in |
e9a63f04 | 3367 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
edfaf76d | 3368 | ;; |
19650fd6 | 3369 | [ab].out ) |
edfaf76d LK |
3370 | # We found the default executable, but exeext='' is most |
3371 | # certainly right. | |
3372 | break;; | |
19650fd6 | 3373 | *.* ) |
bf89cb4d | 3374 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
ca81d7a0 JD |
3375 | then :; else |
3376 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3377 | fi | |
3378 | # We set ac_cv_exeext here because the later test for it is not | |
3379 | # safe: cross compilers may not add the suffix if given an `-o' | |
3380 | # argument, so we may need to know it at that point already. | |
3381 | # Even if this section looks crufty: it has the advantage of | |
3382 | # actually working. | |
edfaf76d | 3383 | break;; |
19650fd6 | 3384 | * ) |
edfaf76d | 3385 | break;; |
503d2be0 AS |
3386 | esac |
3387 | done | |
ca81d7a0 JD |
3388 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3389 | ||
503d2be0 | 3390 | else |
f053c89f CY |
3391 | ac_file='' |
3392 | fi | |
bf89cb4d GM |
3393 | |
3394 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3395 | $as_echo "$ac_file" >&6; } | |
3396 | if test -z "$ac_file"; then | |
3397 | $as_echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3398 | sed 's/^/| /' conftest.$ac_ext >&5 |
3399 | ||
bf89cb4d GM |
3400 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
3401 | See \`config.log' for more details." >&5 | |
3402 | $as_echo "$as_me: error: C compiler cannot create executables | |
3403 | See \`config.log' for more details." >&2;} | |
3404 | { (exit 77); exit 77; }; } | |
503d2be0 | 3405 | fi |
bf89cb4d | 3406 | |
503d2be0 | 3407 | ac_exeext=$ac_cv_exeext |
503d2be0 | 3408 | |
bf89cb4d GM |
3409 | # Check that the compiler produces executables we can run. If not, either |
3410 | # the compiler is broken, or we cross compile. | |
3411 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
3412 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3413 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3414 | # If not cross compiling, check that we can run a simple program. | |
3415 | if test "$cross_compiling" != yes; then | |
3416 | if { ac_try='./$ac_file' | |
3417 | { (case "(($ac_try" in | |
3418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3419 | *) ac_try_echo=$ac_try;; | |
3420 | esac | |
3421 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3422 | $as_echo "$ac_try_echo") >&5 | |
3423 | (eval "$ac_try") 2>&5 | |
3424 | ac_status=$? | |
3425 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3426 | (exit $ac_status); }; }; then | |
3427 | cross_compiling=no | |
3428 | else | |
3429 | if test "$cross_compiling" = maybe; then | |
3430 | cross_compiling=yes | |
3431 | else | |
3432 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3433 | If you meant to cross compile, use \`--host'. | |
3434 | See \`config.log' for more details." >&5 | |
3435 | $as_echo "$as_me: error: cannot run C compiled programs. | |
3436 | If you meant to cross compile, use \`--host'. | |
3437 | See \`config.log' for more details." >&2;} | |
3438 | { (exit 1); exit 1; }; } | |
3439 | fi | |
3440 | fi | |
3441 | fi | |
3442 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
3443 | $as_echo "yes" >&6; } | |
3444 | ||
e9a63f04 | 3445 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
503d2be0 | 3446 | ac_clean_files=$ac_clean_files_save |
bf89cb4d GM |
3447 | # Check that the compiler produces executables we can run. If not, either |
3448 | # the compiler is broken, or we cross compile. | |
3449 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
3450 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3451 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3452 | $as_echo "$cross_compiling" >&6; } | |
3453 | ||
3454 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
e9a63f04 | 3455 | $as_echo_n "checking for suffix of executables... " >&6; } |
bf89cb4d | 3456 | if { (ac_try="$ac_link" |
ca81d7a0 JD |
3457 | case "(($ac_try" in |
3458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3459 | *) ac_try_echo=$ac_try;; | |
3460 | esac | |
bf89cb4d GM |
3461 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3462 | $as_echo "$ac_try_echo") >&5 | |
ca81d7a0 | 3463 | (eval "$ac_link") 2>&5 |
503d2be0 | 3464 | ac_status=$? |
bf89cb4d GM |
3465 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3466 | (exit $ac_status); }; then | |
503d2be0 AS |
3467 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3468 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3469 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3470 | # `rm'. | |
6bae0ccf DL |
3471 | for ac_file in conftest.exe conftest conftest.*; do |
3472 | test -f "$ac_file" || continue | |
503d2be0 | 3473 | case $ac_file in |
e9a63f04 | 3474 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
503d2be0 | 3475 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
edfaf76d | 3476 | break;; |
503d2be0 AS |
3477 | * ) break;; |
3478 | esac | |
3479 | done | |
ba4481b5 | 3480 | else |
bf89cb4d GM |
3481 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3482 | See \`config.log' for more details." >&5 | |
3483 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3484 | See \`config.log' for more details." >&2;} | |
3485 | { (exit 1); exit 1; }; } | |
ba4481b5 | 3486 | fi |
bf89cb4d GM |
3487 | |
3488 | rm -f conftest$ac_cv_exeext | |
3489 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
e9a63f04 | 3490 | $as_echo "$ac_cv_exeext" >&6; } |
ba4481b5 | 3491 | |
503d2be0 AS |
3492 | rm -f conftest.$ac_ext |
3493 | EXEEXT=$ac_cv_exeext | |
3494 | ac_exeext=$EXEEXT | |
bf89cb4d | 3495 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
e9a63f04 | 3496 | $as_echo_n "checking for suffix of object files... " >&6; } |
bf89cb4d | 3497 | if test "${ac_cv_objext+set}" = set; then |
e9a63f04 | 3498 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 3499 | else |
bf89cb4d GM |
3500 | cat >conftest.$ac_ext <<_ACEOF |
3501 | /* confdefs.h. */ | |
3502 | _ACEOF | |
3503 | cat confdefs.h >>conftest.$ac_ext | |
3504 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 3505 | /* end confdefs.h. */ |
ba4481b5 | 3506 | |
503d2be0 AS |
3507 | int |
3508 | main () | |
3509 | { | |
ba4481b5 | 3510 | |
503d2be0 AS |
3511 | ; |
3512 | return 0; | |
3513 | } | |
3514 | _ACEOF | |
3515 | rm -f conftest.o conftest.obj | |
bf89cb4d | 3516 | if { (ac_try="$ac_compile" |
ca81d7a0 JD |
3517 | case "(($ac_try" in |
3518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3519 | *) ac_try_echo=$ac_try;; | |
3520 | esac | |
bf89cb4d GM |
3521 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3522 | $as_echo "$ac_try_echo") >&5 | |
ca81d7a0 | 3523 | (eval "$ac_compile") 2>&5 |
503d2be0 | 3524 | ac_status=$? |
bf89cb4d GM |
3525 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3526 | (exit $ac_status); }; then | |
ca81d7a0 JD |
3527 | for ac_file in conftest.o conftest.obj conftest.*; do |
3528 | test -f "$ac_file" || continue; | |
503d2be0 | 3529 | case $ac_file in |
e9a63f04 | 3530 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
503d2be0 AS |
3531 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3532 | break;; | |
3533 | esac | |
3534 | done | |
c4bb2108 | 3535 | else |
e9a63f04 | 3536 | $as_echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3537 | sed 's/^/| /' conftest.$ac_ext >&5 |
3538 | ||
bf89cb4d GM |
3539 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3540 | See \`config.log' for more details." >&5 | |
3541 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3542 | See \`config.log' for more details." >&2;} | |
3543 | { (exit 1); exit 1; }; } | |
c4bb2108 | 3544 | fi |
bf89cb4d | 3545 | |
503d2be0 AS |
3546 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3547 | fi | |
bf89cb4d | 3548 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
e9a63f04 | 3549 | $as_echo "$ac_cv_objext" >&6; } |
503d2be0 AS |
3550 | OBJEXT=$ac_cv_objext |
3551 | ac_objext=$OBJEXT | |
bf89cb4d | 3552 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
e9a63f04 | 3553 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
bf89cb4d | 3554 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
e9a63f04 | 3555 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 3556 | else |
bf89cb4d GM |
3557 | cat >conftest.$ac_ext <<_ACEOF |
3558 | /* confdefs.h. */ | |
3559 | _ACEOF | |
3560 | cat confdefs.h >>conftest.$ac_ext | |
3561 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 3562 | /* end confdefs.h. */ |
503d2be0 AS |
3563 | |
3564 | int | |
3565 | main () | |
3566 | { | |
3567 | #ifndef __GNUC__ | |
3568 | choke me | |
3569 | #endif | |
3570 | ||
3571 | ; | |
3572 | return 0; | |
3573 | } | |
3574 | _ACEOF | |
bf89cb4d GM |
3575 | rm -f conftest.$ac_objext |
3576 | if { (ac_try="$ac_compile" | |
3577 | case "(($ac_try" in | |
3578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3579 | *) ac_try_echo=$ac_try;; | |
3580 | esac | |
3581 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3582 | $as_echo "$ac_try_echo") >&5 | |
3583 | (eval "$ac_compile") 2>conftest.er1 | |
3584 | ac_status=$? | |
3585 | grep -v '^ *+' conftest.er1 >conftest.err | |
3586 | rm -f conftest.er1 | |
3587 | cat conftest.err >&5 | |
3588 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3589 | (exit $ac_status); } && { | |
3590 | test -z "$ac_c_werror_flag" || | |
3591 | test ! -s conftest.err | |
3592 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
3593 | ac_compiler_gnu=yes |
3594 | else | |
bf89cb4d GM |
3595 | $as_echo "$as_me: failed program was:" >&5 |
3596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3597 | ||
3598 | ac_compiler_gnu=no | |
503d2be0 | 3599 | fi |
bf89cb4d | 3600 | |
ca81d7a0 | 3601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
503d2be0 AS |
3602 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3603 | ||
3604 | fi | |
bf89cb4d | 3605 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
e9a63f04 GM |
3606 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3607 | if test $ac_compiler_gnu = yes; then | |
3608 | GCC=yes | |
3609 | else | |
3610 | GCC= | |
3611 | fi | |
503d2be0 AS |
3612 | ac_test_CFLAGS=${CFLAGS+set} |
3613 | ac_save_CFLAGS=$CFLAGS | |
bf89cb4d | 3614 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
e9a63f04 | 3615 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
bf89cb4d | 3616 | if test "${ac_cv_prog_cc_g+set}" = set; then |
e9a63f04 | 3617 | $as_echo_n "(cached) " >&6 |
503d2be0 | 3618 | else |
ca81d7a0 JD |
3619 | ac_save_c_werror_flag=$ac_c_werror_flag |
3620 | ac_c_werror_flag=yes | |
3621 | ac_cv_prog_cc_g=no | |
3622 | CFLAGS="-g" | |
bf89cb4d GM |
3623 | cat >conftest.$ac_ext <<_ACEOF |
3624 | /* confdefs.h. */ | |
3625 | _ACEOF | |
3626 | cat confdefs.h >>conftest.$ac_ext | |
3627 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 3628 | /* end confdefs.h. */ |
503d2be0 AS |
3629 | |
3630 | int | |
3631 | main () | |
3632 | { | |
3633 | ||
3634 | ; | |
3635 | return 0; | |
3636 | } | |
3637 | _ACEOF | |
bf89cb4d GM |
3638 | rm -f conftest.$ac_objext |
3639 | if { (ac_try="$ac_compile" | |
3640 | case "(($ac_try" in | |
3641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3642 | *) ac_try_echo=$ac_try;; | |
3643 | esac | |
3644 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3645 | $as_echo "$ac_try_echo") >&5 | |
3646 | (eval "$ac_compile") 2>conftest.er1 | |
3647 | ac_status=$? | |
3648 | grep -v '^ *+' conftest.er1 >conftest.err | |
3649 | rm -f conftest.er1 | |
3650 | cat conftest.err >&5 | |
3651 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3652 | (exit $ac_status); } && { | |
3653 | test -z "$ac_c_werror_flag" || | |
3654 | test ! -s conftest.err | |
3655 | } && test -s conftest.$ac_objext; then | |
ba4481b5 DL |
3656 | ac_cv_prog_cc_g=yes |
3657 | else | |
bf89cb4d GM |
3658 | $as_echo "$as_me: failed program was:" >&5 |
3659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3660 | ||
3661 | CFLAGS="" | |
3662 | cat >conftest.$ac_ext <<_ACEOF | |
3663 | /* confdefs.h. */ | |
3664 | _ACEOF | |
3665 | cat confdefs.h >>conftest.$ac_ext | |
3666 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 3667 | /* end confdefs.h. */ |
edfaf76d | 3668 | |
6bae0ccf DL |
3669 | int |
3670 | main () | |
3671 | { | |
ca81d7a0 | 3672 | |
6bae0ccf DL |
3673 | ; |
3674 | return 0; | |
3675 | } | |
3676 | _ACEOF | |
bf89cb4d GM |
3677 | rm -f conftest.$ac_objext |
3678 | if { (ac_try="$ac_compile" | |
3679 | case "(($ac_try" in | |
3680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3681 | *) ac_try_echo=$ac_try;; | |
3682 | esac | |
3683 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3684 | $as_echo "$ac_try_echo") >&5 | |
3685 | (eval "$ac_compile") 2>conftest.er1 | |
3686 | ac_status=$? | |
3687 | grep -v '^ *+' conftest.er1 >conftest.err | |
3688 | rm -f conftest.er1 | |
3689 | cat conftest.err >&5 | |
3690 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3691 | (exit $ac_status); } && { | |
3692 | test -z "$ac_c_werror_flag" || | |
3693 | test ! -s conftest.err | |
3694 | } && test -s conftest.$ac_objext; then | |
3695 | : | |
0ca10bb7 | 3696 | else |
bf89cb4d GM |
3697 | $as_echo "$as_me: failed program was:" >&5 |
3698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3699 | ||
3700 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ca81d7a0 | 3701 | CFLAGS="-g" |
bf89cb4d GM |
3702 | cat >conftest.$ac_ext <<_ACEOF |
3703 | /* confdefs.h. */ | |
3704 | _ACEOF | |
3705 | cat confdefs.h >>conftest.$ac_ext | |
3706 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 3707 | /* end confdefs.h. */ |
ca81d7a0 | 3708 | |
503d2be0 AS |
3709 | int |
3710 | main () | |
3711 | { | |
ca81d7a0 | 3712 | |
503d2be0 AS |
3713 | ; |
3714 | return 0; | |
3715 | } | |
3716 | _ACEOF | |
bf89cb4d GM |
3717 | rm -f conftest.$ac_objext |
3718 | if { (ac_try="$ac_compile" | |
3719 | case "(($ac_try" in | |
3720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3721 | *) ac_try_echo=$ac_try;; | |
3722 | esac | |
3723 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3724 | $as_echo "$ac_try_echo") >&5 | |
3725 | (eval "$ac_compile") 2>conftest.er1 | |
3726 | ac_status=$? | |
3727 | grep -v '^ *+' conftest.er1 >conftest.err | |
3728 | rm -f conftest.er1 | |
3729 | cat conftest.err >&5 | |
3730 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3731 | (exit $ac_status); } && { | |
3732 | test -z "$ac_c_werror_flag" || | |
3733 | test ! -s conftest.err | |
3734 | } && test -s conftest.$ac_objext; then | |
ba4481b5 | 3735 | ac_cv_prog_cc_g=yes |
bf89cb4d GM |
3736 | else |
3737 | $as_echo "$as_me: failed program was:" >&5 | |
3738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3739 | ||
3740 | ||
ba4481b5 | 3741 | fi |
bf89cb4d | 3742 | |
ca81d7a0 JD |
3743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3744 | fi | |
bf89cb4d | 3745 | |
ca81d7a0 JD |
3746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3747 | fi | |
bf89cb4d | 3748 | |
ca81d7a0 JD |
3749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3750 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ba4481b5 | 3751 | fi |
bf89cb4d | 3752 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
e9a63f04 | 3753 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
c4bb2108 | 3754 | if test "$ac_test_CFLAGS" = set; then |
503d2be0 | 3755 | CFLAGS=$ac_save_CFLAGS |
c4bb2108 DL |
3756 | elif test $ac_cv_prog_cc_g = yes; then |
3757 | if test "$GCC" = yes; then | |
ba4481b5 DL |
3758 | CFLAGS="-g -O2" |
3759 | else | |
c4bb2108 | 3760 | CFLAGS="-g" |
ba4481b5 | 3761 | fi |
22afa6e8 | 3762 | else |
c4bb2108 DL |
3763 | if test "$GCC" = yes; then |
3764 | CFLAGS="-O2" | |
3765 | else | |
3766 | CFLAGS= | |
3767 | fi | |
ba4481b5 | 3768 | fi |
bf89cb4d | 3769 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
e9a63f04 | 3770 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
bf89cb4d | 3771 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
e9a63f04 | 3772 | $as_echo_n "(cached) " >&6 |
6bae0ccf | 3773 | else |
ca81d7a0 | 3774 | ac_cv_prog_cc_c89=no |
6bae0ccf | 3775 | ac_save_CC=$CC |
bf89cb4d GM |
3776 | cat >conftest.$ac_ext <<_ACEOF |
3777 | /* confdefs.h. */ | |
3778 | _ACEOF | |
3779 | cat confdefs.h >>conftest.$ac_ext | |
3780 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 3781 | /* end confdefs.h. */ |
6bae0ccf DL |
3782 | #include <stdarg.h> |
3783 | #include <stdio.h> | |
3784 | #include <sys/types.h> | |
3785 | #include <sys/stat.h> | |
3786 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3787 | struct buf { int x; }; | |
3788 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3789 | static char *e (p, i) | |
3790 | char **p; | |
3791 | int i; | |
3792 | { | |
3793 | return p[i]; | |
3794 | } | |
3795 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3796 | { | |
3797 | char *s; | |
3798 | va_list v; | |
3799 | va_start (v,p); | |
3800 | s = g (p, va_arg (v,int)); | |
3801 | va_end (v); | |
3802 | return s; | |
3803 | } | |
edfaf76d LK |
3804 | |
3805 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3806 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3807 | These don't provoke an error unfortunately, instead are silently treated | |
ca81d7a0 | 3808 | as 'x'. The following induces an error, until -std is added to get |
edfaf76d LK |
3809 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3810 | array size at least. It's necessary to write '\x00'==0 to get something | |
ca81d7a0 | 3811 | that's true only with -std. */ |
edfaf76d LK |
3812 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3813 | ||
ca81d7a0 JD |
3814 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3815 | inside strings and character constants. */ | |
3816 | #define FOO(x) 'x' | |
3817 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3818 | ||
6bae0ccf DL |
3819 | int test (int i, double x); |
3820 | struct s1 {int (*f) (int a);}; | |
3821 | struct s2 {int (*f) (double a);}; | |
3822 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3823 | int argc; | |
3824 | char **argv; | |
3825 | int | |
3826 | main () | |
3827 | { | |
3828 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3829 | ; | |
3830 | return 0; | |
3831 | } | |
3832 | _ACEOF | |
ca81d7a0 JD |
3833 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3834 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
6bae0ccf DL |
3835 | do |
3836 | CC="$ac_save_CC $ac_arg" | |
bf89cb4d GM |
3837 | rm -f conftest.$ac_objext |
3838 | if { (ac_try="$ac_compile" | |
3839 | case "(($ac_try" in | |
3840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3841 | *) ac_try_echo=$ac_try;; | |
3842 | esac | |
3843 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3844 | $as_echo "$ac_try_echo") >&5 | |
3845 | (eval "$ac_compile") 2>conftest.er1 | |
3846 | ac_status=$? | |
3847 | grep -v '^ *+' conftest.er1 >conftest.err | |
3848 | rm -f conftest.er1 | |
3849 | cat conftest.err >&5 | |
3850 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3851 | (exit $ac_status); } && { | |
3852 | test -z "$ac_c_werror_flag" || | |
3853 | test ! -s conftest.err | |
3854 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 | 3855 | ac_cv_prog_cc_c89=$ac_arg |
bf89cb4d GM |
3856 | else |
3857 | $as_echo "$as_me: failed program was:" >&5 | |
3858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3859 | ||
3860 | ||
6bae0ccf | 3861 | fi |
bf89cb4d | 3862 | |
ca81d7a0 JD |
3863 | rm -f core conftest.err conftest.$ac_objext |
3864 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
6bae0ccf | 3865 | done |
ca81d7a0 | 3866 | rm -f conftest.$ac_ext |
6bae0ccf DL |
3867 | CC=$ac_save_CC |
3868 | ||
3869 | fi | |
ca81d7a0 JD |
3870 | # AC_CACHE_VAL |
3871 | case "x$ac_cv_prog_cc_c89" in | |
3872 | x) | |
bf89cb4d | 3873 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
e9a63f04 | 3874 | $as_echo "none needed" >&6; } ;; |
ca81d7a0 | 3875 | xno) |
bf89cb4d | 3876 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
e9a63f04 | 3877 | $as_echo "unsupported" >&6; } ;; |
6bae0ccf | 3878 | *) |
ca81d7a0 | 3879 | CC="$CC $ac_cv_prog_cc_c89" |
bf89cb4d | 3880 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
e9a63f04 | 3881 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
6bae0ccf DL |
3882 | esac |
3883 | ||
19650fd6 | 3884 | |
503d2be0 AS |
3885 | ac_ext=c |
3886 | ac_cpp='$CPP $CPPFLAGS' | |
3887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 | 3890 | |
c0d27fcc | 3891 | |
ba4481b5 DL |
3892 | # On Suns, sometimes $CPP names a directory. |
3893 | if test -n "$CPP" && test -d "$CPP"; then | |
3894 | CPP= | |
3895 | fi | |
3896 | ||
089a966d GM |
3897 | ## If not using gcc, and on Solaris, and no CPP specified, see if |
3898 | ## using a Sun compiler, which needs -Xs to prevent whitespace. | |
3899 | if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ | |
3900 | test x"$CPP" = x; then | |
bf89cb4d | 3901 | { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5 |
e9a63f04 | 3902 | $as_echo_n "checking whether we are using a Sun C compiler... " >&6; } |
089a966d | 3903 | |
bf89cb4d | 3904 | if test "${emacs_cv_sunpro_c+set}" = set; then |
e9a63f04 | 3905 | $as_echo_n "(cached) " >&6 |
089a966d | 3906 | else |
bf89cb4d GM |
3907 | cat >conftest.$ac_ext <<_ACEOF |
3908 | /* confdefs.h. */ | |
3909 | _ACEOF | |
3910 | cat confdefs.h >>conftest.$ac_ext | |
3911 | cat >>conftest.$ac_ext <<_ACEOF | |
089a966d GM |
3912 | /* end confdefs.h. */ |
3913 | ||
3914 | int | |
3915 | main () | |
3916 | { | |
3917 | #ifndef __SUNPRO_C | |
3918 | fail; | |
3919 | #endif | |
3920 | ||
3921 | ; | |
3922 | return 0; | |
3923 | } | |
3924 | _ACEOF | |
bf89cb4d GM |
3925 | rm -f conftest.$ac_objext conftest$ac_exeext |
3926 | if { (ac_try="$ac_link" | |
3927 | case "(($ac_try" in | |
3928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3929 | *) ac_try_echo=$ac_try;; | |
3930 | esac | |
3931 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3932 | $as_echo "$ac_try_echo") >&5 | |
3933 | (eval "$ac_link") 2>conftest.er1 | |
3934 | ac_status=$? | |
3935 | grep -v '^ *+' conftest.er1 >conftest.err | |
3936 | rm -f conftest.er1 | |
3937 | cat conftest.err >&5 | |
3938 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3939 | (exit $ac_status); } && { | |
3940 | test -z "$ac_c_werror_flag" || | |
3941 | test ! -s conftest.err | |
3942 | } && test -s conftest$ac_exeext && { | |
3943 | test "$cross_compiling" = yes || | |
3944 | $as_test_x conftest$ac_exeext | |
3945 | }; then | |
089a966d GM |
3946 | emacs_cv_sunpro_c=yes |
3947 | else | |
bf89cb4d GM |
3948 | $as_echo "$as_me: failed program was:" >&5 |
3949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3950 | ||
3951 | emacs_cv_sunpro_c=no | |
089a966d | 3952 | fi |
bf89cb4d GM |
3953 | |
3954 | rm -rf conftest.dSYM | |
3955 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
3956 | conftest$ac_exeext conftest.$ac_ext | |
089a966d GM |
3957 | fi |
3958 | ||
bf89cb4d | 3959 | { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5 |
e9a63f04 | 3960 | $as_echo "$emacs_cv_sunpro_c" >&6; } |
089a966d GM |
3961 | |
3962 | if test x"$emacs_cv_sunpro_c" = xyes; then | |
3963 | NON_GNU_CPP="$CC -E -Xs" | |
3964 | fi | |
3965 | fi | |
3966 | ||
ba4481b5 DL |
3967 | #### Some systems specify a CPP to use unless we are using GCC. |
3968 | #### Now that we know whether we are using GCC, we can decide whether | |
3969 | #### to use that one. | |
3970 | if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
3971 | then | |
3972 | CPP="$NON_GNU_CPP" | |
3973 | fi | |
3974 | ||
3975 | #### Some systems specify a CC to use unless we are using GCC. | |
3976 | #### Now that we know whether we are using GCC, we can decide whether | |
3977 | #### to use that one. | |
3978 | if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
3979 | test x$cc_specified != xyes | |
3980 | then | |
3981 | CC="$NON_GNU_CC" | |
3982 | fi | |
3983 | ||
3984 | if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
3985 | then | |
3986 | CC="$CC $GCC_TEST_OPTIONS" | |
3987 | fi | |
3988 | ||
3989 | if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
3990 | then | |
3991 | CC="$CC $NON_GCC_TEST_OPTIONS" | |
3992 | fi | |
3993 | ||
e143ad11 AS |
3994 | ac_ext=c |
3995 | ac_cpp='$CPP $CPPFLAGS' | |
3996 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3997 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3998 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bf89cb4d | 3999 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
e9a63f04 | 4000 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
e143ad11 AS |
4001 | # On Suns, sometimes $CPP names a directory. |
4002 | if test -n "$CPP" && test -d "$CPP"; then | |
4003 | CPP= | |
4004 | fi | |
4005 | if test -z "$CPP"; then | |
bf89cb4d | 4006 | if test "${ac_cv_prog_CPP+set}" = set; then |
e9a63f04 | 4007 | $as_echo_n "(cached) " >&6 |
e143ad11 AS |
4008 | else |
4009 | # Double quotes because CPP needs to be expanded | |
4010 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4011 | do | |
4012 | ac_preproc_ok=false | |
4013 | for ac_c_preproc_warn_flag in '' yes | |
4014 | do | |
4015 | # Use a header file that comes with gcc, so configuring glibc | |
4016 | # with a fresh cross-compiler works. | |
4017 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4018 | # <limits.h> exists even on freestanding compilers. | |
4019 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4020 | # not just through cpp. "Syntax error" is here to catch this case. | |
bf89cb4d GM |
4021 | cat >conftest.$ac_ext <<_ACEOF |
4022 | /* confdefs.h. */ | |
4023 | _ACEOF | |
4024 | cat confdefs.h >>conftest.$ac_ext | |
4025 | cat >>conftest.$ac_ext <<_ACEOF | |
e143ad11 AS |
4026 | /* end confdefs.h. */ |
4027 | #ifdef __STDC__ | |
4028 | # include <limits.h> | |
4029 | #else | |
4030 | # include <assert.h> | |
4031 | #endif | |
4032 | Syntax error | |
4033 | _ACEOF | |
bf89cb4d GM |
4034 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4035 | case "(($ac_try" in | |
4036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4037 | *) ac_try_echo=$ac_try;; | |
4038 | esac | |
4039 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4040 | $as_echo "$ac_try_echo") >&5 | |
4041 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4042 | ac_status=$? | |
4043 | grep -v '^ *+' conftest.er1 >conftest.err | |
4044 | rm -f conftest.er1 | |
4045 | cat conftest.err >&5 | |
4046 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4047 | (exit $ac_status); } >/dev/null && { | |
4048 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4049 | test ! -s conftest.err | |
4050 | }; then | |
4051 | : | |
0ca10bb7 | 4052 | else |
bf89cb4d GM |
4053 | $as_echo "$as_me: failed program was:" >&5 |
4054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4055 | ||
4056 | # Broken: fails on valid input. | |
e143ad11 AS |
4057 | continue |
4058 | fi | |
bf89cb4d | 4059 | |
e143ad11 AS |
4060 | rm -f conftest.err conftest.$ac_ext |
4061 | ||
ca81d7a0 | 4062 | # OK, works on sane cases. Now check whether nonexistent headers |
e143ad11 | 4063 | # can be detected and how. |
bf89cb4d GM |
4064 | cat >conftest.$ac_ext <<_ACEOF |
4065 | /* confdefs.h. */ | |
4066 | _ACEOF | |
4067 | cat confdefs.h >>conftest.$ac_ext | |
4068 | cat >>conftest.$ac_ext <<_ACEOF | |
e143ad11 AS |
4069 | /* end confdefs.h. */ |
4070 | #include <ac_nonexistent.h> | |
4071 | _ACEOF | |
bf89cb4d GM |
4072 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4073 | case "(($ac_try" in | |
4074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4075 | *) ac_try_echo=$ac_try;; | |
4076 | esac | |
4077 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4078 | $as_echo "$ac_try_echo") >&5 | |
4079 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4080 | ac_status=$? | |
4081 | grep -v '^ *+' conftest.er1 >conftest.err | |
4082 | rm -f conftest.er1 | |
4083 | cat conftest.err >&5 | |
4084 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4085 | (exit $ac_status); } >/dev/null && { | |
4086 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4087 | test ! -s conftest.err | |
4088 | }; then | |
e143ad11 AS |
4089 | # Broken: success on invalid input. |
4090 | continue | |
4091 | else | |
bf89cb4d GM |
4092 | $as_echo "$as_me: failed program was:" >&5 |
4093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4094 | ||
e143ad11 AS |
4095 | # Passes both tests. |
4096 | ac_preproc_ok=: | |
4097 | break | |
4098 | fi | |
bf89cb4d | 4099 | |
e143ad11 AS |
4100 | rm -f conftest.err conftest.$ac_ext |
4101 | ||
4102 | done | |
4103 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4104 | rm -f conftest.err conftest.$ac_ext | |
bf89cb4d | 4105 | if $ac_preproc_ok; then |
e143ad11 AS |
4106 | break |
4107 | fi | |
4108 | ||
4109 | done | |
4110 | ac_cv_prog_CPP=$CPP | |
4111 | ||
4112 | fi | |
4113 | CPP=$ac_cv_prog_CPP | |
4114 | else | |
4115 | ac_cv_prog_CPP=$CPP | |
4116 | fi | |
bf89cb4d | 4117 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
e9a63f04 | 4118 | $as_echo "$CPP" >&6; } |
e143ad11 AS |
4119 | ac_preproc_ok=false |
4120 | for ac_c_preproc_warn_flag in '' yes | |
4121 | do | |
4122 | # Use a header file that comes with gcc, so configuring glibc | |
4123 | # with a fresh cross-compiler works. | |
4124 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4125 | # <limits.h> exists even on freestanding compilers. | |
4126 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4127 | # not just through cpp. "Syntax error" is here to catch this case. | |
bf89cb4d GM |
4128 | cat >conftest.$ac_ext <<_ACEOF |
4129 | /* confdefs.h. */ | |
4130 | _ACEOF | |
4131 | cat confdefs.h >>conftest.$ac_ext | |
4132 | cat >>conftest.$ac_ext <<_ACEOF | |
e143ad11 AS |
4133 | /* end confdefs.h. */ |
4134 | #ifdef __STDC__ | |
4135 | # include <limits.h> | |
4136 | #else | |
4137 | # include <assert.h> | |
4138 | #endif | |
4139 | Syntax error | |
4140 | _ACEOF | |
bf89cb4d GM |
4141 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4142 | case "(($ac_try" in | |
4143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4144 | *) ac_try_echo=$ac_try;; | |
4145 | esac | |
4146 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4147 | $as_echo "$ac_try_echo") >&5 | |
4148 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4149 | ac_status=$? | |
4150 | grep -v '^ *+' conftest.er1 >conftest.err | |
4151 | rm -f conftest.er1 | |
4152 | cat conftest.err >&5 | |
4153 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4154 | (exit $ac_status); } >/dev/null && { | |
4155 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4156 | test ! -s conftest.err | |
4157 | }; then | |
4158 | : | |
0ca10bb7 | 4159 | else |
bf89cb4d GM |
4160 | $as_echo "$as_me: failed program was:" >&5 |
4161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4162 | ||
e143ad11 AS |
4163 | # Broken: fails on valid input. |
4164 | continue | |
4165 | fi | |
bf89cb4d | 4166 | |
e143ad11 AS |
4167 | rm -f conftest.err conftest.$ac_ext |
4168 | ||
ca81d7a0 | 4169 | # OK, works on sane cases. Now check whether nonexistent headers |
e143ad11 | 4170 | # can be detected and how. |
bf89cb4d GM |
4171 | cat >conftest.$ac_ext <<_ACEOF |
4172 | /* confdefs.h. */ | |
4173 | _ACEOF | |
4174 | cat confdefs.h >>conftest.$ac_ext | |
4175 | cat >>conftest.$ac_ext <<_ACEOF | |
e143ad11 AS |
4176 | /* end confdefs.h. */ |
4177 | #include <ac_nonexistent.h> | |
4178 | _ACEOF | |
bf89cb4d GM |
4179 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4180 | case "(($ac_try" in | |
4181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4182 | *) ac_try_echo=$ac_try;; | |
4183 | esac | |
4184 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4185 | $as_echo "$ac_try_echo") >&5 | |
4186 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4187 | ac_status=$? | |
4188 | grep -v '^ *+' conftest.er1 >conftest.err | |
4189 | rm -f conftest.er1 | |
4190 | cat conftest.err >&5 | |
4191 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4192 | (exit $ac_status); } >/dev/null && { | |
4193 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4194 | test ! -s conftest.err | |
4195 | }; then | |
e143ad11 AS |
4196 | # Broken: success on invalid input. |
4197 | continue | |
4198 | else | |
bf89cb4d GM |
4199 | $as_echo "$as_me: failed program was:" >&5 |
4200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4201 | ||
e143ad11 AS |
4202 | # Passes both tests. |
4203 | ac_preproc_ok=: | |
4204 | break | |
4205 | fi | |
bf89cb4d | 4206 | |
e143ad11 AS |
4207 | rm -f conftest.err conftest.$ac_ext |
4208 | ||
4209 | done | |
4210 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4211 | rm -f conftest.err conftest.$ac_ext | |
bf89cb4d GM |
4212 | if $ac_preproc_ok; then |
4213 | : | |
e143ad11 | 4214 | else |
bf89cb4d GM |
4215 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4216 | See \`config.log' for more details." >&5 | |
4217 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4218 | See \`config.log' for more details." >&2;} | |
4219 | { (exit 1); exit 1; }; } | |
e143ad11 AS |
4220 | fi |
4221 | ||
4222 | ac_ext=c | |
4223 | ac_cpp='$CPP $CPPFLAGS' | |
4224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4227 | ||
4228 | ||
bf89cb4d | 4229 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
e9a63f04 | 4230 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
bf89cb4d | 4231 | if test "${ac_cv_path_GREP+set}" = set; then |
e9a63f04 | 4232 | $as_echo_n "(cached) " >&6 |
ca81d7a0 | 4233 | else |
e9a63f04 | 4234 | if test -z "$GREP"; then |
ca81d7a0 | 4235 | ac_path_GREP_found=false |
e9a63f04 GM |
4236 | # Loop through the user's path and test for each of PROGNAME-LIST |
4237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
ca81d7a0 JD |
4238 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4239 | do | |
4240 | IFS=$as_save_IFS | |
4241 | test -z "$as_dir" && as_dir=. | |
bf89cb4d | 4242 | for ac_prog in grep ggrep; do |
e9a63f04 GM |
4243 | for ac_exec_ext in '' $ac_executable_extensions; do |
4244 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4245 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4246 | # Check for GNU ac_path_GREP and select it if it is found. | |
ca81d7a0 JD |
4247 | # Check for GNU $ac_path_GREP |
4248 | case `"$ac_path_GREP" --version 2>&1` in | |
4249 | *GNU*) | |
4250 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4251 | *) | |
4252 | ac_count=0 | |
e9a63f04 | 4253 | $as_echo_n 0123456789 >"conftest.in" |
ca81d7a0 JD |
4254 | while : |
4255 | do | |
4256 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4257 | mv "conftest.tmp" "conftest.in" | |
4258 | cp "conftest.in" "conftest.nl" | |
e9a63f04 | 4259 | $as_echo 'GREP' >> "conftest.nl" |
ca81d7a0 JD |
4260 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4261 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
bf89cb4d | 4262 | ac_count=`expr $ac_count + 1` |
ca81d7a0 JD |
4263 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4264 | # Best one so far, save it but keep looking for a better one | |
4265 | ac_cv_path_GREP="$ac_path_GREP" | |
4266 | ac_path_GREP_max=$ac_count | |
4267 | fi | |
4268 | # 10*(2^10) chars as input seems more than enough | |
4269 | test $ac_count -gt 10 && break | |
4270 | done | |
4271 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4272 | esac | |
4273 | ||
e9a63f04 GM |
4274 | $ac_path_GREP_found && break 3 |
4275 | done | |
ca81d7a0 | 4276 | done |
bf89cb4d | 4277 | done |
ca81d7a0 | 4278 | IFS=$as_save_IFS |
e9a63f04 | 4279 | if test -z "$ac_cv_path_GREP"; then |
bf89cb4d GM |
4280 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
4281 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4282 | { (exit 1); exit 1; }; } | |
e9a63f04 | 4283 | fi |
ca81d7a0 JD |
4284 | else |
4285 | ac_cv_path_GREP=$GREP | |
4286 | fi | |
4287 | ||
ca81d7a0 | 4288 | fi |
bf89cb4d | 4289 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
e9a63f04 | 4290 | $as_echo "$ac_cv_path_GREP" >&6; } |
ca81d7a0 JD |
4291 | GREP="$ac_cv_path_GREP" |
4292 | ||
4293 | ||
bf89cb4d | 4294 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
e9a63f04 | 4295 | $as_echo_n "checking for egrep... " >&6; } |
bf89cb4d | 4296 | if test "${ac_cv_path_EGREP+set}" = set; then |
e9a63f04 | 4297 | $as_echo_n "(cached) " >&6 |
e143ad11 | 4298 | else |
ca81d7a0 JD |
4299 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4300 | then ac_cv_path_EGREP="$GREP -E" | |
4301 | else | |
e9a63f04 | 4302 | if test -z "$EGREP"; then |
ca81d7a0 | 4303 | ac_path_EGREP_found=false |
e9a63f04 GM |
4304 | # Loop through the user's path and test for each of PROGNAME-LIST |
4305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
ca81d7a0 JD |
4306 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4307 | do | |
4308 | IFS=$as_save_IFS | |
4309 | test -z "$as_dir" && as_dir=. | |
bf89cb4d | 4310 | for ac_prog in egrep; do |
e9a63f04 GM |
4311 | for ac_exec_ext in '' $ac_executable_extensions; do |
4312 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4313 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4314 | # Check for GNU ac_path_EGREP and select it if it is found. | |
ca81d7a0 JD |
4315 | # Check for GNU $ac_path_EGREP |
4316 | case `"$ac_path_EGREP" --version 2>&1` in | |
4317 | *GNU*) | |
4318 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4319 | *) | |
4320 | ac_count=0 | |
e9a63f04 | 4321 | $as_echo_n 0123456789 >"conftest.in" |
ca81d7a0 JD |
4322 | while : |
4323 | do | |
4324 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4325 | mv "conftest.tmp" "conftest.in" | |
4326 | cp "conftest.in" "conftest.nl" | |
e9a63f04 | 4327 | $as_echo 'EGREP' >> "conftest.nl" |
ca81d7a0 JD |
4328 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4329 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
bf89cb4d | 4330 | ac_count=`expr $ac_count + 1` |
ca81d7a0 JD |
4331 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4332 | # Best one so far, save it but keep looking for a better one | |
4333 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4334 | ac_path_EGREP_max=$ac_count | |
e143ad11 | 4335 | fi |
ca81d7a0 JD |
4336 | # 10*(2^10) chars as input seems more than enough |
4337 | test $ac_count -gt 10 && break | |
4338 | done | |
4339 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4340 | esac | |
4341 | ||
e9a63f04 GM |
4342 | $ac_path_EGREP_found && break 3 |
4343 | done | |
ca81d7a0 | 4344 | done |
bf89cb4d | 4345 | done |
ca81d7a0 | 4346 | IFS=$as_save_IFS |
e9a63f04 | 4347 | if test -z "$ac_cv_path_EGREP"; then |
bf89cb4d GM |
4348 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
4349 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4350 | { (exit 1); exit 1; }; } | |
e9a63f04 | 4351 | fi |
ca81d7a0 JD |
4352 | else |
4353 | ac_cv_path_EGREP=$EGREP | |
4354 | fi | |
e143ad11 | 4355 | |
ca81d7a0 | 4356 | fi |
8eeae1c9 | 4357 | fi |
bf89cb4d | 4358 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
e9a63f04 | 4359 | $as_echo "$ac_cv_path_EGREP" >&6; } |
ca81d7a0 | 4360 | EGREP="$ac_cv_path_EGREP" |
e143ad11 AS |
4361 | |
4362 | ||
bf89cb4d | 4363 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
e9a63f04 | 4364 | $as_echo_n "checking for ANSI C header files... " >&6; } |
bf89cb4d | 4365 | if test "${ac_cv_header_stdc+set}" = set; then |
e9a63f04 | 4366 | $as_echo_n "(cached) " >&6 |
a51f4969 | 4367 | else |
bf89cb4d GM |
4368 | cat >conftest.$ac_ext <<_ACEOF |
4369 | /* confdefs.h. */ | |
4370 | _ACEOF | |
4371 | cat confdefs.h >>conftest.$ac_ext | |
4372 | cat >>conftest.$ac_ext <<_ACEOF | |
a51f4969 SM |
4373 | /* end confdefs.h. */ |
4374 | #include <stdlib.h> | |
4375 | #include <stdarg.h> | |
4376 | #include <string.h> | |
4377 | #include <float.h> | |
4378 | ||
4379 | int | |
4380 | main () | |
4381 | { | |
4382 | ||
4383 | ; | |
4384 | return 0; | |
4385 | } | |
4386 | _ACEOF | |
bf89cb4d GM |
4387 | rm -f conftest.$ac_objext |
4388 | if { (ac_try="$ac_compile" | |
4389 | case "(($ac_try" in | |
4390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4391 | *) ac_try_echo=$ac_try;; | |
4392 | esac | |
4393 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4394 | $as_echo "$ac_try_echo") >&5 | |
4395 | (eval "$ac_compile") 2>conftest.er1 | |
4396 | ac_status=$? | |
4397 | grep -v '^ *+' conftest.er1 >conftest.err | |
4398 | rm -f conftest.er1 | |
4399 | cat conftest.err >&5 | |
4400 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4401 | (exit $ac_status); } && { | |
4402 | test -z "$ac_c_werror_flag" || | |
4403 | test ! -s conftest.err | |
4404 | } && test -s conftest.$ac_objext; then | |
a51f4969 SM |
4405 | ac_cv_header_stdc=yes |
4406 | else | |
bf89cb4d GM |
4407 | $as_echo "$as_me: failed program was:" >&5 |
4408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4409 | ||
4410 | ac_cv_header_stdc=no | |
a51f4969 | 4411 | fi |
bf89cb4d | 4412 | |
a51f4969 SM |
4413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4414 | ||
4415 | if test $ac_cv_header_stdc = yes; then | |
4416 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
bf89cb4d GM |
4417 | cat >conftest.$ac_ext <<_ACEOF |
4418 | /* confdefs.h. */ | |
4419 | _ACEOF | |
4420 | cat confdefs.h >>conftest.$ac_ext | |
4421 | cat >>conftest.$ac_ext <<_ACEOF | |
a51f4969 SM |
4422 | /* end confdefs.h. */ |
4423 | #include <string.h> | |
4424 | ||
4425 | _ACEOF | |
4426 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
bf89cb4d GM |
4427 | $EGREP "memchr" >/dev/null 2>&1; then |
4428 | : | |
a51f4969 SM |
4429 | else |
4430 | ac_cv_header_stdc=no | |
4431 | fi | |
4432 | rm -f conftest* | |
4433 | ||
4434 | fi | |
4435 | ||
4436 | if test $ac_cv_header_stdc = yes; then | |
4437 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
bf89cb4d GM |
4438 | cat >conftest.$ac_ext <<_ACEOF |
4439 | /* confdefs.h. */ | |
4440 | _ACEOF | |
4441 | cat confdefs.h >>conftest.$ac_ext | |
4442 | cat >>conftest.$ac_ext <<_ACEOF | |
a51f4969 SM |
4443 | /* end confdefs.h. */ |
4444 | #include <stdlib.h> | |
4445 | ||
4446 | _ACEOF | |
4447 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
bf89cb4d GM |
4448 | $EGREP "free" >/dev/null 2>&1; then |
4449 | : | |
a51f4969 SM |
4450 | else |
4451 | ac_cv_header_stdc=no | |
4452 | fi | |
4453 | rm -f conftest* | |
4454 | ||
4455 | fi | |
4456 | ||
4457 | if test $ac_cv_header_stdc = yes; then | |
4458 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
bf89cb4d | 4459 | if test "$cross_compiling" = yes; then |
a51f4969 SM |
4460 | : |
4461 | else | |
bf89cb4d GM |
4462 | cat >conftest.$ac_ext <<_ACEOF |
4463 | /* confdefs.h. */ | |
4464 | _ACEOF | |
4465 | cat confdefs.h >>conftest.$ac_ext | |
4466 | cat >>conftest.$ac_ext <<_ACEOF | |
a51f4969 SM |
4467 | /* end confdefs.h. */ |
4468 | #include <ctype.h> | |
4469 | #include <stdlib.h> | |
4470 | #if ((' ' & 0x0FF) == 0x020) | |
4471 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4472 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4473 | #else | |
4474 | # define ISLOWER(c) \ | |
4475 | (('a' <= (c) && (c) <= 'i') \ | |
4476 | || ('j' <= (c) && (c) <= 'r') \ | |
4477 | || ('s' <= (c) && (c) <= 'z')) | |
4478 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4479 | #endif | |
4480 | ||
4481 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4482 | int | |
4483 | main () | |
4484 | { | |
4485 | int i; | |
4486 | for (i = 0; i < 256; i++) | |
4487 | if (XOR (islower (i), ISLOWER (i)) | |
4488 | || toupper (i) != TOUPPER (i)) | |
4489 | return 2; | |
4490 | return 0; | |
4491 | } | |
4492 | _ACEOF | |
bf89cb4d GM |
4493 | rm -f conftest$ac_exeext |
4494 | if { (ac_try="$ac_link" | |
4495 | case "(($ac_try" in | |
4496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4497 | *) ac_try_echo=$ac_try;; | |
4498 | esac | |
4499 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4500 | $as_echo "$ac_try_echo") >&5 | |
4501 | (eval "$ac_link") 2>&5 | |
4502 | ac_status=$? | |
4503 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4504 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4505 | { (case "(($ac_try" in | |
4506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4507 | *) ac_try_echo=$ac_try;; | |
4508 | esac | |
4509 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4510 | $as_echo "$ac_try_echo") >&5 | |
4511 | (eval "$ac_try") 2>&5 | |
4512 | ac_status=$? | |
4513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4514 | (exit $ac_status); }; }; then | |
4515 | : | |
0ca10bb7 | 4516 | else |
bf89cb4d GM |
4517 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4518 | $as_echo "$as_me: failed program was:" >&5 | |
4519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4520 | ||
4521 | ( exit $ac_status ) | |
4522 | ac_cv_header_stdc=no | |
a51f4969 | 4523 | fi |
bf89cb4d GM |
4524 | rm -rf conftest.dSYM |
4525 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
a51f4969 SM |
4526 | fi |
4527 | ||
bf89cb4d | 4528 | |
a51f4969 SM |
4529 | fi |
4530 | fi | |
bf89cb4d | 4531 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
e9a63f04 | 4532 | $as_echo "$ac_cv_header_stdc" >&6; } |
a51f4969 SM |
4533 | if test $ac_cv_header_stdc = yes; then |
4534 | ||
bf89cb4d GM |
4535 | cat >>confdefs.h <<\_ACEOF |
4536 | #define STDC_HEADERS 1 | |
4537 | _ACEOF | |
a51f4969 SM |
4538 | |
4539 | fi | |
4540 | ||
4541 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
bf89cb4d GM |
4542 | |
4543 | ||
4544 | ||
4545 | ||
4546 | ||
4547 | ||
4548 | ||
4549 | ||
4550 | ||
a51f4969 SM |
4551 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4552 | inttypes.h stdint.h unistd.h | |
bf89cb4d GM |
4553 | do |
4554 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4555 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4556 | $as_echo_n "checking for $ac_header... " >&6; } | |
4557 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4558 | $as_echo_n "(cached) " >&6 | |
4559 | else | |
4560 | cat >conftest.$ac_ext <<_ACEOF | |
4561 | /* confdefs.h. */ | |
4562 | _ACEOF | |
4563 | cat confdefs.h >>conftest.$ac_ext | |
4564 | cat >>conftest.$ac_ext <<_ACEOF | |
4565 | /* end confdefs.h. */ | |
4566 | $ac_includes_default | |
4567 | ||
4568 | #include <$ac_header> | |
4569 | _ACEOF | |
4570 | rm -f conftest.$ac_objext | |
4571 | if { (ac_try="$ac_compile" | |
4572 | case "(($ac_try" in | |
4573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4574 | *) ac_try_echo=$ac_try;; | |
4575 | esac | |
4576 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4577 | $as_echo "$ac_try_echo") >&5 | |
4578 | (eval "$ac_compile") 2>conftest.er1 | |
4579 | ac_status=$? | |
4580 | grep -v '^ *+' conftest.er1 >conftest.err | |
4581 | rm -f conftest.er1 | |
4582 | cat conftest.err >&5 | |
4583 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4584 | (exit $ac_status); } && { | |
4585 | test -z "$ac_c_werror_flag" || | |
4586 | test ! -s conftest.err | |
4587 | } && test -s conftest.$ac_objext; then | |
4588 | eval "$as_ac_Header=yes" | |
4589 | else | |
4590 | $as_echo "$as_me: failed program was:" >&5 | |
4591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4592 | ||
4593 | eval "$as_ac_Header=no" | |
4594 | fi | |
4595 | ||
4596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4597 | fi | |
4598 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
4599 | $as_echo "$as_val"'` | |
4600 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4601 | $as_echo "$ac_res" >&6; } | |
4602 | if test `eval 'as_val=${'$as_ac_Header'} | |
4603 | $as_echo "$as_val"'` = yes; then | |
a51f4969 | 4604 | cat >>confdefs.h <<_ACEOF |
e9a63f04 | 4605 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a51f4969 SM |
4606 | _ACEOF |
4607 | ||
4608 | fi | |
4609 | ||
4610 | done | |
4611 | ||
4612 | ||
e9a63f04 | 4613 | |
bf89cb4d GM |
4614 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
4615 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4616 | $as_echo_n "checking for minix/config.h... " >&6; } | |
4617 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4618 | $as_echo_n "(cached) " >&6 | |
4619 | fi | |
4620 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4621 | $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
4622 | else | |
4623 | # Is the header compilable? | |
4624 | { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
4625 | $as_echo_n "checking minix/config.h usability... " >&6; } | |
4626 | cat >conftest.$ac_ext <<_ACEOF | |
4627 | /* confdefs.h. */ | |
4628 | _ACEOF | |
4629 | cat confdefs.h >>conftest.$ac_ext | |
4630 | cat >>conftest.$ac_ext <<_ACEOF | |
4631 | /* end confdefs.h. */ | |
4632 | $ac_includes_default | |
4633 | #include <minix/config.h> | |
4634 | _ACEOF | |
4635 | rm -f conftest.$ac_objext | |
4636 | if { (ac_try="$ac_compile" | |
4637 | case "(($ac_try" in | |
4638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4639 | *) ac_try_echo=$ac_try;; | |
4640 | esac | |
4641 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4642 | $as_echo "$ac_try_echo") >&5 | |
4643 | (eval "$ac_compile") 2>conftest.er1 | |
4644 | ac_status=$? | |
4645 | grep -v '^ *+' conftest.er1 >conftest.err | |
4646 | rm -f conftest.er1 | |
4647 | cat conftest.err >&5 | |
4648 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4649 | (exit $ac_status); } && { | |
4650 | test -z "$ac_c_werror_flag" || | |
4651 | test ! -s conftest.err | |
4652 | } && test -s conftest.$ac_objext; then | |
4653 | ac_header_compiler=yes | |
4654 | else | |
4655 | $as_echo "$as_me: failed program was:" >&5 | |
4656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4657 | ||
4658 | ac_header_compiler=no | |
4659 | fi | |
4660 | ||
4661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4662 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4663 | $as_echo "$ac_header_compiler" >&6; } | |
4664 | ||
4665 | # Is the header present? | |
4666 | { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
4667 | $as_echo_n "checking minix/config.h presence... " >&6; } | |
4668 | cat >conftest.$ac_ext <<_ACEOF | |
4669 | /* confdefs.h. */ | |
4670 | _ACEOF | |
4671 | cat confdefs.h >>conftest.$ac_ext | |
4672 | cat >>conftest.$ac_ext <<_ACEOF | |
4673 | /* end confdefs.h. */ | |
4674 | #include <minix/config.h> | |
4675 | _ACEOF | |
4676 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4677 | case "(($ac_try" in | |
4678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4679 | *) ac_try_echo=$ac_try;; | |
4680 | esac | |
4681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4682 | $as_echo "$ac_try_echo") >&5 | |
4683 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4684 | ac_status=$? | |
4685 | grep -v '^ *+' conftest.er1 >conftest.err | |
4686 | rm -f conftest.er1 | |
4687 | cat conftest.err >&5 | |
4688 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4689 | (exit $ac_status); } >/dev/null && { | |
4690 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4691 | test ! -s conftest.err | |
4692 | }; then | |
4693 | ac_header_preproc=yes | |
4694 | else | |
4695 | $as_echo "$as_me: failed program was:" >&5 | |
4696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4697 | ||
4698 | ac_header_preproc=no | |
4699 | fi | |
4700 | ||
4701 | rm -f conftest.err conftest.$ac_ext | |
4702 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4703 | $as_echo "$ac_header_preproc" >&6; } | |
4704 | ||
4705 | # So? What about this header? | |
4706 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4707 | yes:no: ) | |
4708 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4709 | $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4710 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4711 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
4712 | ac_header_preproc=yes | |
4713 | ;; | |
4714 | no:yes:* ) | |
4715 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 | |
4716 | $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4717 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4718 | $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4719 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4720 | $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4721 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4722 | $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4723 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4724 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4725 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4726 | $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
4727 | ||
4728 | ;; | |
4729 | esac | |
4730 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4731 | $as_echo_n "checking for minix/config.h... " >&6; } | |
4732 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4733 | $as_echo_n "(cached) " >&6 | |
4734 | else | |
4735 | ac_cv_header_minix_config_h=$ac_header_preproc | |
4736 | fi | |
4737 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4738 | $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
4739 | ||
4740 | fi | |
4741 | if test $ac_cv_header_minix_config_h = yes; then | |
a51f4969 SM |
4742 | MINIX=yes |
4743 | else | |
4744 | MINIX= | |
4745 | fi | |
4746 | ||
4747 | ||
e9a63f04 | 4748 | if test "$MINIX" = yes; then |
a51f4969 | 4749 | |
bf89cb4d GM |
4750 | cat >>confdefs.h <<\_ACEOF |
4751 | #define _POSIX_SOURCE 1 | |
4752 | _ACEOF | |
a51f4969 SM |
4753 | |
4754 | ||
bf89cb4d GM |
4755 | cat >>confdefs.h <<\_ACEOF |
4756 | #define _POSIX_1_SOURCE 2 | |
4757 | _ACEOF | |
a51f4969 SM |
4758 | |
4759 | ||
bf89cb4d GM |
4760 | cat >>confdefs.h <<\_ACEOF |
4761 | #define _MINIX 1 | |
4762 | _ACEOF | |
a51f4969 | 4763 | |
e9a63f04 | 4764 | fi |
7bbec45b CY |
4765 | |
4766 | ||
bf89cb4d GM |
4767 | |
4768 | { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 | |
e9a63f04 | 4769 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
bf89cb4d | 4770 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then |
e9a63f04 | 4771 | $as_echo_n "(cached) " >&6 |
a51f4969 | 4772 | else |
bf89cb4d GM |
4773 | cat >conftest.$ac_ext <<_ACEOF |
4774 | /* confdefs.h. */ | |
4775 | _ACEOF | |
4776 | cat confdefs.h >>conftest.$ac_ext | |
4777 | cat >>conftest.$ac_ext <<_ACEOF | |
a51f4969 SM |
4778 | /* end confdefs.h. */ |
4779 | ||
4780 | # define __EXTENSIONS__ 1 | |
4781 | $ac_includes_default | |
4782 | int | |
4783 | main () | |
4784 | { | |
4785 | ||
4786 | ; | |
4787 | return 0; | |
4788 | } | |
4789 | _ACEOF | |
bf89cb4d GM |
4790 | rm -f conftest.$ac_objext |
4791 | if { (ac_try="$ac_compile" | |
4792 | case "(($ac_try" in | |
4793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4794 | *) ac_try_echo=$ac_try;; | |
4795 | esac | |
4796 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4797 | $as_echo "$ac_try_echo") >&5 | |
4798 | (eval "$ac_compile") 2>conftest.er1 | |
4799 | ac_status=$? | |
4800 | grep -v '^ *+' conftest.er1 >conftest.err | |
4801 | rm -f conftest.er1 | |
4802 | cat conftest.err >&5 | |
4803 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4804 | (exit $ac_status); } && { | |
4805 | test -z "$ac_c_werror_flag" || | |
4806 | test ! -s conftest.err | |
4807 | } && test -s conftest.$ac_objext; then | |
a51f4969 SM |
4808 | ac_cv_safe_to_define___extensions__=yes |
4809 | else | |
bf89cb4d GM |
4810 | $as_echo "$as_me: failed program was:" >&5 |
4811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4812 | ||
4813 | ac_cv_safe_to_define___extensions__=no | |
a51f4969 | 4814 | fi |
bf89cb4d | 4815 | |
a51f4969 SM |
4816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4817 | fi | |
bf89cb4d | 4818 | { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 |
e9a63f04 | 4819 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
a51f4969 | 4820 | test $ac_cv_safe_to_define___extensions__ = yes && |
bf89cb4d GM |
4821 | cat >>confdefs.h <<\_ACEOF |
4822 | #define __EXTENSIONS__ 1 | |
4823 | _ACEOF | |
e9a63f04 | 4824 | |
bf89cb4d GM |
4825 | cat >>confdefs.h <<\_ACEOF |
4826 | #define _ALL_SOURCE 1 | |
4827 | _ACEOF | |
e9a63f04 | 4828 | |
bf89cb4d GM |
4829 | cat >>confdefs.h <<\_ACEOF |
4830 | #define _GNU_SOURCE 1 | |
4831 | _ACEOF | |
e143ad11 | 4832 | |
bf89cb4d GM |
4833 | cat >>confdefs.h <<\_ACEOF |
4834 | #define _POSIX_PTHREAD_SEMANTICS 1 | |
4835 | _ACEOF | |
e143ad11 | 4836 | |
bf89cb4d GM |
4837 | cat >>confdefs.h <<\_ACEOF |
4838 | #define _TANDEM_SOURCE 1 | |
4839 | _ACEOF | |
e143ad11 AS |
4840 | |
4841 | ||
4842 | ||
01abe918 | 4843 | ### Use -Wno-pointer-sign if the compiler supports it |
bf89cb4d | 4844 | { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5 |
e9a63f04 | 4845 | $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; } |
01abe918 CY |
4846 | SAVE_CFLAGS="$CFLAGS" |
4847 | CFLAGS="$CFLAGS -Wno-pointer-sign" | |
bf89cb4d GM |
4848 | cat >conftest.$ac_ext <<_ACEOF |
4849 | /* confdefs.h. */ | |
4850 | _ACEOF | |
4851 | cat confdefs.h >>conftest.$ac_ext | |
4852 | cat >>conftest.$ac_ext <<_ACEOF | |
01abe918 CY |
4853 | /* end confdefs.h. */ |
4854 | ||
4855 | int | |
4856 | main () | |
4857 | { | |
4858 | ||
4859 | ; | |
4860 | return 0; | |
4861 | } | |
4862 | _ACEOF | |
bf89cb4d GM |
4863 | rm -f conftest.$ac_objext |
4864 | if { (ac_try="$ac_compile" | |
4865 | case "(($ac_try" in | |
4866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4867 | *) ac_try_echo=$ac_try;; | |
4868 | esac | |
4869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4870 | $as_echo "$ac_try_echo") >&5 | |
4871 | (eval "$ac_compile") 2>conftest.er1 | |
4872 | ac_status=$? | |
4873 | grep -v '^ *+' conftest.er1 >conftest.err | |
4874 | rm -f conftest.er1 | |
4875 | cat conftest.err >&5 | |
4876 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4877 | (exit $ac_status); } && { | |
4878 | test -z "$ac_c_werror_flag" || | |
4879 | test ! -s conftest.err | |
4880 | } && test -s conftest.$ac_objext; then | |
01abe918 CY |
4881 | has_option=yes |
4882 | else | |
bf89cb4d GM |
4883 | $as_echo "$as_me: failed program was:" >&5 |
4884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4885 | ||
4886 | has_option=no | |
01abe918 | 4887 | fi |
bf89cb4d | 4888 | |
ca81d7a0 | 4889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
01abe918 CY |
4890 | if test $has_option = yes; then |
4891 | C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" | |
4892 | fi | |
bf89cb4d | 4893 | { $as_echo "$as_me:$LINENO: result: $has_option" >&5 |
e9a63f04 | 4894 | $as_echo "$has_option" >&6; } |
01abe918 CY |
4895 | CFLAGS="$SAVE_CFLAGS" |
4896 | unset has_option | |
4897 | unset SAVE_CFLAGS | |
4898 | ||
7a2efa6f | 4899 | ### Use -Wdeclaration-after-statement if the compiler supports it |
bf89cb4d | 4900 | { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5 |
7a2efa6f DN |
4901 | $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } |
4902 | SAVE_CFLAGS="$CFLAGS" | |
4903 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" | |
bf89cb4d GM |
4904 | cat >conftest.$ac_ext <<_ACEOF |
4905 | /* confdefs.h. */ | |
4906 | _ACEOF | |
4907 | cat confdefs.h >>conftest.$ac_ext | |
4908 | cat >>conftest.$ac_ext <<_ACEOF | |
7a2efa6f DN |
4909 | /* end confdefs.h. */ |
4910 | ||
4911 | int | |
4912 | main () | |
4913 | { | |
4914 | ||
4915 | ; | |
4916 | return 0; | |
4917 | } | |
4918 | _ACEOF | |
bf89cb4d GM |
4919 | rm -f conftest.$ac_objext |
4920 | if { (ac_try="$ac_compile" | |
4921 | case "(($ac_try" in | |
4922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4923 | *) ac_try_echo=$ac_try;; | |
4924 | esac | |
4925 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4926 | $as_echo "$ac_try_echo") >&5 | |
4927 | (eval "$ac_compile") 2>conftest.er1 | |
4928 | ac_status=$? | |
4929 | grep -v '^ *+' conftest.er1 >conftest.err | |
4930 | rm -f conftest.er1 | |
4931 | cat conftest.err >&5 | |
4932 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4933 | (exit $ac_status); } && { | |
4934 | test -z "$ac_c_werror_flag" || | |
4935 | test ! -s conftest.err | |
4936 | } && test -s conftest.$ac_objext; then | |
7a2efa6f DN |
4937 | has_option=yes |
4938 | else | |
bf89cb4d GM |
4939 | $as_echo "$as_me: failed program was:" >&5 |
4940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4941 | ||
4942 | has_option=no | |
7a2efa6f | 4943 | fi |
bf89cb4d | 4944 | |
7a2efa6f DN |
4945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4946 | if test $has_option = yes; then | |
4947 | C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" | |
4948 | fi | |
bf89cb4d | 4949 | { $as_echo "$as_me:$LINENO: result: $has_option" >&5 |
7a2efa6f DN |
4950 | $as_echo "$has_option" >&6; } |
4951 | CFLAGS="$SAVE_CFLAGS" | |
4952 | unset has_option | |
4953 | unset SAVE_CFLAGS | |
4954 | ||
6a3a24fa | 4955 | #### Some other nice autoconf tests. |
ba4481b5 | 4956 | |
bf89cb4d | 4957 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
e9a63f04 | 4958 | $as_echo_n "checking whether ln -s works... " >&6; } |
503d2be0 AS |
4959 | LN_S=$as_ln_s |
4960 | if test "$LN_S" = "ln -s"; then | |
bf89cb4d | 4961 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
e9a63f04 | 4962 | $as_echo "yes" >&6; } |
ba4481b5 | 4963 | else |
bf89cb4d | 4964 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
e9a63f04 | 4965 | $as_echo "no, using $LN_S" >&6; } |
ba4481b5 DL |
4966 | fi |
4967 | ||
503d2be0 AS |
4968 | ac_ext=c |
4969 | ac_cpp='$CPP $CPPFLAGS' | |
4970 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4971 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4972 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bf89cb4d | 4973 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
e9a63f04 | 4974 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
ba4481b5 DL |
4975 | # On Suns, sometimes $CPP names a directory. |
4976 | if test -n "$CPP" && test -d "$CPP"; then | |
4977 | CPP= | |
4978 | fi | |
4979 | if test -z "$CPP"; then | |
bf89cb4d | 4980 | if test "${ac_cv_prog_CPP+set}" = set; then |
e9a63f04 | 4981 | $as_echo_n "(cached) " >&6 |
503d2be0 AS |
4982 | else |
4983 | # Double quotes because CPP needs to be expanded | |
4984 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4985 | do | |
4986 | ac_preproc_ok=false | |
4987 | for ac_c_preproc_warn_flag in '' yes | |
4988 | do | |
4989 | # Use a header file that comes with gcc, so configuring glibc | |
4990 | # with a fresh cross-compiler works. | |
19650fd6 AS |
4991 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4992 | # <limits.h> exists even on freestanding compilers. | |
ba4481b5 | 4993 | # On the NeXT, cc -E runs the code through the compiler's parser, |
503d2be0 | 4994 | # not just through cpp. "Syntax error" is here to catch this case. |
bf89cb4d GM |
4995 | cat >conftest.$ac_ext <<_ACEOF |
4996 | /* confdefs.h. */ | |
4997 | _ACEOF | |
4998 | cat confdefs.h >>conftest.$ac_ext | |
4999 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5000 | /* end confdefs.h. */ |
5001 | #ifdef __STDC__ | |
5002 | # include <limits.h> | |
5003 | #else | |
5004 | # include <assert.h> | |
5005 | #endif | |
edfaf76d | 5006 | Syntax error |
503d2be0 | 5007 | _ACEOF |
bf89cb4d GM |
5008 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5009 | case "(($ac_try" in | |
5010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5011 | *) ac_try_echo=$ac_try;; | |
5012 | esac | |
5013 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5014 | $as_echo "$ac_try_echo") >&5 | |
5015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5016 | ac_status=$? | |
5017 | grep -v '^ *+' conftest.er1 >conftest.err | |
5018 | rm -f conftest.er1 | |
5019 | cat conftest.err >&5 | |
5020 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5021 | (exit $ac_status); } >/dev/null && { | |
5022 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5023 | test ! -s conftest.err | |
5024 | }; then | |
5025 | : | |
0ca10bb7 | 5026 | else |
bf89cb4d GM |
5027 | $as_echo "$as_me: failed program was:" >&5 |
5028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5029 | ||
503d2be0 AS |
5030 | # Broken: fails on valid input. |
5031 | continue | |
5032 | fi | |
bf89cb4d | 5033 | |
503d2be0 AS |
5034 | rm -f conftest.err conftest.$ac_ext |
5035 | ||
ca81d7a0 | 5036 | # OK, works on sane cases. Now check whether nonexistent headers |
503d2be0 | 5037 | # can be detected and how. |
bf89cb4d GM |
5038 | cat >conftest.$ac_ext <<_ACEOF |
5039 | /* confdefs.h. */ | |
5040 | _ACEOF | |
5041 | cat confdefs.h >>conftest.$ac_ext | |
5042 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 5043 | /* end confdefs.h. */ |
503d2be0 AS |
5044 | #include <ac_nonexistent.h> |
5045 | _ACEOF | |
bf89cb4d GM |
5046 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5047 | case "(($ac_try" in | |
5048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5049 | *) ac_try_echo=$ac_try;; | |
5050 | esac | |
5051 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5052 | $as_echo "$ac_try_echo") >&5 | |
5053 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5054 | ac_status=$? | |
5055 | grep -v '^ *+' conftest.er1 >conftest.err | |
5056 | rm -f conftest.er1 | |
5057 | cat conftest.err >&5 | |
5058 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5059 | (exit $ac_status); } >/dev/null && { | |
5060 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5061 | test ! -s conftest.err | |
5062 | }; then | |
503d2be0 AS |
5063 | # Broken: success on invalid input. |
5064 | continue | |
c4bb2108 | 5065 | else |
bf89cb4d GM |
5066 | $as_echo "$as_me: failed program was:" >&5 |
5067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5068 | ||
503d2be0 AS |
5069 | # Passes both tests. |
5070 | ac_preproc_ok=: | |
5071 | break | |
5072 | fi | |
bf89cb4d | 5073 | |
503d2be0 AS |
5074 | rm -f conftest.err conftest.$ac_ext |
5075 | ||
5076 | done | |
5077 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5078 | rm -f conftest.err conftest.$ac_ext | |
bf89cb4d | 5079 | if $ac_preproc_ok; then |
503d2be0 AS |
5080 | break |
5081 | fi | |
5082 | ||
5083 | done | |
5084 | ac_cv_prog_CPP=$CPP | |
5085 | ||
5086 | fi | |
5087 | CPP=$ac_cv_prog_CPP | |
5088 | else | |
5089 | ac_cv_prog_CPP=$CPP | |
5090 | fi | |
bf89cb4d | 5091 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
e9a63f04 | 5092 | $as_echo "$CPP" >&6; } |
503d2be0 AS |
5093 | ac_preproc_ok=false |
5094 | for ac_c_preproc_warn_flag in '' yes | |
5095 | do | |
5096 | # Use a header file that comes with gcc, so configuring glibc | |
5097 | # with a fresh cross-compiler works. | |
19650fd6 AS |
5098 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5099 | # <limits.h> exists even on freestanding compilers. | |
503d2be0 AS |
5100 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5101 | # not just through cpp. "Syntax error" is here to catch this case. | |
bf89cb4d GM |
5102 | cat >conftest.$ac_ext <<_ACEOF |
5103 | /* confdefs.h. */ | |
5104 | _ACEOF | |
5105 | cat confdefs.h >>conftest.$ac_ext | |
5106 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5107 | /* end confdefs.h. */ |
5108 | #ifdef __STDC__ | |
5109 | # include <limits.h> | |
5110 | #else | |
5111 | # include <assert.h> | |
5112 | #endif | |
edfaf76d | 5113 | Syntax error |
503d2be0 | 5114 | _ACEOF |
bf89cb4d GM |
5115 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5116 | case "(($ac_try" in | |
5117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5118 | *) ac_try_echo=$ac_try;; | |
5119 | esac | |
5120 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5121 | $as_echo "$ac_try_echo") >&5 | |
5122 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5123 | ac_status=$? | |
5124 | grep -v '^ *+' conftest.er1 >conftest.err | |
5125 | rm -f conftest.er1 | |
5126 | cat conftest.err >&5 | |
5127 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5128 | (exit $ac_status); } >/dev/null && { | |
5129 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5130 | test ! -s conftest.err | |
5131 | }; then | |
5132 | : | |
5133 | else | |
5134 | $as_echo "$as_me: failed program was:" >&5 | |
5135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5136 | ||
503d2be0 AS |
5137 | # Broken: fails on valid input. |
5138 | continue | |
5139 | fi | |
bf89cb4d | 5140 | |
503d2be0 AS |
5141 | rm -f conftest.err conftest.$ac_ext |
5142 | ||
ca81d7a0 | 5143 | # OK, works on sane cases. Now check whether nonexistent headers |
503d2be0 | 5144 | # can be detected and how. |
bf89cb4d GM |
5145 | cat >conftest.$ac_ext <<_ACEOF |
5146 | /* confdefs.h. */ | |
5147 | _ACEOF | |
5148 | cat confdefs.h >>conftest.$ac_ext | |
5149 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 5150 | /* end confdefs.h. */ |
503d2be0 AS |
5151 | #include <ac_nonexistent.h> |
5152 | _ACEOF | |
bf89cb4d GM |
5153 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5154 | case "(($ac_try" in | |
5155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5156 | *) ac_try_echo=$ac_try;; | |
5157 | esac | |
5158 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5159 | $as_echo "$ac_try_echo") >&5 | |
5160 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5161 | ac_status=$? | |
5162 | grep -v '^ *+' conftest.er1 >conftest.err | |
5163 | rm -f conftest.er1 | |
5164 | cat conftest.err >&5 | |
5165 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5166 | (exit $ac_status); } >/dev/null && { | |
5167 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5168 | test ! -s conftest.err | |
5169 | }; then | |
503d2be0 AS |
5170 | # Broken: success on invalid input. |
5171 | continue | |
5172 | else | |
bf89cb4d GM |
5173 | $as_echo "$as_me: failed program was:" >&5 |
5174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5175 | ||
503d2be0 AS |
5176 | # Passes both tests. |
5177 | ac_preproc_ok=: | |
5178 | break | |
ba4481b5 | 5179 | fi |
bf89cb4d | 5180 | |
503d2be0 AS |
5181 | rm -f conftest.err conftest.$ac_ext |
5182 | ||
5183 | done | |
5184 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5185 | rm -f conftest.err conftest.$ac_ext | |
bf89cb4d GM |
5186 | if $ac_preproc_ok; then |
5187 | : | |
ba4481b5 | 5188 | else |
bf89cb4d GM |
5189 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
5190 | See \`config.log' for more details." >&5 | |
5191 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5192 | See \`config.log' for more details." >&2;} | |
5193 | { (exit 1); exit 1; }; } | |
ba4481b5 | 5194 | fi |
503d2be0 AS |
5195 | |
5196 | ac_ext=c | |
5197 | ac_cpp='$CPP $CPPFLAGS' | |
5198 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5199 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5200 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 DL |
5201 | |
5202 | # Find a good install program. We prefer a C program (faster), | |
5203 | # so one script is as good as another. But avoid the broken or | |
5204 | # incompatible versions: | |
5205 | # SysV /etc/install, /usr/sbin/install | |
5206 | # SunOS /usr/etc/install | |
5207 | # IRIX /sbin/install | |
5208 | # AIX /bin/install | |
503d2be0 | 5209 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
c4bb2108 | 5210 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
ba4481b5 DL |
5211 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
5212 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
edfaf76d | 5213 | # OS/2's system install, which has a completely different semantic |
ba4481b5 | 5214 | # ./install, which can be erroneously created by make from ./install.sh. |
e9a63f04 | 5215 | # Reject install programs that cannot install multiple files. |
bf89cb4d | 5216 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
e9a63f04 | 5217 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
ba4481b5 | 5218 | if test -z "$INSTALL"; then |
bf89cb4d | 5219 | if test "${ac_cv_path_install+set}" = set; then |
e9a63f04 | 5220 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 5221 | else |
c0d27fcc MR |
5222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5223 | for as_dir in $PATH | |
5224 | do | |
5225 | IFS=$as_save_IFS | |
5226 | test -z "$as_dir" && as_dir=. | |
bf89cb4d GM |
5227 | # Account for people who put trailing slashes in PATH elements. |
5228 | case $as_dir/ in | |
5229 | ./ | .// | /cC/* | \ | |
c0d27fcc | 5230 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
bf89cb4d | 5231 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
c0d27fcc MR |
5232 | /usr/ucb/* ) ;; |
5233 | *) | |
5234 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5235 | # Don't use installbsd from OSF since it installs stuff as root | |
5236 | # by default. | |
5237 | for ac_prog in ginstall scoinst install; do | |
5238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5239 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
edfaf76d LK |
5240 | if test $ac_prog = install && |
5241 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5242 | # AIX install. It has an incompatible calling convention. | |
5243 | : | |
5244 | elif test $ac_prog = install && | |
5245 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5246 | # program-specific install script used by HP pwplus--don't use. | |
5247 | : | |
5248 | else | |
e9a63f04 GM |
5249 | rm -rf conftest.one conftest.two conftest.dir |
5250 | echo one > conftest.one | |
5251 | echo two > conftest.two | |
5252 | mkdir conftest.dir | |
5253 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
5254 | test -s conftest.one && test -s conftest.two && | |
5255 | test -s conftest.dir/conftest.one && | |
5256 | test -s conftest.dir/conftest.two | |
5257 | then | |
5258 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5259 | break 3 | |
5260 | fi | |
edfaf76d LK |
5261 | fi |
5262 | fi | |
ba4481b5 | 5263 | done |
c0d27fcc MR |
5264 | done |
5265 | ;; | |
5266 | esac | |
e9a63f04 | 5267 | |
bf89cb4d | 5268 | done |
ca81d7a0 | 5269 | IFS=$as_save_IFS |
c0d27fcc | 5270 | |
e9a63f04 | 5271 | rm -rf conftest.one conftest.two conftest.dir |
ba4481b5 DL |
5272 | |
5273 | fi | |
5274 | if test "${ac_cv_path_install+set}" = set; then | |
503d2be0 | 5275 | INSTALL=$ac_cv_path_install |
ba4481b5 | 5276 | else |
ca81d7a0 JD |
5277 | # As a last resort, use the slow shell script. Don't cache a |
5278 | # value for INSTALL within a source directory, because that will | |
ba4481b5 | 5279 | # break other packages using the cache if that directory is |
ca81d7a0 | 5280 | # removed, or if the value is a relative name. |
503d2be0 | 5281 | INSTALL=$ac_install_sh |
ba4481b5 DL |
5282 | fi |
5283 | fi | |
bf89cb4d | 5284 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
e9a63f04 | 5285 | $as_echo "$INSTALL" >&6; } |
ba4481b5 DL |
5286 | |
5287 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5288 | # It thinks the first close brace ends the variable substitution. | |
5289 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5290 | ||
503d2be0 | 5291 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c4bb2108 | 5292 | |
ba4481b5 DL |
5293 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
5294 | ||
c0d27fcc MR |
5295 | if test "x$RANLIB" = x; then |
5296 | if test -n "$ac_tool_prefix"; then | |
5297 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5298 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
bf89cb4d | 5299 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
e9a63f04 | 5300 | $as_echo_n "checking for $ac_word... " >&6; } |
bf89cb4d | 5301 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
e9a63f04 | 5302 | $as_echo_n "(cached) " >&6 |
7397acc4 DL |
5303 | else |
5304 | if test -n "$RANLIB"; then | |
5305 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5306 | else | |
c0d27fcc MR |
5307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5308 | for as_dir in $PATH | |
5309 | do | |
5310 | IFS=$as_save_IFS | |
5311 | test -z "$as_dir" && as_dir=. | |
bf89cb4d | 5312 | for ac_exec_ext in '' $ac_executable_extensions; do |
f053c89f | 5313 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc | 5314 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
bf89cb4d | 5315 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c0d27fcc MR |
5316 | break 2 |
5317 | fi | |
5318 | done | |
bf89cb4d | 5319 | done |
ca81d7a0 | 5320 | IFS=$as_save_IFS |
503d2be0 | 5321 | |
7397acc4 DL |
5322 | fi |
5323 | fi | |
503d2be0 | 5324 | RANLIB=$ac_cv_prog_RANLIB |
7397acc4 | 5325 | if test -n "$RANLIB"; then |
bf89cb4d | 5326 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
e9a63f04 | 5327 | $as_echo "$RANLIB" >&6; } |
503d2be0 | 5328 | else |
bf89cb4d | 5329 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
e9a63f04 | 5330 | $as_echo "no" >&6; } |
503d2be0 AS |
5331 | fi |
5332 | ||
ca81d7a0 | 5333 | |
503d2be0 AS |
5334 | fi |
5335 | if test -z "$ac_cv_prog_RANLIB"; then | |
5336 | ac_ct_RANLIB=$RANLIB | |
5337 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5338 | set dummy ranlib; ac_word=$2 | |
bf89cb4d | 5339 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
e9a63f04 | 5340 | $as_echo_n "checking for $ac_word... " >&6; } |
bf89cb4d | 5341 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
e9a63f04 | 5342 | $as_echo_n "(cached) " >&6 |
503d2be0 AS |
5343 | else |
5344 | if test -n "$ac_ct_RANLIB"; then | |
5345 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5346 | else | |
c0d27fcc MR |
5347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5348 | for as_dir in $PATH | |
5349 | do | |
5350 | IFS=$as_save_IFS | |
5351 | test -z "$as_dir" && as_dir=. | |
bf89cb4d | 5352 | for ac_exec_ext in '' $ac_executable_extensions; do |
f053c89f | 5353 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc | 5354 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
bf89cb4d | 5355 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c0d27fcc MR |
5356 | break 2 |
5357 | fi | |
5358 | done | |
bf89cb4d | 5359 | done |
ca81d7a0 | 5360 | IFS=$as_save_IFS |
503d2be0 | 5361 | |
503d2be0 AS |
5362 | fi |
5363 | fi | |
5364 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5365 | if test -n "$ac_ct_RANLIB"; then | |
bf89cb4d | 5366 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
e9a63f04 | 5367 | $as_echo "$ac_ct_RANLIB" >&6; } |
503d2be0 | 5368 | else |
bf89cb4d | 5369 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
e9a63f04 | 5370 | $as_echo "no" >&6; } |
503d2be0 AS |
5371 | fi |
5372 | ||
ca81d7a0 JD |
5373 | if test "x$ac_ct_RANLIB" = x; then |
5374 | RANLIB=":" | |
5375 | else | |
5376 | case $cross_compiling:$ac_tool_warned in | |
5377 | yes:) | |
bf89cb4d GM |
5378 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5379 | whose name does not start with the host triplet. If you think this | |
5380 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5381 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5382 | whose name does not start with the host triplet. If you think this | |
5383 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
ca81d7a0 JD |
5384 | ac_tool_warned=yes ;; |
5385 | esac | |
5386 | RANLIB=$ac_ct_RANLIB | |
5387 | fi | |
7397acc4 | 5388 | else |
503d2be0 | 5389 | RANLIB="$ac_cv_prog_RANLIB" |
7397acc4 DL |
5390 | fi |
5391 | ||
5392 | fi | |
9e71690e DK |
5393 | # Extract the first word of "install-info", so it can be a program name with args. |
5394 | set dummy install-info; ac_word=$2 | |
bf89cb4d | 5395 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
e9a63f04 | 5396 | $as_echo_n "checking for $ac_word... " >&6; } |
bf89cb4d | 5397 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
e9a63f04 | 5398 | $as_echo_n "(cached) " >&6 |
9e71690e DK |
5399 | else |
5400 | case $INSTALL_INFO in | |
5401 | [\\/]* | ?:[\\/]*) | |
5402 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
5403 | ;; | |
5404 | *) | |
5405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5406 | for as_dir in $PATH | |
5407 | do | |
5408 | IFS=$as_save_IFS | |
5409 | test -z "$as_dir" && as_dir=. | |
bf89cb4d | 5410 | for ac_exec_ext in '' $ac_executable_extensions; do |
f053c89f | 5411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9e71690e | 5412 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
bf89cb4d | 5413 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9e71690e DK |
5414 | break 2 |
5415 | fi | |
5416 | done | |
bf89cb4d | 5417 | done |
ca81d7a0 | 5418 | IFS=$as_save_IFS |
9e71690e DK |
5419 | |
5420 | ;; | |
5421 | esac | |
5422 | fi | |
5423 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
9e71690e | 5424 | if test -n "$INSTALL_INFO"; then |
bf89cb4d | 5425 | { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
e9a63f04 | 5426 | $as_echo "$INSTALL_INFO" >&6; } |
9e71690e | 5427 | else |
bf89cb4d | 5428 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
e9a63f04 | 5429 | $as_echo "no" >&6; } |
9e71690e DK |
5430 | fi |
5431 | ||
ca81d7a0 | 5432 | |
9e71690e DK |
5433 | # Extract the first word of "install-info", so it can be a program name with args. |
5434 | set dummy install-info; ac_word=$2 | |
bf89cb4d | 5435 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
e9a63f04 | 5436 | $as_echo_n "checking for $ac_word... " >&6; } |
bf89cb4d | 5437 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
e9a63f04 | 5438 | $as_echo_n "(cached) " >&6 |
9e71690e DK |
5439 | else |
5440 | case $INSTALL_INFO in | |
5441 | [\\/]* | ?:[\\/]*) | |
5442 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
5443 | ;; | |
5444 | *) | |
5445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5446 | for as_dir in /usr/sbin | |
5447 | do | |
5448 | IFS=$as_save_IFS | |
5449 | test -z "$as_dir" && as_dir=. | |
bf89cb4d | 5450 | for ac_exec_ext in '' $ac_executable_extensions; do |
f053c89f | 5451 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9e71690e | 5452 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
bf89cb4d | 5453 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9e71690e DK |
5454 | break 2 |
5455 | fi | |
5456 | done | |
bf89cb4d | 5457 | done |
ca81d7a0 | 5458 | IFS=$as_save_IFS |
9e71690e DK |
5459 | |
5460 | ;; | |
5461 | esac | |
5462 | fi | |
5463 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
9e71690e | 5464 | if test -n "$INSTALL_INFO"; then |
bf89cb4d | 5465 | { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
e9a63f04 | 5466 | $as_echo "$INSTALL_INFO" >&6; } |
9e71690e | 5467 | else |
bf89cb4d | 5468 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
e9a63f04 | 5469 | $as_echo "no" >&6; } |
9e71690e DK |
5470 | fi |
5471 | ||
ca81d7a0 | 5472 | |
9e71690e DK |
5473 | # Extract the first word of "install-info", so it can be a program name with args. |
5474 | set dummy install-info; ac_word=$2 | |
bf89cb4d | 5475 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
e9a63f04 | 5476 | $as_echo_n "checking for $ac_word... " >&6; } |
bf89cb4d | 5477 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
e9a63f04 | 5478 | $as_echo_n "(cached) " >&6 |
9e71690e DK |
5479 | else |
5480 | case $INSTALL_INFO in | |
5481 | [\\/]* | ?:[\\/]*) | |
5482 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
5483 | ;; | |
5484 | *) | |
5485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5486 | for as_dir in /sbin | |
5487 | do | |
5488 | IFS=$as_save_IFS | |
5489 | test -z "$as_dir" && as_dir=. | |
bf89cb4d | 5490 | for ac_exec_ext in '' $ac_executable_extensions; do |
f053c89f | 5491 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9e71690e | 5492 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
bf89cb4d | 5493 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9e71690e DK |
5494 | break 2 |
5495 | fi | |
5496 | done | |
bf89cb4d | 5497 | done |
ca81d7a0 | 5498 | IFS=$as_save_IFS |
9e71690e DK |
5499 | |
5500 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" | |
5501 | ;; | |
5502 | esac | |
5503 | fi | |
5504 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
9e71690e | 5505 | if test -n "$INSTALL_INFO"; then |
bf89cb4d | 5506 | { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
e9a63f04 | 5507 | $as_echo "$INSTALL_INFO" >&6; } |
9e71690e | 5508 | else |
bf89cb4d | 5509 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
e9a63f04 | 5510 | $as_echo "no" >&6; } |
9e71690e DK |
5511 | fi |
5512 | ||
ca81d7a0 | 5513 | |
8ae52ca6 RF |
5514 | # Extract the first word of "gzip", so it can be a program name with args. |
5515 | set dummy gzip; ac_word=$2 | |
bf89cb4d | 5516 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
e9a63f04 | 5517 | $as_echo_n "checking for $ac_word... " >&6; } |
bf89cb4d | 5518 | if test "${ac_cv_path_GZIP_PROG+set}" = set; then |
e9a63f04 | 5519 | $as_echo_n "(cached) " >&6 |
8ae52ca6 | 5520 | else |
46e35e9f | 5521 | case $GZIP_PROG in |
8ae52ca6 | 5522 | [\\/]* | ?:[\\/]*) |
46e35e9f | 5523 | ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. |
8ae52ca6 RF |
5524 | ;; |
5525 | *) | |
5526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5527 | for as_dir in $PATH | |
5528 | do | |
5529 | IFS=$as_save_IFS | |
5530 | test -z "$as_dir" && as_dir=. | |
bf89cb4d | 5531 | for ac_exec_ext in '' $ac_executable_extensions; do |
f053c89f | 5532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
46e35e9f | 5533 | ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" |
bf89cb4d | 5534 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8ae52ca6 RF |
5535 | break 2 |
5536 | fi | |
5537 | done | |
bf89cb4d | 5538 | done |
ca81d7a0 | 5539 | IFS=$as_save_IFS |
8ae52ca6 RF |
5540 | |
5541 | ;; | |
5542 | esac | |
5543 | fi | |
46e35e9f | 5544 | GZIP_PROG=$ac_cv_path_GZIP_PROG |
46e35e9f | 5545 | if test -n "$GZIP_PROG"; then |
bf89cb4d | 5546 | { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5 |
e9a63f04 | 5547 | $as_echo "$GZIP_PROG" >&6; } |
8ae52ca6 | 5548 | else |
bf89cb4d | 5549 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
e9a63f04 | 5550 | $as_echo "no" >&6; } |
8ae52ca6 RF |
5551 | fi |
5552 | ||
ba4481b5 | 5553 | |
c0d27fcc | 5554 | |
ca81d7a0 | 5555 | |
1bb9a689 MB |
5556 | ## Need makeinfo >= 4.6 (?) to build the manuals. |
5557 | # Extract the first word of "makeinfo", so it can be a program name with args. | |
5558 | set dummy makeinfo; ac_word=$2 | |
bf89cb4d | 5559 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
e9a63f04 | 5560 | $as_echo_n "checking for $ac_word... " >&6; } |
bf89cb4d | 5561 | if test "${ac_cv_path_MAKEINFO+set}" = set; then |
e9a63f04 | 5562 | $as_echo_n "(cached) " >&6 |
1bb9a689 MB |
5563 | else |
5564 | case $MAKEINFO in | |
5565 | [\\/]* | ?:[\\/]*) | |
5566 | ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. | |
5567 | ;; | |
5568 | *) | |
5569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5570 | for as_dir in $PATH | |
5571 | do | |
5572 | IFS=$as_save_IFS | |
5573 | test -z "$as_dir" && as_dir=. | |
bf89cb4d | 5574 | for ac_exec_ext in '' $ac_executable_extensions; do |
1bb9a689 MB |
5575 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5576 | ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" | |
bf89cb4d | 5577 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1bb9a689 MB |
5578 | break 2 |
5579 | fi | |
5580 | done | |
bf89cb4d | 5581 | done |
1bb9a689 MB |
5582 | IFS=$as_save_IFS |
5583 | ||
5584 | test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" | |
5585 | ;; | |
5586 | esac | |
5587 | fi | |
5588 | MAKEINFO=$ac_cv_path_MAKEINFO | |
5589 | if test -n "$MAKEINFO"; then | |
bf89cb4d | 5590 | { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
e9a63f04 | 5591 | $as_echo "$MAKEINFO" >&6; } |
1bb9a689 | 5592 | else |
bf89cb4d | 5593 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
e9a63f04 | 5594 | $as_echo "no" >&6; } |
1bb9a689 MB |
5595 | fi |
5596 | ||
5597 | ||
5598 | if test "$MAKEINFO" != "no" && \ | |
d4840f44 | 5599 | 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 |
1bb9a689 MB |
5600 | MAKEINFO=no |
5601 | fi | |
5602 | ||
e1b89931 GM |
5603 | ## Makeinfo is unusual. For a released Emacs, the manuals are |
5604 | ## pre-built, and not deleted by the normal clean rules. makeinfo is | |
5605 | ## therefore in the category of "special tools" not normally required, which | |
5606 | ## configure does not have to check for (eg autoconf itself). | |
8bb25908 KF |
5607 | ## In a Bazaar checkout on the other hand, the manuals are not included. |
5608 | ## So makeinfo is a requirement to build from Bazaar, and configure | |
e1b89931 GM |
5609 | ## should test for it as it does for any other build requirement. |
5610 | ## We use the presence of $srcdir/info/emacs to distinguish a release, | |
8bb25908 | 5611 | ## with pre-built manuals, from a Bazaar checkout. |
e1b89931 GM |
5612 | if test "$MAKEINFO" = "no"; then |
5613 | if test "x${with_makeinfo}" = "xno"; then | |
5614 | MAKEINFO=off | |
5615 | elif ! test -e $srcdir/info/emacs; then | |
bf89cb4d GM |
5616 | { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your |
5617 | source tree does not seem to have pre-built manuals in the \`info' directory. | |
5618 | Either install a suitable version of makeinfo, or re-run configure | |
5619 | with the \`--without-makeinfo' option to build without the manuals. " >&5 | |
5620 | $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your | |
e1b89931 | 5621 | source tree does not seem to have pre-built manuals in the \`info' directory. |
921fbdf0 | 5622 | Either install a suitable version of makeinfo, or re-run configure |
bf89cb4d GM |
5623 | with the \`--without-makeinfo' option to build without the manuals. " >&2;} |
5624 | { (exit 1); exit 1; }; } | |
e1b89931 | 5625 | fi |
921fbdf0 | 5626 | fi |
1bb9a689 MB |
5627 | |
5628 | ||
8e967cf7 MR |
5629 | if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x |
5630 | then | |
5631 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
5632 | fi | |
5633 | ||
5634 | if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
5635 | then | |
5636 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
5637 | fi | |
5638 | ||
c0d27fcc | 5639 | |
fe239f0f | 5640 | late_LDFLAGS=$LDFLAGS |
4af002d6 | 5641 | if test "$GCC" = yes; then |
fe239f0f AS |
5642 | LDFLAGS="$LDFLAGS -Wl,-znocombreloc" |
5643 | else | |
5644 | LDFLAGS="$LDFLAGS -znocombreloc" | |
5645 | fi | |
5646 | ||
bf89cb4d | 5647 | { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5 |
e9a63f04 | 5648 | $as_echo_n "checking for -znocombreloc... " >&6; } |
bf89cb4d | 5649 | cat >conftest.$ac_ext <<_ACEOF |
fe239f0f AS |
5650 | main(){return 0;} |
5651 | _ACEOF | |
bf89cb4d GM |
5652 | rm -f conftest.$ac_objext conftest$ac_exeext |
5653 | if { (ac_try="$ac_link" | |
5654 | case "(($ac_try" in | |
5655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5656 | *) ac_try_echo=$ac_try;; | |
5657 | esac | |
5658 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5659 | $as_echo "$ac_try_echo") >&5 | |
5660 | (eval "$ac_link") 2>conftest.er1 | |
5661 | ac_status=$? | |
5662 | grep -v '^ *+' conftest.er1 >conftest.err | |
5663 | rm -f conftest.er1 | |
5664 | cat conftest.err >&5 | |
5665 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5666 | (exit $ac_status); } && { | |
5667 | test -z "$ac_c_werror_flag" || | |
5668 | test ! -s conftest.err | |
5669 | } && test -s conftest$ac_exeext && { | |
5670 | test "$cross_compiling" = yes || | |
5671 | $as_test_x conftest$ac_exeext | |
5672 | }; then | |
5673 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
e9a63f04 | 5674 | $as_echo "yes" >&6; } |
fe239f0f | 5675 | else |
bf89cb4d GM |
5676 | $as_echo "$as_me: failed program was:" >&5 |
5677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5678 | ||
5679 | LDFLAGS=$late_LDFLAGS | |
5680 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
e9a63f04 | 5681 | $as_echo "no" >&6; } |
fe239f0f | 5682 | fi |
bf89cb4d GM |
5683 | |
5684 | rm -rf conftest.dSYM | |
5685 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5686 | conftest$ac_exeext conftest.$ac_ext | |
fe239f0f | 5687 | |
3b33a005 DL |
5688 | #### Extract some information from the operating system and machine files. |
5689 | ||
bf89cb4d | 5690 | { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out |
3b33a005 | 5691 | - which libraries the lib-src programs will want, and |
503d2be0 | 5692 | - whether the GNU malloc routines are usable..." >&5 |
e9a63f04 | 5693 | $as_echo "$as_me: checking the machine- and system-dependent files to find out |
3b33a005 | 5694 | - which libraries the lib-src programs will want, and |
503d2be0 | 5695 | - whether the GNU malloc routines are usable..." >&6;} |
3b33a005 DL |
5696 | |
5697 | ### First figure out CFLAGS (which we use for running the compiler here) | |
5698 | ### and REAL_CFLAGS (which we use for real compilation). | |
5699 | ### The two are the same except on a few systems, where they are made | |
5700 | ### different to work around various lossages. For example, | |
5701 | ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
5702 | ### as implying static linking. | |
5703 | ||
5704 | ### If the CFLAGS env var is specified, we use that value | |
5705 | ### instead of the default. | |
5706 | ||
5707 | ### It's not important that this name contain the PID; you can't run | |
5708 | ### two configures in the same directory and have anything work | |
5709 | ### anyway. | |
5710 | tempcname="conftest.c" | |
5711 | ||
5712 | echo ' | |
5713 | #include "'${srcdir}'/src/'${opsysfile}'" | |
5714 | #include "'${srcdir}'/src/'${machfile}'" | |
5715 | #ifndef LIBS_MACHINE | |
5716 | #define LIBS_MACHINE | |
5717 | #endif | |
5718 | #ifndef LIBS_SYSTEM | |
5719 | #define LIBS_SYSTEM | |
5720 | #endif | |
5721 | #ifndef C_SWITCH_SYSTEM | |
5722 | #define C_SWITCH_SYSTEM | |
5723 | #endif | |
5724 | #ifndef C_SWITCH_MACHINE | |
5725 | #define C_SWITCH_MACHINE | |
5726 | #endif | |
5727 | configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
5728 | configure___ c_switch_system=C_SWITCH_SYSTEM | |
5729 | configure___ c_switch_machine=C_SWITCH_MACHINE | |
5730 | ||
5731 | #ifndef LIB_X11_LIB | |
5732 | #define LIB_X11_LIB -lX11 | |
5733 | #endif | |
5734 | ||
3b33a005 DL |
5735 | #ifndef LIBX11_SYSTEM |
5736 | #define LIBX11_SYSTEM | |
5737 | #endif | |
9d2818d6 | 5738 | configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM |
3b33a005 DL |
5739 | |
5740 | #ifdef UNEXEC | |
5741 | configure___ unexec=UNEXEC | |
5742 | #else | |
5743 | configure___ unexec=unexec.o | |
5744 | #endif | |
5745 | ||
5746 | #ifdef SYSTEM_MALLOC | |
5747 | configure___ system_malloc=yes | |
5748 | #else | |
5749 | configure___ system_malloc=no | |
5750 | #endif | |
5751 | ||
ef9e4345 GM |
5752 | #ifdef USE_MMAP_FOR_BUFFERS |
5753 | configure___ use_mmap_for_buffers=yes | |
73b77ee5 | 5754 | #else |
ef9e4345 | 5755 | configure___ use_mmap_for_buffers=no |
73b77ee5 GM |
5756 | #endif |
5757 | ||
3b33a005 DL |
5758 | #ifndef C_DEBUG_SWITCH |
5759 | #define C_DEBUG_SWITCH -g | |
5760 | #endif | |
5761 | ||
5762 | #ifndef C_OPTIMIZE_SWITCH | |
5763 | #ifdef __GNUC__ | |
5764 | #define C_OPTIMIZE_SWITCH -O2 | |
5765 | #else | |
5766 | #define C_OPTIMIZE_SWITCH -O | |
5767 | #endif | |
5768 | #endif | |
5769 | ||
01abe918 CY |
5770 | #ifndef C_WARNINGS_SWITCH |
5771 | #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH} | |
5772 | #endif | |
5773 | ||
3b33a005 DL |
5774 | #ifndef LD_SWITCH_MACHINE |
5775 | #define LD_SWITCH_MACHINE | |
5776 | #endif | |
5777 | ||
5778 | #ifndef LD_SWITCH_SYSTEM | |
5779 | #define LD_SWITCH_SYSTEM | |
5780 | #endif | |
5781 | ||
5782 | #ifndef LD_SWITCH_X_SITE_AUX | |
5783 | #define LD_SWITCH_X_SITE_AUX | |
503d2be0 | 5784 | #endif |
3b33a005 DL |
5785 | |
5786 | configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
5787 | configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
5788 | ||
5789 | #ifdef THIS_IS_CONFIGURE | |
5790 | ||
5791 | /* Get the CFLAGS for tests in configure. */ | |
5792 | #ifdef __GNUC__ | |
5793 | configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
5794 | #else | |
5795 | configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
5796 | #endif | |
5797 | ||
5798 | #else /* not THIS_IS_CONFIGURE */ | |
5799 | ||
5800 | /* Get the CFLAGS for real compilation. */ | |
5801 | #ifdef __GNUC__ | |
9fe40f0e | 5802 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}' |
3b33a005 DL |
5803 | #else |
5804 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
5805 | #endif | |
5806 | ||
5807 | #endif /* not THIS_IS_CONFIGURE */ | |
5808 | ' > ${tempcname} | |
5809 | ||
9fe40f0e DN |
5810 | LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}" |
5811 | ||
3b33a005 DL |
5812 | # The value of CPP is a quoted variable reference, so we need to do this |
5813 | # to get its actual value... | |
5814 | CPP=`eval "echo $CPP"` | |
5815 | eval `${CPP} -Isrc ${tempcname} \ | |
5816 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
5817 | if test "x$SPECIFIED_CFLAGS" = x; then | |
5818 | eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
5819 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
5820 | else | |
5821 | REAL_CFLAGS="$CFLAGS" | |
5822 | fi | |
5823 | rm ${tempcname} | |
5824 | ||
5825 | ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
5826 | ||
5827 | ### Make sure subsequent tests use flags consistent with the build flags. | |
5828 | ||
5829 | if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
5830 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
5831 | else | |
5832 | CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
5833 | fi | |
5834 | ||
6bae0ccf DL |
5835 | |
5836 | ||
ca81d7a0 | 5837 | # Check whether --enable-largefile was given. |
bf89cb4d | 5838 | if test "${enable_largefile+set}" = set; then |
ca81d7a0 JD |
5839 | enableval=$enable_largefile; |
5840 | fi | |
f4988be7 | 5841 | |
503d2be0 | 5842 | if test "$enable_largefile" != no; then |
f4988be7 | 5843 | |
bf89cb4d | 5844 | { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
e9a63f04 | 5845 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
bf89cb4d | 5846 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
e9a63f04 | 5847 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 5848 | else |
f4988be7 | 5849 | ac_cv_sys_largefile_CC=no |
503d2be0 AS |
5850 | if test "$GCC" != yes; then |
5851 | ac_save_CC=$CC | |
5852 | while :; do | |
ca81d7a0 JD |
5853 | # IRIX 6.2 and later do not support large files by default, |
5854 | # so use the C compiler's -n32 option if that helps. | |
bf89cb4d GM |
5855 | cat >conftest.$ac_ext <<_ACEOF |
5856 | /* confdefs.h. */ | |
5857 | _ACEOF | |
5858 | cat confdefs.h >>conftest.$ac_ext | |
5859 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 5860 | /* end confdefs.h. */ |
f4988be7 | 5861 | #include <sys/types.h> |
503d2be0 AS |
5862 | /* Check that off_t can represent 2**63 - 1 correctly. |
5863 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5864 | since some C++ compilers masquerading as C compilers | |
5865 | incorrectly reject 9223372036854775807. */ | |
5866 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5867 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5868 | && LARGE_OFF_T % 2147483647 == 1) | |
5869 | ? 1 : -1]; | |
5870 | int | |
5871 | main () | |
5872 | { | |
f4988be7 | 5873 | |
503d2be0 AS |
5874 | ; |
5875 | return 0; | |
5876 | } | |
5877 | _ACEOF | |
bf89cb4d GM |
5878 | rm -f conftest.$ac_objext |
5879 | if { (ac_try="$ac_compile" | |
5880 | case "(($ac_try" in | |
5881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5882 | *) ac_try_echo=$ac_try;; | |
5883 | esac | |
5884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5885 | $as_echo "$ac_try_echo") >&5 | |
5886 | (eval "$ac_compile") 2>conftest.er1 | |
5887 | ac_status=$? | |
5888 | grep -v '^ *+' conftest.er1 >conftest.err | |
5889 | rm -f conftest.er1 | |
5890 | cat conftest.err >&5 | |
5891 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5892 | (exit $ac_status); } && { | |
5893 | test -z "$ac_c_werror_flag" || | |
5894 | test ! -s conftest.err | |
5895 | } && test -s conftest.$ac_objext; then | |
503d2be0 | 5896 | break |
bf89cb4d GM |
5897 | else |
5898 | $as_echo "$as_me: failed program was:" >&5 | |
5899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5900 | ||
5901 | ||
503d2be0 | 5902 | fi |
bf89cb4d | 5903 | |
ca81d7a0 JD |
5904 | rm -f core conftest.err conftest.$ac_objext |
5905 | CC="$CC -n32" | |
bf89cb4d GM |
5906 | rm -f conftest.$ac_objext |
5907 | if { (ac_try="$ac_compile" | |
5908 | case "(($ac_try" in | |
5909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5910 | *) ac_try_echo=$ac_try;; | |
5911 | esac | |
5912 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5913 | $as_echo "$ac_try_echo") >&5 | |
5914 | (eval "$ac_compile") 2>conftest.er1 | |
5915 | ac_status=$? | |
5916 | grep -v '^ *+' conftest.er1 >conftest.err | |
5917 | rm -f conftest.er1 | |
5918 | cat conftest.err >&5 | |
5919 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5920 | (exit $ac_status); } && { | |
5921 | test -z "$ac_c_werror_flag" || | |
5922 | test ! -s conftest.err | |
5923 | } && test -s conftest.$ac_objext; then | |
503d2be0 | 5924 | ac_cv_sys_largefile_CC=' -n32'; break |
bf89cb4d GM |
5925 | else |
5926 | $as_echo "$as_me: failed program was:" >&5 | |
5927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5928 | ||
5929 | ||
503d2be0 | 5930 | fi |
bf89cb4d | 5931 | |
ca81d7a0 | 5932 | rm -f core conftest.err conftest.$ac_objext |
edfaf76d | 5933 | break |
503d2be0 AS |
5934 | done |
5935 | CC=$ac_save_CC | |
5936 | rm -f conftest.$ac_ext | |
5937 | fi | |
b192d653 | 5938 | fi |
bf89cb4d | 5939 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
e9a63f04 | 5940 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
503d2be0 AS |
5941 | if test "$ac_cv_sys_largefile_CC" != no; then |
5942 | CC=$CC$ac_cv_sys_largefile_CC | |
5943 | fi | |
b192d653 | 5944 | |
bf89cb4d | 5945 | { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
e9a63f04 | 5946 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
bf89cb4d | 5947 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
e9a63f04 | 5948 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 5949 | else |
503d2be0 | 5950 | while :; do |
bf89cb4d GM |
5951 | cat >conftest.$ac_ext <<_ACEOF |
5952 | /* confdefs.h. */ | |
5953 | _ACEOF | |
5954 | cat confdefs.h >>conftest.$ac_ext | |
5955 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 5956 | /* end confdefs.h. */ |
f4988be7 | 5957 | #include <sys/types.h> |
503d2be0 AS |
5958 | /* Check that off_t can represent 2**63 - 1 correctly. |
5959 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5960 | since some C++ compilers masquerading as C compilers | |
5961 | incorrectly reject 9223372036854775807. */ | |
5962 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5963 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5964 | && LARGE_OFF_T % 2147483647 == 1) | |
5965 | ? 1 : -1]; | |
5966 | int | |
5967 | main () | |
5968 | { | |
f4988be7 | 5969 | |
503d2be0 AS |
5970 | ; |
5971 | return 0; | |
5972 | } | |
5973 | _ACEOF | |
bf89cb4d GM |
5974 | rm -f conftest.$ac_objext |
5975 | if { (ac_try="$ac_compile" | |
5976 | case "(($ac_try" in | |
5977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5978 | *) ac_try_echo=$ac_try;; | |
5979 | esac | |
5980 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5981 | $as_echo "$ac_try_echo") >&5 | |
5982 | (eval "$ac_compile") 2>conftest.er1 | |
5983 | ac_status=$? | |
5984 | grep -v '^ *+' conftest.er1 >conftest.err | |
5985 | rm -f conftest.er1 | |
5986 | cat conftest.err >&5 | |
5987 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5988 | (exit $ac_status); } && { | |
5989 | test -z "$ac_c_werror_flag" || | |
5990 | test ! -s conftest.err | |
5991 | } && test -s conftest.$ac_objext; then | |
f053c89f | 5992 | ac_cv_sys_file_offset_bits=no; break |
bf89cb4d GM |
5993 | else |
5994 | $as_echo "$as_me: failed program was:" >&5 | |
5995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5996 | ||
5997 | ||
503d2be0 | 5998 | fi |
bf89cb4d | 5999 | |
ca81d7a0 | 6000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bf89cb4d GM |
6001 | cat >conftest.$ac_ext <<_ACEOF |
6002 | /* confdefs.h. */ | |
6003 | _ACEOF | |
6004 | cat confdefs.h >>conftest.$ac_ext | |
6005 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 6006 | /* end confdefs.h. */ |
f4988be7 GM |
6007 | #define _FILE_OFFSET_BITS 64 |
6008 | #include <sys/types.h> | |
503d2be0 AS |
6009 | /* Check that off_t can represent 2**63 - 1 correctly. |
6010 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6011 | since some C++ compilers masquerading as C compilers | |
6012 | incorrectly reject 9223372036854775807. */ | |
6013 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6014 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6015 | && LARGE_OFF_T % 2147483647 == 1) | |
6016 | ? 1 : -1]; | |
6017 | int | |
6018 | main () | |
6019 | { | |
6020 | ||
6021 | ; | |
6022 | return 0; | |
6023 | } | |
6024 | _ACEOF | |
bf89cb4d GM |
6025 | rm -f conftest.$ac_objext |
6026 | if { (ac_try="$ac_compile" | |
6027 | case "(($ac_try" in | |
6028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6029 | *) ac_try_echo=$ac_try;; | |
6030 | esac | |
6031 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6032 | $as_echo "$ac_try_echo") >&5 | |
6033 | (eval "$ac_compile") 2>conftest.er1 | |
6034 | ac_status=$? | |
6035 | grep -v '^ *+' conftest.er1 >conftest.err | |
6036 | rm -f conftest.er1 | |
6037 | cat conftest.err >&5 | |
6038 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6039 | (exit $ac_status); } && { | |
6040 | test -z "$ac_c_werror_flag" || | |
6041 | test ! -s conftest.err | |
6042 | } && test -s conftest.$ac_objext; then | |
503d2be0 | 6043 | ac_cv_sys_file_offset_bits=64; break |
bf89cb4d GM |
6044 | else |
6045 | $as_echo "$as_me: failed program was:" >&5 | |
6046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6047 | ||
6048 | ||
503d2be0 | 6049 | fi |
bf89cb4d | 6050 | |
ca81d7a0 | 6051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f053c89f | 6052 | ac_cv_sys_file_offset_bits=unknown |
503d2be0 AS |
6053 | break |
6054 | done | |
ba4481b5 | 6055 | fi |
bf89cb4d | 6056 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
e9a63f04 | 6057 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
f053c89f CY |
6058 | case $ac_cv_sys_file_offset_bits in #( |
6059 | no | unknown) ;; | |
6060 | *) | |
c0d27fcc | 6061 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 6062 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
c0d27fcc | 6063 | _ACEOF |
f053c89f CY |
6064 | ;; |
6065 | esac | |
e9a63f04 | 6066 | rm -rf conftest* |
f053c89f | 6067 | if test $ac_cv_sys_file_offset_bits = unknown; then |
bf89cb4d | 6068 | { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
e9a63f04 | 6069 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
bf89cb4d | 6070 | if test "${ac_cv_sys_large_files+set}" = set; then |
e9a63f04 | 6071 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 6072 | else |
503d2be0 | 6073 | while :; do |
bf89cb4d GM |
6074 | cat >conftest.$ac_ext <<_ACEOF |
6075 | /* confdefs.h. */ | |
6076 | _ACEOF | |
6077 | cat confdefs.h >>conftest.$ac_ext | |
6078 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 6079 | /* end confdefs.h. */ |
503d2be0 AS |
6080 | #include <sys/types.h> |
6081 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6082 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6083 | since some C++ compilers masquerading as C compilers | |
6084 | incorrectly reject 9223372036854775807. */ | |
6085 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6086 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6087 | && LARGE_OFF_T % 2147483647 == 1) | |
6088 | ? 1 : -1]; | |
6089 | int | |
6090 | main () | |
6091 | { | |
ba4481b5 | 6092 | |
503d2be0 AS |
6093 | ; |
6094 | return 0; | |
6095 | } | |
6096 | _ACEOF | |
bf89cb4d GM |
6097 | rm -f conftest.$ac_objext |
6098 | if { (ac_try="$ac_compile" | |
6099 | case "(($ac_try" in | |
6100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6101 | *) ac_try_echo=$ac_try;; | |
6102 | esac | |
6103 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6104 | $as_echo "$ac_try_echo") >&5 | |
6105 | (eval "$ac_compile") 2>conftest.er1 | |
6106 | ac_status=$? | |
6107 | grep -v '^ *+' conftest.er1 >conftest.err | |
6108 | rm -f conftest.er1 | |
6109 | cat conftest.err >&5 | |
6110 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6111 | (exit $ac_status); } && { | |
6112 | test -z "$ac_c_werror_flag" || | |
6113 | test ! -s conftest.err | |
6114 | } && test -s conftest.$ac_objext; then | |
f053c89f | 6115 | ac_cv_sys_large_files=no; break |
bf89cb4d GM |
6116 | else |
6117 | $as_echo "$as_me: failed program was:" >&5 | |
6118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6119 | ||
6120 | ||
503d2be0 | 6121 | fi |
bf89cb4d | 6122 | |
ca81d7a0 | 6123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bf89cb4d GM |
6124 | cat >conftest.$ac_ext <<_ACEOF |
6125 | /* confdefs.h. */ | |
6126 | _ACEOF | |
6127 | cat confdefs.h >>conftest.$ac_ext | |
6128 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 6129 | /* end confdefs.h. */ |
f4988be7 | 6130 | #define _LARGE_FILES 1 |
503d2be0 AS |
6131 | #include <sys/types.h> |
6132 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6133 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6134 | since some C++ compilers masquerading as C compilers | |
6135 | incorrectly reject 9223372036854775807. */ | |
6136 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6137 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6138 | && LARGE_OFF_T % 2147483647 == 1) | |
6139 | ? 1 : -1]; | |
6140 | int | |
6141 | main () | |
6142 | { | |
f4988be7 | 6143 | |
503d2be0 AS |
6144 | ; |
6145 | return 0; | |
6146 | } | |
6147 | _ACEOF | |
bf89cb4d GM |
6148 | rm -f conftest.$ac_objext |
6149 | if { (ac_try="$ac_compile" | |
6150 | case "(($ac_try" in | |
6151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6152 | *) ac_try_echo=$ac_try;; | |
6153 | esac | |
6154 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6155 | $as_echo "$ac_try_echo") >&5 | |
6156 | (eval "$ac_compile") 2>conftest.er1 | |
6157 | ac_status=$? | |
6158 | grep -v '^ *+' conftest.er1 >conftest.err | |
6159 | rm -f conftest.er1 | |
6160 | cat conftest.err >&5 | |
6161 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6162 | (exit $ac_status); } && { | |
6163 | test -z "$ac_c_werror_flag" || | |
6164 | test ! -s conftest.err | |
6165 | } && test -s conftest.$ac_objext; then | |
503d2be0 | 6166 | ac_cv_sys_large_files=1; break |
bf89cb4d GM |
6167 | else |
6168 | $as_echo "$as_me: failed program was:" >&5 | |
6169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6170 | ||
6171 | ||
503d2be0 | 6172 | fi |
bf89cb4d | 6173 | |
ca81d7a0 | 6174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f053c89f | 6175 | ac_cv_sys_large_files=unknown |
503d2be0 AS |
6176 | break |
6177 | done | |
ba4481b5 | 6178 | fi |
bf89cb4d | 6179 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
e9a63f04 | 6180 | $as_echo "$ac_cv_sys_large_files" >&6; } |
f053c89f CY |
6181 | case $ac_cv_sys_large_files in #( |
6182 | no | unknown) ;; | |
6183 | *) | |
c0d27fcc | 6184 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 6185 | #define _LARGE_FILES $ac_cv_sys_large_files |
c0d27fcc | 6186 | _ACEOF |
f053c89f CY |
6187 | ;; |
6188 | esac | |
e9a63f04 | 6189 | rm -rf conftest* |
f053c89f | 6190 | fi |
503d2be0 | 6191 | fi |
ba4481b5 | 6192 | |
c0d27fcc | 6193 | |
439f58ee | 6194 | |
55e6d9b2 | 6195 | ### The standard library on x86-64 and s390x GNU/Linux distributions can |
bc5d9888 | 6196 | ### be located in either /usr/lib64 or /usr/lib. |
076f0c7d GM |
6197 | ### In some rare cases, /usr/lib64 exists but does not contain the |
6198 | ### relevant files (bug#1287). Hence test for crtn.o. | |
bc5d9888 | 6199 | case "${canonical}" in |
55e6d9b2 | 6200 | x86_64-*-linux-gnu* | s390x-*-linux-gnu* ) |
076f0c7d | 6201 | if test -e /usr/lib64/crtn.o; then |
bc5d9888 | 6202 | |
bf89cb4d GM |
6203 | cat >>confdefs.h <<\_ACEOF |
6204 | #define HAVE_LIB64_DIR 1 | |
6205 | _ACEOF | |
bc5d9888 CY |
6206 | |
6207 | fi | |
6208 | esac | |
6209 | ||
439f58ee JD |
6210 | |
6211 | ||
6212 | ||
2c9dccc9 PJ |
6213 | if test "${with_sound}" != "no"; then |
6214 | # Sound support for GNU/Linux and the free BSDs. | |
bf89cb4d GM |
6215 | |
6216 | ||
6217 | ||
6218 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
6219 | do | |
6220 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6221 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6222 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6223 | $as_echo_n "checking for $ac_header... " >&6; } | |
6224 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6225 | $as_echo_n "(cached) " >&6 | |
6226 | fi | |
6227 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6228 | $as_echo "$as_val"'` | |
6229 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6230 | $as_echo "$ac_res" >&6; } | |
6231 | else | |
6232 | # Is the header compilable? | |
6233 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6234 | $as_echo_n "checking $ac_header usability... " >&6; } | |
6235 | cat >conftest.$ac_ext <<_ACEOF | |
6236 | /* confdefs.h. */ | |
6237 | _ACEOF | |
6238 | cat confdefs.h >>conftest.$ac_ext | |
6239 | cat >>conftest.$ac_ext <<_ACEOF | |
6240 | /* end confdefs.h. */ | |
6241 | $ac_includes_default | |
6242 | #include <$ac_header> | |
6243 | _ACEOF | |
6244 | rm -f conftest.$ac_objext | |
6245 | if { (ac_try="$ac_compile" | |
6246 | case "(($ac_try" in | |
6247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6248 | *) ac_try_echo=$ac_try;; | |
6249 | esac | |
6250 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6251 | $as_echo "$ac_try_echo") >&5 | |
6252 | (eval "$ac_compile") 2>conftest.er1 | |
6253 | ac_status=$? | |
6254 | grep -v '^ *+' conftest.er1 >conftest.err | |
6255 | rm -f conftest.er1 | |
6256 | cat conftest.err >&5 | |
6257 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6258 | (exit $ac_status); } && { | |
6259 | test -z "$ac_c_werror_flag" || | |
6260 | test ! -s conftest.err | |
6261 | } && test -s conftest.$ac_objext; then | |
6262 | ac_header_compiler=yes | |
6263 | else | |
6264 | $as_echo "$as_me: failed program was:" >&5 | |
6265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6266 | ||
6267 | ac_header_compiler=no | |
6268 | fi | |
6269 | ||
6270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6271 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6272 | $as_echo "$ac_header_compiler" >&6; } | |
6273 | ||
6274 | # Is the header present? | |
6275 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6276 | $as_echo_n "checking $ac_header presence... " >&6; } | |
6277 | cat >conftest.$ac_ext <<_ACEOF | |
6278 | /* confdefs.h. */ | |
6279 | _ACEOF | |
6280 | cat confdefs.h >>conftest.$ac_ext | |
6281 | cat >>conftest.$ac_ext <<_ACEOF | |
6282 | /* end confdefs.h. */ | |
6283 | #include <$ac_header> | |
6284 | _ACEOF | |
6285 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6286 | case "(($ac_try" in | |
6287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6288 | *) ac_try_echo=$ac_try;; | |
6289 | esac | |
6290 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6291 | $as_echo "$ac_try_echo") >&5 | |
6292 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6293 | ac_status=$? | |
6294 | grep -v '^ *+' conftest.er1 >conftest.err | |
6295 | rm -f conftest.er1 | |
6296 | cat conftest.err >&5 | |
6297 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6298 | (exit $ac_status); } >/dev/null && { | |
6299 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6300 | test ! -s conftest.err | |
6301 | }; then | |
6302 | ac_header_preproc=yes | |
6303 | else | |
6304 | $as_echo "$as_me: failed program was:" >&5 | |
6305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6306 | ||
6307 | ac_header_preproc=no | |
6308 | fi | |
6309 | ||
6310 | rm -f conftest.err conftest.$ac_ext | |
6311 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6312 | $as_echo "$ac_header_preproc" >&6; } | |
6313 | ||
6314 | # So? What about this header? | |
6315 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6316 | yes:no: ) | |
6317 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6318 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6319 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6320 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6321 | ac_header_preproc=yes | |
6322 | ;; | |
6323 | no:yes:* ) | |
6324 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6325 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6326 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6327 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6328 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6329 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6330 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6331 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6332 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6333 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6334 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6335 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6336 | ||
6337 | ;; | |
6338 | esac | |
6339 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6340 | $as_echo_n "checking for $ac_header... " >&6; } | |
6341 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6342 | $as_echo_n "(cached) " >&6 | |
6343 | else | |
6344 | eval "$as_ac_Header=\$ac_header_preproc" | |
6345 | fi | |
6346 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6347 | $as_echo "$as_val"'` | |
6348 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6349 | $as_echo "$ac_res" >&6; } | |
6350 | ||
6351 | fi | |
6352 | if test `eval 'as_val=${'$as_ac_Header'} | |
6353 | $as_echo "$as_val"'` = yes; then | |
c0d27fcc | 6354 | cat >>confdefs.h <<_ACEOF |
e9a63f04 | 6355 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 6356 | _ACEOF |
f4988be7 GM |
6357 | |
6358 | fi | |
c0d27fcc | 6359 | |
98418dba CW |
6360 | done |
6361 | ||
6362 | # Emulation library used on NetBSD. | |
bf89cb4d | 6363 | { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
e9a63f04 | 6364 | $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } |
bf89cb4d | 6365 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
e9a63f04 | 6366 | $as_echo_n "(cached) " >&6 |
f4988be7 | 6367 | else |
98418dba CW |
6368 | ac_check_lib_save_LIBS=$LIBS |
6369 | LIBS="-lossaudio $LIBS" | |
bf89cb4d GM |
6370 | cat >conftest.$ac_ext <<_ACEOF |
6371 | /* confdefs.h. */ | |
6372 | _ACEOF | |
6373 | cat confdefs.h >>conftest.$ac_ext | |
6374 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 6375 | /* end confdefs.h. */ |
98418dba | 6376 | |
ca81d7a0 JD |
6377 | /* Override any GCC internal prototype to avoid an error. |
6378 | Use char because int might match the return type of a GCC | |
6379 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
6380 | #ifdef __cplusplus |
6381 | extern "C" | |
f4988be7 | 6382 | #endif |
98418dba | 6383 | char _oss_ioctl (); |
503d2be0 AS |
6384 | int |
6385 | main () | |
6386 | { | |
ca81d7a0 | 6387 | return _oss_ioctl (); |
503d2be0 AS |
6388 | ; |
6389 | return 0; | |
6390 | } | |
6391 | _ACEOF | |
bf89cb4d GM |
6392 | rm -f conftest.$ac_objext conftest$ac_exeext |
6393 | if { (ac_try="$ac_link" | |
6394 | case "(($ac_try" in | |
6395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6396 | *) ac_try_echo=$ac_try;; | |
6397 | esac | |
6398 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6399 | $as_echo "$ac_try_echo") >&5 | |
6400 | (eval "$ac_link") 2>conftest.er1 | |
6401 | ac_status=$? | |
6402 | grep -v '^ *+' conftest.er1 >conftest.err | |
6403 | rm -f conftest.er1 | |
6404 | cat conftest.err >&5 | |
6405 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6406 | (exit $ac_status); } && { | |
6407 | test -z "$ac_c_werror_flag" || | |
6408 | test ! -s conftest.err | |
6409 | } && test -s conftest$ac_exeext && { | |
6410 | test "$cross_compiling" = yes || | |
6411 | $as_test_x conftest$ac_exeext | |
6412 | }; then | |
98418dba | 6413 | ac_cv_lib_ossaudio__oss_ioctl=yes |
f4988be7 | 6414 | else |
bf89cb4d GM |
6415 | $as_echo "$as_me: failed program was:" >&5 |
6416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6417 | ||
6418 | ac_cv_lib_ossaudio__oss_ioctl=no | |
f4988be7 | 6419 | fi |
bf89cb4d GM |
6420 | |
6421 | rm -rf conftest.dSYM | |
6422 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6423 | conftest$ac_exeext conftest.$ac_ext | |
98418dba | 6424 | LIBS=$ac_check_lib_save_LIBS |
f4988be7 | 6425 | fi |
bf89cb4d | 6426 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
e9a63f04 | 6427 | $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } |
bf89cb4d | 6428 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
98418dba CW |
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" | |
439f58ee JD |
6438 | |
6439 | succeeded=no | |
6440 | ||
00b9c927 | 6441 | # Extract the first word of "pkg-config", so it can be a program name with args. |
439f58ee | 6442 | set dummy pkg-config; ac_word=$2 |
bf89cb4d | 6443 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
e9a63f04 | 6444 | $as_echo_n "checking for $ac_word... " >&6; } |
bf89cb4d | 6445 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
e9a63f04 | 6446 | $as_echo_n "(cached) " >&6 |
439f58ee JD |
6447 | else |
6448 | case $PKG_CONFIG in | |
6449 | [\\/]* | ?:[\\/]*) | |
6450 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
6451 | ;; | |
6452 | *) | |
6453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6454 | for as_dir in $PATH | |
6455 | do | |
6456 | IFS=$as_save_IFS | |
6457 | test -z "$as_dir" && as_dir=. | |
bf89cb4d | 6458 | for ac_exec_ext in '' $ac_executable_extensions; do |
f053c89f | 6459 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
439f58ee | 6460 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
bf89cb4d | 6461 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
439f58ee JD |
6462 | break 2 |
6463 | fi | |
6464 | done | |
bf89cb4d | 6465 | done |
ca81d7a0 | 6466 | IFS=$as_save_IFS |
439f58ee JD |
6467 | |
6468 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
6469 | ;; | |
6470 | esac | |
6471 | fi | |
6472 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
439f58ee | 6473 | if test -n "$PKG_CONFIG"; then |
bf89cb4d | 6474 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
e9a63f04 | 6475 | $as_echo "$PKG_CONFIG" >&6; } |
439f58ee | 6476 | else |
bf89cb4d | 6477 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
e9a63f04 | 6478 | $as_echo "no" >&6; } |
439f58ee JD |
6479 | fi |
6480 | ||
ca81d7a0 | 6481 | |
439f58ee JD |
6482 | |
6483 | if test "$PKG_CONFIG" = "no" ; then | |
6484 | HAVE_ALSA=no | |
6485 | else | |
6486 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
6487 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
bf89cb4d | 6488 | { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5 |
e9a63f04 | 6489 | $as_echo_n "checking for $ALSA_MODULES... " >&6; } |
439f58ee | 6490 | |
67db6aa2 | 6491 | if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then |
bf89cb4d | 6492 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
e9a63f04 | 6493 | $as_echo "yes" >&6; } |
439f58ee JD |
6494 | succeeded=yes |
6495 | ||
bf89cb4d | 6496 | { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5 |
e9a63f04 | 6497 | $as_echo_n "checking ALSA_CFLAGS... " >&6; } |
94315858 | 6498 | ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` |
bf89cb4d | 6499 | { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5 |
e9a63f04 | 6500 | $as_echo "$ALSA_CFLAGS" >&6; } |
439f58ee | 6501 | |
bf89cb4d | 6502 | { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5 |
e9a63f04 | 6503 | $as_echo_n "checking ALSA_LIBS... " >&6; } |
94315858 | 6504 | ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` |
bf89cb4d | 6505 | { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5 |
e9a63f04 | 6506 | $as_echo "$ALSA_LIBS" >&6; } |
439f58ee | 6507 | else |
bf89cb4d | 6508 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
e9a63f04 | 6509 | $as_echo "no" >&6; } |
439f58ee JD |
6510 | ALSA_CFLAGS="" |
6511 | ALSA_LIBS="" | |
6512 | ## If we have a custom action on failure, don't print errors, but | |
6513 | ## do set a variable so people can do so. | |
6514 | ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"` | |
6515 | ||
6516 | fi | |
6517 | ||
6518 | ||
6519 | ||
6520 | else | |
6521 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
6522 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
6523 | fi | |
6524 | fi | |
6525 | ||
6526 | if test $succeeded = yes; then | |
6527 | HAVE_ALSA=yes | |
6528 | else | |
6529 | HAVE_ALSA=no | |
6530 | fi | |
6531 | ||
6532 | if test $HAVE_ALSA = yes; then | |
ca81d7a0 JD |
6533 | SAVE_CFLAGS="$CFLAGS" |
6534 | SAVE_LDFLAGS="$LDFLAGS" | |
6535 | CFLAGS="$ALSA_CFLAGS $CFLAGS" | |
6536 | LDFLAGS="$ALSA_LIBS $LDFLAGS" | |
bf89cb4d GM |
6537 | cat >conftest.$ac_ext <<_ACEOF |
6538 | /* confdefs.h. */ | |
6539 | _ACEOF | |
6540 | cat confdefs.h >>conftest.$ac_ext | |
6541 | cat >>conftest.$ac_ext <<_ACEOF | |
ca81d7a0 JD |
6542 | /* end confdefs.h. */ |
6543 | #include <asoundlib.h> | |
6544 | int | |
6545 | main () | |
6546 | { | |
6547 | snd_lib_error_set_handler (0); | |
6548 | ; | |
6549 | return 0; | |
6550 | } | |
6551 | _ACEOF | |
bf89cb4d GM |
6552 | rm -f conftest.$ac_objext |
6553 | if { (ac_try="$ac_compile" | |
6554 | case "(($ac_try" in | |
6555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6556 | *) ac_try_echo=$ac_try;; | |
6557 | esac | |
6558 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6559 | $as_echo "$ac_try_echo") >&5 | |
6560 | (eval "$ac_compile") 2>conftest.er1 | |
6561 | ac_status=$? | |
6562 | grep -v '^ *+' conftest.er1 >conftest.err | |
6563 | rm -f conftest.er1 | |
6564 | cat conftest.err >&5 | |
6565 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6566 | (exit $ac_status); } && { | |
6567 | test -z "$ac_c_werror_flag" || | |
6568 | test ! -s conftest.err | |
6569 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 JD |
6570 | emacs_alsa_normal=yes |
6571 | else | |
bf89cb4d GM |
6572 | $as_echo "$as_me: failed program was:" >&5 |
6573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6574 | ||
6575 | emacs_alsa_normal=no | |
ca81d7a0 | 6576 | fi |
bf89cb4d | 6577 | |
ca81d7a0 JD |
6578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6579 | if test "$emacs_alsa_normal" != yes; then | |
bf89cb4d GM |
6580 | cat >conftest.$ac_ext <<_ACEOF |
6581 | /* confdefs.h. */ | |
6582 | _ACEOF | |
6583 | cat confdefs.h >>conftest.$ac_ext | |
6584 | cat >>conftest.$ac_ext <<_ACEOF | |
ca81d7a0 JD |
6585 | /* end confdefs.h. */ |
6586 | #include <alsa/asoundlib.h> | |
6587 | int | |
6588 | main () | |
6589 | { | |
6590 | snd_lib_error_set_handler (0); | |
6591 | ; | |
6592 | return 0; | |
6593 | } | |
6594 | _ACEOF | |
bf89cb4d GM |
6595 | rm -f conftest.$ac_objext |
6596 | if { (ac_try="$ac_compile" | |
6597 | case "(($ac_try" in | |
6598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6599 | *) ac_try_echo=$ac_try;; | |
6600 | esac | |
6601 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6602 | $as_echo "$ac_try_echo") >&5 | |
6603 | (eval "$ac_compile") 2>conftest.er1 | |
6604 | ac_status=$? | |
6605 | grep -v '^ *+' conftest.er1 >conftest.err | |
6606 | rm -f conftest.er1 | |
6607 | cat conftest.err >&5 | |
6608 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6609 | (exit $ac_status); } && { | |
6610 | test -z "$ac_c_werror_flag" || | |
6611 | test ! -s conftest.err | |
6612 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 JD |
6613 | emacs_alsa_subdir=yes |
6614 | else | |
bf89cb4d GM |
6615 | $as_echo "$as_me: failed program was:" >&5 |
6616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6617 | ||
6618 | emacs_alsa_subdir=no | |
6619 | fi | |
6620 | ||
6621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ca81d7a0 | 6622 | if test "$emacs_alsa_subdir" != yes; then |
bf89cb4d GM |
6623 | { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5 |
6624 | $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;} | |
6625 | { (exit 1); exit 1; }; } | |
ca81d7a0 JD |
6626 | fi |
6627 | ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" | |
6628 | fi | |
6629 | ||
6630 | CFLAGS="$SAVE_CFLAGS" | |
6631 | LDFLAGS="$SAVE_LDFLAGS" | |
439f58ee JD |
6632 | LIBSOUND="$LIBSOUND $ALSA_LIBS" |
6633 | CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" | |
6634 | ||
bf89cb4d GM |
6635 | cat >>confdefs.h <<\_ACEOF |
6636 | #define HAVE_ALSA 1 | |
6637 | _ACEOF | |
439f58ee JD |
6638 | |
6639 | fi | |
6640 | ||
f4988be7 | 6641 | fi |
c0d27fcc | 6642 | |
bf89cb4d GM |
6643 | |
6644 | ||
6645 | ||
6646 | ||
6647 | ||
6648 | ||
6649 | ||
6650 | ||
6651 | ||
6652 | ||
6653 | ||
6654 | ||
6655 | ||
6656 | ||
6657 | ||
6658 | ||
6659 | ||
6660 | ||
6661 | ||
6662 | ||
6663 | ||
6664 | ||
6665 | ||
6666 | ||
6667 | ||
6668 | ||
98418dba CW |
6669 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
6670 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | |
25ca0bca | 6671 | termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
551ffc27 | 6672 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ |
c6d09b8d | 6673 | sys/utsname.h pwd.h utmp.h |
bf89cb4d GM |
6674 | do |
6675 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6676 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6677 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6678 | $as_echo_n "checking for $ac_header... " >&6; } | |
6679 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6680 | $as_echo_n "(cached) " >&6 | |
6681 | fi | |
6682 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6683 | $as_echo "$as_val"'` | |
6684 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6685 | $as_echo "$ac_res" >&6; } | |
6686 | else | |
6687 | # Is the header compilable? | |
6688 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6689 | $as_echo_n "checking $ac_header usability... " >&6; } | |
6690 | cat >conftest.$ac_ext <<_ACEOF | |
6691 | /* confdefs.h. */ | |
6692 | _ACEOF | |
6693 | cat confdefs.h >>conftest.$ac_ext | |
6694 | cat >>conftest.$ac_ext <<_ACEOF | |
6695 | /* end confdefs.h. */ | |
6696 | $ac_includes_default | |
6697 | #include <$ac_header> | |
6698 | _ACEOF | |
6699 | rm -f conftest.$ac_objext | |
6700 | if { (ac_try="$ac_compile" | |
6701 | case "(($ac_try" in | |
6702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6703 | *) ac_try_echo=$ac_try;; | |
6704 | esac | |
6705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6706 | $as_echo "$ac_try_echo") >&5 | |
6707 | (eval "$ac_compile") 2>conftest.er1 | |
6708 | ac_status=$? | |
6709 | grep -v '^ *+' conftest.er1 >conftest.err | |
6710 | rm -f conftest.er1 | |
6711 | cat conftest.err >&5 | |
6712 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6713 | (exit $ac_status); } && { | |
6714 | test -z "$ac_c_werror_flag" || | |
6715 | test ! -s conftest.err | |
6716 | } && test -s conftest.$ac_objext; then | |
6717 | ac_header_compiler=yes | |
6718 | else | |
6719 | $as_echo "$as_me: failed program was:" >&5 | |
6720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6721 | ||
6722 | ac_header_compiler=no | |
6723 | fi | |
6724 | ||
6725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6726 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6727 | $as_echo "$ac_header_compiler" >&6; } | |
6728 | ||
6729 | # Is the header present? | |
6730 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6731 | $as_echo_n "checking $ac_header presence... " >&6; } | |
6732 | cat >conftest.$ac_ext <<_ACEOF | |
6733 | /* confdefs.h. */ | |
6734 | _ACEOF | |
6735 | cat confdefs.h >>conftest.$ac_ext | |
6736 | cat >>conftest.$ac_ext <<_ACEOF | |
6737 | /* end confdefs.h. */ | |
6738 | #include <$ac_header> | |
6739 | _ACEOF | |
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6746 | $as_echo "$ac_try_echo") >&5 | |
6747 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6748 | ac_status=$? | |
6749 | grep -v '^ *+' conftest.er1 >conftest.err | |
6750 | rm -f conftest.er1 | |
6751 | cat conftest.err >&5 | |
6752 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6753 | (exit $ac_status); } >/dev/null && { | |
6754 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6755 | test ! -s conftest.err | |
6756 | }; then | |
6757 | ac_header_preproc=yes | |
6758 | else | |
6759 | $as_echo "$as_me: failed program was:" >&5 | |
6760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6761 | ||
6762 | ac_header_preproc=no | |
6763 | fi | |
6764 | ||
6765 | rm -f conftest.err conftest.$ac_ext | |
6766 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6767 | $as_echo "$ac_header_preproc" >&6; } | |
6768 | ||
6769 | # So? What about this header? | |
6770 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6771 | yes:no: ) | |
6772 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6773 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6774 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6775 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6776 | ac_header_preproc=yes | |
6777 | ;; | |
6778 | no:yes:* ) | |
6779 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6780 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6781 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6782 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6783 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6784 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6785 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6786 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6787 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6788 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6789 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6790 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6791 | ||
6792 | ;; | |
6793 | esac | |
6794 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6795 | $as_echo_n "checking for $ac_header... " >&6; } | |
6796 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6797 | $as_echo_n "(cached) " >&6 | |
6798 | else | |
6799 | eval "$as_ac_Header=\$ac_header_preproc" | |
6800 | fi | |
6801 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6802 | $as_echo "$as_val"'` | |
6803 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6804 | $as_echo "$ac_res" >&6; } | |
6805 | ||
6806 | fi | |
6807 | if test `eval 'as_val=${'$as_ac_Header'} | |
6808 | $as_echo "$as_val"'` = yes; then | |
c0d27fcc | 6809 | cat >>confdefs.h <<_ACEOF |
e9a63f04 | 6810 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 6811 | _ACEOF |
34ec9ebe | 6812 | |
98418dba | 6813 | fi |
c0d27fcc | 6814 | |
98418dba CW |
6815 | done |
6816 | ||
22044edf | 6817 | |
bf89cb4d | 6818 | { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5 |
e9a63f04 | 6819 | $as_echo_n "checking if personality LINUX32 can be set... " >&6; } |
bf89cb4d GM |
6820 | cat >conftest.$ac_ext <<_ACEOF |
6821 | /* confdefs.h. */ | |
6822 | _ACEOF | |
6823 | cat confdefs.h >>conftest.$ac_ext | |
6824 | cat >>conftest.$ac_ext <<_ACEOF | |
f17e308a JD |
6825 | /* end confdefs.h. */ |
6826 | #include <sys/personality.h> | |
6827 | int | |
6828 | main () | |
6829 | { | |
6830 | personality (PER_LINUX32) | |
6831 | ; | |
6832 | return 0; | |
6833 | } | |
6834 | _ACEOF | |
bf89cb4d GM |
6835 | rm -f conftest.$ac_objext |
6836 | if { (ac_try="$ac_compile" | |
6837 | case "(($ac_try" in | |
6838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6839 | *) ac_try_echo=$ac_try;; | |
6840 | esac | |
6841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6842 | $as_echo "$ac_try_echo") >&5 | |
6843 | (eval "$ac_compile") 2>conftest.er1 | |
6844 | ac_status=$? | |
6845 | grep -v '^ *+' conftest.er1 >conftest.err | |
6846 | rm -f conftest.er1 | |
6847 | cat conftest.err >&5 | |
6848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6849 | (exit $ac_status); } && { | |
6850 | test -z "$ac_c_werror_flag" || | |
6851 | test ! -s conftest.err | |
6852 | } && test -s conftest.$ac_objext; then | |
f17e308a JD |
6853 | emacs_cv_personality_linux32=yes |
6854 | else | |
bf89cb4d GM |
6855 | $as_echo "$as_me: failed program was:" >&5 |
6856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6857 | ||
6858 | emacs_cv_personality_linux32=no | |
f17e308a | 6859 | fi |
bf89cb4d | 6860 | |
ca81d7a0 | 6861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bf89cb4d | 6862 | { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5 |
e9a63f04 | 6863 | $as_echo "$emacs_cv_personality_linux32" >&6; } |
f17e308a JD |
6864 | |
6865 | if test $emacs_cv_personality_linux32 = yes; then | |
6866 | ||
bf89cb4d GM |
6867 | cat >>confdefs.h <<\_ACEOF |
6868 | #define HAVE_PERSONALITY_LINUX32 1 | |
6869 | _ACEOF | |
f17e308a JD |
6870 | |
6871 | fi | |
6872 | ||
bf89cb4d | 6873 | |
22044edf | 6874 | for ac_header in term.h |
bf89cb4d GM |
6875 | do |
6876 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6877 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6878 | $as_echo_n "checking for $ac_header... " >&6; } | |
6879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6880 | $as_echo_n "(cached) " >&6 | |
6881 | else | |
6882 | cat >conftest.$ac_ext <<_ACEOF | |
6883 | /* confdefs.h. */ | |
6884 | _ACEOF | |
6885 | cat confdefs.h >>conftest.$ac_ext | |
6886 | cat >>conftest.$ac_ext <<_ACEOF | |
6887 | /* end confdefs.h. */ | |
6888 | #include <$ac_header> | |
6889 | _ACEOF | |
6890 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6891 | case "(($ac_try" in | |
6892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6893 | *) ac_try_echo=$ac_try;; | |
6894 | esac | |
6895 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6896 | $as_echo "$ac_try_echo") >&5 | |
6897 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6898 | ac_status=$? | |
6899 | grep -v '^ *+' conftest.er1 >conftest.err | |
6900 | rm -f conftest.er1 | |
6901 | cat conftest.err >&5 | |
6902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6903 | (exit $ac_status); } >/dev/null && { | |
6904 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6905 | test ! -s conftest.err | |
6906 | }; then | |
6907 | eval "$as_ac_Header=yes" | |
6908 | else | |
6909 | $as_echo "$as_me: failed program was:" >&5 | |
6910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6911 | ||
6912 | eval "$as_ac_Header=no" | |
6913 | fi | |
6914 | ||
6915 | rm -f conftest.err conftest.$ac_ext | |
6916 | fi | |
6917 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6918 | $as_echo "$as_val"'` | |
6919 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6920 | $as_echo "$ac_res" >&6; } | |
6921 | if test `eval 'as_val=${'$as_ac_Header'} | |
6922 | $as_echo "$as_val"'` = yes; then | |
22044edf | 6923 | cat >>confdefs.h <<_ACEOF |
bf89cb4d | 6924 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
22044edf DL |
6925 | _ACEOF |
6926 | ||
6927 | fi | |
6928 | ||
6929 | done | |
6930 | ||
bf89cb4d | 6931 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
e9a63f04 | 6932 | $as_echo_n "checking for ANSI C header files... " >&6; } |
bf89cb4d | 6933 | if test "${ac_cv_header_stdc+set}" = set; then |
e9a63f04 | 6934 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 6935 | else |
bf89cb4d GM |
6936 | cat >conftest.$ac_ext <<_ACEOF |
6937 | /* confdefs.h. */ | |
6938 | _ACEOF | |
6939 | cat confdefs.h >>conftest.$ac_ext | |
6940 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 6941 | /* end confdefs.h. */ |
98418dba CW |
6942 | #include <stdlib.h> |
6943 | #include <stdarg.h> | |
6944 | #include <string.h> | |
6945 | #include <float.h> | |
6946 | ||
19650fd6 AS |
6947 | int |
6948 | main () | |
6949 | { | |
6950 | ||
6951 | ; | |
6952 | return 0; | |
6953 | } | |
98418dba | 6954 | _ACEOF |
bf89cb4d GM |
6955 | rm -f conftest.$ac_objext |
6956 | if { (ac_try="$ac_compile" | |
6957 | case "(($ac_try" in | |
6958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6959 | *) ac_try_echo=$ac_try;; | |
6960 | esac | |
6961 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6962 | $as_echo "$ac_try_echo") >&5 | |
6963 | (eval "$ac_compile") 2>conftest.er1 | |
6964 | ac_status=$? | |
6965 | grep -v '^ *+' conftest.er1 >conftest.err | |
6966 | rm -f conftest.er1 | |
6967 | cat conftest.err >&5 | |
6968 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6969 | (exit $ac_status); } && { | |
6970 | test -z "$ac_c_werror_flag" || | |
6971 | test ! -s conftest.err | |
6972 | } && test -s conftest.$ac_objext; then | |
98418dba | 6973 | ac_cv_header_stdc=yes |
ba4481b5 | 6974 | else |
bf89cb4d GM |
6975 | $as_echo "$as_me: failed program was:" >&5 |
6976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6977 | ||
6978 | ac_cv_header_stdc=no | |
ba4481b5 | 6979 | fi |
bf89cb4d | 6980 | |
ca81d7a0 | 6981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba CW |
6982 | |
6983 | if test $ac_cv_header_stdc = yes; then | |
6984 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
bf89cb4d GM |
6985 | cat >conftest.$ac_ext <<_ACEOF |
6986 | /* confdefs.h. */ | |
6987 | _ACEOF | |
6988 | cat confdefs.h >>conftest.$ac_ext | |
6989 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 6990 | /* end confdefs.h. */ |
98418dba CW |
6991 | #include <string.h> |
6992 | ||
6993 | _ACEOF | |
6994 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
bf89cb4d GM |
6995 | $EGREP "memchr" >/dev/null 2>&1; then |
6996 | : | |
98418dba CW |
6997 | else |
6998 | ac_cv_header_stdc=no | |
ba4481b5 | 6999 | fi |
98418dba | 7000 | rm -f conftest* |
ba4481b5 DL |
7001 | |
7002 | fi | |
7003 | ||
98418dba CW |
7004 | if test $ac_cv_header_stdc = yes; then |
7005 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
bf89cb4d GM |
7006 | cat >conftest.$ac_ext <<_ACEOF |
7007 | /* confdefs.h. */ | |
7008 | _ACEOF | |
7009 | cat confdefs.h >>conftest.$ac_ext | |
7010 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 7011 | /* end confdefs.h. */ |
98418dba CW |
7012 | #include <stdlib.h> |
7013 | ||
7014 | _ACEOF | |
7015 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
bf89cb4d GM |
7016 | $EGREP "free" >/dev/null 2>&1; then |
7017 | : | |
98418dba CW |
7018 | else |
7019 | ac_cv_header_stdc=no | |
7020 | fi | |
7021 | rm -f conftest* | |
7022 | ||
7023 | fi | |
7024 | ||
7025 | if test $ac_cv_header_stdc = yes; then | |
7026 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
bf89cb4d | 7027 | if test "$cross_compiling" = yes; then |
98418dba | 7028 | : |
d42122a3 | 7029 | else |
bf89cb4d GM |
7030 | cat >conftest.$ac_ext <<_ACEOF |
7031 | /* confdefs.h. */ | |
7032 | _ACEOF | |
7033 | cat confdefs.h >>conftest.$ac_ext | |
7034 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 7035 | /* end confdefs.h. */ |
98418dba | 7036 | #include <ctype.h> |
ca81d7a0 | 7037 | #include <stdlib.h> |
98418dba CW |
7038 | #if ((' ' & 0x0FF) == 0x020) |
7039 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7040 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7041 | #else | |
19650fd6 | 7042 | # define ISLOWER(c) \ |
edfaf76d LK |
7043 | (('a' <= (c) && (c) <= 'i') \ |
7044 | || ('j' <= (c) && (c) <= 'r') \ | |
7045 | || ('s' <= (c) && (c) <= 'z')) | |
98418dba CW |
7046 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
7047 | #endif | |
7048 | ||
7049 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
503d2be0 AS |
7050 | int |
7051 | main () | |
7052 | { | |
98418dba CW |
7053 | int i; |
7054 | for (i = 0; i < 256; i++) | |
7055 | if (XOR (islower (i), ISLOWER (i)) | |
edfaf76d | 7056 | || toupper (i) != TOUPPER (i)) |
ca81d7a0 JD |
7057 | return 2; |
7058 | return 0; | |
503d2be0 AS |
7059 | } |
7060 | _ACEOF | |
bf89cb4d GM |
7061 | rm -f conftest$ac_exeext |
7062 | if { (ac_try="$ac_link" | |
7063 | case "(($ac_try" in | |
7064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7065 | *) ac_try_echo=$ac_try;; | |
7066 | esac | |
7067 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7068 | $as_echo "$ac_try_echo") >&5 | |
7069 | (eval "$ac_link") 2>&5 | |
7070 | ac_status=$? | |
7071 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7072 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7073 | { (case "(($ac_try" in | |
7074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7075 | *) ac_try_echo=$ac_try;; | |
7076 | esac | |
7077 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7078 | $as_echo "$ac_try_echo") >&5 | |
7079 | (eval "$ac_try") 2>&5 | |
7080 | ac_status=$? | |
7081 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7082 | (exit $ac_status); }; }; then | |
7083 | : | |
0ca10bb7 | 7084 | else |
bf89cb4d GM |
7085 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7086 | $as_echo "$as_me: failed program was:" >&5 | |
7087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7088 | ||
7089 | ( exit $ac_status ) | |
7090 | ac_cv_header_stdc=no | |
d42122a3 | 7091 | fi |
bf89cb4d GM |
7092 | rm -rf conftest.dSYM |
7093 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
d42122a3 | 7094 | fi |
ca81d7a0 | 7095 | |
bf89cb4d | 7096 | |
98418dba CW |
7097 | fi |
7098 | fi | |
bf89cb4d | 7099 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
e9a63f04 | 7100 | $as_echo "$ac_cv_header_stdc" >&6; } |
98418dba CW |
7101 | if test $ac_cv_header_stdc = yes; then |
7102 | ||
bf89cb4d GM |
7103 | cat >>confdefs.h <<\_ACEOF |
7104 | #define STDC_HEADERS 1 | |
7105 | _ACEOF | |
d42122a3 DL |
7106 | |
7107 | fi | |
7108 | ||
bf89cb4d | 7109 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
e9a63f04 | 7110 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
bf89cb4d | 7111 | if test "${ac_cv_header_time+set}" = set; then |
e9a63f04 | 7112 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 7113 | else |
bf89cb4d GM |
7114 | cat >conftest.$ac_ext <<_ACEOF |
7115 | /* confdefs.h. */ | |
7116 | _ACEOF | |
7117 | cat confdefs.h >>conftest.$ac_ext | |
7118 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 7119 | /* end confdefs.h. */ |
ba4481b5 | 7120 | #include <sys/types.h> |
98418dba | 7121 | #include <sys/time.h> |
ba4481b5 | 7122 | #include <time.h> |
503d2be0 AS |
7123 | |
7124 | int | |
7125 | main () | |
7126 | { | |
98418dba CW |
7127 | if ((struct tm *) 0) |
7128 | return 0; | |
503d2be0 AS |
7129 | ; |
7130 | return 0; | |
7131 | } | |
7132 | _ACEOF | |
bf89cb4d GM |
7133 | rm -f conftest.$ac_objext |
7134 | if { (ac_try="$ac_compile" | |
7135 | case "(($ac_try" in | |
7136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7137 | *) ac_try_echo=$ac_try;; | |
7138 | esac | |
7139 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7140 | $as_echo "$ac_try_echo") >&5 | |
7141 | (eval "$ac_compile") 2>conftest.er1 | |
7142 | ac_status=$? | |
7143 | grep -v '^ *+' conftest.er1 >conftest.err | |
7144 | rm -f conftest.er1 | |
7145 | cat conftest.err >&5 | |
7146 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7147 | (exit $ac_status); } && { | |
7148 | test -z "$ac_c_werror_flag" || | |
7149 | test ! -s conftest.err | |
7150 | } && test -s conftest.$ac_objext; then | |
98418dba | 7151 | ac_cv_header_time=yes |
ba4481b5 | 7152 | else |
bf89cb4d GM |
7153 | $as_echo "$as_me: failed program was:" >&5 |
7154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7155 | ||
7156 | ac_cv_header_time=no | |
ba4481b5 | 7157 | fi |
bf89cb4d | 7158 | |
ca81d7a0 | 7159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 7160 | fi |
bf89cb4d | 7161 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
e9a63f04 | 7162 | $as_echo "$ac_cv_header_time" >&6; } |
98418dba | 7163 | if test $ac_cv_header_time = yes; then |
503d2be0 | 7164 | |
bf89cb4d GM |
7165 | cat >>confdefs.h <<\_ACEOF |
7166 | #define TIME_WITH_SYS_TIME 1 | |
7167 | _ACEOF | |
ba4481b5 DL |
7168 | |
7169 | fi | |
7170 | ||
bf89cb4d GM |
7171 | { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 |
7172 | $as_echo_n "checking whether sys_siglist is declared... " >&6; } | |
7173 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then | |
7174 | $as_echo_n "(cached) " >&6 | |
cd958eb3 | 7175 | else |
bf89cb4d GM |
7176 | cat >conftest.$ac_ext <<_ACEOF |
7177 | /* confdefs.h. */ | |
cd958eb3 | 7178 | _ACEOF |
bf89cb4d GM |
7179 | cat confdefs.h >>conftest.$ac_ext |
7180 | cat >>conftest.$ac_ext <<_ACEOF | |
7181 | /* end confdefs.h. */ | |
7182 | $ac_includes_default | |
7183 | int | |
7184 | main () | |
7185 | { | |
7186 | #ifndef sys_siglist | |
7187 | (void) sys_siglist; | |
7188 | #endif | |
cd958eb3 | 7189 | |
bf89cb4d GM |
7190 | ; |
7191 | return 0; | |
7192 | } | |
7193 | _ACEOF | |
7194 | rm -f conftest.$ac_objext | |
7195 | if { (ac_try="$ac_compile" | |
7196 | case "(($ac_try" in | |
7197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7198 | *) ac_try_echo=$ac_try;; | |
7199 | esac | |
7200 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7201 | $as_echo "$ac_try_echo") >&5 | |
7202 | (eval "$ac_compile") 2>conftest.er1 | |
7203 | ac_status=$? | |
7204 | grep -v '^ *+' conftest.er1 >conftest.err | |
7205 | rm -f conftest.er1 | |
7206 | cat conftest.err >&5 | |
7207 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7208 | (exit $ac_status); } && { | |
7209 | test -z "$ac_c_werror_flag" || | |
7210 | test ! -s conftest.err | |
7211 | } && test -s conftest.$ac_objext; then | |
7212 | ac_cv_have_decl_sys_siglist=yes | |
ba4481b5 | 7213 | else |
bf89cb4d GM |
7214 | $as_echo "$as_me: failed program was:" >&5 |
7215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7216 | ||
7217 | ac_cv_have_decl_sys_siglist=no | |
7218 | fi | |
7219 | ||
7220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 | 7221 | fi |
bf89cb4d GM |
7222 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 |
7223 | $as_echo "$ac_cv_have_decl_sys_siglist" >&6; } | |
7224 | if test $ac_cv_have_decl_sys_siglist = yes; then | |
503d2be0 | 7225 | |
cd958eb3 | 7226 | cat >>confdefs.h <<_ACEOF |
bf89cb4d | 7227 | #define HAVE_DECL_SYS_SIGLIST 1 |
c0d27fcc | 7228 | _ACEOF |
503d2be0 | 7229 | |
cd958eb3 | 7230 | |
bf89cb4d GM |
7231 | else |
7232 | cat >>confdefs.h <<_ACEOF | |
7233 | #define HAVE_DECL_SYS_SIGLIST 0 | |
7234 | _ACEOF | |
7235 | ||
cd958eb3 | 7236 | |
cd958eb3 | 7237 | fi |
bf89cb4d GM |
7238 | |
7239 | ||
7240 | if test $ac_cv_have_decl_sys_siglist != yes; then | |
7241 | # For Tru64, at least: | |
7242 | { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 | |
7243 | $as_echo_n "checking whether __sys_siglist is declared... " >&6; } | |
7244 | if test "${ac_cv_have_decl___sys_siglist+set}" = set; then | |
e9a63f04 | 7245 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 7246 | else |
bf89cb4d GM |
7247 | cat >conftest.$ac_ext <<_ACEOF |
7248 | /* confdefs.h. */ | |
7249 | _ACEOF | |
7250 | cat confdefs.h >>conftest.$ac_ext | |
7251 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 7252 | /* end confdefs.h. */ |
bf89cb4d | 7253 | $ac_includes_default |
503d2be0 AS |
7254 | int |
7255 | main () | |
7256 | { | |
bf89cb4d GM |
7257 | #ifndef __sys_siglist |
7258 | (void) __sys_siglist; | |
7259 | #endif | |
7260 | ||
503d2be0 AS |
7261 | ; |
7262 | return 0; | |
7263 | } | |
7264 | _ACEOF | |
bf89cb4d GM |
7265 | rm -f conftest.$ac_objext |
7266 | if { (ac_try="$ac_compile" | |
7267 | case "(($ac_try" in | |
7268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7269 | *) ac_try_echo=$ac_try;; | |
7270 | esac | |
7271 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7272 | $as_echo "$ac_try_echo") >&5 | |
7273 | (eval "$ac_compile") 2>conftest.er1 | |
7274 | ac_status=$? | |
7275 | grep -v '^ *+' conftest.er1 >conftest.err | |
7276 | rm -f conftest.er1 | |
7277 | cat conftest.err >&5 | |
7278 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7279 | (exit $ac_status); } && { | |
7280 | test -z "$ac_c_werror_flag" || | |
7281 | test ! -s conftest.err | |
7282 | } && test -s conftest.$ac_objext; then | |
7283 | ac_cv_have_decl___sys_siglist=yes | |
ba4481b5 | 7284 | else |
bf89cb4d GM |
7285 | $as_echo "$as_me: failed program was:" >&5 |
7286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7287 | ||
7288 | ac_cv_have_decl___sys_siglist=no | |
ba4481b5 | 7289 | fi |
bf89cb4d | 7290 | |
ca81d7a0 | 7291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 7292 | fi |
bf89cb4d GM |
7293 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 |
7294 | $as_echo "$ac_cv_have_decl___sys_siglist" >&6; } | |
7295 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
7296 | ||
7297 | cat >>confdefs.h <<_ACEOF | |
7298 | #define HAVE_DECL___SYS_SIGLIST 1 | |
7299 | _ACEOF | |
7300 | ||
7301 | ||
7302 | else | |
7303 | cat >>confdefs.h <<_ACEOF | |
7304 | #define HAVE_DECL___SYS_SIGLIST 0 | |
7305 | _ACEOF | |
7306 | ||
7307 | ||
7308 | fi | |
7309 | ||
7310 | ||
7311 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
7312 | ||
7313 | cat >>confdefs.h <<\_ACEOF | |
7314 | #define sys_siglist __sys_siglist | |
7315 | _ACEOF | |
7316 | ||
7317 | fi | |
7318 | fi | |
7319 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
7320 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
7321 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
7322 | $as_echo_n "(cached) " >&6 | |
7323 | else | |
7324 | cat >conftest.$ac_ext <<_ACEOF | |
7325 | /* confdefs.h. */ | |
7326 | _ACEOF | |
7327 | cat confdefs.h >>conftest.$ac_ext | |
7328 | cat >>conftest.$ac_ext <<_ACEOF | |
7329 | /* end confdefs.h. */ | |
7330 | #include <sys/types.h> | |
7331 | #include <sys/wait.h> | |
7332 | #ifndef WEXITSTATUS | |
7333 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
7334 | #endif | |
7335 | #ifndef WIFEXITED | |
7336 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
7337 | #endif | |
7338 | ||
7339 | int | |
7340 | main () | |
7341 | { | |
7342 | int s; | |
7343 | wait (&s); | |
7344 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
7345 | ; | |
7346 | return 0; | |
7347 | } | |
7348 | _ACEOF | |
7349 | rm -f conftest.$ac_objext | |
7350 | if { (ac_try="$ac_compile" | |
7351 | case "(($ac_try" in | |
7352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7353 | *) ac_try_echo=$ac_try;; | |
7354 | esac | |
7355 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7356 | $as_echo "$ac_try_echo") >&5 | |
7357 | (eval "$ac_compile") 2>conftest.er1 | |
7358 | ac_status=$? | |
7359 | grep -v '^ *+' conftest.er1 >conftest.err | |
7360 | rm -f conftest.er1 | |
7361 | cat conftest.err >&5 | |
7362 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7363 | (exit $ac_status); } && { | |
7364 | test -z "$ac_c_werror_flag" || | |
7365 | test ! -s conftest.err | |
7366 | } && test -s conftest.$ac_objext; then | |
7367 | ac_cv_header_sys_wait_h=yes | |
7368 | else | |
7369 | $as_echo "$as_me: failed program was:" >&5 | |
7370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7371 | ||
7372 | ac_cv_header_sys_wait_h=no | |
7373 | fi | |
7374 | ||
7375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7376 | fi | |
7377 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | |
7378 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
7379 | if test $ac_cv_header_sys_wait_h = yes; then | |
7380 | ||
7381 | cat >>confdefs.h <<\_ACEOF | |
7382 | #define HAVE_SYS_WAIT_H 1 | |
7383 | _ACEOF | |
ba4481b5 | 7384 | |
ba4481b5 DL |
7385 | fi |
7386 | ||
c0d27fcc | 7387 | |
bf89cb4d | 7388 | { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5 |
e9a63f04 | 7389 | $as_echo_n "checking for struct utimbuf... " >&6; } |
bf89cb4d | 7390 | if test "${emacs_cv_struct_utimbuf+set}" = set; then |
e9a63f04 | 7391 | $as_echo_n "(cached) " >&6 |
1113b624 | 7392 | else |
bf89cb4d GM |
7393 | cat >conftest.$ac_ext <<_ACEOF |
7394 | /* confdefs.h. */ | |
7395 | _ACEOF | |
7396 | cat confdefs.h >>conftest.$ac_ext | |
7397 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 7398 | /* end confdefs.h. */ |
98418dba CW |
7399 | #ifdef TIME_WITH_SYS_TIME |
7400 | #include <sys/time.h> | |
7401 | #include <time.h> | |
7402 | #else | |
7403 | #ifdef HAVE_SYS_TIME_H | |
7404 | #include <sys/time.h> | |
7405 | #else | |
1113b624 | 7406 | #include <time.h> |
98418dba CW |
7407 | #endif |
7408 | #endif | |
7409 | #ifdef HAVE_UTIME_H | |
7410 | #include <utime.h> | |
7411 | #endif | |
503d2be0 AS |
7412 | int |
7413 | main () | |
7414 | { | |
98418dba | 7415 | static struct utimbuf x; x.actime = x.modtime; |
503d2be0 AS |
7416 | ; |
7417 | return 0; | |
7418 | } | |
7419 | _ACEOF | |
bf89cb4d GM |
7420 | rm -f conftest.$ac_objext |
7421 | if { (ac_try="$ac_compile" | |
7422 | case "(($ac_try" in | |
7423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7424 | *) ac_try_echo=$ac_try;; | |
7425 | esac | |
7426 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7427 | $as_echo "$ac_try_echo") >&5 | |
7428 | (eval "$ac_compile") 2>conftest.er1 | |
7429 | ac_status=$? | |
7430 | grep -v '^ *+' conftest.er1 >conftest.err | |
7431 | rm -f conftest.er1 | |
7432 | cat conftest.err >&5 | |
7433 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7434 | (exit $ac_status); } && { | |
7435 | test -z "$ac_c_werror_flag" || | |
7436 | test ! -s conftest.err | |
7437 | } && test -s conftest.$ac_objext; then | |
98418dba | 7438 | emacs_cv_struct_utimbuf=yes |
1113b624 | 7439 | else |
bf89cb4d GM |
7440 | $as_echo "$as_me: failed program was:" >&5 |
7441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7442 | ||
7443 | emacs_cv_struct_utimbuf=no | |
1113b624 | 7444 | fi |
bf89cb4d | 7445 | |
ca81d7a0 | 7446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1113b624 | 7447 | fi |
bf89cb4d | 7448 | { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 |
e9a63f04 | 7449 | $as_echo "$emacs_cv_struct_utimbuf" >&6; } |
98418dba | 7450 | if test $emacs_cv_struct_utimbuf = yes; then |
b936fae4 | 7451 | |
bf89cb4d GM |
7452 | cat >>confdefs.h <<\_ACEOF |
7453 | #define HAVE_STRUCT_UTIMBUF 1 | |
7454 | _ACEOF | |
1113b624 PE |
7455 | |
7456 | fi | |
ba4481b5 | 7457 | |
bf89cb4d | 7458 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
e9a63f04 | 7459 | $as_echo_n "checking return type of signal handlers... " >&6; } |
bf89cb4d | 7460 | if test "${ac_cv_type_signal+set}" = set; then |
e9a63f04 | 7461 | $as_echo_n "(cached) " >&6 |
7397acc4 | 7462 | else |
bf89cb4d GM |
7463 | cat >conftest.$ac_ext <<_ACEOF |
7464 | /* confdefs.h. */ | |
7465 | _ACEOF | |
7466 | cat confdefs.h >>conftest.$ac_ext | |
7467 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 7468 | /* end confdefs.h. */ |
7397acc4 | 7469 | #include <sys/types.h> |
98418dba | 7470 | #include <signal.h> |
98418dba | 7471 | |
503d2be0 AS |
7472 | int |
7473 | main () | |
7474 | { | |
ca81d7a0 | 7475 | return *(signal (0, 0)) (0) == 1; |
503d2be0 AS |
7476 | ; |
7477 | return 0; | |
7478 | } | |
7479 | _ACEOF | |
bf89cb4d GM |
7480 | rm -f conftest.$ac_objext |
7481 | if { (ac_try="$ac_compile" | |
7482 | case "(($ac_try" in | |
7483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7484 | *) ac_try_echo=$ac_try;; | |
7485 | esac | |
7486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7487 | $as_echo "$ac_try_echo") >&5 | |
7488 | (eval "$ac_compile") 2>conftest.er1 | |
7489 | ac_status=$? | |
7490 | grep -v '^ *+' conftest.er1 >conftest.err | |
7491 | rm -f conftest.er1 | |
7492 | cat conftest.err >&5 | |
7493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7494 | (exit $ac_status); } && { | |
7495 | test -z "$ac_c_werror_flag" || | |
7496 | test ! -s conftest.err | |
7497 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 | 7498 | ac_cv_type_signal=int |
503d2be0 | 7499 | else |
bf89cb4d GM |
7500 | $as_echo "$as_me: failed program was:" >&5 |
7501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7502 | ||
7503 | ac_cv_type_signal=void | |
503d2be0 | 7504 | fi |
bf89cb4d | 7505 | |
ca81d7a0 | 7506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 7507 | fi |
bf89cb4d | 7508 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
e9a63f04 | 7509 | $as_echo "$ac_cv_type_signal" >&6; } |
7397acc4 | 7510 | |
c0d27fcc | 7511 | cat >>confdefs.h <<_ACEOF |
98418dba | 7512 | #define RETSIGTYPE $ac_cv_type_signal |
c0d27fcc MR |
7513 | _ACEOF |
7514 | ||
503d2be0 | 7515 | |
c0d27fcc | 7516 | |
bf89cb4d | 7517 | { $as_echo "$as_me:$LINENO: checking for speed_t" >&5 |
e9a63f04 | 7518 | $as_echo_n "checking for speed_t... " >&6; } |
bf89cb4d | 7519 | if test "${emacs_cv_speed_t+set}" = set; then |
e9a63f04 | 7520 | $as_echo_n "(cached) " >&6 |
7397acc4 | 7521 | else |
bf89cb4d GM |
7522 | cat >conftest.$ac_ext <<_ACEOF |
7523 | /* confdefs.h. */ | |
7524 | _ACEOF | |
7525 | cat confdefs.h >>conftest.$ac_ext | |
7526 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 7527 | /* end confdefs.h. */ |
98418dba | 7528 | #include <termios.h> |
98418dba CW |
7529 | int |
7530 | main () | |
7531 | { | |
7532 | speed_t x = 1; | |
7533 | ; | |
7534 | return 0; | |
7535 | } | |
7536 | _ACEOF | |
bf89cb4d GM |
7537 | rm -f conftest.$ac_objext |
7538 | if { (ac_try="$ac_compile" | |
7539 | case "(($ac_try" in | |
7540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7541 | *) ac_try_echo=$ac_try;; | |
7542 | esac | |
7543 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7544 | $as_echo "$ac_try_echo") >&5 | |
7545 | (eval "$ac_compile") 2>conftest.er1 | |
7546 | ac_status=$? | |
7547 | grep -v '^ *+' conftest.er1 >conftest.err | |
7548 | rm -f conftest.er1 | |
7549 | cat conftest.err >&5 | |
7550 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7551 | (exit $ac_status); } && { | |
7552 | test -z "$ac_c_werror_flag" || | |
7553 | test ! -s conftest.err | |
7554 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
7555 | emacs_cv_speed_t=yes |
7556 | else | |
bf89cb4d GM |
7557 | $as_echo "$as_me: failed program was:" >&5 |
7558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7559 | ||
7560 | emacs_cv_speed_t=no | |
98418dba | 7561 | fi |
bf89cb4d | 7562 | |
ca81d7a0 | 7563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
98418dba | 7564 | fi |
bf89cb4d | 7565 | { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 |
e9a63f04 | 7566 | $as_echo "$emacs_cv_speed_t" >&6; } |
98418dba | 7567 | if test $emacs_cv_speed_t = yes; then |
b936fae4 | 7568 | |
bf89cb4d GM |
7569 | cat >>confdefs.h <<\_ACEOF |
7570 | #define HAVE_SPEED_T 1 | |
7571 | _ACEOF | |
98418dba | 7572 | |
7397acc4 DL |
7573 | fi |
7574 | ||
bf89cb4d | 7575 | { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5 |
e9a63f04 | 7576 | $as_echo_n "checking for struct timeval... " >&6; } |
bf89cb4d | 7577 | if test "${emacs_cv_struct_timeval+set}" = set; then |
e9a63f04 | 7578 | $as_echo_n "(cached) " >&6 |
7397acc4 | 7579 | else |
bf89cb4d GM |
7580 | cat >conftest.$ac_ext <<_ACEOF |
7581 | /* confdefs.h. */ | |
7582 | _ACEOF | |
7583 | cat confdefs.h >>conftest.$ac_ext | |
7584 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 7585 | /* end confdefs.h. */ |
98418dba CW |
7586 | #ifdef TIME_WITH_SYS_TIME |
7587 | #include <sys/time.h> | |
7588 | #include <time.h> | |
7589 | #else | |
7590 | #ifdef HAVE_SYS_TIME_H | |
7591 | #include <sys/time.h> | |
7592 | #else | |
7593 | #include <time.h> | |
7594 | #endif | |
7595 | #endif | |
503d2be0 AS |
7596 | int |
7597 | main () | |
7598 | { | |
98418dba | 7599 | static struct timeval x; x.tv_sec = x.tv_usec; |
503d2be0 AS |
7600 | ; |
7601 | return 0; | |
7602 | } | |
7603 | _ACEOF | |
bf89cb4d GM |
7604 | rm -f conftest.$ac_objext |
7605 | if { (ac_try="$ac_compile" | |
7606 | case "(($ac_try" in | |
7607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7608 | *) ac_try_echo=$ac_try;; | |
7609 | esac | |
7610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7611 | $as_echo "$ac_try_echo") >&5 | |
7612 | (eval "$ac_compile") 2>conftest.er1 | |
7613 | ac_status=$? | |
7614 | grep -v '^ *+' conftest.er1 >conftest.err | |
7615 | rm -f conftest.er1 | |
7616 | cat conftest.err >&5 | |
7617 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7618 | (exit $ac_status); } && { | |
7619 | test -z "$ac_c_werror_flag" || | |
7620 | test ! -s conftest.err | |
7621 | } && test -s conftest.$ac_objext; then | |
edfaf76d LK |
7622 | emacs_cv_struct_timeval=yes |
7623 | else | |
bf89cb4d GM |
7624 | $as_echo "$as_me: failed program was:" >&5 |
7625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7626 | ||
7627 | emacs_cv_struct_timeval=no | |
7397acc4 | 7628 | fi |
bf89cb4d | 7629 | |
ca81d7a0 | 7630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 7631 | fi |
bf89cb4d | 7632 | { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 |
e9a63f04 | 7633 | $as_echo "$emacs_cv_struct_timeval" >&6; } |
98418dba CW |
7634 | HAVE_TIMEVAL=$emacs_cv_struct_timeval |
7635 | if test $emacs_cv_struct_timeval = yes; then | |
b936fae4 | 7636 | |
bf89cb4d GM |
7637 | cat >>confdefs.h <<\_ACEOF |
7638 | #define HAVE_TIMEVAL 1 | |
7639 | _ACEOF | |
7397acc4 DL |
7640 | |
7641 | fi | |
7642 | ||
bf89cb4d | 7643 | { $as_echo "$as_me:$LINENO: checking for struct exception" >&5 |
e9a63f04 | 7644 | $as_echo_n "checking for struct exception... " >&6; } |
bf89cb4d | 7645 | if test "${emacs_cv_struct_exception+set}" = set; then |
e9a63f04 | 7646 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 7647 | else |
bf89cb4d GM |
7648 | cat >conftest.$ac_ext <<_ACEOF |
7649 | /* confdefs.h. */ | |
7650 | _ACEOF | |
7651 | cat confdefs.h >>conftest.$ac_ext | |
7652 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 7653 | /* end confdefs.h. */ |
98418dba | 7654 | #include <math.h> |
503d2be0 AS |
7655 | int |
7656 | main () | |
7657 | { | |
98418dba | 7658 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
503d2be0 AS |
7659 | ; |
7660 | return 0; | |
ba4481b5 | 7661 | } |
503d2be0 | 7662 | _ACEOF |
bf89cb4d GM |
7663 | rm -f conftest.$ac_objext |
7664 | if { (ac_try="$ac_compile" | |
7665 | case "(($ac_try" in | |
7666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7667 | *) ac_try_echo=$ac_try;; | |
7668 | esac | |
7669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7670 | $as_echo "$ac_try_echo") >&5 | |
7671 | (eval "$ac_compile") 2>conftest.er1 | |
7672 | ac_status=$? | |
7673 | grep -v '^ *+' conftest.er1 >conftest.err | |
7674 | rm -f conftest.er1 | |
7675 | cat conftest.err >&5 | |
7676 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7677 | (exit $ac_status); } && { | |
7678 | test -z "$ac_c_werror_flag" || | |
7679 | test ! -s conftest.err | |
7680 | } && test -s conftest.$ac_objext; then | |
98418dba | 7681 | emacs_cv_struct_exception=yes |
ba4481b5 | 7682 | else |
bf89cb4d GM |
7683 | $as_echo "$as_me: failed program was:" >&5 |
7684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7685 | ||
7686 | emacs_cv_struct_exception=no | |
ba4481b5 | 7687 | fi |
bf89cb4d | 7688 | |
ca81d7a0 | 7689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 7690 | fi |
bf89cb4d | 7691 | { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 |
e9a63f04 | 7692 | $as_echo "$emacs_cv_struct_exception" >&6; } |
98418dba CW |
7693 | HAVE_EXCEPTION=$emacs_cv_struct_exception |
7694 | if test $emacs_cv_struct_exception != yes; then | |
b936fae4 | 7695 | |
bf89cb4d GM |
7696 | cat >>confdefs.h <<\_ACEOF |
7697 | #define NO_MATHERR 1 | |
7698 | _ACEOF | |
ba4481b5 DL |
7699 | |
7700 | fi | |
7701 | ||
bf89cb4d | 7702 | |
7862d3a8 | 7703 | for ac_header in sys/socket.h |
bf89cb4d GM |
7704 | do |
7705 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7706 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7707 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7708 | $as_echo_n "checking for $ac_header... " >&6; } | |
7709 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7710 | $as_echo_n "(cached) " >&6 | |
7711 | fi | |
7712 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7713 | $as_echo "$as_val"'` | |
7714 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7715 | $as_echo "$ac_res" >&6; } | |
7716 | else | |
7717 | # Is the header compilable? | |
7718 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7719 | $as_echo_n "checking $ac_header usability... " >&6; } | |
7720 | cat >conftest.$ac_ext <<_ACEOF | |
7721 | /* confdefs.h. */ | |
7722 | _ACEOF | |
7723 | cat confdefs.h >>conftest.$ac_ext | |
7724 | cat >>conftest.$ac_ext <<_ACEOF | |
7725 | /* end confdefs.h. */ | |
7726 | $ac_includes_default | |
7727 | #include <$ac_header> | |
7728 | _ACEOF | |
7729 | rm -f conftest.$ac_objext | |
7730 | if { (ac_try="$ac_compile" | |
7731 | case "(($ac_try" in | |
7732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7733 | *) ac_try_echo=$ac_try;; | |
7734 | esac | |
7735 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7736 | $as_echo "$ac_try_echo") >&5 | |
7737 | (eval "$ac_compile") 2>conftest.er1 | |
7738 | ac_status=$? | |
7739 | grep -v '^ *+' conftest.er1 >conftest.err | |
7740 | rm -f conftest.er1 | |
7741 | cat conftest.err >&5 | |
7742 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7743 | (exit $ac_status); } && { | |
7744 | test -z "$ac_c_werror_flag" || | |
7745 | test ! -s conftest.err | |
7746 | } && test -s conftest.$ac_objext; then | |
7747 | ac_header_compiler=yes | |
7748 | else | |
7749 | $as_echo "$as_me: failed program was:" >&5 | |
7750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7751 | ||
7752 | ac_header_compiler=no | |
7753 | fi | |
7754 | ||
7755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7756 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7757 | $as_echo "$ac_header_compiler" >&6; } | |
7758 | ||
7759 | # Is the header present? | |
7760 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7761 | $as_echo_n "checking $ac_header presence... " >&6; } | |
7762 | cat >conftest.$ac_ext <<_ACEOF | |
7763 | /* confdefs.h. */ | |
7764 | _ACEOF | |
7765 | cat confdefs.h >>conftest.$ac_ext | |
7766 | cat >>conftest.$ac_ext <<_ACEOF | |
7767 | /* end confdefs.h. */ | |
7768 | #include <$ac_header> | |
7769 | _ACEOF | |
7770 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7771 | case "(($ac_try" in | |
7772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7773 | *) ac_try_echo=$ac_try;; | |
7774 | esac | |
7775 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7776 | $as_echo "$ac_try_echo") >&5 | |
7777 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7778 | ac_status=$? | |
7779 | grep -v '^ *+' conftest.er1 >conftest.err | |
7780 | rm -f conftest.er1 | |
7781 | cat conftest.err >&5 | |
7782 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7783 | (exit $ac_status); } >/dev/null && { | |
7784 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7785 | test ! -s conftest.err | |
7786 | }; then | |
7787 | ac_header_preproc=yes | |
7788 | else | |
7789 | $as_echo "$as_me: failed program was:" >&5 | |
7790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7791 | ||
7792 | ac_header_preproc=no | |
7793 | fi | |
7794 | ||
7795 | rm -f conftest.err conftest.$ac_ext | |
7796 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7797 | $as_echo "$ac_header_preproc" >&6; } | |
7798 | ||
7799 | # So? What about this header? | |
7800 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7801 | yes:no: ) | |
7802 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7803 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7804 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7805 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7806 | ac_header_preproc=yes | |
7807 | ;; | |
7808 | no:yes:* ) | |
7809 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7810 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7811 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7812 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7813 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7814 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7815 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7816 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7817 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7818 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7819 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7820 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7821 | ||
7822 | ;; | |
7823 | esac | |
7824 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7825 | $as_echo_n "checking for $ac_header... " >&6; } | |
7826 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7827 | $as_echo_n "(cached) " >&6 | |
7828 | else | |
7829 | eval "$as_ac_Header=\$ac_header_preproc" | |
7830 | fi | |
7831 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7832 | $as_echo "$as_val"'` | |
7833 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7834 | $as_echo "$ac_res" >&6; } | |
7835 | ||
7836 | fi | |
7837 | if test `eval 'as_val=${'$as_ac_Header'} | |
7838 | $as_echo "$as_val"'` = yes; then | |
7862d3a8 | 7839 | cat >>confdefs.h <<_ACEOF |
bf89cb4d | 7840 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7862d3a8 AS |
7841 | _ACEOF |
7842 | ||
7843 | fi | |
7844 | ||
7845 | done | |
7846 | ||
bf89cb4d | 7847 | |
7862d3a8 | 7848 | for ac_header in net/if.h |
bf89cb4d GM |
7849 | do |
7850 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7851 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7852 | $as_echo_n "checking for $ac_header... " >&6; } | |
7853 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7854 | $as_echo_n "(cached) " >&6 | |
7855 | else | |
7856 | cat >conftest.$ac_ext <<_ACEOF | |
7857 | /* confdefs.h. */ | |
7858 | _ACEOF | |
7859 | cat confdefs.h >>conftest.$ac_ext | |
7860 | cat >>conftest.$ac_ext <<_ACEOF | |
7861 | /* end confdefs.h. */ | |
7862 | $ac_includes_default | |
7862d3a8 AS |
7863 | #if HAVE_SYS_SOCKET_H |
7864 | #include <sys/socket.h> | |
7865 | #endif | |
bf89cb4d GM |
7866 | |
7867 | #include <$ac_header> | |
7868 | _ACEOF | |
7869 | rm -f conftest.$ac_objext | |
7870 | if { (ac_try="$ac_compile" | |
7871 | case "(($ac_try" in | |
7872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7873 | *) ac_try_echo=$ac_try;; | |
7874 | esac | |
7875 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7876 | $as_echo "$ac_try_echo") >&5 | |
7877 | (eval "$ac_compile") 2>conftest.er1 | |
7878 | ac_status=$? | |
7879 | grep -v '^ *+' conftest.er1 >conftest.err | |
7880 | rm -f conftest.er1 | |
7881 | cat conftest.err >&5 | |
7882 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7883 | (exit $ac_status); } && { | |
7884 | test -z "$ac_c_werror_flag" || | |
7885 | test ! -s conftest.err | |
7886 | } && test -s conftest.$ac_objext; then | |
7887 | eval "$as_ac_Header=yes" | |
7888 | else | |
7889 | $as_echo "$as_me: failed program was:" >&5 | |
7890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7891 | ||
7892 | eval "$as_ac_Header=no" | |
7893 | fi | |
7894 | ||
7895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7896 | fi | |
7897 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7898 | $as_echo "$as_val"'` | |
7899 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7900 | $as_echo "$ac_res" >&6; } | |
7901 | if test `eval 'as_val=${'$as_ac_Header'} | |
7902 | $as_echo "$as_val"'` = yes; then | |
7862d3a8 | 7903 | cat >>confdefs.h <<_ACEOF |
bf89cb4d | 7904 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7862d3a8 AS |
7905 | _ACEOF |
7906 | ||
7907 | fi | |
7908 | ||
7909 | done | |
7910 | ||
7911 | ||
bf89cb4d | 7912 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
e9a63f04 | 7913 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
bf89cb4d | 7914 | if test "${ac_cv_struct_tm+set}" = set; then |
e9a63f04 | 7915 | $as_echo_n "(cached) " >&6 |
7397acc4 | 7916 | else |
bf89cb4d GM |
7917 | cat >conftest.$ac_ext <<_ACEOF |
7918 | /* confdefs.h. */ | |
7919 | _ACEOF | |
7920 | cat confdefs.h >>conftest.$ac_ext | |
7921 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 7922 | /* end confdefs.h. */ |
98418dba CW |
7923 | #include <sys/types.h> |
7924 | #include <time.h> | |
7397acc4 | 7925 | |
503d2be0 AS |
7926 | int |
7927 | main () | |
7928 | { | |
f053c89f CY |
7929 | struct tm tm; |
7930 | int *p = &tm.tm_sec; | |
e9a63f04 | 7931 | return !p; |
503d2be0 AS |
7932 | ; |
7933 | return 0; | |
7934 | } | |
7935 | _ACEOF | |
bf89cb4d GM |
7936 | rm -f conftest.$ac_objext |
7937 | if { (ac_try="$ac_compile" | |
7938 | case "(($ac_try" in | |
7939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7940 | *) ac_try_echo=$ac_try;; | |
7941 | esac | |
7942 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7943 | $as_echo "$ac_try_echo") >&5 | |
7944 | (eval "$ac_compile") 2>conftest.er1 | |
7945 | ac_status=$? | |
7946 | grep -v '^ *+' conftest.er1 >conftest.err | |
7947 | rm -f conftest.er1 | |
7948 | cat conftest.err >&5 | |
7949 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7950 | (exit $ac_status); } && { | |
7951 | test -z "$ac_c_werror_flag" || | |
7952 | test ! -s conftest.err | |
7953 | } && test -s conftest.$ac_objext; then | |
35996d22 AS |
7954 | ac_cv_struct_tm=time.h |
7955 | else | |
bf89cb4d GM |
7956 | $as_echo "$as_me: failed program was:" >&5 |
7957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7958 | ||
7959 | ac_cv_struct_tm=sys/time.h | |
7397acc4 | 7960 | fi |
bf89cb4d | 7961 | |
ca81d7a0 | 7962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7397acc4 | 7963 | fi |
bf89cb4d | 7964 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
e9a63f04 | 7965 | $as_echo "$ac_cv_struct_tm" >&6; } |
98418dba | 7966 | if test $ac_cv_struct_tm = sys/time.h; then |
7397acc4 | 7967 | |
bf89cb4d GM |
7968 | cat >>confdefs.h <<\_ACEOF |
7969 | #define TM_IN_SYS_TIME 1 | |
7970 | _ACEOF | |
7397acc4 DL |
7971 | |
7972 | fi | |
ba4481b5 | 7973 | |
bf89cb4d GM |
7974 | { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
7975 | $as_echo_n "checking for struct tm.tm_zone... " >&6; } | |
7976 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
7977 | $as_echo_n "(cached) " >&6 | |
7978 | else | |
7979 | cat >conftest.$ac_ext <<_ACEOF | |
7980 | /* confdefs.h. */ | |
7981 | _ACEOF | |
7982 | cat confdefs.h >>conftest.$ac_ext | |
7983 | cat >>conftest.$ac_ext <<_ACEOF | |
7984 | /* end confdefs.h. */ | |
7985 | #include <sys/types.h> | |
98418dba | 7986 | #include <$ac_cv_struct_tm> |
ba4481b5 | 7987 | |
c0d27fcc | 7988 | |
bf89cb4d GM |
7989 | int |
7990 | main () | |
7991 | { | |
7992 | static struct tm ac_aggr; | |
7993 | if (ac_aggr.tm_zone) | |
7994 | return 0; | |
7995 | ; | |
7996 | return 0; | |
7997 | } | |
7998 | _ACEOF | |
7999 | rm -f conftest.$ac_objext | |
8000 | if { (ac_try="$ac_compile" | |
8001 | case "(($ac_try" in | |
8002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8003 | *) ac_try_echo=$ac_try;; | |
8004 | esac | |
8005 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8006 | $as_echo "$ac_try_echo") >&5 | |
8007 | (eval "$ac_compile") 2>conftest.er1 | |
8008 | ac_status=$? | |
8009 | grep -v '^ *+' conftest.er1 >conftest.err | |
8010 | rm -f conftest.er1 | |
8011 | cat conftest.err >&5 | |
8012 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8013 | (exit $ac_status); } && { | |
8014 | test -z "$ac_c_werror_flag" || | |
8015 | test ! -s conftest.err | |
8016 | } && test -s conftest.$ac_objext; then | |
8017 | ac_cv_member_struct_tm_tm_zone=yes | |
8018 | else | |
8019 | $as_echo "$as_me: failed program was:" >&5 | |
8020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8021 | ||
8022 | cat >conftest.$ac_ext <<_ACEOF | |
8023 | /* confdefs.h. */ | |
8024 | _ACEOF | |
8025 | cat confdefs.h >>conftest.$ac_ext | |
8026 | cat >>conftest.$ac_ext <<_ACEOF | |
8027 | /* end confdefs.h. */ | |
8028 | #include <sys/types.h> | |
8029 | #include <$ac_cv_struct_tm> | |
8030 | ||
8031 | ||
8032 | int | |
8033 | main () | |
8034 | { | |
8035 | static struct tm ac_aggr; | |
8036 | if (sizeof ac_aggr.tm_zone) | |
8037 | return 0; | |
8038 | ; | |
8039 | return 0; | |
8040 | } | |
8041 | _ACEOF | |
8042 | rm -f conftest.$ac_objext | |
8043 | if { (ac_try="$ac_compile" | |
8044 | case "(($ac_try" in | |
8045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8046 | *) ac_try_echo=$ac_try;; | |
8047 | esac | |
8048 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8049 | $as_echo "$ac_try_echo") >&5 | |
8050 | (eval "$ac_compile") 2>conftest.er1 | |
8051 | ac_status=$? | |
8052 | grep -v '^ *+' conftest.er1 >conftest.err | |
8053 | rm -f conftest.er1 | |
8054 | cat conftest.err >&5 | |
8055 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8056 | (exit $ac_status); } && { | |
8057 | test -z "$ac_c_werror_flag" || | |
8058 | test ! -s conftest.err | |
8059 | } && test -s conftest.$ac_objext; then | |
8060 | ac_cv_member_struct_tm_tm_zone=yes | |
8061 | else | |
8062 | $as_echo "$as_me: failed program was:" >&5 | |
8063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8064 | ||
8065 | ac_cv_member_struct_tm_tm_zone=no | |
8066 | fi | |
8067 | ||
8068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8069 | fi | |
8070 | ||
8071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8072 | fi | |
8073 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 | |
8074 | $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; } | |
8075 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
8076 | ||
8077 | cat >>confdefs.h <<_ACEOF | |
8078 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
98418dba | 8079 | _ACEOF |
0ca10bb7 RC |
8080 | |
8081 | ||
8082 | fi | |
8083 | ||
8084 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
8085 | ||
bf89cb4d GM |
8086 | cat >>confdefs.h <<\_ACEOF |
8087 | #define HAVE_TM_ZONE 1 | |
8088 | _ACEOF | |
0ca10bb7 | 8089 | |
ba4481b5 | 8090 | else |
bf89cb4d GM |
8091 | { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
8092 | $as_echo_n "checking whether tzname is declared... " >&6; } | |
8093 | if test "${ac_cv_have_decl_tzname+set}" = set; then | |
8094 | $as_echo_n "(cached) " >&6 | |
8095 | else | |
8096 | cat >conftest.$ac_ext <<_ACEOF | |
8097 | /* confdefs.h. */ | |
8098 | _ACEOF | |
8099 | cat confdefs.h >>conftest.$ac_ext | |
8100 | cat >>conftest.$ac_ext <<_ACEOF | |
8101 | /* end confdefs.h. */ | |
8102 | #include <time.h> | |
8103 | ||
8104 | int | |
8105 | main () | |
8106 | { | |
8107 | #ifndef tzname | |
8108 | (void) tzname; | |
8109 | #endif | |
8110 | ||
8111 | ; | |
8112 | return 0; | |
8113 | } | |
8114 | _ACEOF | |
8115 | rm -f conftest.$ac_objext | |
8116 | if { (ac_try="$ac_compile" | |
8117 | case "(($ac_try" in | |
8118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8119 | *) ac_try_echo=$ac_try;; | |
8120 | esac | |
8121 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8122 | $as_echo "$ac_try_echo") >&5 | |
8123 | (eval "$ac_compile") 2>conftest.er1 | |
8124 | ac_status=$? | |
8125 | grep -v '^ *+' conftest.er1 >conftest.err | |
8126 | rm -f conftest.er1 | |
8127 | cat conftest.err >&5 | |
8128 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8129 | (exit $ac_status); } && { | |
8130 | test -z "$ac_c_werror_flag" || | |
8131 | test ! -s conftest.err | |
8132 | } && test -s conftest.$ac_objext; then | |
8133 | ac_cv_have_decl_tzname=yes | |
0ca10bb7 | 8134 | else |
bf89cb4d GM |
8135 | $as_echo "$as_me: failed program was:" >&5 |
8136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8137 | ||
8138 | ac_cv_have_decl_tzname=no | |
0ca10bb7 | 8139 | fi |
19650fd6 | 8140 | |
bf89cb4d GM |
8141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8142 | fi | |
8143 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 | |
8144 | $as_echo "$ac_cv_have_decl_tzname" >&6; } | |
8145 | if test $ac_cv_have_decl_tzname = yes; then | |
8146 | ||
0ca10bb7 | 8147 | cat >>confdefs.h <<_ACEOF |
bf89cb4d GM |
8148 | #define HAVE_DECL_TZNAME 1 |
8149 | _ACEOF | |
8150 | ||
8151 | ||
8152 | else | |
8153 | cat >>confdefs.h <<_ACEOF | |
8154 | #define HAVE_DECL_TZNAME 0 | |
19650fd6 | 8155 | _ACEOF |
6bae0ccf | 8156 | |
bf89cb4d GM |
8157 | |
8158 | fi | |
8159 | ||
8160 | ||
8161 | { $as_echo "$as_me:$LINENO: checking for tzname" >&5 | |
0ca10bb7 | 8162 | $as_echo_n "checking for tzname... " >&6; } |
bf89cb4d | 8163 | if test "${ac_cv_var_tzname+set}" = set; then |
0ca10bb7 RC |
8164 | $as_echo_n "(cached) " >&6 |
8165 | else | |
bf89cb4d GM |
8166 | cat >conftest.$ac_ext <<_ACEOF |
8167 | /* confdefs.h. */ | |
8168 | _ACEOF | |
8169 | cat confdefs.h >>conftest.$ac_ext | |
8170 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 RC |
8171 | /* end confdefs.h. */ |
8172 | #include <time.h> | |
8173 | #if !HAVE_DECL_TZNAME | |
8174 | extern char *tzname[]; | |
8175 | #endif | |
6bae0ccf DL |
8176 | |
8177 | int | |
8178 | main () | |
8179 | { | |
0ca10bb7 | 8180 | return tzname[0][0]; |
6bae0ccf DL |
8181 | ; |
8182 | return 0; | |
8183 | } | |
8184 | _ACEOF | |
bf89cb4d GM |
8185 | rm -f conftest.$ac_objext conftest$ac_exeext |
8186 | if { (ac_try="$ac_link" | |
8187 | case "(($ac_try" in | |
8188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8189 | *) ac_try_echo=$ac_try;; | |
8190 | esac | |
8191 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8192 | $as_echo "$ac_try_echo") >&5 | |
8193 | (eval "$ac_link") 2>conftest.er1 | |
8194 | ac_status=$? | |
8195 | grep -v '^ *+' conftest.er1 >conftest.err | |
8196 | rm -f conftest.er1 | |
8197 | cat conftest.err >&5 | |
8198 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8199 | (exit $ac_status); } && { | |
8200 | test -z "$ac_c_werror_flag" || | |
8201 | test ! -s conftest.err | |
8202 | } && test -s conftest$ac_exeext && { | |
8203 | test "$cross_compiling" = yes || | |
8204 | $as_test_x conftest$ac_exeext | |
8205 | }; then | |
0ca10bb7 | 8206 | ac_cv_var_tzname=yes |
6bae0ccf | 8207 | else |
bf89cb4d GM |
8208 | $as_echo "$as_me: failed program was:" >&5 |
8209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8210 | ||
8211 | ac_cv_var_tzname=no | |
ba4481b5 | 8212 | fi |
bf89cb4d GM |
8213 | |
8214 | rm -rf conftest.dSYM | |
8215 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8216 | conftest$ac_exeext conftest.$ac_ext | |
ba4481b5 | 8217 | fi |
bf89cb4d | 8218 | { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
0ca10bb7 RC |
8219 | $as_echo "$ac_cv_var_tzname" >&6; } |
8220 | if test $ac_cv_var_tzname = yes; then | |
ca81d7a0 | 8221 | |
bf89cb4d GM |
8222 | cat >>confdefs.h <<\_ACEOF |
8223 | #define HAVE_TZNAME 1 | |
8224 | _ACEOF | |
0ca10bb7 RC |
8225 | |
8226 | fi | |
6bae0ccf | 8227 | fi |
503d2be0 | 8228 | |
bf89cb4d GM |
8229 | { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 |
8230 | $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; } | |
8231 | if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then | |
8232 | $as_echo_n "(cached) " >&6 | |
8233 | else | |
8234 | cat >conftest.$ac_ext <<_ACEOF | |
8235 | /* confdefs.h. */ | |
8236 | _ACEOF | |
8237 | cat confdefs.h >>conftest.$ac_ext | |
8238 | cat >>conftest.$ac_ext <<_ACEOF | |
8239 | /* end confdefs.h. */ | |
8240 | #include <time.h> | |
ba4481b5 | 8241 | |
bf89cb4d GM |
8242 | int |
8243 | main () | |
8244 | { | |
8245 | static struct tm ac_aggr; | |
8246 | if (ac_aggr.tm_gmtoff) | |
8247 | return 0; | |
8248 | ; | |
8249 | return 0; | |
8250 | } | |
8251 | _ACEOF | |
8252 | rm -f conftest.$ac_objext | |
8253 | if { (ac_try="$ac_compile" | |
8254 | case "(($ac_try" in | |
8255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8256 | *) ac_try_echo=$ac_try;; | |
8257 | esac | |
8258 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8259 | $as_echo "$ac_try_echo") >&5 | |
8260 | (eval "$ac_compile") 2>conftest.er1 | |
8261 | ac_status=$? | |
8262 | grep -v '^ *+' conftest.er1 >conftest.err | |
8263 | rm -f conftest.er1 | |
8264 | cat conftest.err >&5 | |
8265 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8266 | (exit $ac_status); } && { | |
8267 | test -z "$ac_c_werror_flag" || | |
8268 | test ! -s conftest.err | |
8269 | } && test -s conftest.$ac_objext; then | |
8270 | ac_cv_member_struct_tm_tm_gmtoff=yes | |
8271 | else | |
8272 | $as_echo "$as_me: failed program was:" >&5 | |
8273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ba4481b5 | 8274 | |
bf89cb4d GM |
8275 | cat >conftest.$ac_ext <<_ACEOF |
8276 | /* confdefs.h. */ | |
c0d27fcc | 8277 | _ACEOF |
bf89cb4d GM |
8278 | cat confdefs.h >>conftest.$ac_ext |
8279 | cat >>conftest.$ac_ext <<_ACEOF | |
8280 | /* end confdefs.h. */ | |
8281 | #include <time.h> | |
ba4481b5 | 8282 | |
bf89cb4d GM |
8283 | int |
8284 | main () | |
8285 | { | |
8286 | static struct tm ac_aggr; | |
8287 | if (sizeof ac_aggr.tm_gmtoff) | |
8288 | return 0; | |
8289 | ; | |
8290 | return 0; | |
8291 | } | |
8292 | _ACEOF | |
8293 | rm -f conftest.$ac_objext | |
8294 | if { (ac_try="$ac_compile" | |
8295 | case "(($ac_try" in | |
8296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8297 | *) ac_try_echo=$ac_try;; | |
8298 | esac | |
8299 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8300 | $as_echo "$ac_try_echo") >&5 | |
8301 | (eval "$ac_compile") 2>conftest.er1 | |
8302 | ac_status=$? | |
8303 | grep -v '^ *+' conftest.er1 >conftest.err | |
8304 | rm -f conftest.er1 | |
8305 | cat conftest.err >&5 | |
8306 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8307 | (exit $ac_status); } && { | |
8308 | test -z "$ac_c_werror_flag" || | |
8309 | test ! -s conftest.err | |
8310 | } && test -s conftest.$ac_objext; then | |
8311 | ac_cv_member_struct_tm_tm_gmtoff=yes | |
8312 | else | |
8313 | $as_echo "$as_me: failed program was:" >&5 | |
8314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
98418dba | 8315 | |
bf89cb4d | 8316 | ac_cv_member_struct_tm_tm_gmtoff=no |
0ca10bb7 | 8317 | fi |
19650fd6 | 8318 | |
bf89cb4d GM |
8319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8320 | fi | |
0ca10bb7 | 8321 | |
bf89cb4d | 8322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 8323 | fi |
bf89cb4d GM |
8324 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 |
8325 | $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; } | |
8326 | if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then | |
0ca10bb7 | 8327 | |
bf89cb4d GM |
8328 | cat >>confdefs.h <<\_ACEOF |
8329 | #define HAVE_TM_GMTOFF 1 | |
0ca10bb7 RC |
8330 | _ACEOF |
8331 | ||
6bae0ccf | 8332 | fi |
bf89cb4d GM |
8333 | |
8334 | { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5 | |
8335 | $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; } | |
8336 | if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then | |
8337 | $as_echo_n "(cached) " >&6 | |
8338 | else | |
8339 | cat >conftest.$ac_ext <<_ACEOF | |
8340 | /* confdefs.h. */ | |
8341 | _ACEOF | |
8342 | cat confdefs.h >>conftest.$ac_ext | |
8343 | cat >>conftest.$ac_ext <<_ACEOF | |
8344 | /* end confdefs.h. */ | |
8345 | $ac_includes_default | |
0ca10bb7 RC |
8346 | #if HAVE_SYS_SOCKET_H |
8347 | #include <sys/socket.h> | |
8348 | #endif | |
8349 | #if HAVE_NET_IF_H | |
8350 | #include <net/if.h> | |
8351 | #endif | |
503d2be0 | 8352 | |
bf89cb4d GM |
8353 | int |
8354 | main () | |
8355 | { | |
8356 | static struct ifreq ac_aggr; | |
8357 | if (ac_aggr.ifr_flags) | |
8358 | return 0; | |
8359 | ; | |
8360 | return 0; | |
8361 | } | |
c0d27fcc | 8362 | _ACEOF |
bf89cb4d GM |
8363 | rm -f conftest.$ac_objext |
8364 | if { (ac_try="$ac_compile" | |
8365 | case "(($ac_try" in | |
8366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8367 | *) ac_try_echo=$ac_try;; | |
8368 | esac | |
8369 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8370 | $as_echo "$ac_try_echo") >&5 | |
8371 | (eval "$ac_compile") 2>conftest.er1 | |
8372 | ac_status=$? | |
8373 | grep -v '^ *+' conftest.er1 >conftest.err | |
8374 | rm -f conftest.er1 | |
8375 | cat conftest.err >&5 | |
8376 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8377 | (exit $ac_status); } && { | |
8378 | test -z "$ac_c_werror_flag" || | |
8379 | test ! -s conftest.err | |
8380 | } && test -s conftest.$ac_objext; then | |
8381 | ac_cv_member_struct_ifreq_ifr_flags=yes | |
8382 | else | |
8383 | $as_echo "$as_me: failed program was:" >&5 | |
8384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c0d27fcc | 8385 | |
bf89cb4d GM |
8386 | cat >conftest.$ac_ext <<_ACEOF |
8387 | /* confdefs.h. */ | |
8388 | _ACEOF | |
8389 | cat confdefs.h >>conftest.$ac_ext | |
8390 | cat >>conftest.$ac_ext <<_ACEOF | |
8391 | /* end confdefs.h. */ | |
8392 | $ac_includes_default | |
0ca10bb7 RC |
8393 | #if HAVE_SYS_SOCKET_H |
8394 | #include <sys/socket.h> | |
8395 | #endif | |
8396 | #if HAVE_NET_IF_H | |
8397 | #include <net/if.h> | |
8398 | #endif | |
0ca10bb7 | 8399 | |
bf89cb4d GM |
8400 | int |
8401 | main () | |
8402 | { | |
8403 | static struct ifreq ac_aggr; | |
8404 | if (sizeof ac_aggr.ifr_flags) | |
8405 | return 0; | |
8406 | ; | |
8407 | return 0; | |
8408 | } | |
ca81d7a0 | 8409 | _ACEOF |
bf89cb4d GM |
8410 | rm -f conftest.$ac_objext |
8411 | if { (ac_try="$ac_compile" | |
8412 | case "(($ac_try" in | |
8413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8414 | *) ac_try_echo=$ac_try;; | |
8415 | esac | |
8416 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8417 | $as_echo "$ac_try_echo") >&5 | |
8418 | (eval "$ac_compile") 2>conftest.er1 | |
8419 | ac_status=$? | |
8420 | grep -v '^ *+' conftest.er1 >conftest.err | |
8421 | rm -f conftest.er1 | |
8422 | cat conftest.err >&5 | |
8423 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8424 | (exit $ac_status); } && { | |
8425 | test -z "$ac_c_werror_flag" || | |
8426 | test ! -s conftest.err | |
8427 | } && test -s conftest.$ac_objext; then | |
8428 | ac_cv_member_struct_ifreq_ifr_flags=yes | |
8429 | else | |
8430 | $as_echo "$as_me: failed program was:" >&5 | |
8431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ba4481b5 | 8432 | |
bf89cb4d | 8433 | ac_cv_member_struct_ifreq_ifr_flags=no |
98418dba | 8434 | fi |
ba4481b5 | 8435 | |
bf89cb4d GM |
8436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8437 | fi | |
ca81d7a0 | 8438 | |
bf89cb4d GM |
8439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8440 | fi | |
8441 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5 | |
8442 | $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; } | |
8443 | if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then | |
0ca10bb7 | 8444 | |
bf89cb4d GM |
8445 | cat >>confdefs.h <<_ACEOF |
8446 | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 | |
8447 | _ACEOF | |
0ca10bb7 | 8448 | |
0ca10bb7 | 8449 | |
0ca10bb7 | 8450 | fi |
bf89cb4d GM |
8451 | { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5 |
8452 | $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; } | |
8453 | if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then | |
e9a63f04 | 8454 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 8455 | else |
bf89cb4d GM |
8456 | cat >conftest.$ac_ext <<_ACEOF |
8457 | /* confdefs.h. */ | |
8458 | _ACEOF | |
8459 | cat confdefs.h >>conftest.$ac_ext | |
8460 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 8461 | /* end confdefs.h. */ |
bf89cb4d GM |
8462 | $ac_includes_default |
8463 | #if HAVE_SYS_SOCKET_H | |
8464 | #include <sys/socket.h> | |
8465 | #endif | |
8466 | #if HAVE_NET_IF_H | |
8467 | #include <net/if.h> | |
8468 | #endif | |
98418dba | 8469 | |
98418dba CW |
8470 | int |
8471 | main () | |
8472 | { | |
bf89cb4d GM |
8473 | static struct ifreq ac_aggr; |
8474 | if (ac_aggr.ifr_hwaddr) | |
8475 | return 0; | |
98418dba CW |
8476 | ; |
8477 | return 0; | |
8478 | } | |
8479 | _ACEOF | |
bf89cb4d GM |
8480 | rm -f conftest.$ac_objext |
8481 | if { (ac_try="$ac_compile" | |
8482 | case "(($ac_try" in | |
8483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8484 | *) ac_try_echo=$ac_try;; | |
8485 | esac | |
8486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8487 | $as_echo "$ac_try_echo") >&5 | |
8488 | (eval "$ac_compile") 2>conftest.er1 | |
8489 | ac_status=$? | |
8490 | grep -v '^ *+' conftest.er1 >conftest.err | |
8491 | rm -f conftest.er1 | |
8492 | cat conftest.err >&5 | |
8493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8494 | (exit $ac_status); } && { | |
8495 | test -z "$ac_c_werror_flag" || | |
8496 | test ! -s conftest.err | |
8497 | } && test -s conftest.$ac_objext; then | |
8498 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes | |
98418dba | 8499 | else |
bf89cb4d GM |
8500 | $as_echo "$as_me: failed program was:" >&5 |
8501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8502 | ||
8503 | cat >conftest.$ac_ext <<_ACEOF | |
8504 | /* confdefs.h. */ | |
8505 | _ACEOF | |
8506 | cat confdefs.h >>conftest.$ac_ext | |
8507 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 8508 | /* end confdefs.h. */ |
bf89cb4d GM |
8509 | $ac_includes_default |
8510 | #if HAVE_SYS_SOCKET_H | |
8511 | #include <sys/socket.h> | |
8512 | #endif | |
8513 | #if HAVE_NET_IF_H | |
8514 | #include <net/if.h> | |
8515 | #endif | |
b936fae4 | 8516 | |
98418dba CW |
8517 | int |
8518 | main () | |
8519 | { | |
bf89cb4d GM |
8520 | static struct ifreq ac_aggr; |
8521 | if (sizeof ac_aggr.ifr_hwaddr) | |
8522 | return 0; | |
98418dba CW |
8523 | ; |
8524 | return 0; | |
8525 | } | |
8526 | _ACEOF | |
bf89cb4d GM |
8527 | rm -f conftest.$ac_objext |
8528 | if { (ac_try="$ac_compile" | |
8529 | case "(($ac_try" in | |
8530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8531 | *) ac_try_echo=$ac_try;; | |
8532 | esac | |
8533 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8534 | $as_echo "$ac_try_echo") >&5 | |
8535 | (eval "$ac_compile") 2>conftest.er1 | |
8536 | ac_status=$? | |
8537 | grep -v '^ *+' conftest.er1 >conftest.err | |
8538 | rm -f conftest.er1 | |
8539 | cat conftest.err >&5 | |
8540 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8541 | (exit $ac_status); } && { | |
8542 | test -z "$ac_c_werror_flag" || | |
8543 | test ! -s conftest.err | |
8544 | } && test -s conftest.$ac_objext; then | |
8545 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes | |
98418dba | 8546 | else |
bf89cb4d GM |
8547 | $as_echo "$as_me: failed program was:" >&5 |
8548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8549 | ||
8550 | ac_cv_member_struct_ifreq_ifr_hwaddr=no | |
0ca10bb7 | 8551 | fi |
bf89cb4d | 8552 | |
0ca10bb7 RC |
8553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8554 | fi | |
0ca10bb7 | 8555 | |
bf89cb4d | 8556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0ca10bb7 | 8557 | fi |
bf89cb4d GM |
8558 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5 |
8559 | $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; } | |
8560 | if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then | |
0ca10bb7 | 8561 | |
bf89cb4d GM |
8562 | cat >>confdefs.h <<_ACEOF |
8563 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 | |
8564 | _ACEOF | |
8565 | ||
8566 | ||
8567 | fi | |
8568 | { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5 | |
8569 | $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; } | |
8570 | if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then | |
0ca10bb7 RC |
8571 | $as_echo_n "(cached) " >&6 |
8572 | else | |
bf89cb4d GM |
8573 | cat >conftest.$ac_ext <<_ACEOF |
8574 | /* confdefs.h. */ | |
8575 | _ACEOF | |
8576 | cat confdefs.h >>conftest.$ac_ext | |
8577 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 8578 | /* end confdefs.h. */ |
bf89cb4d GM |
8579 | $ac_includes_default |
8580 | #if HAVE_SYS_SOCKET_H | |
8581 | #include <sys/socket.h> | |
8582 | #endif | |
8583 | #if HAVE_NET_IF_H | |
8584 | #include <net/if.h> | |
8585 | #endif | |
6bae0ccf | 8586 | |
8799b3e4 CW |
8587 | int |
8588 | main () | |
8589 | { | |
bf89cb4d GM |
8590 | static struct ifreq ac_aggr; |
8591 | if (ac_aggr.ifr_netmask) | |
8592 | return 0; | |
8799b3e4 CW |
8593 | ; |
8594 | return 0; | |
8595 | } | |
8596 | _ACEOF | |
bf89cb4d GM |
8597 | rm -f conftest.$ac_objext |
8598 | if { (ac_try="$ac_compile" | |
8599 | case "(($ac_try" in | |
8600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8601 | *) ac_try_echo=$ac_try;; | |
8602 | esac | |
8603 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8604 | $as_echo "$ac_try_echo") >&5 | |
8605 | (eval "$ac_compile") 2>conftest.er1 | |
8606 | ac_status=$? | |
8607 | grep -v '^ *+' conftest.er1 >conftest.err | |
8608 | rm -f conftest.er1 | |
8609 | cat conftest.err >&5 | |
8610 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8611 | (exit $ac_status); } && { | |
8612 | test -z "$ac_c_werror_flag" || | |
8613 | test ! -s conftest.err | |
8614 | } && test -s conftest.$ac_objext; then | |
8615 | ac_cv_member_struct_ifreq_ifr_netmask=yes | |
8799b3e4 | 8616 | else |
bf89cb4d GM |
8617 | $as_echo "$as_me: failed program was:" >&5 |
8618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8619 | ||
8620 | cat >conftest.$ac_ext <<_ACEOF | |
8621 | /* confdefs.h. */ | |
8622 | _ACEOF | |
8623 | cat confdefs.h >>conftest.$ac_ext | |
8624 | cat >>conftest.$ac_ext <<_ACEOF | |
8625 | /* end confdefs.h. */ | |
8626 | $ac_includes_default | |
8627 | #if HAVE_SYS_SOCKET_H | |
8628 | #include <sys/socket.h> | |
8629 | #endif | |
8630 | #if HAVE_NET_IF_H | |
8631 | #include <net/if.h> | |
8632 | #endif | |
0ca10bb7 | 8633 | |
bf89cb4d GM |
8634 | int |
8635 | main () | |
8636 | { | |
8637 | static struct ifreq ac_aggr; | |
8638 | if (sizeof ac_aggr.ifr_netmask) | |
8639 | return 0; | |
8640 | ; | |
8641 | return 0; | |
8642 | } | |
8643 | _ACEOF | |
8644 | rm -f conftest.$ac_objext | |
8645 | if { (ac_try="$ac_compile" | |
8646 | case "(($ac_try" in | |
8647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8648 | *) ac_try_echo=$ac_try;; | |
8649 | esac | |
8650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8651 | $as_echo "$ac_try_echo") >&5 | |
8652 | (eval "$ac_compile") 2>conftest.er1 | |
8653 | ac_status=$? | |
8654 | grep -v '^ *+' conftest.er1 >conftest.err | |
8655 | rm -f conftest.er1 | |
8656 | cat conftest.err >&5 | |
8657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8658 | (exit $ac_status); } && { | |
8659 | test -z "$ac_c_werror_flag" || | |
8660 | test ! -s conftest.err | |
8661 | } && test -s conftest.$ac_objext; then | |
8662 | ac_cv_member_struct_ifreq_ifr_netmask=yes | |
0ca10bb7 | 8663 | else |
bf89cb4d GM |
8664 | $as_echo "$as_me: failed program was:" >&5 |
8665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8666 | ||
8667 | ac_cv_member_struct_ifreq_ifr_netmask=no | |
8668 | fi | |
ca81d7a0 | 8669 | |
bf89cb4d | 8670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8799b3e4 | 8671 | fi |
6bae0ccf | 8672 | |
bf89cb4d GM |
8673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8674 | fi | |
8675 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5 | |
8676 | $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; } | |
8677 | if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then | |
6bae0ccf | 8678 | |
bf89cb4d GM |
8679 | cat >>confdefs.h <<_ACEOF |
8680 | #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 | |
8681 | _ACEOF | |
6bae0ccf | 8682 | |
0ca10bb7 | 8683 | |
bf89cb4d GM |
8684 | fi |
8685 | { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5 | |
8686 | $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; } | |
8687 | if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then | |
e9a63f04 | 8688 | $as_echo_n "(cached) " >&6 |
96f3a036 | 8689 | else |
bf89cb4d GM |
8690 | cat >conftest.$ac_ext <<_ACEOF |
8691 | /* confdefs.h. */ | |
96f3a036 | 8692 | _ACEOF |
bf89cb4d GM |
8693 | cat confdefs.h >>conftest.$ac_ext |
8694 | cat >>conftest.$ac_ext <<_ACEOF | |
8695 | /* end confdefs.h. */ | |
8696 | $ac_includes_default | |
8697 | #if HAVE_SYS_SOCKET_H | |
8698 | #include <sys/socket.h> | |
8699 | #endif | |
8700 | #if HAVE_NET_IF_H | |
8701 | #include <net/if.h> | |
8702 | #endif | |
8703 | ||
8704 | int | |
8705 | main () | |
8706 | { | |
8707 | static struct ifreq ac_aggr; | |
8708 | if (ac_aggr.ifr_broadaddr) | |
8709 | return 0; | |
8710 | ; | |
8711 | return 0; | |
8712 | } | |
8713 | _ACEOF | |
8714 | rm -f conftest.$ac_objext | |
8715 | if { (ac_try="$ac_compile" | |
8716 | case "(($ac_try" in | |
8717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8718 | *) ac_try_echo=$ac_try;; | |
0ca10bb7 | 8719 | esac |
bf89cb4d GM |
8720 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8721 | $as_echo "$ac_try_echo") >&5 | |
8722 | (eval "$ac_compile") 2>conftest.er1 | |
8723 | ac_status=$? | |
8724 | grep -v '^ *+' conftest.er1 >conftest.err | |
8725 | rm -f conftest.er1 | |
8726 | cat conftest.err >&5 | |
8727 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8728 | (exit $ac_status); } && { | |
8729 | test -z "$ac_c_werror_flag" || | |
8730 | test ! -s conftest.err | |
8731 | } && test -s conftest.$ac_objext; then | |
8732 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes | |
0ca10bb7 | 8733 | else |
bf89cb4d GM |
8734 | $as_echo "$as_me: failed program was:" >&5 |
8735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 8736 | |
bf89cb4d GM |
8737 | cat >conftest.$ac_ext <<_ACEOF |
8738 | /* confdefs.h. */ | |
8739 | _ACEOF | |
8740 | cat confdefs.h >>conftest.$ac_ext | |
8741 | cat >>conftest.$ac_ext <<_ACEOF | |
96f3a036 | 8742 | /* end confdefs.h. */ |
bf89cb4d GM |
8743 | $ac_includes_default |
8744 | #if HAVE_SYS_SOCKET_H | |
8745 | #include <sys/socket.h> | |
8746 | #endif | |
8747 | #if HAVE_NET_IF_H | |
8748 | #include <net/if.h> | |
8749 | #endif | |
96f3a036 DL |
8750 | |
8751 | int | |
8752 | main () | |
8753 | { | |
bf89cb4d GM |
8754 | static struct ifreq ac_aggr; |
8755 | if (sizeof ac_aggr.ifr_broadaddr) | |
8756 | return 0; | |
96f3a036 DL |
8757 | ; |
8758 | return 0; | |
8759 | } | |
8760 | _ACEOF | |
bf89cb4d GM |
8761 | rm -f conftest.$ac_objext |
8762 | if { (ac_try="$ac_compile" | |
8763 | case "(($ac_try" in | |
8764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8765 | *) ac_try_echo=$ac_try;; | |
8766 | esac | |
8767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8768 | $as_echo "$ac_try_echo") >&5 | |
8769 | (eval "$ac_compile") 2>conftest.er1 | |
8770 | ac_status=$? | |
8771 | grep -v '^ *+' conftest.er1 >conftest.err | |
8772 | rm -f conftest.er1 | |
8773 | cat conftest.err >&5 | |
8774 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8775 | (exit $ac_status); } && { | |
8776 | test -z "$ac_c_werror_flag" || | |
8777 | test ! -s conftest.err | |
8778 | } && test -s conftest.$ac_objext; then | |
8779 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes | |
96f3a036 | 8780 | else |
bf89cb4d GM |
8781 | $as_echo "$as_me: failed program was:" >&5 |
8782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8783 | ||
8784 | ac_cv_member_struct_ifreq_ifr_broadaddr=no | |
0ca10bb7 | 8785 | fi |
96f3a036 | 8786 | |
bf89cb4d GM |
8787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8788 | fi | |
0ca10bb7 | 8789 | |
bf89cb4d | 8790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 8791 | fi |
bf89cb4d GM |
8792 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5 |
8793 | $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; } | |
8794 | if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then | |
ca81d7a0 | 8795 | |
bf89cb4d GM |
8796 | cat >>confdefs.h <<_ACEOF |
8797 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 | |
8798 | _ACEOF | |
0ca10bb7 | 8799 | |
ca81d7a0 | 8800 | |
96f3a036 | 8801 | fi |
bf89cb4d GM |
8802 | { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5 |
8803 | $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; } | |
8804 | if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then | |
8805 | $as_echo_n "(cached) " >&6 | |
8806 | else | |
8807 | cat >conftest.$ac_ext <<_ACEOF | |
8808 | /* confdefs.h. */ | |
8809 | _ACEOF | |
8810 | cat confdefs.h >>conftest.$ac_ext | |
8811 | cat >>conftest.$ac_ext <<_ACEOF | |
8812 | /* end confdefs.h. */ | |
8813 | $ac_includes_default | |
8814 | #if HAVE_SYS_SOCKET_H | |
8815 | #include <sys/socket.h> | |
8816 | #endif | |
8817 | #if HAVE_NET_IF_H | |
8818 | #include <net/if.h> | |
8819 | #endif | |
96f3a036 | 8820 | |
bf89cb4d GM |
8821 | int |
8822 | main () | |
8823 | { | |
8824 | static struct ifreq ac_aggr; | |
8825 | if (ac_aggr.ifr_addr) | |
8826 | return 0; | |
8827 | ; | |
8828 | return 0; | |
8829 | } | |
8830 | _ACEOF | |
8831 | rm -f conftest.$ac_objext | |
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8838 | $as_echo "$ac_try_echo") >&5 | |
8839 | (eval "$ac_compile") 2>conftest.er1 | |
8840 | ac_status=$? | |
8841 | grep -v '^ *+' conftest.er1 >conftest.err | |
8842 | rm -f conftest.er1 | |
8843 | cat conftest.err >&5 | |
8844 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8845 | (exit $ac_status); } && { | |
8846 | test -z "$ac_c_werror_flag" || | |
8847 | test ! -s conftest.err | |
8848 | } && test -s conftest.$ac_objext; then | |
8849 | ac_cv_member_struct_ifreq_ifr_addr=yes | |
8850 | else | |
8851 | $as_echo "$as_me: failed program was:" >&5 | |
8852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 8853 | |
bf89cb4d GM |
8854 | cat >conftest.$ac_ext <<_ACEOF |
8855 | /* confdefs.h. */ | |
8856 | _ACEOF | |
8857 | cat confdefs.h >>conftest.$ac_ext | |
8858 | cat >>conftest.$ac_ext <<_ACEOF | |
8859 | /* end confdefs.h. */ | |
8860 | $ac_includes_default | |
8861 | #if HAVE_SYS_SOCKET_H | |
8862 | #include <sys/socket.h> | |
8863 | #endif | |
8864 | #if HAVE_NET_IF_H | |
8865 | #include <net/if.h> | |
8866 | #endif | |
0ca10bb7 | 8867 | |
bf89cb4d GM |
8868 | int |
8869 | main () | |
8870 | { | |
8871 | static struct ifreq ac_aggr; | |
8872 | if (sizeof ac_aggr.ifr_addr) | |
8873 | return 0; | |
8874 | ; | |
8875 | return 0; | |
8876 | } | |
8877 | _ACEOF | |
8878 | rm -f conftest.$ac_objext | |
8879 | if { (ac_try="$ac_compile" | |
8880 | case "(($ac_try" in | |
8881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8882 | *) ac_try_echo=$ac_try;; | |
8883 | esac | |
8884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8885 | $as_echo "$ac_try_echo") >&5 | |
8886 | (eval "$ac_compile") 2>conftest.er1 | |
8887 | ac_status=$? | |
8888 | grep -v '^ *+' conftest.er1 >conftest.err | |
8889 | rm -f conftest.er1 | |
8890 | cat conftest.err >&5 | |
8891 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8892 | (exit $ac_status); } && { | |
8893 | test -z "$ac_c_werror_flag" || | |
8894 | test ! -s conftest.err | |
8895 | } && test -s conftest.$ac_objext; then | |
8896 | ac_cv_member_struct_ifreq_ifr_addr=yes | |
8897 | else | |
8898 | $as_echo "$as_me: failed program was:" >&5 | |
8899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
96f3a036 | 8900 | |
bf89cb4d GM |
8901 | ac_cv_member_struct_ifreq_ifr_addr=no |
8902 | fi | |
96f3a036 | 8903 | |
bf89cb4d | 8904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 8905 | fi |
0ca10bb7 | 8906 | |
bf89cb4d | 8907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0ca10bb7 | 8908 | fi |
bf89cb4d GM |
8909 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5 |
8910 | $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; } | |
8911 | if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then | |
96f3a036 | 8912 | |
bf89cb4d GM |
8913 | cat >>confdefs.h <<_ACEOF |
8914 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 | |
8915 | _ACEOF | |
0ca10bb7 | 8916 | |
0ca10bb7 | 8917 | |
bf89cb4d | 8918 | fi |
0ca10bb7 | 8919 | |
0ca10bb7 | 8920 | |
0ca10bb7 | 8921 | |
bf89cb4d GM |
8922 | { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5 |
8923 | $as_echo_n "checking for function prototypes... " >&6; } | |
8924 | if test "$ac_cv_prog_cc_c89" != no; then | |
8925 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
8926 | $as_echo "yes" >&6; } | |
0ca10bb7 | 8927 | |
bf89cb4d GM |
8928 | cat >>confdefs.h <<\_ACEOF |
8929 | #define PROTOTYPES 1 | |
8930 | _ACEOF | |
0ca10bb7 | 8931 | |
bf89cb4d GM |
8932 | |
8933 | cat >>confdefs.h <<\_ACEOF | |
8934 | #define __PROTOTYPES 1 | |
96f3a036 | 8935 | _ACEOF |
bf89cb4d | 8936 | |
96f3a036 | 8937 | else |
bf89cb4d GM |
8938 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8939 | $as_echo "no" >&6; } | |
0ca10bb7 | 8940 | fi |
96f3a036 | 8941 | |
bf89cb4d GM |
8942 | { $as_echo "$as_me:$LINENO: checking for working volatile" >&5 |
8943 | $as_echo_n "checking for working volatile... " >&6; } | |
8944 | if test "${ac_cv_c_volatile+set}" = set; then | |
8945 | $as_echo_n "(cached) " >&6 | |
8946 | else | |
8947 | cat >conftest.$ac_ext <<_ACEOF | |
8948 | /* confdefs.h. */ | |
8949 | _ACEOF | |
8950 | cat confdefs.h >>conftest.$ac_ext | |
8951 | cat >>conftest.$ac_ext <<_ACEOF | |
96f3a036 | 8952 | /* end confdefs.h. */ |
bf89cb4d | 8953 | |
96f3a036 DL |
8954 | int |
8955 | main () | |
8956 | { | |
bf89cb4d GM |
8957 | |
8958 | volatile int x; | |
8959 | int * volatile y = (int *) 0; | |
8960 | return !x && !y; | |
96f3a036 DL |
8961 | ; |
8962 | return 0; | |
8963 | } | |
8964 | _ACEOF | |
bf89cb4d GM |
8965 | rm -f conftest.$ac_objext |
8966 | if { (ac_try="$ac_compile" | |
8967 | case "(($ac_try" in | |
8968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8969 | *) ac_try_echo=$ac_try;; | |
8970 | esac | |
8971 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8972 | $as_echo "$ac_try_echo") >&5 | |
8973 | (eval "$ac_compile") 2>conftest.er1 | |
8974 | ac_status=$? | |
8975 | grep -v '^ *+' conftest.er1 >conftest.err | |
8976 | rm -f conftest.er1 | |
8977 | cat conftest.err >&5 | |
8978 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8979 | (exit $ac_status); } && { | |
8980 | test -z "$ac_c_werror_flag" || | |
8981 | test ! -s conftest.err | |
8982 | } && test -s conftest.$ac_objext; then | |
8983 | ac_cv_c_volatile=yes | |
96f3a036 | 8984 | else |
bf89cb4d GM |
8985 | $as_echo "$as_me: failed program was:" >&5 |
8986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8987 | ||
8988 | ac_cv_c_volatile=no | |
96f3a036 | 8989 | fi |
ca81d7a0 | 8990 | |
bf89cb4d | 8991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 8992 | fi |
bf89cb4d GM |
8993 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
8994 | $as_echo "$ac_cv_c_volatile" >&6; } | |
8995 | if test $ac_cv_c_volatile = no; then | |
8996 | ||
8997 | cat >>confdefs.h <<\_ACEOF | |
8998 | #define volatile /**/ | |
8999 | _ACEOF | |
96f3a036 | 9000 | |
0ca10bb7 | 9001 | fi |
96f3a036 | 9002 | |
bf89cb4d GM |
9003 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
9004 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
9005 | if test "${ac_cv_c_const+set}" = set; then | |
9006 | $as_echo_n "(cached) " >&6 | |
96f3a036 | 9007 | else |
bf89cb4d GM |
9008 | cat >conftest.$ac_ext <<_ACEOF |
9009 | /* confdefs.h. */ | |
9010 | _ACEOF | |
9011 | cat confdefs.h >>conftest.$ac_ext | |
9012 | cat >>conftest.$ac_ext <<_ACEOF | |
9013 | /* end confdefs.h. */ | |
96f3a036 | 9014 | |
bf89cb4d GM |
9015 | int |
9016 | main () | |
9017 | { | |
9018 | /* FIXME: Include the comments suggested by Paul. */ | |
9019 | #ifndef __cplusplus | |
9020 | /* Ultrix mips cc rejects this. */ | |
9021 | typedef int charset[2]; | |
9022 | const charset cs; | |
9023 | /* SunOS 4.1.1 cc rejects this. */ | |
9024 | char const *const *pcpcc; | |
9025 | char **ppc; | |
9026 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
9027 | struct point {int x, y;}; | |
9028 | static struct point const zero = {0,0}; | |
9029 | /* AIX XL C 1.02.0.0 rejects this. | |
9030 | It does not let you subtract one const X* pointer from another in | |
9031 | an arm of an if-expression whose if-part is not a constant | |
9032 | expression */ | |
9033 | const char *g = "string"; | |
9034 | pcpcc = &g + (g ? g-g : 0); | |
9035 | /* HPUX 7.0 cc rejects these. */ | |
9036 | ++pcpcc; | |
9037 | ppc = (char**) pcpcc; | |
9038 | pcpcc = (char const *const *) ppc; | |
9039 | { /* SCO 3.2v4 cc rejects this. */ | |
9040 | char *t; | |
9041 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
96f3a036 | 9042 | |
bf89cb4d GM |
9043 | *t++ = 0; |
9044 | if (s) return 0; | |
9045 | } | |
9046 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
9047 | int x[] = {25, 17}; | |
9048 | const int *foo = &x[0]; | |
9049 | ++foo; | |
9050 | } | |
9051 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
9052 | typedef const int *iptr; | |
9053 | iptr p = 0; | |
9054 | ++p; | |
9055 | } | |
9056 | { /* AIX XL C 1.02.0.0 rejects this saying | |
9057 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
9058 | struct s { int j; const int *ap[3]; }; | |
9059 | struct s *b; b->j = 5; | |
9060 | } | |
9061 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
9062 | const int foo = 10; | |
9063 | if (!foo) return 0; | |
9064 | } | |
9065 | return !cs[0] && !zero.x; | |
9066 | #endif | |
96f3a036 | 9067 | |
bf89cb4d GM |
9068 | ; |
9069 | return 0; | |
9070 | } | |
9071 | _ACEOF | |
9072 | rm -f conftest.$ac_objext | |
9073 | if { (ac_try="$ac_compile" | |
9074 | case "(($ac_try" in | |
9075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9076 | *) ac_try_echo=$ac_try;; | |
9077 | esac | |
9078 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9079 | $as_echo "$ac_try_echo") >&5 | |
9080 | (eval "$ac_compile") 2>conftest.er1 | |
9081 | ac_status=$? | |
9082 | grep -v '^ *+' conftest.er1 >conftest.err | |
9083 | rm -f conftest.er1 | |
9084 | cat conftest.err >&5 | |
9085 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9086 | (exit $ac_status); } && { | |
9087 | test -z "$ac_c_werror_flag" || | |
9088 | test ! -s conftest.err | |
9089 | } && test -s conftest.$ac_objext; then | |
9090 | ac_cv_c_const=yes | |
9091 | else | |
9092 | $as_echo "$as_me: failed program was:" >&5 | |
9093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ca81d7a0 | 9094 | |
bf89cb4d | 9095 | ac_cv_c_const=no |
96f3a036 | 9096 | fi |
96f3a036 | 9097 | |
bf89cb4d | 9098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0ca10bb7 | 9099 | fi |
bf89cb4d GM |
9100 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
9101 | $as_echo "$ac_cv_c_const" >&6; } | |
9102 | if test $ac_cv_c_const = no; then | |
96f3a036 | 9103 | |
bf89cb4d GM |
9104 | cat >>confdefs.h <<\_ACEOF |
9105 | #define const /**/ | |
9106 | _ACEOF | |
96f3a036 | 9107 | |
bf89cb4d | 9108 | fi |
96f3a036 | 9109 | |
bf89cb4d GM |
9110 | { $as_echo "$as_me:$LINENO: checking for void * support" >&5 |
9111 | $as_echo_n "checking for void * support... " >&6; } | |
9112 | if test "${emacs_cv_void_star+set}" = set; then | |
9113 | $as_echo_n "(cached) " >&6 | |
9114 | else | |
9115 | cat >conftest.$ac_ext <<_ACEOF | |
9116 | /* confdefs.h. */ | |
9117 | _ACEOF | |
9118 | cat confdefs.h >>conftest.$ac_ext | |
9119 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 | 9120 | /* end confdefs.h. */ |
bf89cb4d | 9121 | |
96f3a036 DL |
9122 | int |
9123 | main () | |
9124 | { | |
bf89cb4d | 9125 | void * foo; |
96f3a036 DL |
9126 | ; |
9127 | return 0; | |
9128 | } | |
9129 | _ACEOF | |
bf89cb4d GM |
9130 | rm -f conftest.$ac_objext |
9131 | if { (ac_try="$ac_compile" | |
9132 | case "(($ac_try" in | |
9133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9134 | *) ac_try_echo=$ac_try;; | |
9135 | esac | |
9136 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9137 | $as_echo "$ac_try_echo") >&5 | |
9138 | (eval "$ac_compile") 2>conftest.er1 | |
9139 | ac_status=$? | |
9140 | grep -v '^ *+' conftest.er1 >conftest.err | |
9141 | rm -f conftest.er1 | |
9142 | cat conftest.err >&5 | |
9143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9144 | (exit $ac_status); } && { | |
9145 | test -z "$ac_c_werror_flag" || | |
9146 | test ! -s conftest.err | |
9147 | } && test -s conftest.$ac_objext; then | |
9148 | emacs_cv_void_star=yes | |
96f3a036 | 9149 | else |
bf89cb4d GM |
9150 | $as_echo "$as_me: failed program was:" >&5 |
9151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9152 | ||
9153 | emacs_cv_void_star=no | |
96f3a036 | 9154 | fi |
bf89cb4d | 9155 | |
ca81d7a0 | 9156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
96f3a036 | 9157 | fi |
bf89cb4d GM |
9158 | { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 |
9159 | $as_echo "$emacs_cv_void_star" >&6; } | |
9160 | if test $emacs_cv_void_star = yes; then | |
9161 | cat >>confdefs.h <<\_ACEOF | |
9162 | #define POINTER_TYPE void | |
9163 | _ACEOF | |
9164 | ||
9165 | else | |
9166 | cat >>confdefs.h <<\_ACEOF | |
9167 | #define POINTER_TYPE char | |
9168 | _ACEOF | |
9169 | ||
96f3a036 | 9170 | fi |
96f3a036 | 9171 | |
96f3a036 | 9172 | |
bf89cb4d GM |
9173 | |
9174 | ||
9175 | ||
9176 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
9177 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
9178 | set x ${MAKE-make} | |
9179 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
9180 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
0ca10bb7 | 9181 | $as_echo_n "(cached) " >&6 |
96f3a036 | 9182 | else |
bf89cb4d GM |
9183 | cat >conftest.make <<\_ACEOF |
9184 | SHELL = /bin/sh | |
9185 | all: | |
9186 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
9187 | _ACEOF | |
9188 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9189 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
9190 | *@@@%%%=?*=@@@%%%*) | |
9191 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
9192 | *) | |
9193 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
9194 | esac | |
9195 | rm -f conftest.make | |
96f3a036 | 9196 | fi |
bf89cb4d GM |
9197 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
9198 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9199 | $as_echo "yes" >&6; } | |
9200 | SET_MAKE= | |
0ca10bb7 | 9201 | else |
bf89cb4d | 9202 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
0ca10bb7 | 9203 | $as_echo "no" >&6; } |
bf89cb4d | 9204 | SET_MAKE="MAKE=${MAKE-make}" |
96f3a036 | 9205 | fi |
96f3a036 DL |
9206 | |
9207 | ||
bf89cb4d GM |
9208 | if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then |
9209 | { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5 | |
9210 | $as_echo_n "checking whether we are using GNU Make... " >&6; } | |
9211 | HAVE_GNU_MAKE=no | |
9212 | testval=`make --version 2>/dev/null | grep 'GNU Make'` | |
9213 | if test "x$testval" != x; then | |
9214 | HAVE_GNU_MAKE=yes | |
9215 | else | |
9216 | ac_enable_autodepend=no | |
0ca10bb7 | 9217 | fi |
bf89cb4d GM |
9218 | { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5 |
9219 | $as_echo "$HAVE_GNU_MAKE" >&6; } | |
9220 | if test $HAVE_GNU_MAKE = yes; then | |
9221 | { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5 | |
9222 | $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } | |
9223 | SAVE_CFLAGS="$CFLAGS" | |
9224 | CFLAGS="$CFLAGS -MMD -MF deps.d" | |
9225 | cat >conftest.$ac_ext <<_ACEOF | |
9226 | /* confdefs.h. */ | |
9227 | _ACEOF | |
9228 | cat confdefs.h >>conftest.$ac_ext | |
9229 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 9230 | /* end confdefs.h. */ |
bf89cb4d | 9231 | |
98418dba CW |
9232 | int |
9233 | main () | |
9234 | { | |
bf89cb4d | 9235 | |
98418dba CW |
9236 | ; |
9237 | return 0; | |
9238 | } | |
9239 | _ACEOF | |
bf89cb4d GM |
9240 | rm -f conftest.$ac_objext |
9241 | if { (ac_try="$ac_compile" | |
9242 | case "(($ac_try" in | |
9243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9244 | *) ac_try_echo=$ac_try;; | |
9245 | esac | |
9246 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9247 | $as_echo "$ac_try_echo") >&5 | |
9248 | (eval "$ac_compile") 2>conftest.er1 | |
9249 | ac_status=$? | |
9250 | grep -v '^ *+' conftest.er1 >conftest.err | |
9251 | rm -f conftest.er1 | |
9252 | cat conftest.err >&5 | |
9253 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9254 | (exit $ac_status); } && { | |
9255 | test -z "$ac_c_werror_flag" || | |
9256 | test ! -s conftest.err | |
9257 | } && test -s conftest.$ac_objext; then | |
9258 | : | |
98418dba | 9259 | else |
bf89cb4d GM |
9260 | $as_echo "$as_me: failed program was:" >&5 |
9261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9262 | ||
9263 | ac_enable_autodepend=no | |
0ca10bb7 | 9264 | fi |
0ca10bb7 | 9265 | |
bf89cb4d GM |
9266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9267 | CFLAGS="$SAVE_CFLAGS" | |
9268 | test -f deps.d || ac_enable_autodepend=no | |
9269 | rm -rf deps.d | |
9270 | { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5 | |
9271 | $as_echo "$ac_enable_autodepend" >&6; } | |
9272 | fi | |
9273 | if test $ac_enable_autodepend = yes; then | |
9274 | ||
9275 | cat >>confdefs.h <<\_ACEOF | |
9276 | #define AUTO_DEPEND 1 | |
9277 | _ACEOF | |
19650fd6 | 9278 | |
bf89cb4d | 9279 | fi |
98418dba | 9280 | fi |
ca81d7a0 | 9281 | |
bf89cb4d GM |
9282 | { $as_echo "$as_me:$LINENO: checking for long file names" >&5 |
9283 | $as_echo_n "checking for long file names... " >&6; } | |
9284 | if test "${ac_cv_sys_long_file_names+set}" = set; then | |
9285 | $as_echo_n "(cached) " >&6 | |
9286 | else | |
9287 | ac_cv_sys_long_file_names=yes | |
9288 | # Test for long file names in all the places we know might matter: | |
9289 | # . the current directory, where building will happen | |
9290 | # $prefix/lib where we will be installing things | |
9291 | # $exec_prefix/lib likewise | |
9292 | # $TMPDIR if set, where it might want to write temporary files | |
9293 | # /tmp where it might want to write temporary files | |
9294 | # /var/tmp likewise | |
9295 | # /usr/tmp likewise | |
9296 | for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do | |
9297 | # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib | |
9298 | # in the usual case where exec_prefix is '${prefix}'. | |
9299 | case $ac_dir in #( | |
9300 | . | /* | ?:[\\/]*) ;; #( | |
9301 | *) continue;; | |
9302 | esac | |
9303 | test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. | |
9304 | ac_xdir=$ac_dir/cf$$ | |
9305 | (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue | |
9306 | ac_tf1=$ac_xdir/conftest9012345 | |
9307 | ac_tf2=$ac_xdir/conftest9012346 | |
9308 | touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || | |
9309 | ac_cv_sys_long_file_names=no | |
9310 | rm -f -r "$ac_xdir" 2>/dev/null | |
9311 | test $ac_cv_sys_long_file_names = no && break | |
9312 | done | |
98418dba | 9313 | fi |
bf89cb4d GM |
9314 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 |
9315 | $as_echo "$ac_cv_sys_long_file_names" >&6; } | |
9316 | if test $ac_cv_sys_long_file_names = yes; then | |
9317 | ||
9318 | cat >>confdefs.h <<\_ACEOF | |
9319 | #define HAVE_LONG_FILE_NAMES 1 | |
9320 | _ACEOF | |
98418dba | 9321 | |
bf89cb4d | 9322 | fi |
0ca10bb7 RC |
9323 | |
9324 | ||
bf89cb4d | 9325 | #### Choose a window system. |
0ca10bb7 | 9326 | |
bf89cb4d GM |
9327 | { $as_echo "$as_me:$LINENO: checking for X" >&5 |
9328 | $as_echo_n "checking for X... " >&6; } | |
0ca10bb7 | 9329 | |
98418dba | 9330 | |
bf89cb4d GM |
9331 | # Check whether --with-x was given. |
9332 | if test "${with_x+set}" = set; then | |
9333 | withval=$with_x; | |
98418dba CW |
9334 | fi |
9335 | ||
bf89cb4d GM |
9336 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9337 | if test "x$with_x" = xno; then | |
9338 | # The user explicitly disabled X. | |
9339 | have_x=disabled | |
9340 | else | |
9341 | case $x_includes,$x_libraries in #( | |
9342 | *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 | |
9343 | $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;} | |
9344 | { (exit 1); exit 1; }; };; #( | |
9345 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then | |
9346 | $as_echo_n "(cached) " >&6 | |
9347 | else | |
9348 | # One or both of the vars are not set, and there is no cached value. | |
9349 | ac_x_includes=no ac_x_libraries=no | |
9350 | rm -f -r conftest.dir | |
9351 | if mkdir conftest.dir; then | |
9352 | cd conftest.dir | |
9353 | cat >Imakefile <<'_ACEOF' | |
9354 | incroot: | |
9355 | @echo incroot='${INCROOT}' | |
9356 | usrlibdir: | |
9357 | @echo usrlibdir='${USRLIBDIR}' | |
9358 | libdir: | |
9359 | @echo libdir='${LIBDIR}' | |
9360 | _ACEOF | |
9361 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | |
9362 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9363 | for ac_var in incroot usrlibdir libdir; do | |
9364 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | |
9365 | done | |
9366 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
9367 | for ac_extension in a so sl dylib la dll; do | |
9368 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | |
9369 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | |
9370 | ac_im_usrlibdir=$ac_im_libdir; break | |
9371 | fi | |
9372 | done | |
9373 | # Screen out bogus values from the imake configuration. They are | |
9374 | # bogus both because they are the default anyway, and because | |
9375 | # using them would break gcc on systems where it needs fixed includes. | |
9376 | case $ac_im_incroot in | |
9377 | /usr/include) ac_x_includes= ;; | |
9378 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
9379 | esac | |
9380 | case $ac_im_usrlibdir in | |
9381 | /usr/lib | /lib) ;; | |
9382 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
9383 | esac | |
9384 | fi | |
9385 | cd .. | |
9386 | rm -f -r conftest.dir | |
9387 | fi | |
0ca10bb7 | 9388 | |
bf89cb4d GM |
9389 | # Standard set of common directories for X headers. |
9390 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9391 | ac_x_header_dirs=' | |
9392 | /usr/X11/include | |
9393 | /usr/X11R6/include | |
9394 | /usr/X11R5/include | |
9395 | /usr/X11R4/include | |
0ca10bb7 | 9396 | |
bf89cb4d GM |
9397 | /usr/include/X11 |
9398 | /usr/include/X11R6 | |
9399 | /usr/include/X11R5 | |
9400 | /usr/include/X11R4 | |
0ca10bb7 | 9401 | |
bf89cb4d GM |
9402 | /usr/local/X11/include |
9403 | /usr/local/X11R6/include | |
9404 | /usr/local/X11R5/include | |
9405 | /usr/local/X11R4/include | |
0ca10bb7 | 9406 | |
bf89cb4d GM |
9407 | /usr/local/include/X11 |
9408 | /usr/local/include/X11R6 | |
9409 | /usr/local/include/X11R5 | |
9410 | /usr/local/include/X11R4 | |
0ca10bb7 | 9411 | |
bf89cb4d GM |
9412 | /usr/X386/include |
9413 | /usr/x386/include | |
9414 | /usr/XFree86/include/X11 | |
0ca10bb7 | 9415 | |
bf89cb4d GM |
9416 | /usr/include |
9417 | /usr/local/include | |
9418 | /usr/unsupported/include | |
9419 | /usr/athena/include | |
9420 | /usr/local/x11r5/include | |
9421 | /usr/lpp/Xamples/include | |
0ca10bb7 | 9422 | |
bf89cb4d GM |
9423 | /usr/openwin/include |
9424 | /usr/openwin/share/include' | |
0ca10bb7 | 9425 | |
bf89cb4d GM |
9426 | if test "$ac_x_includes" = no; then |
9427 | # Guess where to find include files, by looking for Xlib.h. | |
9428 | # First, try using that file with no special directory specified. | |
9429 | cat >conftest.$ac_ext <<_ACEOF | |
9430 | /* confdefs.h. */ | |
0ca10bb7 | 9431 | _ACEOF |
bf89cb4d GM |
9432 | cat confdefs.h >>conftest.$ac_ext |
9433 | cat >>conftest.$ac_ext <<_ACEOF | |
9434 | /* end confdefs.h. */ | |
9435 | #include <X11/Xlib.h> | |
9436 | _ACEOF | |
9437 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9438 | case "(($ac_try" in | |
9439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9440 | *) ac_try_echo=$ac_try;; | |
9441 | esac | |
9442 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9443 | $as_echo "$ac_try_echo") >&5 | |
9444 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9445 | ac_status=$? | |
9446 | grep -v '^ *+' conftest.er1 >conftest.err | |
9447 | rm -f conftest.er1 | |
9448 | cat conftest.err >&5 | |
9449 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9450 | (exit $ac_status); } >/dev/null && { | |
9451 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9452 | test ! -s conftest.err | |
9453 | }; then | |
9454 | # We can compile using X headers with no special include directory. | |
9455 | ac_x_includes= | |
9456 | else | |
9457 | $as_echo "$as_me: failed program was:" >&5 | |
9458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9459 | ||
9460 | for ac_dir in $ac_x_header_dirs; do | |
9461 | if test -r "$ac_dir/X11/Xlib.h"; then | |
9462 | ac_x_includes=$ac_dir | |
9463 | break | |
9464 | fi | |
9465 | done | |
9466 | fi | |
9467 | ||
9468 | rm -f conftest.err conftest.$ac_ext | |
9469 | fi # $ac_x_includes = no | |
9470 | ||
9471 | if test "$ac_x_libraries" = no; then | |
9472 | # Check for the libraries. | |
9473 | # See if we find them without any special options. | |
9474 | # Don't add to $LIBS permanently. | |
9475 | ac_save_LIBS=$LIBS | |
9476 | LIBS="-lX11 $LIBS" | |
9477 | cat >conftest.$ac_ext <<_ACEOF | |
9478 | /* confdefs.h. */ | |
9479 | _ACEOF | |
9480 | cat confdefs.h >>conftest.$ac_ext | |
9481 | cat >>conftest.$ac_ext <<_ACEOF | |
9482 | /* end confdefs.h. */ | |
9483 | #include <X11/Xlib.h> | |
9484 | int | |
9485 | main () | |
9486 | { | |
9487 | XrmInitialize () | |
9488 | ; | |
9489 | return 0; | |
9490 | } | |
9491 | _ACEOF | |
9492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9493 | if { (ac_try="$ac_link" | |
9494 | case "(($ac_try" in | |
9495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9496 | *) ac_try_echo=$ac_try;; | |
9497 | esac | |
9498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9499 | $as_echo "$ac_try_echo") >&5 | |
9500 | (eval "$ac_link") 2>conftest.er1 | |
9501 | ac_status=$? | |
9502 | grep -v '^ *+' conftest.er1 >conftest.err | |
9503 | rm -f conftest.er1 | |
9504 | cat conftest.err >&5 | |
9505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9506 | (exit $ac_status); } && { | |
9507 | test -z "$ac_c_werror_flag" || | |
9508 | test ! -s conftest.err | |
9509 | } && test -s conftest$ac_exeext && { | |
9510 | test "$cross_compiling" = yes || | |
9511 | $as_test_x conftest$ac_exeext | |
9512 | }; then | |
9513 | LIBS=$ac_save_LIBS | |
9514 | # We can link X programs with no special library path. | |
9515 | ac_x_libraries= | |
9516 | else | |
9517 | $as_echo "$as_me: failed program was:" >&5 | |
9518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9519 | ||
9520 | LIBS=$ac_save_LIBS | |
9521 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
9522 | do | |
9523 | # Don't even attempt the hair of trying to link an X program! | |
9524 | for ac_extension in a so sl dylib la dll; do | |
9525 | if test -r "$ac_dir/libX11.$ac_extension"; then | |
9526 | ac_x_libraries=$ac_dir | |
9527 | break 2 | |
9528 | fi | |
9529 | done | |
9530 | done | |
9531 | fi | |
9532 | ||
9533 | rm -rf conftest.dSYM | |
9534 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9535 | conftest$ac_exeext conftest.$ac_ext | |
9536 | fi # $ac_x_libraries = no | |
9537 | ||
9538 | case $ac_x_includes,$ac_x_libraries in #( | |
9539 | no,* | *,no | *\'*) | |
9540 | # Didn't find X, or a directory has "'" in its name. | |
9541 | ac_cv_have_x="have_x=no";; #( | |
9542 | *) | |
9543 | # Record where we found X for the cache. | |
9544 | ac_cv_have_x="have_x=yes\ | |
9545 | ac_x_includes='$ac_x_includes'\ | |
9546 | ac_x_libraries='$ac_x_libraries'" | |
9547 | esac | |
9548 | fi | |
9549 | ;; #( | |
9550 | *) have_x=yes;; | |
9551 | esac | |
9552 | eval "$ac_cv_have_x" | |
9553 | fi # $with_x != no | |
9554 | ||
9555 | if test "$have_x" != yes; then | |
9556 | { $as_echo "$as_me:$LINENO: result: $have_x" >&5 | |
9557 | $as_echo "$have_x" >&6; } | |
9558 | no_x=yes | |
9559 | else | |
9560 | # If each of the values was on the command line, it overrides each guess. | |
9561 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
9562 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
9563 | # Update the cache value to reflect the command line values. | |
9564 | ac_cv_have_x="have_x=yes\ | |
9565 | ac_x_includes='$x_includes'\ | |
9566 | ac_x_libraries='$x_libraries'" | |
9567 | { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | |
9568 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | |
9569 | fi | |
9570 | ||
9571 | if test "$no_x" = yes; then | |
9572 | window_system=none | |
9573 | else | |
9574 | window_system=x11 | |
9575 | fi | |
9576 | ||
9577 | ## Workaround for bug in autoconf <= 2.62. | |
9578 | ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html | |
9579 | ## No need to do anything special for these standard directories. | |
9580 | ## This is an experiment, take it out if it causes problems. | |
9581 | if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then | |
9582 | ||
9583 | x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'` | |
9584 | ||
9585 | fi | |
9586 | ||
9587 | if test "${x_libraries}" != NONE; then | |
9588 | if test -n "${x_libraries}"; then | |
9589 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
9590 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
9591 | fi | |
9592 | x_default_search_path="" | |
9593 | x_search_path=${x_libraries} | |
9594 | if test -z "${x_search_path}"; then | |
9595 | x_search_path=/usr/lib | |
9596 | fi | |
9597 | for x_library in `echo ${x_search_path}: | \ | |
9598 | sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do | |
9599 | x_search_path="\ | |
9600 | ${x_library}/X11/%L/%T/%N%C%S:\ | |
9601 | ${x_library}/X11/%l/%T/%N%C%S:\ | |
9602 | ${x_library}/X11/%T/%N%C%S:\ | |
9603 | ${x_library}/X11/%L/%T/%N%S:\ | |
9604 | ${x_library}/X11/%l/%T/%N%S:\ | |
9605 | ${x_library}/X11/%T/%N%S" | |
9606 | if test x"${x_default_search_path}" = x; then | |
9607 | x_default_search_path=${x_search_path} | |
9608 | else | |
9609 | x_default_search_path="${x_search_path}:${x_default_search_path}" | |
9610 | fi | |
9611 | done | |
9612 | fi | |
9613 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
9614 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
9615 | fi | |
9616 | ||
9617 | if test x"${x_includes}" = x; then | |
9618 | bitmapdir=/usr/include/X11/bitmaps | |
9619 | else | |
9620 | # accumulate include directories that have X11 bitmap subdirectories | |
9621 | bmd_acc="dummyval" | |
9622 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
9623 | if test -d "${bmd}/X11/bitmaps"; then | |
9624 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
9625 | fi | |
9626 | if test -d "${bmd}/bitmaps"; then | |
9627 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" | |
9628 | fi | |
9629 | done | |
9630 | if test ${bmd_acc} != "dummyval"; then | |
9631 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
9632 | fi | |
9633 | fi | |
9634 | ||
9635 | HAVE_NS=no | |
9636 | NS_IMPL_COCOA=no | |
9637 | NS_IMPL_GNUSTEP=no | |
9638 | tmp_CPPFLAGS="$CPPFLAGS" | |
9639 | tmp_CFLAGS="$CFLAGS" | |
9640 | CPPFLAGS="$CPPFLAGS -x objective-c" | |
9641 | CFLAGS="$CFLAGS -x objective-c" | |
9642 | if test "${with_ns}" != no; then | |
9643 | if test "${opsys}" = darwin; then | |
9644 | NS_IMPL_COCOA=yes | |
9645 | ns_appdir=`pwd`/nextstep/Emacs.app | |
9646 | ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS | |
9647 | ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources | |
9648 | ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base | |
9649 | elif test -f $GNUSTEP_CONFIG_FILE; then | |
9650 | NS_IMPL_GNUSTEP=yes | |
9651 | ns_appdir=`pwd`/nextstep/Emacs.app | |
9652 | ns_appbindir=`pwd`/nextstep/Emacs.app | |
9653 | ns_appresdir=`pwd`/nextstep/Emacs.app/Resources | |
9654 | ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base | |
9655 | GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)" | |
9656 | GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)" | |
9657 | GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)" | |
9658 | CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" | |
9659 | CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" | |
9660 | REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" | |
9661 | LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" | |
9662 | fi | |
9663 | if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then | |
9664 | { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5 | |
9665 | $as_echo_n "checking for AppKit/AppKit.h... " >&6; } | |
9666 | if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then | |
9667 | $as_echo_n "(cached) " >&6 | |
9668 | fi | |
9669 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5 | |
9670 | $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; } | |
9671 | else | |
9672 | # Is the header compilable? | |
9673 | { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5 | |
9674 | $as_echo_n "checking AppKit/AppKit.h usability... " >&6; } | |
9675 | cat >conftest.$ac_ext <<_ACEOF | |
9676 | /* confdefs.h. */ | |
9677 | _ACEOF | |
9678 | cat confdefs.h >>conftest.$ac_ext | |
9679 | cat >>conftest.$ac_ext <<_ACEOF | |
9680 | /* end confdefs.h. */ | |
9681 | $ac_includes_default | |
9682 | #include <AppKit/AppKit.h> | |
9683 | _ACEOF | |
9684 | rm -f conftest.$ac_objext | |
9685 | if { (ac_try="$ac_compile" | |
9686 | case "(($ac_try" in | |
9687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9688 | *) ac_try_echo=$ac_try;; | |
9689 | esac | |
9690 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9691 | $as_echo "$ac_try_echo") >&5 | |
9692 | (eval "$ac_compile") 2>conftest.er1 | |
9693 | ac_status=$? | |
9694 | grep -v '^ *+' conftest.er1 >conftest.err | |
9695 | rm -f conftest.er1 | |
9696 | cat conftest.err >&5 | |
9697 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9698 | (exit $ac_status); } && { | |
9699 | test -z "$ac_c_werror_flag" || | |
9700 | test ! -s conftest.err | |
9701 | } && test -s conftest.$ac_objext; then | |
9702 | ac_header_compiler=yes | |
9703 | else | |
9704 | $as_echo "$as_me: failed program was:" >&5 | |
9705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9706 | ||
9707 | ac_header_compiler=no | |
9708 | fi | |
9709 | ||
9710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9711 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9712 | $as_echo "$ac_header_compiler" >&6; } | |
9713 | ||
9714 | # Is the header present? | |
9715 | { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5 | |
9716 | $as_echo_n "checking AppKit/AppKit.h presence... " >&6; } | |
9717 | cat >conftest.$ac_ext <<_ACEOF | |
9718 | /* confdefs.h. */ | |
9719 | _ACEOF | |
9720 | cat confdefs.h >>conftest.$ac_ext | |
9721 | cat >>conftest.$ac_ext <<_ACEOF | |
9722 | /* end confdefs.h. */ | |
9723 | #include <AppKit/AppKit.h> | |
9724 | _ACEOF | |
9725 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9726 | case "(($ac_try" in | |
9727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9728 | *) ac_try_echo=$ac_try;; | |
9729 | esac | |
9730 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9731 | $as_echo "$ac_try_echo") >&5 | |
9732 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9733 | ac_status=$? | |
9734 | grep -v '^ *+' conftest.er1 >conftest.err | |
9735 | rm -f conftest.er1 | |
9736 | cat conftest.err >&5 | |
9737 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9738 | (exit $ac_status); } >/dev/null && { | |
9739 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9740 | test ! -s conftest.err | |
9741 | }; then | |
9742 | ac_header_preproc=yes | |
9743 | else | |
9744 | $as_echo "$as_me: failed program was:" >&5 | |
9745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9746 | ||
9747 | ac_header_preproc=no | |
9748 | fi | |
9749 | ||
9750 | rm -f conftest.err conftest.$ac_ext | |
9751 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9752 | $as_echo "$ac_header_preproc" >&6; } | |
9753 | ||
9754 | # So? What about this header? | |
9755 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9756 | yes:no: ) | |
9757 | { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9758 | $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9759 | { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5 | |
9760 | $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;} | |
9761 | ac_header_preproc=yes | |
9762 | ;; | |
9763 | no:yes:* ) | |
9764 | { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5 | |
9765 | $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;} | |
9766 | { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5 | |
9767 | $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;} | |
9768 | { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5 | |
9769 | $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;} | |
9770 | { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9771 | $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
9772 | { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5 | |
9773 | $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;} | |
9774 | { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5 | |
9775 | $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;} | |
9776 | ||
9777 | ;; | |
9778 | esac | |
9779 | { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5 | |
9780 | $as_echo_n "checking for AppKit/AppKit.h... " >&6; } | |
9781 | if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then | |
9782 | $as_echo_n "(cached) " >&6 | |
9783 | else | |
9784 | ac_cv_header_AppKit_AppKit_h=$ac_header_preproc | |
9785 | fi | |
9786 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5 | |
9787 | $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; } | |
9788 | ||
9789 | fi | |
9790 | if test $ac_cv_header_AppKit_AppKit_h = yes; then | |
9791 | HAVE_NS=yes | |
9792 | else | |
9793 | { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include | |
9794 | files are missing or cannot be compiled." >&5 | |
9795 | $as_echo "$as_me: error: \`--with-ns' was specified, but the include | |
9796 | files are missing or cannot be compiled." >&2;} | |
9797 | { (exit 1); exit 1; }; } | |
9798 | fi | |
9799 | ||
9800 | ||
9801 | NS_HAVE_NSINTEGER=yes | |
9802 | cat >conftest.$ac_ext <<_ACEOF | |
9803 | /* confdefs.h. */ | |
9804 | _ACEOF | |
9805 | cat confdefs.h >>conftest.$ac_ext | |
9806 | cat >>conftest.$ac_ext <<_ACEOF | |
9807 | /* end confdefs.h. */ | |
9808 | #include <Foundation/NSObjCRuntime.h> | |
9809 | int | |
9810 | main () | |
9811 | { | |
9812 | NSInteger i; | |
9813 | ; | |
9814 | return 0; | |
9815 | } | |
9816 | _ACEOF | |
9817 | rm -f conftest.$ac_objext | |
9818 | if { (ac_try="$ac_compile" | |
9819 | case "(($ac_try" in | |
9820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9821 | *) ac_try_echo=$ac_try;; | |
9822 | esac | |
9823 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9824 | $as_echo "$ac_try_echo") >&5 | |
9825 | (eval "$ac_compile") 2>conftest.er1 | |
9826 | ac_status=$? | |
9827 | grep -v '^ *+' conftest.er1 >conftest.err | |
9828 | rm -f conftest.er1 | |
9829 | cat conftest.err >&5 | |
9830 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9831 | (exit $ac_status); } && { | |
9832 | test -z "$ac_c_werror_flag" || | |
9833 | test ! -s conftest.err | |
9834 | } && test -s conftest.$ac_objext; then | |
9835 | ns_have_nsinteger=yes | |
9836 | else | |
9837 | $as_echo "$as_me: failed program was:" >&5 | |
9838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9839 | ||
9840 | ns_have_nsinteger=no | |
9841 | fi | |
9842 | ||
9843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9844 | if test $ns_have_nsinteger = no; then | |
9845 | NS_HAVE_NSINTEGER=no | |
9846 | fi | |
9847 | fi | |
9848 | if test "${HAVE_NS}" = yes; then | |
9849 | window_system=nextstep | |
9850 | with_xft=no | |
9851 | # set up packaging dirs | |
9852 | exec_prefix=${ns_appbindir} | |
9853 | libexecdir=${ns_appbindir}/libexec | |
9854 | if test "${EN_NS_SELF_CONTAINED}" = yes; then | |
9855 | prefix=${ns_appresdir} | |
9856 | fi | |
9857 | fi | |
9858 | CFLAGS="$tmp_CFLAGS" | |
9859 | CPPFLAGS="$tmp_CPPFLAGS" | |
9860 | ||
9861 | case "${window_system}" in | |
9862 | x11 ) | |
9863 | HAVE_X_WINDOWS=yes | |
9864 | HAVE_X11=yes | |
9865 | case "${with_x_toolkit}" in | |
9866 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
9867 | motif ) USE_X_TOOLKIT=MOTIF ;; | |
9868 | gtk ) with_gtk=yes | |
9869 | USE_X_TOOLKIT=none ;; | |
9870 | no ) USE_X_TOOLKIT=none ;; | |
9871 | * ) USE_X_TOOLKIT=maybe ;; | |
9872 | esac | |
9873 | ;; | |
9874 | nextstep | none ) | |
9875 | HAVE_X_WINDOWS=no | |
9876 | HAVE_X11=no | |
9877 | USE_X_TOOLKIT=none | |
9878 | ;; | |
9879 | esac | |
9880 | ||
9881 | if test "$window_system" = none && test "X$with_x" != "Xno"; then | |
9882 | # Extract the first word of "X", so it can be a program name with args. | |
9883 | set dummy X; ac_word=$2 | |
9884 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9885 | $as_echo_n "checking for $ac_word... " >&6; } | |
9886 | if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then | |
9887 | $as_echo_n "(cached) " >&6 | |
9888 | else | |
9889 | if test -n "$HAVE_XSERVER"; then | |
9890 | ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. | |
9891 | else | |
9892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9893 | for as_dir in $PATH | |
9894 | do | |
9895 | IFS=$as_save_IFS | |
9896 | test -z "$as_dir" && as_dir=. | |
9897 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9899 | ac_cv_prog_HAVE_XSERVER="true" | |
9900 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9901 | break 2 | |
9902 | fi | |
9903 | done | |
9904 | done | |
9905 | IFS=$as_save_IFS | |
9906 | ||
9907 | test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" | |
9908 | fi | |
9909 | fi | |
9910 | HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER | |
9911 | if test -n "$HAVE_XSERVER"; then | |
9912 | { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5 | |
9913 | $as_echo "$HAVE_XSERVER" >&6; } | |
9914 | else | |
9915 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9916 | $as_echo "no" >&6; } | |
9917 | fi | |
9918 | ||
9919 | ||
9920 | if test "$HAVE_XSERVER" = true || | |
9921 | test -n "$DISPLAY" || | |
9922 | test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then | |
9923 | { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries | |
9924 | were found. You should install the relevant development files for X | |
9925 | and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make | |
9926 | sure you have development files for image handling, i.e. | |
9927 | tiff, gif, jpeg, png and xpm. | |
9928 | If you are sure you want Emacs compiled without X window support, pass | |
9929 | --without-x | |
9930 | to configure." >&5 | |
9931 | $as_echo "$as_me: error: You seem to be running X, but no X development libraries | |
9932 | were found. You should install the relevant development files for X | |
9933 | and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make | |
9934 | sure you have development files for image handling, i.e. | |
9935 | tiff, gif, jpeg, png and xpm. | |
9936 | If you are sure you want Emacs compiled without X window support, pass | |
9937 | --without-x | |
9938 | to configure." >&2;} | |
9939 | { (exit 1); exit 1; }; } | |
9940 | fi | |
9941 | fi | |
9942 | ||
9943 | ### If we're using X11, we should use the X menu package. | |
9944 | HAVE_MENUS=no | |
9945 | case ${HAVE_X11} in | |
9946 | yes ) HAVE_MENUS=yes ;; | |
9947 | esac | |
9948 | ||
9949 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
9950 | # Assume not, until told otherwise. | |
9951 | GNU_MALLOC=yes | |
9952 | doug_lea_malloc=yes | |
9953 | { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5 | |
9954 | $as_echo_n "checking for malloc_get_state... " >&6; } | |
9955 | if test "${ac_cv_func_malloc_get_state+set}" = set; then | |
9956 | $as_echo_n "(cached) " >&6 | |
9957 | else | |
9958 | cat >conftest.$ac_ext <<_ACEOF | |
9959 | /* confdefs.h. */ | |
9960 | _ACEOF | |
9961 | cat confdefs.h >>conftest.$ac_ext | |
9962 | cat >>conftest.$ac_ext <<_ACEOF | |
9963 | /* end confdefs.h. */ | |
9964 | /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state. | |
9965 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9966 | #define malloc_get_state innocuous_malloc_get_state | |
9967 | ||
9968 | /* System header to define __stub macros and hopefully few prototypes, | |
9969 | which can conflict with char malloc_get_state (); below. | |
9970 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9971 | <limits.h> exists even on freestanding compilers. */ | |
9972 | ||
9973 | #ifdef __STDC__ | |
9974 | # include <limits.h> | |
9975 | #else | |
9976 | # include <assert.h> | |
9977 | #endif | |
9978 | ||
9979 | #undef malloc_get_state | |
9980 | ||
9981 | /* Override any GCC internal prototype to avoid an error. | |
9982 | Use char because int might match the return type of a GCC | |
9983 | builtin and then its argument prototype would still apply. */ | |
9984 | #ifdef __cplusplus | |
9985 | extern "C" | |
9986 | #endif | |
9987 | char malloc_get_state (); | |
9988 | /* The GNU C library defines this for functions which it implements | |
9989 | to always fail with ENOSYS. Some functions are actually named | |
9990 | something starting with __ and the normal name is an alias. */ | |
9991 | #if defined __stub_malloc_get_state || defined __stub___malloc_get_state | |
9992 | choke me | |
9993 | #endif | |
9994 | ||
9995 | int | |
9996 | main () | |
9997 | { | |
9998 | return malloc_get_state (); | |
9999 | ; | |
10000 | return 0; | |
10001 | } | |
10002 | _ACEOF | |
10003 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10004 | if { (ac_try="$ac_link" | |
10005 | case "(($ac_try" in | |
10006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10007 | *) ac_try_echo=$ac_try;; | |
10008 | esac | |
10009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10010 | $as_echo "$ac_try_echo") >&5 | |
10011 | (eval "$ac_link") 2>conftest.er1 | |
10012 | ac_status=$? | |
10013 | grep -v '^ *+' conftest.er1 >conftest.err | |
10014 | rm -f conftest.er1 | |
10015 | cat conftest.err >&5 | |
10016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10017 | (exit $ac_status); } && { | |
10018 | test -z "$ac_c_werror_flag" || | |
10019 | test ! -s conftest.err | |
10020 | } && test -s conftest$ac_exeext && { | |
10021 | test "$cross_compiling" = yes || | |
10022 | $as_test_x conftest$ac_exeext | |
10023 | }; then | |
10024 | ac_cv_func_malloc_get_state=yes | |
10025 | else | |
10026 | $as_echo "$as_me: failed program was:" >&5 | |
10027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10028 | ||
10029 | ac_cv_func_malloc_get_state=no | |
10030 | fi | |
10031 | ||
10032 | rm -rf conftest.dSYM | |
10033 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10034 | conftest$ac_exeext conftest.$ac_ext | |
10035 | fi | |
10036 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 | |
10037 | $as_echo "$ac_cv_func_malloc_get_state" >&6; } | |
10038 | if test $ac_cv_func_malloc_get_state = yes; then | |
10039 | : | |
10040 | else | |
10041 | doug_lea_malloc=no | |
10042 | fi | |
10043 | ||
10044 | { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5 | |
10045 | $as_echo_n "checking for malloc_set_state... " >&6; } | |
10046 | if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
10047 | $as_echo_n "(cached) " >&6 | |
10048 | else | |
10049 | cat >conftest.$ac_ext <<_ACEOF | |
10050 | /* confdefs.h. */ | |
10051 | _ACEOF | |
10052 | cat confdefs.h >>conftest.$ac_ext | |
10053 | cat >>conftest.$ac_ext <<_ACEOF | |
10054 | /* end confdefs.h. */ | |
10055 | /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state. | |
10056 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10057 | #define malloc_set_state innocuous_malloc_set_state | |
10058 | ||
10059 | /* System header to define __stub macros and hopefully few prototypes, | |
10060 | which can conflict with char malloc_set_state (); below. | |
10061 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10062 | <limits.h> exists even on freestanding compilers. */ | |
10063 | ||
10064 | #ifdef __STDC__ | |
10065 | # include <limits.h> | |
10066 | #else | |
10067 | # include <assert.h> | |
10068 | #endif | |
10069 | ||
10070 | #undef malloc_set_state | |
10071 | ||
10072 | /* Override any GCC internal prototype to avoid an error. | |
10073 | Use char because int might match the return type of a GCC | |
10074 | builtin and then its argument prototype would still apply. */ | |
10075 | #ifdef __cplusplus | |
10076 | extern "C" | |
10077 | #endif | |
10078 | char malloc_set_state (); | |
10079 | /* The GNU C library defines this for functions which it implements | |
10080 | to always fail with ENOSYS. Some functions are actually named | |
10081 | something starting with __ and the normal name is an alias. */ | |
10082 | #if defined __stub_malloc_set_state || defined __stub___malloc_set_state | |
10083 | choke me | |
10084 | #endif | |
10085 | ||
10086 | int | |
10087 | main () | |
10088 | { | |
10089 | return malloc_set_state (); | |
10090 | ; | |
10091 | return 0; | |
10092 | } | |
10093 | _ACEOF | |
10094 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10095 | if { (ac_try="$ac_link" | |
10096 | case "(($ac_try" in | |
10097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10098 | *) ac_try_echo=$ac_try;; | |
10099 | esac | |
10100 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10101 | $as_echo "$ac_try_echo") >&5 | |
10102 | (eval "$ac_link") 2>conftest.er1 | |
10103 | ac_status=$? | |
10104 | grep -v '^ *+' conftest.er1 >conftest.err | |
10105 | rm -f conftest.er1 | |
10106 | cat conftest.err >&5 | |
10107 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10108 | (exit $ac_status); } && { | |
10109 | test -z "$ac_c_werror_flag" || | |
10110 | test ! -s conftest.err | |
10111 | } && test -s conftest$ac_exeext && { | |
10112 | test "$cross_compiling" = yes || | |
10113 | $as_test_x conftest$ac_exeext | |
10114 | }; then | |
10115 | ac_cv_func_malloc_set_state=yes | |
10116 | else | |
10117 | $as_echo "$as_me: failed program was:" >&5 | |
10118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10119 | ||
10120 | ac_cv_func_malloc_set_state=no | |
10121 | fi | |
10122 | ||
10123 | rm -rf conftest.dSYM | |
10124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10125 | conftest$ac_exeext conftest.$ac_ext | |
10126 | fi | |
10127 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 | |
10128 | $as_echo "$ac_cv_func_malloc_set_state" >&6; } | |
10129 | if test $ac_cv_func_malloc_set_state = yes; then | |
10130 | : | |
10131 | else | |
10132 | doug_lea_malloc=no | |
10133 | fi | |
10134 | ||
10135 | { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 | |
10136 | $as_echo_n "checking whether __after_morecore_hook exists... " >&6; } | |
10137 | if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
10138 | $as_echo_n "(cached) " >&6 | |
10139 | else | |
10140 | cat >conftest.$ac_ext <<_ACEOF | |
10141 | /* confdefs.h. */ | |
10142 | _ACEOF | |
10143 | cat confdefs.h >>conftest.$ac_ext | |
10144 | cat >>conftest.$ac_ext <<_ACEOF | |
10145 | /* end confdefs.h. */ | |
10146 | extern void (* __after_morecore_hook)(); | |
10147 | int | |
10148 | main () | |
10149 | { | |
10150 | __after_morecore_hook = 0 | |
10151 | ; | |
10152 | return 0; | |
10153 | } | |
10154 | _ACEOF | |
10155 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10156 | if { (ac_try="$ac_link" | |
10157 | case "(($ac_try" in | |
10158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10159 | *) ac_try_echo=$ac_try;; | |
10160 | esac | |
10161 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10162 | $as_echo "$ac_try_echo") >&5 | |
10163 | (eval "$ac_link") 2>conftest.er1 | |
10164 | ac_status=$? | |
10165 | grep -v '^ *+' conftest.er1 >conftest.err | |
10166 | rm -f conftest.er1 | |
10167 | cat conftest.err >&5 | |
10168 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10169 | (exit $ac_status); } && { | |
10170 | test -z "$ac_c_werror_flag" || | |
10171 | test ! -s conftest.err | |
10172 | } && test -s conftest$ac_exeext && { | |
10173 | test "$cross_compiling" = yes || | |
10174 | $as_test_x conftest$ac_exeext | |
10175 | }; then | |
10176 | emacs_cv_var___after_morecore_hook=yes | |
10177 | else | |
10178 | $as_echo "$as_me: failed program was:" >&5 | |
10179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10180 | ||
10181 | emacs_cv_var___after_morecore_hook=no | |
10182 | fi | |
10183 | ||
10184 | rm -rf conftest.dSYM | |
10185 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10186 | conftest$ac_exeext conftest.$ac_ext | |
10187 | fi | |
10188 | { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 | |
10189 | $as_echo "$emacs_cv_var___after_morecore_hook" >&6; } | |
10190 | if test $emacs_cv_var___after_morecore_hook = no; then | |
10191 | doug_lea_malloc=no | |
10192 | fi | |
10193 | if test "${system_malloc}" = "yes"; then | |
10194 | GNU_MALLOC=no | |
10195 | GNU_MALLOC_reason=" | |
10196 | (The GNU allocators don't work with this system configuration.)" | |
10197 | fi | |
10198 | if test "$doug_lea_malloc" = "yes" ; then | |
10199 | if test "$GNU_MALLOC" = yes ; then | |
10200 | GNU_MALLOC_reason=" | |
10201 | (Using Doug Lea's new malloc from the GNU C Library.)" | |
10202 | fi | |
10203 | ||
10204 | cat >>confdefs.h <<\_ACEOF | |
10205 | #define DOUG_LEA_MALLOC 1 | |
10206 | _ACEOF | |
10207 | ||
10208 | fi | |
10209 | ||
10210 | if test x"${REL_ALLOC}" = x; then | |
10211 | REL_ALLOC=${GNU_MALLOC} | |
10212 | fi | |
10213 | ||
10214 | ||
10215 | ||
10216 | ||
10217 | for ac_header in stdlib.h unistd.h | |
10218 | do | |
10219 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10220 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10221 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10222 | $as_echo_n "checking for $ac_header... " >&6; } | |
10223 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10224 | $as_echo_n "(cached) " >&6 | |
10225 | fi | |
10226 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10227 | $as_echo "$as_val"'` | |
10228 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10229 | $as_echo "$ac_res" >&6; } | |
10230 | else | |
10231 | # Is the header compilable? | |
10232 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10233 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10234 | cat >conftest.$ac_ext <<_ACEOF | |
10235 | /* confdefs.h. */ | |
10236 | _ACEOF | |
10237 | cat confdefs.h >>conftest.$ac_ext | |
10238 | cat >>conftest.$ac_ext <<_ACEOF | |
10239 | /* end confdefs.h. */ | |
10240 | $ac_includes_default | |
10241 | #include <$ac_header> | |
10242 | _ACEOF | |
10243 | rm -f conftest.$ac_objext | |
10244 | if { (ac_try="$ac_compile" | |
10245 | case "(($ac_try" in | |
10246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10247 | *) ac_try_echo=$ac_try;; | |
10248 | esac | |
10249 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10250 | $as_echo "$ac_try_echo") >&5 | |
10251 | (eval "$ac_compile") 2>conftest.er1 | |
10252 | ac_status=$? | |
10253 | grep -v '^ *+' conftest.er1 >conftest.err | |
10254 | rm -f conftest.er1 | |
10255 | cat conftest.err >&5 | |
10256 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10257 | (exit $ac_status); } && { | |
10258 | test -z "$ac_c_werror_flag" || | |
10259 | test ! -s conftest.err | |
10260 | } && test -s conftest.$ac_objext; then | |
10261 | ac_header_compiler=yes | |
10262 | else | |
10263 | $as_echo "$as_me: failed program was:" >&5 | |
10264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10265 | ||
10266 | ac_header_compiler=no | |
10267 | fi | |
10268 | ||
10269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10270 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10271 | $as_echo "$ac_header_compiler" >&6; } | |
10272 | ||
10273 | # Is the header present? | |
10274 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10275 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10276 | cat >conftest.$ac_ext <<_ACEOF | |
10277 | /* confdefs.h. */ | |
10278 | _ACEOF | |
10279 | cat confdefs.h >>conftest.$ac_ext | |
10280 | cat >>conftest.$ac_ext <<_ACEOF | |
10281 | /* end confdefs.h. */ | |
10282 | #include <$ac_header> | |
10283 | _ACEOF | |
10284 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10285 | case "(($ac_try" in | |
10286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10287 | *) ac_try_echo=$ac_try;; | |
10288 | esac | |
10289 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10290 | $as_echo "$ac_try_echo") >&5 | |
10291 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10292 | ac_status=$? | |
10293 | grep -v '^ *+' conftest.er1 >conftest.err | |
10294 | rm -f conftest.er1 | |
10295 | cat conftest.err >&5 | |
10296 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10297 | (exit $ac_status); } >/dev/null && { | |
10298 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10299 | test ! -s conftest.err | |
10300 | }; then | |
10301 | ac_header_preproc=yes | |
10302 | else | |
10303 | $as_echo "$as_me: failed program was:" >&5 | |
10304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10305 | ||
10306 | ac_header_preproc=no | |
10307 | fi | |
10308 | ||
10309 | rm -f conftest.err conftest.$ac_ext | |
10310 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10311 | $as_echo "$ac_header_preproc" >&6; } | |
10312 | ||
10313 | # So? What about this header? | |
10314 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10315 | yes:no: ) | |
10316 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10317 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10318 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10319 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10320 | ac_header_preproc=yes | |
10321 | ;; | |
10322 | no:yes:* ) | |
10323 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10324 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10325 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10326 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10327 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10328 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10329 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10330 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10331 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10332 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10333 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10334 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10335 | ||
10336 | ;; | |
10337 | esac | |
10338 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10339 | $as_echo_n "checking for $ac_header... " >&6; } | |
10340 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10341 | $as_echo_n "(cached) " >&6 | |
10342 | else | |
10343 | eval "$as_ac_Header=\$ac_header_preproc" | |
10344 | fi | |
10345 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10346 | $as_echo "$as_val"'` | |
10347 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10348 | $as_echo "$ac_res" >&6; } | |
10349 | ||
10350 | fi | |
10351 | if test `eval 'as_val=${'$as_ac_Header'} | |
10352 | $as_echo "$as_val"'` = yes; then | |
10353 | cat >>confdefs.h <<_ACEOF | |
10354 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10355 | _ACEOF | |
10356 | ||
10357 | fi | |
10358 | ||
10359 | done | |
10360 | ||
10361 | ||
10362 | for ac_func in getpagesize | |
10363 | do | |
10364 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10365 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10366 | $as_echo_n "checking for $ac_func... " >&6; } | |
10367 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
10368 | $as_echo_n "(cached) " >&6 | |
10369 | else | |
10370 | cat >conftest.$ac_ext <<_ACEOF | |
10371 | /* confdefs.h. */ | |
10372 | _ACEOF | |
10373 | cat confdefs.h >>conftest.$ac_ext | |
10374 | cat >>conftest.$ac_ext <<_ACEOF | |
10375 | /* end confdefs.h. */ | |
10376 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10377 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10378 | #define $ac_func innocuous_$ac_func | |
10379 | ||
10380 | /* System header to define __stub macros and hopefully few prototypes, | |
10381 | which can conflict with char $ac_func (); below. | |
10382 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10383 | <limits.h> exists even on freestanding compilers. */ | |
10384 | ||
10385 | #ifdef __STDC__ | |
10386 | # include <limits.h> | |
10387 | #else | |
10388 | # include <assert.h> | |
10389 | #endif | |
10390 | ||
10391 | #undef $ac_func | |
10392 | ||
10393 | /* Override any GCC internal prototype to avoid an error. | |
10394 | Use char because int might match the return type of a GCC | |
10395 | builtin and then its argument prototype would still apply. */ | |
10396 | #ifdef __cplusplus | |
10397 | extern "C" | |
10398 | #endif | |
10399 | char $ac_func (); | |
10400 | /* The GNU C library defines this for functions which it implements | |
10401 | to always fail with ENOSYS. Some functions are actually named | |
10402 | something starting with __ and the normal name is an alias. */ | |
10403 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
10404 | choke me | |
10405 | #endif | |
10406 | ||
10407 | int | |
10408 | main () | |
10409 | { | |
10410 | return $ac_func (); | |
10411 | ; | |
10412 | return 0; | |
10413 | } | |
10414 | _ACEOF | |
10415 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10416 | if { (ac_try="$ac_link" | |
10417 | case "(($ac_try" in | |
10418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10419 | *) ac_try_echo=$ac_try;; | |
10420 | esac | |
10421 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10422 | $as_echo "$ac_try_echo") >&5 | |
10423 | (eval "$ac_link") 2>conftest.er1 | |
10424 | ac_status=$? | |
10425 | grep -v '^ *+' conftest.er1 >conftest.err | |
10426 | rm -f conftest.er1 | |
10427 | cat conftest.err >&5 | |
10428 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10429 | (exit $ac_status); } && { | |
10430 | test -z "$ac_c_werror_flag" || | |
10431 | test ! -s conftest.err | |
10432 | } && test -s conftest$ac_exeext && { | |
10433 | test "$cross_compiling" = yes || | |
10434 | $as_test_x conftest$ac_exeext | |
10435 | }; then | |
10436 | eval "$as_ac_var=yes" | |
10437 | else | |
10438 | $as_echo "$as_me: failed program was:" >&5 | |
10439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10440 | ||
10441 | eval "$as_ac_var=no" | |
10442 | fi | |
10443 | ||
10444 | rm -rf conftest.dSYM | |
10445 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10446 | conftest$ac_exeext conftest.$ac_ext | |
10447 | fi | |
10448 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
10449 | $as_echo "$as_val"'` | |
10450 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10451 | $as_echo "$ac_res" >&6; } | |
10452 | if test `eval 'as_val=${'$as_ac_var'} | |
10453 | $as_echo "$as_val"'` = yes; then | |
10454 | cat >>confdefs.h <<_ACEOF | |
10455 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10456 | _ACEOF | |
10457 | ||
10458 | fi | |
10459 | done | |
10460 | ||
10461 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 | |
10462 | $as_echo_n "checking for working mmap... " >&6; } | |
10463 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
10464 | $as_echo_n "(cached) " >&6 | |
10465 | else | |
10466 | if test "$cross_compiling" = yes; then | |
10467 | ac_cv_func_mmap_fixed_mapped=no | |
10468 | else | |
10469 | cat >conftest.$ac_ext <<_ACEOF | |
10470 | /* confdefs.h. */ | |
10471 | _ACEOF | |
10472 | cat confdefs.h >>conftest.$ac_ext | |
10473 | cat >>conftest.$ac_ext <<_ACEOF | |
10474 | /* end confdefs.h. */ | |
10475 | $ac_includes_default | |
10476 | /* malloc might have been renamed as rpl_malloc. */ | |
10477 | #undef malloc | |
10478 | ||
10479 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
10480 | Here is a matrix of mmap possibilities: | |
10481 | mmap private not fixed | |
10482 | mmap private fixed at somewhere currently unmapped | |
10483 | mmap private fixed at somewhere already mapped | |
10484 | mmap shared not fixed | |
10485 | mmap shared fixed at somewhere currently unmapped | |
10486 | mmap shared fixed at somewhere already mapped | |
10487 | For private mappings, we should verify that changes cannot be read() | |
10488 | back from the file, nor mmap's back from the file at a different | |
10489 | address. (There have been systems where private was not correctly | |
10490 | implemented like the infamous i386 svr4.0, and systems where the | |
10491 | VM page cache was not coherent with the file system buffer cache | |
10492 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
10493 | For shared mappings, we should conversely verify that changes get | |
10494 | propagated back to all the places they're supposed to be. | |
10495 | ||
10496 | Grep wants private fixed already mapped. | |
10497 | The main things grep needs to know about mmap are: | |
10498 | * does it exist and is it safe to write into the mmap'd area | |
10499 | * how to use it (BSD variants) */ | |
10500 | ||
10501 | #include <fcntl.h> | |
10502 | #include <sys/mman.h> | |
10503 | ||
10504 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
10505 | char *malloc (); | |
10506 | #endif | |
10507 | ||
10508 | /* This mess was copied from the GNU getpagesize.h. */ | |
10509 | #ifndef HAVE_GETPAGESIZE | |
10510 | /* Assume that all systems that can run configure have sys/param.h. */ | |
10511 | # ifndef HAVE_SYS_PARAM_H | |
10512 | # define HAVE_SYS_PARAM_H 1 | |
10513 | # endif | |
10514 | ||
10515 | # ifdef _SC_PAGESIZE | |
10516 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
10517 | # else /* no _SC_PAGESIZE */ | |
10518 | # ifdef HAVE_SYS_PARAM_H | |
10519 | # include <sys/param.h> | |
10520 | # ifdef EXEC_PAGESIZE | |
10521 | # define getpagesize() EXEC_PAGESIZE | |
10522 | # else /* no EXEC_PAGESIZE */ | |
10523 | # ifdef NBPG | |
10524 | # define getpagesize() NBPG * CLSIZE | |
10525 | # ifndef CLSIZE | |
10526 | # define CLSIZE 1 | |
10527 | # endif /* no CLSIZE */ | |
10528 | # else /* no NBPG */ | |
10529 | # ifdef NBPC | |
10530 | # define getpagesize() NBPC | |
10531 | # else /* no NBPC */ | |
10532 | # ifdef PAGESIZE | |
10533 | # define getpagesize() PAGESIZE | |
10534 | # endif /* PAGESIZE */ | |
10535 | # endif /* no NBPC */ | |
10536 | # endif /* no NBPG */ | |
10537 | # endif /* no EXEC_PAGESIZE */ | |
10538 | # else /* no HAVE_SYS_PARAM_H */ | |
10539 | # define getpagesize() 8192 /* punt totally */ | |
10540 | # endif /* no HAVE_SYS_PARAM_H */ | |
10541 | # endif /* no _SC_PAGESIZE */ | |
10542 | ||
10543 | #endif /* no HAVE_GETPAGESIZE */ | |
10544 | ||
10545 | int | |
10546 | main () | |
10547 | { | |
10548 | char *data, *data2, *data3; | |
10549 | int i, pagesize; | |
10550 | int fd; | |
10551 | ||
10552 | pagesize = getpagesize (); | |
10553 | ||
10554 | /* First, make a file with some known garbage in it. */ | |
10555 | data = (char *) malloc (pagesize); | |
10556 | if (!data) | |
10557 | return 1; | |
10558 | for (i = 0; i < pagesize; ++i) | |
10559 | *(data + i) = rand (); | |
10560 | umask (0); | |
10561 | fd = creat ("conftest.mmap", 0600); | |
10562 | if (fd < 0) | |
10563 | return 1; | |
10564 | if (write (fd, data, pagesize) != pagesize) | |
10565 | return 1; | |
10566 | close (fd); | |
10567 | ||
10568 | /* Next, try to mmap the file at a fixed address which already has | |
10569 | something else allocated at it. If we can, also make sure that | |
10570 | we see the same garbage. */ | |
10571 | fd = open ("conftest.mmap", O_RDWR); | |
10572 | if (fd < 0) | |
10573 | return 1; | |
10574 | data2 = (char *) malloc (2 * pagesize); | |
10575 | if (!data2) | |
10576 | return 1; | |
10577 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
10578 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
10579 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
10580 | return 1; | |
10581 | for (i = 0; i < pagesize; ++i) | |
10582 | if (*(data + i) != *(data2 + i)) | |
10583 | return 1; | |
10584 | ||
10585 | /* Finally, make sure that changes to the mapped area do not | |
10586 | percolate back to the file as seen by read(). (This is a bug on | |
10587 | some variants of i386 svr4.0.) */ | |
10588 | for (i = 0; i < pagesize; ++i) | |
10589 | *(data2 + i) = *(data2 + i) + 1; | |
10590 | data3 = (char *) malloc (pagesize); | |
10591 | if (!data3) | |
10592 | return 1; | |
10593 | if (read (fd, data3, pagesize) != pagesize) | |
10594 | return 1; | |
10595 | for (i = 0; i < pagesize; ++i) | |
10596 | if (*(data + i) != *(data3 + i)) | |
10597 | return 1; | |
10598 | close (fd); | |
10599 | return 0; | |
10600 | } | |
10601 | _ACEOF | |
10602 | rm -f conftest$ac_exeext | |
10603 | if { (ac_try="$ac_link" | |
10604 | case "(($ac_try" in | |
10605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10606 | *) ac_try_echo=$ac_try;; | |
10607 | esac | |
10608 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10609 | $as_echo "$ac_try_echo") >&5 | |
10610 | (eval "$ac_link") 2>&5 | |
10611 | ac_status=$? | |
10612 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10613 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10614 | { (case "(($ac_try" in | |
10615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10616 | *) ac_try_echo=$ac_try;; | |
10617 | esac | |
10618 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10619 | $as_echo "$ac_try_echo") >&5 | |
10620 | (eval "$ac_try") 2>&5 | |
10621 | ac_status=$? | |
10622 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10623 | (exit $ac_status); }; }; then | |
10624 | ac_cv_func_mmap_fixed_mapped=yes | |
10625 | else | |
10626 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
10627 | $as_echo "$as_me: failed program was:" >&5 | |
10628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10629 | ||
10630 | ( exit $ac_status ) | |
10631 | ac_cv_func_mmap_fixed_mapped=no | |
10632 | fi | |
10633 | rm -rf conftest.dSYM | |
10634 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10635 | fi | |
10636 | ||
10637 | ||
10638 | fi | |
10639 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
10640 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
10641 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
10642 | ||
10643 | cat >>confdefs.h <<\_ACEOF | |
10644 | #define HAVE_MMAP 1 | |
10645 | _ACEOF | |
10646 | ||
10647 | fi | |
10648 | rm -f conftest.mmap | |
10649 | ||
10650 | if test $use_mmap_for_buffers = yes; then | |
10651 | REL_ALLOC=no | |
10652 | fi | |
10653 | ||
10654 | LIBS="$libsrc_libs $LIBS" | |
10655 | ||
10656 | ||
10657 | { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
10658 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | |
10659 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
10660 | $as_echo_n "(cached) " >&6 | |
10661 | else | |
10662 | ac_check_lib_save_LIBS=$LIBS | |
10663 | LIBS="-ldnet $LIBS" | |
10664 | cat >conftest.$ac_ext <<_ACEOF | |
10665 | /* confdefs.h. */ | |
10666 | _ACEOF | |
10667 | cat confdefs.h >>conftest.$ac_ext | |
10668 | cat >>conftest.$ac_ext <<_ACEOF | |
10669 | /* end confdefs.h. */ | |
10670 | ||
10671 | /* Override any GCC internal prototype to avoid an error. | |
10672 | Use char because int might match the return type of a GCC | |
10673 | builtin and then its argument prototype would still apply. */ | |
10674 | #ifdef __cplusplus | |
10675 | extern "C" | |
10676 | #endif | |
10677 | char dnet_ntoa (); | |
10678 | int | |
10679 | main () | |
10680 | { | |
10681 | return dnet_ntoa (); | |
10682 | ; | |
10683 | return 0; | |
10684 | } | |
10685 | _ACEOF | |
10686 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10687 | if { (ac_try="$ac_link" | |
10688 | case "(($ac_try" in | |
10689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10690 | *) ac_try_echo=$ac_try;; | |
10691 | esac | |
10692 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10693 | $as_echo "$ac_try_echo") >&5 | |
10694 | (eval "$ac_link") 2>conftest.er1 | |
10695 | ac_status=$? | |
10696 | grep -v '^ *+' conftest.er1 >conftest.err | |
10697 | rm -f conftest.er1 | |
10698 | cat conftest.err >&5 | |
10699 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10700 | (exit $ac_status); } && { | |
10701 | test -z "$ac_c_werror_flag" || | |
10702 | test ! -s conftest.err | |
10703 | } && test -s conftest$ac_exeext && { | |
10704 | test "$cross_compiling" = yes || | |
10705 | $as_test_x conftest$ac_exeext | |
10706 | }; then | |
10707 | ac_cv_lib_dnet_dnet_ntoa=yes | |
10708 | else | |
10709 | $as_echo "$as_me: failed program was:" >&5 | |
10710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10711 | ||
10712 | ac_cv_lib_dnet_dnet_ntoa=no | |
10713 | fi | |
10714 | ||
10715 | rm -rf conftest.dSYM | |
10716 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10717 | conftest$ac_exeext conftest.$ac_ext | |
10718 | LIBS=$ac_check_lib_save_LIBS | |
10719 | fi | |
10720 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
10721 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | |
10722 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
10723 | cat >>confdefs.h <<_ACEOF | |
10724 | #define HAVE_LIBDNET 1 | |
10725 | _ACEOF | |
10726 | ||
10727 | LIBS="-ldnet $LIBS" | |
10728 | ||
10729 | fi | |
10730 | ||
10731 | ||
10732 | { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 | |
10733 | $as_echo_n "checking for main in -lXbsd... " >&6; } | |
10734 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then | |
10735 | $as_echo_n "(cached) " >&6 | |
10736 | else | |
10737 | ac_check_lib_save_LIBS=$LIBS | |
10738 | LIBS="-lXbsd $LIBS" | |
10739 | cat >conftest.$ac_ext <<_ACEOF | |
10740 | /* confdefs.h. */ | |
10741 | _ACEOF | |
10742 | cat confdefs.h >>conftest.$ac_ext | |
10743 | cat >>conftest.$ac_ext <<_ACEOF | |
10744 | /* end confdefs.h. */ | |
10745 | ||
10746 | ||
10747 | int | |
10748 | main () | |
10749 | { | |
10750 | return main (); | |
10751 | ; | |
10752 | return 0; | |
10753 | } | |
10754 | _ACEOF | |
10755 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10756 | if { (ac_try="$ac_link" | |
10757 | case "(($ac_try" in | |
10758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10759 | *) ac_try_echo=$ac_try;; | |
10760 | esac | |
10761 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10762 | $as_echo "$ac_try_echo") >&5 | |
10763 | (eval "$ac_link") 2>conftest.er1 | |
10764 | ac_status=$? | |
10765 | grep -v '^ *+' conftest.er1 >conftest.err | |
10766 | rm -f conftest.er1 | |
10767 | cat conftest.err >&5 | |
10768 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10769 | (exit $ac_status); } && { | |
10770 | test -z "$ac_c_werror_flag" || | |
10771 | test ! -s conftest.err | |
10772 | } && test -s conftest$ac_exeext && { | |
10773 | test "$cross_compiling" = yes || | |
10774 | $as_test_x conftest$ac_exeext | |
10775 | }; then | |
10776 | ac_cv_lib_Xbsd_main=yes | |
10777 | else | |
10778 | $as_echo "$as_me: failed program was:" >&5 | |
10779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10780 | ||
10781 | ac_cv_lib_Xbsd_main=no | |
10782 | fi | |
10783 | ||
10784 | rm -rf conftest.dSYM | |
10785 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10786 | conftest$ac_exeext conftest.$ac_ext | |
10787 | LIBS=$ac_check_lib_save_LIBS | |
10788 | fi | |
10789 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 | |
10790 | $as_echo "$ac_cv_lib_Xbsd_main" >&6; } | |
10791 | if test $ac_cv_lib_Xbsd_main = yes; then | |
10792 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
10793 | fi | |
10794 | ||
10795 | ||
10796 | ||
10797 | { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5 | |
10798 | $as_echo_n "checking for cma_open in -lpthreads... " >&6; } | |
10799 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | |
10800 | $as_echo_n "(cached) " >&6 | |
10801 | else | |
10802 | ac_check_lib_save_LIBS=$LIBS | |
10803 | LIBS="-lpthreads $LIBS" | |
10804 | cat >conftest.$ac_ext <<_ACEOF | |
10805 | /* confdefs.h. */ | |
10806 | _ACEOF | |
10807 | cat confdefs.h >>conftest.$ac_ext | |
10808 | cat >>conftest.$ac_ext <<_ACEOF | |
10809 | /* end confdefs.h. */ | |
10810 | ||
10811 | /* Override any GCC internal prototype to avoid an error. | |
10812 | Use char because int might match the return type of a GCC | |
10813 | builtin and then its argument prototype would still apply. */ | |
10814 | #ifdef __cplusplus | |
10815 | extern "C" | |
10816 | #endif | |
10817 | char cma_open (); | |
10818 | int | |
10819 | main () | |
10820 | { | |
10821 | return cma_open (); | |
10822 | ; | |
10823 | return 0; | |
10824 | } | |
10825 | _ACEOF | |
10826 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10827 | if { (ac_try="$ac_link" | |
10828 | case "(($ac_try" in | |
10829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10830 | *) ac_try_echo=$ac_try;; | |
10831 | esac | |
10832 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10833 | $as_echo "$ac_try_echo") >&5 | |
10834 | (eval "$ac_link") 2>conftest.er1 | |
10835 | ac_status=$? | |
10836 | grep -v '^ *+' conftest.er1 >conftest.err | |
10837 | rm -f conftest.er1 | |
10838 | cat conftest.err >&5 | |
10839 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10840 | (exit $ac_status); } && { | |
10841 | test -z "$ac_c_werror_flag" || | |
10842 | test ! -s conftest.err | |
10843 | } && test -s conftest$ac_exeext && { | |
10844 | test "$cross_compiling" = yes || | |
10845 | $as_test_x conftest$ac_exeext | |
10846 | }; then | |
10847 | ac_cv_lib_pthreads_cma_open=yes | |
10848 | else | |
10849 | $as_echo "$as_me: failed program was:" >&5 | |
10850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10851 | ||
10852 | ac_cv_lib_pthreads_cma_open=no | |
10853 | fi | |
10854 | ||
10855 | rm -rf conftest.dSYM | |
10856 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10857 | conftest$ac_exeext conftest.$ac_ext | |
10858 | LIBS=$ac_check_lib_save_LIBS | |
10859 | fi | |
10860 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 | |
10861 | $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } | |
10862 | if test $ac_cv_lib_pthreads_cma_open = yes; then | |
10863 | cat >>confdefs.h <<_ACEOF | |
10864 | #define HAVE_LIBPTHREADS 1 | |
10865 | _ACEOF | |
10866 | ||
10867 | LIBS="-lpthreads $LIBS" | |
10868 | ||
10869 | fi | |
10870 | ||
10871 | ||
10872 | ||
10873 | case ${host_os} in | |
10874 | aix*) | |
10875 | { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 | |
10876 | $as_echo_n "checking for -bbigtoc option... " >&6; } | |
10877 | if test "${gdb_cv_bigtoc+set}" = set; then | |
10878 | $as_echo_n "(cached) " >&6 | |
10879 | else | |
10880 | ||
10881 | case $GCC in | |
10882 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
10883 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
10884 | esac | |
10885 | ||
10886 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
10887 | cat >conftest.$ac_ext <<_ACEOF | |
10888 | /* confdefs.h. */ | |
10889 | _ACEOF | |
10890 | cat confdefs.h >>conftest.$ac_ext | |
10891 | cat >>conftest.$ac_ext <<_ACEOF | |
10892 | /* end confdefs.h. */ | |
10893 | ||
10894 | int | |
10895 | main () | |
10896 | { | |
10897 | int i; | |
10898 | ; | |
10899 | return 0; | |
10900 | } | |
10901 | _ACEOF | |
10902 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10903 | if { (ac_try="$ac_link" | |
10904 | case "(($ac_try" in | |
10905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10906 | *) ac_try_echo=$ac_try;; | |
10907 | esac | |
10908 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10909 | $as_echo "$ac_try_echo") >&5 | |
10910 | (eval "$ac_link") 2>conftest.er1 | |
10911 | ac_status=$? | |
10912 | grep -v '^ *+' conftest.er1 >conftest.err | |
10913 | rm -f conftest.er1 | |
10914 | cat conftest.err >&5 | |
10915 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10916 | (exit $ac_status); } && { | |
10917 | test -z "$ac_c_werror_flag" || | |
10918 | test ! -s conftest.err | |
10919 | } && test -s conftest$ac_exeext && { | |
10920 | test "$cross_compiling" = yes || | |
10921 | $as_test_x conftest$ac_exeext | |
10922 | }; then | |
10923 | : | |
10924 | else | |
10925 | $as_echo "$as_me: failed program was:" >&5 | |
10926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10927 | ||
10928 | gdb_cv_bigtoc= | |
10929 | fi | |
10930 | ||
10931 | rm -rf conftest.dSYM | |
10932 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10933 | conftest$ac_exeext conftest.$ac_ext | |
10934 | ||
10935 | fi | |
10936 | { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 | |
10937 | $as_echo "$gdb_cv_bigtoc" >&6; } | |
10938 | ;; | |
10939 | esac | |
10940 | ||
10941 | # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets | |
10942 | # used for the tests that follow. We set them back to REAL_CFLAGS and | |
10943 | # REAL_CPPFLAGS later on. | |
10944 | ||
10945 | REAL_CPPFLAGS="$CPPFLAGS" | |
10946 | ||
10947 | if test "${HAVE_X11}" = "yes"; then | |
10948 | DEFS="$C_SWITCH_X_SITE $DEFS" | |
10949 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
10950 | LIBS="$LIBX $LIBS" | |
10951 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
10952 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" | |
10953 | ||
10954 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
10955 | # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
10956 | # but it's more convenient here to set LD_RUN_PATH | |
10957 | # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
10958 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
10959 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
10960 | export LD_RUN_PATH | |
10961 | fi | |
10962 | ||
10963 | if test "${opsys}" = "gnu-linux"; then | |
10964 | { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 | |
10965 | $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } | |
10966 | cat >conftest.$ac_ext <<_ACEOF | |
10967 | /* confdefs.h. */ | |
10968 | _ACEOF | |
10969 | cat confdefs.h >>conftest.$ac_ext | |
10970 | cat >>conftest.$ac_ext <<_ACEOF | |
10971 | /* end confdefs.h. */ | |
10972 | ||
10973 | int | |
10974 | main () | |
10975 | { | |
10976 | XOpenDisplay ("foo"); | |
10977 | ; | |
10978 | return 0; | |
10979 | } | |
10980 | _ACEOF | |
10981 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10982 | if { (ac_try="$ac_link" | |
10983 | case "(($ac_try" in | |
10984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10985 | *) ac_try_echo=$ac_try;; | |
10986 | esac | |
10987 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10988 | $as_echo "$ac_try_echo") >&5 | |
10989 | (eval "$ac_link") 2>conftest.er1 | |
10990 | ac_status=$? | |
10991 | grep -v '^ *+' conftest.er1 >conftest.err | |
10992 | rm -f conftest.er1 | |
10993 | cat conftest.err >&5 | |
10994 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10995 | (exit $ac_status); } && { | |
10996 | test -z "$ac_c_werror_flag" || | |
10997 | test ! -s conftest.err | |
10998 | } && test -s conftest$ac_exeext && { | |
10999 | test "$cross_compiling" = yes || | |
11000 | $as_test_x conftest$ac_exeext | |
11001 | }; then | |
11002 | xlinux_first_failure=no | |
11003 | else | |
11004 | $as_echo "$as_me: failed program was:" >&5 | |
11005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11006 | ||
11007 | xlinux_first_failure=yes | |
11008 | fi | |
11009 | ||
11010 | rm -rf conftest.dSYM | |
11011 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11012 | conftest$ac_exeext conftest.$ac_ext | |
11013 | if test "${xlinux_first_failure}" = "yes"; then | |
11014 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
11015 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
11016 | OLD_CPPFLAGS="$CPPFLAGS" | |
11017 | OLD_LIBS="$LIBS" | |
11018 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
11019 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
11020 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
11021 | LIBS="$LIBS -b i486-linuxaout" | |
11022 | cat >conftest.$ac_ext <<_ACEOF | |
11023 | /* confdefs.h. */ | |
11024 | _ACEOF | |
11025 | cat confdefs.h >>conftest.$ac_ext | |
11026 | cat >>conftest.$ac_ext <<_ACEOF | |
11027 | /* end confdefs.h. */ | |
11028 | ||
11029 | int | |
11030 | main () | |
11031 | { | |
11032 | XOpenDisplay ("foo"); | |
11033 | ; | |
11034 | return 0; | |
11035 | } | |
11036 | _ACEOF | |
11037 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11038 | if { (ac_try="$ac_link" | |
11039 | case "(($ac_try" in | |
11040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11041 | *) ac_try_echo=$ac_try;; | |
11042 | esac | |
11043 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11044 | $as_echo "$ac_try_echo") >&5 | |
11045 | (eval "$ac_link") 2>conftest.er1 | |
11046 | ac_status=$? | |
11047 | grep -v '^ *+' conftest.er1 >conftest.err | |
11048 | rm -f conftest.er1 | |
11049 | cat conftest.err >&5 | |
11050 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11051 | (exit $ac_status); } && { | |
11052 | test -z "$ac_c_werror_flag" || | |
11053 | test ! -s conftest.err | |
11054 | } && test -s conftest$ac_exeext && { | |
11055 | test "$cross_compiling" = yes || | |
11056 | $as_test_x conftest$ac_exeext | |
11057 | }; then | |
11058 | xlinux_second_failure=no | |
11059 | else | |
11060 | $as_echo "$as_me: failed program was:" >&5 | |
11061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11062 | ||
11063 | xlinux_second_failure=yes | |
11064 | fi | |
11065 | ||
11066 | rm -rf conftest.dSYM | |
11067 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11068 | conftest$ac_exeext conftest.$ac_ext | |
11069 | if test "${xlinux_second_failure}" = "yes"; then | |
11070 | # If we get the same failure with -b, there is no use adding -b. | |
11071 | # So take it out. This plays safe. | |
11072 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
11073 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
11074 | CPPFLAGS="$OLD_CPPFLAGS" | |
11075 | LIBS="$OLD_LIBS" | |
11076 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11077 | $as_echo "no" >&6; } | |
11078 | else | |
11079 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11080 | $as_echo "yes" >&6; } | |
11081 | fi | |
11082 | else | |
11083 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11084 | $as_echo "no" >&6; } | |
11085 | fi | |
11086 | fi | |
11087 | ||
11088 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing | |
11089 | # header files included from there. | |
11090 | { $as_echo "$as_me:$LINENO: checking for Xkb" >&5 | |
11091 | $as_echo_n "checking for Xkb... " >&6; } | |
11092 | cat >conftest.$ac_ext <<_ACEOF | |
11093 | /* confdefs.h. */ | |
11094 | _ACEOF | |
11095 | cat confdefs.h >>conftest.$ac_ext | |
11096 | cat >>conftest.$ac_ext <<_ACEOF | |
11097 | /* end confdefs.h. */ | |
11098 | #include <X11/Xlib.h> | |
11099 | #include <X11/XKBlib.h> | |
11100 | int | |
11101 | main () | |
11102 | { | |
11103 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | |
11104 | ; | |
11105 | return 0; | |
11106 | } | |
11107 | _ACEOF | |
11108 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11109 | if { (ac_try="$ac_link" | |
11110 | case "(($ac_try" in | |
11111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11112 | *) ac_try_echo=$ac_try;; | |
11113 | esac | |
11114 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11115 | $as_echo "$ac_try_echo") >&5 | |
11116 | (eval "$ac_link") 2>conftest.er1 | |
11117 | ac_status=$? | |
11118 | grep -v '^ *+' conftest.er1 >conftest.err | |
11119 | rm -f conftest.er1 | |
11120 | cat conftest.err >&5 | |
11121 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11122 | (exit $ac_status); } && { | |
11123 | test -z "$ac_c_werror_flag" || | |
11124 | test ! -s conftest.err | |
11125 | } && test -s conftest$ac_exeext && { | |
11126 | test "$cross_compiling" = yes || | |
11127 | $as_test_x conftest$ac_exeext | |
11128 | }; then | |
11129 | emacs_xkb=yes | |
11130 | else | |
11131 | $as_echo "$as_me: failed program was:" >&5 | |
11132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11133 | ||
11134 | emacs_xkb=no | |
11135 | fi | |
11136 | ||
11137 | rm -rf conftest.dSYM | |
11138 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11139 | conftest$ac_exeext conftest.$ac_ext | |
11140 | { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5 | |
11141 | $as_echo "$emacs_xkb" >&6; } | |
11142 | if test $emacs_xkb = yes; then | |
11143 | ||
11144 | cat >>confdefs.h <<\_ACEOF | |
11145 | #define HAVE_XKBGETKEYBOARD 1 | |
11146 | _ACEOF | |
11147 | ||
11148 | fi | |
11149 | ||
11150 | ||
11151 | ||
11152 | ||
11153 | ||
11154 | for ac_func in XrmSetDatabase XScreenResourceString \ | |
11155 | XScreenNumberOfScreen XSetWMProtocols | |
11156 | do | |
11157 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11158 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11159 | $as_echo_n "checking for $ac_func... " >&6; } | |
11160 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
11161 | $as_echo_n "(cached) " >&6 | |
11162 | else | |
11163 | cat >conftest.$ac_ext <<_ACEOF | |
11164 | /* confdefs.h. */ | |
11165 | _ACEOF | |
11166 | cat confdefs.h >>conftest.$ac_ext | |
11167 | cat >>conftest.$ac_ext <<_ACEOF | |
11168 | /* end confdefs.h. */ | |
11169 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11170 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11171 | #define $ac_func innocuous_$ac_func | |
11172 | ||
11173 | /* System header to define __stub macros and hopefully few prototypes, | |
11174 | which can conflict with char $ac_func (); below. | |
11175 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11176 | <limits.h> exists even on freestanding compilers. */ | |
11177 | ||
11178 | #ifdef __STDC__ | |
11179 | # include <limits.h> | |
11180 | #else | |
11181 | # include <assert.h> | |
11182 | #endif | |
11183 | ||
11184 | #undef $ac_func | |
11185 | ||
11186 | /* Override any GCC internal prototype to avoid an error. | |
11187 | Use char because int might match the return type of a GCC | |
11188 | builtin and then its argument prototype would still apply. */ | |
11189 | #ifdef __cplusplus | |
11190 | extern "C" | |
11191 | #endif | |
11192 | char $ac_func (); | |
11193 | /* The GNU C library defines this for functions which it implements | |
11194 | to always fail with ENOSYS. Some functions are actually named | |
11195 | something starting with __ and the normal name is an alias. */ | |
11196 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
11197 | choke me | |
11198 | #endif | |
11199 | ||
11200 | int | |
11201 | main () | |
11202 | { | |
11203 | return $ac_func (); | |
11204 | ; | |
11205 | return 0; | |
11206 | } | |
11207 | _ACEOF | |
11208 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11209 | if { (ac_try="$ac_link" | |
11210 | case "(($ac_try" in | |
11211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11212 | *) ac_try_echo=$ac_try;; | |
11213 | esac | |
11214 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11215 | $as_echo "$ac_try_echo") >&5 | |
11216 | (eval "$ac_link") 2>conftest.er1 | |
11217 | ac_status=$? | |
11218 | grep -v '^ *+' conftest.er1 >conftest.err | |
11219 | rm -f conftest.er1 | |
11220 | cat conftest.err >&5 | |
11221 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11222 | (exit $ac_status); } && { | |
11223 | test -z "$ac_c_werror_flag" || | |
11224 | test ! -s conftest.err | |
11225 | } && test -s conftest$ac_exeext && { | |
11226 | test "$cross_compiling" = yes || | |
11227 | $as_test_x conftest$ac_exeext | |
11228 | }; then | |
11229 | eval "$as_ac_var=yes" | |
11230 | else | |
11231 | $as_echo "$as_me: failed program was:" >&5 | |
11232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11233 | ||
11234 | eval "$as_ac_var=no" | |
11235 | fi | |
11236 | ||
11237 | rm -rf conftest.dSYM | |
11238 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11239 | conftest$ac_exeext conftest.$ac_ext | |
11240 | fi | |
11241 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
11242 | $as_echo "$as_val"'` | |
11243 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11244 | $as_echo "$ac_res" >&6; } | |
11245 | if test `eval 'as_val=${'$as_ac_var'} | |
11246 | $as_echo "$as_val"'` = yes; then | |
11247 | cat >>confdefs.h <<_ACEOF | |
11248 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11249 | _ACEOF | |
11250 | ||
11251 | fi | |
11252 | done | |
11253 | ||
11254 | fi | |
11255 | ||
11256 | if test "${window_system}" = "x11"; then | |
11257 | { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5 | |
11258 | $as_echo_n "checking X11 version 6... " >&6; } | |
11259 | if test "${emacs_cv_x11_version_6+set}" = set; then | |
11260 | $as_echo_n "(cached) " >&6 | |
11261 | else | |
11262 | cat >conftest.$ac_ext <<_ACEOF | |
11263 | /* confdefs.h. */ | |
11264 | _ACEOF | |
11265 | cat confdefs.h >>conftest.$ac_ext | |
11266 | cat >>conftest.$ac_ext <<_ACEOF | |
11267 | /* end confdefs.h. */ | |
11268 | #include <X11/Xlib.h> | |
11269 | int | |
11270 | main () | |
11271 | { | |
11272 | #if XlibSpecificationRelease < 6 | |
11273 | fail; | |
11274 | #endif | |
11275 | ||
11276 | ; | |
11277 | return 0; | |
11278 | } | |
11279 | _ACEOF | |
11280 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11281 | if { (ac_try="$ac_link" | |
11282 | case "(($ac_try" in | |
11283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11284 | *) ac_try_echo=$ac_try;; | |
11285 | esac | |
11286 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11287 | $as_echo "$ac_try_echo") >&5 | |
11288 | (eval "$ac_link") 2>conftest.er1 | |
11289 | ac_status=$? | |
11290 | grep -v '^ *+' conftest.er1 >conftest.err | |
11291 | rm -f conftest.er1 | |
11292 | cat conftest.err >&5 | |
11293 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11294 | (exit $ac_status); } && { | |
11295 | test -z "$ac_c_werror_flag" || | |
11296 | test ! -s conftest.err | |
11297 | } && test -s conftest$ac_exeext && { | |
11298 | test "$cross_compiling" = yes || | |
11299 | $as_test_x conftest$ac_exeext | |
11300 | }; then | |
11301 | emacs_cv_x11_version_6=yes | |
11302 | else | |
11303 | $as_echo "$as_me: failed program was:" >&5 | |
11304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11305 | ||
11306 | emacs_cv_x11_version_6=no | |
11307 | fi | |
11308 | ||
11309 | rm -rf conftest.dSYM | |
11310 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11311 | conftest$ac_exeext conftest.$ac_ext | |
11312 | fi | |
11313 | ||
11314 | if test $emacs_cv_x11_version_6 = yes; then | |
11315 | { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5 | |
11316 | $as_echo "6 or newer" >&6; } | |
11317 | ||
11318 | cat >>confdefs.h <<\_ACEOF | |
11319 | #define HAVE_X11R6 1 | |
11320 | _ACEOF | |
11321 | ||
11322 | else | |
11323 | { $as_echo "$as_me:$LINENO: result: before 6" >&5 | |
11324 | $as_echo "before 6" >&6; } | |
11325 | fi | |
11326 | fi | |
11327 | ||
11328 | ||
11329 | ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified. | |
11330 | HAVE_RSVG=no | |
11331 | if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then | |
11332 | if test "${with_rsvg}" != "no"; then | |
11333 | RSVG_REQUIRED=2.11.0 | |
11334 | RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED" | |
11335 | ||
11336 | ||
11337 | succeeded=no | |
11338 | ||
11339 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11340 | set dummy pkg-config; ac_word=$2 | |
11341 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11342 | $as_echo_n "checking for $ac_word... " >&6; } | |
11343 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
11344 | $as_echo_n "(cached) " >&6 | |
11345 | else | |
11346 | case $PKG_CONFIG in | |
11347 | [\\/]* | ?:[\\/]*) | |
11348 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11349 | ;; | |
11350 | *) | |
11351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11352 | for as_dir in $PATH | |
11353 | do | |
11354 | IFS=$as_save_IFS | |
11355 | test -z "$as_dir" && as_dir=. | |
11356 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11357 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11358 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11359 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11360 | break 2 | |
11361 | fi | |
11362 | done | |
11363 | done | |
11364 | IFS=$as_save_IFS | |
11365 | ||
11366 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11367 | ;; | |
11368 | esac | |
11369 | fi | |
11370 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11371 | if test -n "$PKG_CONFIG"; then | |
11372 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
11373 | $as_echo "$PKG_CONFIG" >&6; } | |
11374 | else | |
11375 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11376 | $as_echo "no" >&6; } | |
11377 | fi | |
11378 | ||
11379 | ||
11380 | ||
11381 | if test "$PKG_CONFIG" = "no" ; then | |
11382 | : | |
11383 | else | |
11384 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
11385 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
11386 | { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5 | |
11387 | $as_echo_n "checking for $RSVG_MODULE... " >&6; } | |
11388 | ||
11389 | if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then | |
11390 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11391 | $as_echo "yes" >&6; } | |
11392 | succeeded=yes | |
11393 | ||
11394 | { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5 | |
11395 | $as_echo_n "checking RSVG_CFLAGS... " >&6; } | |
11396 | RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` | |
11397 | { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5 | |
11398 | $as_echo "$RSVG_CFLAGS" >&6; } | |
11399 | ||
11400 | { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5 | |
11401 | $as_echo_n "checking RSVG_LIBS... " >&6; } | |
11402 | RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` | |
11403 | { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5 | |
11404 | $as_echo "$RSVG_LIBS" >&6; } | |
11405 | else | |
11406 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11407 | $as_echo "no" >&6; } | |
11408 | RSVG_CFLAGS="" | |
11409 | RSVG_LIBS="" | |
11410 | ## If we have a custom action on failure, don't print errors, but | |
11411 | ## do set a variable so people can do so. | |
11412 | RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"` | |
11413 | ||
11414 | fi | |
11415 | ||
11416 | ||
11417 | ||
11418 | else | |
11419 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11420 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
11421 | fi | |
11422 | fi | |
11423 | ||
11424 | if test $succeeded = yes; then | |
11425 | : | |
11426 | else | |
11427 | : | |
11428 | fi | |
11429 | ||
11430 | ||
11431 | ||
11432 | ||
11433 | if test ".${RSVG_CFLAGS}" != "."; then | |
11434 | HAVE_RSVG=yes | |
11435 | ||
11436 | cat >>confdefs.h <<\_ACEOF | |
11437 | #define HAVE_RSVG 1 | |
11438 | _ACEOF | |
11439 | ||
11440 | CFLAGS="$CFLAGS $RSVG_CFLAGS" | |
11441 | LIBS="$RSVG_LIBS $LIBS" | |
11442 | fi | |
11443 | fi | |
11444 | fi | |
11445 | ||
11446 | ||
11447 | HAVE_GTK=no | |
11448 | if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then | |
11449 | GLIB_REQUIRED=2.6 | |
11450 | GTK_REQUIRED=2.6 | |
11451 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" | |
11452 | ||
11453 | ||
11454 | succeeded=no | |
11455 | ||
11456 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11457 | set dummy pkg-config; ac_word=$2 | |
11458 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11459 | $as_echo_n "checking for $ac_word... " >&6; } | |
11460 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
11461 | $as_echo_n "(cached) " >&6 | |
11462 | else | |
11463 | case $PKG_CONFIG in | |
11464 | [\\/]* | ?:[\\/]*) | |
11465 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11466 | ;; | |
11467 | *) | |
11468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11469 | for as_dir in $PATH | |
11470 | do | |
11471 | IFS=$as_save_IFS | |
11472 | test -z "$as_dir" && as_dir=. | |
11473 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11474 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11475 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11476 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11477 | break 2 | |
11478 | fi | |
11479 | done | |
11480 | done | |
11481 | IFS=$as_save_IFS | |
11482 | ||
11483 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11484 | ;; | |
11485 | esac | |
11486 | fi | |
11487 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11488 | if test -n "$PKG_CONFIG"; then | |
11489 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
11490 | $as_echo "$PKG_CONFIG" >&6; } | |
11491 | else | |
11492 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11493 | $as_echo "no" >&6; } | |
11494 | fi | |
11495 | ||
11496 | ||
11497 | ||
11498 | if test "$PKG_CONFIG" = "no" ; then | |
11499 | pkg_check_gtk=no | |
11500 | else | |
11501 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
11502 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
11503 | { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 | |
11504 | $as_echo_n "checking for $GTK_MODULES... " >&6; } | |
11505 | ||
11506 | if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then | |
11507 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11508 | $as_echo "yes" >&6; } | |
11509 | succeeded=yes | |
11510 | ||
11511 | { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 | |
11512 | $as_echo_n "checking GTK_CFLAGS... " >&6; } | |
11513 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` | |
11514 | { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 | |
11515 | $as_echo "$GTK_CFLAGS" >&6; } | |
11516 | ||
11517 | { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5 | |
11518 | $as_echo_n "checking GTK_LIBS... " >&6; } | |
11519 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` | |
11520 | { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 | |
11521 | $as_echo "$GTK_LIBS" >&6; } | |
11522 | else | |
11523 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11524 | $as_echo "no" >&6; } | |
11525 | GTK_CFLAGS="" | |
11526 | GTK_LIBS="" | |
11527 | ## If we have a custom action on failure, don't print errors, but | |
11528 | ## do set a variable so people can do so. | |
11529 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` | |
11530 | ||
11531 | fi | |
11532 | ||
11533 | ||
11534 | ||
11535 | else | |
11536 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11537 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
11538 | fi | |
11539 | fi | |
11540 | ||
11541 | if test $succeeded = yes; then | |
11542 | pkg_check_gtk=yes | |
11543 | else | |
11544 | pkg_check_gtk=no | |
11545 | fi | |
11546 | ||
11547 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then | |
11548 | { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5 | |
11549 | $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;} | |
11550 | { (exit 1); exit 1; }; } | |
11551 | fi | |
11552 | fi | |
11553 | ||
11554 | ||
11555 | if test x"$pkg_check_gtk" = xyes; then | |
11556 | ||
11557 | ||
11558 | ||
11559 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | |
11560 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11561 | LIBS="$GTK_LIBS $LIBS" | |
11562 | GTK_COMPILES=no | |
11563 | ||
11564 | for ac_func in gtk_main | |
11565 | do | |
11566 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11567 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11568 | $as_echo_n "checking for $ac_func... " >&6; } | |
11569 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
11570 | $as_echo_n "(cached) " >&6 | |
11571 | else | |
11572 | cat >conftest.$ac_ext <<_ACEOF | |
11573 | /* confdefs.h. */ | |
11574 | _ACEOF | |
11575 | cat confdefs.h >>conftest.$ac_ext | |
11576 | cat >>conftest.$ac_ext <<_ACEOF | |
11577 | /* end confdefs.h. */ | |
11578 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11579 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11580 | #define $ac_func innocuous_$ac_func | |
11581 | ||
11582 | /* System header to define __stub macros and hopefully few prototypes, | |
11583 | which can conflict with char $ac_func (); below. | |
11584 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11585 | <limits.h> exists even on freestanding compilers. */ | |
11586 | ||
11587 | #ifdef __STDC__ | |
11588 | # include <limits.h> | |
11589 | #else | |
11590 | # include <assert.h> | |
11591 | #endif | |
11592 | ||
11593 | #undef $ac_func | |
11594 | ||
11595 | /* Override any GCC internal prototype to avoid an error. | |
11596 | Use char because int might match the return type of a GCC | |
11597 | builtin and then its argument prototype would still apply. */ | |
11598 | #ifdef __cplusplus | |
11599 | extern "C" | |
11600 | #endif | |
11601 | char $ac_func (); | |
11602 | /* The GNU C library defines this for functions which it implements | |
11603 | to always fail with ENOSYS. Some functions are actually named | |
11604 | something starting with __ and the normal name is an alias. */ | |
11605 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
11606 | choke me | |
11607 | #endif | |
11608 | ||
11609 | int | |
11610 | main () | |
11611 | { | |
11612 | return $ac_func (); | |
11613 | ; | |
11614 | return 0; | |
11615 | } | |
11616 | _ACEOF | |
11617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11618 | if { (ac_try="$ac_link" | |
11619 | case "(($ac_try" in | |
11620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11621 | *) ac_try_echo=$ac_try;; | |
11622 | esac | |
11623 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11624 | $as_echo "$ac_try_echo") >&5 | |
11625 | (eval "$ac_link") 2>conftest.er1 | |
11626 | ac_status=$? | |
11627 | grep -v '^ *+' conftest.er1 >conftest.err | |
11628 | rm -f conftest.er1 | |
11629 | cat conftest.err >&5 | |
11630 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11631 | (exit $ac_status); } && { | |
11632 | test -z "$ac_c_werror_flag" || | |
11633 | test ! -s conftest.err | |
11634 | } && test -s conftest$ac_exeext && { | |
11635 | test "$cross_compiling" = yes || | |
11636 | $as_test_x conftest$ac_exeext | |
11637 | }; then | |
11638 | eval "$as_ac_var=yes" | |
11639 | else | |
11640 | $as_echo "$as_me: failed program was:" >&5 | |
11641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11642 | ||
11643 | eval "$as_ac_var=no" | |
11644 | fi | |
11645 | ||
11646 | rm -rf conftest.dSYM | |
11647 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11648 | conftest$ac_exeext conftest.$ac_ext | |
11649 | fi | |
11650 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
11651 | $as_echo "$as_val"'` | |
11652 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11653 | $as_echo "$ac_res" >&6; } | |
11654 | if test `eval 'as_val=${'$as_ac_var'} | |
11655 | $as_echo "$as_val"'` = yes; then | |
11656 | cat >>confdefs.h <<_ACEOF | |
11657 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11658 | _ACEOF | |
11659 | GTK_COMPILES=yes | |
11660 | fi | |
11661 | done | |
11662 | ||
11663 | if test "${GTK_COMPILES}" != "yes"; then | |
11664 | if test "$USE_X_TOOLKIT" != "maybe"; then | |
11665 | { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5 | |
11666 | $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;} | |
11667 | { (exit 1); exit 1; }; }; | |
11668 | fi | |
11669 | else | |
11670 | HAVE_GTK=yes | |
11671 | ||
11672 | cat >>confdefs.h <<\_ACEOF | |
11673 | #define USE_GTK 1 | |
11674 | _ACEOF | |
11675 | ||
11676 | USE_X_TOOLKIT=none | |
11677 | if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then | |
11678 | : | |
11679 | else | |
11680 | { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with | |
11681 | closing open displays. This is no problem if you just use | |
11682 | one display, but if you use more than one and close one of them | |
11683 | Emacs may crash." >&5 | |
11684 | $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with | |
11685 | closing open displays. This is no problem if you just use | |
11686 | one display, but if you use more than one and close one of them | |
11687 | Emacs may crash." >&2;} | |
11688 | sleep 3 | |
11689 | fi | |
11690 | fi | |
11691 | ||
11692 | fi | |
11693 | ||
11694 | ||
11695 | if test "${HAVE_GTK}" = "yes"; then | |
11696 | ||
11697 | if test "$with_toolkit_scroll_bars" != no; then | |
11698 | with_toolkit_scroll_bars=yes | |
11699 | fi | |
11700 | ||
11701 | HAVE_GTK_MULTIDISPLAY=no | |
11702 | ||
11703 | for ac_func in gdk_display_open | |
11704 | do | |
11705 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11706 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11707 | $as_echo_n "checking for $ac_func... " >&6; } | |
11708 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
11709 | $as_echo_n "(cached) " >&6 | |
11710 | else | |
11711 | cat >conftest.$ac_ext <<_ACEOF | |
11712 | /* confdefs.h. */ | |
11713 | _ACEOF | |
11714 | cat confdefs.h >>conftest.$ac_ext | |
11715 | cat >>conftest.$ac_ext <<_ACEOF | |
11716 | /* end confdefs.h. */ | |
11717 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11718 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11719 | #define $ac_func innocuous_$ac_func | |
11720 | ||
11721 | /* System header to define __stub macros and hopefully few prototypes, | |
11722 | which can conflict with char $ac_func (); below. | |
11723 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11724 | <limits.h> exists even on freestanding compilers. */ | |
11725 | ||
11726 | #ifdef __STDC__ | |
11727 | # include <limits.h> | |
11728 | #else | |
11729 | # include <assert.h> | |
11730 | #endif | |
11731 | ||
11732 | #undef $ac_func | |
11733 | ||
11734 | /* Override any GCC internal prototype to avoid an error. | |
11735 | Use char because int might match the return type of a GCC | |
11736 | builtin and then its argument prototype would still apply. */ | |
11737 | #ifdef __cplusplus | |
11738 | extern "C" | |
11739 | #endif | |
11740 | char $ac_func (); | |
11741 | /* The GNU C library defines this for functions which it implements | |
11742 | to always fail with ENOSYS. Some functions are actually named | |
11743 | something starting with __ and the normal name is an alias. */ | |
11744 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
11745 | choke me | |
11746 | #endif | |
11747 | ||
11748 | int | |
11749 | main () | |
11750 | { | |
11751 | return $ac_func (); | |
11752 | ; | |
11753 | return 0; | |
11754 | } | |
11755 | _ACEOF | |
11756 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11757 | if { (ac_try="$ac_link" | |
11758 | case "(($ac_try" in | |
11759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11760 | *) ac_try_echo=$ac_try;; | |
11761 | esac | |
11762 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11763 | $as_echo "$ac_try_echo") >&5 | |
11764 | (eval "$ac_link") 2>conftest.er1 | |
11765 | ac_status=$? | |
11766 | grep -v '^ *+' conftest.er1 >conftest.err | |
11767 | rm -f conftest.er1 | |
11768 | cat conftest.err >&5 | |
11769 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11770 | (exit $ac_status); } && { | |
11771 | test -z "$ac_c_werror_flag" || | |
11772 | test ! -s conftest.err | |
11773 | } && test -s conftest$ac_exeext && { | |
11774 | test "$cross_compiling" = yes || | |
11775 | $as_test_x conftest$ac_exeext | |
11776 | }; then | |
11777 | eval "$as_ac_var=yes" | |
11778 | else | |
11779 | $as_echo "$as_me: failed program was:" >&5 | |
11780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11781 | ||
11782 | eval "$as_ac_var=no" | |
11783 | fi | |
11784 | ||
11785 | rm -rf conftest.dSYM | |
11786 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11787 | conftest$ac_exeext conftest.$ac_ext | |
11788 | fi | |
11789 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
11790 | $as_echo "$as_val"'` | |
11791 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11792 | $as_echo "$ac_res" >&6; } | |
11793 | if test `eval 'as_val=${'$as_ac_var'} | |
11794 | $as_echo "$as_val"'` = yes; then | |
11795 | cat >>confdefs.h <<_ACEOF | |
11796 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11797 | _ACEOF | |
11798 | HAVE_GTK_MULTIDISPLAY=yes | |
11799 | fi | |
11800 | done | |
11801 | ||
11802 | if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then | |
11803 | ||
11804 | cat >>confdefs.h <<\_ACEOF | |
11805 | #define HAVE_GTK_MULTIDISPLAY 1 | |
11806 | _ACEOF | |
11807 | ||
11808 | fi | |
11809 | ||
11810 | HAVE_GTK_FILE_SELECTION=no | |
11811 | { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5 | |
11812 | $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; } | |
11813 | if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then | |
11814 | $as_echo_n "(cached) " >&6 | |
11815 | else | |
11816 | cat >conftest.$ac_ext <<_ACEOF | |
11817 | /* confdefs.h. */ | |
11818 | _ACEOF | |
11819 | cat confdefs.h >>conftest.$ac_ext | |
11820 | cat >>conftest.$ac_ext <<_ACEOF | |
11821 | /* end confdefs.h. */ | |
11822 | $ac_includes_default | |
11823 | #include <gtk/gtk.h> | |
11824 | ||
11825 | int | |
11826 | main () | |
11827 | { | |
11828 | #ifndef GTK_TYPE_FILE_SELECTION | |
11829 | (void) GTK_TYPE_FILE_SELECTION; | |
11830 | #endif | |
11831 | ||
11832 | ; | |
11833 | return 0; | |
11834 | } | |
11835 | _ACEOF | |
11836 | rm -f conftest.$ac_objext | |
11837 | if { (ac_try="$ac_compile" | |
11838 | case "(($ac_try" in | |
11839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11840 | *) ac_try_echo=$ac_try;; | |
11841 | esac | |
11842 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11843 | $as_echo "$ac_try_echo") >&5 | |
11844 | (eval "$ac_compile") 2>conftest.er1 | |
11845 | ac_status=$? | |
11846 | grep -v '^ *+' conftest.er1 >conftest.err | |
11847 | rm -f conftest.er1 | |
11848 | cat conftest.err >&5 | |
11849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11850 | (exit $ac_status); } && { | |
11851 | test -z "$ac_c_werror_flag" || | |
11852 | test ! -s conftest.err | |
11853 | } && test -s conftest.$ac_objext; then | |
11854 | ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes | |
11855 | else | |
11856 | $as_echo "$as_me: failed program was:" >&5 | |
11857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11858 | ||
11859 | ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no | |
11860 | fi | |
11861 | ||
11862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11863 | fi | |
11864 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5 | |
11865 | $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; } | |
11866 | if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then | |
11867 | HAVE_GTK_FILE_SELECTION=yes | |
11868 | else | |
11869 | HAVE_GTK_FILE_SELECTION=no | |
11870 | fi | |
11871 | ||
11872 | if test "$HAVE_GTK_FILE_SELECTION" = yes; then | |
11873 | ||
11874 | for ac_func in gtk_file_selection_new | |
11875 | do | |
11876 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11877 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11878 | $as_echo_n "checking for $ac_func... " >&6; } | |
11879 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
11880 | $as_echo_n "(cached) " >&6 | |
11881 | else | |
11882 | cat >conftest.$ac_ext <<_ACEOF | |
11883 | /* confdefs.h. */ | |
11884 | _ACEOF | |
11885 | cat confdefs.h >>conftest.$ac_ext | |
11886 | cat >>conftest.$ac_ext <<_ACEOF | |
11887 | /* end confdefs.h. */ | |
11888 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11889 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11890 | #define $ac_func innocuous_$ac_func | |
11891 | ||
11892 | /* System header to define __stub macros and hopefully few prototypes, | |
11893 | which can conflict with char $ac_func (); below. | |
11894 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11895 | <limits.h> exists even on freestanding compilers. */ | |
11896 | ||
11897 | #ifdef __STDC__ | |
11898 | # include <limits.h> | |
11899 | #else | |
11900 | # include <assert.h> | |
11901 | #endif | |
11902 | ||
11903 | #undef $ac_func | |
11904 | ||
11905 | /* Override any GCC internal prototype to avoid an error. | |
11906 | Use char because int might match the return type of a GCC | |
11907 | builtin and then its argument prototype would still apply. */ | |
11908 | #ifdef __cplusplus | |
11909 | extern "C" | |
11910 | #endif | |
11911 | char $ac_func (); | |
11912 | /* The GNU C library defines this for functions which it implements | |
11913 | to always fail with ENOSYS. Some functions are actually named | |
11914 | something starting with __ and the normal name is an alias. */ | |
11915 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
11916 | choke me | |
11917 | #endif | |
11918 | ||
11919 | int | |
11920 | main () | |
11921 | { | |
11922 | return $ac_func (); | |
11923 | ; | |
11924 | return 0; | |
11925 | } | |
11926 | _ACEOF | |
11927 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11928 | if { (ac_try="$ac_link" | |
11929 | case "(($ac_try" in | |
11930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11931 | *) ac_try_echo=$ac_try;; | |
11932 | esac | |
11933 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11934 | $as_echo "$ac_try_echo") >&5 | |
11935 | (eval "$ac_link") 2>conftest.er1 | |
11936 | ac_status=$? | |
11937 | grep -v '^ *+' conftest.er1 >conftest.err | |
11938 | rm -f conftest.er1 | |
11939 | cat conftest.err >&5 | |
11940 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11941 | (exit $ac_status); } && { | |
11942 | test -z "$ac_c_werror_flag" || | |
11943 | test ! -s conftest.err | |
11944 | } && test -s conftest$ac_exeext && { | |
11945 | test "$cross_compiling" = yes || | |
11946 | $as_test_x conftest$ac_exeext | |
11947 | }; then | |
11948 | eval "$as_ac_var=yes" | |
11949 | else | |
11950 | $as_echo "$as_me: failed program was:" >&5 | |
11951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11952 | ||
11953 | eval "$as_ac_var=no" | |
11954 | fi | |
11955 | ||
11956 | rm -rf conftest.dSYM | |
11957 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11958 | conftest$ac_exeext conftest.$ac_ext | |
11959 | fi | |
11960 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
11961 | $as_echo "$as_val"'` | |
11962 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11963 | $as_echo "$ac_res" >&6; } | |
11964 | if test `eval 'as_val=${'$as_ac_var'} | |
11965 | $as_echo "$as_val"'` = yes; then | |
11966 | cat >>confdefs.h <<_ACEOF | |
11967 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11968 | _ACEOF | |
11969 | HAVE_GTK_FILE_SELECTION=yes | |
11970 | else | |
11971 | HAVE_GTK_FILE_SELECTION=no | |
11972 | fi | |
11973 | done | |
11974 | ||
11975 | fi | |
11976 | ||
11977 | HAVE_GTK_FILE_CHOOSER=no | |
11978 | { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5 | |
11979 | $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; } | |
11980 | if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then | |
11981 | $as_echo_n "(cached) " >&6 | |
11982 | else | |
11983 | cat >conftest.$ac_ext <<_ACEOF | |
11984 | /* confdefs.h. */ | |
11985 | _ACEOF | |
11986 | cat confdefs.h >>conftest.$ac_ext | |
11987 | cat >>conftest.$ac_ext <<_ACEOF | |
11988 | /* end confdefs.h. */ | |
11989 | $ac_includes_default | |
11990 | #include <gtk/gtk.h> | |
11991 | ||
11992 | int | |
11993 | main () | |
11994 | { | |
11995 | #ifndef GTK_TYPE_FILE_CHOOSER | |
11996 | (void) GTK_TYPE_FILE_CHOOSER; | |
11997 | #endif | |
11998 | ||
11999 | ; | |
12000 | return 0; | |
12001 | } | |
12002 | _ACEOF | |
12003 | rm -f conftest.$ac_objext | |
12004 | if { (ac_try="$ac_compile" | |
12005 | case "(($ac_try" in | |
12006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12007 | *) ac_try_echo=$ac_try;; | |
12008 | esac | |
12009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12010 | $as_echo "$ac_try_echo") >&5 | |
12011 | (eval "$ac_compile") 2>conftest.er1 | |
12012 | ac_status=$? | |
12013 | grep -v '^ *+' conftest.er1 >conftest.err | |
12014 | rm -f conftest.er1 | |
12015 | cat conftest.err >&5 | |
12016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12017 | (exit $ac_status); } && { | |
12018 | test -z "$ac_c_werror_flag" || | |
12019 | test ! -s conftest.err | |
12020 | } && test -s conftest.$ac_objext; then | |
12021 | ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes | |
12022 | else | |
12023 | $as_echo "$as_me: failed program was:" >&5 | |
12024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12025 | ||
12026 | ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no | |
12027 | fi | |
12028 | ||
12029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12030 | fi | |
12031 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5 | |
12032 | $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; } | |
12033 | if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then | |
12034 | HAVE_GTK_FILE_CHOOSER=yes | |
12035 | else | |
12036 | HAVE_GTK_FILE_CHOOSER=no | |
12037 | fi | |
12038 | ||
12039 | if test "$HAVE_GTK_FILE_CHOOSER" = yes; then | |
12040 | ||
12041 | for ac_func in gtk_file_chooser_dialog_new | |
12042 | do | |
12043 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12044 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12045 | $as_echo_n "checking for $ac_func... " >&6; } | |
12046 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12047 | $as_echo_n "(cached) " >&6 | |
12048 | else | |
12049 | cat >conftest.$ac_ext <<_ACEOF | |
12050 | /* confdefs.h. */ | |
12051 | _ACEOF | |
12052 | cat confdefs.h >>conftest.$ac_ext | |
12053 | cat >>conftest.$ac_ext <<_ACEOF | |
12054 | /* end confdefs.h. */ | |
12055 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12056 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12057 | #define $ac_func innocuous_$ac_func | |
12058 | ||
12059 | /* System header to define __stub macros and hopefully few prototypes, | |
12060 | which can conflict with char $ac_func (); below. | |
12061 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12062 | <limits.h> exists even on freestanding compilers. */ | |
12063 | ||
12064 | #ifdef __STDC__ | |
12065 | # include <limits.h> | |
12066 | #else | |
12067 | # include <assert.h> | |
12068 | #endif | |
12069 | ||
12070 | #undef $ac_func | |
12071 | ||
12072 | /* Override any GCC internal prototype to avoid an error. | |
12073 | Use char because int might match the return type of a GCC | |
12074 | builtin and then its argument prototype would still apply. */ | |
12075 | #ifdef __cplusplus | |
12076 | extern "C" | |
12077 | #endif | |
12078 | char $ac_func (); | |
12079 | /* The GNU C library defines this for functions which it implements | |
12080 | to always fail with ENOSYS. Some functions are actually named | |
12081 | something starting with __ and the normal name is an alias. */ | |
12082 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
12083 | choke me | |
12084 | #endif | |
12085 | ||
12086 | int | |
12087 | main () | |
12088 | { | |
12089 | return $ac_func (); | |
12090 | ; | |
12091 | return 0; | |
12092 | } | |
12093 | _ACEOF | |
12094 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12095 | if { (ac_try="$ac_link" | |
12096 | case "(($ac_try" in | |
12097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12098 | *) ac_try_echo=$ac_try;; | |
12099 | esac | |
12100 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12101 | $as_echo "$ac_try_echo") >&5 | |
12102 | (eval "$ac_link") 2>conftest.er1 | |
12103 | ac_status=$? | |
12104 | grep -v '^ *+' conftest.er1 >conftest.err | |
12105 | rm -f conftest.er1 | |
12106 | cat conftest.err >&5 | |
12107 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12108 | (exit $ac_status); } && { | |
12109 | test -z "$ac_c_werror_flag" || | |
12110 | test ! -s conftest.err | |
12111 | } && test -s conftest$ac_exeext && { | |
12112 | test "$cross_compiling" = yes || | |
12113 | $as_test_x conftest$ac_exeext | |
12114 | }; then | |
12115 | eval "$as_ac_var=yes" | |
12116 | else | |
12117 | $as_echo "$as_me: failed program was:" >&5 | |
12118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12119 | ||
12120 | eval "$as_ac_var=no" | |
12121 | fi | |
12122 | ||
12123 | rm -rf conftest.dSYM | |
12124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12125 | conftest$ac_exeext conftest.$ac_ext | |
12126 | fi | |
12127 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
12128 | $as_echo "$as_val"'` | |
12129 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12130 | $as_echo "$ac_res" >&6; } | |
12131 | if test `eval 'as_val=${'$as_ac_var'} | |
12132 | $as_echo "$as_val"'` = yes; then | |
12133 | cat >>confdefs.h <<_ACEOF | |
12134 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12135 | _ACEOF | |
12136 | HAVE_GTK_FILE_CHOOSER=yes | |
12137 | else | |
12138 | HAVE_GTK_FILE_CHOOSER=no | |
12139 | fi | |
12140 | done | |
12141 | ||
12142 | fi | |
12143 | ||
12144 | if test "$HAVE_GTK_FILE_SELECTION" = yes \ | |
12145 | && test "$HAVE_GTK_FILE_CHOOSER" = yes; then | |
12146 | ||
12147 | cat >>confdefs.h <<\_ACEOF | |
12148 | #define HAVE_GTK_FILE_BOTH 1 | |
12149 | _ACEOF | |
12150 | ||
12151 | fi | |
12152 | ||
12153 | if test "$HAVE_GTK_FILE_CHOOSER" = yes; then | |
12154 | HAVE_GTK_AND_PTHREAD=no | |
12155 | ||
12156 | for ac_header in pthread.h | |
12157 | do | |
12158 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12159 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12160 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12161 | $as_echo_n "checking for $ac_header... " >&6; } | |
12162 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12163 | $as_echo_n "(cached) " >&6 | |
12164 | fi | |
12165 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12166 | $as_echo "$as_val"'` | |
12167 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12168 | $as_echo "$ac_res" >&6; } | |
12169 | else | |
12170 | # Is the header compilable? | |
12171 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12172 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12173 | cat >conftest.$ac_ext <<_ACEOF | |
12174 | /* confdefs.h. */ | |
12175 | _ACEOF | |
12176 | cat confdefs.h >>conftest.$ac_ext | |
12177 | cat >>conftest.$ac_ext <<_ACEOF | |
12178 | /* end confdefs.h. */ | |
12179 | $ac_includes_default | |
12180 | #include <$ac_header> | |
12181 | _ACEOF | |
12182 | rm -f conftest.$ac_objext | |
12183 | if { (ac_try="$ac_compile" | |
12184 | case "(($ac_try" in | |
12185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12186 | *) ac_try_echo=$ac_try;; | |
12187 | esac | |
12188 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12189 | $as_echo "$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 | $as_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 | $as_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 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12210 | $as_echo "$ac_header_compiler" >&6; } | |
12211 | ||
12212 | # Is the header present? | |
12213 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12214 | $as_echo_n "checking $ac_header presence... " >&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 <$ac_header> | |
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12229 | $as_echo "$ac_try_echo") >&5 | |
12230 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12231 | ac_status=$? | |
12232 | grep -v '^ *+' conftest.er1 >conftest.err | |
12233 | rm -f conftest.er1 | |
12234 | cat conftest.err >&5 | |
12235 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12236 | (exit $ac_status); } >/dev/null && { | |
12237 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12238 | test ! -s conftest.err | |
12239 | }; then | |
12240 | ac_header_preproc=yes | |
12241 | else | |
12242 | $as_echo "$as_me: failed program was:" >&5 | |
12243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12244 | ||
12245 | ac_header_preproc=no | |
12246 | fi | |
12247 | ||
12248 | rm -f conftest.err conftest.$ac_ext | |
12249 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12250 | $as_echo "$ac_header_preproc" >&6; } | |
12251 | ||
12252 | # So? What about this header? | |
12253 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12254 | yes:no: ) | |
12255 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12256 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12257 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12258 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12259 | ac_header_preproc=yes | |
12260 | ;; | |
12261 | no:yes:* ) | |
12262 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12263 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12264 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12265 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12266 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12267 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12268 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12269 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12270 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12271 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12272 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12273 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12274 | ||
12275 | ;; | |
12276 | esac | |
12277 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12278 | $as_echo_n "checking for $ac_header... " >&6; } | |
12279 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12280 | $as_echo_n "(cached) " >&6 | |
12281 | else | |
12282 | eval "$as_ac_Header=\$ac_header_preproc" | |
12283 | fi | |
12284 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12285 | $as_echo "$as_val"'` | |
12286 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12287 | $as_echo "$ac_res" >&6; } | |
12288 | ||
12289 | fi | |
12290 | if test `eval 'as_val=${'$as_ac_Header'} | |
12291 | $as_echo "$as_val"'` = yes; then | |
12292 | cat >>confdefs.h <<_ACEOF | |
12293 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12294 | _ACEOF | |
12295 | ||
12296 | fi | |
12297 | ||
12298 | done | |
12299 | ||
12300 | if test "$ac_cv_header_pthread_h"; then | |
12301 | { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5 | |
12302 | $as_echo_n "checking for pthread_self in -lpthread... " >&6; } | |
12303 | if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then | |
12304 | $as_echo_n "(cached) " >&6 | |
12305 | else | |
12306 | ac_check_lib_save_LIBS=$LIBS | |
12307 | LIBS="-lpthread $LIBS" | |
12308 | cat >conftest.$ac_ext <<_ACEOF | |
12309 | /* confdefs.h. */ | |
12310 | _ACEOF | |
12311 | cat confdefs.h >>conftest.$ac_ext | |
12312 | cat >>conftest.$ac_ext <<_ACEOF | |
12313 | /* end confdefs.h. */ | |
12314 | ||
12315 | /* Override any GCC internal prototype to avoid an error. | |
12316 | Use char because int might match the return type of a GCC | |
12317 | builtin and then its argument prototype would still apply. */ | |
12318 | #ifdef __cplusplus | |
12319 | extern "C" | |
12320 | #endif | |
12321 | char pthread_self (); | |
12322 | int | |
12323 | main () | |
12324 | { | |
12325 | return pthread_self (); | |
12326 | ; | |
12327 | return 0; | |
12328 | } | |
12329 | _ACEOF | |
12330 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12331 | if { (ac_try="$ac_link" | |
12332 | case "(($ac_try" in | |
12333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12334 | *) ac_try_echo=$ac_try;; | |
12335 | esac | |
12336 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12337 | $as_echo "$ac_try_echo") >&5 | |
12338 | (eval "$ac_link") 2>conftest.er1 | |
12339 | ac_status=$? | |
12340 | grep -v '^ *+' conftest.er1 >conftest.err | |
12341 | rm -f conftest.er1 | |
12342 | cat conftest.err >&5 | |
12343 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12344 | (exit $ac_status); } && { | |
12345 | test -z "$ac_c_werror_flag" || | |
12346 | test ! -s conftest.err | |
12347 | } && test -s conftest$ac_exeext && { | |
12348 | test "$cross_compiling" = yes || | |
12349 | $as_test_x conftest$ac_exeext | |
12350 | }; then | |
12351 | ac_cv_lib_pthread_pthread_self=yes | |
12352 | else | |
12353 | $as_echo "$as_me: failed program was:" >&5 | |
12354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12355 | ||
12356 | ac_cv_lib_pthread_pthread_self=no | |
12357 | fi | |
12358 | ||
12359 | rm -rf conftest.dSYM | |
12360 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12361 | conftest$ac_exeext conftest.$ac_ext | |
12362 | LIBS=$ac_check_lib_save_LIBS | |
12363 | fi | |
12364 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5 | |
12365 | $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } | |
12366 | if test $ac_cv_lib_pthread_pthread_self = yes; then | |
12367 | HAVE_GTK_AND_PTHREAD=yes | |
12368 | fi | |
12369 | ||
12370 | fi | |
12371 | if test "$HAVE_GTK_AND_PTHREAD" = yes; then | |
12372 | case "${canonical}" in | |
12373 | *-hpux*) ;; | |
12374 | *) GTK_LIBS="$GTK_LIBS -lpthread" ;; | |
12375 | esac | |
12376 | ||
12377 | cat >>confdefs.h <<\_ACEOF | |
12378 | #define HAVE_GTK_AND_PTHREAD 1 | |
12379 | _ACEOF | |
12380 | ||
12381 | fi | |
12382 | fi | |
12383 | fi | |
12384 | ||
12385 | HAVE_DBUS=no | |
12386 | if test "${with_dbus}" = "yes"; then | |
12387 | ||
12388 | succeeded=no | |
12389 | ||
12390 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
12391 | set dummy pkg-config; ac_word=$2 | |
12392 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12393 | $as_echo_n "checking for $ac_word... " >&6; } | |
12394 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
12395 | $as_echo_n "(cached) " >&6 | |
12396 | else | |
12397 | case $PKG_CONFIG in | |
12398 | [\\/]* | ?:[\\/]*) | |
12399 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
12400 | ;; | |
12401 | *) | |
12402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12403 | for as_dir in $PATH | |
12404 | do | |
12405 | IFS=$as_save_IFS | |
12406 | test -z "$as_dir" && as_dir=. | |
12407 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12408 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12409 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
12410 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12411 | break 2 | |
12412 | fi | |
12413 | done | |
12414 | done | |
12415 | IFS=$as_save_IFS | |
12416 | ||
12417 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
12418 | ;; | |
12419 | esac | |
12420 | fi | |
12421 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
12422 | if test -n "$PKG_CONFIG"; then | |
12423 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
12424 | $as_echo "$PKG_CONFIG" >&6; } | |
12425 | else | |
12426 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12427 | $as_echo "no" >&6; } | |
12428 | fi | |
12429 | ||
12430 | ||
12431 | ||
12432 | if test "$PKG_CONFIG" = "no" ; then | |
12433 | HAVE_DBUS=no | |
12434 | else | |
12435 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
12436 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
12437 | { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5 | |
12438 | $as_echo_n "checking for dbus-1 >= 1.0... " >&6; } | |
12439 | ||
12440 | if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then | |
12441 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12442 | $as_echo "yes" >&6; } | |
12443 | succeeded=yes | |
12444 | ||
12445 | { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5 | |
12446 | $as_echo_n "checking DBUS_CFLAGS... " >&6; } | |
12447 | DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` | |
12448 | { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5 | |
12449 | $as_echo "$DBUS_CFLAGS" >&6; } | |
12450 | ||
12451 | { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5 | |
12452 | $as_echo_n "checking DBUS_LIBS... " >&6; } | |
12453 | DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` | |
12454 | { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5 | |
12455 | $as_echo "$DBUS_LIBS" >&6; } | |
12456 | else | |
12457 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12458 | $as_echo "no" >&6; } | |
12459 | DBUS_CFLAGS="" | |
12460 | DBUS_LIBS="" | |
12461 | ## If we have a custom action on failure, don't print errors, but | |
12462 | ## do set a variable so people can do so. | |
12463 | DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"` | |
12464 | ||
12465 | fi | |
12466 | ||
12467 | ||
12468 | ||
12469 | else | |
12470 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
12471 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
12472 | fi | |
12473 | fi | |
12474 | ||
12475 | if test $succeeded = yes; then | |
12476 | HAVE_DBUS=yes | |
12477 | else | |
12478 | HAVE_DBUS=no | |
12479 | fi | |
12480 | ||
12481 | if test "$HAVE_DBUS" = yes; then | |
12482 | LIBS="$LIBS $DBUS_LIBS" | |
12483 | ||
12484 | cat >>confdefs.h <<\_ACEOF | |
12485 | #define HAVE_DBUS 1 | |
12486 | _ACEOF | |
12487 | ||
12488 | ||
12489 | for ac_func in dbus_watch_get_unix_fd | |
12490 | do | |
12491 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12492 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12493 | $as_echo_n "checking for $ac_func... " >&6; } | |
12494 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12495 | $as_echo_n "(cached) " >&6 | |
12496 | else | |
12497 | cat >conftest.$ac_ext <<_ACEOF | |
12498 | /* confdefs.h. */ | |
12499 | _ACEOF | |
12500 | cat confdefs.h >>conftest.$ac_ext | |
12501 | cat >>conftest.$ac_ext <<_ACEOF | |
12502 | /* end confdefs.h. */ | |
12503 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12504 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12505 | #define $ac_func innocuous_$ac_func | |
12506 | ||
12507 | /* System header to define __stub macros and hopefully few prototypes, | |
12508 | which can conflict with char $ac_func (); below. | |
12509 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12510 | <limits.h> exists even on freestanding compilers. */ | |
12511 | ||
12512 | #ifdef __STDC__ | |
12513 | # include <limits.h> | |
12514 | #else | |
12515 | # include <assert.h> | |
12516 | #endif | |
12517 | ||
12518 | #undef $ac_func | |
12519 | ||
12520 | /* Override any GCC internal prototype to avoid an error. | |
12521 | Use char because int might match the return type of a GCC | |
12522 | builtin and then its argument prototype would still apply. */ | |
12523 | #ifdef __cplusplus | |
12524 | extern "C" | |
12525 | #endif | |
12526 | char $ac_func (); | |
12527 | /* The GNU C library defines this for functions which it implements | |
12528 | to always fail with ENOSYS. Some functions are actually named | |
12529 | something starting with __ and the normal name is an alias. */ | |
12530 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
12531 | choke me | |
12532 | #endif | |
12533 | ||
12534 | int | |
12535 | main () | |
12536 | { | |
12537 | return $ac_func (); | |
12538 | ; | |
12539 | return 0; | |
12540 | } | |
12541 | _ACEOF | |
12542 | rm -f conftest.$ac_objext conftest$ac_exeext | |
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12549 | $as_echo "$ac_try_echo") >&5 | |
12550 | (eval "$ac_link") 2>conftest.er1 | |
12551 | ac_status=$? | |
12552 | grep -v '^ *+' conftest.er1 >conftest.err | |
12553 | rm -f conftest.er1 | |
12554 | cat conftest.err >&5 | |
12555 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12556 | (exit $ac_status); } && { | |
12557 | test -z "$ac_c_werror_flag" || | |
12558 | test ! -s conftest.err | |
12559 | } && test -s conftest$ac_exeext && { | |
12560 | test "$cross_compiling" = yes || | |
12561 | $as_test_x conftest$ac_exeext | |
12562 | }; then | |
12563 | eval "$as_ac_var=yes" | |
12564 | else | |
12565 | $as_echo "$as_me: failed program was:" >&5 | |
12566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12567 | ||
12568 | eval "$as_ac_var=no" | |
12569 | fi | |
12570 | ||
12571 | rm -rf conftest.dSYM | |
12572 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12573 | conftest$ac_exeext conftest.$ac_ext | |
12574 | fi | |
12575 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
12576 | $as_echo "$as_val"'` | |
12577 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12578 | $as_echo "$ac_res" >&6; } | |
12579 | if test `eval 'as_val=${'$as_ac_var'} | |
12580 | $as_echo "$as_val"'` = yes; then | |
12581 | cat >>confdefs.h <<_ACEOF | |
12582 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12583 | _ACEOF | |
12584 | ||
12585 | fi | |
12586 | done | |
12587 | ||
12588 | fi | |
12589 | fi | |
12590 | ||
12591 | HAVE_GCONF=no | |
12592 | if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then | |
12593 | ||
12594 | succeeded=no | |
12595 | ||
12596 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
12597 | set dummy pkg-config; ac_word=$2 | |
12598 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12599 | $as_echo_n "checking for $ac_word... " >&6; } | |
12600 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
12601 | $as_echo_n "(cached) " >&6 | |
12602 | else | |
12603 | case $PKG_CONFIG in | |
12604 | [\\/]* | ?:[\\/]*) | |
12605 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
12606 | ;; | |
12607 | *) | |
12608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12609 | for as_dir in $PATH | |
12610 | do | |
12611 | IFS=$as_save_IFS | |
12612 | test -z "$as_dir" && as_dir=. | |
12613 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12615 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
12616 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12617 | break 2 | |
12618 | fi | |
12619 | done | |
12620 | done | |
12621 | IFS=$as_save_IFS | |
12622 | ||
12623 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
12624 | ;; | |
12625 | esac | |
12626 | fi | |
12627 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
12628 | if test -n "$PKG_CONFIG"; then | |
12629 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
12630 | $as_echo "$PKG_CONFIG" >&6; } | |
12631 | else | |
12632 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12633 | $as_echo "no" >&6; } | |
12634 | fi | |
12635 | ||
12636 | ||
12637 | ||
12638 | if test "$PKG_CONFIG" = "no" ; then | |
12639 | HAVE_GCONF=no | |
12640 | else | |
12641 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
12642 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
12643 | { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5 | |
12644 | $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } | |
12645 | ||
12646 | if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then | |
12647 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12648 | $as_echo "yes" >&6; } | |
12649 | succeeded=yes | |
12650 | ||
12651 | { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5 | |
12652 | $as_echo_n "checking GCONF_CFLAGS... " >&6; } | |
12653 | GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` | |
12654 | { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5 | |
12655 | $as_echo "$GCONF_CFLAGS" >&6; } | |
12656 | ||
12657 | { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5 | |
12658 | $as_echo_n "checking GCONF_LIBS... " >&6; } | |
12659 | GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` | |
12660 | { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5 | |
12661 | $as_echo "$GCONF_LIBS" >&6; } | |
12662 | else | |
12663 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12664 | $as_echo "no" >&6; } | |
12665 | GCONF_CFLAGS="" | |
12666 | GCONF_LIBS="" | |
12667 | ## If we have a custom action on failure, don't print errors, but | |
12668 | ## do set a variable so people can do so. | |
12669 | GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"` | |
12670 | ||
12671 | fi | |
12672 | ||
12673 | ||
12674 | ||
12675 | else | |
12676 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
12677 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
12678 | fi | |
12679 | fi | |
12680 | ||
12681 | if test $succeeded = yes; then | |
12682 | HAVE_GCONF=yes | |
12683 | else | |
12684 | HAVE_GCONF=no | |
12685 | fi | |
12686 | ||
12687 | if test "$HAVE_GCONF" = yes; then | |
12688 | ||
12689 | cat >>confdefs.h <<\_ACEOF | |
12690 | #define HAVE_GCONF 1 | |
12691 | _ACEOF | |
12692 | ||
12693 | fi | |
12694 | fi | |
12695 | ||
12696 | HAVE_XAW3D=no | |
12697 | if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then | |
12698 | if test "$with_xaw3d" != no; then | |
12699 | { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5 | |
12700 | $as_echo_n "checking for xaw3d... " >&6; } | |
12701 | if test "${emacs_cv_xaw3d+set}" = set; then | |
12702 | $as_echo_n "(cached) " >&6 | |
12703 | else | |
12704 | cat >conftest.$ac_ext <<_ACEOF | |
12705 | /* confdefs.h. */ | |
12706 | _ACEOF | |
12707 | cat confdefs.h >>conftest.$ac_ext | |
12708 | cat >>conftest.$ac_ext <<_ACEOF | |
12709 | /* end confdefs.h. */ | |
12710 | ||
12711 | #include <X11/Intrinsic.h> | |
12712 | #include <X11/Xaw3d/Simple.h> | |
12713 | int | |
12714 | main () | |
12715 | { | |
12716 | ||
12717 | ; | |
12718 | return 0; | |
12719 | } | |
12720 | _ACEOF | |
12721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12722 | if { (ac_try="$ac_link" | |
12723 | case "(($ac_try" in | |
12724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12725 | *) ac_try_echo=$ac_try;; | |
12726 | esac | |
12727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12728 | $as_echo "$ac_try_echo") >&5 | |
12729 | (eval "$ac_link") 2>conftest.er1 | |
12730 | ac_status=$? | |
12731 | grep -v '^ *+' conftest.er1 >conftest.err | |
12732 | rm -f conftest.er1 | |
12733 | cat conftest.err >&5 | |
12734 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12735 | (exit $ac_status); } && { | |
12736 | test -z "$ac_c_werror_flag" || | |
12737 | test ! -s conftest.err | |
12738 | } && test -s conftest$ac_exeext && { | |
12739 | test "$cross_compiling" = yes || | |
12740 | $as_test_x conftest$ac_exeext | |
12741 | }; then | |
12742 | emacs_cv_xaw3d=yes | |
12743 | else | |
12744 | $as_echo "$as_me: failed program was:" >&5 | |
12745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12746 | ||
12747 | emacs_cv_xaw3d=no | |
12748 | fi | |
12749 | ||
12750 | rm -rf conftest.dSYM | |
12751 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12752 | conftest$ac_exeext conftest.$ac_ext | |
12753 | fi | |
12754 | ||
12755 | else | |
12756 | emacs_cv_xaw3d=no | |
12757 | fi | |
12758 | if test $emacs_cv_xaw3d = yes; then | |
12759 | { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 | |
12760 | $as_echo "yes; using Lucid toolkit" >&6; } | |
12761 | USE_X_TOOLKIT=LUCID | |
12762 | HAVE_XAW3D=yes | |
12763 | ||
12764 | cat >>confdefs.h <<\_ACEOF | |
12765 | #define HAVE_XAW3D 1 | |
12766 | _ACEOF | |
12767 | ||
12768 | else | |
12769 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12770 | $as_echo "no" >&6; } | |
12771 | { $as_echo "$as_me:$LINENO: checking for libXaw" >&5 | |
12772 | $as_echo_n "checking for libXaw... " >&6; } | |
12773 | if test "${emacs_cv_xaw+set}" = set; then | |
12774 | $as_echo_n "(cached) " >&6 | |
12775 | else | |
12776 | cat >conftest.$ac_ext <<_ACEOF | |
12777 | /* confdefs.h. */ | |
12778 | _ACEOF | |
12779 | cat confdefs.h >>conftest.$ac_ext | |
12780 | cat >>conftest.$ac_ext <<_ACEOF | |
12781 | /* end confdefs.h. */ | |
12782 | ||
12783 | #include <X11/Intrinsic.h> | |
12784 | #include <X11/Xaw/Simple.h> | |
12785 | int | |
12786 | main () | |
12787 | { | |
12788 | ||
12789 | ; | |
12790 | return 0; | |
12791 | } | |
12792 | _ACEOF | |
12793 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12794 | if { (ac_try="$ac_link" | |
12795 | case "(($ac_try" in | |
12796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12797 | *) ac_try_echo=$ac_try;; | |
12798 | esac | |
12799 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12800 | $as_echo "$ac_try_echo") >&5 | |
12801 | (eval "$ac_link") 2>conftest.er1 | |
12802 | ac_status=$? | |
12803 | grep -v '^ *+' conftest.er1 >conftest.err | |
12804 | rm -f conftest.er1 | |
12805 | cat conftest.err >&5 | |
12806 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12807 | (exit $ac_status); } && { | |
12808 | test -z "$ac_c_werror_flag" || | |
12809 | test ! -s conftest.err | |
12810 | } && test -s conftest$ac_exeext && { | |
12811 | test "$cross_compiling" = yes || | |
12812 | $as_test_x conftest$ac_exeext | |
12813 | }; then | |
12814 | emacs_cv_xaw=yes | |
12815 | else | |
12816 | $as_echo "$as_me: failed program was:" >&5 | |
12817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12818 | ||
12819 | emacs_cv_xaw=no | |
12820 | fi | |
12821 | ||
12822 | rm -rf conftest.dSYM | |
12823 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12824 | conftest$ac_exeext conftest.$ac_ext | |
12825 | fi | |
12826 | ||
12827 | if test $emacs_cv_xaw = yes; then | |
12828 | { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 | |
12829 | $as_echo "yes; using Lucid toolkit" >&6; } | |
12830 | USE_X_TOOLKIT=LUCID | |
12831 | elif test x"${USE_X_TOOLKIT}" = xLUCID; then | |
12832 | { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5 | |
12833 | $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;} | |
12834 | { (exit 1); exit 1; }; } | |
12835 | else | |
12836 | { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5 | |
12837 | $as_echo "no; do not use toolkit by default" >&6; } | |
12838 | USE_X_TOOLKIT=none | |
12839 | fi | |
12840 | fi | |
12841 | fi | |
12842 | ||
12843 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
12844 | ||
12845 | if test "${USE_X_TOOLKIT}" != "none"; then | |
12846 | { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5 | |
12847 | $as_echo_n "checking X11 toolkit version... " >&6; } | |
12848 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | |
12849 | $as_echo_n "(cached) " >&6 | |
12850 | else | |
12851 | cat >conftest.$ac_ext <<_ACEOF | |
12852 | /* confdefs.h. */ | |
12853 | _ACEOF | |
12854 | cat confdefs.h >>conftest.$ac_ext | |
12855 | cat >>conftest.$ac_ext <<_ACEOF | |
12856 | /* end confdefs.h. */ | |
12857 | #include <X11/Intrinsic.h> | |
12858 | int | |
12859 | main () | |
12860 | { | |
12861 | #if XtSpecificationRelease < 6 | |
12862 | fail; | |
12863 | #endif | |
12864 | ||
12865 | ; | |
12866 | return 0; | |
12867 | } | |
12868 | _ACEOF | |
12869 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12870 | if { (ac_try="$ac_link" | |
12871 | case "(($ac_try" in | |
12872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12873 | *) ac_try_echo=$ac_try;; | |
12874 | esac | |
12875 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12876 | $as_echo "$ac_try_echo") >&5 | |
12877 | (eval "$ac_link") 2>conftest.er1 | |
12878 | ac_status=$? | |
12879 | grep -v '^ *+' conftest.er1 >conftest.err | |
12880 | rm -f conftest.er1 | |
12881 | cat conftest.err >&5 | |
12882 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12883 | (exit $ac_status); } && { | |
12884 | test -z "$ac_c_werror_flag" || | |
12885 | test ! -s conftest.err | |
12886 | } && test -s conftest$ac_exeext && { | |
12887 | test "$cross_compiling" = yes || | |
12888 | $as_test_x conftest$ac_exeext | |
12889 | }; then | |
12890 | emacs_cv_x11_toolkit_version_6=yes | |
12891 | else | |
12892 | $as_echo "$as_me: failed program was:" >&5 | |
12893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12894 | ||
12895 | emacs_cv_x11_toolkit_version_6=no | |
12896 | fi | |
12897 | ||
12898 | rm -rf conftest.dSYM | |
12899 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12900 | conftest$ac_exeext conftest.$ac_ext | |
12901 | fi | |
12902 | ||
12903 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
12904 | if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
12905 | { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5 | |
12906 | $as_echo "6 or newer" >&6; } | |
12907 | ||
12908 | cat >>confdefs.h <<\_ACEOF | |
12909 | #define HAVE_X11XTR6 1 | |
12910 | _ACEOF | |
12911 | ||
12912 | else | |
12913 | { $as_echo "$as_me:$LINENO: result: before 6" >&5 | |
12914 | $as_echo "before 6" >&6; } | |
12915 | fi | |
12916 | ||
12917 | OLDLIBS="$LIBS" | |
12918 | if test x$HAVE_X11XTR6 = xyes; then | |
12919 | LIBS="-lXt -lSM -lICE $LIBS" | |
12920 | else | |
12921 | LIBS="-lXt $LIBS" | |
12922 | fi | |
12923 | ||
12924 | { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5 | |
12925 | $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } | |
12926 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | |
12927 | $as_echo_n "(cached) " >&6 | |
12928 | else | |
12929 | ac_check_lib_save_LIBS=$LIBS | |
12930 | LIBS="-lXmu $LIBS" | |
12931 | cat >conftest.$ac_ext <<_ACEOF | |
12932 | /* confdefs.h. */ | |
12933 | _ACEOF | |
12934 | cat confdefs.h >>conftest.$ac_ext | |
12935 | cat >>conftest.$ac_ext <<_ACEOF | |
12936 | /* end confdefs.h. */ | |
12937 | ||
12938 | /* Override any GCC internal prototype to avoid an error. | |
12939 | Use char because int might match the return type of a GCC | |
12940 | builtin and then its argument prototype would still apply. */ | |
12941 | #ifdef __cplusplus | |
12942 | extern "C" | |
12943 | #endif | |
12944 | char XmuConvertStandardSelection (); | |
12945 | int | |
12946 | main () | |
12947 | { | |
12948 | return XmuConvertStandardSelection (); | |
12949 | ; | |
12950 | return 0; | |
12951 | } | |
12952 | _ACEOF | |
12953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12954 | if { (ac_try="$ac_link" | |
12955 | case "(($ac_try" in | |
12956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12957 | *) ac_try_echo=$ac_try;; | |
12958 | esac | |
12959 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12960 | $as_echo "$ac_try_echo") >&5 | |
12961 | (eval "$ac_link") 2>conftest.er1 | |
12962 | ac_status=$? | |
12963 | grep -v '^ *+' conftest.er1 >conftest.err | |
12964 | rm -f conftest.er1 | |
12965 | cat conftest.err >&5 | |
12966 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12967 | (exit $ac_status); } && { | |
12968 | test -z "$ac_c_werror_flag" || | |
12969 | test ! -s conftest.err | |
12970 | } && test -s conftest$ac_exeext && { | |
12971 | test "$cross_compiling" = yes || | |
12972 | $as_test_x conftest$ac_exeext | |
12973 | }; then | |
12974 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
12975 | else | |
12976 | $as_echo "$as_me: failed program was:" >&5 | |
12977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12978 | ||
12979 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no | |
12980 | fi | |
12981 | ||
12982 | rm -rf conftest.dSYM | |
12983 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12984 | conftest$ac_exeext conftest.$ac_ext | |
12985 | LIBS=$ac_check_lib_save_LIBS | |
12986 | fi | |
12987 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 | |
12988 | $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } | |
12989 | if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | |
12990 | cat >>confdefs.h <<_ACEOF | |
12991 | #define HAVE_LIBXMU 1 | |
12992 | _ACEOF | |
12993 | ||
12994 | LIBS="-lXmu $LIBS" | |
12995 | ||
12996 | fi | |
12997 | ||
12998 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" | |
12999 | fi | |
13000 | ||
13001 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
13002 | if test "${HAVE_X11}" = "yes"; then | |
13003 | if test "${USE_X_TOOLKIT}" != "none"; then | |
13004 | ||
13005 | { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
13006 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } | |
13007 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
13008 | $as_echo_n "(cached) " >&6 | |
13009 | else | |
13010 | ac_check_lib_save_LIBS=$LIBS | |
13011 | LIBS="-lXext $LIBS" | |
13012 | cat >conftest.$ac_ext <<_ACEOF | |
13013 | /* confdefs.h. */ | |
13014 | _ACEOF | |
13015 | cat confdefs.h >>conftest.$ac_ext | |
13016 | cat >>conftest.$ac_ext <<_ACEOF | |
13017 | /* end confdefs.h. */ | |
13018 | ||
13019 | /* Override any GCC internal prototype to avoid an error. | |
13020 | Use char because int might match the return type of a GCC | |
13021 | builtin and then its argument prototype would still apply. */ | |
13022 | #ifdef __cplusplus | |
13023 | extern "C" | |
13024 | #endif | |
13025 | char XShapeQueryExtension (); | |
13026 | int | |
13027 | main () | |
13028 | { | |
13029 | return XShapeQueryExtension (); | |
13030 | ; | |
13031 | return 0; | |
13032 | } | |
13033 | _ACEOF | |
13034 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13035 | if { (ac_try="$ac_link" | |
13036 | case "(($ac_try" in | |
13037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13038 | *) ac_try_echo=$ac_try;; | |
13039 | esac | |
13040 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13041 | $as_echo "$ac_try_echo") >&5 | |
13042 | (eval "$ac_link") 2>conftest.er1 | |
13043 | ac_status=$? | |
13044 | grep -v '^ *+' conftest.er1 >conftest.err | |
13045 | rm -f conftest.er1 | |
13046 | cat conftest.err >&5 | |
13047 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13048 | (exit $ac_status); } && { | |
13049 | test -z "$ac_c_werror_flag" || | |
13050 | test ! -s conftest.err | |
13051 | } && test -s conftest$ac_exeext && { | |
13052 | test "$cross_compiling" = yes || | |
13053 | $as_test_x conftest$ac_exeext | |
13054 | }; then | |
13055 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
13056 | else | |
13057 | $as_echo "$as_me: failed program was:" >&5 | |
13058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13059 | ||
13060 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
13061 | fi | |
13062 | ||
13063 | rm -rf conftest.dSYM | |
13064 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13065 | conftest$ac_exeext conftest.$ac_ext | |
13066 | LIBS=$ac_check_lib_save_LIBS | |
13067 | fi | |
13068 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
13069 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } | |
13070 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
13071 | cat >>confdefs.h <<_ACEOF | |
13072 | #define HAVE_LIBXEXT 1 | |
13073 | _ACEOF | |
13074 | ||
13075 | LIBS="-lXext $LIBS" | |
13076 | ||
13077 | fi | |
13078 | ||
13079 | fi | |
13080 | fi | |
13081 | ||
13082 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
13083 | { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 | |
13084 | $as_echo_n "checking for Motif version 2.1... " >&6; } | |
13085 | if test "${emacs_cv_motif_version_2_1+set}" = set; then | |
13086 | $as_echo_n "(cached) " >&6 | |
13087 | else | |
13088 | cat >conftest.$ac_ext <<_ACEOF | |
13089 | /* confdefs.h. */ | |
13090 | _ACEOF | |
13091 | cat confdefs.h >>conftest.$ac_ext | |
13092 | cat >>conftest.$ac_ext <<_ACEOF | |
13093 | /* end confdefs.h. */ | |
13094 | #include <Xm/Xm.h> | |
13095 | int | |
13096 | main () | |
13097 | { | |
13098 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
13099 | int x = 5; | |
13100 | #else | |
13101 | Motif version prior to 2.1. | |
13102 | #endif | |
13103 | ; | |
13104 | return 0; | |
13105 | } | |
13106 | _ACEOF | |
13107 | rm -f conftest.$ac_objext | |
13108 | if { (ac_try="$ac_compile" | |
13109 | case "(($ac_try" in | |
13110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13111 | *) ac_try_echo=$ac_try;; | |
13112 | esac | |
13113 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13114 | $as_echo "$ac_try_echo") >&5 | |
13115 | (eval "$ac_compile") 2>conftest.er1 | |
13116 | ac_status=$? | |
13117 | grep -v '^ *+' conftest.er1 >conftest.err | |
13118 | rm -f conftest.er1 | |
13119 | cat conftest.err >&5 | |
13120 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13121 | (exit $ac_status); } && { | |
13122 | test -z "$ac_c_werror_flag" || | |
13123 | test ! -s conftest.err | |
13124 | } && test -s conftest.$ac_objext; then | |
13125 | emacs_cv_motif_version_2_1=yes | |
13126 | else | |
13127 | $as_echo "$as_me: failed program was:" >&5 | |
13128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13129 | ||
13130 | emacs_cv_motif_version_2_1=no | |
13131 | fi | |
13132 | ||
13133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13134 | fi | |
13135 | { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 | |
13136 | $as_echo "$emacs_cv_motif_version_2_1" >&6; } | |
13137 | HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 | |
13138 | if test $emacs_cv_motif_version_2_1 = yes; then | |
13139 | HAVE_LIBXP=no | |
13140 | ||
13141 | cat >>confdefs.h <<\_ACEOF | |
13142 | #define HAVE_MOTIF_2_1 1 | |
13143 | _ACEOF | |
13144 | ||
13145 | { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 | |
13146 | $as_echo_n "checking for XpCreateContext in -lXp... " >&6; } | |
13147 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | |
13148 | $as_echo_n "(cached) " >&6 | |
13149 | else | |
13150 | ac_check_lib_save_LIBS=$LIBS | |
13151 | LIBS="-lXp $LIBS" | |
13152 | cat >conftest.$ac_ext <<_ACEOF | |
13153 | /* confdefs.h. */ | |
13154 | _ACEOF | |
13155 | cat confdefs.h >>conftest.$ac_ext | |
13156 | cat >>conftest.$ac_ext <<_ACEOF | |
13157 | /* end confdefs.h. */ | |
13158 | ||
13159 | /* Override any GCC internal prototype to avoid an error. | |
13160 | Use char because int might match the return type of a GCC | |
13161 | builtin and then its argument prototype would still apply. */ | |
13162 | #ifdef __cplusplus | |
13163 | extern "C" | |
13164 | #endif | |
13165 | char XpCreateContext (); | |
13166 | int | |
13167 | main () | |
13168 | { | |
13169 | return XpCreateContext (); | |
13170 | ; | |
13171 | return 0; | |
13172 | } | |
13173 | _ACEOF | |
13174 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13175 | if { (ac_try="$ac_link" | |
13176 | case "(($ac_try" in | |
13177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13178 | *) ac_try_echo=$ac_try;; | |
13179 | esac | |
13180 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13181 | $as_echo "$ac_try_echo") >&5 | |
13182 | (eval "$ac_link") 2>conftest.er1 | |
13183 | ac_status=$? | |
13184 | grep -v '^ *+' conftest.er1 >conftest.err | |
13185 | rm -f conftest.er1 | |
13186 | cat conftest.err >&5 | |
13187 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13188 | (exit $ac_status); } && { | |
13189 | test -z "$ac_c_werror_flag" || | |
13190 | test ! -s conftest.err | |
13191 | } && test -s conftest$ac_exeext && { | |
13192 | test "$cross_compiling" = yes || | |
13193 | $as_test_x conftest$ac_exeext | |
13194 | }; then | |
13195 | ac_cv_lib_Xp_XpCreateContext=yes | |
13196 | else | |
13197 | $as_echo "$as_me: failed program was:" >&5 | |
13198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13199 | ||
13200 | ac_cv_lib_Xp_XpCreateContext=no | |
13201 | fi | |
13202 | ||
13203 | rm -rf conftest.dSYM | |
13204 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13205 | conftest$ac_exeext conftest.$ac_ext | |
13206 | LIBS=$ac_check_lib_save_LIBS | |
13207 | fi | |
13208 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 | |
13209 | $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } | |
13210 | if test $ac_cv_lib_Xp_XpCreateContext = yes; then | |
13211 | HAVE_LIBXP=yes | |
13212 | fi | |
13213 | ||
13214 | if test ${HAVE_LIBXP} = yes; then | |
13215 | ||
13216 | cat >>confdefs.h <<\_ACEOF | |
13217 | #define HAVE_LIBXP 1 | |
13218 | _ACEOF | |
13219 | ||
13220 | fi | |
13221 | else | |
13222 | { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 | |
13223 | $as_echo_n "checking for LessTif where some systems put it... " >&6; } | |
13224 | if test "${emacs_cv_lesstif+set}" = set; then | |
13225 | $as_echo_n "(cached) " >&6 | |
13226 | else | |
13227 | # We put this in CFLAGS temporarily to precede other -I options | |
13228 | # that might be in CFLAGS temporarily. | |
13229 | # We put this in CPPFLAGS where it precedes the other -I options. | |
13230 | OLD_CPPFLAGS=$CPPFLAGS | |
13231 | OLD_CFLAGS=$CFLAGS | |
13232 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | |
13233 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | |
13234 | cat >conftest.$ac_ext <<_ACEOF | |
13235 | /* confdefs.h. */ | |
13236 | _ACEOF | |
13237 | cat confdefs.h >>conftest.$ac_ext | |
13238 | cat >>conftest.$ac_ext <<_ACEOF | |
13239 | /* end confdefs.h. */ | |
13240 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> | |
13241 | int | |
13242 | main () | |
13243 | { | |
13244 | int x = 5; | |
13245 | ; | |
13246 | return 0; | |
13247 | } | |
13248 | _ACEOF | |
13249 | rm -f conftest.$ac_objext | |
13250 | if { (ac_try="$ac_compile" | |
13251 | case "(($ac_try" in | |
13252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13253 | *) ac_try_echo=$ac_try;; | |
13254 | esac | |
13255 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13256 | $as_echo "$ac_try_echo") >&5 | |
13257 | (eval "$ac_compile") 2>conftest.er1 | |
13258 | ac_status=$? | |
13259 | grep -v '^ *+' conftest.er1 >conftest.err | |
13260 | rm -f conftest.er1 | |
13261 | cat conftest.err >&5 | |
13262 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13263 | (exit $ac_status); } && { | |
13264 | test -z "$ac_c_werror_flag" || | |
13265 | test ! -s conftest.err | |
13266 | } && test -s conftest.$ac_objext; then | |
13267 | emacs_cv_lesstif=yes | |
13268 | else | |
13269 | $as_echo "$as_me: failed program was:" >&5 | |
13270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13271 | ||
13272 | emacs_cv_lesstif=no | |
13273 | fi | |
13274 | ||
13275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13276 | fi | |
13277 | { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 | |
13278 | $as_echo "$emacs_cv_lesstif" >&6; } | |
13279 | if test $emacs_cv_lesstif = yes; then | |
13280 | # Make sure this -I option remains in CPPFLAGS after it is set | |
13281 | # back to REAL_CPPFLAGS. | |
13282 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | |
13283 | # have those other -I options anyway. Ultimately, having this | |
13284 | # directory ultimately in CPPFLAGS will be enough. | |
13285 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | |
13286 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" | |
13287 | else | |
13288 | CFLAGS=$OLD_CFLAGS | |
13289 | CPPFLAGS=$OLD_CPPFLAGS | |
13290 | fi | |
13291 | fi | |
13292 | fi | |
13293 | ||
13294 | ||
13295 | ||
13296 | USE_TOOLKIT_SCROLL_BARS=no | |
13297 | if test "${with_toolkit_scroll_bars}" != "no"; then | |
13298 | if test "${USE_X_TOOLKIT}" != "none"; then | |
13299 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
13300 | cat >>confdefs.h <<\_ACEOF | |
13301 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
13302 | _ACEOF | |
13303 | ||
13304 | HAVE_XAW3D=no | |
13305 | USE_TOOLKIT_SCROLL_BARS=yes | |
13306 | elif test "${HAVE_XAW3D}" = "yes"; then | |
13307 | cat >>confdefs.h <<\_ACEOF | |
13308 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
13309 | _ACEOF | |
13310 | ||
13311 | USE_TOOLKIT_SCROLL_BARS=yes | |
13312 | fi | |
13313 | elif test "${HAVE_GTK}" = "yes"; then | |
13314 | cat >>confdefs.h <<\_ACEOF | |
13315 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
13316 | _ACEOF | |
13317 | ||
13318 | USE_TOOLKIT_SCROLL_BARS=yes | |
13319 | elif test "${HAVE_NS}" = "yes"; then | |
13320 | cat >>confdefs.h <<\_ACEOF | |
13321 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
13322 | _ACEOF | |
13323 | ||
13324 | USE_TOOLKIT_SCROLL_BARS=yes | |
13325 | fi | |
13326 | fi | |
13327 | ||
13328 | cat >conftest.$ac_ext <<_ACEOF | |
13329 | /* confdefs.h. */ | |
13330 | _ACEOF | |
13331 | cat confdefs.h >>conftest.$ac_ext | |
13332 | cat >>conftest.$ac_ext <<_ACEOF | |
13333 | /* end confdefs.h. */ | |
13334 | ||
13335 | #include <X11/Xlib.h> | |
13336 | #include <X11/Xresource.h> | |
13337 | int | |
13338 | main () | |
13339 | { | |
13340 | XIMProc callback; | |
13341 | ; | |
13342 | return 0; | |
13343 | } | |
13344 | _ACEOF | |
13345 | rm -f conftest.$ac_objext | |
13346 | if { (ac_try="$ac_compile" | |
13347 | case "(($ac_try" in | |
13348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13349 | *) ac_try_echo=$ac_try;; | |
13350 | esac | |
13351 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13352 | $as_echo "$ac_try_echo") >&5 | |
13353 | (eval "$ac_compile") 2>conftest.er1 | |
13354 | ac_status=$? | |
13355 | grep -v '^ *+' conftest.er1 >conftest.err | |
13356 | rm -f conftest.er1 | |
13357 | cat conftest.err >&5 | |
13358 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13359 | (exit $ac_status); } && { | |
13360 | test -z "$ac_c_werror_flag" || | |
13361 | test ! -s conftest.err | |
13362 | } && test -s conftest.$ac_objext; then | |
13363 | HAVE_XIM=yes | |
13364 | ||
13365 | cat >>confdefs.h <<\_ACEOF | |
13366 | #define HAVE_XIM 1 | |
13367 | _ACEOF | |
13368 | ||
13369 | else | |
13370 | $as_echo "$as_me: failed program was:" >&5 | |
13371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13372 | ||
13373 | HAVE_XIM=no | |
13374 | fi | |
13375 | ||
13376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13377 | ||
13378 | ||
13379 | if test "${with_xim}" != "no"; then | |
13380 | ||
13381 | cat >>confdefs.h <<\_ACEOF | |
13382 | #define USE_XIM 1 | |
13383 | _ACEOF | |
13384 | ||
13385 | fi | |
13386 | ||
13387 | ||
13388 | if test "${HAVE_XIM}" != "no"; then | |
13389 | late_CFLAGS=$CFLAGS | |
13390 | if test "$GCC" = yes; then | |
13391 | CFLAGS="$CFLAGS --pedantic-errors" | |
13392 | fi | |
13393 | cat >conftest.$ac_ext <<_ACEOF | |
13394 | /* confdefs.h. */ | |
13395 | _ACEOF | |
13396 | cat confdefs.h >>conftest.$ac_ext | |
13397 | cat >>conftest.$ac_ext <<_ACEOF | |
13398 | /* end confdefs.h. */ | |
13399 | ||
13400 | #include <X11/Xlib.h> | |
13401 | #include <X11/Xresource.h> | |
13402 | int | |
13403 | main () | |
13404 | { | |
13405 | Display *display; | |
13406 | XrmDatabase db; | |
13407 | char *res_name; | |
13408 | char *res_class; | |
13409 | XIMProc callback; | |
13410 | XPointer *client_data; | |
13411 | #ifndef __GNUC__ | |
13412 | /* If we're not using GCC, it's probably not XFree86, and this is | |
13413 | probably right, but we can't use something like --pedantic-errors. */ | |
13414 | extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, | |
13415 | char*, XIMProc, XPointer*); | |
13416 | #endif | |
13417 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, | |
13418 | client_data); | |
13419 | ; | |
13420 | return 0; | |
13421 | } | |
13422 | _ACEOF | |
13423 | rm -f conftest.$ac_objext | |
13424 | if { (ac_try="$ac_compile" | |
13425 | case "(($ac_try" in | |
13426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13427 | *) ac_try_echo=$ac_try;; | |
13428 | esac | |
13429 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13430 | $as_echo "$ac_try_echo") >&5 | |
13431 | (eval "$ac_compile") 2>conftest.er1 | |
13432 | ac_status=$? | |
13433 | grep -v '^ *+' conftest.er1 >conftest.err | |
13434 | rm -f conftest.er1 | |
13435 | cat conftest.err >&5 | |
13436 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13437 | (exit $ac_status); } && { | |
13438 | test -z "$ac_c_werror_flag" || | |
13439 | test ! -s conftest.err | |
13440 | } && test -s conftest.$ac_objext; then | |
13441 | emacs_cv_arg6_star=yes | |
13442 | else | |
13443 | $as_echo "$as_me: failed program was:" >&5 | |
13444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13445 | ||
13446 | ||
13447 | fi | |
13448 | ||
13449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13450 | ||
13451 | if test "$emacs_cv_arg6_star" = yes; then | |
13452 | cat >>confdefs.h <<\_ACEOF | |
13453 | #define XRegisterIMInstantiateCallback_arg6 XPointer* | |
13454 | _ACEOF | |
13455 | ||
13456 | else | |
13457 | cat >>confdefs.h <<\_ACEOF | |
13458 | #define XRegisterIMInstantiateCallback_arg6 XPointer | |
13459 | _ACEOF | |
13460 | ||
13461 | fi | |
13462 | CFLAGS=$late_CFLAGS | |
13463 | fi | |
13464 | ||
13465 | ### Start of font-backend (under any platform) section. | |
13466 | # (nothing here yet -- this is a placeholder) | |
13467 | ### End of font-backend (under any platform) section. | |
13468 | ||
13469 | ### Start of font-backend (under X11) section. | |
13470 | if test "${HAVE_X11}" = "yes"; then | |
13471 | ||
13472 | succeeded=no | |
13473 | ||
13474 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13475 | set dummy pkg-config; ac_word=$2 | |
13476 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13477 | $as_echo_n "checking for $ac_word... " >&6; } | |
13478 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
13479 | $as_echo_n "(cached) " >&6 | |
13480 | else | |
13481 | case $PKG_CONFIG in | |
13482 | [\\/]* | ?:[\\/]*) | |
13483 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
13484 | ;; | |
13485 | *) | |
13486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13487 | for as_dir in $PATH | |
13488 | do | |
13489 | IFS=$as_save_IFS | |
13490 | test -z "$as_dir" && as_dir=. | |
13491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13492 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13493 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
13494 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13495 | break 2 | |
13496 | fi | |
13497 | done | |
13498 | done | |
13499 | IFS=$as_save_IFS | |
13500 | ||
13501 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
13502 | ;; | |
13503 | esac | |
13504 | fi | |
13505 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
13506 | if test -n "$PKG_CONFIG"; then | |
13507 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
13508 | $as_echo "$PKG_CONFIG" >&6; } | |
13509 | else | |
13510 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13511 | $as_echo "no" >&6; } | |
13512 | fi | |
13513 | ||
13514 | ||
13515 | ||
13516 | if test "$PKG_CONFIG" = "no" ; then | |
13517 | HAVE_FC=no | |
13518 | else | |
13519 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13520 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
13521 | { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5 | |
13522 | $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } | |
13523 | ||
13524 | if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then | |
13525 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13526 | $as_echo "yes" >&6; } | |
13527 | succeeded=yes | |
13528 | ||
13529 | { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5 | |
13530 | $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } | |
13531 | FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` | |
13532 | { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5 | |
13533 | $as_echo "$FONTCONFIG_CFLAGS" >&6; } | |
13534 | ||
13535 | { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5 | |
13536 | $as_echo_n "checking FONTCONFIG_LIBS... " >&6; } | |
13537 | FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` | |
13538 | { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5 | |
13539 | $as_echo "$FONTCONFIG_LIBS" >&6; } | |
13540 | else | |
13541 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13542 | $as_echo "no" >&6; } | |
13543 | FONTCONFIG_CFLAGS="" | |
13544 | FONTCONFIG_LIBS="" | |
13545 | ## If we have a custom action on failure, don't print errors, but | |
13546 | ## do set a variable so people can do so. | |
13547 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"` | |
13548 | ||
13549 | fi | |
13550 | ||
13551 | ||
13552 | ||
13553 | else | |
13554 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13555 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13556 | fi | |
13557 | fi | |
13558 | ||
13559 | if test $succeeded = yes; then | |
13560 | HAVE_FC=yes | |
13561 | else | |
13562 | HAVE_FC=no | |
13563 | fi | |
13564 | ||
13565 | ||
13566 | ## Use -lXft if available, unless `--with-xft=no'. | |
13567 | HAVE_XFT=maybe | |
13568 | if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then | |
13569 | with_xft="no"; | |
13570 | fi | |
13571 | if test "x${with_xft}" != "xno"; then | |
13572 | ||
13573 | ||
13574 | succeeded=no | |
13575 | ||
13576 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13577 | set dummy pkg-config; ac_word=$2 | |
13578 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13579 | $as_echo_n "checking for $ac_word... " >&6; } | |
13580 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
13581 | $as_echo_n "(cached) " >&6 | |
13582 | else | |
13583 | case $PKG_CONFIG in | |
13584 | [\\/]* | ?:[\\/]*) | |
13585 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
13586 | ;; | |
13587 | *) | |
13588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13589 | for as_dir in $PATH | |
13590 | do | |
13591 | IFS=$as_save_IFS | |
13592 | test -z "$as_dir" && as_dir=. | |
13593 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13594 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13595 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
13596 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13597 | break 2 | |
13598 | fi | |
13599 | done | |
13600 | done | |
13601 | IFS=$as_save_IFS | |
13602 | ||
13603 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
13604 | ;; | |
13605 | esac | |
13606 | fi | |
13607 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
13608 | if test -n "$PKG_CONFIG"; then | |
13609 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
13610 | $as_echo "$PKG_CONFIG" >&6; } | |
13611 | else | |
13612 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13613 | $as_echo "no" >&6; } | |
13614 | fi | |
13615 | ||
13616 | ||
13617 | ||
13618 | if test "$PKG_CONFIG" = "no" ; then | |
13619 | HAVE_XFT=no | |
13620 | else | |
13621 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13622 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
13623 | { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5 | |
13624 | $as_echo_n "checking for xft >= 0.13.0... " >&6; } | |
13625 | ||
13626 | if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then | |
13627 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13628 | $as_echo "yes" >&6; } | |
13629 | succeeded=yes | |
13630 | ||
13631 | { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5 | |
13632 | $as_echo_n "checking XFT_CFLAGS... " >&6; } | |
13633 | XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` | |
13634 | { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5 | |
13635 | $as_echo "$XFT_CFLAGS" >&6; } | |
13636 | ||
13637 | { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5 | |
13638 | $as_echo_n "checking XFT_LIBS... " >&6; } | |
13639 | XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` | |
13640 | { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5 | |
13641 | $as_echo "$XFT_LIBS" >&6; } | |
13642 | else | |
13643 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13644 | $as_echo "no" >&6; } | |
13645 | XFT_CFLAGS="" | |
13646 | XFT_LIBS="" | |
13647 | ## If we have a custom action on failure, don't print errors, but | |
13648 | ## do set a variable so people can do so. | |
13649 | XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"` | |
13650 | ||
13651 | fi | |
13652 | ||
13653 | ||
13654 | ||
13655 | else | |
13656 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13657 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13658 | fi | |
13659 | fi | |
13660 | ||
13661 | if test $succeeded = yes; then | |
13662 | : | |
13663 | else | |
13664 | HAVE_XFT=no | |
13665 | fi | |
13666 | ||
13667 | ## Because xftfont.c uses XRenderQueryExtension, we also | |
13668 | ## need to link to -lXrender. | |
13669 | HAVE_XRENDER=no | |
13670 | { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5 | |
13671 | $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } | |
13672 | if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then | |
13673 | $as_echo_n "(cached) " >&6 | |
13674 | else | |
13675 | ac_check_lib_save_LIBS=$LIBS | |
13676 | LIBS="-lXrender $LIBS" | |
13677 | cat >conftest.$ac_ext <<_ACEOF | |
13678 | /* confdefs.h. */ | |
13679 | _ACEOF | |
13680 | cat confdefs.h >>conftest.$ac_ext | |
13681 | cat >>conftest.$ac_ext <<_ACEOF | |
13682 | /* end confdefs.h. */ | |
13683 | ||
13684 | /* Override any GCC internal prototype to avoid an error. | |
13685 | Use char because int might match the return type of a GCC | |
13686 | builtin and then its argument prototype would still apply. */ | |
13687 | #ifdef __cplusplus | |
13688 | extern "C" | |
13689 | #endif | |
13690 | char XRenderQueryExtension (); | |
13691 | int | |
13692 | main () | |
13693 | { | |
13694 | return XRenderQueryExtension (); | |
13695 | ; | |
13696 | return 0; | |
13697 | } | |
13698 | _ACEOF | |
13699 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13700 | if { (ac_try="$ac_link" | |
13701 | case "(($ac_try" in | |
13702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13703 | *) ac_try_echo=$ac_try;; | |
13704 | esac | |
13705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13706 | $as_echo "$ac_try_echo") >&5 | |
13707 | (eval "$ac_link") 2>conftest.er1 | |
13708 | ac_status=$? | |
13709 | grep -v '^ *+' conftest.er1 >conftest.err | |
13710 | rm -f conftest.er1 | |
13711 | cat conftest.err >&5 | |
13712 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13713 | (exit $ac_status); } && { | |
13714 | test -z "$ac_c_werror_flag" || | |
13715 | test ! -s conftest.err | |
13716 | } && test -s conftest$ac_exeext && { | |
13717 | test "$cross_compiling" = yes || | |
13718 | $as_test_x conftest$ac_exeext | |
13719 | }; then | |
13720 | ac_cv_lib_Xrender_XRenderQueryExtension=yes | |
13721 | else | |
13722 | $as_echo "$as_me: failed program was:" >&5 | |
13723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13724 | ||
13725 | ac_cv_lib_Xrender_XRenderQueryExtension=no | |
13726 | fi | |
13727 | ||
13728 | rm -rf conftest.dSYM | |
13729 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13730 | conftest$ac_exeext conftest.$ac_ext | |
13731 | LIBS=$ac_check_lib_save_LIBS | |
13732 | fi | |
13733 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 | |
13734 | $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } | |
13735 | if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then | |
13736 | HAVE_XRENDER=yes | |
13737 | fi | |
13738 | ||
13739 | if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then | |
13740 | OLD_CPPFLAGS="$CPPFLAGS" | |
13741 | OLD_CFLAGS="$CFLAGS" | |
13742 | OLD_LIBS="$LIBS" | |
13743 | CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" | |
13744 | CFLAGS="$CFLAGS $XFT_CFLAGS" | |
13745 | XFT_LIBS="-lXrender $XFT_LIBS" | |
13746 | LIBS="$XFT_LIBS $LIBS" | |
13747 | if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
13748 | { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 | |
13749 | $as_echo_n "checking for X11/Xft/Xft.h... " >&6; } | |
13750 | if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
13751 | $as_echo_n "(cached) " >&6 | |
13752 | fi | |
13753 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 | |
13754 | $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; } | |
13755 | else | |
13756 | # Is the header compilable? | |
13757 | { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5 | |
13758 | $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; } | |
13759 | cat >conftest.$ac_ext <<_ACEOF | |
13760 | /* confdefs.h. */ | |
13761 | _ACEOF | |
13762 | cat confdefs.h >>conftest.$ac_ext | |
13763 | cat >>conftest.$ac_ext <<_ACEOF | |
13764 | /* end confdefs.h. */ | |
13765 | $ac_includes_default | |
13766 | #include <X11/Xft/Xft.h> | |
13767 | _ACEOF | |
13768 | rm -f conftest.$ac_objext | |
13769 | if { (ac_try="$ac_compile" | |
13770 | case "(($ac_try" in | |
13771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13772 | *) ac_try_echo=$ac_try;; | |
13773 | esac | |
13774 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13775 | $as_echo "$ac_try_echo") >&5 | |
13776 | (eval "$ac_compile") 2>conftest.er1 | |
13777 | ac_status=$? | |
13778 | grep -v '^ *+' conftest.er1 >conftest.err | |
13779 | rm -f conftest.er1 | |
13780 | cat conftest.err >&5 | |
13781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13782 | (exit $ac_status); } && { | |
13783 | test -z "$ac_c_werror_flag" || | |
13784 | test ! -s conftest.err | |
13785 | } && test -s conftest.$ac_objext; then | |
13786 | ac_header_compiler=yes | |
13787 | else | |
13788 | $as_echo "$as_me: failed program was:" >&5 | |
13789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13790 | ||
13791 | ac_header_compiler=no | |
13792 | fi | |
13793 | ||
13794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13795 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13796 | $as_echo "$ac_header_compiler" >&6; } | |
13797 | ||
13798 | # Is the header present? | |
13799 | { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5 | |
13800 | $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; } | |
13801 | cat >conftest.$ac_ext <<_ACEOF | |
13802 | /* confdefs.h. */ | |
13803 | _ACEOF | |
13804 | cat confdefs.h >>conftest.$ac_ext | |
13805 | cat >>conftest.$ac_ext <<_ACEOF | |
13806 | /* end confdefs.h. */ | |
13807 | #include <X11/Xft/Xft.h> | |
13808 | _ACEOF | |
13809 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13810 | case "(($ac_try" in | |
13811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13812 | *) ac_try_echo=$ac_try;; | |
13813 | esac | |
13814 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13815 | $as_echo "$ac_try_echo") >&5 | |
13816 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13817 | ac_status=$? | |
13818 | grep -v '^ *+' conftest.er1 >conftest.err | |
13819 | rm -f conftest.er1 | |
13820 | cat conftest.err >&5 | |
13821 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13822 | (exit $ac_status); } >/dev/null && { | |
13823 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13824 | test ! -s conftest.err | |
13825 | }; then | |
13826 | ac_header_preproc=yes | |
13827 | else | |
13828 | $as_echo "$as_me: failed program was:" >&5 | |
13829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13830 | ||
13831 | ac_header_preproc=no | |
13832 | fi | |
13833 | ||
13834 | rm -f conftest.err conftest.$ac_ext | |
13835 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13836 | $as_echo "$ac_header_preproc" >&6; } | |
13837 | ||
13838 | # So? What about this header? | |
13839 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13840 | yes:no: ) | |
13841 | { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13842 | $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13843 | { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5 | |
13844 | $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;} | |
13845 | ac_header_preproc=yes | |
13846 | ;; | |
13847 | no:yes:* ) | |
13848 | { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5 | |
13849 | $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;} | |
13850 | { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5 | |
13851 | $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;} | |
13852 | { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5 | |
13853 | $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;} | |
13854 | { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13855 | $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13856 | { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5 | |
13857 | $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;} | |
13858 | { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5 | |
13859 | $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;} | |
13860 | ||
13861 | ;; | |
13862 | esac | |
13863 | { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 | |
13864 | $as_echo_n "checking for X11/Xft/Xft.h... " >&6; } | |
13865 | if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
13866 | $as_echo_n "(cached) " >&6 | |
13867 | else | |
13868 | ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc | |
13869 | fi | |
13870 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 | |
13871 | $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; } | |
13872 | ||
13873 | fi | |
13874 | if test $ac_cv_header_X11_Xft_Xft_h = yes; then | |
13875 | { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5 | |
13876 | $as_echo_n "checking for XftFontOpen in -lXft... " >&6; } | |
13877 | if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then | |
13878 | $as_echo_n "(cached) " >&6 | |
13879 | else | |
13880 | ac_check_lib_save_LIBS=$LIBS | |
13881 | LIBS="-lXft $XFT_LIBS $LIBS" | |
13882 | cat >conftest.$ac_ext <<_ACEOF | |
13883 | /* confdefs.h. */ | |
13884 | _ACEOF | |
13885 | cat confdefs.h >>conftest.$ac_ext | |
13886 | cat >>conftest.$ac_ext <<_ACEOF | |
13887 | /* end confdefs.h. */ | |
13888 | ||
13889 | /* Override any GCC internal prototype to avoid an error. | |
13890 | Use char because int might match the return type of a GCC | |
13891 | builtin and then its argument prototype would still apply. */ | |
13892 | #ifdef __cplusplus | |
13893 | extern "C" | |
13894 | #endif | |
13895 | char XftFontOpen (); | |
13896 | int | |
13897 | main () | |
13898 | { | |
13899 | return XftFontOpen (); | |
13900 | ; | |
13901 | return 0; | |
13902 | } | |
13903 | _ACEOF | |
13904 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13905 | if { (ac_try="$ac_link" | |
13906 | case "(($ac_try" in | |
13907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13908 | *) ac_try_echo=$ac_try;; | |
13909 | esac | |
13910 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13911 | $as_echo "$ac_try_echo") >&5 | |
13912 | (eval "$ac_link") 2>conftest.er1 | |
13913 | ac_status=$? | |
13914 | grep -v '^ *+' conftest.er1 >conftest.err | |
13915 | rm -f conftest.er1 | |
13916 | cat conftest.err >&5 | |
13917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13918 | (exit $ac_status); } && { | |
13919 | test -z "$ac_c_werror_flag" || | |
13920 | test ! -s conftest.err | |
13921 | } && test -s conftest$ac_exeext && { | |
13922 | test "$cross_compiling" = yes || | |
13923 | $as_test_x conftest$ac_exeext | |
13924 | }; then | |
13925 | ac_cv_lib_Xft_XftFontOpen=yes | |
13926 | else | |
13927 | $as_echo "$as_me: failed program was:" >&5 | |
13928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13929 | ||
13930 | ac_cv_lib_Xft_XftFontOpen=no | |
13931 | fi | |
13932 | ||
13933 | rm -rf conftest.dSYM | |
13934 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13935 | conftest$ac_exeext conftest.$ac_ext | |
13936 | LIBS=$ac_check_lib_save_LIBS | |
13937 | fi | |
13938 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5 | |
13939 | $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } | |
13940 | if test $ac_cv_lib_Xft_XftFontOpen = yes; then | |
13941 | HAVE_XFT=yes | |
13942 | fi | |
13943 | ||
13944 | fi | |
13945 | ||
13946 | ||
13947 | ||
13948 | if test "${HAVE_XFT}" = "yes"; then | |
13949 | ||
13950 | cat >>confdefs.h <<\_ACEOF | |
13951 | #define HAVE_XFT 1 | |
13952 | _ACEOF | |
13953 | ||
13954 | ||
13955 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" | |
13956 | else | |
13957 | CPPFLAGS="$OLD_CPPFLAGS" | |
13958 | CFLAGS="$OLD_CFLAGS" | |
13959 | LIBS="$OLD_LIBS" | |
13960 | fi # "${HAVE_XFT}" = "yes" | |
13961 | fi # "$HAVE_XFT" != no | |
13962 | fi # "x${with_xft}" != "xno" | |
13963 | ||
13964 | if test "$HAVE_XFT" != "yes"; then | |
13965 | HAVE_XFT=no | |
13966 | fi | |
13967 | ||
13968 | ||
13969 | HAVE_FREETYPE=no | |
13970 | ## We used to allow building with FreeType and without Xft. | |
13971 | ## However, the ftx font backend driver is not in good shape. | |
13972 | if test "${HAVE_XFT}" = "yes"; then | |
13973 | HAVE_FREETYPE=yes | |
13974 | FONTCONFIG_CFLAGS= | |
13975 | FONTCONFIG_LIBS= | |
13976 | fi | |
13977 | ||
13978 | HAVE_LIBOTF=no | |
13979 | if test "${HAVE_FREETYPE}" = "yes"; then | |
13980 | ||
13981 | cat >>confdefs.h <<\_ACEOF | |
13982 | #define HAVE_FREETYPE 1 | |
13983 | _ACEOF | |
13984 | ||
13985 | if test "${with_libotf}" != "no"; then | |
13986 | ||
13987 | succeeded=no | |
13988 | ||
13989 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13990 | set dummy pkg-config; ac_word=$2 | |
13991 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13992 | $as_echo_n "checking for $ac_word... " >&6; } | |
13993 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
13994 | $as_echo_n "(cached) " >&6 | |
13995 | else | |
13996 | case $PKG_CONFIG in | |
13997 | [\\/]* | ?:[\\/]*) | |
13998 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
13999 | ;; | |
14000 | *) | |
14001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14002 | for as_dir in $PATH | |
14003 | do | |
14004 | IFS=$as_save_IFS | |
14005 | test -z "$as_dir" && as_dir=. | |
14006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14008 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
14009 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14010 | break 2 | |
14011 | fi | |
14012 | done | |
14013 | done | |
14014 | IFS=$as_save_IFS | |
14015 | ||
14016 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14017 | ;; | |
14018 | esac | |
14019 | fi | |
14020 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
14021 | if test -n "$PKG_CONFIG"; then | |
14022 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
14023 | $as_echo "$PKG_CONFIG" >&6; } | |
14024 | else | |
14025 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14026 | $as_echo "no" >&6; } | |
14027 | fi | |
14028 | ||
14029 | ||
14030 | ||
14031 | if test "$PKG_CONFIG" = "no" ; then | |
14032 | HAVE_LIBOTF=no | |
14033 | else | |
14034 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14035 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14036 | { $as_echo "$as_me:$LINENO: checking for libotf" >&5 | |
14037 | $as_echo_n "checking for libotf... " >&6; } | |
14038 | ||
14039 | if $PKG_CONFIG --exists "libotf" 2>&5; then | |
14040 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14041 | $as_echo "yes" >&6; } | |
14042 | succeeded=yes | |
14043 | ||
14044 | { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5 | |
14045 | $as_echo_n "checking LIBOTF_CFLAGS... " >&6; } | |
14046 | LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` | |
14047 | { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5 | |
14048 | $as_echo "$LIBOTF_CFLAGS" >&6; } | |
14049 | ||
14050 | { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5 | |
14051 | $as_echo_n "checking LIBOTF_LIBS... " >&6; } | |
14052 | LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` | |
14053 | { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5 | |
14054 | $as_echo "$LIBOTF_LIBS" >&6; } | |
14055 | else | |
14056 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14057 | $as_echo "no" >&6; } | |
14058 | LIBOTF_CFLAGS="" | |
14059 | LIBOTF_LIBS="" | |
14060 | ## If we have a custom action on failure, don't print errors, but | |
14061 | ## do set a variable so people can do so. | |
14062 | LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"` | |
14063 | ||
14064 | fi | |
14065 | ||
14066 | ||
14067 | ||
14068 | else | |
14069 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14070 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14071 | fi | |
14072 | fi | |
14073 | ||
14074 | if test $succeeded = yes; then | |
14075 | HAVE_LIBOTF=yes | |
14076 | else | |
14077 | HAVE_LIBOTF=no | |
14078 | fi | |
14079 | ||
14080 | if test "$HAVE_LIBOTF" = "yes"; then | |
14081 | ||
14082 | cat >>confdefs.h <<\_ACEOF | |
14083 | #define HAVE_LIBOTF 1 | |
14084 | _ACEOF | |
14085 | ||
14086 | { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5 | |
14087 | $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } | |
14088 | if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then | |
14089 | $as_echo_n "(cached) " >&6 | |
14090 | else | |
14091 | ac_check_lib_save_LIBS=$LIBS | |
14092 | LIBS="-lotf $LIBS" | |
14093 | cat >conftest.$ac_ext <<_ACEOF | |
14094 | /* confdefs.h. */ | |
14095 | _ACEOF | |
14096 | cat confdefs.h >>conftest.$ac_ext | |
14097 | cat >>conftest.$ac_ext <<_ACEOF | |
14098 | /* end confdefs.h. */ | |
14099 | ||
14100 | /* Override any GCC internal prototype to avoid an error. | |
14101 | Use char because int might match the return type of a GCC | |
14102 | builtin and then its argument prototype would still apply. */ | |
14103 | #ifdef __cplusplus | |
14104 | extern "C" | |
14105 | #endif | |
14106 | char OTF_get_variation_glyphs (); | |
14107 | int | |
14108 | main () | |
14109 | { | |
14110 | return OTF_get_variation_glyphs (); | |
14111 | ; | |
14112 | return 0; | |
14113 | } | |
14114 | _ACEOF | |
14115 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14116 | if { (ac_try="$ac_link" | |
14117 | case "(($ac_try" in | |
14118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14119 | *) ac_try_echo=$ac_try;; | |
14120 | esac | |
14121 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14122 | $as_echo "$ac_try_echo") >&5 | |
14123 | (eval "$ac_link") 2>conftest.er1 | |
14124 | ac_status=$? | |
14125 | grep -v '^ *+' conftest.er1 >conftest.err | |
14126 | rm -f conftest.er1 | |
14127 | cat conftest.err >&5 | |
14128 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14129 | (exit $ac_status); } && { | |
14130 | test -z "$ac_c_werror_flag" || | |
14131 | test ! -s conftest.err | |
14132 | } && test -s conftest$ac_exeext && { | |
14133 | test "$cross_compiling" = yes || | |
14134 | $as_test_x conftest$ac_exeext | |
14135 | }; then | |
14136 | ac_cv_lib_otf_OTF_get_variation_glyphs=yes | |
14137 | else | |
14138 | $as_echo "$as_me: failed program was:" >&5 | |
14139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14140 | ||
14141 | ac_cv_lib_otf_OTF_get_variation_glyphs=no | |
14142 | fi | |
14143 | ||
14144 | rm -rf conftest.dSYM | |
14145 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14146 | conftest$ac_exeext conftest.$ac_ext | |
14147 | LIBS=$ac_check_lib_save_LIBS | |
14148 | fi | |
14149 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 | |
14150 | $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } | |
14151 | if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then | |
14152 | HAVE_OTF_GET_VARIATION_GLYPHS=yes | |
14153 | else | |
14154 | HAVE_OTF_GET_VARIATION_GLYPHS=no | |
14155 | fi | |
14156 | ||
14157 | if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then | |
14158 | ||
14159 | cat >>confdefs.h <<\_ACEOF | |
14160 | #define HAVE_OTF_GET_VARIATION_GLYPHS 1 | |
14161 | _ACEOF | |
14162 | ||
14163 | fi | |
14164 | fi | |
14165 | fi | |
14166 | fi | |
14167 | ||
14168 | HAVE_M17N_FLT=no | |
14169 | if test "${HAVE_LIBOTF}" = yes; then | |
14170 | if test "${with_m17n_flt}" != "no"; then | |
14171 | ||
14172 | succeeded=no | |
14173 | ||
14174 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14175 | set dummy pkg-config; ac_word=$2 | |
14176 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14177 | $as_echo_n "checking for $ac_word... " >&6; } | |
14178 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
14179 | $as_echo_n "(cached) " >&6 | |
14180 | else | |
14181 | case $PKG_CONFIG in | |
14182 | [\\/]* | ?:[\\/]*) | |
14183 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14184 | ;; | |
14185 | *) | |
14186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14187 | for as_dir in $PATH | |
14188 | do | |
14189 | IFS=$as_save_IFS | |
14190 | test -z "$as_dir" && as_dir=. | |
14191 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14192 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14193 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
14194 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14195 | break 2 | |
14196 | fi | |
14197 | done | |
14198 | done | |
14199 | IFS=$as_save_IFS | |
14200 | ||
14201 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14202 | ;; | |
14203 | esac | |
14204 | fi | |
14205 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
14206 | if test -n "$PKG_CONFIG"; then | |
14207 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
14208 | $as_echo "$PKG_CONFIG" >&6; } | |
14209 | else | |
14210 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14211 | $as_echo "no" >&6; } | |
14212 | fi | |
14213 | ||
14214 | ||
14215 | ||
14216 | if test "$PKG_CONFIG" = "no" ; then | |
14217 | HAVE_M17N_FLT=no | |
14218 | else | |
14219 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14220 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14221 | { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5 | |
14222 | $as_echo_n "checking for m17n-flt... " >&6; } | |
14223 | ||
14224 | if $PKG_CONFIG --exists "m17n-flt" 2>&5; then | |
14225 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14226 | $as_echo "yes" >&6; } | |
14227 | succeeded=yes | |
14228 | ||
14229 | { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5 | |
14230 | $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } | |
14231 | M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` | |
14232 | { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5 | |
14233 | $as_echo "$M17N_FLT_CFLAGS" >&6; } | |
14234 | ||
14235 | { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5 | |
14236 | $as_echo_n "checking M17N_FLT_LIBS... " >&6; } | |
14237 | M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` | |
14238 | { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5 | |
14239 | $as_echo "$M17N_FLT_LIBS" >&6; } | |
14240 | else | |
14241 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14242 | $as_echo "no" >&6; } | |
14243 | M17N_FLT_CFLAGS="" | |
14244 | M17N_FLT_LIBS="" | |
14245 | ## If we have a custom action on failure, don't print errors, but | |
14246 | ## do set a variable so people can do so. | |
14247 | M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"` | |
14248 | ||
14249 | fi | |
14250 | ||
14251 | ||
14252 | ||
14253 | else | |
14254 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14255 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14256 | fi | |
14257 | fi | |
14258 | ||
14259 | if test $succeeded = yes; then | |
14260 | HAVE_M17N_FLT=yes | |
14261 | else | |
14262 | HAVE_M17N_FLT=no | |
14263 | fi | |
14264 | ||
14265 | if test "$HAVE_M17N_FLT" = "yes"; then | |
14266 | ||
14267 | cat >>confdefs.h <<\_ACEOF | |
14268 | #define HAVE_M17N_FLT 1 | |
14269 | _ACEOF | |
14270 | ||
14271 | fi | |
14272 | fi | |
14273 | fi | |
14274 | else | |
14275 | HAVE_XFT=no | |
14276 | HAVE_FREETYPE=no | |
14277 | HAVE_LIBOTF=no | |
14278 | HAVE_M17N_FLT=no | |
14279 | fi | |
14280 | ### End of font-backend (under X11) section. | |
14281 | ||
14282 | ||
14283 | ||
14284 | ||
14285 | ||
14286 | ||
14287 | ||
14288 | ||
14289 | ||
14290 | ||
14291 | ### Use -lXpm if available, unless `--with-xpm=no'. | |
14292 | HAVE_XPM=no | |
14293 | if test "${HAVE_X11}" = "yes"; then | |
14294 | if test "${with_xpm}" != "no"; then | |
14295 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
14296 | { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
14297 | $as_echo_n "checking for X11/xpm.h... " >&6; } | |
14298 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
14299 | $as_echo_n "(cached) " >&6 | |
14300 | fi | |
14301 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 | |
14302 | $as_echo "$ac_cv_header_X11_xpm_h" >&6; } | |
14303 | else | |
14304 | # Is the header compilable? | |
14305 | { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 | |
14306 | $as_echo_n "checking X11/xpm.h usability... " >&6; } | |
14307 | cat >conftest.$ac_ext <<_ACEOF | |
14308 | /* confdefs.h. */ | |
14309 | _ACEOF | |
14310 | cat confdefs.h >>conftest.$ac_ext | |
14311 | cat >>conftest.$ac_ext <<_ACEOF | |
14312 | /* end confdefs.h. */ | |
14313 | $ac_includes_default | |
14314 | #include <X11/xpm.h> | |
14315 | _ACEOF | |
14316 | rm -f conftest.$ac_objext | |
14317 | if { (ac_try="$ac_compile" | |
14318 | case "(($ac_try" in | |
14319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14320 | *) ac_try_echo=$ac_try;; | |
14321 | esac | |
14322 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14323 | $as_echo "$ac_try_echo") >&5 | |
14324 | (eval "$ac_compile") 2>conftest.er1 | |
14325 | ac_status=$? | |
14326 | grep -v '^ *+' conftest.er1 >conftest.err | |
14327 | rm -f conftest.er1 | |
14328 | cat conftest.err >&5 | |
14329 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14330 | (exit $ac_status); } && { | |
14331 | test -z "$ac_c_werror_flag" || | |
14332 | test ! -s conftest.err | |
14333 | } && test -s conftest.$ac_objext; then | |
14334 | ac_header_compiler=yes | |
14335 | else | |
14336 | $as_echo "$as_me: failed program was:" >&5 | |
14337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14338 | ||
14339 | ac_header_compiler=no | |
14340 | fi | |
14341 | ||
14342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14343 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14344 | $as_echo "$ac_header_compiler" >&6; } | |
14345 | ||
14346 | # Is the header present? | |
14347 | { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 | |
14348 | $as_echo_n "checking X11/xpm.h presence... " >&6; } | |
14349 | cat >conftest.$ac_ext <<_ACEOF | |
14350 | /* confdefs.h. */ | |
14351 | _ACEOF | |
14352 | cat confdefs.h >>conftest.$ac_ext | |
14353 | cat >>conftest.$ac_ext <<_ACEOF | |
14354 | /* end confdefs.h. */ | |
14355 | #include <X11/xpm.h> | |
14356 | _ACEOF | |
14357 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14358 | case "(($ac_try" in | |
14359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14360 | *) ac_try_echo=$ac_try;; | |
14361 | esac | |
14362 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14363 | $as_echo "$ac_try_echo") >&5 | |
14364 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14365 | ac_status=$? | |
14366 | grep -v '^ *+' conftest.er1 >conftest.err | |
14367 | rm -f conftest.er1 | |
14368 | cat conftest.err >&5 | |
14369 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14370 | (exit $ac_status); } >/dev/null && { | |
14371 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14372 | test ! -s conftest.err | |
14373 | }; then | |
14374 | ac_header_preproc=yes | |
14375 | else | |
14376 | $as_echo "$as_me: failed program was:" >&5 | |
14377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14378 | ||
14379 | ac_header_preproc=no | |
14380 | fi | |
14381 | ||
14382 | rm -f conftest.err conftest.$ac_ext | |
14383 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14384 | $as_echo "$ac_header_preproc" >&6; } | |
14385 | ||
14386 | # So? What about this header? | |
14387 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14388 | yes:no: ) | |
14389 | { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14390 | $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14391 | { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5 | |
14392 | $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;} | |
14393 | ac_header_preproc=yes | |
14394 | ;; | |
14395 | no:yes:* ) | |
14396 | { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 | |
14397 | $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} | |
14398 | { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 | |
14399 | $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} | |
14400 | { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5 | |
14401 | $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;} | |
14402 | { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14403 | $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14404 | { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 | |
14405 | $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} | |
14406 | { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5 | |
14407 | $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;} | |
14408 | ||
14409 | ;; | |
14410 | esac | |
14411 | { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
14412 | $as_echo_n "checking for X11/xpm.h... " >&6; } | |
14413 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
14414 | $as_echo_n "(cached) " >&6 | |
14415 | else | |
14416 | ac_cv_header_X11_xpm_h=$ac_header_preproc | |
14417 | fi | |
14418 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 | |
14419 | $as_echo "$ac_cv_header_X11_xpm_h" >&6; } | |
14420 | ||
14421 | fi | |
14422 | if test $ac_cv_header_X11_xpm_h = yes; then | |
14423 | { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5 | |
14424 | $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } | |
14425 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | |
14426 | $as_echo_n "(cached) " >&6 | |
14427 | else | |
14428 | ac_check_lib_save_LIBS=$LIBS | |
14429 | LIBS="-lXpm -lX11 $LIBS" | |
14430 | cat >conftest.$ac_ext <<_ACEOF | |
14431 | /* confdefs.h. */ | |
14432 | _ACEOF | |
14433 | cat confdefs.h >>conftest.$ac_ext | |
14434 | cat >>conftest.$ac_ext <<_ACEOF | |
14435 | /* end confdefs.h. */ | |
14436 | ||
14437 | /* Override any GCC internal prototype to avoid an error. | |
14438 | Use char because int might match the return type of a GCC | |
14439 | builtin and then its argument prototype would still apply. */ | |
14440 | #ifdef __cplusplus | |
14441 | extern "C" | |
14442 | #endif | |
14443 | char XpmReadFileToPixmap (); | |
14444 | int | |
14445 | main () | |
14446 | { | |
14447 | return XpmReadFileToPixmap (); | |
14448 | ; | |
14449 | return 0; | |
14450 | } | |
14451 | _ACEOF | |
14452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14453 | if { (ac_try="$ac_link" | |
14454 | case "(($ac_try" in | |
14455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14456 | *) ac_try_echo=$ac_try;; | |
14457 | esac | |
14458 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14459 | $as_echo "$ac_try_echo") >&5 | |
14460 | (eval "$ac_link") 2>conftest.er1 | |
14461 | ac_status=$? | |
14462 | grep -v '^ *+' conftest.er1 >conftest.err | |
14463 | rm -f conftest.er1 | |
14464 | cat conftest.err >&5 | |
14465 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14466 | (exit $ac_status); } && { | |
14467 | test -z "$ac_c_werror_flag" || | |
14468 | test ! -s conftest.err | |
14469 | } && test -s conftest$ac_exeext && { | |
14470 | test "$cross_compiling" = yes || | |
14471 | $as_test_x conftest$ac_exeext | |
14472 | }; then | |
14473 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes | |
14474 | else | |
14475 | $as_echo "$as_me: failed program was:" >&5 | |
14476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14477 | ||
14478 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no | |
14479 | fi | |
14480 | ||
14481 | rm -rf conftest.dSYM | |
14482 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14483 | conftest$ac_exeext conftest.$ac_ext | |
14484 | LIBS=$ac_check_lib_save_LIBS | |
14485 | fi | |
14486 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 | |
14487 | $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } | |
14488 | if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | |
14489 | HAVE_XPM=yes | |
14490 | fi | |
14491 | ||
14492 | fi | |
14493 | ||
14494 | ||
14495 | if test "${HAVE_XPM}" = "yes"; then | |
14496 | { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 | |
14497 | $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } | |
14498 | cat >conftest.$ac_ext <<_ACEOF | |
14499 | /* confdefs.h. */ | |
14500 | _ACEOF | |
14501 | cat confdefs.h >>conftest.$ac_ext | |
14502 | cat >>conftest.$ac_ext <<_ACEOF | |
14503 | /* end confdefs.h. */ | |
14504 | #include "X11/xpm.h" | |
14505 | #ifndef XpmReturnAllocPixels | |
14506 | no_return_alloc_pixels | |
14507 | #endif | |
14508 | ||
14509 | _ACEOF | |
14510 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14511 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then | |
14512 | HAVE_XPM=no | |
14513 | else | |
14514 | HAVE_XPM=yes | |
14515 | fi | |
14516 | rm -f conftest* | |
14517 | ||
14518 | ||
14519 | if test "${HAVE_XPM}" = "yes"; then | |
14520 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14521 | $as_echo "yes" >&6; } | |
14522 | else | |
14523 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14524 | $as_echo "no" >&6; } | |
14525 | fi | |
14526 | fi | |
14527 | fi | |
14528 | ||
14529 | if test "${HAVE_XPM}" = "yes"; then | |
14530 | ||
14531 | cat >>confdefs.h <<\_ACEOF | |
14532 | #define HAVE_XPM 1 | |
14533 | _ACEOF | |
14534 | ||
14535 | fi | |
14536 | fi | |
14537 | ||
14538 | ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
14539 | HAVE_JPEG=no | |
14540 | if test "${HAVE_X11}" = "yes"; then | |
14541 | if test "${with_jpeg}" != "no"; then | |
14542 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
14543 | { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
14544 | $as_echo_n "checking for jerror.h... " >&6; } | |
14545 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
14546 | $as_echo_n "(cached) " >&6 | |
14547 | fi | |
14548 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 | |
14549 | $as_echo "$ac_cv_header_jerror_h" >&6; } | |
14550 | else | |
14551 | # Is the header compilable? | |
14552 | { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5 | |
14553 | $as_echo_n "checking jerror.h usability... " >&6; } | |
14554 | cat >conftest.$ac_ext <<_ACEOF | |
14555 | /* confdefs.h. */ | |
14556 | _ACEOF | |
14557 | cat confdefs.h >>conftest.$ac_ext | |
14558 | cat >>conftest.$ac_ext <<_ACEOF | |
14559 | /* end confdefs.h. */ | |
14560 | $ac_includes_default | |
14561 | #include <jerror.h> | |
14562 | _ACEOF | |
14563 | rm -f conftest.$ac_objext | |
14564 | if { (ac_try="$ac_compile" | |
14565 | case "(($ac_try" in | |
14566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14567 | *) ac_try_echo=$ac_try;; | |
14568 | esac | |
14569 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14570 | $as_echo "$ac_try_echo") >&5 | |
14571 | (eval "$ac_compile") 2>conftest.er1 | |
14572 | ac_status=$? | |
14573 | grep -v '^ *+' conftest.er1 >conftest.err | |
14574 | rm -f conftest.er1 | |
14575 | cat conftest.err >&5 | |
14576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14577 | (exit $ac_status); } && { | |
14578 | test -z "$ac_c_werror_flag" || | |
14579 | test ! -s conftest.err | |
14580 | } && test -s conftest.$ac_objext; then | |
14581 | ac_header_compiler=yes | |
14582 | else | |
14583 | $as_echo "$as_me: failed program was:" >&5 | |
14584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14585 | ||
14586 | ac_header_compiler=no | |
14587 | fi | |
14588 | ||
14589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14590 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14591 | $as_echo "$ac_header_compiler" >&6; } | |
14592 | ||
14593 | # Is the header present? | |
14594 | { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5 | |
14595 | $as_echo_n "checking jerror.h presence... " >&6; } | |
14596 | cat >conftest.$ac_ext <<_ACEOF | |
14597 | /* confdefs.h. */ | |
14598 | _ACEOF | |
14599 | cat confdefs.h >>conftest.$ac_ext | |
14600 | cat >>conftest.$ac_ext <<_ACEOF | |
14601 | /* end confdefs.h. */ | |
14602 | #include <jerror.h> | |
14603 | _ACEOF | |
14604 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14605 | case "(($ac_try" in | |
14606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14607 | *) ac_try_echo=$ac_try;; | |
14608 | esac | |
14609 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14610 | $as_echo "$ac_try_echo") >&5 | |
14611 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14612 | ac_status=$? | |
14613 | grep -v '^ *+' conftest.er1 >conftest.err | |
14614 | rm -f conftest.er1 | |
14615 | cat conftest.err >&5 | |
14616 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14617 | (exit $ac_status); } >/dev/null && { | |
14618 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14619 | test ! -s conftest.err | |
14620 | }; then | |
14621 | ac_header_preproc=yes | |
14622 | else | |
14623 | $as_echo "$as_me: failed program was:" >&5 | |
14624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14625 | ||
14626 | ac_header_preproc=no | |
14627 | fi | |
14628 | ||
14629 | rm -f conftest.err conftest.$ac_ext | |
14630 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14631 | $as_echo "$ac_header_preproc" >&6; } | |
14632 | ||
14633 | # So? What about this header? | |
14634 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14635 | yes:no: ) | |
14636 | { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14637 | $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14638 | { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5 | |
14639 | $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;} | |
14640 | ac_header_preproc=yes | |
14641 | ;; | |
14642 | no:yes:* ) | |
14643 | { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 | |
14644 | $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} | |
14645 | { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 | |
14646 | $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} | |
14647 | { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5 | |
14648 | $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;} | |
14649 | { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14650 | $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14651 | { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 | |
14652 | $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} | |
14653 | { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5 | |
14654 | $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;} | |
14655 | ||
14656 | ;; | |
14657 | esac | |
14658 | { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
14659 | $as_echo_n "checking for jerror.h... " >&6; } | |
14660 | if test "${ac_cv_header_jerror_h+set}" = set; then | |
14661 | $as_echo_n "(cached) " >&6 | |
14662 | else | |
14663 | ac_cv_header_jerror_h=$ac_header_preproc | |
14664 | fi | |
14665 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 | |
14666 | $as_echo "$ac_cv_header_jerror_h" >&6; } | |
14667 | ||
14668 | fi | |
14669 | if test $ac_cv_header_jerror_h = yes; then | |
14670 | { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5 | |
14671 | $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } | |
14672 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | |
14673 | $as_echo_n "(cached) " >&6 | |
14674 | else | |
14675 | ac_check_lib_save_LIBS=$LIBS | |
14676 | LIBS="-ljpeg $LIBS" | |
14677 | cat >conftest.$ac_ext <<_ACEOF | |
14678 | /* confdefs.h. */ | |
14679 | _ACEOF | |
14680 | cat confdefs.h >>conftest.$ac_ext | |
14681 | cat >>conftest.$ac_ext <<_ACEOF | |
14682 | /* end confdefs.h. */ | |
14683 | ||
14684 | /* Override any GCC internal prototype to avoid an error. | |
14685 | Use char because int might match the return type of a GCC | |
14686 | builtin and then its argument prototype would still apply. */ | |
14687 | #ifdef __cplusplus | |
14688 | extern "C" | |
14689 | #endif | |
14690 | char jpeg_destroy_compress (); | |
14691 | int | |
14692 | main () | |
14693 | { | |
14694 | return jpeg_destroy_compress (); | |
14695 | ; | |
14696 | return 0; | |
14697 | } | |
14698 | _ACEOF | |
14699 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14700 | if { (ac_try="$ac_link" | |
14701 | case "(($ac_try" in | |
14702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14703 | *) ac_try_echo=$ac_try;; | |
14704 | esac | |
14705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14706 | $as_echo "$ac_try_echo") >&5 | |
14707 | (eval "$ac_link") 2>conftest.er1 | |
14708 | ac_status=$? | |
14709 | grep -v '^ *+' conftest.er1 >conftest.err | |
14710 | rm -f conftest.er1 | |
14711 | cat conftest.err >&5 | |
14712 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14713 | (exit $ac_status); } && { | |
14714 | test -z "$ac_c_werror_flag" || | |
14715 | test ! -s conftest.err | |
14716 | } && test -s conftest$ac_exeext && { | |
14717 | test "$cross_compiling" = yes || | |
14718 | $as_test_x conftest$ac_exeext | |
14719 | }; then | |
14720 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes | |
14721 | else | |
14722 | $as_echo "$as_me: failed program was:" >&5 | |
14723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14724 | ||
14725 | ac_cv_lib_jpeg_jpeg_destroy_compress=no | |
14726 | fi | |
14727 | ||
14728 | rm -rf conftest.dSYM | |
14729 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14730 | conftest$ac_exeext conftest.$ac_ext | |
14731 | LIBS=$ac_check_lib_save_LIBS | |
14732 | fi | |
14733 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 | |
14734 | $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } | |
14735 | if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | |
14736 | HAVE_JPEG=yes | |
14737 | fi | |
14738 | ||
14739 | fi | |
14740 | ||
14741 | ||
14742 | fi | |
14743 | ||
14744 | ||
14745 | if test "${HAVE_JPEG}" = "yes"; then | |
14746 | cat >>confdefs.h <<\_ACEOF | |
14747 | #define HAVE_JPEG 1 | |
14748 | _ACEOF | |
14749 | ||
14750 | cat >conftest.$ac_ext <<_ACEOF | |
14751 | /* confdefs.h. */ | |
14752 | _ACEOF | |
14753 | cat confdefs.h >>conftest.$ac_ext | |
14754 | cat >>conftest.$ac_ext <<_ACEOF | |
14755 | /* end confdefs.h. */ | |
14756 | #include <jpeglib.h> | |
14757 | version=JPEG_LIB_VERSION | |
14758 | ||
14759 | _ACEOF | |
14760 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14761 | $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then | |
14762 | cat >>confdefs.h <<\_ACEOF | |
14763 | #define HAVE_JPEG 1 | |
14764 | _ACEOF | |
14765 | ||
14766 | else | |
14767 | { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 | |
14768 | $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} | |
14769 | HAVE_JPEG=no | |
14770 | fi | |
14771 | rm -f conftest* | |
14772 | ||
14773 | fi | |
14774 | fi | |
14775 | ||
14776 | ### Use -lpng if available, unless `--with-png=no'. | |
14777 | HAVE_PNG=no | |
14778 | if test "${HAVE_X11}" = "yes"; then | |
14779 | if test "${with_png}" != "no"; then | |
14780 | # Debian unstable as of July 2003 has multiple libpngs, and puts png.h | |
14781 | # in /usr/include/libpng. | |
14782 | ||
14783 | ||
14784 | for ac_header in png.h libpng/png.h | |
14785 | do | |
14786 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14787 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
14788 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14789 | $as_echo_n "checking for $ac_header... " >&6; } | |
14790 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
14791 | $as_echo_n "(cached) " >&6 | |
14792 | fi | |
14793 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
14794 | $as_echo "$as_val"'` | |
14795 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14796 | $as_echo "$ac_res" >&6; } | |
14797 | else | |
14798 | # Is the header compilable? | |
14799 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14800 | $as_echo_n "checking $ac_header usability... " >&6; } | |
14801 | cat >conftest.$ac_ext <<_ACEOF | |
14802 | /* confdefs.h. */ | |
14803 | _ACEOF | |
14804 | cat confdefs.h >>conftest.$ac_ext | |
14805 | cat >>conftest.$ac_ext <<_ACEOF | |
14806 | /* end confdefs.h. */ | |
14807 | $ac_includes_default | |
14808 | #include <$ac_header> | |
14809 | _ACEOF | |
14810 | rm -f conftest.$ac_objext | |
14811 | if { (ac_try="$ac_compile" | |
14812 | case "(($ac_try" in | |
14813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14814 | *) ac_try_echo=$ac_try;; | |
14815 | esac | |
14816 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14817 | $as_echo "$ac_try_echo") >&5 | |
14818 | (eval "$ac_compile") 2>conftest.er1 | |
14819 | ac_status=$? | |
14820 | grep -v '^ *+' conftest.er1 >conftest.err | |
14821 | rm -f conftest.er1 | |
14822 | cat conftest.err >&5 | |
14823 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14824 | (exit $ac_status); } && { | |
14825 | test -z "$ac_c_werror_flag" || | |
14826 | test ! -s conftest.err | |
14827 | } && test -s conftest.$ac_objext; then | |
14828 | ac_header_compiler=yes | |
14829 | else | |
14830 | $as_echo "$as_me: failed program was:" >&5 | |
14831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14832 | ||
14833 | ac_header_compiler=no | |
14834 | fi | |
14835 | ||
14836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14837 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14838 | $as_echo "$ac_header_compiler" >&6; } | |
14839 | ||
14840 | # Is the header present? | |
14841 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14842 | $as_echo_n "checking $ac_header presence... " >&6; } | |
14843 | cat >conftest.$ac_ext <<_ACEOF | |
14844 | /* confdefs.h. */ | |
14845 | _ACEOF | |
14846 | cat confdefs.h >>conftest.$ac_ext | |
14847 | cat >>conftest.$ac_ext <<_ACEOF | |
14848 | /* end confdefs.h. */ | |
14849 | #include <$ac_header> | |
14850 | _ACEOF | |
14851 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14852 | case "(($ac_try" in | |
14853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14854 | *) ac_try_echo=$ac_try;; | |
14855 | esac | |
14856 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14857 | $as_echo "$ac_try_echo") >&5 | |
14858 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14859 | ac_status=$? | |
14860 | grep -v '^ *+' conftest.er1 >conftest.err | |
14861 | rm -f conftest.er1 | |
14862 | cat conftest.err >&5 | |
14863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14864 | (exit $ac_status); } >/dev/null && { | |
14865 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14866 | test ! -s conftest.err | |
14867 | }; then | |
14868 | ac_header_preproc=yes | |
14869 | else | |
14870 | $as_echo "$as_me: failed program was:" >&5 | |
14871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14872 | ||
14873 | ac_header_preproc=no | |
14874 | fi | |
14875 | ||
14876 | rm -f conftest.err conftest.$ac_ext | |
14877 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14878 | $as_echo "$ac_header_preproc" >&6; } | |
14879 | ||
14880 | # So? What about this header? | |
14881 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14882 | yes:no: ) | |
14883 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14884 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14885 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14886 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14887 | ac_header_preproc=yes | |
14888 | ;; | |
14889 | no:yes:* ) | |
14890 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14891 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14892 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14893 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14894 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14895 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14896 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14897 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14898 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14899 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14900 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14901 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14902 | ||
14903 | ;; | |
14904 | esac | |
14905 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14906 | $as_echo_n "checking for $ac_header... " >&6; } | |
14907 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
14908 | $as_echo_n "(cached) " >&6 | |
14909 | else | |
14910 | eval "$as_ac_Header=\$ac_header_preproc" | |
14911 | fi | |
14912 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
14913 | $as_echo "$as_val"'` | |
14914 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14915 | $as_echo "$ac_res" >&6; } | |
14916 | ||
14917 | fi | |
14918 | if test `eval 'as_val=${'$as_ac_Header'} | |
14919 | $as_echo "$as_val"'` = yes; then | |
14920 | cat >>confdefs.h <<_ACEOF | |
14921 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14922 | _ACEOF | |
14923 | ||
14924 | fi | |
14925 | ||
14926 | done | |
14927 | ||
14928 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | |
14929 | { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 | |
14930 | $as_echo_n "checking for png_get_channels in -lpng... " >&6; } | |
14931 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | |
14932 | $as_echo_n "(cached) " >&6 | |
14933 | else | |
14934 | ac_check_lib_save_LIBS=$LIBS | |
14935 | LIBS="-lpng -lz -lm $LIBS" | |
14936 | cat >conftest.$ac_ext <<_ACEOF | |
14937 | /* confdefs.h. */ | |
14938 | _ACEOF | |
14939 | cat confdefs.h >>conftest.$ac_ext | |
14940 | cat >>conftest.$ac_ext <<_ACEOF | |
14941 | /* end confdefs.h. */ | |
14942 | ||
14943 | /* Override any GCC internal prototype to avoid an error. | |
14944 | Use char because int might match the return type of a GCC | |
14945 | builtin and then its argument prototype would still apply. */ | |
14946 | #ifdef __cplusplus | |
14947 | extern "C" | |
14948 | #endif | |
14949 | char png_get_channels (); | |
14950 | int | |
14951 | main () | |
14952 | { | |
14953 | return png_get_channels (); | |
14954 | ; | |
14955 | return 0; | |
14956 | } | |
14957 | _ACEOF | |
14958 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14959 | if { (ac_try="$ac_link" | |
14960 | case "(($ac_try" in | |
14961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14962 | *) ac_try_echo=$ac_try;; | |
14963 | esac | |
14964 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14965 | $as_echo "$ac_try_echo") >&5 | |
14966 | (eval "$ac_link") 2>conftest.er1 | |
14967 | ac_status=$? | |
14968 | grep -v '^ *+' conftest.er1 >conftest.err | |
14969 | rm -f conftest.er1 | |
14970 | cat conftest.err >&5 | |
14971 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14972 | (exit $ac_status); } && { | |
14973 | test -z "$ac_c_werror_flag" || | |
14974 | test ! -s conftest.err | |
14975 | } && test -s conftest$ac_exeext && { | |
14976 | test "$cross_compiling" = yes || | |
14977 | $as_test_x conftest$ac_exeext | |
14978 | }; then | |
14979 | ac_cv_lib_png_png_get_channels=yes | |
14980 | else | |
14981 | $as_echo "$as_me: failed program was:" >&5 | |
14982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14983 | ||
14984 | ac_cv_lib_png_png_get_channels=no | |
14985 | fi | |
14986 | ||
14987 | rm -rf conftest.dSYM | |
14988 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14989 | conftest$ac_exeext conftest.$ac_ext | |
14990 | LIBS=$ac_check_lib_save_LIBS | |
14991 | fi | |
14992 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 | |
14993 | $as_echo "$ac_cv_lib_png_png_get_channels" >&6; } | |
14994 | if test $ac_cv_lib_png_png_get_channels = yes; then | |
14995 | HAVE_PNG=yes | |
14996 | fi | |
14997 | ||
14998 | fi | |
14999 | fi | |
15000 | ||
15001 | if test "${HAVE_PNG}" = "yes"; then | |
15002 | ||
15003 | cat >>confdefs.h <<\_ACEOF | |
15004 | #define HAVE_PNG 1 | |
15005 | _ACEOF | |
15006 | ||
15007 | fi | |
15008 | fi | |
15009 | ||
15010 | ### Use -ltiff if available, unless `--with-tiff=no'. | |
15011 | HAVE_TIFF=no | |
15012 | if test "${HAVE_X11}" = "yes"; then | |
15013 | if test "${with_tiff}" != "no"; then | |
15014 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
15015 | { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
15016 | $as_echo_n "checking for tiffio.h... " >&6; } | |
15017 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
15018 | $as_echo_n "(cached) " >&6 | |
15019 | fi | |
15020 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
15021 | $as_echo "$ac_cv_header_tiffio_h" >&6; } | |
15022 | else | |
15023 | # Is the header compilable? | |
15024 | { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
15025 | $as_echo_n "checking tiffio.h usability... " >&6; } | |
15026 | cat >conftest.$ac_ext <<_ACEOF | |
15027 | /* confdefs.h. */ | |
15028 | _ACEOF | |
15029 | cat confdefs.h >>conftest.$ac_ext | |
15030 | cat >>conftest.$ac_ext <<_ACEOF | |
15031 | /* end confdefs.h. */ | |
15032 | $ac_includes_default | |
15033 | #include <tiffio.h> | |
15034 | _ACEOF | |
15035 | rm -f conftest.$ac_objext | |
15036 | if { (ac_try="$ac_compile" | |
15037 | case "(($ac_try" in | |
15038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15039 | *) ac_try_echo=$ac_try;; | |
15040 | esac | |
15041 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15042 | $as_echo "$ac_try_echo") >&5 | |
15043 | (eval "$ac_compile") 2>conftest.er1 | |
15044 | ac_status=$? | |
15045 | grep -v '^ *+' conftest.er1 >conftest.err | |
15046 | rm -f conftest.er1 | |
15047 | cat conftest.err >&5 | |
15048 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15049 | (exit $ac_status); } && { | |
15050 | test -z "$ac_c_werror_flag" || | |
15051 | test ! -s conftest.err | |
15052 | } && test -s conftest.$ac_objext; then | |
15053 | ac_header_compiler=yes | |
15054 | else | |
15055 | $as_echo "$as_me: failed program was:" >&5 | |
15056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15057 | ||
15058 | ac_header_compiler=no | |
15059 | fi | |
15060 | ||
15061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15062 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15063 | $as_echo "$ac_header_compiler" >&6; } | |
15064 | ||
15065 | # Is the header present? | |
15066 | { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
15067 | $as_echo_n "checking tiffio.h presence... " >&6; } | |
15068 | cat >conftest.$ac_ext <<_ACEOF | |
15069 | /* confdefs.h. */ | |
15070 | _ACEOF | |
15071 | cat confdefs.h >>conftest.$ac_ext | |
15072 | cat >>conftest.$ac_ext <<_ACEOF | |
15073 | /* end confdefs.h. */ | |
15074 | #include <tiffio.h> | |
15075 | _ACEOF | |
15076 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15077 | case "(($ac_try" in | |
15078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15079 | *) ac_try_echo=$ac_try;; | |
15080 | esac | |
15081 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15082 | $as_echo "$ac_try_echo") >&5 | |
15083 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15084 | ac_status=$? | |
15085 | grep -v '^ *+' conftest.er1 >conftest.err | |
15086 | rm -f conftest.er1 | |
15087 | cat conftest.err >&5 | |
15088 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15089 | (exit $ac_status); } >/dev/null && { | |
15090 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15091 | test ! -s conftest.err | |
15092 | }; then | |
15093 | ac_header_preproc=yes | |
15094 | else | |
15095 | $as_echo "$as_me: failed program was:" >&5 | |
15096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15097 | ||
15098 | ac_header_preproc=no | |
15099 | fi | |
15100 | ||
15101 | rm -f conftest.err conftest.$ac_ext | |
15102 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15103 | $as_echo "$ac_header_preproc" >&6; } | |
15104 | ||
15105 | # So? What about this header? | |
15106 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15107 | yes:no: ) | |
15108 | { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15109 | $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15110 | { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 | |
15111 | $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
15112 | ac_header_preproc=yes | |
15113 | ;; | |
15114 | no:yes:* ) | |
15115 | { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
15116 | $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
15117 | { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 | |
15118 | $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
15119 | { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
15120 | $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
15121 | { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15122 | $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
15123 | { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
15124 | $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
15125 | { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 | |
15126 | $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
15127 | ||
15128 | ;; | |
15129 | esac | |
15130 | { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
15131 | $as_echo_n "checking for tiffio.h... " >&6; } | |
15132 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
15133 | $as_echo_n "(cached) " >&6 | |
15134 | else | |
15135 | ac_cv_header_tiffio_h=$ac_header_preproc | |
15136 | fi | |
15137 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
15138 | $as_echo "$ac_cv_header_tiffio_h" >&6; } | |
15139 | ||
15140 | fi | |
15141 | if test $ac_cv_header_tiffio_h = yes; then | |
15142 | tifflibs="-lz -lm" | |
15143 | # At least one tiff package requires the jpeg library. | |
15144 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
15145 | { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 | |
15146 | $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } | |
15147 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | |
15148 | $as_echo_n "(cached) " >&6 | |
15149 | else | |
15150 | ac_check_lib_save_LIBS=$LIBS | |
15151 | LIBS="-ltiff $tifflibs $LIBS" | |
15152 | cat >conftest.$ac_ext <<_ACEOF | |
15153 | /* confdefs.h. */ | |
15154 | _ACEOF | |
15155 | cat confdefs.h >>conftest.$ac_ext | |
15156 | cat >>conftest.$ac_ext <<_ACEOF | |
15157 | /* end confdefs.h. */ | |
15158 | ||
15159 | /* Override any GCC internal prototype to avoid an error. | |
15160 | Use char because int might match the return type of a GCC | |
15161 | builtin and then its argument prototype would still apply. */ | |
15162 | #ifdef __cplusplus | |
15163 | extern "C" | |
15164 | #endif | |
15165 | char TIFFGetVersion (); | |
15166 | int | |
15167 | main () | |
15168 | { | |
15169 | return TIFFGetVersion (); | |
15170 | ; | |
15171 | return 0; | |
15172 | } | |
15173 | _ACEOF | |
15174 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15175 | if { (ac_try="$ac_link" | |
15176 | case "(($ac_try" in | |
15177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15178 | *) ac_try_echo=$ac_try;; | |
15179 | esac | |
15180 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15181 | $as_echo "$ac_try_echo") >&5 | |
15182 | (eval "$ac_link") 2>conftest.er1 | |
15183 | ac_status=$? | |
15184 | grep -v '^ *+' conftest.er1 >conftest.err | |
15185 | rm -f conftest.er1 | |
15186 | cat conftest.err >&5 | |
15187 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15188 | (exit $ac_status); } && { | |
15189 | test -z "$ac_c_werror_flag" || | |
15190 | test ! -s conftest.err | |
15191 | } && test -s conftest$ac_exeext && { | |
15192 | test "$cross_compiling" = yes || | |
15193 | $as_test_x conftest$ac_exeext | |
15194 | }; then | |
15195 | ac_cv_lib_tiff_TIFFGetVersion=yes | |
15196 | else | |
15197 | $as_echo "$as_me: failed program was:" >&5 | |
15198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15199 | ||
15200 | ac_cv_lib_tiff_TIFFGetVersion=no | |
15201 | fi | |
15202 | ||
15203 | rm -rf conftest.dSYM | |
15204 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15205 | conftest$ac_exeext conftest.$ac_ext | |
15206 | LIBS=$ac_check_lib_save_LIBS | |
15207 | fi | |
15208 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 | |
15209 | $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } | |
15210 | if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | |
15211 | HAVE_TIFF=yes | |
15212 | fi | |
15213 | ||
15214 | fi | |
15215 | ||
15216 | ||
15217 | fi | |
15218 | ||
15219 | if test "${HAVE_TIFF}" = "yes"; then | |
15220 | ||
15221 | cat >>confdefs.h <<\_ACEOF | |
15222 | #define HAVE_TIFF 1 | |
15223 | _ACEOF | |
15224 | ||
15225 | fi | |
15226 | fi | |
15227 | ||
15228 | ### Use -lgif or -lungif if available, unless `--with-gif=no'. | |
15229 | HAVE_GIF=no | |
15230 | if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then | |
15231 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
15232 | { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
15233 | $as_echo_n "checking for gif_lib.h... " >&6; } | |
15234 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
15235 | $as_echo_n "(cached) " >&6 | |
15236 | fi | |
15237 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 | |
15238 | $as_echo "$ac_cv_header_gif_lib_h" >&6; } | |
15239 | else | |
15240 | # Is the header compilable? | |
15241 | { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 | |
15242 | $as_echo_n "checking gif_lib.h usability... " >&6; } | |
15243 | cat >conftest.$ac_ext <<_ACEOF | |
15244 | /* confdefs.h. */ | |
15245 | _ACEOF | |
15246 | cat confdefs.h >>conftest.$ac_ext | |
15247 | cat >>conftest.$ac_ext <<_ACEOF | |
15248 | /* end confdefs.h. */ | |
15249 | $ac_includes_default | |
15250 | #include <gif_lib.h> | |
15251 | _ACEOF | |
15252 | rm -f conftest.$ac_objext | |
15253 | if { (ac_try="$ac_compile" | |
15254 | case "(($ac_try" in | |
15255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15256 | *) ac_try_echo=$ac_try;; | |
15257 | esac | |
15258 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15259 | $as_echo "$ac_try_echo") >&5 | |
15260 | (eval "$ac_compile") 2>conftest.er1 | |
15261 | ac_status=$? | |
15262 | grep -v '^ *+' conftest.er1 >conftest.err | |
15263 | rm -f conftest.er1 | |
15264 | cat conftest.err >&5 | |
15265 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15266 | (exit $ac_status); } && { | |
15267 | test -z "$ac_c_werror_flag" || | |
15268 | test ! -s conftest.err | |
15269 | } && test -s conftest.$ac_objext; then | |
15270 | ac_header_compiler=yes | |
15271 | else | |
15272 | $as_echo "$as_me: failed program was:" >&5 | |
15273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15274 | ||
15275 | ac_header_compiler=no | |
15276 | fi | |
15277 | ||
15278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15279 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15280 | $as_echo "$ac_header_compiler" >&6; } | |
15281 | ||
15282 | # Is the header present? | |
15283 | { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 | |
15284 | $as_echo_n "checking gif_lib.h presence... " >&6; } | |
15285 | cat >conftest.$ac_ext <<_ACEOF | |
15286 | /* confdefs.h. */ | |
15287 | _ACEOF | |
15288 | cat confdefs.h >>conftest.$ac_ext | |
15289 | cat >>conftest.$ac_ext <<_ACEOF | |
15290 | /* end confdefs.h. */ | |
15291 | #include <gif_lib.h> | |
15292 | _ACEOF | |
15293 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15294 | case "(($ac_try" in | |
15295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15296 | *) ac_try_echo=$ac_try;; | |
15297 | esac | |
15298 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15299 | $as_echo "$ac_try_echo") >&5 | |
15300 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15301 | ac_status=$? | |
15302 | grep -v '^ *+' conftest.er1 >conftest.err | |
15303 | rm -f conftest.er1 | |
15304 | cat conftest.err >&5 | |
15305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15306 | (exit $ac_status); } >/dev/null && { | |
15307 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15308 | test ! -s conftest.err | |
15309 | }; then | |
15310 | ac_header_preproc=yes | |
15311 | else | |
15312 | $as_echo "$as_me: failed program was:" >&5 | |
15313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15314 | ||
15315 | ac_header_preproc=no | |
15316 | fi | |
15317 | ||
15318 | rm -f conftest.err conftest.$ac_ext | |
15319 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15320 | $as_echo "$ac_header_preproc" >&6; } | |
15321 | ||
15322 | # So? What about this header? | |
15323 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15324 | yes:no: ) | |
15325 | { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15326 | $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15327 | { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5 | |
15328 | $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;} | |
15329 | ac_header_preproc=yes | |
15330 | ;; | |
15331 | no:yes:* ) | |
15332 | { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 | |
15333 | $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} | |
15334 | { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 | |
15335 | $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} | |
15336 | { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5 | |
15337 | $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;} | |
15338 | { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15339 | $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
15340 | { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 | |
15341 | $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} | |
15342 | { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5 | |
15343 | $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;} | |
15344 | ||
15345 | ;; | |
15346 | esac | |
15347 | { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
15348 | $as_echo_n "checking for gif_lib.h... " >&6; } | |
15349 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
15350 | $as_echo_n "(cached) " >&6 | |
15351 | else | |
15352 | ac_cv_header_gif_lib_h=$ac_header_preproc | |
15353 | fi | |
15354 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 | |
15355 | $as_echo "$ac_cv_header_gif_lib_h" >&6; } | |
15356 | ||
15357 | fi | |
15358 | if test $ac_cv_header_gif_lib_h = yes; then | |
15359 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | |
15360 | # Earlier versions can crash Emacs. | |
15361 | { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5 | |
15362 | $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } | |
15363 | if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then | |
15364 | $as_echo_n "(cached) " >&6 | |
15365 | else | |
15366 | ac_check_lib_save_LIBS=$LIBS | |
15367 | LIBS="-lgif $LIBS" | |
15368 | cat >conftest.$ac_ext <<_ACEOF | |
15369 | /* confdefs.h. */ | |
15370 | _ACEOF | |
15371 | cat confdefs.h >>conftest.$ac_ext | |
15372 | cat >>conftest.$ac_ext <<_ACEOF | |
15373 | /* end confdefs.h. */ | |
15374 | ||
15375 | /* Override any GCC internal prototype to avoid an error. | |
15376 | Use char because int might match the return type of a GCC | |
15377 | builtin and then its argument prototype would still apply. */ | |
15378 | #ifdef __cplusplus | |
15379 | extern "C" | |
15380 | #endif | |
15381 | char EGifPutExtensionLast (); | |
15382 | int | |
15383 | main () | |
15384 | { | |
15385 | return EGifPutExtensionLast (); | |
15386 | ; | |
15387 | return 0; | |
15388 | } | |
15389 | _ACEOF | |
15390 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15391 | if { (ac_try="$ac_link" | |
15392 | case "(($ac_try" in | |
15393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15394 | *) ac_try_echo=$ac_try;; | |
15395 | esac | |
15396 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15397 | $as_echo "$ac_try_echo") >&5 | |
15398 | (eval "$ac_link") 2>conftest.er1 | |
15399 | ac_status=$? | |
15400 | grep -v '^ *+' conftest.er1 >conftest.err | |
15401 | rm -f conftest.er1 | |
15402 | cat conftest.err >&5 | |
15403 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15404 | (exit $ac_status); } && { | |
15405 | test -z "$ac_c_werror_flag" || | |
15406 | test ! -s conftest.err | |
15407 | } && test -s conftest$ac_exeext && { | |
15408 | test "$cross_compiling" = yes || | |
15409 | $as_test_x conftest$ac_exeext | |
15410 | }; then | |
15411 | ac_cv_lib_gif_EGifPutExtensionLast=yes | |
15412 | else | |
15413 | $as_echo "$as_me: failed program was:" >&5 | |
15414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15415 | ||
15416 | ac_cv_lib_gif_EGifPutExtensionLast=no | |
15417 | fi | |
15418 | ||
15419 | rm -rf conftest.dSYM | |
15420 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15421 | conftest$ac_exeext conftest.$ac_ext | |
15422 | LIBS=$ac_check_lib_save_LIBS | |
15423 | fi | |
15424 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 | |
15425 | $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } | |
15426 | if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then | |
15427 | HAVE_GIF=yes | |
15428 | else | |
15429 | try_libungif=yes | |
15430 | fi | |
15431 | ||
15432 | fi | |
15433 | ||
15434 | ||
15435 | ||
15436 | if test "$HAVE_GIF" = yes; then | |
15437 | ac_gif_lib_name="-lgif" | |
15438 | fi | |
15439 | ||
15440 | # If gif_lib.h but no libgif, try libungif. | |
15441 | if test x"$try_libungif" = xyes; then | |
15442 | { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 | |
15443 | $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } | |
15444 | if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | |
15445 | $as_echo_n "(cached) " >&6 | |
15446 | else | |
15447 | ac_check_lib_save_LIBS=$LIBS | |
15448 | LIBS="-lungif $LIBS" | |
15449 | cat >conftest.$ac_ext <<_ACEOF | |
15450 | /* confdefs.h. */ | |
15451 | _ACEOF | |
15452 | cat confdefs.h >>conftest.$ac_ext | |
15453 | cat >>conftest.$ac_ext <<_ACEOF | |
15454 | /* end confdefs.h. */ | |
15455 | ||
15456 | /* Override any GCC internal prototype to avoid an error. | |
15457 | Use char because int might match the return type of a GCC | |
15458 | builtin and then its argument prototype would still apply. */ | |
15459 | #ifdef __cplusplus | |
15460 | extern "C" | |
15461 | #endif | |
15462 | char EGifPutExtensionLast (); | |
15463 | int | |
15464 | main () | |
15465 | { | |
15466 | return EGifPutExtensionLast (); | |
15467 | ; | |
15468 | return 0; | |
15469 | } | |
15470 | _ACEOF | |
15471 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15472 | if { (ac_try="$ac_link" | |
15473 | case "(($ac_try" in | |
15474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15475 | *) ac_try_echo=$ac_try;; | |
15476 | esac | |
15477 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15478 | $as_echo "$ac_try_echo") >&5 | |
15479 | (eval "$ac_link") 2>conftest.er1 | |
15480 | ac_status=$? | |
15481 | grep -v '^ *+' conftest.er1 >conftest.err | |
15482 | rm -f conftest.er1 | |
15483 | cat conftest.err >&5 | |
15484 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15485 | (exit $ac_status); } && { | |
15486 | test -z "$ac_c_werror_flag" || | |
15487 | test ! -s conftest.err | |
15488 | } && test -s conftest$ac_exeext && { | |
15489 | test "$cross_compiling" = yes || | |
15490 | $as_test_x conftest$ac_exeext | |
15491 | }; then | |
15492 | ac_cv_lib_ungif_EGifPutExtensionLast=yes | |
15493 | else | |
15494 | $as_echo "$as_me: failed program was:" >&5 | |
15495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15496 | ||
15497 | ac_cv_lib_ungif_EGifPutExtensionLast=no | |
15498 | fi | |
15499 | ||
15500 | rm -rf conftest.dSYM | |
15501 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15502 | conftest$ac_exeext conftest.$ac_ext | |
15503 | LIBS=$ac_check_lib_save_LIBS | |
15504 | fi | |
15505 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 | |
15506 | $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } | |
15507 | if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | |
15508 | HAVE_GIF=yes | |
15509 | fi | |
15510 | ||
15511 | ||
15512 | if test "$HAVE_GIF" = yes; then | |
15513 | ||
15514 | cat >>confdefs.h <<\_ACEOF | |
15515 | #define LIBGIF -lungif | |
15516 | _ACEOF | |
15517 | ||
15518 | ac_gif_lib_name="-lungif" | |
15519 | fi | |
15520 | fi | |
15521 | ||
15522 | if test "${HAVE_GIF}" = "yes"; then | |
15523 | ||
15524 | cat >>confdefs.h <<\_ACEOF | |
15525 | #define HAVE_GIF 1 | |
15526 | _ACEOF | |
15527 | ||
15528 | fi | |
15529 | fi | |
15530 | ||
15531 | if test "${HAVE_X11}" = "yes"; then | |
15532 | MISSING="" | |
15533 | WITH_NO="" | |
15534 | test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" && | |
15535 | MISSING="libXpm" && WITH_NO="--with-xpm=no" | |
15536 | test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" && | |
15537 | MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no" | |
15538 | test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" && | |
15539 | MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no" | |
15540 | test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" && | |
15541 | MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" | |
15542 | test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && | |
15543 | MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" | |
15544 | ||
15545 | if test "X${MISSING}" != X; then | |
15546 | { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found: | |
15547 | $MISSING | |
15548 | Maybe some development libraries/packages are missing? | |
15549 | If you don't want to link with them give | |
15550 | $WITH_NO | |
15551 | as options to configure" >&5 | |
15552 | $as_echo "$as_me: error: The following required libraries were not found: | |
15553 | $MISSING | |
15554 | Maybe some development libraries/packages are missing? | |
15555 | If you don't want to link with them give | |
15556 | $WITH_NO | |
15557 | as options to configure" >&2;} | |
15558 | { (exit 1); exit 1; }; } | |
15559 | fi | |
15560 | fi | |
15561 | ||
15562 | ### Use -lgpm if available, unless `--with-gpm=no'. | |
15563 | HAVE_GPM=no | |
15564 | if test "${with_gpm}" != "no"; then | |
15565 | if test "${ac_cv_header_gpm_h+set}" = set; then | |
15566 | { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5 | |
15567 | $as_echo_n "checking for gpm.h... " >&6; } | |
15568 | if test "${ac_cv_header_gpm_h+set}" = set; then | |
15569 | $as_echo_n "(cached) " >&6 | |
15570 | fi | |
15571 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5 | |
15572 | $as_echo "$ac_cv_header_gpm_h" >&6; } | |
15573 | else | |
15574 | # Is the header compilable? | |
15575 | { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5 | |
15576 | $as_echo_n "checking gpm.h usability... " >&6; } | |
15577 | cat >conftest.$ac_ext <<_ACEOF | |
15578 | /* confdefs.h. */ | |
15579 | _ACEOF | |
15580 | cat confdefs.h >>conftest.$ac_ext | |
15581 | cat >>conftest.$ac_ext <<_ACEOF | |
15582 | /* end confdefs.h. */ | |
15583 | $ac_includes_default | |
15584 | #include <gpm.h> | |
15585 | _ACEOF | |
15586 | rm -f conftest.$ac_objext | |
15587 | if { (ac_try="$ac_compile" | |
15588 | case "(($ac_try" in | |
15589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15590 | *) ac_try_echo=$ac_try;; | |
15591 | esac | |
15592 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15593 | $as_echo "$ac_try_echo") >&5 | |
15594 | (eval "$ac_compile") 2>conftest.er1 | |
15595 | ac_status=$? | |
15596 | grep -v '^ *+' conftest.er1 >conftest.err | |
15597 | rm -f conftest.er1 | |
15598 | cat conftest.err >&5 | |
15599 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15600 | (exit $ac_status); } && { | |
15601 | test -z "$ac_c_werror_flag" || | |
15602 | test ! -s conftest.err | |
15603 | } && test -s conftest.$ac_objext; then | |
15604 | ac_header_compiler=yes | |
15605 | else | |
15606 | $as_echo "$as_me: failed program was:" >&5 | |
15607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15608 | ||
15609 | ac_header_compiler=no | |
15610 | fi | |
15611 | ||
15612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15613 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15614 | $as_echo "$ac_header_compiler" >&6; } | |
15615 | ||
15616 | # Is the header present? | |
15617 | { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5 | |
15618 | $as_echo_n "checking gpm.h presence... " >&6; } | |
15619 | cat >conftest.$ac_ext <<_ACEOF | |
15620 | /* confdefs.h. */ | |
15621 | _ACEOF | |
15622 | cat confdefs.h >>conftest.$ac_ext | |
15623 | cat >>conftest.$ac_ext <<_ACEOF | |
15624 | /* end confdefs.h. */ | |
15625 | #include <gpm.h> | |
15626 | _ACEOF | |
15627 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15628 | case "(($ac_try" in | |
15629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15630 | *) ac_try_echo=$ac_try;; | |
15631 | esac | |
15632 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15633 | $as_echo "$ac_try_echo") >&5 | |
15634 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15635 | ac_status=$? | |
15636 | grep -v '^ *+' conftest.er1 >conftest.err | |
15637 | rm -f conftest.er1 | |
15638 | cat conftest.err >&5 | |
15639 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15640 | (exit $ac_status); } >/dev/null && { | |
15641 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15642 | test ! -s conftest.err | |
15643 | }; then | |
15644 | ac_header_preproc=yes | |
15645 | else | |
15646 | $as_echo "$as_me: failed program was:" >&5 | |
15647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15648 | ||
15649 | ac_header_preproc=no | |
15650 | fi | |
15651 | ||
15652 | rm -f conftest.err conftest.$ac_ext | |
15653 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15654 | $as_echo "$ac_header_preproc" >&6; } | |
15655 | ||
15656 | # So? What about this header? | |
15657 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15658 | yes:no: ) | |
15659 | { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15660 | $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15661 | { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5 | |
15662 | $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;} | |
15663 | ac_header_preproc=yes | |
15664 | ;; | |
15665 | no:yes:* ) | |
15666 | { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5 | |
15667 | $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;} | |
15668 | { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5 | |
15669 | $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;} | |
15670 | { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5 | |
15671 | $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;} | |
15672 | { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15673 | $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
15674 | { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5 | |
15675 | $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;} | |
15676 | { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5 | |
15677 | $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;} | |
15678 | ||
15679 | ;; | |
15680 | esac | |
15681 | { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5 | |
15682 | $as_echo_n "checking for gpm.h... " >&6; } | |
15683 | if test "${ac_cv_header_gpm_h+set}" = set; then | |
15684 | $as_echo_n "(cached) " >&6 | |
15685 | else | |
15686 | ac_cv_header_gpm_h=$ac_header_preproc | |
15687 | fi | |
15688 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5 | |
15689 | $as_echo "$ac_cv_header_gpm_h" >&6; } | |
15690 | ||
15691 | fi | |
15692 | if test $ac_cv_header_gpm_h = yes; then | |
15693 | { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5 | |
15694 | $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } | |
15695 | if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then | |
15696 | $as_echo_n "(cached) " >&6 | |
15697 | else | |
15698 | ac_check_lib_save_LIBS=$LIBS | |
15699 | LIBS="-lgpm $LIBS" | |
15700 | cat >conftest.$ac_ext <<_ACEOF | |
15701 | /* confdefs.h. */ | |
15702 | _ACEOF | |
15703 | cat confdefs.h >>conftest.$ac_ext | |
15704 | cat >>conftest.$ac_ext <<_ACEOF | |
15705 | /* end confdefs.h. */ | |
15706 | ||
15707 | /* Override any GCC internal prototype to avoid an error. | |
15708 | Use char because int might match the return type of a GCC | |
15709 | builtin and then its argument prototype would still apply. */ | |
15710 | #ifdef __cplusplus | |
15711 | extern "C" | |
15712 | #endif | |
15713 | char Gpm_Open (); | |
15714 | int | |
15715 | main () | |
15716 | { | |
15717 | return Gpm_Open (); | |
15718 | ; | |
15719 | return 0; | |
15720 | } | |
15721 | _ACEOF | |
15722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15723 | if { (ac_try="$ac_link" | |
15724 | case "(($ac_try" in | |
15725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15726 | *) ac_try_echo=$ac_try;; | |
15727 | esac | |
15728 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15729 | $as_echo "$ac_try_echo") >&5 | |
15730 | (eval "$ac_link") 2>conftest.er1 | |
15731 | ac_status=$? | |
15732 | grep -v '^ *+' conftest.er1 >conftest.err | |
15733 | rm -f conftest.er1 | |
15734 | cat conftest.err >&5 | |
15735 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15736 | (exit $ac_status); } && { | |
15737 | test -z "$ac_c_werror_flag" || | |
15738 | test ! -s conftest.err | |
15739 | } && test -s conftest$ac_exeext && { | |
15740 | test "$cross_compiling" = yes || | |
15741 | $as_test_x conftest$ac_exeext | |
15742 | }; then | |
15743 | ac_cv_lib_gpm_Gpm_Open=yes | |
15744 | else | |
15745 | $as_echo "$as_me: failed program was:" >&5 | |
15746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15747 | ||
15748 | ac_cv_lib_gpm_Gpm_Open=no | |
15749 | fi | |
15750 | ||
15751 | rm -rf conftest.dSYM | |
15752 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15753 | conftest$ac_exeext conftest.$ac_ext | |
15754 | LIBS=$ac_check_lib_save_LIBS | |
15755 | fi | |
15756 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5 | |
15757 | $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } | |
15758 | if test $ac_cv_lib_gpm_Gpm_Open = yes; then | |
15759 | HAVE_GPM=yes | |
15760 | fi | |
15761 | ||
15762 | fi | |
15763 | ||
15764 | ||
15765 | fi | |
15766 | ||
15767 | if test "${HAVE_GPM}" = "yes"; then | |
15768 | ||
15769 | cat >>confdefs.h <<\_ACEOF | |
15770 | #define HAVE_GPM 1 | |
15771 | _ACEOF | |
15772 | ||
15773 | fi | |
15774 | ||
15775 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then | |
15776 | { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 | |
15777 | $as_echo_n "checking for malloc/malloc.h... " >&6; } | |
15778 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then | |
15779 | $as_echo_n "(cached) " >&6 | |
15780 | fi | |
15781 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 | |
15782 | $as_echo "$ac_cv_header_malloc_malloc_h" >&6; } | |
15783 | else | |
15784 | # Is the header compilable? | |
15785 | { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5 | |
15786 | $as_echo_n "checking malloc/malloc.h usability... " >&6; } | |
15787 | cat >conftest.$ac_ext <<_ACEOF | |
15788 | /* confdefs.h. */ | |
15789 | _ACEOF | |
15790 | cat confdefs.h >>conftest.$ac_ext | |
15791 | cat >>conftest.$ac_ext <<_ACEOF | |
15792 | /* end confdefs.h. */ | |
15793 | $ac_includes_default | |
15794 | #include <malloc/malloc.h> | |
15795 | _ACEOF | |
15796 | rm -f conftest.$ac_objext | |
15797 | if { (ac_try="$ac_compile" | |
15798 | case "(($ac_try" in | |
15799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15800 | *) ac_try_echo=$ac_try;; | |
15801 | esac | |
15802 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15803 | $as_echo "$ac_try_echo") >&5 | |
15804 | (eval "$ac_compile") 2>conftest.er1 | |
15805 | ac_status=$? | |
15806 | grep -v '^ *+' conftest.er1 >conftest.err | |
15807 | rm -f conftest.er1 | |
15808 | cat conftest.err >&5 | |
15809 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15810 | (exit $ac_status); } && { | |
15811 | test -z "$ac_c_werror_flag" || | |
15812 | test ! -s conftest.err | |
15813 | } && test -s conftest.$ac_objext; then | |
15814 | ac_header_compiler=yes | |
15815 | else | |
15816 | $as_echo "$as_me: failed program was:" >&5 | |
15817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15818 | ||
15819 | ac_header_compiler=no | |
15820 | fi | |
15821 | ||
15822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15823 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15824 | $as_echo "$ac_header_compiler" >&6; } | |
15825 | ||
15826 | # Is the header present? | |
15827 | { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5 | |
15828 | $as_echo_n "checking malloc/malloc.h presence... " >&6; } | |
15829 | cat >conftest.$ac_ext <<_ACEOF | |
15830 | /* confdefs.h. */ | |
15831 | _ACEOF | |
15832 | cat confdefs.h >>conftest.$ac_ext | |
15833 | cat >>conftest.$ac_ext <<_ACEOF | |
15834 | /* end confdefs.h. */ | |
15835 | #include <malloc/malloc.h> | |
15836 | _ACEOF | |
15837 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15838 | case "(($ac_try" in | |
15839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15840 | *) ac_try_echo=$ac_try;; | |
15841 | esac | |
15842 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15843 | $as_echo "$ac_try_echo") >&5 | |
15844 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15845 | ac_status=$? | |
15846 | grep -v '^ *+' conftest.er1 >conftest.err | |
15847 | rm -f conftest.er1 | |
15848 | cat conftest.err >&5 | |
15849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15850 | (exit $ac_status); } >/dev/null && { | |
15851 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15852 | test ! -s conftest.err | |
15853 | }; then | |
15854 | ac_header_preproc=yes | |
15855 | else | |
15856 | $as_echo "$as_me: failed program was:" >&5 | |
15857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15858 | ||
15859 | ac_header_preproc=no | |
15860 | fi | |
15861 | ||
15862 | rm -f conftest.err conftest.$ac_ext | |
15863 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15864 | $as_echo "$ac_header_preproc" >&6; } | |
15865 | ||
15866 | # So? What about this header? | |
15867 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15868 | yes:no: ) | |
15869 | { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15870 | $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15871 | { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5 | |
15872 | $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;} | |
15873 | ac_header_preproc=yes | |
15874 | ;; | |
15875 | no:yes:* ) | |
15876 | { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5 | |
15877 | $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;} | |
15878 | { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5 | |
15879 | $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;} | |
15880 | { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5 | |
15881 | $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;} | |
15882 | { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15883 | $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
15884 | { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5 | |
15885 | $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;} | |
15886 | { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5 | |
15887 | $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;} | |
15888 | ||
15889 | ;; | |
15890 | esac | |
15891 | { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 | |
15892 | $as_echo_n "checking for malloc/malloc.h... " >&6; } | |
15893 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then | |
15894 | $as_echo_n "(cached) " >&6 | |
15895 | else | |
15896 | ac_cv_header_malloc_malloc_h=$ac_header_preproc | |
15897 | fi | |
15898 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 | |
15899 | $as_echo "$ac_cv_header_malloc_malloc_h" >&6; } | |
15900 | ||
15901 | fi | |
15902 | if test $ac_cv_header_malloc_malloc_h = yes; then | |
15903 | ||
15904 | cat >>confdefs.h <<\_ACEOF | |
15905 | #define HAVE_MALLOC_MALLOC_H 1 | |
15906 | _ACEOF | |
15907 | ||
15908 | fi | |
15909 | ||
15910 | ||
15911 | ||
15912 | ### Use NeXTstep API to implement GUI. | |
15913 | if test "${HAVE_NS}" = "yes"; then | |
15914 | ||
15915 | cat >>confdefs.h <<\_ACEOF | |
15916 | #define HAVE_NS 1 | |
15917 | _ACEOF | |
15918 | ||
15919 | if test "${NS_IMPL_COCOA}" = "yes"; then | |
15920 | ||
15921 | cat >>confdefs.h <<\_ACEOF | |
15922 | #define NS_IMPL_COCOA 1 | |
15923 | _ACEOF | |
15924 | ||
15925 | GNU_OBJC_CFLAGS= | |
15926 | fi | |
15927 | if test "${NS_IMPL_GNUSTEP}" = "yes"; then | |
15928 | ||
15929 | cat >>confdefs.h <<\_ACEOF | |
15930 | #define NS_IMPL_GNUSTEP 1 | |
15931 | _ACEOF | |
15932 | ||
15933 | GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" | |
15934 | fi | |
15935 | if test "${NS_HAVE_NSINTEGER}" = "yes"; then | |
15936 | ||
15937 | cat >>confdefs.h <<\_ACEOF | |
15938 | #define NS_HAVE_NSINTEGER 1 | |
15939 | _ACEOF | |
15940 | ||
15941 | fi | |
15942 | # We also have mouse menus. | |
15943 | HAVE_MENUS=yes | |
15944 | OTHER_FILES=ns-app | |
15945 | fi | |
15946 | ||
15947 | ||
15948 | ### Use session management (-lSM -lICE) if available | |
15949 | HAVE_X_SM=no | |
15950 | if test "${HAVE_X11}" = "yes"; then | |
15951 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
15952 | { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
15953 | $as_echo_n "checking for X11/SM/SMlib.h... " >&6; } | |
15954 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
15955 | $as_echo_n "(cached) " >&6 | |
15956 | fi | |
15957 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 | |
15958 | $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; } | |
15959 | else | |
15960 | # Is the header compilable? | |
15961 | { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 | |
15962 | $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; } | |
15963 | cat >conftest.$ac_ext <<_ACEOF | |
15964 | /* confdefs.h. */ | |
15965 | _ACEOF | |
15966 | cat confdefs.h >>conftest.$ac_ext | |
15967 | cat >>conftest.$ac_ext <<_ACEOF | |
15968 | /* end confdefs.h. */ | |
15969 | $ac_includes_default | |
15970 | #include <X11/SM/SMlib.h> | |
15971 | _ACEOF | |
15972 | rm -f conftest.$ac_objext | |
15973 | if { (ac_try="$ac_compile" | |
15974 | case "(($ac_try" in | |
15975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15976 | *) ac_try_echo=$ac_try;; | |
15977 | esac | |
15978 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15979 | $as_echo "$ac_try_echo") >&5 | |
15980 | (eval "$ac_compile") 2>conftest.er1 | |
15981 | ac_status=$? | |
15982 | grep -v '^ *+' conftest.er1 >conftest.err | |
15983 | rm -f conftest.er1 | |
15984 | cat conftest.err >&5 | |
15985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15986 | (exit $ac_status); } && { | |
15987 | test -z "$ac_c_werror_flag" || | |
15988 | test ! -s conftest.err | |
15989 | } && test -s conftest.$ac_objext; then | |
15990 | ac_header_compiler=yes | |
15991 | else | |
15992 | $as_echo "$as_me: failed program was:" >&5 | |
15993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15994 | ||
15995 | ac_header_compiler=no | |
15996 | fi | |
15997 | ||
15998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15999 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16000 | $as_echo "$ac_header_compiler" >&6; } | |
16001 | ||
16002 | # Is the header present? | |
16003 | { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 | |
16004 | $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; } | |
16005 | cat >conftest.$ac_ext <<_ACEOF | |
16006 | /* confdefs.h. */ | |
16007 | _ACEOF | |
16008 | cat confdefs.h >>conftest.$ac_ext | |
16009 | cat >>conftest.$ac_ext <<_ACEOF | |
16010 | /* end confdefs.h. */ | |
16011 | #include <X11/SM/SMlib.h> | |
16012 | _ACEOF | |
16013 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
16014 | case "(($ac_try" in | |
16015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16016 | *) ac_try_echo=$ac_try;; | |
16017 | esac | |
16018 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16019 | $as_echo "$ac_try_echo") >&5 | |
16020 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
16021 | ac_status=$? | |
16022 | grep -v '^ *+' conftest.er1 >conftest.err | |
16023 | rm -f conftest.er1 | |
16024 | cat conftest.err >&5 | |
16025 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16026 | (exit $ac_status); } >/dev/null && { | |
16027 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16028 | test ! -s conftest.err | |
16029 | }; then | |
16030 | ac_header_preproc=yes | |
16031 | else | |
16032 | $as_echo "$as_me: failed program was:" >&5 | |
16033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16034 | ||
16035 | ac_header_preproc=no | |
16036 | fi | |
16037 | ||
16038 | rm -f conftest.err conftest.$ac_ext | |
16039 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16040 | $as_echo "$ac_header_preproc" >&6; } | |
16041 | ||
16042 | # So? What about this header? | |
16043 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16044 | yes:no: ) | |
16045 | { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16046 | $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16047 | { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5 | |
16048 | $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;} | |
16049 | ac_header_preproc=yes | |
16050 | ;; | |
16051 | no:yes:* ) | |
16052 | { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 | |
16053 | $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} | |
16054 | { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 | |
16055 | $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} | |
16056 | { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5 | |
16057 | $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;} | |
16058 | { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
16059 | $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
16060 | { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 | |
16061 | $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} | |
16062 | { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5 | |
16063 | $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;} | |
16064 | ||
16065 | ;; | |
16066 | esac | |
16067 | { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
16068 | $as_echo_n "checking for X11/SM/SMlib.h... " >&6; } | |
16069 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
16070 | $as_echo_n "(cached) " >&6 | |
16071 | else | |
16072 | ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc | |
16073 | fi | |
16074 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 | |
16075 | $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; } | |
16076 | ||
16077 | fi | |
16078 | if test $ac_cv_header_X11_SM_SMlib_h = yes; then | |
16079 | { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 | |
16080 | $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } | |
16081 | if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then | |
16082 | $as_echo_n "(cached) " >&6 | |
16083 | else | |
16084 | ac_check_lib_save_LIBS=$LIBS | |
16085 | LIBS="-lSM -lICE $LIBS" | |
16086 | cat >conftest.$ac_ext <<_ACEOF | |
16087 | /* confdefs.h. */ | |
16088 | _ACEOF | |
16089 | cat confdefs.h >>conftest.$ac_ext | |
16090 | cat >>conftest.$ac_ext <<_ACEOF | |
16091 | /* end confdefs.h. */ | |
16092 | ||
16093 | /* Override any GCC internal prototype to avoid an error. | |
16094 | Use char because int might match the return type of a GCC | |
16095 | builtin and then its argument prototype would still apply. */ | |
16096 | #ifdef __cplusplus | |
16097 | extern "C" | |
16098 | #endif | |
16099 | char SmcOpenConnection (); | |
16100 | int | |
16101 | main () | |
16102 | { | |
16103 | return SmcOpenConnection (); | |
16104 | ; | |
16105 | return 0; | |
16106 | } | |
16107 | _ACEOF | |
16108 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16109 | if { (ac_try="$ac_link" | |
16110 | case "(($ac_try" in | |
16111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16112 | *) ac_try_echo=$ac_try;; | |
16113 | esac | |
16114 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16115 | $as_echo "$ac_try_echo") >&5 | |
16116 | (eval "$ac_link") 2>conftest.er1 | |
16117 | ac_status=$? | |
16118 | grep -v '^ *+' conftest.er1 >conftest.err | |
16119 | rm -f conftest.er1 | |
16120 | cat conftest.err >&5 | |
16121 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16122 | (exit $ac_status); } && { | |
16123 | test -z "$ac_c_werror_flag" || | |
16124 | test ! -s conftest.err | |
16125 | } && test -s conftest$ac_exeext && { | |
16126 | test "$cross_compiling" = yes || | |
16127 | $as_test_x conftest$ac_exeext | |
16128 | }; then | |
16129 | ac_cv_lib_SM_SmcOpenConnection=yes | |
16130 | else | |
16131 | $as_echo "$as_me: failed program was:" >&5 | |
16132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16133 | ||
16134 | ac_cv_lib_SM_SmcOpenConnection=no | |
16135 | fi | |
16136 | ||
16137 | rm -rf conftest.dSYM | |
16138 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16139 | conftest$ac_exeext conftest.$ac_ext | |
16140 | LIBS=$ac_check_lib_save_LIBS | |
16141 | fi | |
16142 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 | |
16143 | $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } | |
16144 | if test $ac_cv_lib_SM_SmcOpenConnection = yes; then | |
16145 | HAVE_X_SM=yes | |
16146 | fi | |
16147 | ||
16148 | fi | |
16149 | ||
16150 | ||
16151 | ||
16152 | if test "${HAVE_X_SM}" = "yes"; then | |
16153 | ||
16154 | cat >>confdefs.h <<\_ACEOF | |
16155 | #define HAVE_X_SM 1 | |
16156 | _ACEOF | |
16157 | ||
16158 | case "$LIBS" in | |
16159 | *-lSM*) ;; | |
16160 | *) LIBS="-lSM -lICE $LIBS" ;; | |
16161 | esac | |
16162 | fi | |
16163 | fi | |
16164 | ||
16165 | # If netdb.h doesn't declare h_errno, we must declare it by hand. | |
16166 | { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 | |
16167 | $as_echo_n "checking whether netdb declares h_errno... " >&6; } | |
16168 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | |
16169 | $as_echo_n "(cached) " >&6 | |
16170 | else | |
16171 | cat >conftest.$ac_ext <<_ACEOF | |
16172 | /* confdefs.h. */ | |
16173 | _ACEOF | |
16174 | cat confdefs.h >>conftest.$ac_ext | |
16175 | cat >>conftest.$ac_ext <<_ACEOF | |
16176 | /* end confdefs.h. */ | |
16177 | #include <netdb.h> | |
16178 | int | |
16179 | main () | |
16180 | { | |
16181 | return h_errno; | |
16182 | ; | |
16183 | return 0; | |
16184 | } | |
16185 | _ACEOF | |
16186 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16187 | if { (ac_try="$ac_link" | |
16188 | case "(($ac_try" in | |
16189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16190 | *) ac_try_echo=$ac_try;; | |
16191 | esac | |
16192 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16193 | $as_echo "$ac_try_echo") >&5 | |
16194 | (eval "$ac_link") 2>conftest.er1 | |
16195 | ac_status=$? | |
16196 | grep -v '^ *+' conftest.er1 >conftest.err | |
16197 | rm -f conftest.er1 | |
16198 | cat conftest.err >&5 | |
16199 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16200 | (exit $ac_status); } && { | |
16201 | test -z "$ac_c_werror_flag" || | |
16202 | test ! -s conftest.err | |
16203 | } && test -s conftest$ac_exeext && { | |
16204 | test "$cross_compiling" = yes || | |
16205 | $as_test_x conftest$ac_exeext | |
16206 | }; then | |
16207 | emacs_cv_netdb_declares_h_errno=yes | |
16208 | else | |
16209 | $as_echo "$as_me: failed program was:" >&5 | |
16210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16211 | ||
16212 | emacs_cv_netdb_declares_h_errno=no | |
16213 | fi | |
16214 | ||
16215 | rm -rf conftest.dSYM | |
16216 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16217 | conftest$ac_exeext conftest.$ac_ext | |
16218 | fi | |
16219 | { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 | |
16220 | $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } | |
16221 | if test $emacs_cv_netdb_declares_h_errno = yes; then | |
16222 | ||
16223 | cat >>confdefs.h <<\_ACEOF | |
16224 | #define HAVE_H_ERRNO 1 | |
16225 | _ACEOF | |
16226 | ||
16227 | fi | |
16228 | ||
16229 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
16230 | # for constant arguments. Useless! | |
16231 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
16232 | $as_echo_n "checking for working alloca.h... " >&6; } | |
16233 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
16234 | $as_echo_n "(cached) " >&6 | |
16235 | else | |
16236 | cat >conftest.$ac_ext <<_ACEOF | |
16237 | /* confdefs.h. */ | |
16238 | _ACEOF | |
16239 | cat confdefs.h >>conftest.$ac_ext | |
16240 | cat >>conftest.$ac_ext <<_ACEOF | |
16241 | /* end confdefs.h. */ | |
16242 | #include <alloca.h> | |
16243 | int | |
16244 | main () | |
16245 | { | |
16246 | char *p = (char *) alloca (2 * sizeof (int)); | |
16247 | if (p) return 0; | |
16248 | ; | |
16249 | return 0; | |
16250 | } | |
16251 | _ACEOF | |
16252 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16253 | if { (ac_try="$ac_link" | |
16254 | case "(($ac_try" in | |
16255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16256 | *) ac_try_echo=$ac_try;; | |
16257 | esac | |
16258 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16259 | $as_echo "$ac_try_echo") >&5 | |
16260 | (eval "$ac_link") 2>conftest.er1 | |
16261 | ac_status=$? | |
16262 | grep -v '^ *+' conftest.er1 >conftest.err | |
16263 | rm -f conftest.er1 | |
16264 | cat conftest.err >&5 | |
16265 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16266 | (exit $ac_status); } && { | |
16267 | test -z "$ac_c_werror_flag" || | |
16268 | test ! -s conftest.err | |
16269 | } && test -s conftest$ac_exeext && { | |
16270 | test "$cross_compiling" = yes || | |
16271 | $as_test_x conftest$ac_exeext | |
16272 | }; then | |
16273 | ac_cv_working_alloca_h=yes | |
16274 | else | |
16275 | $as_echo "$as_me: failed program was:" >&5 | |
16276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16277 | ||
16278 | ac_cv_working_alloca_h=no | |
16279 | fi | |
16280 | ||
16281 | rm -rf conftest.dSYM | |
16282 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16283 | conftest$ac_exeext conftest.$ac_ext | |
16284 | fi | |
16285 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
16286 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
16287 | if test $ac_cv_working_alloca_h = yes; then | |
16288 | ||
16289 | cat >>confdefs.h <<\_ACEOF | |
16290 | #define HAVE_ALLOCA_H 1 | |
16291 | _ACEOF | |
16292 | ||
16293 | fi | |
16294 | ||
16295 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 | |
16296 | $as_echo_n "checking for alloca... " >&6; } | |
16297 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
16298 | $as_echo_n "(cached) " >&6 | |
16299 | else | |
16300 | cat >conftest.$ac_ext <<_ACEOF | |
16301 | /* confdefs.h. */ | |
16302 | _ACEOF | |
16303 | cat confdefs.h >>conftest.$ac_ext | |
16304 | cat >>conftest.$ac_ext <<_ACEOF | |
16305 | /* end confdefs.h. */ | |
16306 | #ifdef __GNUC__ | |
16307 | # define alloca __builtin_alloca | |
16308 | #else | |
16309 | # ifdef _MSC_VER | |
16310 | # include <malloc.h> | |
16311 | # define alloca _alloca | |
16312 | # else | |
16313 | # ifdef HAVE_ALLOCA_H | |
16314 | # include <alloca.h> | |
16315 | # else | |
16316 | # ifdef _AIX | |
16317 | #pragma alloca | |
16318 | # else | |
16319 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
16320 | char *alloca (); | |
16321 | # endif | |
16322 | # endif | |
16323 | # endif | |
16324 | # endif | |
16325 | #endif | |
16326 | ||
16327 | int | |
16328 | main () | |
16329 | { | |
16330 | char *p = (char *) alloca (1); | |
16331 | if (p) return 0; | |
16332 | ; | |
16333 | return 0; | |
16334 | } | |
16335 | _ACEOF | |
16336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16337 | if { (ac_try="$ac_link" | |
16338 | case "(($ac_try" in | |
16339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16340 | *) ac_try_echo=$ac_try;; | |
16341 | esac | |
16342 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16343 | $as_echo "$ac_try_echo") >&5 | |
16344 | (eval "$ac_link") 2>conftest.er1 | |
16345 | ac_status=$? | |
16346 | grep -v '^ *+' conftest.er1 >conftest.err | |
16347 | rm -f conftest.er1 | |
16348 | cat conftest.err >&5 | |
16349 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16350 | (exit $ac_status); } && { | |
16351 | test -z "$ac_c_werror_flag" || | |
16352 | test ! -s conftest.err | |
16353 | } && test -s conftest$ac_exeext && { | |
16354 | test "$cross_compiling" = yes || | |
16355 | $as_test_x conftest$ac_exeext | |
16356 | }; then | |
16357 | ac_cv_func_alloca_works=yes | |
16358 | else | |
16359 | $as_echo "$as_me: failed program was:" >&5 | |
16360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16361 | ||
16362 | ac_cv_func_alloca_works=no | |
16363 | fi | |
16364 | ||
16365 | rm -rf conftest.dSYM | |
16366 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16367 | conftest$ac_exeext conftest.$ac_ext | |
16368 | fi | |
16369 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
16370 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
16371 | ||
16372 | if test $ac_cv_func_alloca_works = yes; then | |
16373 | ||
16374 | cat >>confdefs.h <<\_ACEOF | |
16375 | #define HAVE_ALLOCA 1 | |
16376 | _ACEOF | |
16377 | ||
16378 | else | |
16379 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
16380 | # that cause trouble. Some versions do not even contain alloca or | |
16381 | # contain a buggy version. If you still want to use their alloca, | |
16382 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
16383 | ||
16384 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
16385 | ||
16386 | cat >>confdefs.h <<\_ACEOF | |
16387 | #define C_ALLOCA 1 | |
16388 | _ACEOF | |
16389 | ||
16390 | ||
16391 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
16392 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
16393 | if test "${ac_cv_os_cray+set}" = set; then | |
16394 | $as_echo_n "(cached) " >&6 | |
16395 | else | |
16396 | cat >conftest.$ac_ext <<_ACEOF | |
16397 | /* confdefs.h. */ | |
16398 | _ACEOF | |
16399 | cat confdefs.h >>conftest.$ac_ext | |
16400 | cat >>conftest.$ac_ext <<_ACEOF | |
16401 | /* end confdefs.h. */ | |
16402 | #if defined CRAY && ! defined CRAY2 | |
16403 | webecray | |
16404 | #else | |
16405 | wenotbecray | |
16406 | #endif | |
16407 | ||
16408 | _ACEOF | |
16409 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16410 | $EGREP "webecray" >/dev/null 2>&1; then | |
16411 | ac_cv_os_cray=yes | |
16412 | else | |
16413 | ac_cv_os_cray=no | |
16414 | fi | |
16415 | rm -f conftest* | |
16416 | ||
16417 | fi | |
16418 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | |
16419 | $as_echo "$ac_cv_os_cray" >&6; } | |
16420 | if test $ac_cv_os_cray = yes; then | |
16421 | for ac_func in _getb67 GETB67 getb67; do | |
16422 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16423 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16424 | $as_echo_n "checking for $ac_func... " >&6; } | |
16425 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
16426 | $as_echo_n "(cached) " >&6 | |
16427 | else | |
16428 | cat >conftest.$ac_ext <<_ACEOF | |
16429 | /* confdefs.h. */ | |
16430 | _ACEOF | |
16431 | cat confdefs.h >>conftest.$ac_ext | |
16432 | cat >>conftest.$ac_ext <<_ACEOF | |
16433 | /* end confdefs.h. */ | |
16434 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16435 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16436 | #define $ac_func innocuous_$ac_func | |
16437 | ||
16438 | /* System header to define __stub macros and hopefully few prototypes, | |
16439 | which can conflict with char $ac_func (); below. | |
16440 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16441 | <limits.h> exists even on freestanding compilers. */ | |
16442 | ||
16443 | #ifdef __STDC__ | |
16444 | # include <limits.h> | |
16445 | #else | |
16446 | # include <assert.h> | |
16447 | #endif | |
16448 | ||
16449 | #undef $ac_func | |
16450 | ||
16451 | /* Override any GCC internal prototype to avoid an error. | |
16452 | Use char because int might match the return type of a GCC | |
16453 | builtin and then its argument prototype would still apply. */ | |
16454 | #ifdef __cplusplus | |
16455 | extern "C" | |
16456 | #endif | |
16457 | char $ac_func (); | |
16458 | /* The GNU C library defines this for functions which it implements | |
16459 | to always fail with ENOSYS. Some functions are actually named | |
16460 | something starting with __ and the normal name is an alias. */ | |
16461 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
16462 | choke me | |
16463 | #endif | |
16464 | ||
16465 | int | |
16466 | main () | |
16467 | { | |
16468 | return $ac_func (); | |
16469 | ; | |
16470 | return 0; | |
16471 | } | |
16472 | _ACEOF | |
16473 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16474 | if { (ac_try="$ac_link" | |
16475 | case "(($ac_try" in | |
16476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16477 | *) ac_try_echo=$ac_try;; | |
16478 | esac | |
16479 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16480 | $as_echo "$ac_try_echo") >&5 | |
16481 | (eval "$ac_link") 2>conftest.er1 | |
16482 | ac_status=$? | |
16483 | grep -v '^ *+' conftest.er1 >conftest.err | |
16484 | rm -f conftest.er1 | |
16485 | cat conftest.err >&5 | |
16486 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16487 | (exit $ac_status); } && { | |
16488 | test -z "$ac_c_werror_flag" || | |
16489 | test ! -s conftest.err | |
16490 | } && test -s conftest$ac_exeext && { | |
16491 | test "$cross_compiling" = yes || | |
16492 | $as_test_x conftest$ac_exeext | |
16493 | }; then | |
16494 | eval "$as_ac_var=yes" | |
16495 | else | |
16496 | $as_echo "$as_me: failed program was:" >&5 | |
16497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16498 | ||
16499 | eval "$as_ac_var=no" | |
16500 | fi | |
16501 | ||
16502 | rm -rf conftest.dSYM | |
16503 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16504 | conftest$ac_exeext conftest.$ac_ext | |
16505 | fi | |
16506 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
16507 | $as_echo "$as_val"'` | |
16508 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16509 | $as_echo "$ac_res" >&6; } | |
16510 | if test `eval 'as_val=${'$as_ac_var'} | |
16511 | $as_echo "$as_val"'` = yes; then | |
16512 | ||
16513 | cat >>confdefs.h <<_ACEOF | |
16514 | #define CRAY_STACKSEG_END $ac_func | |
16515 | _ACEOF | |
16516 | ||
16517 | break | |
16518 | fi | |
16519 | ||
16520 | done | |
16521 | fi | |
16522 | ||
16523 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
16524 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
16525 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
16526 | $as_echo_n "(cached) " >&6 | |
16527 | else | |
16528 | if test "$cross_compiling" = yes; then | |
16529 | ac_cv_c_stack_direction=0 | |
16530 | else | |
16531 | cat >conftest.$ac_ext <<_ACEOF | |
16532 | /* confdefs.h. */ | |
16533 | _ACEOF | |
16534 | cat confdefs.h >>conftest.$ac_ext | |
16535 | cat >>conftest.$ac_ext <<_ACEOF | |
16536 | /* end confdefs.h. */ | |
16537 | $ac_includes_default | |
16538 | int | |
16539 | find_stack_direction () | |
16540 | { | |
16541 | static char *addr = 0; | |
16542 | auto char dummy; | |
16543 | if (addr == 0) | |
16544 | { | |
16545 | addr = &dummy; | |
16546 | return find_stack_direction (); | |
16547 | } | |
16548 | else | |
16549 | return (&dummy > addr) ? 1 : -1; | |
16550 | } | |
16551 | ||
16552 | int | |
16553 | main () | |
16554 | { | |
16555 | return find_stack_direction () < 0; | |
16556 | } | |
16557 | _ACEOF | |
16558 | rm -f conftest$ac_exeext | |
16559 | if { (ac_try="$ac_link" | |
16560 | case "(($ac_try" in | |
16561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16562 | *) ac_try_echo=$ac_try;; | |
16563 | esac | |
16564 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16565 | $as_echo "$ac_try_echo") >&5 | |
16566 | (eval "$ac_link") 2>&5 | |
16567 | ac_status=$? | |
16568 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16569 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16570 | { (case "(($ac_try" in | |
16571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16572 | *) ac_try_echo=$ac_try;; | |
16573 | esac | |
16574 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16575 | $as_echo "$ac_try_echo") >&5 | |
16576 | (eval "$ac_try") 2>&5 | |
16577 | ac_status=$? | |
16578 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16579 | (exit $ac_status); }; }; then | |
16580 | ac_cv_c_stack_direction=1 | |
16581 | else | |
16582 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
16583 | $as_echo "$as_me: failed program was:" >&5 | |
16584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16585 | ||
16586 | ( exit $ac_status ) | |
16587 | ac_cv_c_stack_direction=-1 | |
16588 | fi | |
16589 | rm -rf conftest.dSYM | |
16590 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16591 | fi | |
16592 | ||
16593 | ||
16594 | fi | |
16595 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
16596 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
16597 | ||
16598 | cat >>confdefs.h <<_ACEOF | |
16599 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
16600 | _ACEOF | |
16601 | ||
16602 | ||
16603 | fi | |
16604 | ||
16605 | ||
16606 | if test x"$ac_cv_func_alloca_works" != xyes; then | |
16607 | { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5 | |
16608 | $as_echo "$as_me: error: a system implementation of alloca is required " >&2;} | |
16609 | { (exit 1); exit 1; }; } | |
16610 | fi | |
16611 | ||
16612 | # fmod, logb, and frexp are found in -lm on most systems. | |
16613 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
16614 | ||
16615 | { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 | |
16616 | $as_echo_n "checking for sqrt in -lm... " >&6; } | |
16617 | if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
e9a63f04 | 16618 | $as_echo_n "(cached) " >&6 |
98418dba | 16619 | else |
bf89cb4d GM |
16620 | ac_check_lib_save_LIBS=$LIBS |
16621 | LIBS="-lm $LIBS" | |
16622 | cat >conftest.$ac_ext <<_ACEOF | |
16623 | /* confdefs.h. */ | |
16624 | _ACEOF | |
16625 | cat confdefs.h >>conftest.$ac_ext | |
16626 | cat >>conftest.$ac_ext <<_ACEOF | |
16627 | /* end confdefs.h. */ | |
16628 | ||
16629 | /* Override any GCC internal prototype to avoid an error. | |
16630 | Use char because int might match the return type of a GCC | |
16631 | builtin and then its argument prototype would still apply. */ | |
16632 | #ifdef __cplusplus | |
16633 | extern "C" | |
16634 | #endif | |
16635 | char sqrt (); | |
16636 | int | |
16637 | main () | |
16638 | { | |
16639 | return sqrt (); | |
16640 | ; | |
16641 | return 0; | |
16642 | } | |
16643 | _ACEOF | |
16644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16645 | if { (ac_try="$ac_link" | |
16646 | case "(($ac_try" in | |
16647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16648 | *) ac_try_echo=$ac_try;; | |
16649 | esac | |
16650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16651 | $as_echo "$ac_try_echo") >&5 | |
16652 | (eval "$ac_link") 2>conftest.er1 | |
16653 | ac_status=$? | |
16654 | grep -v '^ *+' conftest.er1 >conftest.err | |
16655 | rm -f conftest.er1 | |
16656 | cat conftest.err >&5 | |
16657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16658 | (exit $ac_status); } && { | |
16659 | test -z "$ac_c_werror_flag" || | |
16660 | test ! -s conftest.err | |
16661 | } && test -s conftest$ac_exeext && { | |
16662 | test "$cross_compiling" = yes || | |
16663 | $as_test_x conftest$ac_exeext | |
16664 | }; then | |
16665 | ac_cv_lib_m_sqrt=yes | |
16666 | else | |
16667 | $as_echo "$as_me: failed program was:" >&5 | |
16668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16669 | ||
16670 | ac_cv_lib_m_sqrt=no | |
16671 | fi | |
16672 | ||
16673 | rm -rf conftest.dSYM | |
16674 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16675 | conftest$ac_exeext conftest.$ac_ext | |
16676 | LIBS=$ac_check_lib_save_LIBS | |
16677 | fi | |
16678 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 | |
16679 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } | |
16680 | if test $ac_cv_lib_m_sqrt = yes; then | |
16681 | cat >>confdefs.h <<_ACEOF | |
16682 | #define HAVE_LIBM 1 | |
16683 | _ACEOF | |
16684 | ||
16685 | LIBS="-lm $LIBS" | |
16686 | ||
16687 | fi | |
16688 | ||
16689 | ||
16690 | # Check for mail-locking functions in a "mail" library. Probably this should | |
16691 | # have the same check as for liblockfile below. | |
16692 | ||
16693 | { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 | |
16694 | $as_echo_n "checking for maillock in -lmail... " >&6; } | |
16695 | if test "${ac_cv_lib_mail_maillock+set}" = set; then | |
16696 | $as_echo_n "(cached) " >&6 | |
0ca10bb7 | 16697 | else |
bf89cb4d GM |
16698 | ac_check_lib_save_LIBS=$LIBS |
16699 | LIBS="-lmail $LIBS" | |
16700 | cat >conftest.$ac_ext <<_ACEOF | |
16701 | /* confdefs.h. */ | |
16702 | _ACEOF | |
16703 | cat confdefs.h >>conftest.$ac_ext | |
16704 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 16705 | /* end confdefs.h. */ |
98418dba | 16706 | |
bf89cb4d GM |
16707 | /* Override any GCC internal prototype to avoid an error. |
16708 | Use char because int might match the return type of a GCC | |
16709 | builtin and then its argument prototype would still apply. */ | |
16710 | #ifdef __cplusplus | |
16711 | extern "C" | |
16712 | #endif | |
16713 | char maillock (); | |
16714 | int | |
16715 | main () | |
16716 | { | |
16717 | return maillock (); | |
16718 | ; | |
16719 | return 0; | |
16720 | } | |
16721 | _ACEOF | |
16722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16723 | if { (ac_try="$ac_link" | |
16724 | case "(($ac_try" in | |
16725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16726 | *) ac_try_echo=$ac_try;; | |
16727 | esac | |
16728 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16729 | $as_echo "$ac_try_echo") >&5 | |
16730 | (eval "$ac_link") 2>conftest.er1 | |
16731 | ac_status=$? | |
16732 | grep -v '^ *+' conftest.er1 >conftest.err | |
16733 | rm -f conftest.er1 | |
16734 | cat conftest.err >&5 | |
16735 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16736 | (exit $ac_status); } && { | |
16737 | test -z "$ac_c_werror_flag" || | |
16738 | test ! -s conftest.err | |
16739 | } && test -s conftest$ac_exeext && { | |
16740 | test "$cross_compiling" = yes || | |
16741 | $as_test_x conftest$ac_exeext | |
16742 | }; then | |
16743 | ac_cv_lib_mail_maillock=yes | |
16744 | else | |
16745 | $as_echo "$as_me: failed program was:" >&5 | |
16746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
98418dba | 16747 | |
bf89cb4d GM |
16748 | ac_cv_lib_mail_maillock=no |
16749 | fi | |
edfaf76d | 16750 | |
bf89cb4d GM |
16751 | rm -rf conftest.dSYM |
16752 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16753 | conftest$ac_exeext conftest.$ac_ext | |
16754 | LIBS=$ac_check_lib_save_LIBS | |
16755 | fi | |
16756 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 | |
16757 | $as_echo "$ac_cv_lib_mail_maillock" >&6; } | |
16758 | if test $ac_cv_lib_mail_maillock = yes; then | |
16759 | cat >>confdefs.h <<_ACEOF | |
16760 | #define HAVE_LIBMAIL 1 | |
16761 | _ACEOF | |
ba4481b5 | 16762 | |
bf89cb4d GM |
16763 | LIBS="-lmail $LIBS" |
16764 | ||
16765 | fi | |
16766 | ||
16767 | ||
16768 | { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 | |
16769 | $as_echo_n "checking for maillock in -llockfile... " >&6; } | |
16770 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | |
16771 | $as_echo_n "(cached) " >&6 | |
16772 | else | |
16773 | ac_check_lib_save_LIBS=$LIBS | |
16774 | LIBS="-llockfile $LIBS" | |
16775 | cat >conftest.$ac_ext <<_ACEOF | |
16776 | /* confdefs.h. */ | |
16777 | _ACEOF | |
16778 | cat confdefs.h >>conftest.$ac_ext | |
16779 | cat >>conftest.$ac_ext <<_ACEOF | |
16780 | /* end confdefs.h. */ | |
16781 | ||
16782 | /* Override any GCC internal prototype to avoid an error. | |
16783 | Use char because int might match the return type of a GCC | |
16784 | builtin and then its argument prototype would still apply. */ | |
16785 | #ifdef __cplusplus | |
16786 | extern "C" | |
98418dba | 16787 | #endif |
bf89cb4d GM |
16788 | char maillock (); |
16789 | int | |
16790 | main () | |
16791 | { | |
16792 | return maillock (); | |
16793 | ; | |
16794 | return 0; | |
16795 | } | |
16796 | _ACEOF | |
16797 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16798 | if { (ac_try="$ac_link" | |
16799 | case "(($ac_try" in | |
16800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16801 | *) ac_try_echo=$ac_try;; | |
16802 | esac | |
16803 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16804 | $as_echo "$ac_try_echo") >&5 | |
16805 | (eval "$ac_link") 2>conftest.er1 | |
16806 | ac_status=$? | |
16807 | grep -v '^ *+' conftest.er1 >conftest.err | |
16808 | rm -f conftest.er1 | |
16809 | cat conftest.err >&5 | |
16810 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16811 | (exit $ac_status); } && { | |
16812 | test -z "$ac_c_werror_flag" || | |
16813 | test ! -s conftest.err | |
16814 | } && test -s conftest$ac_exeext && { | |
16815 | test "$cross_compiling" = yes || | |
16816 | $as_test_x conftest$ac_exeext | |
16817 | }; then | |
16818 | ac_cv_lib_lockfile_maillock=yes | |
16819 | else | |
16820 | $as_echo "$as_me: failed program was:" >&5 | |
16821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
df645f7c | 16822 | |
bf89cb4d GM |
16823 | ac_cv_lib_lockfile_maillock=no |
16824 | fi | |
16825 | ||
16826 | rm -rf conftest.dSYM | |
16827 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16828 | conftest$ac_exeext conftest.$ac_ext | |
16829 | LIBS=$ac_check_lib_save_LIBS | |
16830 | fi | |
16831 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 | |
16832 | $as_echo "$ac_cv_lib_lockfile_maillock" >&6; } | |
16833 | if test $ac_cv_lib_lockfile_maillock = yes; then | |
16834 | cat >>confdefs.h <<_ACEOF | |
16835 | #define HAVE_LIBLOCKFILE 1 | |
16836 | _ACEOF | |
16837 | ||
16838 | LIBS="-llockfile $LIBS" | |
16839 | ||
16840 | fi | |
16841 | ||
16842 | # If we have the shared liblockfile, assume we must use it for mail | |
16843 | # locking (e.g. Debian). If we couldn't link against liblockfile | |
16844 | # (no liblockfile.a installed), ensure that we don't need to. | |
16845 | if test "$ac_cv_lib_lockfile_maillock" = no; then | |
16846 | # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
16847 | set dummy liblockfile.so; ac_word=$2 | |
16848 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
16849 | $as_echo_n "checking for $ac_word... " >&6; } | |
16850 | if test "${ac_cv_prog_liblockfile+set}" = set; then | |
16851 | $as_echo_n "(cached) " >&6 | |
16852 | else | |
16853 | if test -n "$liblockfile"; then | |
16854 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
16855 | else | |
16856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16857 | as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | |
16858 | for as_dir in $as_dummy | |
16859 | do | |
16860 | IFS=$as_save_IFS | |
16861 | test -z "$as_dir" && as_dir=. | |
16862 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16863 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16864 | ac_cv_prog_liblockfile="yes" | |
16865 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16866 | break 2 | |
16867 | fi | |
16868 | done | |
16869 | done | |
16870 | IFS=$as_save_IFS | |
16871 | ||
16872 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
16873 | fi | |
16874 | fi | |
16875 | liblockfile=$ac_cv_prog_liblockfile | |
16876 | if test -n "$liblockfile"; then | |
16877 | { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5 | |
16878 | $as_echo "$liblockfile" >&6; } | |
16879 | else | |
16880 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16881 | $as_echo "no" >&6; } | |
16882 | fi | |
16883 | ||
16884 | ||
16885 | if test $ac_cv_prog_liblockfile = yes; then | |
16886 | { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. | |
16887 | This probably means that movemail could lose mail. | |
16888 | There may be a \`development' package to install containing liblockfile." >&5 | |
16889 | $as_echo "$as_me: error: Shared liblockfile found but can't link against it. | |
16890 | This probably means that movemail could lose mail. | |
16891 | There may be a \`development' package to install containing liblockfile." >&2;} | |
16892 | { (exit 1); exit 1; }; } | |
16893 | else : | |
16894 | fi | |
16895 | fi | |
f053c89f | 16896 | |
bf89cb4d GM |
16897 | for ac_func in touchlock |
16898 | do | |
16899 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16900 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16901 | $as_echo_n "checking for $ac_func... " >&6; } | |
16902 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
16903 | $as_echo_n "(cached) " >&6 | |
16904 | else | |
16905 | cat >conftest.$ac_ext <<_ACEOF | |
16906 | /* confdefs.h. */ | |
16907 | _ACEOF | |
16908 | cat confdefs.h >>conftest.$ac_ext | |
16909 | cat >>conftest.$ac_ext <<_ACEOF | |
16910 | /* end confdefs.h. */ | |
16911 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16912 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16913 | #define $ac_func innocuous_$ac_func | |
16914 | ||
16915 | /* System header to define __stub macros and hopefully few prototypes, | |
16916 | which can conflict with char $ac_func (); below. | |
16917 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16918 | <limits.h> exists even on freestanding compilers. */ | |
16919 | ||
16920 | #ifdef __STDC__ | |
16921 | # include <limits.h> | |
16922 | #else | |
16923 | # include <assert.h> | |
16924 | #endif | |
16925 | ||
16926 | #undef $ac_func | |
16927 | ||
16928 | /* Override any GCC internal prototype to avoid an error. | |
16929 | Use char because int might match the return type of a GCC | |
16930 | builtin and then its argument prototype would still apply. */ | |
16931 | #ifdef __cplusplus | |
16932 | extern "C" | |
16933 | #endif | |
16934 | char $ac_func (); | |
16935 | /* The GNU C library defines this for functions which it implements | |
16936 | to always fail with ENOSYS. Some functions are actually named | |
16937 | something starting with __ and the normal name is an alias. */ | |
16938 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
16939 | choke me | |
16940 | #endif | |
98418dba CW |
16941 | |
16942 | int | |
16943 | main () | |
16944 | { | |
bf89cb4d GM |
16945 | return $ac_func (); |
16946 | ; | |
16947 | return 0; | |
16948 | } | |
16949 | _ACEOF | |
16950 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16951 | if { (ac_try="$ac_link" | |
16952 | case "(($ac_try" in | |
16953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16954 | *) ac_try_echo=$ac_try;; | |
16955 | esac | |
16956 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16957 | $as_echo "$ac_try_echo") >&5 | |
16958 | (eval "$ac_link") 2>conftest.er1 | |
16959 | ac_status=$? | |
16960 | grep -v '^ *+' conftest.er1 >conftest.err | |
16961 | rm -f conftest.er1 | |
16962 | cat conftest.err >&5 | |
16963 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16964 | (exit $ac_status); } && { | |
16965 | test -z "$ac_c_werror_flag" || | |
16966 | test ! -s conftest.err | |
16967 | } && test -s conftest$ac_exeext && { | |
16968 | test "$cross_compiling" = yes || | |
16969 | $as_test_x conftest$ac_exeext | |
16970 | }; then | |
16971 | eval "$as_ac_var=yes" | |
16972 | else | |
16973 | $as_echo "$as_me: failed program was:" >&5 | |
16974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
98418dba | 16975 | |
bf89cb4d GM |
16976 | eval "$as_ac_var=no" |
16977 | fi | |
1e0093ea | 16978 | |
bf89cb4d GM |
16979 | rm -rf conftest.dSYM |
16980 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16981 | conftest$ac_exeext conftest.$ac_ext | |
16982 | fi | |
16983 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
16984 | $as_echo "$as_val"'` | |
16985 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16986 | $as_echo "$ac_res" >&6; } | |
16987 | if test `eval 'as_val=${'$as_ac_var'} | |
16988 | $as_echo "$as_val"'` = yes; then | |
16989 | cat >>confdefs.h <<_ACEOF | |
16990 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16991 | _ACEOF | |
503d2be0 | 16992 | |
bf89cb4d GM |
16993 | fi |
16994 | done | |
98418dba | 16995 | |
0ca10bb7 | 16996 | |
bf89cb4d GM |
16997 | for ac_header in maillock.h |
16998 | do | |
16999 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17000 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17001 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17002 | $as_echo_n "checking for $ac_header... " >&6; } | |
17003 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17004 | $as_echo_n "(cached) " >&6 | |
17005 | fi | |
17006 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17007 | $as_echo "$as_val"'` | |
17008 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17009 | $as_echo "$ac_res" >&6; } | |
17010 | else | |
17011 | # Is the header compilable? | |
17012 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17013 | $as_echo_n "checking $ac_header usability... " >&6; } | |
17014 | cat >conftest.$ac_ext <<_ACEOF | |
17015 | /* confdefs.h. */ | |
503d2be0 | 17016 | _ACEOF |
bf89cb4d GM |
17017 | cat confdefs.h >>conftest.$ac_ext |
17018 | cat >>conftest.$ac_ext <<_ACEOF | |
17019 | /* end confdefs.h. */ | |
17020 | $ac_includes_default | |
17021 | #include <$ac_header> | |
17022 | _ACEOF | |
17023 | rm -f conftest.$ac_objext | |
17024 | if { (ac_try="$ac_compile" | |
17025 | case "(($ac_try" in | |
17026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17027 | *) ac_try_echo=$ac_try;; | |
17028 | esac | |
17029 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17030 | $as_echo "$ac_try_echo") >&5 | |
17031 | (eval "$ac_compile") 2>conftest.er1 | |
17032 | ac_status=$? | |
17033 | grep -v '^ *+' conftest.er1 >conftest.err | |
17034 | rm -f conftest.er1 | |
17035 | cat conftest.err >&5 | |
17036 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17037 | (exit $ac_status); } && { | |
17038 | test -z "$ac_c_werror_flag" || | |
17039 | test ! -s conftest.err | |
17040 | } && test -s conftest.$ac_objext; then | |
17041 | ac_header_compiler=yes | |
503d2be0 | 17042 | else |
bf89cb4d GM |
17043 | $as_echo "$as_me: failed program was:" >&5 |
17044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17045 | ||
17046 | ac_header_compiler=no | |
503d2be0 | 17047 | fi |
ca81d7a0 | 17048 | |
bf89cb4d GM |
17049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17050 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17051 | $as_echo "$ac_header_compiler" >&6; } | |
17052 | ||
17053 | # Is the header present? | |
17054 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17055 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17056 | cat >conftest.$ac_ext <<_ACEOF | |
17057 | /* confdefs.h. */ | |
17058 | _ACEOF | |
17059 | cat confdefs.h >>conftest.$ac_ext | |
17060 | cat >>conftest.$ac_ext <<_ACEOF | |
17061 | /* end confdefs.h. */ | |
17062 | #include <$ac_header> | |
17063 | _ACEOF | |
17064 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17065 | case "(($ac_try" in | |
17066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17067 | *) ac_try_echo=$ac_try;; | |
17068 | esac | |
17069 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17070 | $as_echo "$ac_try_echo") >&5 | |
17071 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17072 | ac_status=$? | |
17073 | grep -v '^ *+' conftest.er1 >conftest.err | |
17074 | rm -f conftest.er1 | |
17075 | cat conftest.err >&5 | |
17076 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17077 | (exit $ac_status); } >/dev/null && { | |
17078 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17079 | test ! -s conftest.err | |
17080 | }; then | |
17081 | ac_header_preproc=yes | |
17082 | else | |
17083 | $as_echo "$as_me: failed program was:" >&5 | |
17084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17085 | ||
17086 | ac_header_preproc=no | |
0ca10bb7 | 17087 | fi |
0ca10bb7 | 17088 | |
bf89cb4d GM |
17089 | rm -f conftest.err conftest.$ac_ext |
17090 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17091 | $as_echo "$ac_header_preproc" >&6; } | |
17092 | ||
17093 | # So? What about this header? | |
17094 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17095 | yes:no: ) | |
17096 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17097 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17098 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17099 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17100 | ac_header_preproc=yes | |
17101 | ;; | |
17102 | no:yes:* ) | |
17103 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17104 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17105 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17106 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17107 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17108 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17109 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17110 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17111 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17112 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17113 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17114 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 17115 | |
bf89cb4d GM |
17116 | ;; |
17117 | esac | |
17118 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17119 | $as_echo_n "checking for $ac_header... " >&6; } | |
17120 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17121 | $as_echo_n "(cached) " >&6 | |
17122 | else | |
17123 | eval "$as_ac_Header=\$ac_header_preproc" | |
ba4481b5 | 17124 | fi |
bf89cb4d GM |
17125 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17126 | $as_echo "$as_val"'` | |
17127 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17128 | $as_echo "$ac_res" >&6; } | |
17129 | ||
17130 | fi | |
17131 | if test `eval 'as_val=${'$as_ac_Header'} | |
17132 | $as_echo "$as_val"'` = yes; then | |
17133 | cat >>confdefs.h <<_ACEOF | |
17134 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17135 | _ACEOF | |
edfaf76d | 17136 | |
ba4481b5 DL |
17137 | fi |
17138 | ||
bf89cb4d GM |
17139 | done |
17140 | ||
17141 | ||
17142 | ||
17143 | ||
17144 | ||
17145 | ||
17146 | ||
17147 | ||
17148 | ||
17149 | ||
17150 | ||
17151 | ||
17152 | ||
17153 | ||
17154 | ||
17155 | ||
17156 | ||
17157 | ||
17158 | ||
17159 | ||
17160 | ||
17161 | ||
17162 | ||
17163 | ||
17164 | ||
17165 | ||
17166 | ||
17167 | ||
17168 | ||
17169 | ||
17170 | ||
17171 | ||
17172 | ||
17173 | ||
17174 | ||
17175 | ||
17176 | ||
17177 | ||
17178 | ||
17179 | ||
17180 | ||
17181 | ||
17182 | ||
17183 | ||
17184 | ||
17185 | ||
17186 | ||
17187 | ||
17188 | ||
17189 | ||
17190 | ||
17191 | ||
17192 | ||
17193 | ||
17194 | ||
17195 | ||
17196 | ||
17197 | ||
17198 | ||
17199 | ||
17200 | ||
17201 | ||
17202 | ||
17203 | ||
17204 | ||
17205 | ||
17206 | ||
17207 | ||
17208 | ||
17209 | ||
17210 | ||
17211 | ||
17212 | ||
17213 | for ac_func in gethostname getdomainname dup2 \ | |
17214 | rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ | |
17215 | random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \ | |
17216 | strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
17217 | utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \ | |
17218 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ | |
17219 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ | |
17220 | gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ | |
17221 | memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ | |
17222 | cfmakeraw cfsetspeed | |
17223 | do | |
17224 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
17225 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17226 | $as_echo_n "checking for $ac_func... " >&6; } | |
17227 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
17228 | $as_echo_n "(cached) " >&6 | |
17229 | else | |
17230 | cat >conftest.$ac_ext <<_ACEOF | |
17231 | /* confdefs.h. */ | |
17232 | _ACEOF | |
17233 | cat confdefs.h >>conftest.$ac_ext | |
17234 | cat >>conftest.$ac_ext <<_ACEOF | |
17235 | /* end confdefs.h. */ | |
17236 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17237 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17238 | #define $ac_func innocuous_$ac_func | |
17239 | ||
17240 | /* System header to define __stub macros and hopefully few prototypes, | |
17241 | which can conflict with char $ac_func (); below. | |
17242 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17243 | <limits.h> exists even on freestanding compilers. */ | |
17244 | ||
17245 | #ifdef __STDC__ | |
17246 | # include <limits.h> | |
17247 | #else | |
17248 | # include <assert.h> | |
17249 | #endif | |
b936fae4 | 17250 | |
bf89cb4d | 17251 | #undef $ac_func |
ba4481b5 | 17252 | |
0ca10bb7 RC |
17253 | /* Override any GCC internal prototype to avoid an error. |
17254 | Use char because int might match the return type of a GCC | |
17255 | builtin and then its argument prototype would still apply. */ | |
17256 | #ifdef __cplusplus | |
17257 | extern "C" | |
17258 | #endif | |
bf89cb4d GM |
17259 | char $ac_func (); |
17260 | /* The GNU C library defines this for functions which it implements | |
17261 | to always fail with ENOSYS. Some functions are actually named | |
17262 | something starting with __ and the normal name is an alias. */ | |
17263 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
17264 | choke me | |
17265 | #endif | |
17266 | ||
0ca10bb7 RC |
17267 | int |
17268 | main () | |
17269 | { | |
bf89cb4d | 17270 | return $ac_func (); |
0ca10bb7 RC |
17271 | ; |
17272 | return 0; | |
17273 | } | |
17274 | _ACEOF | |
bf89cb4d GM |
17275 | rm -f conftest.$ac_objext conftest$ac_exeext |
17276 | if { (ac_try="$ac_link" | |
17277 | case "(($ac_try" in | |
17278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17279 | *) ac_try_echo=$ac_try;; | |
17280 | esac | |
17281 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17282 | $as_echo "$ac_try_echo") >&5 | |
17283 | (eval "$ac_link") 2>conftest.er1 | |
17284 | ac_status=$? | |
17285 | grep -v '^ *+' conftest.er1 >conftest.err | |
17286 | rm -f conftest.er1 | |
17287 | cat conftest.err >&5 | |
17288 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17289 | (exit $ac_status); } && { | |
17290 | test -z "$ac_c_werror_flag" || | |
17291 | test ! -s conftest.err | |
17292 | } && test -s conftest$ac_exeext && { | |
17293 | test "$cross_compiling" = yes || | |
17294 | $as_test_x conftest$ac_exeext | |
17295 | }; then | |
17296 | eval "$as_ac_var=yes" | |
0ca10bb7 | 17297 | else |
bf89cb4d GM |
17298 | $as_echo "$as_me: failed program was:" >&5 |
17299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17300 | ||
17301 | eval "$as_ac_var=no" | |
0ca10bb7 | 17302 | fi |
bf89cb4d GM |
17303 | |
17304 | rm -rf conftest.dSYM | |
17305 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17306 | conftest$ac_exeext conftest.$ac_ext | |
ba4481b5 | 17307 | fi |
bf89cb4d GM |
17308 | ac_res=`eval 'as_val=${'$as_ac_var'} |
17309 | $as_echo "$as_val"'` | |
17310 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17311 | $as_echo "$ac_res" >&6; } | |
17312 | if test `eval 'as_val=${'$as_ac_var'} | |
17313 | $as_echo "$as_val"'` = yes; then | |
0ca10bb7 | 17314 | cat >>confdefs.h <<_ACEOF |
bf89cb4d | 17315 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
0ca10bb7 | 17316 | _ACEOF |
503d2be0 | 17317 | |
0ca10bb7 | 17318 | fi |
bf89cb4d | 17319 | done |
6bae0ccf | 17320 | |
98418dba | 17321 | |
bf89cb4d GM |
17322 | |
17323 | for ac_header in sys/un.h | |
17324 | do | |
17325 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17326 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17327 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17328 | $as_echo_n "checking for $ac_header... " >&6; } | |
17329 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 17330 | $as_echo_n "(cached) " >&6 |
bf89cb4d GM |
17331 | fi |
17332 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17333 | $as_echo "$as_val"'` | |
17334 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17335 | $as_echo "$ac_res" >&6; } | |
ba4481b5 | 17336 | else |
bf89cb4d GM |
17337 | # Is the header compilable? |
17338 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17339 | $as_echo_n "checking $ac_header usability... " >&6; } | |
17340 | cat >conftest.$ac_ext <<_ACEOF | |
17341 | /* confdefs.h. */ | |
17342 | _ACEOF | |
17343 | cat confdefs.h >>conftest.$ac_ext | |
17344 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 17345 | /* end confdefs.h. */ |
bf89cb4d GM |
17346 | $ac_includes_default |
17347 | #include <$ac_header> | |
0ca10bb7 | 17348 | _ACEOF |
bf89cb4d GM |
17349 | rm -f conftest.$ac_objext |
17350 | if { (ac_try="$ac_compile" | |
17351 | case "(($ac_try" in | |
17352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17353 | *) ac_try_echo=$ac_try;; | |
17354 | esac | |
17355 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17356 | $as_echo "$ac_try_echo") >&5 | |
17357 | (eval "$ac_compile") 2>conftest.er1 | |
17358 | ac_status=$? | |
17359 | grep -v '^ *+' conftest.er1 >conftest.err | |
17360 | rm -f conftest.er1 | |
17361 | cat conftest.err >&5 | |
17362 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17363 | (exit $ac_status); } && { | |
17364 | test -z "$ac_c_werror_flag" || | |
17365 | test ! -s conftest.err | |
17366 | } && test -s conftest.$ac_objext; then | |
17367 | ac_header_compiler=yes | |
0ca10bb7 | 17368 | else |
bf89cb4d GM |
17369 | $as_echo "$as_me: failed program was:" >&5 |
17370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17371 | ||
17372 | ac_header_compiler=no | |
0ca10bb7 RC |
17373 | fi |
17374 | ||
bf89cb4d GM |
17375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17376 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17377 | $as_echo "$ac_header_compiler" >&6; } | |
edfaf76d | 17378 | |
bf89cb4d GM |
17379 | # Is the header present? |
17380 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17381 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17382 | cat >conftest.$ac_ext <<_ACEOF | |
17383 | /* confdefs.h. */ | |
17384 | _ACEOF | |
17385 | cat confdefs.h >>conftest.$ac_ext | |
17386 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 | 17387 | /* end confdefs.h. */ |
bf89cb4d | 17388 | #include <$ac_header> |
503d2be0 | 17389 | _ACEOF |
bf89cb4d GM |
17390 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17391 | case "(($ac_try" in | |
17392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17393 | *) ac_try_echo=$ac_try;; | |
17394 | esac | |
17395 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17396 | $as_echo "$ac_try_echo") >&5 | |
17397 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17398 | ac_status=$? | |
17399 | grep -v '^ *+' conftest.er1 >conftest.err | |
17400 | rm -f conftest.er1 | |
17401 | cat conftest.err >&5 | |
17402 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17403 | (exit $ac_status); } >/dev/null && { | |
17404 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17405 | test ! -s conftest.err | |
17406 | }; then | |
17407 | ac_header_preproc=yes | |
503d2be0 | 17408 | else |
bf89cb4d GM |
17409 | $as_echo "$as_me: failed program was:" >&5 |
17410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 17411 | |
bf89cb4d | 17412 | ac_header_preproc=no |
ba4481b5 DL |
17413 | fi |
17414 | ||
bf89cb4d GM |
17415 | rm -f conftest.err conftest.$ac_ext |
17416 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17417 | $as_echo "$ac_header_preproc" >&6; } | |
503d2be0 | 17418 | |
bf89cb4d GM |
17419 | # So? What about this header? |
17420 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17421 | yes:no: ) | |
17422 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17423 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17424 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17425 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17426 | ac_header_preproc=yes | |
17427 | ;; | |
17428 | no:yes:* ) | |
17429 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17430 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17431 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17432 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17433 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17434 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17435 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17436 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17437 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17438 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17439 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17440 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
0ca10bb7 | 17441 | |
bf89cb4d GM |
17442 | ;; |
17443 | esac | |
17444 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17445 | $as_echo_n "checking for $ac_header... " >&6; } | |
17446 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 17447 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 17448 | else |
bf89cb4d GM |
17449 | eval "$as_ac_Header=\$ac_header_preproc" |
17450 | fi | |
17451 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17452 | $as_echo "$as_val"'` | |
17453 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17454 | $as_echo "$ac_res" >&6; } | |
0ca10bb7 | 17455 | |
bf89cb4d GM |
17456 | fi |
17457 | if test `eval 'as_val=${'$as_ac_Header'} | |
17458 | $as_echo "$as_val"'` = yes; then | |
17459 | cat >>confdefs.h <<_ACEOF | |
17460 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
0ca10bb7 | 17461 | _ACEOF |
edfaf76d | 17462 | |
0ca10bb7 | 17463 | fi |
edfaf76d | 17464 | |
bf89cb4d | 17465 | done |
edfaf76d | 17466 | |
0ca10bb7 | 17467 | |
0ca10bb7 | 17468 | |
0ca10bb7 | 17469 | |
0ca10bb7 | 17470 | |
0ca10bb7 | 17471 | |
bf89cb4d GM |
17472 | for ac_header in $ac_header_list |
17473 | do | |
17474 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17475 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17476 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17477 | $as_echo_n "checking for $ac_header... " >&6; } | |
17478 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17479 | $as_echo_n "(cached) " >&6 | |
0ca10bb7 | 17480 | fi |
bf89cb4d GM |
17481 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17482 | $as_echo "$as_val"'` | |
17483 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17484 | $as_echo "$ac_res" >&6; } | |
f21fadcc | 17485 | else |
bf89cb4d GM |
17486 | # Is the header compilable? |
17487 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17488 | $as_echo_n "checking $ac_header usability... " >&6; } | |
17489 | cat >conftest.$ac_ext <<_ACEOF | |
17490 | /* confdefs.h. */ | |
17491 | _ACEOF | |
17492 | cat confdefs.h >>conftest.$ac_ext | |
17493 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 17494 | /* end confdefs.h. */ |
bf89cb4d GM |
17495 | $ac_includes_default |
17496 | #include <$ac_header> | |
f21fadcc | 17497 | _ACEOF |
bf89cb4d GM |
17498 | rm -f conftest.$ac_objext |
17499 | if { (ac_try="$ac_compile" | |
17500 | case "(($ac_try" in | |
17501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17502 | *) ac_try_echo=$ac_try;; | |
17503 | esac | |
17504 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17505 | $as_echo "$ac_try_echo") >&5 | |
17506 | (eval "$ac_compile") 2>conftest.er1 | |
17507 | ac_status=$? | |
17508 | grep -v '^ *+' conftest.er1 >conftest.err | |
17509 | rm -f conftest.er1 | |
17510 | cat conftest.err >&5 | |
17511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17512 | (exit $ac_status); } && { | |
17513 | test -z "$ac_c_werror_flag" || | |
17514 | test ! -s conftest.err | |
17515 | } && test -s conftest.$ac_objext; then | |
17516 | ac_header_compiler=yes | |
f21fadcc | 17517 | else |
bf89cb4d GM |
17518 | $as_echo "$as_me: failed program was:" >&5 |
17519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ca81d7a0 | 17520 | |
bf89cb4d GM |
17521 | ac_header_compiler=no |
17522 | fi | |
0ca10bb7 | 17523 | |
bf89cb4d GM |
17524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17525 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17526 | $as_echo "$ac_header_compiler" >&6; } | |
0ca10bb7 | 17527 | |
bf89cb4d GM |
17528 | # Is the header present? |
17529 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17530 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17531 | cat >conftest.$ac_ext <<_ACEOF | |
17532 | /* confdefs.h. */ | |
c0d27fcc | 17533 | _ACEOF |
bf89cb4d GM |
17534 | cat confdefs.h >>conftest.$ac_ext |
17535 | cat >>conftest.$ac_ext <<_ACEOF | |
17536 | /* end confdefs.h. */ | |
17537 | #include <$ac_header> | |
17538 | _ACEOF | |
17539 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17540 | case "(($ac_try" in | |
17541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17542 | *) ac_try_echo=$ac_try;; | |
17543 | esac | |
17544 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17545 | $as_echo "$ac_try_echo") >&5 | |
17546 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17547 | ac_status=$? | |
17548 | grep -v '^ *+' conftest.er1 >conftest.err | |
17549 | rm -f conftest.er1 | |
17550 | cat conftest.err >&5 | |
17551 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17552 | (exit $ac_status); } >/dev/null && { | |
17553 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17554 | test ! -s conftest.err | |
17555 | }; then | |
17556 | ac_header_preproc=yes | |
17557 | else | |
17558 | $as_echo "$as_me: failed program was:" >&5 | |
17559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
f21fadcc | 17560 | |
bf89cb4d | 17561 | ac_header_preproc=no |
f21fadcc JD |
17562 | fi |
17563 | ||
bf89cb4d GM |
17564 | rm -f conftest.err conftest.$ac_ext |
17565 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17566 | $as_echo "$ac_header_preproc" >&6; } | |
98418dba | 17567 | |
bf89cb4d GM |
17568 | # So? What about this header? |
17569 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17570 | yes:no: ) | |
17571 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17572 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17573 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17574 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17575 | ac_header_preproc=yes | |
17576 | ;; | |
17577 | no:yes:* ) | |
17578 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17579 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17580 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17581 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17582 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17583 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17584 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17585 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17586 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17587 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17588 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17589 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17590 | ||
17591 | ;; | |
17592 | esac | |
17593 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17594 | $as_echo_n "checking for $ac_header... " >&6; } | |
17595 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 17596 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 17597 | else |
bf89cb4d GM |
17598 | eval "$as_ac_Header=\$ac_header_preproc" |
17599 | fi | |
17600 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17601 | $as_echo "$as_val"'` | |
17602 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17603 | $as_echo "$ac_res" >&6; } | |
0ca10bb7 | 17604 | |
ba4481b5 | 17605 | fi |
bf89cb4d GM |
17606 | if test `eval 'as_val=${'$as_ac_Header'} |
17607 | $as_echo "$as_val"'` = yes; then | |
17608 | cat >>confdefs.h <<_ACEOF | |
17609 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17610 | _ACEOF | |
17611 | ||
ba4481b5 DL |
17612 | fi |
17613 | ||
bf89cb4d | 17614 | done |
98418dba | 17615 | |
19650fd6 | 17616 | |
ca81d7a0 | 17617 | |
ba4481b5 | 17618 | |
0ca10bb7 RC |
17619 | |
17620 | ||
0ca10bb7 | 17621 | |
bf89cb4d GM |
17622 | |
17623 | ||
17624 | for ac_func in $ac_func_list | |
17625 | do | |
17626 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
17627 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17628 | $as_echo_n "checking for $ac_func... " >&6; } | |
17629 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 17630 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 17631 | else |
bf89cb4d GM |
17632 | cat >conftest.$ac_ext <<_ACEOF |
17633 | /* confdefs.h. */ | |
17634 | _ACEOF | |
17635 | cat confdefs.h >>conftest.$ac_ext | |
17636 | cat >>conftest.$ac_ext <<_ACEOF | |
17637 | /* end confdefs.h. */ | |
17638 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17639 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17640 | #define $ac_func innocuous_$ac_func | |
98418dba | 17641 | |
bf89cb4d GM |
17642 | /* System header to define __stub macros and hopefully few prototypes, |
17643 | which can conflict with char $ac_func (); below. | |
17644 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17645 | <limits.h> exists even on freestanding compilers. */ | |
ca81d7a0 | 17646 | |
bf89cb4d GM |
17647 | #ifdef __STDC__ |
17648 | # include <limits.h> | |
17649 | #else | |
17650 | # include <assert.h> | |
17651 | #endif | |
503d2be0 | 17652 | |
bf89cb4d | 17653 | #undef $ac_func |
ba4481b5 | 17654 | |
bf89cb4d GM |
17655 | /* Override any GCC internal prototype to avoid an error. |
17656 | Use char because int might match the return type of a GCC | |
17657 | builtin and then its argument prototype would still apply. */ | |
17658 | #ifdef __cplusplus | |
17659 | extern "C" | |
17660 | #endif | |
17661 | char $ac_func (); | |
17662 | /* The GNU C library defines this for functions which it implements | |
17663 | to always fail with ENOSYS. Some functions are actually named | |
17664 | something starting with __ and the normal name is an alias. */ | |
17665 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
17666 | choke me | |
17667 | #endif | |
ba4481b5 | 17668 | |
bf89cb4d GM |
17669 | int |
17670 | main () | |
17671 | { | |
17672 | return $ac_func (); | |
17673 | ; | |
17674 | return 0; | |
17675 | } | |
17676 | _ACEOF | |
17677 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17678 | if { (ac_try="$ac_link" | |
17679 | case "(($ac_try" in | |
17680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17681 | *) ac_try_echo=$ac_try;; | |
17682 | esac | |
17683 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17684 | $as_echo "$ac_try_echo") >&5 | |
17685 | (eval "$ac_link") 2>conftest.er1 | |
17686 | ac_status=$? | |
17687 | grep -v '^ *+' conftest.er1 >conftest.err | |
17688 | rm -f conftest.er1 | |
17689 | cat conftest.err >&5 | |
17690 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17691 | (exit $ac_status); } && { | |
17692 | test -z "$ac_c_werror_flag" || | |
17693 | test ! -s conftest.err | |
17694 | } && test -s conftest$ac_exeext && { | |
17695 | test "$cross_compiling" = yes || | |
17696 | $as_test_x conftest$ac_exeext | |
17697 | }; then | |
17698 | eval "$as_ac_var=yes" | |
17699 | else | |
17700 | $as_echo "$as_me: failed program was:" >&5 | |
17701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19650fd6 | 17702 | |
bf89cb4d GM |
17703 | eval "$as_ac_var=no" |
17704 | fi | |
ca81d7a0 | 17705 | |
bf89cb4d GM |
17706 | rm -rf conftest.dSYM |
17707 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17708 | conftest$ac_exeext conftest.$ac_ext | |
17709 | fi | |
17710 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
17711 | $as_echo "$as_val"'` | |
17712 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17713 | $as_echo "$ac_res" >&6; } | |
17714 | if test `eval 'as_val=${'$as_ac_var'} | |
17715 | $as_echo "$as_val"'` = yes; then | |
17716 | cat >>confdefs.h <<_ACEOF | |
17717 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17718 | _ACEOF | |
ba4481b5 | 17719 | |
bf89cb4d GM |
17720 | fi |
17721 | done | |
98418dba | 17722 | |
98418dba | 17723 | |
edfaf76d | 17724 | |
edfaf76d | 17725 | |
edfaf76d | 17726 | |
edfaf76d | 17727 | |
cd958eb3 | 17728 | |
19650fd6 | 17729 | |
ca81d7a0 | 17730 | |
0ca10bb7 | 17731 | |
503d2be0 | 17732 | |
0ca10bb7 | 17733 | |
edfaf76d | 17734 | |
ba4481b5 | 17735 | |
ba4481b5 | 17736 | |
bf89cb4d GM |
17737 | |
17738 | ||
17739 | { $as_echo "$as_me:$LINENO: checking for working mktime" >&5 | |
17740 | $as_echo_n "checking for working mktime... " >&6; } | |
17741 | if test "${ac_cv_func_working_mktime+set}" = set; then | |
e9a63f04 | 17742 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 17743 | else |
bf89cb4d GM |
17744 | if test "$cross_compiling" = yes; then |
17745 | ac_cv_func_working_mktime=no | |
c0d27fcc | 17746 | else |
bf89cb4d GM |
17747 | cat >conftest.$ac_ext <<_ACEOF |
17748 | /* confdefs.h. */ | |
17749 | _ACEOF | |
17750 | cat confdefs.h >>conftest.$ac_ext | |
17751 | cat >>conftest.$ac_ext <<_ACEOF | |
17752 | /* end confdefs.h. */ | |
17753 | /* Test program from Paul Eggert and Tony Leneis. */ | |
17754 | #ifdef TIME_WITH_SYS_TIME | |
17755 | # include <sys/time.h> | |
17756 | # include <time.h> | |
17757 | #else | |
17758 | # ifdef HAVE_SYS_TIME_H | |
17759 | # include <sys/time.h> | |
17760 | # else | |
17761 | # include <time.h> | |
17762 | # endif | |
17763 | #endif | |
c0d27fcc | 17764 | |
bf89cb4d GM |
17765 | #include <limits.h> |
17766 | #include <stdlib.h> | |
19650fd6 | 17767 | |
bf89cb4d GM |
17768 | #ifdef HAVE_UNISTD_H |
17769 | # include <unistd.h> | |
17770 | #endif | |
0ca10bb7 | 17771 | |
bf89cb4d GM |
17772 | #ifndef HAVE_ALARM |
17773 | # define alarm(X) /* empty */ | |
17774 | #endif | |
0ca10bb7 | 17775 | |
bf89cb4d GM |
17776 | /* Work around redefinition to rpl_putenv by other config tests. */ |
17777 | #undef putenv | |
0ca10bb7 | 17778 | |
bf89cb4d GM |
17779 | static time_t time_t_max; |
17780 | static time_t time_t_min; | |
0ca10bb7 | 17781 | |
bf89cb4d GM |
17782 | /* Values we'll use to set the TZ environment variable. */ |
17783 | static char *tz_strings[] = { | |
17784 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | |
17785 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
17786 | }; | |
17787 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
ca81d7a0 | 17788 | |
bf89cb4d GM |
17789 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. |
17790 | Based on a problem report from Andreas Jaeger. */ | |
17791 | static int | |
17792 | spring_forward_gap () | |
17793 | { | |
17794 | /* glibc (up to about 1998-10-07) failed this test. */ | |
17795 | struct tm tm; | |
c0d27fcc | 17796 | |
bf89cb4d GM |
17797 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" |
17798 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
17799 | on systems that don't support the Olson extension, or don't have the | |
17800 | full zoneinfo tables installed. */ | |
17801 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
ca81d7a0 | 17802 | |
bf89cb4d GM |
17803 | tm.tm_year = 98; |
17804 | tm.tm_mon = 3; | |
17805 | tm.tm_mday = 5; | |
17806 | tm.tm_hour = 2; | |
17807 | tm.tm_min = 0; | |
17808 | tm.tm_sec = 0; | |
17809 | tm.tm_isdst = -1; | |
17810 | return mktime (&tm) != (time_t) -1; | |
17811 | } | |
c0d27fcc | 17812 | |
bf89cb4d GM |
17813 | static int |
17814 | mktime_test1 (now) | |
17815 | time_t now; | |
17816 | { | |
17817 | struct tm *lt; | |
17818 | return ! (lt = localtime (&now)) || mktime (lt) == now; | |
17819 | } | |
ba4481b5 | 17820 | |
bf89cb4d GM |
17821 | static int |
17822 | mktime_test (now) | |
17823 | time_t now; | |
17824 | { | |
17825 | return (mktime_test1 (now) | |
17826 | && mktime_test1 ((time_t) (time_t_max - now)) | |
17827 | && mktime_test1 ((time_t) (time_t_min + now))); | |
17828 | } | |
c0d27fcc | 17829 | |
bf89cb4d GM |
17830 | static int |
17831 | irix_6_4_bug () | |
17832 | { | |
17833 | /* Based on code from Ariel Faigon. */ | |
17834 | struct tm tm; | |
17835 | tm.tm_year = 96; | |
17836 | tm.tm_mon = 3; | |
17837 | tm.tm_mday = 0; | |
17838 | tm.tm_hour = 0; | |
17839 | tm.tm_min = 0; | |
17840 | tm.tm_sec = 0; | |
17841 | tm.tm_isdst = -1; | |
17842 | mktime (&tm); | |
17843 | return tm.tm_mon == 2 && tm.tm_mday == 31; | |
17844 | } | |
503d2be0 | 17845 | |
bf89cb4d GM |
17846 | static int |
17847 | bigtime_test (j) | |
17848 | int j; | |
17849 | { | |
17850 | struct tm tm; | |
17851 | time_t now; | |
17852 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
17853 | now = mktime (&tm); | |
17854 | if (now != (time_t) -1) | |
17855 | { | |
17856 | struct tm *lt = localtime (&now); | |
17857 | if (! (lt | |
17858 | && lt->tm_year == tm.tm_year | |
17859 | && lt->tm_mon == tm.tm_mon | |
17860 | && lt->tm_mday == tm.tm_mday | |
17861 | && lt->tm_hour == tm.tm_hour | |
17862 | && lt->tm_min == tm.tm_min | |
17863 | && lt->tm_sec == tm.tm_sec | |
17864 | && lt->tm_yday == tm.tm_yday | |
17865 | && lt->tm_wday == tm.tm_wday | |
17866 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
17867 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
17868 | return 0; | |
17869 | } | |
17870 | return 1; | |
17871 | } | |
503d2be0 | 17872 | |
bf89cb4d GM |
17873 | static int |
17874 | year_2050_test () | |
17875 | { | |
17876 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, | |
17877 | ignoring leap seconds. */ | |
17878 | unsigned long int answer = 2527315200UL; | |
19650fd6 | 17879 | |
bf89cb4d GM |
17880 | struct tm tm; |
17881 | time_t t; | |
17882 | tm.tm_year = 2050 - 1900; | |
17883 | tm.tm_mon = 2 - 1; | |
17884 | tm.tm_mday = 1; | |
17885 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; | |
17886 | tm.tm_isdst = -1; | |
ca81d7a0 | 17887 | |
bf89cb4d GM |
17888 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" |
17889 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
17890 | on systems that don't support the Olson extension, or don't have the | |
17891 | full zoneinfo tables installed. */ | |
17892 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
ba4481b5 | 17893 | |
bf89cb4d | 17894 | t = mktime (&tm); |
ba4481b5 | 17895 | |
bf89cb4d GM |
17896 | /* Check that the result is either a failure, or close enough |
17897 | to the correct answer that we can assume the discrepancy is | |
17898 | due to leap seconds. */ | |
17899 | return (t == (time_t) -1 | |
17900 | || (0 < t && answer - 120 <= t && t <= answer + 120)); | |
17901 | } | |
0ca10bb7 | 17902 | |
bf89cb4d GM |
17903 | int |
17904 | main () | |
17905 | { | |
17906 | time_t t, delta; | |
17907 | int i, j; | |
ba4481b5 | 17908 | |
bf89cb4d GM |
17909 | /* This test makes some buggy mktime implementations loop. |
17910 | Give up after 60 seconds; a mktime slower than that | |
17911 | isn't worth using anyway. */ | |
17912 | alarm (60); | |
503d2be0 | 17913 | |
bf89cb4d GM |
17914 | for (;;) |
17915 | { | |
17916 | t = (time_t_max << 1) + 1; | |
17917 | if (t <= time_t_max) | |
17918 | break; | |
17919 | time_t_max = t; | |
17920 | } | |
17921 | time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; | |
c0d27fcc | 17922 | |
bf89cb4d GM |
17923 | delta = time_t_max / 997; /* a suitable prime number */ |
17924 | for (i = 0; i < N_STRINGS; i++) | |
17925 | { | |
17926 | if (tz_strings[i]) | |
17927 | putenv (tz_strings[i]); | |
c0d27fcc | 17928 | |
bf89cb4d GM |
17929 | for (t = 0; t <= time_t_max - delta; t += delta) |
17930 | if (! mktime_test (t)) | |
17931 | return 1; | |
17932 | if (! (mktime_test ((time_t) 1) | |
17933 | && mktime_test ((time_t) (60 * 60)) | |
17934 | && mktime_test ((time_t) (60 * 60 * 24)))) | |
17935 | return 1; | |
19650fd6 | 17936 | |
bf89cb4d GM |
17937 | for (j = 1; ; j <<= 1) |
17938 | if (! bigtime_test (j)) | |
17939 | return 1; | |
17940 | else if (INT_MAX / 2 < j) | |
17941 | break; | |
17942 | if (! bigtime_test (INT_MAX)) | |
17943 | return 1; | |
17944 | } | |
17945 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); | |
17946 | } | |
0ca10bb7 | 17947 | _ACEOF |
bf89cb4d GM |
17948 | rm -f conftest$ac_exeext |
17949 | if { (ac_try="$ac_link" | |
17950 | case "(($ac_try" in | |
17951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17952 | *) ac_try_echo=$ac_try;; | |
17953 | esac | |
17954 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17955 | $as_echo "$ac_try_echo") >&5 | |
17956 | (eval "$ac_link") 2>&5 | |
17957 | ac_status=$? | |
17958 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17959 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17960 | { (case "(($ac_try" in | |
17961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17962 | *) ac_try_echo=$ac_try;; | |
17963 | esac | |
17964 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17965 | $as_echo "$ac_try_echo") >&5 | |
17966 | (eval "$ac_try") 2>&5 | |
17967 | ac_status=$? | |
17968 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17969 | (exit $ac_status); }; }; then | |
17970 | ac_cv_func_working_mktime=yes | |
0ca10bb7 | 17971 | else |
bf89cb4d GM |
17972 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
17973 | $as_echo "$as_me: failed program was:" >&5 | |
17974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ca81d7a0 | 17975 | |
bf89cb4d GM |
17976 | ( exit $ac_status ) |
17977 | ac_cv_func_working_mktime=no | |
17978 | fi | |
17979 | rm -rf conftest.dSYM | |
17980 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
0ca10bb7 | 17981 | fi |
c0d27fcc | 17982 | |
ca81d7a0 | 17983 | |
ba4481b5 | 17984 | fi |
bf89cb4d GM |
17985 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
17986 | $as_echo "$ac_cv_func_working_mktime" >&6; } | |
17987 | if test $ac_cv_func_working_mktime = no; then | |
17988 | case " $LIBOBJS " in | |
17989 | *" mktime.$ac_objext "* ) ;; | |
17990 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" | |
17991 | ;; | |
17992 | esac | |
98418dba | 17993 | |
c0d27fcc | 17994 | fi |
0ca10bb7 | 17995 | |
bf89cb4d | 17996 | if test "$ac_cv_func_working_mktime" = no; then |
0ca10bb7 | 17997 | |
bf89cb4d GM |
17998 | cat >>confdefs.h <<\_ACEOF |
17999 | #define BROKEN_MKTIME 1 | |
19650fd6 | 18000 | _ACEOF |
edfaf76d | 18001 | |
0ca10bb7 | 18002 | fi |
edfaf76d | 18003 | |
bf89cb4d | 18004 | ac_have_func=no # yes means we've found a way to get the load average. |
edfaf76d | 18005 | |
bf89cb4d GM |
18006 | # Make sure getloadavg.c is where it belongs, at configure-time. |
18007 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || | |
18008 | { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 | |
18009 | $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;} | |
18010 | { (exit 1); exit 1; }; } | |
18011 | ||
18012 | ac_save_LIBS=$LIBS | |
18013 | ||
18014 | # Check for getloadavg, but be sure not to touch the cache variable. | |
18015 | ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5 | |
18016 | $as_echo_n "checking for getloadavg... " >&6; } | |
18017 | if test "${ac_cv_func_getloadavg+set}" = set; then | |
0ca10bb7 RC |
18018 | $as_echo_n "(cached) " >&6 |
18019 | else | |
bf89cb4d GM |
18020 | cat >conftest.$ac_ext <<_ACEOF |
18021 | /* confdefs.h. */ | |
18022 | _ACEOF | |
18023 | cat confdefs.h >>conftest.$ac_ext | |
18024 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 | 18025 | /* end confdefs.h. */ |
bf89cb4d GM |
18026 | /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg. |
18027 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18028 | #define getloadavg innocuous_getloadavg | |
18029 | ||
18030 | /* System header to define __stub macros and hopefully few prototypes, | |
18031 | which can conflict with char getloadavg (); below. | |
18032 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18033 | <limits.h> exists even on freestanding compilers. */ | |
18034 | ||
18035 | #ifdef __STDC__ | |
18036 | # include <limits.h> | |
18037 | #else | |
18038 | # include <assert.h> | |
18039 | #endif | |
18040 | ||
18041 | #undef getloadavg | |
edfaf76d | 18042 | |
ca81d7a0 JD |
18043 | /* Override any GCC internal prototype to avoid an error. |
18044 | Use char because int might match the return type of a GCC | |
18045 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
18046 | #ifdef __cplusplus |
18047 | extern "C" | |
18048 | #endif | |
bf89cb4d GM |
18049 | char getloadavg (); |
18050 | /* The GNU C library defines this for functions which it implements | |
18051 | to always fail with ENOSYS. Some functions are actually named | |
18052 | something starting with __ and the normal name is an alias. */ | |
18053 | #if defined __stub_getloadavg || defined __stub___getloadavg | |
18054 | choke me | |
18055 | #endif | |
18056 | ||
19650fd6 AS |
18057 | int |
18058 | main () | |
18059 | { | |
bf89cb4d | 18060 | return getloadavg (); |
503d2be0 AS |
18061 | ; |
18062 | return 0; | |
18063 | } | |
18064 | _ACEOF | |
bf89cb4d GM |
18065 | rm -f conftest.$ac_objext conftest$ac_exeext |
18066 | if { (ac_try="$ac_link" | |
18067 | case "(($ac_try" in | |
18068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18069 | *) ac_try_echo=$ac_try;; | |
ca81d7a0 | 18070 | esac |
bf89cb4d GM |
18071 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18072 | $as_echo "$ac_try_echo") >&5 | |
18073 | (eval "$ac_link") 2>conftest.er1 | |
18074 | ac_status=$? | |
18075 | grep -v '^ *+' conftest.er1 >conftest.err | |
18076 | rm -f conftest.er1 | |
18077 | cat conftest.err >&5 | |
18078 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18079 | (exit $ac_status); } && { | |
18080 | test -z "$ac_c_werror_flag" || | |
18081 | test ! -s conftest.err | |
18082 | } && test -s conftest$ac_exeext && { | |
18083 | test "$cross_compiling" = yes || | |
18084 | $as_test_x conftest$ac_exeext | |
18085 | }; then | |
18086 | ac_cv_func_getloadavg=yes | |
503d2be0 | 18087 | else |
bf89cb4d GM |
18088 | $as_echo "$as_me: failed program was:" >&5 |
18089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 18090 | |
bf89cb4d | 18091 | ac_cv_func_getloadavg=no |
c0d27fcc | 18092 | fi |
ca81d7a0 | 18093 | |
bf89cb4d GM |
18094 | rm -rf conftest.dSYM |
18095 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18096 | conftest$ac_exeext conftest.$ac_ext | |
18097 | fi | |
18098 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 | |
18099 | $as_echo "$ac_cv_func_getloadavg" >&6; } | |
18100 | if test $ac_cv_func_getloadavg = yes; then | |
18101 | exit 0 | |
18102 | else | |
18103 | exit 1 | |
18104 | fi | |
18105 | ) && ac_have_func=yes | |
c0d27fcc | 18106 | |
bf89cb4d | 18107 | # On HPUX9, an unprivileged user can get load averages through this function. |
19650fd6 | 18108 | |
bf89cb4d GM |
18109 | for ac_func in pstat_getdynamic |
18110 | do | |
18111 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
18112 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18113 | $as_echo_n "checking for $ac_func... " >&6; } | |
18114 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
18115 | $as_echo_n "(cached) " >&6 | |
18116 | else | |
18117 | cat >conftest.$ac_ext <<_ACEOF | |
18118 | /* confdefs.h. */ | |
18119 | _ACEOF | |
18120 | cat confdefs.h >>conftest.$ac_ext | |
18121 | cat >>conftest.$ac_ext <<_ACEOF | |
18122 | /* end confdefs.h. */ | |
18123 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18124 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18125 | #define $ac_func innocuous_$ac_func | |
c0d27fcc | 18126 | |
bf89cb4d GM |
18127 | /* System header to define __stub macros and hopefully few prototypes, |
18128 | which can conflict with char $ac_func (); below. | |
18129 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18130 | <limits.h> exists even on freestanding compilers. */ | |
0ca10bb7 | 18131 | |
bf89cb4d GM |
18132 | #ifdef __STDC__ |
18133 | # include <limits.h> | |
18134 | #else | |
18135 | # include <assert.h> | |
18136 | #endif | |
0ca10bb7 | 18137 | |
bf89cb4d | 18138 | #undef $ac_func |
0ca10bb7 | 18139 | |
bf89cb4d GM |
18140 | /* Override any GCC internal prototype to avoid an error. |
18141 | Use char because int might match the return type of a GCC | |
18142 | builtin and then its argument prototype would still apply. */ | |
18143 | #ifdef __cplusplus | |
18144 | extern "C" | |
18145 | #endif | |
18146 | char $ac_func (); | |
18147 | /* The GNU C library defines this for functions which it implements | |
18148 | to always fail with ENOSYS. Some functions are actually named | |
18149 | something starting with __ and the normal name is an alias. */ | |
18150 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
18151 | choke me | |
18152 | #endif | |
0ca10bb7 | 18153 | |
bf89cb4d GM |
18154 | int |
18155 | main () | |
18156 | { | |
18157 | return $ac_func (); | |
18158 | ; | |
18159 | return 0; | |
18160 | } | |
18161 | _ACEOF | |
18162 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18163 | if { (ac_try="$ac_link" | |
18164 | case "(($ac_try" in | |
18165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18166 | *) ac_try_echo=$ac_try;; | |
18167 | esac | |
18168 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18169 | $as_echo "$ac_try_echo") >&5 | |
18170 | (eval "$ac_link") 2>conftest.er1 | |
18171 | ac_status=$? | |
18172 | grep -v '^ *+' conftest.er1 >conftest.err | |
18173 | rm -f conftest.er1 | |
18174 | cat conftest.err >&5 | |
18175 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18176 | (exit $ac_status); } && { | |
18177 | test -z "$ac_c_werror_flag" || | |
18178 | test ! -s conftest.err | |
18179 | } && test -s conftest$ac_exeext && { | |
18180 | test "$cross_compiling" = yes || | |
18181 | $as_test_x conftest$ac_exeext | |
18182 | }; then | |
18183 | eval "$as_ac_var=yes" | |
18184 | else | |
18185 | $as_echo "$as_me: failed program was:" >&5 | |
18186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ba4481b5 | 18187 | |
bf89cb4d GM |
18188 | eval "$as_ac_var=no" |
18189 | fi | |
98418dba | 18190 | |
bf89cb4d GM |
18191 | rm -rf conftest.dSYM |
18192 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18193 | conftest$ac_exeext conftest.$ac_ext | |
18194 | fi | |
18195 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
18196 | $as_echo "$as_val"'` | |
18197 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18198 | $as_echo "$ac_res" >&6; } | |
18199 | if test `eval 'as_val=${'$as_ac_var'} | |
18200 | $as_echo "$as_val"'` = yes; then | |
18201 | cat >>confdefs.h <<_ACEOF | |
18202 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18203 | _ACEOF | |
c0d27fcc | 18204 | |
98418dba | 18205 | fi |
bf89cb4d | 18206 | done |
98418dba | 18207 | |
bf89cb4d GM |
18208 | |
18209 | # Solaris has libkstat which does not require root. | |
18210 | ||
18211 | { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 | |
18212 | $as_echo_n "checking for kstat_open in -lkstat... " >&6; } | |
18213 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
e9a63f04 | 18214 | $as_echo_n "(cached) " >&6 |
98418dba | 18215 | else |
bf89cb4d GM |
18216 | ac_check_lib_save_LIBS=$LIBS |
18217 | LIBS="-lkstat $LIBS" | |
18218 | cat >conftest.$ac_ext <<_ACEOF | |
18219 | /* confdefs.h. */ | |
18220 | _ACEOF | |
18221 | cat confdefs.h >>conftest.$ac_ext | |
18222 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 18223 | /* end confdefs.h. */ |
19650fd6 | 18224 | |
bf89cb4d GM |
18225 | /* Override any GCC internal prototype to avoid an error. |
18226 | Use char because int might match the return type of a GCC | |
18227 | builtin and then its argument prototype would still apply. */ | |
18228 | #ifdef __cplusplus | |
18229 | extern "C" | |
18230 | #endif | |
18231 | char kstat_open (); | |
0ca10bb7 RC |
18232 | int |
18233 | main () | |
18234 | { | |
bf89cb4d | 18235 | return kstat_open (); |
0ca10bb7 RC |
18236 | ; |
18237 | return 0; | |
18238 | } | |
2c9dccc9 | 18239 | _ACEOF |
bf89cb4d GM |
18240 | rm -f conftest.$ac_objext conftest$ac_exeext |
18241 | if { (ac_try="$ac_link" | |
18242 | case "(($ac_try" in | |
18243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18244 | *) ac_try_echo=$ac_try;; | |
18245 | esac | |
18246 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18247 | $as_echo "$ac_try_echo") >&5 | |
18248 | (eval "$ac_link") 2>conftest.er1 | |
18249 | ac_status=$? | |
18250 | grep -v '^ *+' conftest.er1 >conftest.err | |
18251 | rm -f conftest.er1 | |
18252 | cat conftest.err >&5 | |
18253 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18254 | (exit $ac_status); } && { | |
18255 | test -z "$ac_c_werror_flag" || | |
18256 | test ! -s conftest.err | |
18257 | } && test -s conftest$ac_exeext && { | |
18258 | test "$cross_compiling" = yes || | |
18259 | $as_test_x conftest$ac_exeext | |
18260 | }; then | |
18261 | ac_cv_lib_kstat_kstat_open=yes | |
c0d27fcc | 18262 | else |
bf89cb4d GM |
18263 | $as_echo "$as_me: failed program was:" >&5 |
18264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18265 | ||
18266 | ac_cv_lib_kstat_kstat_open=no | |
0ca10bb7 | 18267 | fi |
bf89cb4d GM |
18268 | |
18269 | rm -rf conftest.dSYM | |
18270 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18271 | conftest$ac_exeext conftest.$ac_ext | |
18272 | LIBS=$ac_check_lib_save_LIBS | |
c0d27fcc | 18273 | fi |
bf89cb4d GM |
18274 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 |
18275 | $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } | |
18276 | if test $ac_cv_lib_kstat_kstat_open = yes; then | |
18277 | cat >>confdefs.h <<_ACEOF | |
18278 | #define HAVE_LIBKSTAT 1 | |
18279 | _ACEOF | |
ca81d7a0 | 18280 | |
bf89cb4d | 18281 | LIBS="-lkstat $LIBS" |
c0d27fcc | 18282 | |
bf89cb4d | 18283 | fi |
ca81d7a0 | 18284 | |
bf89cb4d GM |
18285 | test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes |
18286 | ||
18287 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
18288 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
18289 | # to get the right answer into the cache. | |
18290 | # For kstat on solaris, we need libelf to force the definition of SVR4 below. | |
18291 | if test $ac_have_func = no; then | |
18292 | { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 | |
18293 | $as_echo_n "checking for elf_begin in -lelf... " >&6; } | |
18294 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
e9a63f04 | 18295 | $as_echo_n "(cached) " >&6 |
c0d27fcc | 18296 | else |
bf89cb4d GM |
18297 | ac_check_lib_save_LIBS=$LIBS |
18298 | LIBS="-lelf $LIBS" | |
18299 | cat >conftest.$ac_ext <<_ACEOF | |
18300 | /* confdefs.h. */ | |
18301 | _ACEOF | |
18302 | cat confdefs.h >>conftest.$ac_ext | |
18303 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 | 18304 | /* end confdefs.h. */ |
c0d27fcc | 18305 | |
bf89cb4d GM |
18306 | /* Override any GCC internal prototype to avoid an error. |
18307 | Use char because int might match the return type of a GCC | |
18308 | builtin and then its argument prototype would still apply. */ | |
18309 | #ifdef __cplusplus | |
18310 | extern "C" | |
18311 | #endif | |
18312 | char elf_begin (); | |
0ca10bb7 RC |
18313 | int |
18314 | main () | |
18315 | { | |
bf89cb4d | 18316 | return elf_begin (); |
0ca10bb7 RC |
18317 | ; |
18318 | return 0; | |
18319 | } | |
18320 | _ACEOF | |
bf89cb4d GM |
18321 | rm -f conftest.$ac_objext conftest$ac_exeext |
18322 | if { (ac_try="$ac_link" | |
18323 | case "(($ac_try" in | |
18324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18325 | *) ac_try_echo=$ac_try;; | |
18326 | esac | |
18327 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18328 | $as_echo "$ac_try_echo") >&5 | |
18329 | (eval "$ac_link") 2>conftest.er1 | |
18330 | ac_status=$? | |
18331 | grep -v '^ *+' conftest.er1 >conftest.err | |
18332 | rm -f conftest.er1 | |
18333 | cat conftest.err >&5 | |
18334 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18335 | (exit $ac_status); } && { | |
18336 | test -z "$ac_c_werror_flag" || | |
18337 | test ! -s conftest.err | |
18338 | } && test -s conftest$ac_exeext && { | |
18339 | test "$cross_compiling" = yes || | |
18340 | $as_test_x conftest$ac_exeext | |
18341 | }; then | |
18342 | ac_cv_lib_elf_elf_begin=yes | |
0ca10bb7 | 18343 | else |
bf89cb4d GM |
18344 | $as_echo "$as_me: failed program was:" >&5 |
18345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c0d27fcc | 18346 | |
bf89cb4d | 18347 | ac_cv_lib_elf_elf_begin=no |
c0d27fcc MR |
18348 | fi |
18349 | ||
bf89cb4d GM |
18350 | rm -rf conftest.dSYM |
18351 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18352 | conftest$ac_exeext conftest.$ac_ext | |
18353 | LIBS=$ac_check_lib_save_LIBS | |
18354 | fi | |
18355 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 | |
18356 | $as_echo "$ac_cv_lib_elf_elf_begin" >&6; } | |
18357 | if test $ac_cv_lib_elf_elf_begin = yes; then | |
18358 | LIBS="-lelf $LIBS" | |
18359 | fi | |
c0d27fcc | 18360 | |
bf89cb4d GM |
18361 | fi |
18362 | if test $ac_have_func = no; then | |
18363 | { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 | |
18364 | $as_echo_n "checking for kvm_open in -lkvm... " >&6; } | |
18365 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
e9a63f04 | 18366 | $as_echo_n "(cached) " >&6 |
c0d27fcc | 18367 | else |
bf89cb4d GM |
18368 | ac_check_lib_save_LIBS=$LIBS |
18369 | LIBS="-lkvm $LIBS" | |
18370 | cat >conftest.$ac_ext <<_ACEOF | |
18371 | /* confdefs.h. */ | |
18372 | _ACEOF | |
18373 | cat confdefs.h >>conftest.$ac_ext | |
18374 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 18375 | /* end confdefs.h. */ |
bf89cb4d GM |
18376 | |
18377 | /* Override any GCC internal prototype to avoid an error. | |
18378 | Use char because int might match the return type of a GCC | |
18379 | builtin and then its argument prototype would still apply. */ | |
18380 | #ifdef __cplusplus | |
18381 | extern "C" | |
18382 | #endif | |
18383 | char kvm_open (); | |
0ca10bb7 RC |
18384 | int |
18385 | main () | |
18386 | { | |
bf89cb4d | 18387 | return kvm_open (); |
0ca10bb7 RC |
18388 | ; |
18389 | return 0; | |
18390 | } | |
503d2be0 | 18391 | _ACEOF |
bf89cb4d GM |
18392 | rm -f conftest.$ac_objext conftest$ac_exeext |
18393 | if { (ac_try="$ac_link" | |
18394 | case "(($ac_try" in | |
18395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18396 | *) ac_try_echo=$ac_try;; | |
18397 | esac | |
18398 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18399 | $as_echo "$ac_try_echo") >&5 | |
18400 | (eval "$ac_link") 2>conftest.er1 | |
18401 | ac_status=$? | |
18402 | grep -v '^ *+' conftest.er1 >conftest.err | |
18403 | rm -f conftest.er1 | |
18404 | cat conftest.err >&5 | |
18405 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18406 | (exit $ac_status); } && { | |
18407 | test -z "$ac_c_werror_flag" || | |
18408 | test ! -s conftest.err | |
18409 | } && test -s conftest$ac_exeext && { | |
18410 | test "$cross_compiling" = yes || | |
18411 | $as_test_x conftest$ac_exeext | |
18412 | }; then | |
18413 | ac_cv_lib_kvm_kvm_open=yes | |
503d2be0 | 18414 | else |
bf89cb4d GM |
18415 | $as_echo "$as_me: failed program was:" >&5 |
18416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c0d27fcc | 18417 | |
bf89cb4d GM |
18418 | ac_cv_lib_kvm_kvm_open=no |
18419 | fi | |
ca81d7a0 | 18420 | |
bf89cb4d GM |
18421 | rm -rf conftest.dSYM |
18422 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18423 | conftest$ac_exeext conftest.$ac_ext | |
18424 | LIBS=$ac_check_lib_save_LIBS | |
18425 | fi | |
18426 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 | |
18427 | $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } | |
18428 | if test $ac_cv_lib_kvm_kvm_open = yes; then | |
18429 | LIBS="-lkvm $LIBS" | |
18430 | fi | |
c0d27fcc | 18431 | |
bf89cb4d GM |
18432 | # Check for the 4.4BSD definition of getloadavg. |
18433 | { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 | |
18434 | $as_echo_n "checking for getloadavg in -lutil... " >&6; } | |
18435 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
e9a63f04 | 18436 | $as_echo_n "(cached) " >&6 |
b5de8dc0 | 18437 | else |
0ca10bb7 | 18438 | ac_check_lib_save_LIBS=$LIBS |
bf89cb4d GM |
18439 | LIBS="-lutil $LIBS" |
18440 | cat >conftest.$ac_ext <<_ACEOF | |
18441 | /* confdefs.h. */ | |
18442 | _ACEOF | |
18443 | cat confdefs.h >>conftest.$ac_ext | |
18444 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 18445 | /* end confdefs.h. */ |
b5de8dc0 | 18446 | |
0ca10bb7 RC |
18447 | /* Override any GCC internal prototype to avoid an error. |
18448 | Use char because int might match the return type of a GCC | |
18449 | builtin and then its argument prototype would still apply. */ | |
18450 | #ifdef __cplusplus | |
18451 | extern "C" | |
18452 | #endif | |
bf89cb4d | 18453 | char getloadavg (); |
503d2be0 AS |
18454 | int |
18455 | main () | |
18456 | { | |
bf89cb4d | 18457 | return getloadavg (); |
503d2be0 AS |
18458 | ; |
18459 | return 0; | |
18460 | } | |
18461 | _ACEOF | |
bf89cb4d GM |
18462 | rm -f conftest.$ac_objext conftest$ac_exeext |
18463 | if { (ac_try="$ac_link" | |
18464 | case "(($ac_try" in | |
18465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18466 | *) ac_try_echo=$ac_try;; | |
18467 | esac | |
18468 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18469 | $as_echo "$ac_try_echo") >&5 | |
18470 | (eval "$ac_link") 2>conftest.er1 | |
18471 | ac_status=$? | |
18472 | grep -v '^ *+' conftest.er1 >conftest.err | |
18473 | rm -f conftest.er1 | |
18474 | cat conftest.err >&5 | |
18475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18476 | (exit $ac_status); } && { | |
18477 | test -z "$ac_c_werror_flag" || | |
18478 | test ! -s conftest.err | |
18479 | } && test -s conftest$ac_exeext && { | |
18480 | test "$cross_compiling" = yes || | |
18481 | $as_test_x conftest$ac_exeext | |
18482 | }; then | |
18483 | ac_cv_lib_util_getloadavg=yes | |
503d2be0 | 18484 | else |
bf89cb4d GM |
18485 | $as_echo "$as_me: failed program was:" >&5 |
18486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18487 | ||
18488 | ac_cv_lib_util_getloadavg=no | |
0ca10bb7 | 18489 | fi |
bf89cb4d GM |
18490 | |
18491 | rm -rf conftest.dSYM | |
18492 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18493 | conftest$ac_exeext conftest.$ac_ext | |
0ca10bb7 RC |
18494 | LIBS=$ac_check_lib_save_LIBS |
18495 | fi | |
bf89cb4d GM |
18496 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 |
18497 | $as_echo "$ac_cv_lib_util_getloadavg" >&6; } | |
18498 | if test $ac_cv_lib_util_getloadavg = yes; then | |
18499 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
0ca10bb7 RC |
18500 | fi |
18501 | ||
0ca10bb7 RC |
18502 | fi |
18503 | ||
bf89cb4d GM |
18504 | if test $ac_have_func = no; then |
18505 | # There is a commonly available library for RS/6000 AIX. | |
18506 | # Since it is not a standard part of AIX, it might be installed locally. | |
18507 | ac_getloadavg_LIBS=$LIBS | |
18508 | LIBS="-L/usr/local/lib $LIBS" | |
18509 | { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 | |
18510 | $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } | |
18511 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
0ca10bb7 RC |
18512 | $as_echo_n "(cached) " >&6 |
18513 | else | |
18514 | ac_check_lib_save_LIBS=$LIBS | |
bf89cb4d GM |
18515 | LIBS="-lgetloadavg $LIBS" |
18516 | cat >conftest.$ac_ext <<_ACEOF | |
18517 | /* confdefs.h. */ | |
18518 | _ACEOF | |
18519 | cat confdefs.h >>conftest.$ac_ext | |
18520 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 18521 | /* end confdefs.h. */ |
6bae0ccf | 18522 | |
0ca10bb7 RC |
18523 | /* Override any GCC internal prototype to avoid an error. |
18524 | Use char because int might match the return type of a GCC | |
18525 | builtin and then its argument prototype would still apply. */ | |
18526 | #ifdef __cplusplus | |
18527 | extern "C" | |
18528 | #endif | |
bf89cb4d | 18529 | char getloadavg (); |
6bae0ccf DL |
18530 | int |
18531 | main () | |
18532 | { | |
bf89cb4d | 18533 | return getloadavg (); |
6bae0ccf DL |
18534 | ; |
18535 | return 0; | |
18536 | } | |
18537 | _ACEOF | |
bf89cb4d GM |
18538 | rm -f conftest.$ac_objext conftest$ac_exeext |
18539 | if { (ac_try="$ac_link" | |
18540 | case "(($ac_try" in | |
18541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18542 | *) ac_try_echo=$ac_try;; | |
18543 | esac | |
18544 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18545 | $as_echo "$ac_try_echo") >&5 | |
18546 | (eval "$ac_link") 2>conftest.er1 | |
18547 | ac_status=$? | |
18548 | grep -v '^ *+' conftest.er1 >conftest.err | |
18549 | rm -f conftest.er1 | |
18550 | cat conftest.err >&5 | |
18551 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18552 | (exit $ac_status); } && { | |
18553 | test -z "$ac_c_werror_flag" || | |
18554 | test ! -s conftest.err | |
18555 | } && test -s conftest$ac_exeext && { | |
18556 | test "$cross_compiling" = yes || | |
18557 | $as_test_x conftest$ac_exeext | |
18558 | }; then | |
18559 | ac_cv_lib_getloadavg_getloadavg=yes | |
6bae0ccf | 18560 | else |
bf89cb4d GM |
18561 | $as_echo "$as_me: failed program was:" >&5 |
18562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18563 | ||
18564 | ac_cv_lib_getloadavg_getloadavg=no | |
b5de8dc0 | 18565 | fi |
bf89cb4d GM |
18566 | |
18567 | rm -rf conftest.dSYM | |
18568 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18569 | conftest$ac_exeext conftest.$ac_ext | |
0ca10bb7 | 18570 | LIBS=$ac_check_lib_save_LIBS |
6bae0ccf | 18571 | fi |
bf89cb4d GM |
18572 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
18573 | $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } | |
18574 | if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
18575 | LIBS="-lgetloadavg $LIBS" | |
18576 | else | |
18577 | LIBS=$ac_getloadavg_LIBS | |
98418dba | 18578 | fi |
c0d27fcc | 18579 | |
98418dba | 18580 | fi |
c0d27fcc | 18581 | |
bf89cb4d GM |
18582 | # Make sure it is really in the library, if we think we found it, |
18583 | # otherwise set up the replacement function. | |
18584 | ||
18585 | for ac_func in getloadavg | |
18586 | do | |
18587 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
18588 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18589 | $as_echo_n "checking for $ac_func... " >&6; } | |
18590 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 18591 | $as_echo_n "(cached) " >&6 |
98418dba | 18592 | else |
bf89cb4d GM |
18593 | cat >conftest.$ac_ext <<_ACEOF |
18594 | /* confdefs.h. */ | |
18595 | _ACEOF | |
18596 | cat confdefs.h >>conftest.$ac_ext | |
18597 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 18598 | /* end confdefs.h. */ |
bf89cb4d GM |
18599 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18600 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18601 | #define $ac_func innocuous_$ac_func | |
18602 | ||
18603 | /* System header to define __stub macros and hopefully few prototypes, | |
18604 | which can conflict with char $ac_func (); below. | |
18605 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18606 | <limits.h> exists even on freestanding compilers. */ | |
18607 | ||
18608 | #ifdef __STDC__ | |
18609 | # include <limits.h> | |
0ca10bb7 | 18610 | #else |
bf89cb4d | 18611 | # include <assert.h> |
98418dba | 18612 | #endif |
98418dba | 18613 | |
bf89cb4d | 18614 | #undef $ac_func |
98418dba | 18615 | |
0ca10bb7 RC |
18616 | /* Override any GCC internal prototype to avoid an error. |
18617 | Use char because int might match the return type of a GCC | |
18618 | builtin and then its argument prototype would still apply. */ | |
18619 | #ifdef __cplusplus | |
18620 | extern "C" | |
18621 | #endif | |
bf89cb4d GM |
18622 | char $ac_func (); |
18623 | /* The GNU C library defines this for functions which it implements | |
18624 | to always fail with ENOSYS. Some functions are actually named | |
18625 | something starting with __ and the normal name is an alias. */ | |
18626 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
18627 | choke me | |
18628 | #endif | |
18629 | ||
0ca10bb7 RC |
18630 | int |
18631 | main () | |
18632 | { | |
bf89cb4d | 18633 | return $ac_func (); |
0ca10bb7 RC |
18634 | ; |
18635 | return 0; | |
18636 | } | |
18637 | _ACEOF | |
bf89cb4d GM |
18638 | rm -f conftest.$ac_objext conftest$ac_exeext |
18639 | if { (ac_try="$ac_link" | |
18640 | case "(($ac_try" in | |
18641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18642 | *) ac_try_echo=$ac_try;; | |
18643 | esac | |
18644 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18645 | $as_echo "$ac_try_echo") >&5 | |
18646 | (eval "$ac_link") 2>conftest.er1 | |
18647 | ac_status=$? | |
18648 | grep -v '^ *+' conftest.er1 >conftest.err | |
18649 | rm -f conftest.er1 | |
18650 | cat conftest.err >&5 | |
18651 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18652 | (exit $ac_status); } && { | |
18653 | test -z "$ac_c_werror_flag" || | |
18654 | test ! -s conftest.err | |
18655 | } && test -s conftest$ac_exeext && { | |
18656 | test "$cross_compiling" = yes || | |
18657 | $as_test_x conftest$ac_exeext | |
18658 | }; then | |
18659 | eval "$as_ac_var=yes" | |
0ca10bb7 | 18660 | else |
bf89cb4d GM |
18661 | $as_echo "$as_me: failed program was:" >&5 |
18662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18663 | ||
18664 | eval "$as_ac_var=no" | |
b5de8dc0 | 18665 | fi |
bf89cb4d GM |
18666 | |
18667 | rm -rf conftest.dSYM | |
18668 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18669 | conftest$ac_exeext conftest.$ac_ext | |
b5de8dc0 | 18670 | fi |
bf89cb4d GM |
18671 | ac_res=`eval 'as_val=${'$as_ac_var'} |
18672 | $as_echo "$as_val"'` | |
18673 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18674 | $as_echo "$ac_res" >&6; } | |
18675 | if test `eval 'as_val=${'$as_ac_var'} | |
18676 | $as_echo "$as_val"'` = yes; then | |
18677 | cat >>confdefs.h <<_ACEOF | |
18678 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18679 | _ACEOF | |
b5de8dc0 | 18680 | |
bf89cb4d GM |
18681 | else |
18682 | case " $LIBOBJS " in | |
18683 | *" getloadavg.$ac_objext "* ) ;; | |
18684 | *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | |
18685 | ;; | |
18686 | esac | |
c0d27fcc MR |
18687 | |
18688 | ||
bf89cb4d GM |
18689 | cat >>confdefs.h <<\_ACEOF |
18690 | #define C_GETLOADAVG 1 | |
18691 | _ACEOF | |
18692 | ||
18693 | # Figure out what our getloadavg.c needs. | |
18694 | ac_have_func=no | |
18695 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
18696 | { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
18697 | $as_echo_n "checking for sys/dg_sys_info.h... " >&6; } | |
18698 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
e9a63f04 | 18699 | $as_echo_n "(cached) " >&6 |
bf89cb4d GM |
18700 | fi |
18701 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
18702 | $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; } | |
4c343001 | 18703 | else |
bf89cb4d GM |
18704 | # Is the header compilable? |
18705 | { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 | |
18706 | $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; } | |
18707 | cat >conftest.$ac_ext <<_ACEOF | |
18708 | /* confdefs.h. */ | |
18709 | _ACEOF | |
18710 | cat confdefs.h >>conftest.$ac_ext | |
18711 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 18712 | /* end confdefs.h. */ |
bf89cb4d GM |
18713 | $ac_includes_default |
18714 | #include <sys/dg_sys_info.h> | |
b936fae4 | 18715 | _ACEOF |
bf89cb4d GM |
18716 | rm -f conftest.$ac_objext |
18717 | if { (ac_try="$ac_compile" | |
18718 | case "(($ac_try" in | |
18719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18720 | *) ac_try_echo=$ac_try;; | |
18721 | esac | |
18722 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18723 | $as_echo "$ac_try_echo") >&5 | |
18724 | (eval "$ac_compile") 2>conftest.er1 | |
18725 | ac_status=$? | |
18726 | grep -v '^ *+' conftest.er1 >conftest.err | |
18727 | rm -f conftest.er1 | |
18728 | cat conftest.err >&5 | |
18729 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18730 | (exit $ac_status); } && { | |
18731 | test -z "$ac_c_werror_flag" || | |
18732 | test ! -s conftest.err | |
18733 | } && test -s conftest.$ac_objext; then | |
18734 | ac_header_compiler=yes | |
b936fae4 | 18735 | else |
bf89cb4d GM |
18736 | $as_echo "$as_me: failed program was:" >&5 |
18737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ca81d7a0 | 18738 | |
bf89cb4d | 18739 | ac_header_compiler=no |
b936fae4 | 18740 | fi |
ca81d7a0 | 18741 | |
bf89cb4d GM |
18742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18743 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18744 | $as_echo "$ac_header_compiler" >&6; } | |
0ca10bb7 | 18745 | |
bf89cb4d GM |
18746 | # Is the header present? |
18747 | { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 | |
18748 | $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; } | |
18749 | cat >conftest.$ac_ext <<_ACEOF | |
18750 | /* confdefs.h. */ | |
b936fae4 | 18751 | _ACEOF |
bf89cb4d GM |
18752 | cat confdefs.h >>conftest.$ac_ext |
18753 | cat >>conftest.$ac_ext <<_ACEOF | |
18754 | /* end confdefs.h. */ | |
18755 | #include <sys/dg_sys_info.h> | |
18756 | _ACEOF | |
18757 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
18758 | case "(($ac_try" in | |
18759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18760 | *) ac_try_echo=$ac_try;; | |
18761 | esac | |
18762 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18763 | $as_echo "$ac_try_echo") >&5 | |
18764 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
18765 | ac_status=$? | |
18766 | grep -v '^ *+' conftest.er1 >conftest.err | |
18767 | rm -f conftest.er1 | |
18768 | cat conftest.err >&5 | |
18769 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18770 | (exit $ac_status); } >/dev/null && { | |
18771 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
18772 | test ! -s conftest.err | |
18773 | }; then | |
18774 | ac_header_preproc=yes | |
0ca10bb7 | 18775 | else |
bf89cb4d GM |
18776 | $as_echo "$as_me: failed program was:" >&5 |
18777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18778 | ||
18779 | ac_header_preproc=no | |
b936fae4 | 18780 | fi |
0ca10bb7 | 18781 | |
bf89cb4d GM |
18782 | rm -f conftest.err conftest.$ac_ext |
18783 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18784 | $as_echo "$ac_header_preproc" >&6; } | |
0ca10bb7 | 18785 | |
bf89cb4d GM |
18786 | # So? What about this header? |
18787 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
18788 | yes:no: ) | |
18789 | { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18790 | $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18791 | { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5 | |
18792 | $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;} | |
18793 | ac_header_preproc=yes | |
18794 | ;; | |
18795 | no:yes:* ) | |
18796 | { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 | |
18797 | $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
18798 | { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 | |
18799 | $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
18800 | { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5 | |
18801 | $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;} | |
18802 | { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5 | |
18803 | $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
18804 | { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 | |
18805 | $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} | |
18806 | { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5 | |
18807 | $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;} | |
0ca10bb7 | 18808 | |
bf89cb4d GM |
18809 | ;; |
18810 | esac | |
18811 | { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
18812 | $as_echo_n "checking for sys/dg_sys_info.h... " >&6; } | |
18813 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
18814 | $as_echo_n "(cached) " >&6 | |
18815 | else | |
18816 | ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
18817 | fi | |
18818 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
18819 | $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; } | |
ca81d7a0 | 18820 | |
b936fae4 | 18821 | fi |
bf89cb4d GM |
18822 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then |
18823 | ac_have_func=yes | |
4c343001 | 18824 | |
bf89cb4d GM |
18825 | cat >>confdefs.h <<\_ACEOF |
18826 | #define DGUX 1 | |
18827 | _ACEOF | |
b936fae4 | 18828 | |
bf89cb4d GM |
18829 | |
18830 | { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 | |
18831 | $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } | |
18832 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
18833 | $as_echo_n "(cached) " >&6 | |
18834 | else | |
18835 | ac_check_lib_save_LIBS=$LIBS | |
18836 | LIBS="-ldgc $LIBS" | |
18837 | cat >conftest.$ac_ext <<_ACEOF | |
18838 | /* confdefs.h. */ | |
18839 | _ACEOF | |
18840 | cat confdefs.h >>conftest.$ac_ext | |
18841 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 RC |
18842 | /* end confdefs.h. */ |
18843 | ||
bf89cb4d GM |
18844 | /* Override any GCC internal prototype to avoid an error. |
18845 | Use char because int might match the return type of a GCC | |
18846 | builtin and then its argument prototype would still apply. */ | |
18847 | #ifdef __cplusplus | |
18848 | extern "C" | |
18849 | #endif | |
18850 | char dg_sys_info (); | |
0ca10bb7 RC |
18851 | int |
18852 | main () | |
18853 | { | |
bf89cb4d | 18854 | return dg_sys_info (); |
0ca10bb7 RC |
18855 | ; |
18856 | return 0; | |
18857 | } | |
c0d27fcc | 18858 | _ACEOF |
bf89cb4d GM |
18859 | rm -f conftest.$ac_objext conftest$ac_exeext |
18860 | if { (ac_try="$ac_link" | |
18861 | case "(($ac_try" in | |
18862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18863 | *) ac_try_echo=$ac_try;; | |
0ca10bb7 | 18864 | esac |
bf89cb4d GM |
18865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18866 | $as_echo "$ac_try_echo") >&5 | |
18867 | (eval "$ac_link") 2>conftest.er1 | |
18868 | ac_status=$? | |
18869 | grep -v '^ *+' conftest.er1 >conftest.err | |
18870 | rm -f conftest.er1 | |
18871 | cat conftest.err >&5 | |
18872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18873 | (exit $ac_status); } && { | |
18874 | test -z "$ac_c_werror_flag" || | |
18875 | test ! -s conftest.err | |
18876 | } && test -s conftest$ac_exeext && { | |
18877 | test "$cross_compiling" = yes || | |
18878 | $as_test_x conftest$ac_exeext | |
18879 | }; then | |
18880 | ac_cv_lib_dgc_dg_sys_info=yes | |
0ca10bb7 | 18881 | else |
bf89cb4d GM |
18882 | $as_echo "$as_me: failed program was:" >&5 |
18883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
52dbaac8 | 18884 | |
bf89cb4d GM |
18885 | ac_cv_lib_dgc_dg_sys_info=no |
18886 | fi | |
52dbaac8 | 18887 | |
bf89cb4d GM |
18888 | rm -rf conftest.dSYM |
18889 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18890 | conftest$ac_exeext conftest.$ac_ext | |
18891 | LIBS=$ac_check_lib_save_LIBS | |
18892 | fi | |
18893 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 | |
18894 | $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } | |
18895 | if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
18896 | cat >>confdefs.h <<_ACEOF | |
18897 | #define HAVE_LIBDGC 1 | |
18898 | _ACEOF | |
52dbaac8 | 18899 | |
bf89cb4d | 18900 | LIBS="-ldgc $LIBS" |
52dbaac8 | 18901 | |
bf89cb4d | 18902 | fi |
52dbaac8 | 18903 | |
bf89cb4d | 18904 | fi |
52dbaac8 | 18905 | |
10a3b1a1 | 18906 | |
52dbaac8 | 18907 | |
bf89cb4d GM |
18908 | if test "${ac_cv_header_locale_h+set}" = set; then |
18909 | { $as_echo "$as_me:$LINENO: checking for locale.h" >&5 | |
18910 | $as_echo_n "checking for locale.h... " >&6; } | |
18911 | if test "${ac_cv_header_locale_h+set}" = set; then | |
e9a63f04 | 18912 | $as_echo_n "(cached) " >&6 |
bf89cb4d GM |
18913 | fi |
18914 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
18915 | $as_echo "$ac_cv_header_locale_h" >&6; } | |
52dbaac8 | 18916 | else |
bf89cb4d GM |
18917 | # Is the header compilable? |
18918 | { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5 | |
18919 | $as_echo_n "checking locale.h usability... " >&6; } | |
18920 | cat >conftest.$ac_ext <<_ACEOF | |
18921 | /* confdefs.h. */ | |
18922 | _ACEOF | |
18923 | cat confdefs.h >>conftest.$ac_ext | |
18924 | cat >>conftest.$ac_ext <<_ACEOF | |
18925 | /* end confdefs.h. */ | |
18926 | $ac_includes_default | |
18927 | #include <locale.h> | |
18928 | _ACEOF | |
18929 | rm -f conftest.$ac_objext | |
18930 | if { (ac_try="$ac_compile" | |
18931 | case "(($ac_try" in | |
18932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18933 | *) ac_try_echo=$ac_try;; | |
ca81d7a0 | 18934 | esac |
bf89cb4d GM |
18935 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
18936 | $as_echo "$ac_try_echo") >&5 | |
18937 | (eval "$ac_compile") 2>conftest.er1 | |
18938 | ac_status=$? | |
18939 | grep -v '^ *+' conftest.er1 >conftest.err | |
18940 | rm -f conftest.er1 | |
18941 | cat conftest.err >&5 | |
18942 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18943 | (exit $ac_status); } && { | |
18944 | test -z "$ac_c_werror_flag" || | |
18945 | test ! -s conftest.err | |
18946 | } && test -s conftest.$ac_objext; then | |
18947 | ac_header_compiler=yes | |
52dbaac8 | 18948 | else |
bf89cb4d GM |
18949 | $as_echo "$as_me: failed program was:" >&5 |
18950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
52dbaac8 | 18951 | |
bf89cb4d GM |
18952 | ac_header_compiler=no |
18953 | fi | |
52dbaac8 | 18954 | |
bf89cb4d GM |
18955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18956 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18957 | $as_echo "$ac_header_compiler" >&6; } | |
ca81d7a0 | 18958 | |
bf89cb4d GM |
18959 | # Is the header present? |
18960 | { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5 | |
18961 | $as_echo_n "checking locale.h presence... " >&6; } | |
18962 | cat >conftest.$ac_ext <<_ACEOF | |
18963 | /* confdefs.h. */ | |
18964 | _ACEOF | |
18965 | cat confdefs.h >>conftest.$ac_ext | |
18966 | cat >>conftest.$ac_ext <<_ACEOF | |
18967 | /* end confdefs.h. */ | |
18968 | #include <locale.h> | |
18969 | _ACEOF | |
18970 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
18971 | case "(($ac_try" in | |
18972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18973 | *) ac_try_echo=$ac_try;; | |
18974 | esac | |
18975 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18976 | $as_echo "$ac_try_echo") >&5 | |
18977 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
18978 | ac_status=$? | |
18979 | grep -v '^ *+' conftest.er1 >conftest.err | |
18980 | rm -f conftest.er1 | |
18981 | cat conftest.err >&5 | |
18982 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18983 | (exit $ac_status); } >/dev/null && { | |
18984 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
18985 | test ! -s conftest.err | |
18986 | }; then | |
18987 | ac_header_preproc=yes | |
18988 | else | |
18989 | $as_echo "$as_me: failed program was:" >&5 | |
18990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
52dbaac8 | 18991 | |
bf89cb4d GM |
18992 | ac_header_preproc=no |
18993 | fi | |
ca81d7a0 | 18994 | |
bf89cb4d GM |
18995 | rm -f conftest.err conftest.$ac_ext |
18996 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18997 | $as_echo "$ac_header_preproc" >&6; } | |
52dbaac8 | 18998 | |
bf89cb4d GM |
18999 | # So? What about this header? |
19000 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19001 | yes:no: ) | |
19002 | { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19003 | $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19004 | { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 | |
19005 | $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} | |
19006 | ac_header_preproc=yes | |
19007 | ;; | |
19008 | no:yes:* ) | |
19009 | { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 | |
19010 | $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
19011 | { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 | |
19012 | $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
19013 | { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 | |
19014 | $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} | |
19015 | { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19016 | $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
19017 | { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 | |
19018 | $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} | |
19019 | { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 | |
19020 | $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} | |
52dbaac8 | 19021 | |
bf89cb4d GM |
19022 | ;; |
19023 | esac | |
19024 | { $as_echo "$as_me:$LINENO: checking for locale.h" >&5 | |
19025 | $as_echo_n "checking for locale.h... " >&6; } | |
19026 | if test "${ac_cv_header_locale_h+set}" = set; then | |
19027 | $as_echo_n "(cached) " >&6 | |
19028 | else | |
19029 | ac_cv_header_locale_h=$ac_header_preproc | |
19030 | fi | |
19031 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
19032 | $as_echo "$ac_cv_header_locale_h" >&6; } | |
52dbaac8 | 19033 | |
bf89cb4d | 19034 | fi |
52dbaac8 | 19035 | |
52dbaac8 | 19036 | |
0ca10bb7 | 19037 | |
bf89cb4d GM |
19038 | for ac_func in setlocale |
19039 | do | |
19040 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
19041 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
19042 | $as_echo_n "checking for $ac_func... " >&6; } | |
19043 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 19044 | $as_echo_n "(cached) " >&6 |
52dbaac8 | 19045 | else |
bf89cb4d GM |
19046 | cat >conftest.$ac_ext <<_ACEOF |
19047 | /* confdefs.h. */ | |
19048 | _ACEOF | |
19049 | cat confdefs.h >>conftest.$ac_ext | |
19050 | cat >>conftest.$ac_ext <<_ACEOF | |
52dbaac8 | 19051 | /* end confdefs.h. */ |
bf89cb4d GM |
19052 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19053 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19054 | #define $ac_func innocuous_$ac_func | |
19055 | ||
19056 | /* System header to define __stub macros and hopefully few prototypes, | |
19057 | which can conflict with char $ac_func (); below. | |
19058 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19059 | <limits.h> exists even on freestanding compilers. */ | |
19060 | ||
19061 | #ifdef __STDC__ | |
19062 | # include <limits.h> | |
19063 | #else | |
19064 | # include <assert.h> | |
19065 | #endif | |
19066 | ||
19067 | #undef $ac_func | |
52dbaac8 | 19068 | |
0ca10bb7 RC |
19069 | /* Override any GCC internal prototype to avoid an error. |
19070 | Use char because int might match the return type of a GCC | |
19071 | builtin and then its argument prototype would still apply. */ | |
19072 | #ifdef __cplusplus | |
19073 | extern "C" | |
52dbaac8 | 19074 | #endif |
bf89cb4d GM |
19075 | char $ac_func (); |
19076 | /* The GNU C library defines this for functions which it implements | |
19077 | to always fail with ENOSYS. Some functions are actually named | |
19078 | something starting with __ and the normal name is an alias. */ | |
19079 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
19080 | choke me | |
19081 | #endif | |
19082 | ||
0ca10bb7 RC |
19083 | int |
19084 | main () | |
19085 | { | |
bf89cb4d | 19086 | return $ac_func (); |
0ca10bb7 RC |
19087 | ; |
19088 | return 0; | |
19089 | } | |
19090 | _ACEOF | |
bf89cb4d GM |
19091 | rm -f conftest.$ac_objext conftest$ac_exeext |
19092 | if { (ac_try="$ac_link" | |
19093 | case "(($ac_try" in | |
19094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19095 | *) ac_try_echo=$ac_try;; | |
19096 | esac | |
19097 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19098 | $as_echo "$ac_try_echo") >&5 | |
19099 | (eval "$ac_link") 2>conftest.er1 | |
19100 | ac_status=$? | |
19101 | grep -v '^ *+' conftest.er1 >conftest.err | |
19102 | rm -f conftest.er1 | |
19103 | cat conftest.err >&5 | |
19104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19105 | (exit $ac_status); } && { | |
19106 | test -z "$ac_c_werror_flag" || | |
19107 | test ! -s conftest.err | |
19108 | } && test -s conftest$ac_exeext && { | |
19109 | test "$cross_compiling" = yes || | |
19110 | $as_test_x conftest$ac_exeext | |
19111 | }; then | |
19112 | eval "$as_ac_var=yes" | |
0ca10bb7 | 19113 | else |
bf89cb4d GM |
19114 | $as_echo "$as_me: failed program was:" >&5 |
19115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19116 | ||
19117 | eval "$as_ac_var=no" | |
0ca10bb7 | 19118 | fi |
bf89cb4d GM |
19119 | |
19120 | rm -rf conftest.dSYM | |
19121 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19122 | conftest$ac_exeext conftest.$ac_ext | |
0ca10bb7 | 19123 | fi |
bf89cb4d GM |
19124 | ac_res=`eval 'as_val=${'$as_ac_var'} |
19125 | $as_echo "$as_val"'` | |
19126 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19127 | $as_echo "$ac_res" >&6; } | |
19128 | if test `eval 'as_val=${'$as_ac_var'} | |
19129 | $as_echo "$as_val"'` = yes; then | |
19130 | cat >>confdefs.h <<_ACEOF | |
19131 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19132 | _ACEOF | |
19133 | ||
0ca10bb7 | 19134 | fi |
bf89cb4d | 19135 | done |
52dbaac8 | 19136 | |
bf89cb4d GM |
19137 | |
19138 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | |
19139 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
19140 | # Irix 4.0.5F has the header but not the library. | |
19141 | if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
19142 | ac_have_func=yes | |
19143 | ||
19144 | cat >>confdefs.h <<\_ACEOF | |
19145 | #define SVR4 1 | |
19146 | _ACEOF | |
19147 | ||
19148 | fi | |
19149 | ||
19150 | if test $ac_have_func = no; then | |
19151 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
19152 | { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
19153 | $as_echo_n "checking for inq_stats/cpustats.h... " >&6; } | |
19154 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
0ca10bb7 | 19155 | $as_echo_n "(cached) " >&6 |
bf89cb4d GM |
19156 | fi |
19157 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
19158 | $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; } | |
0ca10bb7 | 19159 | else |
bf89cb4d GM |
19160 | # Is the header compilable? |
19161 | { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 | |
19162 | $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; } | |
19163 | cat >conftest.$ac_ext <<_ACEOF | |
19164 | /* confdefs.h. */ | |
19165 | _ACEOF | |
19166 | cat confdefs.h >>conftest.$ac_ext | |
19167 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 | 19168 | /* end confdefs.h. */ |
bf89cb4d GM |
19169 | $ac_includes_default |
19170 | #include <inq_stats/cpustats.h> | |
19171 | _ACEOF | |
19172 | rm -f conftest.$ac_objext | |
19173 | if { (ac_try="$ac_compile" | |
19174 | case "(($ac_try" in | |
19175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19176 | *) ac_try_echo=$ac_try;; | |
19177 | esac | |
19178 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19179 | $as_echo "$ac_try_echo") >&5 | |
19180 | (eval "$ac_compile") 2>conftest.er1 | |
19181 | ac_status=$? | |
19182 | grep -v '^ *+' conftest.er1 >conftest.err | |
19183 | rm -f conftest.er1 | |
19184 | cat conftest.err >&5 | |
19185 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19186 | (exit $ac_status); } && { | |
19187 | test -z "$ac_c_werror_flag" || | |
19188 | test ! -s conftest.err | |
19189 | } && test -s conftest.$ac_objext; then | |
19190 | ac_header_compiler=yes | |
19191 | else | |
19192 | $as_echo "$as_me: failed program was:" >&5 | |
19193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
52dbaac8 | 19194 | |
bf89cb4d GM |
19195 | ac_header_compiler=no |
19196 | fi | |
19197 | ||
19198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19199 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19200 | $as_echo "$ac_header_compiler" >&6; } | |
19201 | ||
19202 | # Is the header present? | |
19203 | { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 | |
19204 | $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; } | |
19205 | cat >conftest.$ac_ext <<_ACEOF | |
19206 | /* confdefs.h. */ | |
52dbaac8 | 19207 | _ACEOF |
bf89cb4d GM |
19208 | cat confdefs.h >>conftest.$ac_ext |
19209 | cat >>conftest.$ac_ext <<_ACEOF | |
19210 | /* end confdefs.h. */ | |
19211 | #include <inq_stats/cpustats.h> | |
19212 | _ACEOF | |
19213 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
19214 | case "(($ac_try" in | |
19215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19216 | *) ac_try_echo=$ac_try;; | |
19217 | esac | |
19218 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19219 | $as_echo "$ac_try_echo") >&5 | |
19220 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
19221 | ac_status=$? | |
19222 | grep -v '^ *+' conftest.er1 >conftest.err | |
19223 | rm -f conftest.er1 | |
19224 | cat conftest.err >&5 | |
19225 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19226 | (exit $ac_status); } >/dev/null && { | |
19227 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
19228 | test ! -s conftest.err | |
19229 | }; then | |
19230 | ac_header_preproc=yes | |
52dbaac8 | 19231 | else |
bf89cb4d GM |
19232 | $as_echo "$as_me: failed program was:" >&5 |
19233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19234 | ||
19235 | ac_header_preproc=no | |
52dbaac8 | 19236 | fi |
bf89cb4d GM |
19237 | |
19238 | rm -f conftest.err conftest.$ac_ext | |
19239 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19240 | $as_echo "$ac_header_preproc" >&6; } | |
19241 | ||
19242 | # So? What about this header? | |
19243 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19244 | yes:no: ) | |
19245 | { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19246 | $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19247 | { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5 | |
19248 | $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;} | |
19249 | ac_header_preproc=yes | |
19250 | ;; | |
19251 | no:yes:* ) | |
19252 | { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 | |
19253 | $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
19254 | { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 | |
19255 | $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
19256 | { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5 | |
19257 | $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;} | |
19258 | { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19259 | $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
19260 | { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 | |
19261 | $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} | |
19262 | { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5 | |
19263 | $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
19264 | ||
19265 | ;; | |
19266 | esac | |
19267 | { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
19268 | $as_echo_n "checking for inq_stats/cpustats.h... " >&6; } | |
19269 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
19270 | $as_echo_n "(cached) " >&6 | |
19271 | else | |
19272 | ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
0ca10bb7 | 19273 | fi |
bf89cb4d GM |
19274 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
19275 | $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; } | |
19276 | ||
52dbaac8 | 19277 | fi |
bf89cb4d GM |
19278 | if test $ac_cv_header_inq_stats_cpustats_h = yes; then |
19279 | ac_have_func=yes | |
19280 | ||
19281 | cat >>confdefs.h <<\_ACEOF | |
19282 | #define UMAX 1 | |
19283 | _ACEOF | |
19284 | ||
19285 | ||
19286 | cat >>confdefs.h <<\_ACEOF | |
19287 | #define UMAX4_3 1 | |
19288 | _ACEOF | |
52dbaac8 | 19289 | |
52dbaac8 | 19290 | fi |
52dbaac8 | 19291 | |
52dbaac8 | 19292 | |
bf89cb4d | 19293 | fi |
0ca10bb7 | 19294 | |
bf89cb4d GM |
19295 | if test $ac_have_func = no; then |
19296 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
19297 | { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
19298 | $as_echo_n "checking for sys/cpustats.h... " >&6; } | |
19299 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
19300 | $as_echo_n "(cached) " >&6 | |
19301 | fi | |
19302 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
19303 | $as_echo "$ac_cv_header_sys_cpustats_h" >&6; } | |
19304 | else | |
19305 | # Is the header compilable? | |
19306 | { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 | |
19307 | $as_echo_n "checking sys/cpustats.h usability... " >&6; } | |
19308 | cat >conftest.$ac_ext <<_ACEOF | |
19309 | /* confdefs.h. */ | |
19310 | _ACEOF | |
19311 | cat confdefs.h >>conftest.$ac_ext | |
19312 | cat >>conftest.$ac_ext <<_ACEOF | |
19313 | /* end confdefs.h. */ | |
19314 | $ac_includes_default | |
19315 | #include <sys/cpustats.h> | |
19316 | _ACEOF | |
19317 | rm -f conftest.$ac_objext | |
19318 | if { (ac_try="$ac_compile" | |
19319 | case "(($ac_try" in | |
19320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19321 | *) ac_try_echo=$ac_try;; | |
19322 | esac | |
19323 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19324 | $as_echo "$ac_try_echo") >&5 | |
19325 | (eval "$ac_compile") 2>conftest.er1 | |
19326 | ac_status=$? | |
19327 | grep -v '^ *+' conftest.er1 >conftest.err | |
19328 | rm -f conftest.er1 | |
19329 | cat conftest.err >&5 | |
19330 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19331 | (exit $ac_status); } && { | |
19332 | test -z "$ac_c_werror_flag" || | |
19333 | test ! -s conftest.err | |
19334 | } && test -s conftest.$ac_objext; then | |
19335 | ac_header_compiler=yes | |
19336 | else | |
19337 | $as_echo "$as_me: failed program was:" >&5 | |
19338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 19339 | |
bf89cb4d GM |
19340 | ac_header_compiler=no |
19341 | fi | |
0ca10bb7 | 19342 | |
bf89cb4d GM |
19343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19344 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19345 | $as_echo "$ac_header_compiler" >&6; } | |
0ca10bb7 | 19346 | |
bf89cb4d GM |
19347 | # Is the header present? |
19348 | { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 | |
19349 | $as_echo_n "checking sys/cpustats.h presence... " >&6; } | |
19350 | cat >conftest.$ac_ext <<_ACEOF | |
19351 | /* confdefs.h. */ | |
19352 | _ACEOF | |
19353 | cat confdefs.h >>conftest.$ac_ext | |
19354 | cat >>conftest.$ac_ext <<_ACEOF | |
19355 | /* end confdefs.h. */ | |
19356 | #include <sys/cpustats.h> | |
19357 | _ACEOF | |
19358 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
19359 | case "(($ac_try" in | |
19360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19361 | *) ac_try_echo=$ac_try;; | |
19362 | esac | |
19363 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19364 | $as_echo "$ac_try_echo") >&5 | |
19365 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
19366 | ac_status=$? | |
19367 | grep -v '^ *+' conftest.er1 >conftest.err | |
19368 | rm -f conftest.er1 | |
19369 | cat conftest.err >&5 | |
19370 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19371 | (exit $ac_status); } >/dev/null && { | |
19372 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
19373 | test ! -s conftest.err | |
19374 | }; then | |
19375 | ac_header_preproc=yes | |
19376 | else | |
19377 | $as_echo "$as_me: failed program was:" >&5 | |
19378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 19379 | |
bf89cb4d GM |
19380 | ac_header_preproc=no |
19381 | fi | |
0ca10bb7 | 19382 | |
bf89cb4d GM |
19383 | rm -f conftest.err conftest.$ac_ext |
19384 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19385 | $as_echo "$ac_header_preproc" >&6; } | |
0ca10bb7 | 19386 | |
bf89cb4d GM |
19387 | # So? What about this header? |
19388 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19389 | yes:no: ) | |
19390 | { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19391 | $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19392 | { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5 | |
19393 | $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;} | |
19394 | ac_header_preproc=yes | |
19395 | ;; | |
19396 | no:yes:* ) | |
19397 | { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 | |
19398 | $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
19399 | { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 | |
19400 | $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
19401 | { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5 | |
19402 | $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;} | |
19403 | { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19404 | $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
19405 | { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 | |
19406 | $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} | |
19407 | { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5 | |
19408 | $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
19409 | ||
19410 | ;; | |
19411 | esac | |
19412 | { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
19413 | $as_echo_n "checking for sys/cpustats.h... " >&6; } | |
19414 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
19415 | $as_echo_n "(cached) " >&6 | |
19416 | else | |
19417 | ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
19418 | fi | |
19419 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
19420 | $as_echo "$ac_cv_header_sys_cpustats_h" >&6; } | |
0ca10bb7 | 19421 | |
bf89cb4d GM |
19422 | fi |
19423 | if test $ac_cv_header_sys_cpustats_h = yes; then | |
19424 | ac_have_func=yes; cat >>confdefs.h <<\_ACEOF | |
19425 | #define UMAX 1 | |
19426 | _ACEOF | |
0ca10bb7 | 19427 | |
bf89cb4d | 19428 | fi |
0ca10bb7 | 19429 | |
0ca10bb7 | 19430 | |
bf89cb4d | 19431 | fi |
0ca10bb7 | 19432 | |
bf89cb4d GM |
19433 | if test $ac_have_func = no; then |
19434 | ||
19435 | for ac_header in mach/mach.h | |
19436 | do | |
19437 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19438 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
19439 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19440 | $as_echo_n "checking for $ac_header... " >&6; } | |
19441 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 19442 | $as_echo_n "(cached) " >&6 |
bf89cb4d GM |
19443 | fi |
19444 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
19445 | $as_echo "$as_val"'` | |
19446 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19447 | $as_echo "$ac_res" >&6; } | |
52dbaac8 | 19448 | else |
bf89cb4d GM |
19449 | # Is the header compilable? |
19450 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19451 | $as_echo_n "checking $ac_header usability... " >&6; } | |
19452 | cat >conftest.$ac_ext <<_ACEOF | |
19453 | /* confdefs.h. */ | |
19454 | _ACEOF | |
19455 | cat confdefs.h >>conftest.$ac_ext | |
19456 | cat >>conftest.$ac_ext <<_ACEOF | |
19457 | /* end confdefs.h. */ | |
19458 | $ac_includes_default | |
19459 | #include <$ac_header> | |
19460 | _ACEOF | |
19461 | rm -f conftest.$ac_objext | |
19462 | if { (ac_try="$ac_compile" | |
19463 | case "(($ac_try" in | |
19464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19465 | *) ac_try_echo=$ac_try;; | |
ca81d7a0 | 19466 | esac |
bf89cb4d GM |
19467 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19468 | $as_echo "$ac_try_echo") >&5 | |
19469 | (eval "$ac_compile") 2>conftest.er1 | |
19470 | ac_status=$? | |
19471 | grep -v '^ *+' conftest.er1 >conftest.err | |
19472 | rm -f conftest.er1 | |
19473 | cat conftest.err >&5 | |
19474 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19475 | (exit $ac_status); } && { | |
19476 | test -z "$ac_c_werror_flag" || | |
19477 | test ! -s conftest.err | |
19478 | } && test -s conftest.$ac_objext; then | |
19479 | ac_header_compiler=yes | |
52dbaac8 | 19480 | else |
bf89cb4d GM |
19481 | $as_echo "$as_me: failed program was:" >&5 |
19482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
52dbaac8 | 19483 | |
bf89cb4d GM |
19484 | ac_header_compiler=no |
19485 | fi | |
0ca10bb7 | 19486 | |
bf89cb4d GM |
19487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19488 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19489 | $as_echo "$ac_header_compiler" >&6; } | |
0ca10bb7 | 19490 | |
bf89cb4d GM |
19491 | # Is the header present? |
19492 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19493 | $as_echo_n "checking $ac_header presence... " >&6; } | |
19494 | cat >conftest.$ac_ext <<_ACEOF | |
19495 | /* confdefs.h. */ | |
19496 | _ACEOF | |
19497 | cat confdefs.h >>conftest.$ac_ext | |
19498 | cat >>conftest.$ac_ext <<_ACEOF | |
19499 | /* end confdefs.h. */ | |
19500 | #include <$ac_header> | |
19501 | _ACEOF | |
19502 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
19503 | case "(($ac_try" in | |
19504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19505 | *) ac_try_echo=$ac_try;; | |
19506 | esac | |
19507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19508 | $as_echo "$ac_try_echo") >&5 | |
19509 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
19510 | ac_status=$? | |
19511 | grep -v '^ *+' conftest.er1 >conftest.err | |
19512 | rm -f conftest.er1 | |
19513 | cat conftest.err >&5 | |
19514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19515 | (exit $ac_status); } >/dev/null && { | |
19516 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
19517 | test ! -s conftest.err | |
19518 | }; then | |
19519 | ac_header_preproc=yes | |
19520 | else | |
19521 | $as_echo "$as_me: failed program was:" >&5 | |
19522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 19523 | |
bf89cb4d GM |
19524 | ac_header_preproc=no |
19525 | fi | |
0ca10bb7 | 19526 | |
bf89cb4d GM |
19527 | rm -f conftest.err conftest.$ac_ext |
19528 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19529 | $as_echo "$ac_header_preproc" >&6; } | |
0ca10bb7 | 19530 | |
bf89cb4d GM |
19531 | # So? What about this header? |
19532 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19533 | yes:no: ) | |
19534 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19535 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19536 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
19537 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19538 | ac_header_preproc=yes | |
19539 | ;; | |
19540 | no:yes:* ) | |
19541 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19542 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19543 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19544 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19545 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19546 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19547 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19548 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
19549 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19550 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19551 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
19552 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
0ca10bb7 | 19553 | |
bf89cb4d GM |
19554 | ;; |
19555 | esac | |
19556 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19557 | $as_echo_n "checking for $ac_header... " >&6; } | |
19558 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
19559 | $as_echo_n "(cached) " >&6 | |
19560 | else | |
19561 | eval "$as_ac_Header=\$ac_header_preproc" | |
19562 | fi | |
19563 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
19564 | $as_echo "$as_val"'` | |
19565 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19566 | $as_echo "$ac_res" >&6; } | |
0ca10bb7 | 19567 | |
bf89cb4d GM |
19568 | fi |
19569 | if test `eval 'as_val=${'$as_ac_Header'} | |
19570 | $as_echo "$as_val"'` = yes; then | |
19571 | cat >>confdefs.h <<_ACEOF | |
19572 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19573 | _ACEOF | |
0ca10bb7 | 19574 | |
bf89cb4d | 19575 | fi |
52dbaac8 | 19576 | |
bf89cb4d | 19577 | done |
0ca10bb7 | 19578 | |
bf89cb4d | 19579 | fi |
0ca10bb7 | 19580 | |
0ca10bb7 | 19581 | |
bf89cb4d GM |
19582 | for ac_header in nlist.h |
19583 | do | |
19584 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19585 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
19586 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19587 | $as_echo_n "checking for $ac_header... " >&6; } | |
19588 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 19589 | $as_echo_n "(cached) " >&6 |
bf89cb4d GM |
19590 | fi |
19591 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
19592 | $as_echo "$as_val"'` | |
19593 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19594 | $as_echo "$ac_res" >&6; } | |
52dbaac8 | 19595 | else |
bf89cb4d GM |
19596 | # Is the header compilable? |
19597 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19598 | $as_echo_n "checking $ac_header usability... " >&6; } | |
19599 | cat >conftest.$ac_ext <<_ACEOF | |
19600 | /* confdefs.h. */ | |
19601 | _ACEOF | |
19602 | cat confdefs.h >>conftest.$ac_ext | |
19603 | cat >>conftest.$ac_ext <<_ACEOF | |
52dbaac8 | 19604 | /* end confdefs.h. */ |
bf89cb4d GM |
19605 | $ac_includes_default |
19606 | #include <$ac_header> | |
52dbaac8 | 19607 | _ACEOF |
bf89cb4d GM |
19608 | rm -f conftest.$ac_objext |
19609 | if { (ac_try="$ac_compile" | |
19610 | case "(($ac_try" in | |
19611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19612 | *) ac_try_echo=$ac_try;; | |
19613 | esac | |
19614 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19615 | $as_echo "$ac_try_echo") >&5 | |
19616 | (eval "$ac_compile") 2>conftest.er1 | |
19617 | ac_status=$? | |
19618 | grep -v '^ *+' conftest.er1 >conftest.err | |
19619 | rm -f conftest.er1 | |
19620 | cat conftest.err >&5 | |
19621 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19622 | (exit $ac_status); } && { | |
19623 | test -z "$ac_c_werror_flag" || | |
19624 | test ! -s conftest.err | |
19625 | } && test -s conftest.$ac_objext; then | |
19626 | ac_header_compiler=yes | |
52dbaac8 | 19627 | else |
bf89cb4d GM |
19628 | $as_echo "$as_me: failed program was:" >&5 |
19629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19630 | ||
19631 | ac_header_compiler=no | |
52dbaac8 PE |
19632 | fi |
19633 | ||
bf89cb4d GM |
19634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19635 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19636 | $as_echo "$ac_header_compiler" >&6; } | |
19637 | ||
19638 | # Is the header present? | |
19639 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19640 | $as_echo_n "checking $ac_header presence... " >&6; } | |
19641 | cat >conftest.$ac_ext <<_ACEOF | |
19642 | /* confdefs.h. */ | |
19643 | _ACEOF | |
19644 | cat confdefs.h >>conftest.$ac_ext | |
19645 | cat >>conftest.$ac_ext <<_ACEOF | |
19646 | /* end confdefs.h. */ | |
19647 | #include <$ac_header> | |
19648 | _ACEOF | |
19649 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
19650 | case "(($ac_try" in | |
19651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19652 | *) ac_try_echo=$ac_try;; | |
19653 | esac | |
19654 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19655 | $as_echo "$ac_try_echo") >&5 | |
19656 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
19657 | ac_status=$? | |
19658 | grep -v '^ *+' conftest.er1 >conftest.err | |
19659 | rm -f conftest.er1 | |
19660 | cat conftest.err >&5 | |
19661 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19662 | (exit $ac_status); } >/dev/null && { | |
19663 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
19664 | test ! -s conftest.err | |
19665 | }; then | |
19666 | ac_header_preproc=yes | |
19667 | else | |
19668 | $as_echo "$as_me: failed program was:" >&5 | |
19669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
52dbaac8 | 19670 | |
bf89cb4d GM |
19671 | ac_header_preproc=no |
19672 | fi | |
52dbaac8 | 19673 | |
bf89cb4d GM |
19674 | rm -f conftest.err conftest.$ac_ext |
19675 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19676 | $as_echo "$ac_header_preproc" >&6; } | |
0ca10bb7 | 19677 | |
bf89cb4d GM |
19678 | # So? What about this header? |
19679 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19680 | yes:no: ) | |
19681 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19682 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19683 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
19684 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19685 | ac_header_preproc=yes | |
19686 | ;; | |
19687 | no:yes:* ) | |
19688 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19689 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19690 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19691 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19692 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19693 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19694 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19695 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
19696 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19697 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
19699 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
0ca10bb7 | 19700 | |
bf89cb4d GM |
19701 | ;; |
19702 | esac | |
19703 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19704 | $as_echo_n "checking for $ac_header... " >&6; } | |
19705 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
19706 | $as_echo_n "(cached) " >&6 | |
19707 | else | |
19708 | eval "$as_ac_Header=\$ac_header_preproc" | |
19709 | fi | |
19710 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
19711 | $as_echo "$as_val"'` | |
19712 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19713 | $as_echo "$ac_res" >&6; } | |
0ca10bb7 | 19714 | |
bf89cb4d GM |
19715 | fi |
19716 | if test `eval 'as_val=${'$as_ac_Header'} | |
19717 | $as_echo "$as_val"'` = yes; then | |
19718 | cat >>confdefs.h <<_ACEOF | |
19719 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19720 | _ACEOF | |
19721 | { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 | |
19722 | $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; } | |
19723 | if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
0ca10bb7 | 19724 | $as_echo_n "(cached) " >&6 |
52dbaac8 | 19725 | else |
bf89cb4d GM |
19726 | cat >conftest.$ac_ext <<_ACEOF |
19727 | /* confdefs.h. */ | |
19728 | _ACEOF | |
19729 | cat confdefs.h >>conftest.$ac_ext | |
19730 | cat >>conftest.$ac_ext <<_ACEOF | |
19731 | /* end confdefs.h. */ | |
19732 | #include <nlist.h> | |
52dbaac8 | 19733 | |
bf89cb4d GM |
19734 | int |
19735 | main () | |
19736 | { | |
19737 | static struct nlist ac_aggr; | |
19738 | if (ac_aggr.n_un.n_name) | |
19739 | return 0; | |
19740 | ; | |
19741 | return 0; | |
19742 | } | |
19743 | _ACEOF | |
19744 | rm -f conftest.$ac_objext | |
19745 | if { (ac_try="$ac_compile" | |
19746 | case "(($ac_try" in | |
19747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19748 | *) ac_try_echo=$ac_try;; | |
0ca10bb7 | 19749 | esac |
bf89cb4d GM |
19750 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
19751 | $as_echo "$ac_try_echo") >&5 | |
19752 | (eval "$ac_compile") 2>conftest.er1 | |
19753 | ac_status=$? | |
19754 | grep -v '^ *+' conftest.er1 >conftest.err | |
19755 | rm -f conftest.er1 | |
19756 | cat conftest.err >&5 | |
19757 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19758 | (exit $ac_status); } && { | |
19759 | test -z "$ac_c_werror_flag" || | |
19760 | test ! -s conftest.err | |
19761 | } && test -s conftest.$ac_objext; then | |
19762 | ac_cv_member_struct_nlist_n_un_n_name=yes | |
0ca10bb7 | 19763 | else |
bf89cb4d GM |
19764 | $as_echo "$as_me: failed program was:" >&5 |
19765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
52dbaac8 | 19766 | |
bf89cb4d GM |
19767 | cat >conftest.$ac_ext <<_ACEOF |
19768 | /* confdefs.h. */ | |
19769 | _ACEOF | |
19770 | cat confdefs.h >>conftest.$ac_ext | |
19771 | cat >>conftest.$ac_ext <<_ACEOF | |
19772 | /* end confdefs.h. */ | |
19773 | #include <nlist.h> | |
52dbaac8 | 19774 | |
bf89cb4d GM |
19775 | int |
19776 | main () | |
19777 | { | |
19778 | static struct nlist ac_aggr; | |
19779 | if (sizeof ac_aggr.n_un.n_name) | |
19780 | return 0; | |
19781 | ; | |
19782 | return 0; | |
19783 | } | |
19784 | _ACEOF | |
19785 | rm -f conftest.$ac_objext | |
19786 | if { (ac_try="$ac_compile" | |
19787 | case "(($ac_try" in | |
19788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19789 | *) ac_try_echo=$ac_try;; | |
19790 | esac | |
19791 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19792 | $as_echo "$ac_try_echo") >&5 | |
19793 | (eval "$ac_compile") 2>conftest.er1 | |
19794 | ac_status=$? | |
19795 | grep -v '^ *+' conftest.er1 >conftest.err | |
19796 | rm -f conftest.er1 | |
19797 | cat conftest.err >&5 | |
19798 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19799 | (exit $ac_status); } && { | |
19800 | test -z "$ac_c_werror_flag" || | |
19801 | test ! -s conftest.err | |
19802 | } && test -s conftest.$ac_objext; then | |
19803 | ac_cv_member_struct_nlist_n_un_n_name=yes | |
19804 | else | |
19805 | $as_echo "$as_me: failed program was:" >&5 | |
19806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
52dbaac8 | 19807 | |
bf89cb4d GM |
19808 | ac_cv_member_struct_nlist_n_un_n_name=no |
19809 | fi | |
52dbaac8 | 19810 | |
bf89cb4d GM |
19811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19812 | fi | |
52dbaac8 | 19813 | |
bf89cb4d GM |
19814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19815 | fi | |
19816 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 | |
19817 | $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; } | |
19818 | if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
52dbaac8 | 19819 | |
bf89cb4d GM |
19820 | cat >>confdefs.h <<_ACEOF |
19821 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 | |
19822 | _ACEOF | |
52dbaac8 PE |
19823 | |
19824 | ||
bf89cb4d GM |
19825 | cat >>confdefs.h <<\_ACEOF |
19826 | #define NLIST_NAME_UNION 1 | |
19827 | _ACEOF | |
52dbaac8 | 19828 | |
bf89cb4d | 19829 | fi |
52dbaac8 PE |
19830 | |
19831 | ||
bf89cb4d | 19832 | fi |
52dbaac8 | 19833 | |
bf89cb4d | 19834 | done |
52dbaac8 | 19835 | |
cd958eb3 | 19836 | fi |
bf89cb4d | 19837 | done |
cd958eb3 MB |
19838 | |
19839 | ||
bf89cb4d GM |
19840 | # Some definitions of getloadavg require that the program be installed setgid. |
19841 | { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 | |
19842 | $as_echo_n "checking whether getloadavg requires setgid... " >&6; } | |
19843 | if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
19844 | $as_echo_n "(cached) " >&6 | |
19845 | else | |
19846 | cat >conftest.$ac_ext <<_ACEOF | |
19847 | /* confdefs.h. */ | |
19848 | _ACEOF | |
19849 | cat confdefs.h >>conftest.$ac_ext | |
19850 | cat >>conftest.$ac_ext <<_ACEOF | |
19851 | /* end confdefs.h. */ | |
19852 | #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" | |
19853 | #ifdef LDAV_PRIVILEGED | |
19854 | Yowza Am I SETGID yet | |
19855 | #endif | |
19856 | _ACEOF | |
19857 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19858 | $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
19859 | ac_cv_func_getloadavg_setgid=yes | |
19860 | else | |
19861 | ac_cv_func_getloadavg_setgid=no | |
19862 | fi | |
19863 | rm -f conftest* | |
973a76b1 | 19864 | |
bf89cb4d GM |
19865 | fi |
19866 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 | |
19867 | $as_echo "$ac_cv_func_getloadavg_setgid" >&6; } | |
19868 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
19869 | NEED_SETGID=true | |
edfaf76d | 19870 | |
bf89cb4d GM |
19871 | cat >>confdefs.h <<\_ACEOF |
19872 | #define GETLOADAVG_PRIVILEGED 1 | |
19873 | _ACEOF | |
edfaf76d | 19874 | |
bf89cb4d GM |
19875 | else |
19876 | NEED_SETGID=false | |
19877 | fi | |
edfaf76d | 19878 | |
bf89cb4d GM |
19879 | if test $ac_cv_func_getloadavg_setgid = yes; then |
19880 | { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 | |
19881 | $as_echo_n "checking group of /dev/kmem... " >&6; } | |
19882 | if test "${ac_cv_group_kmem+set}" = set; then | |
19883 | $as_echo_n "(cached) " >&6 | |
19884 | else | |
19885 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
19886 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
19887 | # If we got an error (system does not support symlinks), try without -L. | |
19888 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
19889 | ac_cv_group_kmem=`$as_echo "$ac_ls_output" \ | |
19890 | | sed -ne 's/[ ][ ]*/ /g; | |
19891 | s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
19892 | / /s/.* //;p;'` | |
973a76b1 | 19893 | |
bf89cb4d GM |
19894 | fi |
19895 | { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 | |
19896 | $as_echo "$ac_cv_group_kmem" >&6; } | |
19897 | KMEM_GROUP=$ac_cv_group_kmem | |
19898 | fi | |
19899 | if test "x$ac_save_LIBS" = x; then | |
19900 | GETLOADAVG_LIBS=$LIBS | |
19901 | else | |
19902 | GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"` | |
19903 | fi | |
19904 | LIBS=$ac_save_LIBS | |
19650fd6 | 19905 | |
ca81d7a0 | 19906 | |
973a76b1 | 19907 | |
bf89cb4d GM |
19908 | { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
19909 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } | |
19910 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
e9a63f04 | 19911 | $as_echo_n "(cached) " >&6 |
973a76b1 | 19912 | else |
bf89cb4d GM |
19913 | while :; do |
19914 | cat >conftest.$ac_ext <<_ACEOF | |
19915 | /* confdefs.h. */ | |
19916 | _ACEOF | |
19917 | cat confdefs.h >>conftest.$ac_ext | |
19918 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 19919 | /* end confdefs.h. */ |
bf89cb4d GM |
19920 | #include <sys/types.h> /* for off_t */ |
19921 | #include <stdio.h> | |
973a76b1 DL |
19922 | int |
19923 | main () | |
19924 | { | |
bf89cb4d GM |
19925 | int (*fp) (FILE *, off_t, int) = fseeko; |
19926 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | |
973a76b1 DL |
19927 | ; |
19928 | return 0; | |
19929 | } | |
19930 | _ACEOF | |
bf89cb4d GM |
19931 | rm -f conftest.$ac_objext conftest$ac_exeext |
19932 | if { (ac_try="$ac_link" | |
19933 | case "(($ac_try" in | |
19934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19935 | *) ac_try_echo=$ac_try;; | |
19936 | esac | |
19937 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19938 | $as_echo "$ac_try_echo") >&5 | |
19939 | (eval "$ac_link") 2>conftest.er1 | |
19940 | ac_status=$? | |
19941 | grep -v '^ *+' conftest.er1 >conftest.err | |
19942 | rm -f conftest.er1 | |
19943 | cat conftest.err >&5 | |
19944 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19945 | (exit $ac_status); } && { | |
19946 | test -z "$ac_c_werror_flag" || | |
19947 | test ! -s conftest.err | |
19948 | } && test -s conftest$ac_exeext && { | |
19949 | test "$cross_compiling" = yes || | |
19950 | $as_test_x conftest$ac_exeext | |
19951 | }; then | |
19952 | ac_cv_sys_largefile_source=no; break | |
973a76b1 | 19953 | else |
bf89cb4d GM |
19954 | $as_echo "$as_me: failed program was:" >&5 |
19955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19956 | ||
19957 | ||
973a76b1 DL |
19958 | fi |
19959 | ||
bf89cb4d GM |
19960 | rm -rf conftest.dSYM |
19961 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19962 | conftest$ac_exeext conftest.$ac_ext | |
19963 | cat >conftest.$ac_ext <<_ACEOF | |
19964 | /* confdefs.h. */ | |
19965 | _ACEOF | |
19966 | cat confdefs.h >>conftest.$ac_ext | |
19967 | cat >>conftest.$ac_ext <<_ACEOF | |
19968 | /* end confdefs.h. */ | |
19969 | #define _LARGEFILE_SOURCE 1 | |
19970 | #include <sys/types.h> /* for off_t */ | |
19971 | #include <stdio.h> | |
19972 | int | |
19973 | main () | |
19974 | { | |
19975 | int (*fp) (FILE *, off_t, int) = fseeko; | |
19976 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | |
19977 | ; | |
19978 | return 0; | |
19979 | } | |
19980 | _ACEOF | |
19981 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19982 | if { (ac_try="$ac_link" | |
19983 | case "(($ac_try" in | |
19984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19985 | *) ac_try_echo=$ac_try;; | |
19986 | esac | |
19987 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19988 | $as_echo "$ac_try_echo") >&5 | |
19989 | (eval "$ac_link") 2>conftest.er1 | |
19990 | ac_status=$? | |
19991 | grep -v '^ *+' conftest.er1 >conftest.err | |
19992 | rm -f conftest.er1 | |
19993 | cat conftest.err >&5 | |
19994 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19995 | (exit $ac_status); } && { | |
19996 | test -z "$ac_c_werror_flag" || | |
19997 | test ! -s conftest.err | |
19998 | } && test -s conftest$ac_exeext && { | |
19999 | test "$cross_compiling" = yes || | |
20000 | $as_test_x conftest$ac_exeext | |
20001 | }; then | |
20002 | ac_cv_sys_largefile_source=1; break | |
20003 | else | |
20004 | $as_echo "$as_me: failed program was:" >&5 | |
20005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20006 | ||
20007 | ||
973a76b1 | 20008 | fi |
973a76b1 | 20009 | |
bf89cb4d GM |
20010 | rm -rf conftest.dSYM |
20011 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20012 | conftest$ac_exeext conftest.$ac_ext | |
20013 | ac_cv_sys_largefile_source=unknown | |
20014 | break | |
20015 | done | |
20016 | fi | |
20017 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
20018 | $as_echo "$ac_cv_sys_largefile_source" >&6; } | |
20019 | case $ac_cv_sys_largefile_source in #( | |
20020 | no | unknown) ;; | |
20021 | *) | |
20022 | cat >>confdefs.h <<_ACEOF | |
20023 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
20024 | _ACEOF | |
20025 | ;; | |
20026 | esac | |
20027 | rm -rf conftest* | |
973a76b1 | 20028 | |
bf89cb4d GM |
20029 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
20030 | # in glibc 2.1.3, but that breaks too many other things. | |
20031 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
20032 | if test $ac_cv_sys_largefile_source != unknown; then | |
b936fae4 | 20033 | |
bf89cb4d GM |
20034 | cat >>confdefs.h <<\_ACEOF |
20035 | #define HAVE_FSEEKO 1 | |
19650fd6 | 20036 | _ACEOF |
bf89cb4d | 20037 | |
0ca10bb7 | 20038 | fi |
edfaf76d | 20039 | |
edfaf76d | 20040 | |
bf89cb4d GM |
20041 | # Configure getopt. |
20042 | # getopt.m4 serial 10 | |
20043 | ||
20044 | # The getopt module assume you want GNU getopt, with getopt_long etc, | |
20045 | # rather than vanilla POSIX getopt. This means your your code should | |
20046 | # always include <getopt.h> for the getopt prototypes. | |
20047 | ||
20048 | ||
20049 | ||
20050 | ||
20051 | ||
20052 | ||
20053 | ||
20054 | ||
20055 | ||
20056 | ||
0ca10bb7 | 20057 | |
bf89cb4d | 20058 | # Prerequisites of lib/getopt*. |
0ca10bb7 | 20059 | |
0ca10bb7 | 20060 | |
edfaf76d | 20061 | |
bf89cb4d GM |
20062 | |
20063 | GETOPT_H= | |
20064 | ||
20065 | for ac_header in getopt.h | |
20066 | do | |
20067 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20068 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
20069 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20070 | $as_echo_n "checking for $ac_header... " >&6; } | |
20071 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
0ca10bb7 | 20072 | $as_echo_n "(cached) " >&6 |
bf89cb4d GM |
20073 | fi |
20074 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
20075 | $as_echo "$as_val"'` | |
20076 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20077 | $as_echo "$ac_res" >&6; } | |
0ca10bb7 | 20078 | else |
bf89cb4d GM |
20079 | # Is the header compilable? |
20080 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20081 | $as_echo_n "checking $ac_header usability... " >&6; } | |
20082 | cat >conftest.$ac_ext <<_ACEOF | |
20083 | /* confdefs.h. */ | |
20084 | _ACEOF | |
20085 | cat confdefs.h >>conftest.$ac_ext | |
20086 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 | 20087 | /* end confdefs.h. */ |
bf89cb4d GM |
20088 | $ac_includes_default |
20089 | #include <$ac_header> | |
503d2be0 | 20090 | _ACEOF |
bf89cb4d GM |
20091 | rm -f conftest.$ac_objext |
20092 | if { (ac_try="$ac_compile" | |
20093 | case "(($ac_try" in | |
20094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20095 | *) ac_try_echo=$ac_try;; | |
20096 | esac | |
20097 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20098 | $as_echo "$ac_try_echo") >&5 | |
20099 | (eval "$ac_compile") 2>conftest.er1 | |
20100 | ac_status=$? | |
20101 | grep -v '^ *+' conftest.er1 >conftest.err | |
20102 | rm -f conftest.er1 | |
20103 | cat conftest.err >&5 | |
20104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20105 | (exit $ac_status); } && { | |
20106 | test -z "$ac_c_werror_flag" || | |
20107 | test ! -s conftest.err | |
20108 | } && test -s conftest.$ac_objext; then | |
20109 | ac_header_compiler=yes | |
503d2be0 | 20110 | else |
bf89cb4d GM |
20111 | $as_echo "$as_me: failed program was:" >&5 |
20112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 20113 | |
bf89cb4d | 20114 | ac_header_compiler=no |
0ca10bb7 RC |
20115 | fi |
20116 | ||
bf89cb4d GM |
20117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20118 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20119 | $as_echo "$ac_header_compiler" >&6; } | |
0ca10bb7 | 20120 | |
bf89cb4d GM |
20121 | # Is the header present? |
20122 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20123 | $as_echo_n "checking $ac_header presence... " >&6; } | |
20124 | cat >conftest.$ac_ext <<_ACEOF | |
20125 | /* confdefs.h. */ | |
20126 | _ACEOF | |
20127 | cat confdefs.h >>conftest.$ac_ext | |
20128 | cat >>conftest.$ac_ext <<_ACEOF | |
20129 | /* end confdefs.h. */ | |
20130 | #include <$ac_header> | |
20131 | _ACEOF | |
20132 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
20133 | case "(($ac_try" in | |
20134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20135 | *) ac_try_echo=$ac_try;; | |
20136 | esac | |
20137 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20138 | $as_echo "$ac_try_echo") >&5 | |
20139 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
20140 | ac_status=$? | |
20141 | grep -v '^ *+' conftest.er1 >conftest.err | |
20142 | rm -f conftest.er1 | |
20143 | cat conftest.err >&5 | |
20144 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20145 | (exit $ac_status); } >/dev/null && { | |
20146 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20147 | test ! -s conftest.err | |
20148 | }; then | |
20149 | ac_header_preproc=yes | |
20150 | else | |
20151 | $as_echo "$as_me: failed program was:" >&5 | |
20152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 20153 | |
bf89cb4d GM |
20154 | ac_header_preproc=no |
20155 | fi | |
19650fd6 | 20156 | |
bf89cb4d GM |
20157 | rm -f conftest.err conftest.$ac_ext |
20158 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20159 | $as_echo "$ac_header_preproc" >&6; } | |
0ca10bb7 | 20160 | |
bf89cb4d GM |
20161 | # So? What about this header? |
20162 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20163 | yes:no: ) | |
20164 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20165 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20166 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
20167 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20168 | ac_header_preproc=yes | |
20169 | ;; | |
20170 | no:yes:* ) | |
20171 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
20172 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
20173 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
20174 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20175 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20176 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20177 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20178 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
20179 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
20180 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
20181 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
20182 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
0ca10bb7 | 20183 | |
bf89cb4d GM |
20184 | ;; |
20185 | esac | |
20186 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20187 | $as_echo_n "checking for $ac_header... " >&6; } | |
20188 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
20189 | $as_echo_n "(cached) " >&6 | |
0ca10bb7 | 20190 | else |
bf89cb4d | 20191 | eval "$as_ac_Header=\$ac_header_preproc" |
503d2be0 | 20192 | fi |
bf89cb4d GM |
20193 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
20194 | $as_echo "$as_val"'` | |
20195 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20196 | $as_echo "$ac_res" >&6; } | |
ca81d7a0 | 20197 | |
503d2be0 | 20198 | fi |
bf89cb4d GM |
20199 | if test `eval 'as_val=${'$as_ac_Header'} |
20200 | $as_echo "$as_val"'` = yes; then | |
c0d27fcc | 20201 | cat >>confdefs.h <<_ACEOF |
0ca10bb7 | 20202 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 20203 | _ACEOF |
4c343001 | 20204 | |
bf89cb4d GM |
20205 | else |
20206 | GETOPT_H=getopt.h | |
4c343001 | 20207 | fi |
c0d27fcc | 20208 | |
0ca10bb7 | 20209 | done |
4c343001 | 20210 | |
bf89cb4d GM |
20211 | if test -z "$GETOPT_H"; then |
20212 | ||
20213 | for ac_func in getopt_long_only | |
20214 | do | |
20215 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20216 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20217 | $as_echo_n "checking for $ac_func... " >&6; } | |
20218 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 20219 | $as_echo_n "(cached) " >&6 |
4c343001 | 20220 | else |
bf89cb4d GM |
20221 | cat >conftest.$ac_ext <<_ACEOF |
20222 | /* confdefs.h. */ | |
503d2be0 | 20223 | _ACEOF |
bf89cb4d GM |
20224 | cat confdefs.h >>conftest.$ac_ext |
20225 | cat >>conftest.$ac_ext <<_ACEOF | |
20226 | /* end confdefs.h. */ | |
20227 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
20228 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20229 | #define $ac_func innocuous_$ac_func | |
503d2be0 | 20230 | |
bf89cb4d GM |
20231 | /* System header to define __stub macros and hopefully few prototypes, |
20232 | which can conflict with char $ac_func (); below. | |
20233 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20234 | <limits.h> exists even on freestanding compilers. */ | |
0ca10bb7 | 20235 | |
bf89cb4d GM |
20236 | #ifdef __STDC__ |
20237 | # include <limits.h> | |
20238 | #else | |
20239 | # include <assert.h> | |
20240 | #endif | |
0ca10bb7 | 20241 | |
bf89cb4d | 20242 | #undef $ac_func |
503d2be0 | 20243 | |
ca81d7a0 JD |
20244 | /* Override any GCC internal prototype to avoid an error. |
20245 | Use char because int might match the return type of a GCC | |
20246 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20247 | #ifdef __cplusplus |
20248 | extern "C" | |
20249 | #endif | |
bf89cb4d GM |
20250 | char $ac_func (); |
20251 | /* The GNU C library defines this for functions which it implements | |
20252 | to always fail with ENOSYS. Some functions are actually named | |
20253 | something starting with __ and the normal name is an alias. */ | |
20254 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
20255 | choke me | |
20256 | #endif | |
20257 | ||
503d2be0 AS |
20258 | int |
20259 | main () | |
20260 | { | |
bf89cb4d | 20261 | return $ac_func (); |
503d2be0 AS |
20262 | ; |
20263 | return 0; | |
20264 | } | |
20265 | _ACEOF | |
bf89cb4d GM |
20266 | rm -f conftest.$ac_objext conftest$ac_exeext |
20267 | if { (ac_try="$ac_link" | |
20268 | case "(($ac_try" in | |
20269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20270 | *) ac_try_echo=$ac_try;; | |
20271 | esac | |
20272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20273 | $as_echo "$ac_try_echo") >&5 | |
20274 | (eval "$ac_link") 2>conftest.er1 | |
20275 | ac_status=$? | |
20276 | grep -v '^ *+' conftest.er1 >conftest.err | |
20277 | rm -f conftest.er1 | |
20278 | cat conftest.err >&5 | |
20279 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20280 | (exit $ac_status); } && { | |
20281 | test -z "$ac_c_werror_flag" || | |
20282 | test ! -s conftest.err | |
20283 | } && test -s conftest$ac_exeext && { | |
20284 | test "$cross_compiling" = yes || | |
20285 | $as_test_x conftest$ac_exeext | |
20286 | }; then | |
20287 | eval "$as_ac_var=yes" | |
503d2be0 | 20288 | else |
bf89cb4d GM |
20289 | $as_echo "$as_me: failed program was:" >&5 |
20290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ba4481b5 | 20291 | |
bf89cb4d | 20292 | eval "$as_ac_var=no" |
ba4481b5 DL |
20293 | fi |
20294 | ||
bf89cb4d GM |
20295 | rm -rf conftest.dSYM |
20296 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20297 | conftest$ac_exeext conftest.$ac_ext | |
20298 | fi | |
20299 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
20300 | $as_echo "$as_val"'` | |
20301 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20302 | $as_echo "$ac_res" >&6; } | |
20303 | if test `eval 'as_val=${'$as_ac_var'} | |
20304 | $as_echo "$as_val"'` = yes; then | |
20305 | cat >>confdefs.h <<_ACEOF | |
20306 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20307 | _ACEOF | |
c0d27fcc | 20308 | |
bf89cb4d GM |
20309 | else |
20310 | GETOPT_H=getopt.h | |
20311 | fi | |
20312 | done | |
0ca10bb7 RC |
20313 | |
20314 | fi | |
bc3512d0 | 20315 | |
bf89cb4d GM |
20316 | if test -z "$GETOPT_H"; then |
20317 | { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5 | |
20318 | $as_echo_n "checking whether optreset is declared... " >&6; } | |
20319 | if test "${ac_cv_have_decl_optreset+set}" = set; then | |
0ca10bb7 RC |
20320 | $as_echo_n "(cached) " >&6 |
20321 | else | |
bf89cb4d GM |
20322 | cat >conftest.$ac_ext <<_ACEOF |
20323 | /* confdefs.h. */ | |
20324 | _ACEOF | |
20325 | cat confdefs.h >>conftest.$ac_ext | |
20326 | cat >>conftest.$ac_ext <<_ACEOF | |
bc3512d0 | 20327 | /* end confdefs.h. */ |
bf89cb4d | 20328 | #include <getopt.h> |
0ca10bb7 | 20329 | |
bc3512d0 CY |
20330 | int |
20331 | main () | |
20332 | { | |
bf89cb4d GM |
20333 | #ifndef optreset |
20334 | (void) optreset; | |
20335 | #endif | |
20336 | ||
bc3512d0 CY |
20337 | ; |
20338 | return 0; | |
20339 | } | |
20340 | _ACEOF | |
bf89cb4d GM |
20341 | rm -f conftest.$ac_objext |
20342 | if { (ac_try="$ac_compile" | |
20343 | case "(($ac_try" in | |
20344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20345 | *) ac_try_echo=$ac_try;; | |
20346 | esac | |
20347 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20348 | $as_echo "$ac_try_echo") >&5 | |
20349 | (eval "$ac_compile") 2>conftest.er1 | |
20350 | ac_status=$? | |
20351 | grep -v '^ *+' conftest.er1 >conftest.err | |
20352 | rm -f conftest.er1 | |
20353 | cat conftest.err >&5 | |
20354 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20355 | (exit $ac_status); } && { | |
20356 | test -z "$ac_c_werror_flag" || | |
20357 | test ! -s conftest.err | |
20358 | } && test -s conftest.$ac_objext; then | |
20359 | ac_cv_have_decl_optreset=yes | |
0ca10bb7 | 20360 | else |
bf89cb4d GM |
20361 | $as_echo "$as_me: failed program was:" >&5 |
20362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bc3512d0 | 20363 | |
bf89cb4d GM |
20364 | ac_cv_have_decl_optreset=no |
20365 | fi | |
20366 | ||
20367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20368 | fi | |
20369 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 | |
20370 | $as_echo "$ac_cv_have_decl_optreset" >&6; } | |
20371 | if test $ac_cv_have_decl_optreset = yes; then | |
20372 | GETOPT_H=getopt.h | |
0ca10bb7 | 20373 | fi |
bc3512d0 | 20374 | |
0ca10bb7 RC |
20375 | fi |
20376 | ||
bf89cb4d GM |
20377 | if test -z "$GETOPT_H"; then |
20378 | { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 | |
20379 | $as_echo_n "checking for working GNU getopt function... " >&6; } | |
20380 | if test "${gl_cv_func_gnu_getopt+set}" = set; then | |
e9a63f04 | 20381 | $as_echo_n "(cached) " >&6 |
84e70f78 | 20382 | else |
bf89cb4d GM |
20383 | if test "$cross_compiling" = yes; then |
20384 | { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5 | |
20385 | $as_echo_n "checking whether getopt_clip is declared... " >&6; } | |
20386 | if test "${ac_cv_have_decl_getopt_clip+set}" = set; then | |
20387 | $as_echo_n "(cached) " >&6 | |
20388 | else | |
20389 | cat >conftest.$ac_ext <<_ACEOF | |
20390 | /* confdefs.h. */ | |
20391 | _ACEOF | |
20392 | cat confdefs.h >>conftest.$ac_ext | |
20393 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 20394 | /* end confdefs.h. */ |
bf89cb4d | 20395 | #include <getopt.h> |
edfaf76d | 20396 | |
19650fd6 AS |
20397 | int |
20398 | main () | |
20399 | { | |
bf89cb4d GM |
20400 | #ifndef getopt_clip |
20401 | (void) getopt_clip; | |
20402 | #endif | |
20403 | ||
84e70f78 KR |
20404 | ; |
20405 | return 0; | |
20406 | } | |
20407 | _ACEOF | |
bf89cb4d GM |
20408 | rm -f conftest.$ac_objext |
20409 | if { (ac_try="$ac_compile" | |
20410 | case "(($ac_try" in | |
20411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20412 | *) ac_try_echo=$ac_try;; | |
20413 | esac | |
20414 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20415 | $as_echo "$ac_try_echo") >&5 | |
20416 | (eval "$ac_compile") 2>conftest.er1 | |
20417 | ac_status=$? | |
20418 | grep -v '^ *+' conftest.er1 >conftest.err | |
20419 | rm -f conftest.er1 | |
20420 | cat conftest.err >&5 | |
20421 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20422 | (exit $ac_status); } && { | |
20423 | test -z "$ac_c_werror_flag" || | |
20424 | test ! -s conftest.err | |
20425 | } && test -s conftest.$ac_objext; then | |
20426 | ac_cv_have_decl_getopt_clip=yes | |
84e70f78 | 20427 | else |
bf89cb4d GM |
20428 | $as_echo "$as_me: failed program was:" >&5 |
20429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19650fd6 | 20430 | |
bf89cb4d | 20431 | ac_cv_have_decl_getopt_clip=no |
84e70f78 | 20432 | fi |
ca81d7a0 | 20433 | |
bf89cb4d GM |
20434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20435 | fi | |
20436 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5 | |
20437 | $as_echo "$ac_cv_have_decl_getopt_clip" >&6; } | |
20438 | if test $ac_cv_have_decl_getopt_clip = yes; then | |
20439 | gl_cv_func_gnu_getopt=no | |
20440 | else | |
20441 | gl_cv_func_gnu_getopt=yes | |
84e70f78 | 20442 | fi |
0ca10bb7 | 20443 | |
84e70f78 | 20444 | else |
bf89cb4d GM |
20445 | cat >conftest.$ac_ext <<_ACEOF |
20446 | /* confdefs.h. */ | |
20447 | _ACEOF | |
20448 | cat confdefs.h >>conftest.$ac_ext | |
20449 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 20450 | /* end confdefs.h. */ |
bf89cb4d | 20451 | #include <getopt.h> |
19650fd6 AS |
20452 | int |
20453 | main () | |
20454 | { | |
bf89cb4d GM |
20455 | |
20456 | char *myargv[3]; | |
20457 | myargv[0] = "conftest"; | |
20458 | myargv[1] = "-+"; | |
20459 | myargv[2] = 0; | |
20460 | return getopt (2, myargv, "+a") != '?'; | |
20461 | ||
84e70f78 KR |
20462 | ; |
20463 | return 0; | |
20464 | } | |
20465 | _ACEOF | |
bf89cb4d GM |
20466 | rm -f conftest$ac_exeext |
20467 | if { (ac_try="$ac_link" | |
20468 | case "(($ac_try" in | |
20469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20470 | *) ac_try_echo=$ac_try;; | |
20471 | esac | |
20472 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20473 | $as_echo "$ac_try_echo") >&5 | |
20474 | (eval "$ac_link") 2>&5 | |
20475 | ac_status=$? | |
20476 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20477 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20478 | { (case "(($ac_try" in | |
20479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20480 | *) ac_try_echo=$ac_try;; | |
20481 | esac | |
20482 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20483 | $as_echo "$ac_try_echo") >&5 | |
20484 | (eval "$ac_try") 2>&5 | |
20485 | ac_status=$? | |
20486 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20487 | (exit $ac_status); }; }; then | |
20488 | gl_cv_func_gnu_getopt=yes | |
84e70f78 | 20489 | else |
bf89cb4d GM |
20490 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
20491 | $as_echo "$as_me: failed program was:" >&5 | |
20492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19650fd6 | 20493 | |
bf89cb4d GM |
20494 | ( exit $ac_status ) |
20495 | gl_cv_func_gnu_getopt=no | |
84e70f78 | 20496 | fi |
bf89cb4d GM |
20497 | rm -rf conftest.dSYM |
20498 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
84e70f78 | 20499 | fi |
0ca10bb7 | 20500 | |
0ca10bb7 RC |
20501 | |
20502 | fi | |
bf89cb4d GM |
20503 | { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 |
20504 | $as_echo "$gl_cv_func_gnu_getopt" >&6; } | |
20505 | if test "$gl_cv_func_gnu_getopt" = "no"; then | |
20506 | GETOPT_H=getopt.h | |
20507 | fi | |
20508 | fi | |
0ca10bb7 | 20509 | |
0ca10bb7 RC |
20510 | |
20511 | ||
bf89cb4d | 20512 | if test -n "$GETOPT_H"; then |
0ca10bb7 | 20513 | |
0ca10bb7 | 20514 | |
bf89cb4d | 20515 | GETOPT_H=getopt.h |
0ca10bb7 | 20516 | |
bf89cb4d GM |
20517 | cat >>confdefs.h <<\_ACEOF |
20518 | #define __GETOPT_PREFIX rpl_ | |
20519 | _ACEOF | |
0ca10bb7 | 20520 | |
0ca10bb7 | 20521 | |
0ca10bb7 | 20522 | |
bf89cb4d GM |
20523 | : |
20524 | GETOPTOBJS='getopt.o getopt1.o' | |
0ca10bb7 | 20525 | |
bf89cb4d | 20526 | fi |
0ca10bb7 | 20527 | |
0ca10bb7 | 20528 | |
0ca10bb7 RC |
20529 | |
20530 | ||
bf89cb4d GM |
20531 | { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
20532 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | |
20533 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | |
e9a63f04 | 20534 | $as_echo_n "(cached) " >&6 |
84e70f78 | 20535 | else |
bf89cb4d GM |
20536 | # Use it with a single arg. |
20537 | cat >conftest.$ac_ext <<_ACEOF | |
20538 | /* confdefs.h. */ | |
20539 | _ACEOF | |
20540 | cat confdefs.h >>conftest.$ac_ext | |
20541 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 20542 | /* end confdefs.h. */ |
bf89cb4d | 20543 | $ac_includes_default |
84e70f78 KR |
20544 | int |
20545 | main () | |
20546 | { | |
bf89cb4d | 20547 | getpgrp (0); |
84e70f78 KR |
20548 | ; |
20549 | return 0; | |
20550 | } | |
20551 | _ACEOF | |
bf89cb4d GM |
20552 | rm -f conftest.$ac_objext |
20553 | if { (ac_try="$ac_compile" | |
20554 | case "(($ac_try" in | |
20555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20556 | *) ac_try_echo=$ac_try;; | |
20557 | esac | |
20558 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20559 | $as_echo "$ac_try_echo") >&5 | |
20560 | (eval "$ac_compile") 2>conftest.er1 | |
20561 | ac_status=$? | |
20562 | grep -v '^ *+' conftest.er1 >conftest.err | |
20563 | rm -f conftest.er1 | |
20564 | cat conftest.err >&5 | |
20565 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20566 | (exit $ac_status); } && { | |
20567 | test -z "$ac_c_werror_flag" || | |
20568 | test ! -s conftest.err | |
20569 | } && test -s conftest.$ac_objext; then | |
20570 | ac_cv_func_getpgrp_void=no | |
84e70f78 | 20571 | else |
bf89cb4d GM |
20572 | $as_echo "$as_me: failed program was:" >&5 |
20573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19650fd6 | 20574 | |
bf89cb4d | 20575 | ac_cv_func_getpgrp_void=yes |
84e70f78 | 20576 | fi |
ca81d7a0 | 20577 | |
bf89cb4d | 20578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0ca10bb7 | 20579 | |
bf89cb4d GM |
20580 | fi |
20581 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | |
20582 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } | |
20583 | if test $ac_cv_func_getpgrp_void = yes; then | |
0ca10bb7 | 20584 | |
bf89cb4d GM |
20585 | cat >>confdefs.h <<\_ACEOF |
20586 | #define GETPGRP_VOID 1 | |
20587 | _ACEOF | |
0ca10bb7 | 20588 | |
84e70f78 | 20589 | fi |
0ca10bb7 | 20590 | |
bf89cb4d GM |
20591 | |
20592 | ||
20593 | for ac_func in strftime | |
20594 | do | |
20595 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20596 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20597 | $as_echo_n "checking for $ac_func... " >&6; } | |
20598 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 20599 | $as_echo_n "(cached) " >&6 |
84e70f78 | 20600 | else |
bf89cb4d GM |
20601 | cat >conftest.$ac_ext <<_ACEOF |
20602 | /* confdefs.h. */ | |
20603 | _ACEOF | |
20604 | cat confdefs.h >>conftest.$ac_ext | |
20605 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 | 20606 | /* end confdefs.h. */ |
bf89cb4d GM |
20607 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20608 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20609 | #define $ac_func innocuous_$ac_func | |
20610 | ||
20611 | /* System header to define __stub macros and hopefully few prototypes, | |
20612 | which can conflict with char $ac_func (); below. | |
20613 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20614 | <limits.h> exists even on freestanding compilers. */ | |
20615 | ||
20616 | #ifdef __STDC__ | |
20617 | # include <limits.h> | |
20618 | #else | |
20619 | # include <assert.h> | |
20620 | #endif | |
20621 | ||
20622 | #undef $ac_func | |
20623 | ||
20624 | /* Override any GCC internal prototype to avoid an error. | |
20625 | Use char because int might match the return type of a GCC | |
20626 | builtin and then its argument prototype would still apply. */ | |
20627 | #ifdef __cplusplus | |
20628 | extern "C" | |
20629 | #endif | |
20630 | char $ac_func (); | |
20631 | /* The GNU C library defines this for functions which it implements | |
20632 | to always fail with ENOSYS. Some functions are actually named | |
20633 | something starting with __ and the normal name is an alias. */ | |
20634 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
20635 | choke me | |
20636 | #endif | |
20637 | ||
0ca10bb7 RC |
20638 | int |
20639 | main () | |
20640 | { | |
bf89cb4d | 20641 | return $ac_func (); |
0ca10bb7 RC |
20642 | ; |
20643 | return 0; | |
20644 | } | |
19650fd6 | 20645 | _ACEOF |
bf89cb4d GM |
20646 | rm -f conftest.$ac_objext conftest$ac_exeext |
20647 | if { (ac_try="$ac_link" | |
20648 | case "(($ac_try" in | |
20649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20650 | *) ac_try_echo=$ac_try;; | |
20651 | esac | |
20652 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20653 | $as_echo "$ac_try_echo") >&5 | |
20654 | (eval "$ac_link") 2>conftest.er1 | |
20655 | ac_status=$? | |
20656 | grep -v '^ *+' conftest.er1 >conftest.err | |
20657 | rm -f conftest.er1 | |
20658 | cat conftest.err >&5 | |
20659 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20660 | (exit $ac_status); } && { | |
20661 | test -z "$ac_c_werror_flag" || | |
20662 | test ! -s conftest.err | |
20663 | } && test -s conftest$ac_exeext && { | |
20664 | test "$cross_compiling" = yes || | |
20665 | $as_test_x conftest$ac_exeext | |
20666 | }; then | |
20667 | eval "$as_ac_var=yes" | |
0ca10bb7 | 20668 | else |
bf89cb4d GM |
20669 | $as_echo "$as_me: failed program was:" >&5 |
20670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 20671 | |
bf89cb4d GM |
20672 | eval "$as_ac_var=no" |
20673 | fi | |
0ca10bb7 | 20674 | |
bf89cb4d GM |
20675 | rm -rf conftest.dSYM |
20676 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20677 | conftest$ac_exeext conftest.$ac_ext | |
0ca10bb7 | 20678 | fi |
bf89cb4d GM |
20679 | ac_res=`eval 'as_val=${'$as_ac_var'} |
20680 | $as_echo "$as_val"'` | |
20681 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20682 | $as_echo "$ac_res" >&6; } | |
20683 | if test `eval 'as_val=${'$as_ac_var'} | |
20684 | $as_echo "$as_val"'` = yes; then | |
20685 | cat >>confdefs.h <<_ACEOF | |
20686 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20687 | _ACEOF | |
0ca10bb7 | 20688 | |
bf89cb4d GM |
20689 | else |
20690 | # strftime is in -lintl on SCO UNIX. | |
20691 | { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | |
20692 | $as_echo_n "checking for strftime in -lintl... " >&6; } | |
20693 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | |
0ca10bb7 RC |
20694 | $as_echo_n "(cached) " >&6 |
20695 | else | |
bf89cb4d GM |
20696 | ac_check_lib_save_LIBS=$LIBS |
20697 | LIBS="-lintl $LIBS" | |
20698 | cat >conftest.$ac_ext <<_ACEOF | |
20699 | /* confdefs.h. */ | |
20700 | _ACEOF | |
20701 | cat confdefs.h >>conftest.$ac_ext | |
20702 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 20703 | /* end confdefs.h. */ |
bf89cb4d GM |
20704 | |
20705 | /* Override any GCC internal prototype to avoid an error. | |
20706 | Use char because int might match the return type of a GCC | |
20707 | builtin and then its argument prototype would still apply. */ | |
20708 | #ifdef __cplusplus | |
20709 | extern "C" | |
20710 | #endif | |
20711 | char strftime (); | |
84e70f78 KR |
20712 | int |
20713 | main () | |
20714 | { | |
bf89cb4d | 20715 | return strftime (); |
84e70f78 KR |
20716 | ; |
20717 | return 0; | |
20718 | } | |
20719 | _ACEOF | |
bf89cb4d GM |
20720 | rm -f conftest.$ac_objext conftest$ac_exeext |
20721 | if { (ac_try="$ac_link" | |
20722 | case "(($ac_try" in | |
20723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20724 | *) ac_try_echo=$ac_try;; | |
20725 | esac | |
20726 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20727 | $as_echo "$ac_try_echo") >&5 | |
20728 | (eval "$ac_link") 2>conftest.er1 | |
20729 | ac_status=$? | |
20730 | grep -v '^ *+' conftest.er1 >conftest.err | |
20731 | rm -f conftest.er1 | |
20732 | cat conftest.err >&5 | |
20733 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20734 | (exit $ac_status); } && { | |
20735 | test -z "$ac_c_werror_flag" || | |
20736 | test ! -s conftest.err | |
20737 | } && test -s conftest$ac_exeext && { | |
20738 | test "$cross_compiling" = yes || | |
20739 | $as_test_x conftest$ac_exeext | |
20740 | }; then | |
20741 | ac_cv_lib_intl_strftime=yes | |
84e70f78 | 20742 | else |
bf89cb4d GM |
20743 | $as_echo "$as_me: failed program was:" >&5 |
20744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20745 | ||
20746 | ac_cv_lib_intl_strftime=no | |
84e70f78 | 20747 | fi |
bf89cb4d GM |
20748 | |
20749 | rm -rf conftest.dSYM | |
20750 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20751 | conftest$ac_exeext conftest.$ac_ext | |
20752 | LIBS=$ac_check_lib_save_LIBS | |
84e70f78 | 20753 | fi |
bf89cb4d GM |
20754 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 |
20755 | $as_echo "$ac_cv_lib_intl_strftime" >&6; } | |
20756 | if test $ac_cv_lib_intl_strftime = yes; then | |
20757 | cat >>confdefs.h <<\_ACEOF | |
20758 | #define HAVE_STRFTIME 1 | |
20759 | _ACEOF | |
84e70f78 | 20760 | |
bf89cb4d GM |
20761 | LIBS="-lintl $LIBS" |
20762 | fi | |
84e70f78 KR |
20763 | |
20764 | fi | |
bf89cb4d | 20765 | done |
84e70f78 | 20766 | |
bf89cb4d GM |
20767 | |
20768 | # UNIX98 PTYs. | |
20769 | ||
20770 | for ac_func in grantpt | |
20771 | do | |
20772 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20773 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20774 | $as_echo_n "checking for $ac_func... " >&6; } | |
20775 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 20776 | $as_echo_n "(cached) " >&6 |
84e70f78 | 20777 | else |
bf89cb4d GM |
20778 | cat >conftest.$ac_ext <<_ACEOF |
20779 | /* confdefs.h. */ | |
20780 | _ACEOF | |
20781 | cat confdefs.h >>conftest.$ac_ext | |
20782 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 20783 | /* end confdefs.h. */ |
bf89cb4d GM |
20784 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20785 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20786 | #define $ac_func innocuous_$ac_func | |
20787 | ||
20788 | /* System header to define __stub macros and hopefully few prototypes, | |
20789 | which can conflict with char $ac_func (); below. | |
20790 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20791 | <limits.h> exists even on freestanding compilers. */ | |
20792 | ||
20793 | #ifdef __STDC__ | |
20794 | # include <limits.h> | |
19650fd6 | 20795 | #else |
bf89cb4d GM |
20796 | # include <assert.h> |
20797 | #endif | |
20798 | ||
20799 | #undef $ac_func | |
20800 | ||
20801 | /* Override any GCC internal prototype to avoid an error. | |
20802 | Use char because int might match the return type of a GCC | |
20803 | builtin and then its argument prototype would still apply. */ | |
20804 | #ifdef __cplusplus | |
20805 | extern "C" | |
20806 | #endif | |
20807 | char $ac_func (); | |
20808 | /* The GNU C library defines this for functions which it implements | |
20809 | to always fail with ENOSYS. Some functions are actually named | |
20810 | something starting with __ and the normal name is an alias. */ | |
20811 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
20812 | choke me | |
cd958eb3 MB |
20813 | #endif |
20814 | ||
19650fd6 AS |
20815 | int |
20816 | main () | |
20817 | { | |
bf89cb4d | 20818 | return $ac_func (); |
84e70f78 KR |
20819 | ; |
20820 | return 0; | |
20821 | } | |
20822 | _ACEOF | |
bf89cb4d GM |
20823 | rm -f conftest.$ac_objext conftest$ac_exeext |
20824 | if { (ac_try="$ac_link" | |
20825 | case "(($ac_try" in | |
20826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20827 | *) ac_try_echo=$ac_try;; | |
20828 | esac | |
20829 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20830 | $as_echo "$ac_try_echo") >&5 | |
20831 | (eval "$ac_link") 2>conftest.er1 | |
20832 | ac_status=$? | |
20833 | grep -v '^ *+' conftest.er1 >conftest.err | |
20834 | rm -f conftest.er1 | |
20835 | cat conftest.err >&5 | |
20836 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20837 | (exit $ac_status); } && { | |
20838 | test -z "$ac_c_werror_flag" || | |
20839 | test ! -s conftest.err | |
20840 | } && test -s conftest$ac_exeext && { | |
20841 | test "$cross_compiling" = yes || | |
20842 | $as_test_x conftest$ac_exeext | |
20843 | }; then | |
20844 | eval "$as_ac_var=yes" | |
84e70f78 | 20845 | else |
bf89cb4d GM |
20846 | $as_echo "$as_me: failed program was:" >&5 |
20847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 20848 | |
bf89cb4d GM |
20849 | eval "$as_ac_var=no" |
20850 | fi | |
0ca10bb7 | 20851 | |
bf89cb4d GM |
20852 | rm -rf conftest.dSYM |
20853 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20854 | conftest$ac_exeext conftest.$ac_ext | |
20855 | fi | |
20856 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
20857 | $as_echo "$as_val"'` | |
20858 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20859 | $as_echo "$ac_res" >&6; } | |
20860 | if test `eval 'as_val=${'$as_ac_var'} | |
20861 | $as_echo "$as_val"'` = yes; then | |
20862 | cat >>confdefs.h <<_ACEOF | |
20863 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20864 | _ACEOF | |
0ca10bb7 | 20865 | |
bf89cb4d GM |
20866 | fi |
20867 | done | |
0ca10bb7 | 20868 | |
0ca10bb7 | 20869 | |
bf89cb4d | 20870 | # PTY-related GNU extensions. |
0ca10bb7 | 20871 | |
bf89cb4d GM |
20872 | for ac_func in getpt |
20873 | do | |
20874 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20875 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20876 | $as_echo_n "checking for $ac_func... " >&6; } | |
20877 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 20878 | $as_echo_n "(cached) " >&6 |
84e70f78 | 20879 | else |
bf89cb4d GM |
20880 | cat >conftest.$ac_ext <<_ACEOF |
20881 | /* confdefs.h. */ | |
20882 | _ACEOF | |
20883 | cat confdefs.h >>conftest.$ac_ext | |
20884 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 20885 | /* end confdefs.h. */ |
bf89cb4d GM |
20886 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20887 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20888 | #define $ac_func innocuous_$ac_func | |
20889 | ||
20890 | /* System header to define __stub macros and hopefully few prototypes, | |
20891 | which can conflict with char $ac_func (); below. | |
20892 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20893 | <limits.h> exists even on freestanding compilers. */ | |
20894 | ||
20895 | #ifdef __STDC__ | |
20896 | # include <limits.h> | |
0ca10bb7 | 20897 | #else |
bf89cb4d GM |
20898 | # include <assert.h> |
20899 | #endif | |
20900 | ||
20901 | #undef $ac_func | |
20902 | ||
20903 | /* Override any GCC internal prototype to avoid an error. | |
20904 | Use char because int might match the return type of a GCC | |
20905 | builtin and then its argument prototype would still apply. */ | |
20906 | #ifdef __cplusplus | |
20907 | extern "C" | |
20908 | #endif | |
20909 | char $ac_func (); | |
20910 | /* The GNU C library defines this for functions which it implements | |
20911 | to always fail with ENOSYS. Some functions are actually named | |
20912 | something starting with __ and the normal name is an alias. */ | |
20913 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
20914 | choke me | |
84e70f78 | 20915 | #endif |
0ca10bb7 | 20916 | |
bf89cb4d GM |
20917 | int |
20918 | main () | |
20919 | { | |
20920 | return $ac_func (); | |
20921 | ; | |
20922 | return 0; | |
20923 | } | |
84e70f78 | 20924 | _ACEOF |
bf89cb4d GM |
20925 | rm -f conftest.$ac_objext conftest$ac_exeext |
20926 | if { (ac_try="$ac_link" | |
20927 | case "(($ac_try" in | |
20928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20929 | *) ac_try_echo=$ac_try;; | |
20930 | esac | |
20931 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20932 | $as_echo "$ac_try_echo") >&5 | |
20933 | (eval "$ac_link") 2>conftest.er1 | |
20934 | ac_status=$? | |
20935 | grep -v '^ *+' conftest.er1 >conftest.err | |
20936 | rm -f conftest.er1 | |
20937 | cat conftest.err >&5 | |
20938 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20939 | (exit $ac_status); } && { | |
20940 | test -z "$ac_c_werror_flag" || | |
20941 | test ! -s conftest.err | |
20942 | } && test -s conftest$ac_exeext && { | |
20943 | test "$cross_compiling" = yes || | |
20944 | $as_test_x conftest$ac_exeext | |
20945 | }; then | |
20946 | eval "$as_ac_var=yes" | |
84e70f78 | 20947 | else |
bf89cb4d GM |
20948 | $as_echo "$as_me: failed program was:" >&5 |
20949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ca81d7a0 | 20950 | |
bf89cb4d | 20951 | eval "$as_ac_var=no" |
84e70f78 | 20952 | fi |
b936fae4 | 20953 | |
bf89cb4d GM |
20954 | rm -rf conftest.dSYM |
20955 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20956 | conftest$ac_exeext conftest.$ac_ext | |
20957 | fi | |
20958 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
20959 | $as_echo "$as_val"'` | |
20960 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20961 | $as_echo "$ac_res" >&6; } | |
20962 | if test `eval 'as_val=${'$as_ac_var'} | |
20963 | $as_echo "$as_val"'` = yes; then | |
20964 | cat >>confdefs.h <<_ACEOF | |
20965 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
c0d27fcc | 20966 | _ACEOF |
84e70f78 | 20967 | |
84e70f78 | 20968 | fi |
bf89cb4d | 20969 | done |
84e70f78 | 20970 | |
84e70f78 | 20971 | |
bf89cb4d GM |
20972 | # Check this now, so that we will NOT find the above functions in ncurses. |
20973 | # That is because we have not set up to link ncurses in lib-src. | |
20974 | # It's better to believe a function is not available | |
20975 | # than to expect to find it in ncurses. | |
20976 | ||
20977 | { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5 | |
20978 | $as_echo_n "checking for tparm in -lncurses... " >&6; } | |
20979 | if test "${ac_cv_lib_ncurses_tparm+set}" = set; then | |
0ca10bb7 RC |
20980 | $as_echo_n "(cached) " >&6 |
20981 | else | |
bf89cb4d GM |
20982 | ac_check_lib_save_LIBS=$LIBS |
20983 | LIBS="-lncurses $LIBS" | |
20984 | cat >conftest.$ac_ext <<_ACEOF | |
20985 | /* confdefs.h. */ | |
20986 | _ACEOF | |
20987 | cat confdefs.h >>conftest.$ac_ext | |
20988 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 | 20989 | /* end confdefs.h. */ |
84e70f78 | 20990 | |
bf89cb4d GM |
20991 | /* Override any GCC internal prototype to avoid an error. |
20992 | Use char because int might match the return type of a GCC | |
20993 | builtin and then its argument prototype would still apply. */ | |
20994 | #ifdef __cplusplus | |
20995 | extern "C" | |
20996 | #endif | |
20997 | char tparm (); | |
0ca10bb7 RC |
20998 | int |
20999 | main () | |
21000 | { | |
bf89cb4d GM |
21001 | return tparm (); |
21002 | ; | |
21003 | return 0; | |
0ca10bb7 RC |
21004 | } |
21005 | _ACEOF | |
bf89cb4d GM |
21006 | rm -f conftest.$ac_objext conftest$ac_exeext |
21007 | if { (ac_try="$ac_link" | |
21008 | case "(($ac_try" in | |
21009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21010 | *) ac_try_echo=$ac_try;; | |
21011 | esac | |
21012 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21013 | $as_echo "$ac_try_echo") >&5 | |
21014 | (eval "$ac_link") 2>conftest.er1 | |
21015 | ac_status=$? | |
21016 | grep -v '^ *+' conftest.er1 >conftest.err | |
21017 | rm -f conftest.er1 | |
21018 | cat conftest.err >&5 | |
21019 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21020 | (exit $ac_status); } && { | |
21021 | test -z "$ac_c_werror_flag" || | |
21022 | test ! -s conftest.err | |
21023 | } && test -s conftest$ac_exeext && { | |
21024 | test "$cross_compiling" = yes || | |
21025 | $as_test_x conftest$ac_exeext | |
21026 | }; then | |
21027 | ac_cv_lib_ncurses_tparm=yes | |
0ca10bb7 | 21028 | else |
bf89cb4d GM |
21029 | $as_echo "$as_me: failed program was:" >&5 |
21030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21031 | ||
21032 | ac_cv_lib_ncurses_tparm=no | |
0ca10bb7 | 21033 | fi |
bc3512d0 | 21034 | |
bf89cb4d GM |
21035 | rm -rf conftest.dSYM |
21036 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21037 | conftest$ac_exeext conftest.$ac_ext | |
21038 | LIBS=$ac_check_lib_save_LIBS | |
0ca10bb7 | 21039 | fi |
bf89cb4d GM |
21040 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5 |
21041 | $as_echo "$ac_cv_lib_ncurses_tparm" >&6; } | |
21042 | if test $ac_cv_lib_ncurses_tparm = yes; then | |
21043 | cat >>confdefs.h <<_ACEOF | |
21044 | #define HAVE_LIBNCURSES 1 | |
bc3512d0 CY |
21045 | _ACEOF |
21046 | ||
bf89cb4d | 21047 | LIBS="-lncurses $LIBS" |
0ca10bb7 | 21048 | |
bc3512d0 CY |
21049 | fi |
21050 | ||
503d2be0 | 21051 | |
bf89cb4d | 21052 | # Do we have res_init, for detecting changes in /etc/resolv.conf? |
0ca10bb7 | 21053 | |
bf89cb4d GM |
21054 | resolv=no |
21055 | cat >conftest.$ac_ext <<_ACEOF | |
21056 | /* confdefs.h. */ | |
21057 | _ACEOF | |
21058 | cat confdefs.h >>conftest.$ac_ext | |
21059 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 21060 | /* end confdefs.h. */ |
bf89cb4d GM |
21061 | #include <netinet/in.h> |
21062 | #include <arpa/nameser.h> | |
21063 | #include <resolv.h> | |
503d2be0 AS |
21064 | int |
21065 | main () | |
21066 | { | |
bf89cb4d | 21067 | return res_init(); |
503d2be0 AS |
21068 | ; |
21069 | return 0; | |
21070 | } | |
21071 | _ACEOF | |
bf89cb4d GM |
21072 | rm -f conftest.$ac_objext conftest$ac_exeext |
21073 | if { (ac_try="$ac_link" | |
21074 | case "(($ac_try" in | |
21075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21076 | *) ac_try_echo=$ac_try;; | |
21077 | esac | |
21078 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21079 | $as_echo "$ac_try_echo") >&5 | |
21080 | (eval "$ac_link") 2>conftest.er1 | |
21081 | ac_status=$? | |
21082 | grep -v '^ *+' conftest.er1 >conftest.err | |
21083 | rm -f conftest.er1 | |
21084 | cat conftest.err >&5 | |
21085 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21086 | (exit $ac_status); } && { | |
21087 | test -z "$ac_c_werror_flag" || | |
21088 | test ! -s conftest.err | |
21089 | } && test -s conftest$ac_exeext && { | |
21090 | test "$cross_compiling" = yes || | |
21091 | $as_test_x conftest$ac_exeext | |
21092 | }; then | |
21093 | have_res_init=yes | |
503d2be0 | 21094 | else |
bf89cb4d GM |
21095 | $as_echo "$as_me: failed program was:" >&5 |
21096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a21616bd | 21097 | |
bf89cb4d | 21098 | have_res_init=no |
a21616bd KR |
21099 | fi |
21100 | ||
bf89cb4d GM |
21101 | rm -rf conftest.dSYM |
21102 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21103 | conftest$ac_exeext conftest.$ac_ext | |
21104 | if test "$have_res_init" = no; then | |
21105 | OLIBS="$LIBS" | |
21106 | LIBS="$LIBS -lresolv" | |
21107 | { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5 | |
21108 | $as_echo_n "checking for res_init with -lresolv... " >&6; } | |
21109 | cat >conftest.$ac_ext <<_ACEOF | |
21110 | /* confdefs.h. */ | |
21111 | _ACEOF | |
21112 | cat confdefs.h >>conftest.$ac_ext | |
21113 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 21114 | /* end confdefs.h. */ |
bf89cb4d GM |
21115 | #include <netinet/in.h> |
21116 | #include <arpa/nameser.h> | |
21117 | #include <resolv.h> | |
503d2be0 AS |
21118 | int |
21119 | main () | |
21120 | { | |
bf89cb4d | 21121 | return res_init(); |
503d2be0 AS |
21122 | ; |
21123 | return 0; | |
21124 | } | |
21125 | _ACEOF | |
bf89cb4d GM |
21126 | rm -f conftest.$ac_objext conftest$ac_exeext |
21127 | if { (ac_try="$ac_link" | |
21128 | case "(($ac_try" in | |
21129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21130 | *) ac_try_echo=$ac_try;; | |
21131 | esac | |
21132 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21133 | $as_echo "$ac_try_echo") >&5 | |
21134 | (eval "$ac_link") 2>conftest.er1 | |
21135 | ac_status=$? | |
21136 | grep -v '^ *+' conftest.er1 >conftest.err | |
21137 | rm -f conftest.er1 | |
21138 | cat conftest.err >&5 | |
21139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21140 | (exit $ac_status); } && { | |
21141 | test -z "$ac_c_werror_flag" || | |
21142 | test ! -s conftest.err | |
21143 | } && test -s conftest$ac_exeext && { | |
21144 | test "$cross_compiling" = yes || | |
21145 | $as_test_x conftest$ac_exeext | |
21146 | }; then | |
21147 | have_res_init=yes | |
503d2be0 | 21148 | else |
bf89cb4d GM |
21149 | $as_echo "$as_me: failed program was:" >&5 |
21150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21151 | ||
21152 | have_res_init=no | |
503d2be0 | 21153 | fi |
bf89cb4d GM |
21154 | |
21155 | rm -rf conftest.dSYM | |
21156 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21157 | conftest$ac_exeext conftest.$ac_ext | |
21158 | { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5 | |
21159 | $as_echo "$have_res_init" >&6; } | |
21160 | if test "$have_res_init" = yes ; then | |
21161 | resolv=yes | |
21162 | fi | |
21163 | LIBS="$OLIBS" | |
503d2be0 | 21164 | fi |
a21616bd | 21165 | |
bf89cb4d GM |
21166 | if test "$have_res_init" = yes; then |
21167 | ||
21168 | cat >>confdefs.h <<\_ACEOF | |
21169 | #define HAVE_RES_INIT 1 | |
21170 | _ACEOF | |
a21616bd | 21171 | |
a21616bd KR |
21172 | fi |
21173 | ||
bf89cb4d GM |
21174 | # Do we need the Hesiod library to provide the support routines? |
21175 | if test "$with_hesiod" != no ; then | |
21176 | # Don't set $LIBS here -- see comments above. | |
21177 | { $as_echo "$as_me:$LINENO: checking for res_send" >&5 | |
21178 | $as_echo_n "checking for res_send... " >&6; } | |
21179 | if test "${ac_cv_func_res_send+set}" = set; then | |
e9a63f04 | 21180 | $as_echo_n "(cached) " >&6 |
a21616bd | 21181 | else |
bf89cb4d GM |
21182 | cat >conftest.$ac_ext <<_ACEOF |
21183 | /* confdefs.h. */ | |
21184 | _ACEOF | |
21185 | cat confdefs.h >>conftest.$ac_ext | |
21186 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 21187 | /* end confdefs.h. */ |
bf89cb4d GM |
21188 | /* Define res_send to an innocuous variant, in case <limits.h> declares res_send. |
21189 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21190 | #define res_send innocuous_res_send | |
21191 | ||
21192 | /* System header to define __stub macros and hopefully few prototypes, | |
21193 | which can conflict with char res_send (); below. | |
21194 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21195 | <limits.h> exists even on freestanding compilers. */ | |
21196 | ||
21197 | #ifdef __STDC__ | |
21198 | # include <limits.h> | |
21199 | #else | |
21200 | # include <assert.h> | |
21201 | #endif | |
21202 | ||
21203 | #undef res_send | |
503d2be0 | 21204 | |
ca81d7a0 JD |
21205 | /* Override any GCC internal prototype to avoid an error. |
21206 | Use char because int might match the return type of a GCC | |
21207 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
21208 | #ifdef __cplusplus |
21209 | extern "C" | |
21210 | #endif | |
bf89cb4d GM |
21211 | char res_send (); |
21212 | /* The GNU C library defines this for functions which it implements | |
21213 | to always fail with ENOSYS. Some functions are actually named | |
21214 | something starting with __ and the normal name is an alias. */ | |
21215 | #if defined __stub_res_send || defined __stub___res_send | |
21216 | choke me | |
21217 | #endif | |
21218 | ||
503d2be0 AS |
21219 | int |
21220 | main () | |
21221 | { | |
bf89cb4d | 21222 | return res_send (); |
503d2be0 AS |
21223 | ; |
21224 | return 0; | |
21225 | } | |
21226 | _ACEOF | |
bf89cb4d GM |
21227 | rm -f conftest.$ac_objext conftest$ac_exeext |
21228 | if { (ac_try="$ac_link" | |
21229 | case "(($ac_try" in | |
21230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21231 | *) ac_try_echo=$ac_try;; | |
21232 | esac | |
21233 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21234 | $as_echo "$ac_try_echo") >&5 | |
21235 | (eval "$ac_link") 2>conftest.er1 | |
21236 | ac_status=$? | |
21237 | grep -v '^ *+' conftest.er1 >conftest.err | |
21238 | rm -f conftest.er1 | |
21239 | cat conftest.err >&5 | |
21240 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21241 | (exit $ac_status); } && { | |
21242 | test -z "$ac_c_werror_flag" || | |
21243 | test ! -s conftest.err | |
21244 | } && test -s conftest$ac_exeext && { | |
21245 | test "$cross_compiling" = yes || | |
21246 | $as_test_x conftest$ac_exeext | |
21247 | }; then | |
21248 | ac_cv_func_res_send=yes | |
503d2be0 | 21249 | else |
bf89cb4d GM |
21250 | $as_echo "$as_me: failed program was:" >&5 |
21251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19650fd6 | 21252 | |
bf89cb4d | 21253 | ac_cv_func_res_send=no |
503d2be0 | 21254 | fi |
ca81d7a0 | 21255 | |
bf89cb4d GM |
21256 | rm -rf conftest.dSYM |
21257 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21258 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 | 21259 | fi |
bf89cb4d GM |
21260 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 |
21261 | $as_echo "$ac_cv_func_res_send" >&6; } | |
21262 | if test $ac_cv_func_res_send = yes; then | |
21263 | : | |
0ca10bb7 | 21264 | else |
bf89cb4d GM |
21265 | { $as_echo "$as_me:$LINENO: checking for __res_send" >&5 |
21266 | $as_echo_n "checking for __res_send... " >&6; } | |
21267 | if test "${ac_cv_func___res_send+set}" = set; then | |
21268 | $as_echo_n "(cached) " >&6 | |
21269 | else | |
21270 | cat >conftest.$ac_ext <<_ACEOF | |
21271 | /* confdefs.h. */ | |
c0d27fcc | 21272 | _ACEOF |
bf89cb4d GM |
21273 | cat confdefs.h >>conftest.$ac_ext |
21274 | cat >>conftest.$ac_ext <<_ACEOF | |
21275 | /* end confdefs.h. */ | |
21276 | /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send. | |
21277 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21278 | #define __res_send innocuous___res_send | |
a21616bd | 21279 | |
bf89cb4d GM |
21280 | /* System header to define __stub macros and hopefully few prototypes, |
21281 | which can conflict with char __res_send (); below. | |
21282 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21283 | <limits.h> exists even on freestanding compilers. */ | |
a21616bd | 21284 | |
bf89cb4d GM |
21285 | #ifdef __STDC__ |
21286 | # include <limits.h> | |
21287 | #else | |
21288 | # include <assert.h> | |
21289 | #endif | |
a21616bd | 21290 | |
bf89cb4d | 21291 | #undef __res_send |
c0d27fcc | 21292 | |
bf89cb4d GM |
21293 | /* Override any GCC internal prototype to avoid an error. |
21294 | Use char because int might match the return type of a GCC | |
21295 | builtin and then its argument prototype would still apply. */ | |
21296 | #ifdef __cplusplus | |
21297 | extern "C" | |
21298 | #endif | |
21299 | char __res_send (); | |
21300 | /* The GNU C library defines this for functions which it implements | |
21301 | to always fail with ENOSYS. Some functions are actually named | |
21302 | something starting with __ and the normal name is an alias. */ | |
21303 | #if defined __stub___res_send || defined __stub_____res_send | |
21304 | choke me | |
21305 | #endif | |
0ca10bb7 | 21306 | |
bf89cb4d GM |
21307 | int |
21308 | main () | |
21309 | { | |
21310 | return __res_send (); | |
21311 | ; | |
21312 | return 0; | |
21313 | } | |
0ca10bb7 | 21314 | _ACEOF |
bf89cb4d GM |
21315 | rm -f conftest.$ac_objext conftest$ac_exeext |
21316 | if { (ac_try="$ac_link" | |
21317 | case "(($ac_try" in | |
21318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21319 | *) ac_try_echo=$ac_try;; | |
21320 | esac | |
21321 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21322 | $as_echo "$ac_try_echo") >&5 | |
21323 | (eval "$ac_link") 2>conftest.er1 | |
21324 | ac_status=$? | |
21325 | grep -v '^ *+' conftest.er1 >conftest.err | |
21326 | rm -f conftest.er1 | |
21327 | cat conftest.err >&5 | |
21328 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21329 | (exit $ac_status); } && { | |
21330 | test -z "$ac_c_werror_flag" || | |
21331 | test ! -s conftest.err | |
21332 | } && test -s conftest$ac_exeext && { | |
21333 | test "$cross_compiling" = yes || | |
21334 | $as_test_x conftest$ac_exeext | |
21335 | }; then | |
21336 | ac_cv_func___res_send=yes | |
21337 | else | |
21338 | $as_echo "$as_me: failed program was:" >&5 | |
21339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 21340 | |
bf89cb4d | 21341 | ac_cv_func___res_send=no |
0ca10bb7 | 21342 | fi |
0ca10bb7 | 21343 | |
bf89cb4d GM |
21344 | rm -rf conftest.dSYM |
21345 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21346 | conftest$ac_exeext conftest.$ac_ext | |
21347 | fi | |
21348 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5 | |
21349 | $as_echo "$ac_cv_func___res_send" >&6; } | |
21350 | if test $ac_cv_func___res_send = yes; then | |
21351 | : | |
21352 | else | |
21353 | { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 | |
21354 | $as_echo_n "checking for res_send in -lresolv... " >&6; } | |
21355 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then | |
21356 | $as_echo_n "(cached) " >&6 | |
21357 | else | |
21358 | ac_check_lib_save_LIBS=$LIBS | |
21359 | LIBS="-lresolv $LIBS" | |
21360 | cat >conftest.$ac_ext <<_ACEOF | |
21361 | /* confdefs.h. */ | |
21362 | _ACEOF | |
21363 | cat confdefs.h >>conftest.$ac_ext | |
21364 | cat >>conftest.$ac_ext <<_ACEOF | |
21365 | /* end confdefs.h. */ | |
0ca10bb7 | 21366 | |
bf89cb4d GM |
21367 | /* Override any GCC internal prototype to avoid an error. |
21368 | Use char because int might match the return type of a GCC | |
21369 | builtin and then its argument prototype would still apply. */ | |
21370 | #ifdef __cplusplus | |
21371 | extern "C" | |
21372 | #endif | |
21373 | char res_send (); | |
21374 | int | |
21375 | main () | |
21376 | { | |
21377 | return res_send (); | |
21378 | ; | |
21379 | return 0; | |
21380 | } | |
0ca10bb7 | 21381 | _ACEOF |
bf89cb4d GM |
21382 | rm -f conftest.$ac_objext conftest$ac_exeext |
21383 | if { (ac_try="$ac_link" | |
21384 | case "(($ac_try" in | |
21385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21386 | *) ac_try_echo=$ac_try;; | |
21387 | esac | |
21388 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21389 | $as_echo "$ac_try_echo") >&5 | |
21390 | (eval "$ac_link") 2>conftest.er1 | |
21391 | ac_status=$? | |
21392 | grep -v '^ *+' conftest.er1 >conftest.err | |
21393 | rm -f conftest.er1 | |
21394 | cat conftest.err >&5 | |
21395 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21396 | (exit $ac_status); } && { | |
21397 | test -z "$ac_c_werror_flag" || | |
21398 | test ! -s conftest.err | |
21399 | } && test -s conftest$ac_exeext && { | |
21400 | test "$cross_compiling" = yes || | |
21401 | $as_test_x conftest$ac_exeext | |
21402 | }; then | |
21403 | ac_cv_lib_resolv_res_send=yes | |
21404 | else | |
21405 | $as_echo "$as_me: failed program was:" >&5 | |
21406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 21407 | |
bf89cb4d | 21408 | ac_cv_lib_resolv_res_send=no |
0ca10bb7 RC |
21409 | fi |
21410 | ||
bf89cb4d GM |
21411 | rm -rf conftest.dSYM |
21412 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21413 | conftest$ac_exeext conftest.$ac_ext | |
21414 | LIBS=$ac_check_lib_save_LIBS | |
21415 | fi | |
21416 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 | |
21417 | $as_echo "$ac_cv_lib_resolv_res_send" >&6; } | |
21418 | if test $ac_cv_lib_resolv_res_send = yes; then | |
21419 | resolv=yes | |
21420 | else | |
21421 | { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 | |
21422 | $as_echo_n "checking for __res_send in -lresolv... " >&6; } | |
21423 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then | |
21424 | $as_echo_n "(cached) " >&6 | |
21425 | else | |
21426 | ac_check_lib_save_LIBS=$LIBS | |
21427 | LIBS="-lresolv $LIBS" | |
21428 | cat >conftest.$ac_ext <<_ACEOF | |
21429 | /* confdefs.h. */ | |
21430 | _ACEOF | |
21431 | cat confdefs.h >>conftest.$ac_ext | |
21432 | cat >>conftest.$ac_ext <<_ACEOF | |
21433 | /* end confdefs.h. */ | |
0ca10bb7 | 21434 | |
bf89cb4d GM |
21435 | /* Override any GCC internal prototype to avoid an error. |
21436 | Use char because int might match the return type of a GCC | |
21437 | builtin and then its argument prototype would still apply. */ | |
21438 | #ifdef __cplusplus | |
21439 | extern "C" | |
21440 | #endif | |
21441 | char __res_send (); | |
21442 | int | |
21443 | main () | |
21444 | { | |
21445 | return __res_send (); | |
21446 | ; | |
21447 | return 0; | |
21448 | } | |
0ca10bb7 | 21449 | _ACEOF |
bf89cb4d GM |
21450 | rm -f conftest.$ac_objext conftest$ac_exeext |
21451 | if { (ac_try="$ac_link" | |
21452 | case "(($ac_try" in | |
21453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21454 | *) ac_try_echo=$ac_try;; | |
21455 | esac | |
21456 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21457 | $as_echo "$ac_try_echo") >&5 | |
21458 | (eval "$ac_link") 2>conftest.er1 | |
21459 | ac_status=$? | |
21460 | grep -v '^ *+' conftest.er1 >conftest.err | |
21461 | rm -f conftest.er1 | |
21462 | cat conftest.err >&5 | |
21463 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21464 | (exit $ac_status); } && { | |
21465 | test -z "$ac_c_werror_flag" || | |
21466 | test ! -s conftest.err | |
21467 | } && test -s conftest$ac_exeext && { | |
21468 | test "$cross_compiling" = yes || | |
21469 | $as_test_x conftest$ac_exeext | |
21470 | }; then | |
21471 | ac_cv_lib_resolv___res_send=yes | |
21472 | else | |
21473 | $as_echo "$as_me: failed program was:" >&5 | |
21474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 21475 | |
bf89cb4d | 21476 | ac_cv_lib_resolv___res_send=no |
0ca10bb7 | 21477 | fi |
0ca10bb7 | 21478 | |
bf89cb4d GM |
21479 | rm -rf conftest.dSYM |
21480 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21481 | conftest$ac_exeext conftest.$ac_ext | |
21482 | LIBS=$ac_check_lib_save_LIBS | |
21483 | fi | |
21484 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 | |
21485 | $as_echo "$ac_cv_lib_resolv___res_send" >&6; } | |
21486 | if test $ac_cv_lib_resolv___res_send = yes; then | |
21487 | resolv=yes | |
21488 | fi | |
0ca10bb7 | 21489 | |
bf89cb4d | 21490 | fi |
0ca10bb7 | 21491 | |
bf89cb4d | 21492 | fi |
0ca10bb7 | 21493 | |
bf89cb4d | 21494 | fi |
0ca10bb7 | 21495 | |
bf89cb4d GM |
21496 | if test "$resolv" = yes ; then |
21497 | RESOLVLIB=-lresolv | |
21498 | else | |
21499 | RESOLVLIB= | |
21500 | fi | |
21501 | { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 | |
21502 | $as_echo_n "checking for hes_getmailhost... " >&6; } | |
21503 | if test "${ac_cv_func_hes_getmailhost+set}" = set; then | |
e9a63f04 | 21504 | $as_echo_n "(cached) " >&6 |
a21616bd | 21505 | else |
bf89cb4d GM |
21506 | cat >conftest.$ac_ext <<_ACEOF |
21507 | /* confdefs.h. */ | |
21508 | _ACEOF | |
21509 | cat confdefs.h >>conftest.$ac_ext | |
21510 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 21511 | /* end confdefs.h. */ |
bf89cb4d GM |
21512 | /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost. |
21513 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21514 | #define hes_getmailhost innocuous_hes_getmailhost | |
21515 | ||
21516 | /* System header to define __stub macros and hopefully few prototypes, | |
21517 | which can conflict with char hes_getmailhost (); below. | |
21518 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21519 | <limits.h> exists even on freestanding compilers. */ | |
21520 | ||
21521 | #ifdef __STDC__ | |
21522 | # include <limits.h> | |
0ca10bb7 | 21523 | #else |
bf89cb4d | 21524 | # include <assert.h> |
0ca10bb7 RC |
21525 | #endif |
21526 | ||
bf89cb4d | 21527 | #undef hes_getmailhost |
0ca10bb7 | 21528 | |
bf89cb4d GM |
21529 | /* Override any GCC internal prototype to avoid an error. |
21530 | Use char because int might match the return type of a GCC | |
21531 | builtin and then its argument prototype would still apply. */ | |
21532 | #ifdef __cplusplus | |
21533 | extern "C" | |
0ca10bb7 | 21534 | #endif |
bf89cb4d GM |
21535 | char hes_getmailhost (); |
21536 | /* The GNU C library defines this for functions which it implements | |
21537 | to always fail with ENOSYS. Some functions are actually named | |
21538 | something starting with __ and the normal name is an alias. */ | |
21539 | #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost | |
21540 | choke me | |
0ca10bb7 RC |
21541 | #endif |
21542 | ||
bf89cb4d GM |
21543 | int |
21544 | main () | |
0ca10bb7 | 21545 | { |
bf89cb4d GM |
21546 | return hes_getmailhost (); |
21547 | ; | |
21548 | return 0; | |
0ca10bb7 | 21549 | } |
bf89cb4d GM |
21550 | _ACEOF |
21551 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21552 | if { (ac_try="$ac_link" | |
21553 | case "(($ac_try" in | |
21554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21555 | *) ac_try_echo=$ac_try;; | |
21556 | esac | |
21557 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21558 | $as_echo "$ac_try_echo") >&5 | |
21559 | (eval "$ac_link") 2>conftest.er1 | |
21560 | ac_status=$? | |
21561 | grep -v '^ *+' conftest.er1 >conftest.err | |
21562 | rm -f conftest.er1 | |
21563 | cat conftest.err >&5 | |
21564 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21565 | (exit $ac_status); } && { | |
21566 | test -z "$ac_c_werror_flag" || | |
21567 | test ! -s conftest.err | |
21568 | } && test -s conftest$ac_exeext && { | |
21569 | test "$cross_compiling" = yes || | |
21570 | $as_test_x conftest$ac_exeext | |
21571 | }; then | |
21572 | ac_cv_func_hes_getmailhost=yes | |
21573 | else | |
21574 | $as_echo "$as_me: failed program was:" >&5 | |
21575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 21576 | |
bf89cb4d GM |
21577 | ac_cv_func_hes_getmailhost=no |
21578 | fi | |
0ca10bb7 | 21579 | |
bf89cb4d GM |
21580 | rm -rf conftest.dSYM |
21581 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21582 | conftest$ac_exeext conftest.$ac_ext | |
21583 | fi | |
21584 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5 | |
21585 | $as_echo "$ac_cv_func_hes_getmailhost" >&6; } | |
21586 | if test $ac_cv_func_hes_getmailhost = yes; then | |
21587 | : | |
21588 | else | |
21589 | { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5 | |
21590 | $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } | |
21591 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then | |
21592 | $as_echo_n "(cached) " >&6 | |
21593 | else | |
21594 | ac_check_lib_save_LIBS=$LIBS | |
21595 | LIBS="-lhesiod $RESOLVLIB $LIBS" | |
21596 | cat >conftest.$ac_ext <<_ACEOF | |
21597 | /* confdefs.h. */ | |
21598 | _ACEOF | |
21599 | cat confdefs.h >>conftest.$ac_ext | |
21600 | cat >>conftest.$ac_ext <<_ACEOF | |
21601 | /* end confdefs.h. */ | |
a21616bd | 21602 | |
bf89cb4d GM |
21603 | /* Override any GCC internal prototype to avoid an error. |
21604 | Use char because int might match the return type of a GCC | |
21605 | builtin and then its argument prototype would still apply. */ | |
21606 | #ifdef __cplusplus | |
21607 | extern "C" | |
21608 | #endif | |
21609 | char hes_getmailhost (); | |
21610 | int | |
21611 | main () | |
503d2be0 | 21612 | { |
bf89cb4d GM |
21613 | return hes_getmailhost (); |
21614 | ; | |
21615 | return 0; | |
503d2be0 | 21616 | } |
bf89cb4d GM |
21617 | _ACEOF |
21618 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21619 | if { (ac_try="$ac_link" | |
21620 | case "(($ac_try" in | |
21621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21622 | *) ac_try_echo=$ac_try;; | |
21623 | esac | |
21624 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21625 | $as_echo "$ac_try_echo") >&5 | |
21626 | (eval "$ac_link") 2>conftest.er1 | |
21627 | ac_status=$? | |
21628 | grep -v '^ *+' conftest.er1 >conftest.err | |
21629 | rm -f conftest.er1 | |
21630 | cat conftest.err >&5 | |
21631 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21632 | (exit $ac_status); } && { | |
21633 | test -z "$ac_c_werror_flag" || | |
21634 | test ! -s conftest.err | |
21635 | } && test -s conftest$ac_exeext && { | |
21636 | test "$cross_compiling" = yes || | |
21637 | $as_test_x conftest$ac_exeext | |
21638 | }; then | |
21639 | ac_cv_lib_hesiod_hes_getmailhost=yes | |
21640 | else | |
21641 | $as_echo "$as_me: failed program was:" >&5 | |
21642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ca81d7a0 | 21643 | |
bf89cb4d GM |
21644 | ac_cv_lib_hesiod_hes_getmailhost=no |
21645 | fi | |
a21616bd | 21646 | |
bf89cb4d GM |
21647 | rm -rf conftest.dSYM |
21648 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21649 | conftest$ac_exeext conftest.$ac_ext | |
21650 | LIBS=$ac_check_lib_save_LIBS | |
21651 | fi | |
21652 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 | |
21653 | $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } | |
21654 | if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then | |
a21616bd | 21655 | |
bf89cb4d GM |
21656 | cat >>confdefs.h <<\_ACEOF |
21657 | #define HAVE_LIBHESIOD 1 | |
21658 | _ACEOF | |
a21616bd | 21659 | |
bf89cb4d GM |
21660 | else |
21661 | : | |
21662 | fi | |
503d2be0 | 21663 | |
bf89cb4d | 21664 | fi |
503d2be0 | 21665 | |
bf89cb4d | 21666 | fi |
ca81d7a0 | 21667 | |
bf89cb4d GM |
21668 | # Do we need libresolv (due to res_init or Hesiod)? |
21669 | if test "$resolv" = yes ; then | |
a21616bd | 21670 | |
bf89cb4d GM |
21671 | cat >>confdefs.h <<\_ACEOF |
21672 | #define HAVE_LIBRESOLV 1 | |
21673 | _ACEOF | |
a21616bd | 21674 | |
bf89cb4d | 21675 | fi |
503d2be0 | 21676 | |
bf89cb4d GM |
21677 | # These tell us which Kerberos-related libraries to use. |
21678 | if test "${with_kerberos}" != no; then | |
503d2be0 | 21679 | |
bf89cb4d GM |
21680 | { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 |
21681 | $as_echo_n "checking for com_err in -lcom_err... " >&6; } | |
21682 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then | |
21683 | $as_echo_n "(cached) " >&6 | |
21684 | else | |
21685 | ac_check_lib_save_LIBS=$LIBS | |
21686 | LIBS="-lcom_err $LIBS" | |
21687 | cat >conftest.$ac_ext <<_ACEOF | |
21688 | /* confdefs.h. */ | |
21689 | _ACEOF | |
21690 | cat confdefs.h >>conftest.$ac_ext | |
21691 | cat >>conftest.$ac_ext <<_ACEOF | |
21692 | /* end confdefs.h. */ | |
21693 | ||
21694 | /* Override any GCC internal prototype to avoid an error. | |
21695 | Use char because int might match the return type of a GCC | |
21696 | builtin and then its argument prototype would still apply. */ | |
21697 | #ifdef __cplusplus | |
21698 | extern "C" | |
21699 | #endif | |
21700 | char com_err (); | |
21701 | int | |
21702 | main () | |
21703 | { | |
21704 | return com_err (); | |
21705 | ; | |
21706 | return 0; | |
503d2be0 AS |
21707 | } |
21708 | _ACEOF | |
bf89cb4d GM |
21709 | rm -f conftest.$ac_objext conftest$ac_exeext |
21710 | if { (ac_try="$ac_link" | |
21711 | case "(($ac_try" in | |
21712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21713 | *) ac_try_echo=$ac_try;; | |
21714 | esac | |
21715 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21716 | $as_echo "$ac_try_echo") >&5 | |
21717 | (eval "$ac_link") 2>conftest.er1 | |
21718 | ac_status=$? | |
21719 | grep -v '^ *+' conftest.er1 >conftest.err | |
21720 | rm -f conftest.er1 | |
21721 | cat conftest.err >&5 | |
21722 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21723 | (exit $ac_status); } && { | |
21724 | test -z "$ac_c_werror_flag" || | |
21725 | test ! -s conftest.err | |
21726 | } && test -s conftest$ac_exeext && { | |
21727 | test "$cross_compiling" = yes || | |
21728 | $as_test_x conftest$ac_exeext | |
21729 | }; then | |
21730 | ac_cv_lib_com_err_com_err=yes | |
503d2be0 | 21731 | else |
bf89cb4d GM |
21732 | $as_echo "$as_me: failed program was:" >&5 |
21733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19650fd6 | 21734 | |
bf89cb4d | 21735 | ac_cv_lib_com_err_com_err=no |
503d2be0 | 21736 | fi |
ca81d7a0 | 21737 | |
bf89cb4d GM |
21738 | rm -rf conftest.dSYM |
21739 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21740 | conftest$ac_exeext conftest.$ac_ext | |
21741 | LIBS=$ac_check_lib_save_LIBS | |
503d2be0 | 21742 | fi |
bf89cb4d GM |
21743 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 |
21744 | $as_echo "$ac_cv_lib_com_err_com_err" >&6; } | |
21745 | if test $ac_cv_lib_com_err_com_err = yes; then | |
21746 | cat >>confdefs.h <<_ACEOF | |
21747 | #define HAVE_LIBCOM_ERR 1 | |
21748 | _ACEOF | |
a21616bd | 21749 | |
bf89cb4d | 21750 | LIBS="-lcom_err $LIBS" |
a21616bd KR |
21751 | |
21752 | fi | |
21753 | ||
19650fd6 | 21754 | |
bf89cb4d GM |
21755 | { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
21756 | $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } | |
21757 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | |
21758 | $as_echo_n "(cached) " >&6 | |
21759 | else | |
21760 | ac_check_lib_save_LIBS=$LIBS | |
21761 | LIBS="-lk5crypto $LIBS" | |
21762 | cat >conftest.$ac_ext <<_ACEOF | |
21763 | /* confdefs.h. */ | |
21764 | _ACEOF | |
21765 | cat confdefs.h >>conftest.$ac_ext | |
21766 | cat >>conftest.$ac_ext <<_ACEOF | |
21767 | /* end confdefs.h. */ | |
ca81d7a0 | 21768 | |
bf89cb4d GM |
21769 | /* Override any GCC internal prototype to avoid an error. |
21770 | Use char because int might match the return type of a GCC | |
21771 | builtin and then its argument prototype would still apply. */ | |
21772 | #ifdef __cplusplus | |
21773 | extern "C" | |
21774 | #endif | |
21775 | char mit_des_cbc_encrypt (); | |
21776 | int | |
21777 | main () | |
21778 | { | |
21779 | return mit_des_cbc_encrypt (); | |
21780 | ; | |
21781 | return 0; | |
21782 | } | |
21783 | _ACEOF | |
21784 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21785 | if { (ac_try="$ac_link" | |
21786 | case "(($ac_try" in | |
21787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21788 | *) ac_try_echo=$ac_try;; | |
21789 | esac | |
21790 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21791 | $as_echo "$ac_try_echo") >&5 | |
21792 | (eval "$ac_link") 2>conftest.er1 | |
21793 | ac_status=$? | |
21794 | grep -v '^ *+' conftest.er1 >conftest.err | |
21795 | rm -f conftest.er1 | |
21796 | cat conftest.err >&5 | |
21797 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21798 | (exit $ac_status); } && { | |
21799 | test -z "$ac_c_werror_flag" || | |
21800 | test ! -s conftest.err | |
21801 | } && test -s conftest$ac_exeext && { | |
21802 | test "$cross_compiling" = yes || | |
21803 | $as_test_x conftest$ac_exeext | |
21804 | }; then | |
21805 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
0ca10bb7 | 21806 | else |
bf89cb4d GM |
21807 | $as_echo "$as_me: failed program was:" >&5 |
21808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21809 | ||
21810 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no | |
503d2be0 | 21811 | fi |
0ca10bb7 | 21812 | |
bf89cb4d GM |
21813 | rm -rf conftest.dSYM |
21814 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21815 | conftest$ac_exeext conftest.$ac_ext | |
21816 | LIBS=$ac_check_lib_save_LIBS | |
21817 | fi | |
21818 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 | |
21819 | $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } | |
21820 | if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | |
c0d27fcc | 21821 | cat >>confdefs.h <<_ACEOF |
bf89cb4d | 21822 | #define HAVE_LIBK5CRYPTO 1 |
c0d27fcc | 21823 | _ACEOF |
a21616bd | 21824 | |
bf89cb4d GM |
21825 | LIBS="-lk5crypto $LIBS" |
21826 | ||
0ca10bb7 | 21827 | fi |
a21616bd | 21828 | |
503d2be0 | 21829 | |
bf89cb4d GM |
21830 | { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
21831 | $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } | |
21832 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | |
e9a63f04 | 21833 | $as_echo_n "(cached) " >&6 |
a21616bd | 21834 | else |
503d2be0 | 21835 | ac_check_lib_save_LIBS=$LIBS |
bf89cb4d GM |
21836 | LIBS="-lcrypto $LIBS" |
21837 | cat >conftest.$ac_ext <<_ACEOF | |
21838 | /* confdefs.h. */ | |
21839 | _ACEOF | |
21840 | cat confdefs.h >>conftest.$ac_ext | |
21841 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 21842 | /* end confdefs.h. */ |
503d2be0 | 21843 | |
ca81d7a0 JD |
21844 | /* Override any GCC internal prototype to avoid an error. |
21845 | Use char because int might match the return type of a GCC | |
21846 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
21847 | #ifdef __cplusplus |
21848 | extern "C" | |
21849 | #endif | |
bf89cb4d | 21850 | char mit_des_cbc_encrypt (); |
503d2be0 AS |
21851 | int |
21852 | main () | |
21853 | { | |
bf89cb4d | 21854 | return mit_des_cbc_encrypt (); |
503d2be0 AS |
21855 | ; |
21856 | return 0; | |
21857 | } | |
21858 | _ACEOF | |
bf89cb4d GM |
21859 | rm -f conftest.$ac_objext conftest$ac_exeext |
21860 | if { (ac_try="$ac_link" | |
21861 | case "(($ac_try" in | |
21862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21863 | *) ac_try_echo=$ac_try;; | |
21864 | esac | |
21865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21866 | $as_echo "$ac_try_echo") >&5 | |
21867 | (eval "$ac_link") 2>conftest.er1 | |
21868 | ac_status=$? | |
21869 | grep -v '^ *+' conftest.er1 >conftest.err | |
21870 | rm -f conftest.er1 | |
21871 | cat conftest.err >&5 | |
21872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21873 | (exit $ac_status); } && { | |
21874 | test -z "$ac_c_werror_flag" || | |
21875 | test ! -s conftest.err | |
21876 | } && test -s conftest$ac_exeext && { | |
21877 | test "$cross_compiling" = yes || | |
21878 | $as_test_x conftest$ac_exeext | |
21879 | }; then | |
21880 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
503d2be0 | 21881 | else |
bf89cb4d GM |
21882 | $as_echo "$as_me: failed program was:" >&5 |
21883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21884 | ||
21885 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no | |
503d2be0 | 21886 | fi |
bf89cb4d GM |
21887 | |
21888 | rm -rf conftest.dSYM | |
21889 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21890 | conftest$ac_exeext conftest.$ac_ext | |
503d2be0 AS |
21891 | LIBS=$ac_check_lib_save_LIBS |
21892 | fi | |
bf89cb4d GM |
21893 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
21894 | $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } | |
21895 | if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | |
c0d27fcc | 21896 | cat >>confdefs.h <<_ACEOF |
bf89cb4d | 21897 | #define HAVE_LIBCRYPTO 1 |
c0d27fcc | 21898 | _ACEOF |
a21616bd | 21899 | |
bf89cb4d | 21900 | LIBS="-lcrypto $LIBS" |
a21616bd KR |
21901 | |
21902 | fi | |
21903 | ||
503d2be0 | 21904 | |
bf89cb4d GM |
21905 | { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 |
21906 | $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } | |
21907 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | |
e9a63f04 | 21908 | $as_echo_n "(cached) " >&6 |
98418dba | 21909 | else |
0ca10bb7 | 21910 | ac_check_lib_save_LIBS=$LIBS |
bf89cb4d GM |
21911 | LIBS="-lkrb5 $LIBS" |
21912 | cat >conftest.$ac_ext <<_ACEOF | |
21913 | /* confdefs.h. */ | |
21914 | _ACEOF | |
21915 | cat confdefs.h >>conftest.$ac_ext | |
21916 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 21917 | /* end confdefs.h. */ |
ca81d7a0 | 21918 | |
0ca10bb7 RC |
21919 | /* Override any GCC internal prototype to avoid an error. |
21920 | Use char because int might match the return type of a GCC | |
21921 | builtin and then its argument prototype would still apply. */ | |
21922 | #ifdef __cplusplus | |
21923 | extern "C" | |
21924 | #endif | |
bf89cb4d | 21925 | char krb5_init_context (); |
0ca10bb7 RC |
21926 | int |
21927 | main () | |
21928 | { | |
bf89cb4d | 21929 | return krb5_init_context (); |
0ca10bb7 RC |
21930 | ; |
21931 | return 0; | |
21932 | } | |
503d2be0 | 21933 | _ACEOF |
bf89cb4d GM |
21934 | rm -f conftest.$ac_objext conftest$ac_exeext |
21935 | if { (ac_try="$ac_link" | |
21936 | case "(($ac_try" in | |
21937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21938 | *) ac_try_echo=$ac_try;; | |
21939 | esac | |
21940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21941 | $as_echo "$ac_try_echo") >&5 | |
21942 | (eval "$ac_link") 2>conftest.er1 | |
21943 | ac_status=$? | |
21944 | grep -v '^ *+' conftest.er1 >conftest.err | |
21945 | rm -f conftest.er1 | |
21946 | cat conftest.err >&5 | |
21947 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21948 | (exit $ac_status); } && { | |
21949 | test -z "$ac_c_werror_flag" || | |
21950 | test ! -s conftest.err | |
21951 | } && test -s conftest$ac_exeext && { | |
21952 | test "$cross_compiling" = yes || | |
21953 | $as_test_x conftest$ac_exeext | |
21954 | }; then | |
21955 | ac_cv_lib_krb5_krb5_init_context=yes | |
503d2be0 | 21956 | else |
bf89cb4d GM |
21957 | $as_echo "$as_me: failed program was:" >&5 |
21958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21959 | ||
21960 | ac_cv_lib_krb5_krb5_init_context=no | |
a21616bd | 21961 | fi |
bf89cb4d GM |
21962 | |
21963 | rm -rf conftest.dSYM | |
21964 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21965 | conftest$ac_exeext conftest.$ac_ext | |
0ca10bb7 RC |
21966 | LIBS=$ac_check_lib_save_LIBS |
21967 | fi | |
bf89cb4d GM |
21968 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
21969 | $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } | |
21970 | if test $ac_cv_lib_krb5_krb5_init_context = yes; then | |
21971 | cat >>confdefs.h <<_ACEOF | |
21972 | #define HAVE_LIBKRB5 1 | |
21973 | _ACEOF | |
21974 | ||
21975 | LIBS="-lkrb5 $LIBS" | |
c0d27fcc MR |
21976 | |
21977 | fi | |
bf89cb4d GM |
21978 | |
21979 | if test "${with_kerberos5}" = no; then | |
21980 | ||
21981 | { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 | |
21982 | $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } | |
21983 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
e9a63f04 | 21984 | $as_echo_n "(cached) " >&6 |
21287a21 | 21985 | else |
0ca10bb7 | 21986 | ac_check_lib_save_LIBS=$LIBS |
bf89cb4d GM |
21987 | LIBS="-ldes425 $LIBS" |
21988 | cat >conftest.$ac_ext <<_ACEOF | |
21989 | /* confdefs.h. */ | |
21990 | _ACEOF | |
21991 | cat confdefs.h >>conftest.$ac_ext | |
21992 | cat >>conftest.$ac_ext <<_ACEOF | |
21287a21 | 21993 | /* end confdefs.h. */ |
21287a21 | 21994 | |
0ca10bb7 RC |
21995 | /* Override any GCC internal prototype to avoid an error. |
21996 | Use char because int might match the return type of a GCC | |
21997 | builtin and then its argument prototype would still apply. */ | |
21998 | #ifdef __cplusplus | |
21999 | extern "C" | |
22000 | #endif | |
bf89cb4d | 22001 | char des_cbc_encrypt (); |
21287a21 CY |
22002 | int |
22003 | main () | |
22004 | { | |
bf89cb4d | 22005 | return des_cbc_encrypt (); |
21287a21 CY |
22006 | ; |
22007 | return 0; | |
22008 | } | |
22009 | _ACEOF | |
bf89cb4d GM |
22010 | rm -f conftest.$ac_objext conftest$ac_exeext |
22011 | if { (ac_try="$ac_link" | |
22012 | case "(($ac_try" in | |
22013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22014 | *) ac_try_echo=$ac_try;; | |
22015 | esac | |
22016 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22017 | $as_echo "$ac_try_echo") >&5 | |
22018 | (eval "$ac_link") 2>conftest.er1 | |
22019 | ac_status=$? | |
22020 | grep -v '^ *+' conftest.er1 >conftest.err | |
22021 | rm -f conftest.er1 | |
22022 | cat conftest.err >&5 | |
22023 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22024 | (exit $ac_status); } && { | |
22025 | test -z "$ac_c_werror_flag" || | |
22026 | test ! -s conftest.err | |
22027 | } && test -s conftest$ac_exeext && { | |
22028 | test "$cross_compiling" = yes || | |
22029 | $as_test_x conftest$ac_exeext | |
22030 | }; then | |
22031 | ac_cv_lib_des425_des_cbc_encrypt=yes | |
21287a21 | 22032 | else |
bf89cb4d GM |
22033 | $as_echo "$as_me: failed program was:" >&5 |
22034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22035 | ||
22036 | ac_cv_lib_des425_des_cbc_encrypt=no | |
0ca10bb7 | 22037 | fi |
bf89cb4d GM |
22038 | |
22039 | rm -rf conftest.dSYM | |
22040 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22041 | conftest$ac_exeext conftest.$ac_ext | |
0ca10bb7 RC |
22042 | LIBS=$ac_check_lib_save_LIBS |
22043 | fi | |
bf89cb4d GM |
22044 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
22045 | $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } | |
22046 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
22047 | cat >>confdefs.h <<_ACEOF | |
22048 | #define HAVE_LIBDES425 1 | |
22049 | _ACEOF | |
21287a21 | 22050 | |
bf89cb4d GM |
22051 | LIBS="-ldes425 $LIBS" |
22052 | ||
22053 | else | |
22054 | ||
22055 | { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 | |
22056 | $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } | |
22057 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
0ca10bb7 RC |
22058 | $as_echo_n "(cached) " >&6 |
22059 | else | |
22060 | ac_check_lib_save_LIBS=$LIBS | |
bf89cb4d GM |
22061 | LIBS="-ldes $LIBS" |
22062 | cat >conftest.$ac_ext <<_ACEOF | |
22063 | /* confdefs.h. */ | |
22064 | _ACEOF | |
22065 | cat confdefs.h >>conftest.$ac_ext | |
22066 | cat >>conftest.$ac_ext <<_ACEOF | |
21287a21 | 22067 | /* end confdefs.h. */ |
21287a21 | 22068 | |
0ca10bb7 RC |
22069 | /* Override any GCC internal prototype to avoid an error. |
22070 | Use char because int might match the return type of a GCC | |
22071 | builtin and then its argument prototype would still apply. */ | |
22072 | #ifdef __cplusplus | |
22073 | extern "C" | |
22074 | #endif | |
bf89cb4d | 22075 | char des_cbc_encrypt (); |
21287a21 CY |
22076 | int |
22077 | main () | |
22078 | { | |
bf89cb4d | 22079 | return des_cbc_encrypt (); |
21287a21 CY |
22080 | ; |
22081 | return 0; | |
22082 | } | |
22083 | _ACEOF | |
bf89cb4d GM |
22084 | rm -f conftest.$ac_objext conftest$ac_exeext |
22085 | if { (ac_try="$ac_link" | |
22086 | case "(($ac_try" in | |
22087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22088 | *) ac_try_echo=$ac_try;; | |
22089 | esac | |
22090 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22091 | $as_echo "$ac_try_echo") >&5 | |
22092 | (eval "$ac_link") 2>conftest.er1 | |
22093 | ac_status=$? | |
22094 | grep -v '^ *+' conftest.er1 >conftest.err | |
22095 | rm -f conftest.er1 | |
22096 | cat conftest.err >&5 | |
22097 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22098 | (exit $ac_status); } && { | |
22099 | test -z "$ac_c_werror_flag" || | |
22100 | test ! -s conftest.err | |
22101 | } && test -s conftest$ac_exeext && { | |
22102 | test "$cross_compiling" = yes || | |
22103 | $as_test_x conftest$ac_exeext | |
22104 | }; then | |
22105 | ac_cv_lib_des_des_cbc_encrypt=yes | |
21287a21 | 22106 | else |
bf89cb4d GM |
22107 | $as_echo "$as_me: failed program was:" >&5 |
22108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22109 | ||
22110 | ac_cv_lib_des_des_cbc_encrypt=no | |
21287a21 | 22111 | fi |
bf89cb4d GM |
22112 | |
22113 | rm -rf conftest.dSYM | |
22114 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22115 | conftest$ac_exeext conftest.$ac_ext | |
0ca10bb7 | 22116 | LIBS=$ac_check_lib_save_LIBS |
21287a21 | 22117 | fi |
bf89cb4d GM |
22118 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
22119 | $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } | |
22120 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
22121 | cat >>confdefs.h <<_ACEOF | |
22122 | #define HAVE_LIBDES 1 | |
22123 | _ACEOF | |
22124 | ||
22125 | LIBS="-ldes $LIBS" | |
22126 | ||
21287a21 | 22127 | fi |
21287a21 CY |
22128 | |
22129 | fi | |
0ca10bb7 | 22130 | |
bf89cb4d GM |
22131 | |
22132 | { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 | |
22133 | $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } | |
22134 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | |
e9a63f04 | 22135 | $as_echo_n "(cached) " >&6 |
21287a21 | 22136 | else |
0ca10bb7 | 22137 | ac_check_lib_save_LIBS=$LIBS |
bf89cb4d GM |
22138 | LIBS="-lkrb4 $LIBS" |
22139 | cat >conftest.$ac_ext <<_ACEOF | |
22140 | /* confdefs.h. */ | |
22141 | _ACEOF | |
22142 | cat confdefs.h >>conftest.$ac_ext | |
22143 | cat >>conftest.$ac_ext <<_ACEOF | |
21287a21 | 22144 | /* end confdefs.h. */ |
21287a21 | 22145 | |
0ca10bb7 RC |
22146 | /* Override any GCC internal prototype to avoid an error. |
22147 | Use char because int might match the return type of a GCC | |
22148 | builtin and then its argument prototype would still apply. */ | |
22149 | #ifdef __cplusplus | |
22150 | extern "C" | |
22151 | #endif | |
bf89cb4d | 22152 | char krb_get_cred (); |
21287a21 CY |
22153 | int |
22154 | main () | |
22155 | { | |
bf89cb4d | 22156 | return krb_get_cred (); |
21287a21 CY |
22157 | ; |
22158 | return 0; | |
22159 | } | |
22160 | _ACEOF | |
bf89cb4d GM |
22161 | rm -f conftest.$ac_objext conftest$ac_exeext |
22162 | if { (ac_try="$ac_link" | |
22163 | case "(($ac_try" in | |
22164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22165 | *) ac_try_echo=$ac_try;; | |
22166 | esac | |
22167 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22168 | $as_echo "$ac_try_echo") >&5 | |
22169 | (eval "$ac_link") 2>conftest.er1 | |
22170 | ac_status=$? | |
22171 | grep -v '^ *+' conftest.er1 >conftest.err | |
22172 | rm -f conftest.er1 | |
22173 | cat conftest.err >&5 | |
22174 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22175 | (exit $ac_status); } && { | |
22176 | test -z "$ac_c_werror_flag" || | |
22177 | test ! -s conftest.err | |
22178 | } && test -s conftest$ac_exeext && { | |
22179 | test "$cross_compiling" = yes || | |
22180 | $as_test_x conftest$ac_exeext | |
22181 | }; then | |
22182 | ac_cv_lib_krb4_krb_get_cred=yes | |
0ca10bb7 | 22183 | else |
bf89cb4d GM |
22184 | $as_echo "$as_me: failed program was:" >&5 |
22185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 22186 | |
bf89cb4d | 22187 | ac_cv_lib_krb4_krb_get_cred=no |
0ca10bb7 RC |
22188 | fi |
22189 | ||
bf89cb4d GM |
22190 | rm -rf conftest.dSYM |
22191 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22192 | conftest$ac_exeext conftest.$ac_ext | |
22193 | LIBS=$ac_check_lib_save_LIBS | |
22194 | fi | |
22195 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 | |
22196 | $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } | |
22197 | if test $ac_cv_lib_krb4_krb_get_cred = yes; then | |
0ca10bb7 | 22198 | cat >>confdefs.h <<_ACEOF |
bf89cb4d | 22199 | #define HAVE_LIBKRB4 1 |
0ca10bb7 RC |
22200 | _ACEOF |
22201 | ||
bf89cb4d | 22202 | LIBS="-lkrb4 $LIBS" |
0ca10bb7 | 22203 | |
bf89cb4d | 22204 | else |
0ca10bb7 | 22205 | |
bf89cb4d GM |
22206 | { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 |
22207 | $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } | |
22208 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | |
0ca10bb7 RC |
22209 | $as_echo_n "(cached) " >&6 |
22210 | else | |
22211 | ac_check_lib_save_LIBS=$LIBS | |
bf89cb4d GM |
22212 | LIBS="-lkrb $LIBS" |
22213 | cat >conftest.$ac_ext <<_ACEOF | |
22214 | /* confdefs.h. */ | |
22215 | _ACEOF | |
22216 | cat confdefs.h >>conftest.$ac_ext | |
22217 | cat >>conftest.$ac_ext <<_ACEOF | |
21287a21 | 22218 | /* end confdefs.h. */ |
21287a21 | 22219 | |
0ca10bb7 RC |
22220 | /* Override any GCC internal prototype to avoid an error. |
22221 | Use char because int might match the return type of a GCC | |
22222 | builtin and then its argument prototype would still apply. */ | |
22223 | #ifdef __cplusplus | |
22224 | extern "C" | |
22225 | #endif | |
bf89cb4d | 22226 | char krb_get_cred (); |
21287a21 CY |
22227 | int |
22228 | main () | |
22229 | { | |
bf89cb4d | 22230 | return krb_get_cred (); |
21287a21 CY |
22231 | ; |
22232 | return 0; | |
22233 | } | |
22234 | _ACEOF | |
bf89cb4d GM |
22235 | rm -f conftest.$ac_objext conftest$ac_exeext |
22236 | if { (ac_try="$ac_link" | |
22237 | case "(($ac_try" in | |
22238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22239 | *) ac_try_echo=$ac_try;; | |
22240 | esac | |
22241 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22242 | $as_echo "$ac_try_echo") >&5 | |
22243 | (eval "$ac_link") 2>conftest.er1 | |
22244 | ac_status=$? | |
22245 | grep -v '^ *+' conftest.er1 >conftest.err | |
22246 | rm -f conftest.er1 | |
22247 | cat conftest.err >&5 | |
22248 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22249 | (exit $ac_status); } && { | |
22250 | test -z "$ac_c_werror_flag" || | |
22251 | test ! -s conftest.err | |
22252 | } && test -s conftest$ac_exeext && { | |
22253 | test "$cross_compiling" = yes || | |
22254 | $as_test_x conftest$ac_exeext | |
22255 | }; then | |
22256 | ac_cv_lib_krb_krb_get_cred=yes | |
22257 | else | |
22258 | $as_echo "$as_me: failed program was:" >&5 | |
22259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19650fd6 | 22260 | |
bf89cb4d | 22261 | ac_cv_lib_krb_krb_get_cred=no |
c0d27fcc | 22262 | fi |
ca81d7a0 | 22263 | |
bf89cb4d GM |
22264 | rm -rf conftest.dSYM |
22265 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22266 | conftest$ac_exeext conftest.$ac_ext | |
22267 | LIBS=$ac_check_lib_save_LIBS | |
0ca10bb7 | 22268 | fi |
bf89cb4d GM |
22269 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
22270 | $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } | |
22271 | if test $ac_cv_lib_krb_krb_get_cred = yes; then | |
0ca10bb7 | 22272 | cat >>confdefs.h <<_ACEOF |
bf89cb4d | 22273 | #define HAVE_LIBKRB 1 |
503d2be0 | 22274 | _ACEOF |
19650fd6 | 22275 | |
bf89cb4d | 22276 | LIBS="-lkrb $LIBS" |
0ca10bb7 | 22277 | |
a21616bd | 22278 | fi |
ca81d7a0 | 22279 | |
0ca10bb7 | 22280 | fi |
ca81d7a0 | 22281 | |
bf89cb4d | 22282 | fi |
0ca10bb7 | 22283 | |
bf89cb4d | 22284 | if test "${with_kerberos5}" != no; then |
0ca10bb7 | 22285 | |
bf89cb4d GM |
22286 | for ac_header in krb5.h |
22287 | do | |
22288 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22289 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
22290 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22291 | $as_echo_n "checking for $ac_header... " >&6; } | |
22292 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 22293 | $as_echo_n "(cached) " >&6 |
bf89cb4d GM |
22294 | fi |
22295 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
22296 | $as_echo "$as_val"'` | |
22297 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22298 | $as_echo "$ac_res" >&6; } | |
c0d27fcc | 22299 | else |
bf89cb4d GM |
22300 | # Is the header compilable? |
22301 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22302 | $as_echo_n "checking $ac_header usability... " >&6; } | |
22303 | cat >conftest.$ac_ext <<_ACEOF | |
22304 | /* confdefs.h. */ | |
22305 | _ACEOF | |
22306 | cat confdefs.h >>conftest.$ac_ext | |
22307 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 | 22308 | /* end confdefs.h. */ |
bf89cb4d GM |
22309 | $ac_includes_default |
22310 | #include <$ac_header> | |
0ca10bb7 | 22311 | _ACEOF |
bf89cb4d GM |
22312 | rm -f conftest.$ac_objext |
22313 | if { (ac_try="$ac_compile" | |
22314 | case "(($ac_try" in | |
22315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22316 | *) ac_try_echo=$ac_try;; | |
22317 | esac | |
22318 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22319 | $as_echo "$ac_try_echo") >&5 | |
22320 | (eval "$ac_compile") 2>conftest.er1 | |
22321 | ac_status=$? | |
22322 | grep -v '^ *+' conftest.er1 >conftest.err | |
22323 | rm -f conftest.er1 | |
22324 | cat conftest.err >&5 | |
22325 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22326 | (exit $ac_status); } && { | |
22327 | test -z "$ac_c_werror_flag" || | |
22328 | test ! -s conftest.err | |
22329 | } && test -s conftest.$ac_objext; then | |
22330 | ac_header_compiler=yes | |
0ca10bb7 | 22331 | else |
bf89cb4d GM |
22332 | $as_echo "$as_me: failed program was:" >&5 |
22333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c0d27fcc | 22334 | |
bf89cb4d | 22335 | ac_header_compiler=no |
c0d27fcc | 22336 | fi |
0ca10bb7 | 22337 | |
bf89cb4d GM |
22338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22339 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22340 | $as_echo "$ac_header_compiler" >&6; } | |
503d2be0 | 22341 | |
bf89cb4d GM |
22342 | # Is the header present? |
22343 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22344 | $as_echo_n "checking $ac_header presence... " >&6; } | |
22345 | cat >conftest.$ac_ext <<_ACEOF | |
22346 | /* confdefs.h. */ | |
22347 | _ACEOF | |
22348 | cat confdefs.h >>conftest.$ac_ext | |
22349 | cat >>conftest.$ac_ext <<_ACEOF | |
22350 | /* end confdefs.h. */ | |
22351 | #include <$ac_header> | |
22352 | _ACEOF | |
22353 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
22354 | case "(($ac_try" in | |
22355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22356 | *) ac_try_echo=$ac_try;; | |
22357 | esac | |
22358 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22359 | $as_echo "$ac_try_echo") >&5 | |
22360 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
22361 | ac_status=$? | |
22362 | grep -v '^ *+' conftest.er1 >conftest.err | |
22363 | rm -f conftest.er1 | |
22364 | cat conftest.err >&5 | |
22365 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22366 | (exit $ac_status); } >/dev/null && { | |
22367 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22368 | test ! -s conftest.err | |
22369 | }; then | |
22370 | ac_header_preproc=yes | |
a21616bd | 22371 | else |
bf89cb4d GM |
22372 | $as_echo "$as_me: failed program was:" >&5 |
22373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22374 | ||
22375 | ac_header_preproc=no | |
0ca10bb7 | 22376 | fi |
503d2be0 | 22377 | |
bf89cb4d GM |
22378 | rm -f conftest.err conftest.$ac_ext |
22379 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22380 | $as_echo "$ac_header_preproc" >&6; } | |
19650fd6 | 22381 | |
bf89cb4d GM |
22382 | # So? What about this header? |
22383 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
22384 | yes:no: ) | |
22385 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
22386 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22387 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
22388 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22389 | ac_header_preproc=yes | |
22390 | ;; | |
22391 | no:yes:* ) | |
22392 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
22393 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
22394 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
22395 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22396 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22397 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22398 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22399 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
22400 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
22401 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
22402 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
22403 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
22404 | ||
22405 | ;; | |
22406 | esac | |
22407 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22408 | $as_echo_n "checking for $ac_header... " >&6; } | |
22409 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
22410 | $as_echo_n "(cached) " >&6 | |
0ca10bb7 | 22411 | else |
bf89cb4d | 22412 | eval "$as_ac_Header=\$ac_header_preproc" |
0ca10bb7 | 22413 | fi |
bf89cb4d GM |
22414 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
22415 | $as_echo "$as_val"'` | |
22416 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22417 | $as_echo "$ac_res" >&6; } | |
0ca10bb7 | 22418 | |
bf89cb4d GM |
22419 | fi |
22420 | if test `eval 'as_val=${'$as_ac_Header'} | |
22421 | $as_echo "$as_val"'` = yes; then | |
22422 | cat >>confdefs.h <<_ACEOF | |
22423 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22424 | _ACEOF | |
22425 | { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5 | |
22426 | $as_echo_n "checking for krb5_error.text... " >&6; } | |
22427 | if test "${ac_cv_member_krb5_error_text+set}" = set; then | |
0ca10bb7 RC |
22428 | $as_echo_n "(cached) " >&6 |
22429 | else | |
bf89cb4d GM |
22430 | cat >conftest.$ac_ext <<_ACEOF |
22431 | /* confdefs.h. */ | |
22432 | _ACEOF | |
22433 | cat confdefs.h >>conftest.$ac_ext | |
22434 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 | 22435 | /* end confdefs.h. */ |
bf89cb4d GM |
22436 | #include <krb5.h> |
22437 | ||
0ca10bb7 RC |
22438 | int |
22439 | main () | |
22440 | { | |
bf89cb4d GM |
22441 | static krb5_error ac_aggr; |
22442 | if (ac_aggr.text) | |
22443 | return 0; | |
0ca10bb7 RC |
22444 | ; |
22445 | return 0; | |
22446 | } | |
19650fd6 | 22447 | _ACEOF |
bf89cb4d GM |
22448 | rm -f conftest.$ac_objext |
22449 | if { (ac_try="$ac_compile" | |
22450 | case "(($ac_try" in | |
22451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22452 | *) ac_try_echo=$ac_try;; | |
22453 | esac | |
22454 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22455 | $as_echo "$ac_try_echo") >&5 | |
22456 | (eval "$ac_compile") 2>conftest.er1 | |
22457 | ac_status=$? | |
22458 | grep -v '^ *+' conftest.er1 >conftest.err | |
22459 | rm -f conftest.er1 | |
22460 | cat conftest.err >&5 | |
22461 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22462 | (exit $ac_status); } && { | |
22463 | test -z "$ac_c_werror_flag" || | |
22464 | test ! -s conftest.err | |
22465 | } && test -s conftest.$ac_objext; then | |
22466 | ac_cv_member_krb5_error_text=yes | |
22467 | else | |
22468 | $as_echo "$as_me: failed program was:" >&5 | |
22469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22470 | ||
22471 | cat >conftest.$ac_ext <<_ACEOF | |
22472 | /* confdefs.h. */ | |
22473 | _ACEOF | |
22474 | cat confdefs.h >>conftest.$ac_ext | |
22475 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 22476 | /* end confdefs.h. */ |
bf89cb4d GM |
22477 | #include <krb5.h> |
22478 | ||
0ca10bb7 RC |
22479 | int |
22480 | main () | |
22481 | { | |
bf89cb4d GM |
22482 | static krb5_error ac_aggr; |
22483 | if (sizeof ac_aggr.text) | |
22484 | return 0; | |
0ca10bb7 RC |
22485 | ; |
22486 | return 0; | |
22487 | } | |
503d2be0 | 22488 | _ACEOF |
bf89cb4d GM |
22489 | rm -f conftest.$ac_objext |
22490 | if { (ac_try="$ac_compile" | |
22491 | case "(($ac_try" in | |
22492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22493 | *) ac_try_echo=$ac_try;; | |
0ca10bb7 | 22494 | esac |
bf89cb4d GM |
22495 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
22496 | $as_echo "$ac_try_echo") >&5 | |
22497 | (eval "$ac_compile") 2>conftest.er1 | |
22498 | ac_status=$? | |
22499 | grep -v '^ *+' conftest.er1 >conftest.err | |
22500 | rm -f conftest.er1 | |
22501 | cat conftest.err >&5 | |
22502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22503 | (exit $ac_status); } && { | |
22504 | test -z "$ac_c_werror_flag" || | |
22505 | test ! -s conftest.err | |
22506 | } && test -s conftest.$ac_objext; then | |
22507 | ac_cv_member_krb5_error_text=yes | |
22508 | else | |
22509 | $as_echo "$as_me: failed program was:" >&5 | |
22510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 22511 | |
bf89cb4d GM |
22512 | ac_cv_member_krb5_error_text=no |
22513 | fi | |
0ca10bb7 | 22514 | |
bf89cb4d GM |
22515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22516 | fi | |
19650fd6 | 22517 | |
bf89cb4d | 22518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a21616bd | 22519 | fi |
bf89cb4d GM |
22520 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5 |
22521 | $as_echo "$ac_cv_member_krb5_error_text" >&6; } | |
22522 | if test $ac_cv_member_krb5_error_text = yes; then | |
ca81d7a0 | 22523 | |
bf89cb4d GM |
22524 | cat >>confdefs.h <<_ACEOF |
22525 | #define HAVE_KRB5_ERROR_TEXT 1 | |
22526 | _ACEOF | |
c0d27fcc | 22527 | |
ca81d7a0 | 22528 | |
bf89cb4d GM |
22529 | fi |
22530 | { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5 | |
22531 | $as_echo_n "checking for krb5_error.e_text... " >&6; } | |
22532 | if test "${ac_cv_member_krb5_error_e_text+set}" = set; then | |
22533 | $as_echo_n "(cached) " >&6 | |
22534 | else | |
22535 | cat >conftest.$ac_ext <<_ACEOF | |
22536 | /* confdefs.h. */ | |
22537 | _ACEOF | |
22538 | cat confdefs.h >>conftest.$ac_ext | |
22539 | cat >>conftest.$ac_ext <<_ACEOF | |
22540 | /* end confdefs.h. */ | |
22541 | #include <krb5.h> | |
22542 | ||
22543 | int | |
22544 | main () | |
22545 | { | |
22546 | static krb5_error ac_aggr; | |
22547 | if (ac_aggr.e_text) | |
22548 | return 0; | |
22549 | ; | |
22550 | return 0; | |
22551 | } | |
22552 | _ACEOF | |
22553 | rm -f conftest.$ac_objext | |
22554 | if { (ac_try="$ac_compile" | |
22555 | case "(($ac_try" in | |
22556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22557 | *) ac_try_echo=$ac_try;; | |
22558 | esac | |
22559 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22560 | $as_echo "$ac_try_echo") >&5 | |
22561 | (eval "$ac_compile") 2>conftest.er1 | |
22562 | ac_status=$? | |
22563 | grep -v '^ *+' conftest.er1 >conftest.err | |
22564 | rm -f conftest.er1 | |
22565 | cat conftest.err >&5 | |
22566 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22567 | (exit $ac_status); } && { | |
22568 | test -z "$ac_c_werror_flag" || | |
22569 | test ! -s conftest.err | |
22570 | } && test -s conftest.$ac_objext; then | |
22571 | ac_cv_member_krb5_error_e_text=yes | |
22572 | else | |
22573 | $as_echo "$as_me: failed program was:" >&5 | |
22574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c0d27fcc | 22575 | |
bf89cb4d GM |
22576 | cat >conftest.$ac_ext <<_ACEOF |
22577 | /* confdefs.h. */ | |
22578 | _ACEOF | |
22579 | cat confdefs.h >>conftest.$ac_ext | |
22580 | cat >>conftest.$ac_ext <<_ACEOF | |
22581 | /* end confdefs.h. */ | |
22582 | #include <krb5.h> | |
503d2be0 | 22583 | |
bf89cb4d GM |
22584 | int |
22585 | main () | |
22586 | { | |
22587 | static krb5_error ac_aggr; | |
22588 | if (sizeof ac_aggr.e_text) | |
22589 | return 0; | |
22590 | ; | |
22591 | return 0; | |
22592 | } | |
22593 | _ACEOF | |
22594 | rm -f conftest.$ac_objext | |
22595 | if { (ac_try="$ac_compile" | |
22596 | case "(($ac_try" in | |
22597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22598 | *) ac_try_echo=$ac_try;; | |
22599 | esac | |
22600 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22601 | $as_echo "$ac_try_echo") >&5 | |
22602 | (eval "$ac_compile") 2>conftest.er1 | |
22603 | ac_status=$? | |
22604 | grep -v '^ *+' conftest.er1 >conftest.err | |
22605 | rm -f conftest.er1 | |
22606 | cat conftest.err >&5 | |
22607 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22608 | (exit $ac_status); } && { | |
22609 | test -z "$ac_c_werror_flag" || | |
22610 | test ! -s conftest.err | |
22611 | } && test -s conftest.$ac_objext; then | |
22612 | ac_cv_member_krb5_error_e_text=yes | |
22613 | else | |
22614 | $as_echo "$as_me: failed program was:" >&5 | |
22615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
503d2be0 | 22616 | |
bf89cb4d GM |
22617 | ac_cv_member_krb5_error_e_text=no |
22618 | fi | |
19650fd6 | 22619 | |
bf89cb4d GM |
22620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22621 | fi | |
ca81d7a0 | 22622 | |
bf89cb4d GM |
22623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22624 | fi | |
22625 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5 | |
22626 | $as_echo "$ac_cv_member_krb5_error_e_text" >&6; } | |
22627 | if test $ac_cv_member_krb5_error_e_text = yes; then | |
c0d27fcc | 22628 | |
bf89cb4d GM |
22629 | cat >>confdefs.h <<_ACEOF |
22630 | #define HAVE_KRB5_ERROR_E_TEXT 1 | |
22631 | _ACEOF | |
19650fd6 | 22632 | |
ca81d7a0 | 22633 | |
bf89cb4d | 22634 | fi |
c0d27fcc | 22635 | |
bf89cb4d | 22636 | fi |
ca81d7a0 | 22637 | |
bf89cb4d | 22638 | done |
c0d27fcc | 22639 | |
bf89cb4d | 22640 | else |
0ca10bb7 | 22641 | |
bf89cb4d GM |
22642 | for ac_header in des.h |
22643 | do | |
22644 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22645 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
22646 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22647 | $as_echo_n "checking for $ac_header... " >&6; } | |
22648 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
22649 | $as_echo_n "(cached) " >&6 | |
22650 | fi | |
22651 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
22652 | $as_echo "$as_val"'` | |
22653 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22654 | $as_echo "$ac_res" >&6; } | |
22655 | else | |
22656 | # Is the header compilable? | |
22657 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22658 | $as_echo_n "checking $ac_header usability... " >&6; } | |
22659 | cat >conftest.$ac_ext <<_ACEOF | |
22660 | /* confdefs.h. */ | |
22661 | _ACEOF | |
22662 | cat confdefs.h >>conftest.$ac_ext | |
22663 | cat >>conftest.$ac_ext <<_ACEOF | |
22664 | /* end confdefs.h. */ | |
22665 | $ac_includes_default | |
22666 | #include <$ac_header> | |
22667 | _ACEOF | |
22668 | rm -f conftest.$ac_objext | |
22669 | if { (ac_try="$ac_compile" | |
22670 | case "(($ac_try" in | |
22671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22672 | *) ac_try_echo=$ac_try;; | |
22673 | esac | |
22674 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22675 | $as_echo "$ac_try_echo") >&5 | |
22676 | (eval "$ac_compile") 2>conftest.er1 | |
22677 | ac_status=$? | |
22678 | grep -v '^ *+' conftest.er1 >conftest.err | |
22679 | rm -f conftest.er1 | |
22680 | cat conftest.err >&5 | |
22681 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22682 | (exit $ac_status); } && { | |
22683 | test -z "$ac_c_werror_flag" || | |
22684 | test ! -s conftest.err | |
22685 | } && test -s conftest.$ac_objext; then | |
22686 | ac_header_compiler=yes | |
22687 | else | |
22688 | $as_echo "$as_me: failed program was:" >&5 | |
22689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 22690 | |
bf89cb4d GM |
22691 | ac_header_compiler=no |
22692 | fi | |
0ca10bb7 | 22693 | |
bf89cb4d GM |
22694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22695 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22696 | $as_echo "$ac_header_compiler" >&6; } | |
0ca10bb7 | 22697 | |
bf89cb4d GM |
22698 | # Is the header present? |
22699 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22700 | $as_echo_n "checking $ac_header presence... " >&6; } | |
22701 | cat >conftest.$ac_ext <<_ACEOF | |
22702 | /* confdefs.h. */ | |
c0d27fcc | 22703 | _ACEOF |
bf89cb4d GM |
22704 | cat confdefs.h >>conftest.$ac_ext |
22705 | cat >>conftest.$ac_ext <<_ACEOF | |
22706 | /* end confdefs.h. */ | |
22707 | #include <$ac_header> | |
22708 | _ACEOF | |
22709 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
22710 | case "(($ac_try" in | |
22711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22712 | *) ac_try_echo=$ac_try;; | |
22713 | esac | |
22714 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22715 | $as_echo "$ac_try_echo") >&5 | |
22716 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
22717 | ac_status=$? | |
22718 | grep -v '^ *+' conftest.er1 >conftest.err | |
22719 | rm -f conftest.er1 | |
22720 | cat conftest.err >&5 | |
22721 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22722 | (exit $ac_status); } >/dev/null && { | |
22723 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22724 | test ! -s conftest.err | |
22725 | }; then | |
22726 | ac_header_preproc=yes | |
0ca10bb7 | 22727 | else |
bf89cb4d GM |
22728 | $as_echo "$as_me: failed program was:" >&5 |
22729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22730 | ||
22731 | ac_header_preproc=no | |
a21616bd | 22732 | fi |
c0d27fcc | 22733 | |
bf89cb4d GM |
22734 | rm -f conftest.err conftest.$ac_ext |
22735 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22736 | $as_echo "$ac_header_preproc" >&6; } | |
a21616bd | 22737 | |
bf89cb4d GM |
22738 | # So? What about this header? |
22739 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
22740 | yes:no: ) | |
22741 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
22742 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22743 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
22744 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22745 | ac_header_preproc=yes | |
22746 | ;; | |
22747 | no:yes:* ) | |
22748 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
22749 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
22750 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
22751 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22752 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22753 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22754 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22755 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
22756 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
22757 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
22758 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
22759 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
c0d27fcc | 22760 | |
bf89cb4d GM |
22761 | ;; |
22762 | esac | |
22763 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22764 | $as_echo_n "checking for $ac_header... " >&6; } | |
22765 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
22766 | $as_echo_n "(cached) " >&6 | |
0ca10bb7 | 22767 | else |
bf89cb4d | 22768 | eval "$as_ac_Header=\$ac_header_preproc" |
0ca10bb7 | 22769 | fi |
bf89cb4d GM |
22770 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
22771 | $as_echo "$as_val"'` | |
22772 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22773 | $as_echo "$ac_res" >&6; } | |
c0d27fcc | 22774 | |
0ca10bb7 | 22775 | fi |
bf89cb4d GM |
22776 | if test `eval 'as_val=${'$as_ac_Header'} |
22777 | $as_echo "$as_val"'` = yes; then | |
22778 | cat >>confdefs.h <<_ACEOF | |
22779 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22780 | _ACEOF | |
98418dba | 22781 | |
bf89cb4d | 22782 | else |
c0d27fcc | 22783 | |
bf89cb4d GM |
22784 | for ac_header in kerberosIV/des.h |
22785 | do | |
22786 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22787 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
22788 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22789 | $as_echo_n "checking for $ac_header... " >&6; } | |
22790 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 22791 | $as_echo_n "(cached) " >&6 |
c0d27fcc | 22792 | fi |
bf89cb4d GM |
22793 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
22794 | $as_echo "$as_val"'` | |
22795 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22796 | $as_echo "$ac_res" >&6; } | |
0ca10bb7 | 22797 | else |
bf89cb4d GM |
22798 | # Is the header compilable? |
22799 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22800 | $as_echo_n "checking $ac_header usability... " >&6; } | |
22801 | cat >conftest.$ac_ext <<_ACEOF | |
22802 | /* confdefs.h. */ | |
22803 | _ACEOF | |
22804 | cat confdefs.h >>conftest.$ac_ext | |
22805 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 22806 | /* end confdefs.h. */ |
bf89cb4d GM |
22807 | $ac_includes_default |
22808 | #include <$ac_header> | |
503d2be0 | 22809 | _ACEOF |
bf89cb4d GM |
22810 | rm -f conftest.$ac_objext |
22811 | if { (ac_try="$ac_compile" | |
22812 | case "(($ac_try" in | |
22813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22814 | *) ac_try_echo=$ac_try;; | |
22815 | esac | |
22816 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22817 | $as_echo "$ac_try_echo") >&5 | |
22818 | (eval "$ac_compile") 2>conftest.er1 | |
22819 | ac_status=$? | |
22820 | grep -v '^ *+' conftest.er1 >conftest.err | |
22821 | rm -f conftest.er1 | |
22822 | cat conftest.err >&5 | |
22823 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22824 | (exit $ac_status); } && { | |
22825 | test -z "$ac_c_werror_flag" || | |
22826 | test ! -s conftest.err | |
22827 | } && test -s conftest.$ac_objext; then | |
22828 | ac_header_compiler=yes | |
503d2be0 | 22829 | else |
bf89cb4d GM |
22830 | $as_echo "$as_me: failed program was:" >&5 |
22831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19650fd6 | 22832 | |
bf89cb4d | 22833 | ac_header_compiler=no |
a21616bd | 22834 | fi |
ca81d7a0 | 22835 | |
bf89cb4d GM |
22836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22837 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22838 | $as_echo "$ac_header_compiler" >&6; } | |
c0d27fcc | 22839 | |
bf89cb4d GM |
22840 | # Is the header present? |
22841 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22842 | $as_echo_n "checking $ac_header presence... " >&6; } | |
22843 | cat >conftest.$ac_ext <<_ACEOF | |
22844 | /* confdefs.h. */ | |
22845 | _ACEOF | |
22846 | cat confdefs.h >>conftest.$ac_ext | |
22847 | cat >>conftest.$ac_ext <<_ACEOF | |
22848 | /* end confdefs.h. */ | |
22849 | #include <$ac_header> | |
22850 | _ACEOF | |
22851 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
22852 | case "(($ac_try" in | |
22853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22854 | *) ac_try_echo=$ac_try;; | |
22855 | esac | |
22856 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22857 | $as_echo "$ac_try_echo") >&5 | |
22858 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
22859 | ac_status=$? | |
22860 | grep -v '^ *+' conftest.er1 >conftest.err | |
22861 | rm -f conftest.er1 | |
22862 | cat conftest.err >&5 | |
22863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22864 | (exit $ac_status); } >/dev/null && { | |
22865 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22866 | test ! -s conftest.err | |
22867 | }; then | |
22868 | ac_header_preproc=yes | |
22869 | else | |
22870 | $as_echo "$as_me: failed program was:" >&5 | |
22871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ca81d7a0 | 22872 | |
bf89cb4d GM |
22873 | ac_header_preproc=no |
22874 | fi | |
ca81d7a0 | 22875 | |
bf89cb4d GM |
22876 | rm -f conftest.err conftest.$ac_ext |
22877 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22878 | $as_echo "$ac_header_preproc" >&6; } | |
c0d27fcc | 22879 | |
bf89cb4d GM |
22880 | # So? What about this header? |
22881 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
22882 | yes:no: ) | |
22883 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
22884 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22885 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
22886 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22887 | ac_header_preproc=yes | |
22888 | ;; | |
22889 | no:yes:* ) | |
22890 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
22891 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
22892 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
22893 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22894 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22895 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22896 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22897 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
22898 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
22899 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
22900 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
22901 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19650fd6 | 22902 | |
bf89cb4d GM |
22903 | ;; |
22904 | esac | |
22905 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22906 | $as_echo_n "checking for $ac_header... " >&6; } | |
22907 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
22908 | $as_echo_n "(cached) " >&6 | |
22909 | else | |
22910 | eval "$as_ac_Header=\$ac_header_preproc" | |
a21616bd | 22911 | fi |
bf89cb4d GM |
22912 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
22913 | $as_echo "$as_val"'` | |
22914 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22915 | $as_echo "$ac_res" >&6; } | |
ca81d7a0 | 22916 | |
bf89cb4d GM |
22917 | fi |
22918 | if test `eval 'as_val=${'$as_ac_Header'} | |
22919 | $as_echo "$as_val"'` = yes; then | |
22920 | cat >>confdefs.h <<_ACEOF | |
22921 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22922 | _ACEOF | |
c0d27fcc | 22923 | |
bf89cb4d | 22924 | else |
ca81d7a0 | 22925 | |
bf89cb4d GM |
22926 | for ac_header in kerberos/des.h |
22927 | do | |
22928 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22929 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
22930 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22931 | $as_echo_n "checking for $ac_header... " >&6; } | |
22932 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 22933 | $as_echo_n "(cached) " >&6 |
bf89cb4d GM |
22934 | fi |
22935 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
22936 | $as_echo "$as_val"'` | |
22937 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22938 | $as_echo "$ac_res" >&6; } | |
c0d27fcc | 22939 | else |
bf89cb4d GM |
22940 | # Is the header compilable? |
22941 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22942 | $as_echo_n "checking $ac_header usability... " >&6; } | |
22943 | cat >conftest.$ac_ext <<_ACEOF | |
22944 | /* confdefs.h. */ | |
22945 | _ACEOF | |
22946 | cat confdefs.h >>conftest.$ac_ext | |
22947 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 RC |
22948 | /* end confdefs.h. */ |
22949 | $ac_includes_default | |
bf89cb4d | 22950 | #include <$ac_header> |
0ca10bb7 | 22951 | _ACEOF |
bf89cb4d GM |
22952 | rm -f conftest.$ac_objext |
22953 | if { (ac_try="$ac_compile" | |
22954 | case "(($ac_try" in | |
22955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22956 | *) ac_try_echo=$ac_try;; | |
22957 | esac | |
22958 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22959 | $as_echo "$ac_try_echo") >&5 | |
22960 | (eval "$ac_compile") 2>conftest.er1 | |
22961 | ac_status=$? | |
22962 | grep -v '^ *+' conftest.er1 >conftest.err | |
22963 | rm -f conftest.er1 | |
22964 | cat conftest.err >&5 | |
22965 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22966 | (exit $ac_status); } && { | |
22967 | test -z "$ac_c_werror_flag" || | |
22968 | test ! -s conftest.err | |
22969 | } && test -s conftest.$ac_objext; then | |
22970 | ac_header_compiler=yes | |
0ca10bb7 | 22971 | else |
bf89cb4d GM |
22972 | $as_echo "$as_me: failed program was:" >&5 |
22973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 22974 | |
bf89cb4d | 22975 | ac_header_compiler=no |
0ca10bb7 | 22976 | fi |
0ca10bb7 | 22977 | |
bf89cb4d GM |
22978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22979 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22980 | $as_echo "$ac_header_compiler" >&6; } | |
22981 | ||
22982 | # Is the header present? | |
22983 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22984 | $as_echo_n "checking $ac_header presence... " >&6; } | |
22985 | cat >conftest.$ac_ext <<_ACEOF | |
22986 | /* confdefs.h. */ | |
22987 | _ACEOF | |
22988 | cat confdefs.h >>conftest.$ac_ext | |
22989 | cat >>conftest.$ac_ext <<_ACEOF | |
22990 | /* end confdefs.h. */ | |
22991 | #include <$ac_header> | |
22992 | _ACEOF | |
22993 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
22994 | case "(($ac_try" in | |
22995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22996 | *) ac_try_echo=$ac_try;; | |
22997 | esac | |
22998 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22999 | $as_echo "$ac_try_echo") >&5 | |
23000 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23001 | ac_status=$? | |
23002 | grep -v '^ *+' conftest.er1 >conftest.err | |
23003 | rm -f conftest.er1 | |
23004 | cat conftest.err >&5 | |
23005 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23006 | (exit $ac_status); } >/dev/null && { | |
23007 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23008 | test ! -s conftest.err | |
23009 | }; then | |
23010 | ac_header_preproc=yes | |
23011 | else | |
23012 | $as_echo "$as_me: failed program was:" >&5 | |
23013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c0d27fcc | 23014 | |
bf89cb4d | 23015 | ac_header_preproc=no |
c0d27fcc | 23016 | fi |
0ca10bb7 | 23017 | |
bf89cb4d GM |
23018 | rm -f conftest.err conftest.$ac_ext |
23019 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23020 | $as_echo "$ac_header_preproc" >&6; } | |
0ca10bb7 | 23021 | |
bf89cb4d GM |
23022 | # So? What about this header? |
23023 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23024 | yes:no: ) | |
23025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23026 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23027 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23028 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23029 | ac_header_preproc=yes | |
23030 | ;; | |
23031 | no:yes:* ) | |
23032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23033 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23034 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23035 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23036 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23037 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23038 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23039 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23040 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23041 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23042 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23043 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
503d2be0 | 23044 | |
bf89cb4d GM |
23045 | ;; |
23046 | esac | |
23047 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23048 | $as_echo_n "checking for $ac_header... " >&6; } | |
23049 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 23050 | $as_echo_n "(cached) " >&6 |
98418dba | 23051 | else |
bf89cb4d GM |
23052 | eval "$as_ac_Header=\$ac_header_preproc" |
23053 | fi | |
23054 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23055 | $as_echo "$as_val"'` | |
23056 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23057 | $as_echo "$ac_res" >&6; } | |
0ca10bb7 | 23058 | |
0ca10bb7 | 23059 | fi |
bf89cb4d GM |
23060 | if test `eval 'as_val=${'$as_ac_Header'} |
23061 | $as_echo "$as_val"'` = yes; then | |
23062 | cat >>confdefs.h <<_ACEOF | |
23063 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
23064 | _ACEOF | |
23065 | ||
0ca10bb7 | 23066 | fi |
19650fd6 | 23067 | |
bf89cb4d GM |
23068 | done |
23069 | ||
c0d27fcc | 23070 | fi |
ca81d7a0 | 23071 | |
bf89cb4d GM |
23072 | done |
23073 | ||
0ca10bb7 | 23074 | fi |
bf89cb4d | 23075 | |
0ca10bb7 | 23076 | done |
c0d27fcc | 23077 | |
0ca10bb7 | 23078 | |
bf89cb4d GM |
23079 | for ac_header in krb.h |
23080 | do | |
23081 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23082 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23083 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23084 | $as_echo_n "checking for $ac_header... " >&6; } | |
23085 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23086 | $as_echo_n "(cached) " >&6 | |
23087 | fi | |
23088 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23089 | $as_echo "$as_val"'` | |
23090 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23091 | $as_echo "$ac_res" >&6; } | |
23092 | else | |
23093 | # Is the header compilable? | |
23094 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23095 | $as_echo_n "checking $ac_header usability... " >&6; } | |
23096 | cat >conftest.$ac_ext <<_ACEOF | |
23097 | /* confdefs.h. */ | |
503d2be0 | 23098 | _ACEOF |
bf89cb4d GM |
23099 | cat confdefs.h >>conftest.$ac_ext |
23100 | cat >>conftest.$ac_ext <<_ACEOF | |
23101 | /* end confdefs.h. */ | |
23102 | $ac_includes_default | |
23103 | #include <$ac_header> | |
23104 | _ACEOF | |
23105 | rm -f conftest.$ac_objext | |
23106 | if { (ac_try="$ac_compile" | |
23107 | case "(($ac_try" in | |
23108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23109 | *) ac_try_echo=$ac_try;; | |
23110 | esac | |
23111 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23112 | $as_echo "$ac_try_echo") >&5 | |
23113 | (eval "$ac_compile") 2>conftest.er1 | |
23114 | ac_status=$? | |
23115 | grep -v '^ *+' conftest.er1 >conftest.err | |
23116 | rm -f conftest.er1 | |
23117 | cat conftest.err >&5 | |
23118 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23119 | (exit $ac_status); } && { | |
23120 | test -z "$ac_c_werror_flag" || | |
23121 | test ! -s conftest.err | |
23122 | } && test -s conftest.$ac_objext; then | |
23123 | ac_header_compiler=yes | |
23124 | else | |
23125 | $as_echo "$as_me: failed program was:" >&5 | |
23126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19650fd6 | 23127 | |
bf89cb4d | 23128 | ac_header_compiler=no |
a21616bd | 23129 | fi |
ca81d7a0 | 23130 | |
bf89cb4d GM |
23131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
23132 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23133 | $as_echo "$ac_header_compiler" >&6; } | |
35996d22 | 23134 | |
bf89cb4d GM |
23135 | # Is the header present? |
23136 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23137 | $as_echo_n "checking $ac_header presence... " >&6; } | |
23138 | cat >conftest.$ac_ext <<_ACEOF | |
23139 | /* confdefs.h. */ | |
23140 | _ACEOF | |
23141 | cat confdefs.h >>conftest.$ac_ext | |
23142 | cat >>conftest.$ac_ext <<_ACEOF | |
23143 | /* end confdefs.h. */ | |
23144 | #include <$ac_header> | |
0ca10bb7 | 23145 | _ACEOF |
bf89cb4d GM |
23146 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
23147 | case "(($ac_try" in | |
23148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23149 | *) ac_try_echo=$ac_try;; | |
23150 | esac | |
23151 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23152 | $as_echo "$ac_try_echo") >&5 | |
23153 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23154 | ac_status=$? | |
23155 | grep -v '^ *+' conftest.er1 >conftest.err | |
23156 | rm -f conftest.er1 | |
23157 | cat conftest.err >&5 | |
23158 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23159 | (exit $ac_status); } >/dev/null && { | |
23160 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23161 | test ! -s conftest.err | |
23162 | }; then | |
23163 | ac_header_preproc=yes | |
23164 | else | |
23165 | $as_echo "$as_me: failed program was:" >&5 | |
23166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ca81d7a0 | 23167 | |
bf89cb4d | 23168 | ac_header_preproc=no |
0ca10bb7 | 23169 | fi |
0ca10bb7 | 23170 | |
bf89cb4d GM |
23171 | rm -f conftest.err conftest.$ac_ext |
23172 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23173 | $as_echo "$ac_header_preproc" >&6; } | |
0ca10bb7 | 23174 | |
bf89cb4d GM |
23175 | # So? What about this header? |
23176 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23177 | yes:no: ) | |
23178 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23179 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23180 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23181 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23182 | ac_header_preproc=yes | |
23183 | ;; | |
23184 | no:yes:* ) | |
23185 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23186 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23187 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23188 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23189 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23190 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23191 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23192 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23193 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23194 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23195 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23196 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
c0d27fcc | 23197 | |
bf89cb4d GM |
23198 | ;; |
23199 | esac | |
23200 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23201 | $as_echo_n "checking for $ac_header... " >&6; } | |
23202 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23203 | $as_echo_n "(cached) " >&6 | |
0ca10bb7 | 23204 | else |
bf89cb4d | 23205 | eval "$as_ac_Header=\$ac_header_preproc" |
c0d27fcc | 23206 | fi |
bf89cb4d GM |
23207 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
23208 | $as_echo "$as_val"'` | |
23209 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23210 | $as_echo "$ac_res" >&6; } | |
23211 | ||
0ca10bb7 | 23212 | fi |
bf89cb4d GM |
23213 | if test `eval 'as_val=${'$as_ac_Header'} |
23214 | $as_echo "$as_val"'` = yes; then | |
c0d27fcc | 23215 | cat >>confdefs.h <<_ACEOF |
bf89cb4d | 23216 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 23217 | _ACEOF |
503d2be0 | 23218 | |
bf89cb4d | 23219 | else |
0ca10bb7 | 23220 | |
bf89cb4d GM |
23221 | for ac_header in kerberosIV/krb.h |
23222 | do | |
23223 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23224 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23225 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23226 | $as_echo_n "checking for $ac_header... " >&6; } | |
23227 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23228 | $as_echo_n "(cached) " >&6 | |
a21616bd | 23229 | fi |
bf89cb4d GM |
23230 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
23231 | $as_echo "$as_val"'` | |
23232 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23233 | $as_echo "$ac_res" >&6; } | |
23234 | else | |
23235 | # Is the header compilable? | |
23236 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23237 | $as_echo_n "checking $ac_header usability... " >&6; } | |
23238 | cat >conftest.$ac_ext <<_ACEOF | |
23239 | /* confdefs.h. */ | |
23240 | _ACEOF | |
23241 | cat confdefs.h >>conftest.$ac_ext | |
23242 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 | 23243 | /* end confdefs.h. */ |
bf89cb4d GM |
23244 | $ac_includes_default |
23245 | #include <$ac_header> | |
0ca10bb7 | 23246 | _ACEOF |
bf89cb4d GM |
23247 | rm -f conftest.$ac_objext |
23248 | if { (ac_try="$ac_compile" | |
23249 | case "(($ac_try" in | |
23250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23251 | *) ac_try_echo=$ac_try;; | |
23252 | esac | |
23253 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23254 | $as_echo "$ac_try_echo") >&5 | |
23255 | (eval "$ac_compile") 2>conftest.er1 | |
23256 | ac_status=$? | |
23257 | grep -v '^ *+' conftest.er1 >conftest.err | |
23258 | rm -f conftest.er1 | |
23259 | cat conftest.err >&5 | |
23260 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23261 | (exit $ac_status); } && { | |
23262 | test -z "$ac_c_werror_flag" || | |
23263 | test ! -s conftest.err | |
23264 | } && test -s conftest.$ac_objext; then | |
23265 | ac_header_compiler=yes | |
0ca10bb7 | 23266 | else |
bf89cb4d GM |
23267 | $as_echo "$as_me: failed program was:" >&5 |
23268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23269 | ||
23270 | ac_header_compiler=no | |
0ca10bb7 | 23271 | fi |
bf89cb4d GM |
23272 | |
23273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23274 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23275 | $as_echo "$ac_header_compiler" >&6; } | |
23276 | ||
23277 | # Is the header present? | |
23278 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23279 | $as_echo_n "checking $ac_header presence... " >&6; } | |
23280 | cat >conftest.$ac_ext <<_ACEOF | |
23281 | /* confdefs.h. */ | |
23282 | _ACEOF | |
23283 | cat confdefs.h >>conftest.$ac_ext | |
23284 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 | 23285 | /* end confdefs.h. */ |
bf89cb4d | 23286 | #include <$ac_header> |
0ca10bb7 | 23287 | _ACEOF |
bf89cb4d GM |
23288 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
23289 | case "(($ac_try" in | |
23290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23291 | *) ac_try_echo=$ac_try;; | |
23292 | esac | |
23293 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23294 | $as_echo "$ac_try_echo") >&5 | |
23295 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23296 | ac_status=$? | |
23297 | grep -v '^ *+' conftest.er1 >conftest.err | |
23298 | rm -f conftest.er1 | |
23299 | cat conftest.err >&5 | |
23300 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23301 | (exit $ac_status); } >/dev/null && { | |
23302 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23303 | test ! -s conftest.err | |
23304 | }; then | |
23305 | ac_header_preproc=yes | |
0ca10bb7 | 23306 | else |
bf89cb4d GM |
23307 | $as_echo "$as_me: failed program was:" >&5 |
23308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23309 | ||
23310 | ac_header_preproc=no | |
a21616bd | 23311 | fi |
c0d27fcc | 23312 | |
bf89cb4d GM |
23313 | rm -f conftest.err conftest.$ac_ext |
23314 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23315 | $as_echo "$ac_header_preproc" >&6; } | |
0ca10bb7 | 23316 | |
bf89cb4d GM |
23317 | # So? What about this header? |
23318 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23319 | yes:no: ) | |
23320 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23321 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23322 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23323 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23324 | ac_header_preproc=yes | |
23325 | ;; | |
23326 | no:yes:* ) | |
23327 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23328 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23329 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23330 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23331 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23332 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23333 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23334 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23335 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23336 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23337 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23338 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a21616bd | 23339 | |
bf89cb4d GM |
23340 | ;; |
23341 | esac | |
23342 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23343 | $as_echo_n "checking for $ac_header... " >&6; } | |
23344 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23345 | $as_echo_n "(cached) " >&6 | |
23346 | else | |
23347 | eval "$as_ac_Header=\$ac_header_preproc" | |
a21616bd | 23348 | fi |
bf89cb4d GM |
23349 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
23350 | $as_echo "$as_val"'` | |
23351 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23352 | $as_echo "$ac_res" >&6; } | |
c0d27fcc | 23353 | |
bf89cb4d GM |
23354 | fi |
23355 | if test `eval 'as_val=${'$as_ac_Header'} | |
23356 | $as_echo "$as_val"'` = yes; then | |
23357 | cat >>confdefs.h <<_ACEOF | |
23358 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
23359 | _ACEOF | |
a21616bd | 23360 | |
0ca10bb7 | 23361 | else |
503d2be0 | 23362 | |
bf89cb4d GM |
23363 | for ac_header in kerberos/krb.h |
23364 | do | |
23365 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23366 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23367 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23368 | $as_echo_n "checking for $ac_header... " >&6; } | |
23369 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 23370 | $as_echo_n "(cached) " >&6 |
bf89cb4d GM |
23371 | fi |
23372 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23373 | $as_echo "$as_val"'` | |
23374 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23375 | $as_echo "$ac_res" >&6; } | |
98418dba | 23376 | else |
bf89cb4d GM |
23377 | # Is the header compilable? |
23378 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23379 | $as_echo_n "checking $ac_header usability... " >&6; } | |
23380 | cat >conftest.$ac_ext <<_ACEOF | |
23381 | /* confdefs.h. */ | |
23382 | _ACEOF | |
23383 | cat confdefs.h >>conftest.$ac_ext | |
23384 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 | 23385 | /* end confdefs.h. */ |
bf89cb4d GM |
23386 | $ac_includes_default |
23387 | #include <$ac_header> | |
19650fd6 | 23388 | _ACEOF |
bf89cb4d GM |
23389 | rm -f conftest.$ac_objext |
23390 | if { (ac_try="$ac_compile" | |
23391 | case "(($ac_try" in | |
23392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23393 | *) ac_try_echo=$ac_try;; | |
23394 | esac | |
23395 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23396 | $as_echo "$ac_try_echo") >&5 | |
23397 | (eval "$ac_compile") 2>conftest.er1 | |
23398 | ac_status=$? | |
23399 | grep -v '^ *+' conftest.er1 >conftest.err | |
23400 | rm -f conftest.er1 | |
23401 | cat conftest.err >&5 | |
23402 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23403 | (exit $ac_status); } && { | |
23404 | test -z "$ac_c_werror_flag" || | |
23405 | test ! -s conftest.err | |
23406 | } && test -s conftest.$ac_objext; then | |
23407 | ac_header_compiler=yes | |
0ca10bb7 | 23408 | else |
bf89cb4d GM |
23409 | $as_echo "$as_me: failed program was:" >&5 |
23410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23411 | ||
23412 | ac_header_compiler=no | |
0ca10bb7 | 23413 | fi |
0ca10bb7 | 23414 | |
bf89cb4d GM |
23415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
23416 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23417 | $as_echo "$ac_header_compiler" >&6; } | |
23418 | ||
23419 | # Is the header present? | |
23420 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23421 | $as_echo_n "checking $ac_header presence... " >&6; } | |
23422 | cat >conftest.$ac_ext <<_ACEOF | |
23423 | /* confdefs.h. */ | |
c0d27fcc | 23424 | _ACEOF |
bf89cb4d GM |
23425 | cat confdefs.h >>conftest.$ac_ext |
23426 | cat >>conftest.$ac_ext <<_ACEOF | |
23427 | /* end confdefs.h. */ | |
23428 | #include <$ac_header> | |
23429 | _ACEOF | |
23430 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
23431 | case "(($ac_try" in | |
23432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23433 | *) ac_try_echo=$ac_try;; | |
23434 | esac | |
23435 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23436 | $as_echo "$ac_try_echo") >&5 | |
23437 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23438 | ac_status=$? | |
23439 | grep -v '^ *+' conftest.er1 >conftest.err | |
23440 | rm -f conftest.er1 | |
23441 | cat conftest.err >&5 | |
23442 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23443 | (exit $ac_status); } >/dev/null && { | |
23444 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23445 | test ! -s conftest.err | |
23446 | }; then | |
23447 | ac_header_preproc=yes | |
c0d27fcc | 23448 | else |
bf89cb4d GM |
23449 | $as_echo "$as_me: failed program was:" >&5 |
23450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23451 | ||
23452 | ac_header_preproc=no | |
0ca10bb7 | 23453 | fi |
bf89cb4d GM |
23454 | |
23455 | rm -f conftest.err conftest.$ac_ext | |
23456 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23457 | $as_echo "$ac_header_preproc" >&6; } | |
23458 | ||
23459 | # So? What about this header? | |
23460 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23461 | yes:no: ) | |
23462 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23463 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23464 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23465 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23466 | ac_header_preproc=yes | |
23467 | ;; | |
23468 | no:yes:* ) | |
23469 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23470 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23471 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23472 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23473 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23474 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23475 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23476 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23477 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23478 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23479 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23480 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
23481 | ||
23482 | ;; | |
23483 | esac | |
23484 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23485 | $as_echo_n "checking for $ac_header... " >&6; } | |
23486 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23487 | $as_echo_n "(cached) " >&6 | |
23488 | else | |
23489 | eval "$as_ac_Header=\$ac_header_preproc" | |
0ca10bb7 | 23490 | fi |
bf89cb4d GM |
23491 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
23492 | $as_echo "$as_val"'` | |
23493 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23494 | $as_echo "$ac_res" >&6; } | |
23495 | ||
0ca10bb7 | 23496 | fi |
bf89cb4d GM |
23497 | if test `eval 'as_val=${'$as_ac_Header'} |
23498 | $as_echo "$as_val"'` = yes; then | |
23499 | cat >>confdefs.h <<_ACEOF | |
23500 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
23501 | _ACEOF | |
0ca10bb7 RC |
23502 | |
23503 | fi | |
23504 | ||
bf89cb4d GM |
23505 | done |
23506 | ||
0ca10bb7 | 23507 | fi |
19650fd6 | 23508 | |
bf89cb4d GM |
23509 | done |
23510 | ||
c0d27fcc | 23511 | fi |
ca81d7a0 | 23512 | |
bf89cb4d GM |
23513 | done |
23514 | ||
0ca10bb7 | 23515 | fi |
c0d27fcc | 23516 | |
bf89cb4d GM |
23517 | for ac_header in com_err.h |
23518 | do | |
23519 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23520 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23521 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23522 | $as_echo_n "checking for $ac_header... " >&6; } | |
23523 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
0ca10bb7 | 23524 | $as_echo_n "(cached) " >&6 |
bf89cb4d GM |
23525 | fi |
23526 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23527 | $as_echo "$as_val"'` | |
23528 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23529 | $as_echo "$ac_res" >&6; } | |
0ca10bb7 | 23530 | else |
bf89cb4d GM |
23531 | # Is the header compilable? |
23532 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23533 | $as_echo_n "checking $ac_header usability... " >&6; } | |
23534 | cat >conftest.$ac_ext <<_ACEOF | |
23535 | /* confdefs.h. */ | |
23536 | _ACEOF | |
23537 | cat confdefs.h >>conftest.$ac_ext | |
23538 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 23539 | /* end confdefs.h. */ |
bf89cb4d GM |
23540 | $ac_includes_default |
23541 | #include <$ac_header> | |
503d2be0 | 23542 | _ACEOF |
bf89cb4d GM |
23543 | rm -f conftest.$ac_objext |
23544 | if { (ac_try="$ac_compile" | |
23545 | case "(($ac_try" in | |
23546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23547 | *) ac_try_echo=$ac_try;; | |
23548 | esac | |
23549 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23550 | $as_echo "$ac_try_echo") >&5 | |
23551 | (eval "$ac_compile") 2>conftest.er1 | |
23552 | ac_status=$? | |
23553 | grep -v '^ *+' conftest.er1 >conftest.err | |
23554 | rm -f conftest.er1 | |
23555 | cat conftest.err >&5 | |
23556 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23557 | (exit $ac_status); } && { | |
23558 | test -z "$ac_c_werror_flag" || | |
23559 | test ! -s conftest.err | |
23560 | } && test -s conftest.$ac_objext; then | |
23561 | ac_header_compiler=yes | |
503d2be0 | 23562 | else |
bf89cb4d GM |
23563 | $as_echo "$as_me: failed program was:" >&5 |
23564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23565 | ||
23566 | ac_header_compiler=no | |
0ca10bb7 | 23567 | fi |
ca81d7a0 | 23568 | |
bf89cb4d GM |
23569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
23570 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23571 | $as_echo "$ac_header_compiler" >&6; } | |
ca81d7a0 | 23572 | |
bf89cb4d GM |
23573 | # Is the header present? |
23574 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23575 | $as_echo_n "checking $ac_header presence... " >&6; } | |
23576 | cat >conftest.$ac_ext <<_ACEOF | |
23577 | /* confdefs.h. */ | |
23578 | _ACEOF | |
23579 | cat confdefs.h >>conftest.$ac_ext | |
23580 | cat >>conftest.$ac_ext <<_ACEOF | |
23581 | /* end confdefs.h. */ | |
23582 | #include <$ac_header> | |
23583 | _ACEOF | |
23584 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
23585 | case "(($ac_try" in | |
23586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23587 | *) ac_try_echo=$ac_try;; | |
23588 | esac | |
23589 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23590 | $as_echo "$ac_try_echo") >&5 | |
23591 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23592 | ac_status=$? | |
23593 | grep -v '^ *+' conftest.er1 >conftest.err | |
23594 | rm -f conftest.er1 | |
23595 | cat conftest.err >&5 | |
23596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23597 | (exit $ac_status); } >/dev/null && { | |
23598 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23599 | test ! -s conftest.err | |
23600 | }; then | |
23601 | ac_header_preproc=yes | |
c0d27fcc | 23602 | else |
bf89cb4d GM |
23603 | $as_echo "$as_me: failed program was:" >&5 |
23604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
503d2be0 | 23605 | |
bf89cb4d | 23606 | ac_header_preproc=no |
a21616bd | 23607 | fi |
c0d27fcc | 23608 | |
bf89cb4d GM |
23609 | rm -f conftest.err conftest.$ac_ext |
23610 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23611 | $as_echo "$ac_header_preproc" >&6; } | |
a21616bd | 23612 | |
bf89cb4d GM |
23613 | # So? What about this header? |
23614 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23615 | yes:no: ) | |
23616 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23617 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23618 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23619 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23620 | ac_header_preproc=yes | |
23621 | ;; | |
23622 | no:yes:* ) | |
23623 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23624 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23625 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23626 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23627 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23628 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23629 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23630 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23631 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23632 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23633 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23634 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
503d2be0 | 23635 | |
bf89cb4d GM |
23636 | ;; |
23637 | esac | |
23638 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23639 | $as_echo_n "checking for $ac_header... " >&6; } | |
23640 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 23641 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 23642 | else |
bf89cb4d | 23643 | eval "$as_ac_Header=\$ac_header_preproc" |
503d2be0 | 23644 | fi |
bf89cb4d GM |
23645 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
23646 | $as_echo "$as_val"'` | |
23647 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23648 | $as_echo "$ac_res" >&6; } | |
23649 | ||
503d2be0 | 23650 | fi |
bf89cb4d GM |
23651 | if test `eval 'as_val=${'$as_ac_Header'} |
23652 | $as_echo "$as_val"'` = yes; then | |
c0d27fcc | 23653 | cat >>confdefs.h <<_ACEOF |
bf89cb4d | 23654 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 23655 | _ACEOF |
ba4481b5 | 23656 | |
bf89cb4d GM |
23657 | fi |
23658 | ||
23659 | done | |
ba4481b5 | 23660 | |
ba4481b5 DL |
23661 | fi |
23662 | ||
bf89cb4d GM |
23663 | # Solaris requires -lintl if you want strerror (which calls dgettext) |
23664 | # to return localized messages. | |
23665 | ||
23666 | { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 | |
23667 | $as_echo_n "checking for dgettext in -lintl... " >&6; } | |
23668 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then | |
e9a63f04 | 23669 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 23670 | else |
0ca10bb7 | 23671 | ac_check_lib_save_LIBS=$LIBS |
bf89cb4d GM |
23672 | LIBS="-lintl $LIBS" |
23673 | cat >conftest.$ac_ext <<_ACEOF | |
23674 | /* confdefs.h. */ | |
23675 | _ACEOF | |
23676 | cat confdefs.h >>conftest.$ac_ext | |
23677 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 23678 | /* end confdefs.h. */ |
0ca10bb7 RC |
23679 | |
23680 | /* Override any GCC internal prototype to avoid an error. | |
23681 | Use char because int might match the return type of a GCC | |
23682 | builtin and then its argument prototype would still apply. */ | |
23683 | #ifdef __cplusplus | |
23684 | extern "C" | |
23685 | #endif | |
bf89cb4d | 23686 | char dgettext (); |
0ca10bb7 RC |
23687 | int |
23688 | main () | |
ba4481b5 | 23689 | { |
bf89cb4d | 23690 | return dgettext (); |
0ca10bb7 RC |
23691 | ; |
23692 | return 0; | |
ba4481b5 | 23693 | } |
503d2be0 | 23694 | _ACEOF |
bf89cb4d GM |
23695 | rm -f conftest.$ac_objext conftest$ac_exeext |
23696 | if { (ac_try="$ac_link" | |
23697 | case "(($ac_try" in | |
23698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23699 | *) ac_try_echo=$ac_try;; | |
23700 | esac | |
23701 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23702 | $as_echo "$ac_try_echo") >&5 | |
23703 | (eval "$ac_link") 2>conftest.er1 | |
23704 | ac_status=$? | |
23705 | grep -v '^ *+' conftest.er1 >conftest.err | |
23706 | rm -f conftest.er1 | |
23707 | cat conftest.err >&5 | |
23708 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23709 | (exit $ac_status); } && { | |
23710 | test -z "$ac_c_werror_flag" || | |
23711 | test ! -s conftest.err | |
23712 | } && test -s conftest$ac_exeext && { | |
23713 | test "$cross_compiling" = yes || | |
23714 | $as_test_x conftest$ac_exeext | |
23715 | }; then | |
23716 | ac_cv_lib_intl_dgettext=yes | |
ba4481b5 | 23717 | else |
bf89cb4d GM |
23718 | $as_echo "$as_me: failed program was:" >&5 |
23719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23720 | ||
23721 | ac_cv_lib_intl_dgettext=no | |
ba4481b5 | 23722 | fi |
bf89cb4d GM |
23723 | |
23724 | rm -rf conftest.dSYM | |
23725 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
23726 | conftest$ac_exeext conftest.$ac_ext | |
0ca10bb7 | 23727 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 23728 | fi |
bf89cb4d GM |
23729 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 |
23730 | $as_echo "$ac_cv_lib_intl_dgettext" >&6; } | |
23731 | if test $ac_cv_lib_intl_dgettext = yes; then | |
0ca10bb7 | 23732 | cat >>confdefs.h <<_ACEOF |
bf89cb4d | 23733 | #define HAVE_LIBINTL 1 |
0ca10bb7 RC |
23734 | _ACEOF |
23735 | ||
bf89cb4d | 23736 | LIBS="-lintl $LIBS" |
ca81d7a0 | 23737 | |
0ca10bb7 | 23738 | fi |
ca81d7a0 | 23739 | |
bf89cb4d GM |
23740 | |
23741 | { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 | |
23742 | $as_echo_n "checking whether localtime caches TZ... " >&6; } | |
23743 | if test "${emacs_cv_localtime_cache+set}" = set; then | |
0ca10bb7 | 23744 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 23745 | else |
bf89cb4d GM |
23746 | if test x$ac_cv_func_tzset = xyes; then |
23747 | if test "$cross_compiling" = yes; then | |
23748 | # If we have tzset, assume the worst when cross-compiling. | |
23749 | emacs_cv_localtime_cache=yes | |
23750 | else | |
23751 | cat >conftest.$ac_ext <<_ACEOF | |
23752 | /* confdefs.h. */ | |
23753 | _ACEOF | |
23754 | cat confdefs.h >>conftest.$ac_ext | |
23755 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 | 23756 | /* end confdefs.h. */ |
bf89cb4d GM |
23757 | #include <time.h> |
23758 | extern char **environ; | |
23759 | unset_TZ () | |
0ca10bb7 | 23760 | { |
bf89cb4d GM |
23761 | char **from, **to; |
23762 | for (to = from = environ; (*to = *from); from++) | |
23763 | if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
23764 | to++; | |
23765 | } | |
23766 | char TZ_GMT0[] = "TZ=GMT0"; | |
23767 | char TZ_PST8[] = "TZ=PST8"; | |
23768 | main() | |
23769 | { | |
23770 | time_t now = time ((time_t *) 0); | |
23771 | int hour_GMT0, hour_unset; | |
23772 | if (putenv (TZ_GMT0) != 0) | |
23773 | exit (1); | |
23774 | hour_GMT0 = localtime (&now)->tm_hour; | |
23775 | unset_TZ (); | |
23776 | hour_unset = localtime (&now)->tm_hour; | |
23777 | if (putenv (TZ_PST8) != 0) | |
23778 | exit (1); | |
23779 | if (localtime (&now)->tm_hour == hour_GMT0) | |
23780 | exit (1); | |
23781 | unset_TZ (); | |
23782 | if (localtime (&now)->tm_hour != hour_unset) | |
23783 | exit (1); | |
23784 | exit (0); | |
0ca10bb7 RC |
23785 | } |
23786 | _ACEOF | |
bf89cb4d GM |
23787 | rm -f conftest$ac_exeext |
23788 | if { (ac_try="$ac_link" | |
23789 | case "(($ac_try" in | |
23790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23791 | *) ac_try_echo=$ac_try;; | |
23792 | esac | |
23793 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23794 | $as_echo "$ac_try_echo") >&5 | |
23795 | (eval "$ac_link") 2>&5 | |
23796 | ac_status=$? | |
23797 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23798 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23799 | { (case "(($ac_try" in | |
23800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23801 | *) ac_try_echo=$ac_try;; | |
23802 | esac | |
23803 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23804 | $as_echo "$ac_try_echo") >&5 | |
23805 | (eval "$ac_try") 2>&5 | |
23806 | ac_status=$? | |
23807 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23808 | (exit $ac_status); }; }; then | |
23809 | emacs_cv_localtime_cache=no | |
23810 | else | |
23811 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
23812 | $as_echo "$as_me: failed program was:" >&5 | |
23813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23814 | ||
23815 | ( exit $ac_status ) | |
23816 | emacs_cv_localtime_cache=yes | |
23817 | fi | |
23818 | rm -rf conftest.dSYM | |
23819 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
23820 | fi | |
23821 | ||
23822 | ||
0ca10bb7 | 23823 | else |
bf89cb4d GM |
23824 | # If we lack tzset, report that localtime does not cache TZ, |
23825 | # since we can't invalidate the cache if we don't have tzset. | |
23826 | emacs_cv_localtime_cache=no | |
ba4481b5 DL |
23827 | fi |
23828 | fi | |
bf89cb4d GM |
23829 | { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 |
23830 | $as_echo "$emacs_cv_localtime_cache" >&6; } | |
23831 | if test $emacs_cv_localtime_cache = yes; then | |
ba4481b5 | 23832 | |
bf89cb4d GM |
23833 | cat >>confdefs.h <<\_ACEOF |
23834 | #define LOCALTIME_CACHE 1 | |
23835 | _ACEOF | |
ba4481b5 | 23836 | |
0ca10bb7 | 23837 | fi |
503d2be0 | 23838 | |
bf89cb4d GM |
23839 | if test "x$HAVE_TIMEVAL" = xyes; then |
23840 | ||
23841 | for ac_func in gettimeofday | |
23842 | do | |
23843 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23844 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23845 | $as_echo_n "checking for $ac_func... " >&6; } | |
23846 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 23847 | $as_echo_n "(cached) " >&6 |
48d4b120 | 23848 | else |
bf89cb4d GM |
23849 | cat >conftest.$ac_ext <<_ACEOF |
23850 | /* confdefs.h. */ | |
23851 | _ACEOF | |
23852 | cat confdefs.h >>conftest.$ac_ext | |
23853 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 23854 | /* end confdefs.h. */ |
bf89cb4d GM |
23855 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23856 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23857 | #define $ac_func innocuous_$ac_func | |
23858 | ||
23859 | /* System header to define __stub macros and hopefully few prototypes, | |
23860 | which can conflict with char $ac_func (); below. | |
23861 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23862 | <limits.h> exists even on freestanding compilers. */ | |
23863 | ||
23864 | #ifdef __STDC__ | |
23865 | # include <limits.h> | |
23866 | #else | |
23867 | # include <assert.h> | |
23868 | #endif | |
23869 | ||
23870 | #undef $ac_func | |
edfaf76d | 23871 | |
0ca10bb7 RC |
23872 | /* Override any GCC internal prototype to avoid an error. |
23873 | Use char because int might match the return type of a GCC | |
23874 | builtin and then its argument prototype would still apply. */ | |
23875 | #ifdef __cplusplus | |
23876 | extern "C" | |
19650fd6 | 23877 | #endif |
bf89cb4d GM |
23878 | char $ac_func (); |
23879 | /* The GNU C library defines this for functions which it implements | |
23880 | to always fail with ENOSYS. Some functions are actually named | |
23881 | something starting with __ and the normal name is an alias. */ | |
23882 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
23883 | choke me | |
23884 | #endif | |
23885 | ||
0ca10bb7 RC |
23886 | int |
23887 | main () | |
23888 | { | |
bf89cb4d | 23889 | return $ac_func (); |
0ca10bb7 RC |
23890 | ; |
23891 | return 0; | |
23892 | } | |
23893 | _ACEOF | |
bf89cb4d GM |
23894 | rm -f conftest.$ac_objext conftest$ac_exeext |
23895 | if { (ac_try="$ac_link" | |
23896 | case "(($ac_try" in | |
23897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23898 | *) ac_try_echo=$ac_try;; | |
23899 | esac | |
23900 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23901 | $as_echo "$ac_try_echo") >&5 | |
23902 | (eval "$ac_link") 2>conftest.er1 | |
23903 | ac_status=$? | |
23904 | grep -v '^ *+' conftest.er1 >conftest.err | |
23905 | rm -f conftest.er1 | |
23906 | cat conftest.err >&5 | |
23907 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23908 | (exit $ac_status); } && { | |
23909 | test -z "$ac_c_werror_flag" || | |
23910 | test ! -s conftest.err | |
23911 | } && test -s conftest$ac_exeext && { | |
23912 | test "$cross_compiling" = yes || | |
23913 | $as_test_x conftest$ac_exeext | |
23914 | }; then | |
23915 | eval "$as_ac_var=yes" | |
0ca10bb7 | 23916 | else |
bf89cb4d GM |
23917 | $as_echo "$as_me: failed program was:" >&5 |
23918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23919 | ||
23920 | eval "$as_ac_var=no" | |
0ca10bb7 | 23921 | fi |
bf89cb4d GM |
23922 | |
23923 | rm -rf conftest.dSYM | |
23924 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
23925 | conftest$ac_exeext conftest.$ac_ext | |
0ca10bb7 | 23926 | fi |
bf89cb4d GM |
23927 | ac_res=`eval 'as_val=${'$as_ac_var'} |
23928 | $as_echo "$as_val"'` | |
23929 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23930 | $as_echo "$ac_res" >&6; } | |
23931 | if test `eval 'as_val=${'$as_ac_var'} | |
23932 | $as_echo "$as_val"'` = yes; then | |
0ca10bb7 | 23933 | cat >>confdefs.h <<_ACEOF |
bf89cb4d | 23934 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
0ca10bb7 RC |
23935 | _ACEOF |
23936 | ||
0ca10bb7 | 23937 | fi |
bf89cb4d | 23938 | done |
edfaf76d | 23939 | |
bf89cb4d GM |
23940 | if test $ac_cv_func_gettimeofday = yes; then |
23941 | { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 | |
23942 | $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; } | |
23943 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
0ca10bb7 RC |
23944 | $as_echo_n "(cached) " >&6 |
23945 | else | |
bf89cb4d GM |
23946 | cat >conftest.$ac_ext <<_ACEOF |
23947 | /* confdefs.h. */ | |
23948 | _ACEOF | |
23949 | cat confdefs.h >>conftest.$ac_ext | |
23950 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 | 23951 | /* end confdefs.h. */ |
edfaf76d | 23952 | |
bf89cb4d GM |
23953 | #ifdef TIME_WITH_SYS_TIME |
23954 | #include <sys/time.h> | |
23955 | #include <time.h> | |
23956 | #else | |
23957 | #ifdef HAVE_SYS_TIME_H | |
23958 | #include <sys/time.h> | |
23959 | #else | |
23960 | #include <time.h> | |
23961 | #endif | |
503d2be0 | 23962 | #endif |
19650fd6 AS |
23963 | int |
23964 | main () | |
23965 | { | |
bf89cb4d GM |
23966 | struct timeval time; |
23967 | gettimeofday (&time, 0); | |
503d2be0 AS |
23968 | ; |
23969 | return 0; | |
23970 | } | |
23971 | _ACEOF | |
bf89cb4d GM |
23972 | rm -f conftest.$ac_objext |
23973 | if { (ac_try="$ac_compile" | |
23974 | case "(($ac_try" in | |
23975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23976 | *) ac_try_echo=$ac_try;; | |
23977 | esac | |
23978 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23979 | $as_echo "$ac_try_echo") >&5 | |
23980 | (eval "$ac_compile") 2>conftest.er1 | |
23981 | ac_status=$? | |
23982 | grep -v '^ *+' conftest.er1 >conftest.err | |
23983 | rm -f conftest.er1 | |
23984 | cat conftest.err >&5 | |
23985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23986 | (exit $ac_status); } && { | |
23987 | test -z "$ac_c_werror_flag" || | |
23988 | test ! -s conftest.err | |
23989 | } && test -s conftest.$ac_objext; then | |
23990 | emacs_cv_gettimeofday_two_arguments=yes | |
503d2be0 | 23991 | else |
bf89cb4d GM |
23992 | $as_echo "$as_me: failed program was:" >&5 |
23993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23994 | ||
23995 | emacs_cv_gettimeofday_two_arguments=no | |
503d2be0 | 23996 | fi |
bf89cb4d GM |
23997 | |
23998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 | 23999 | fi |
bf89cb4d GM |
24000 | { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
24001 | $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } | |
24002 | if test $emacs_cv_gettimeofday_two_arguments = no; then | |
24003 | ||
24004 | cat >>confdefs.h <<\_ACEOF | |
24005 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
c0d27fcc | 24006 | _ACEOF |
48d4b120 | 24007 | |
bf89cb4d GM |
24008 | fi |
24009 | fi | |
24010 | fi | |
48d4b120 | 24011 | |
bf89cb4d GM |
24012 | ok_so_far=yes |
24013 | { $as_echo "$as_me:$LINENO: checking for socket" >&5 | |
24014 | $as_echo_n "checking for socket... " >&6; } | |
24015 | if test "${ac_cv_func_socket+set}" = set; then | |
e9a63f04 | 24016 | $as_echo_n "(cached) " >&6 |
ba4481b5 | 24017 | else |
bf89cb4d GM |
24018 | cat >conftest.$ac_ext <<_ACEOF |
24019 | /* confdefs.h. */ | |
24020 | _ACEOF | |
24021 | cat confdefs.h >>conftest.$ac_ext | |
24022 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 24023 | /* end confdefs.h. */ |
bf89cb4d GM |
24024 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
24025 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24026 | #define socket innocuous_socket | |
24027 | ||
24028 | /* System header to define __stub macros and hopefully few prototypes, | |
24029 | which can conflict with char socket (); below. | |
24030 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24031 | <limits.h> exists even on freestanding compilers. */ | |
24032 | ||
24033 | #ifdef __STDC__ | |
24034 | # include <limits.h> | |
24035 | #else | |
24036 | # include <assert.h> | |
24037 | #endif | |
24038 | ||
24039 | #undef socket | |
ba4481b5 | 24040 | |
0ca10bb7 RC |
24041 | /* Override any GCC internal prototype to avoid an error. |
24042 | Use char because int might match the return type of a GCC | |
24043 | builtin and then its argument prototype would still apply. */ | |
24044 | #ifdef __cplusplus | |
24045 | extern "C" | |
a3f08d9e | 24046 | #endif |
bf89cb4d GM |
24047 | char socket (); |
24048 | /* The GNU C library defines this for functions which it implements | |
24049 | to always fail with ENOSYS. Some functions are actually named | |
24050 | something starting with __ and the normal name is an alias. */ | |
24051 | #if defined __stub_socket || defined __stub___socket | |
24052 | choke me | |
24053 | #endif | |
24054 | ||
503d2be0 AS |
24055 | int |
24056 | main () | |
24057 | { | |
bf89cb4d | 24058 | return socket (); |
503d2be0 AS |
24059 | ; |
24060 | return 0; | |
24061 | } | |
24062 | _ACEOF | |
bf89cb4d GM |
24063 | rm -f conftest.$ac_objext conftest$ac_exeext |
24064 | if { (ac_try="$ac_link" | |
24065 | case "(($ac_try" in | |
24066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24067 | *) ac_try_echo=$ac_try;; | |
24068 | esac | |
24069 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24070 | $as_echo "$ac_try_echo") >&5 | |
24071 | (eval "$ac_link") 2>conftest.er1 | |
24072 | ac_status=$? | |
24073 | grep -v '^ *+' conftest.er1 >conftest.err | |
24074 | rm -f conftest.er1 | |
24075 | cat conftest.err >&5 | |
24076 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24077 | (exit $ac_status); } && { | |
24078 | test -z "$ac_c_werror_flag" || | |
24079 | test ! -s conftest.err | |
24080 | } && test -s conftest$ac_exeext && { | |
24081 | test "$cross_compiling" = yes || | |
24082 | $as_test_x conftest$ac_exeext | |
24083 | }; then | |
24084 | ac_cv_func_socket=yes | |
ba4481b5 | 24085 | else |
bf89cb4d GM |
24086 | $as_echo "$as_me: failed program was:" >&5 |
24087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 24088 | |
bf89cb4d | 24089 | ac_cv_func_socket=no |
ba4481b5 DL |
24090 | fi |
24091 | ||
bf89cb4d GM |
24092 | rm -rf conftest.dSYM |
24093 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
24094 | conftest$ac_exeext conftest.$ac_ext | |
24095 | fi | |
24096 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
24097 | $as_echo "$ac_cv_func_socket" >&6; } | |
24098 | if test $ac_cv_func_socket = yes; then | |
24099 | : | |
24100 | else | |
24101 | ok_so_far=no | |
0ca10bb7 RC |
24102 | fi |
24103 | ||
bf89cb4d GM |
24104 | if test $ok_so_far = yes; then |
24105 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
24106 | { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
24107 | $as_echo_n "checking for netinet/in.h... " >&6; } | |
24108 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
e9a63f04 | 24109 | $as_echo_n "(cached) " >&6 |
bf89cb4d GM |
24110 | fi |
24111 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 | |
24112 | $as_echo "$ac_cv_header_netinet_in_h" >&6; } | |
ba4481b5 | 24113 | else |
bf89cb4d GM |
24114 | # Is the header compilable? |
24115 | { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 | |
24116 | $as_echo_n "checking netinet/in.h usability... " >&6; } | |
24117 | cat >conftest.$ac_ext <<_ACEOF | |
24118 | /* confdefs.h. */ | |
24119 | _ACEOF | |
24120 | cat confdefs.h >>conftest.$ac_ext | |
24121 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 24122 | /* end confdefs.h. */ |
bf89cb4d GM |
24123 | $ac_includes_default |
24124 | #include <netinet/in.h> | |
503d2be0 | 24125 | _ACEOF |
bf89cb4d GM |
24126 | rm -f conftest.$ac_objext |
24127 | if { (ac_try="$ac_compile" | |
24128 | case "(($ac_try" in | |
24129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24130 | *) ac_try_echo=$ac_try;; | |
24131 | esac | |
24132 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24133 | $as_echo "$ac_try_echo") >&5 | |
24134 | (eval "$ac_compile") 2>conftest.er1 | |
24135 | ac_status=$? | |
24136 | grep -v '^ *+' conftest.er1 >conftest.err | |
24137 | rm -f conftest.er1 | |
24138 | cat conftest.err >&5 | |
24139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24140 | (exit $ac_status); } && { | |
24141 | test -z "$ac_c_werror_flag" || | |
24142 | test ! -s conftest.err | |
24143 | } && test -s conftest.$ac_objext; then | |
24144 | ac_header_compiler=yes | |
ba4481b5 | 24145 | else |
bf89cb4d GM |
24146 | $as_echo "$as_me: failed program was:" >&5 |
24147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24148 | ||
24149 | ac_header_compiler=no | |
c0d27fcc | 24150 | fi |
ca81d7a0 | 24151 | |
bf89cb4d GM |
24152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
24153 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24154 | $as_echo "$ac_header_compiler" >&6; } | |
c0d27fcc | 24155 | |
bf89cb4d GM |
24156 | # Is the header present? |
24157 | { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 | |
24158 | $as_echo_n "checking netinet/in.h presence... " >&6; } | |
24159 | cat >conftest.$ac_ext <<_ACEOF | |
24160 | /* confdefs.h. */ | |
24161 | _ACEOF | |
24162 | cat confdefs.h >>conftest.$ac_ext | |
24163 | cat >>conftest.$ac_ext <<_ACEOF | |
24164 | /* end confdefs.h. */ | |
24165 | #include <netinet/in.h> | |
24166 | _ACEOF | |
24167 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
24168 | case "(($ac_try" in | |
24169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24170 | *) ac_try_echo=$ac_try;; | |
24171 | esac | |
24172 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24173 | $as_echo "$ac_try_echo") >&5 | |
24174 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
24175 | ac_status=$? | |
24176 | grep -v '^ *+' conftest.er1 >conftest.err | |
24177 | rm -f conftest.er1 | |
24178 | cat conftest.err >&5 | |
24179 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24180 | (exit $ac_status); } >/dev/null && { | |
24181 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
24182 | test ! -s conftest.err | |
24183 | }; then | |
24184 | ac_header_preproc=yes | |
ba4481b5 | 24185 | else |
bf89cb4d GM |
24186 | $as_echo "$as_me: failed program was:" >&5 |
24187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24188 | ||
24189 | ac_header_preproc=no | |
24190 | fi | |
24191 | ||
24192 | rm -f conftest.err conftest.$ac_ext | |
24193 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24194 | $as_echo "$ac_header_preproc" >&6; } | |
24195 | ||
24196 | # So? What about this header? | |
24197 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24198 | yes:no: ) | |
24199 | { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24200 | $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24201 | { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 | |
24202 | $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} | |
24203 | ac_header_preproc=yes | |
24204 | ;; | |
24205 | no:yes:* ) | |
24206 | { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 | |
24207 | $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} | |
24208 | { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 | |
24209 | $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} | |
24210 | { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 | |
24211 | $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} | |
24212 | { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24213 | $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
24214 | { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 | |
24215 | $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} | |
24216 | { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 | |
24217 | $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} | |
24218 | ||
24219 | ;; | |
24220 | esac | |
24221 | { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
24222 | $as_echo_n "checking for netinet/in.h... " >&6; } | |
24223 | if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
e9a63f04 | 24224 | $as_echo_n "(cached) " >&6 |
98418dba | 24225 | else |
bf89cb4d GM |
24226 | ac_cv_header_netinet_in_h=$ac_header_preproc |
24227 | fi | |
24228 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 | |
24229 | $as_echo "$ac_cv_header_netinet_in_h" >&6; } | |
c0d27fcc | 24230 | |
ba4481b5 | 24231 | fi |
bf89cb4d GM |
24232 | if test $ac_cv_header_netinet_in_h = yes; then |
24233 | : | |
24234 | else | |
24235 | ok_so_far=no | |
0ca10bb7 | 24236 | fi |
ca81d7a0 | 24237 | |
ca81d7a0 | 24238 | |
ba4481b5 | 24239 | fi |
bf89cb4d GM |
24240 | if test $ok_so_far = yes; then |
24241 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
24242 | { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
24243 | $as_echo_n "checking for arpa/inet.h... " >&6; } | |
24244 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
24245 | $as_echo_n "(cached) " >&6 | |
24246 | fi | |
24247 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 | |
24248 | $as_echo "$ac_cv_header_arpa_inet_h" >&6; } | |
24249 | else | |
24250 | # Is the header compilable? | |
24251 | { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 | |
24252 | $as_echo_n "checking arpa/inet.h usability... " >&6; } | |
24253 | cat >conftest.$ac_ext <<_ACEOF | |
24254 | /* confdefs.h. */ | |
24255 | _ACEOF | |
24256 | cat confdefs.h >>conftest.$ac_ext | |
24257 | cat >>conftest.$ac_ext <<_ACEOF | |
24258 | /* end confdefs.h. */ | |
24259 | $ac_includes_default | |
24260 | #include <arpa/inet.h> | |
24261 | _ACEOF | |
24262 | rm -f conftest.$ac_objext | |
24263 | if { (ac_try="$ac_compile" | |
24264 | case "(($ac_try" in | |
24265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24266 | *) ac_try_echo=$ac_try;; | |
24267 | esac | |
24268 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24269 | $as_echo "$ac_try_echo") >&5 | |
24270 | (eval "$ac_compile") 2>conftest.er1 | |
24271 | ac_status=$? | |
24272 | grep -v '^ *+' conftest.er1 >conftest.err | |
24273 | rm -f conftest.er1 | |
24274 | cat conftest.err >&5 | |
24275 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24276 | (exit $ac_status); } && { | |
24277 | test -z "$ac_c_werror_flag" || | |
24278 | test ! -s conftest.err | |
24279 | } && test -s conftest.$ac_objext; then | |
24280 | ac_header_compiler=yes | |
24281 | else | |
24282 | $as_echo "$as_me: failed program was:" >&5 | |
24283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c0d27fcc | 24284 | |
bf89cb4d | 24285 | ac_header_compiler=no |
c0d27fcc | 24286 | fi |
ba4481b5 | 24287 | |
bf89cb4d GM |
24288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
24289 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24290 | $as_echo "$ac_header_compiler" >&6; } | |
c0d27fcc | 24291 | |
bf89cb4d GM |
24292 | # Is the header present? |
24293 | { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 | |
24294 | $as_echo_n "checking arpa/inet.h presence... " >&6; } | |
24295 | cat >conftest.$ac_ext <<_ACEOF | |
24296 | /* confdefs.h. */ | |
0ca10bb7 | 24297 | _ACEOF |
bf89cb4d GM |
24298 | cat confdefs.h >>conftest.$ac_ext |
24299 | cat >>conftest.$ac_ext <<_ACEOF | |
24300 | /* end confdefs.h. */ | |
24301 | #include <arpa/inet.h> | |
c0d27fcc | 24302 | _ACEOF |
bf89cb4d GM |
24303 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
24304 | case "(($ac_try" in | |
24305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24306 | *) ac_try_echo=$ac_try;; | |
24307 | esac | |
24308 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24309 | $as_echo "$ac_try_echo") >&5 | |
24310 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
24311 | ac_status=$? | |
24312 | grep -v '^ *+' conftest.er1 >conftest.err | |
24313 | rm -f conftest.er1 | |
24314 | cat conftest.err >&5 | |
24315 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24316 | (exit $ac_status); } >/dev/null && { | |
24317 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
24318 | test ! -s conftest.err | |
24319 | }; then | |
24320 | ac_header_preproc=yes | |
24321 | else | |
24322 | $as_echo "$as_me: failed program was:" >&5 | |
24323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ba4481b5 | 24324 | |
bf89cb4d | 24325 | ac_header_preproc=no |
ba4481b5 | 24326 | fi |
0ca10bb7 | 24327 | |
bf89cb4d GM |
24328 | rm -f conftest.err conftest.$ac_ext |
24329 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24330 | $as_echo "$ac_header_preproc" >&6; } | |
ba4481b5 | 24331 | |
bf89cb4d GM |
24332 | # So? What about this header? |
24333 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24334 | yes:no: ) | |
24335 | { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24336 | $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24337 | { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 | |
24338 | $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} | |
24339 | ac_header_preproc=yes | |
24340 | ;; | |
24341 | no:yes:* ) | |
24342 | { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 | |
24343 | $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} | |
24344 | { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 | |
24345 | $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} | |
24346 | { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 | |
24347 | $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} | |
24348 | { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24349 | $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
24350 | { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 | |
24351 | $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} | |
24352 | { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 | |
24353 | $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} | |
2d2b6695 | 24354 | |
bf89cb4d GM |
24355 | ;; |
24356 | esac | |
24357 | { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
24358 | $as_echo_n "checking for arpa/inet.h... " >&6; } | |
24359 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
24360 | $as_echo_n "(cached) " >&6 | |
24361 | else | |
24362 | ac_cv_header_arpa_inet_h=$ac_header_preproc | |
2d2b6695 | 24363 | fi |
bf89cb4d GM |
24364 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
24365 | $as_echo "$ac_cv_header_arpa_inet_h" >&6; } | |
2d2b6695 | 24366 | |
2d2b6695 | 24367 | fi |
bf89cb4d GM |
24368 | if test $ac_cv_header_arpa_inet_h = yes; then |
24369 | : | |
2d2b6695 | 24370 | else |
bf89cb4d | 24371 | ok_so_far=no |
2d2b6695 | 24372 | fi |
ca81d7a0 | 24373 | |
ca81d7a0 | 24374 | |
2d2b6695 | 24375 | fi |
bf89cb4d | 24376 | if test $ok_so_far = yes; then |
0ca10bb7 | 24377 | |
bf89cb4d GM |
24378 | cat >>confdefs.h <<\_ACEOF |
24379 | #define HAVE_INET_SOCKETS 1 | |
24380 | _ACEOF | |
2d2b6695 KS |
24381 | |
24382 | fi | |
0ca10bb7 | 24383 | |
0ca10bb7 | 24384 | |
bf89cb4d GM |
24385 | for ac_header in sys/ioctl.h |
24386 | do | |
24387 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
24388 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24389 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24390 | $as_echo_n "checking for $ac_header... " >&6; } | |
24391 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24392 | $as_echo_n "(cached) " >&6 | |
24393 | fi | |
24394 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
24395 | $as_echo "$as_val"'` | |
24396 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24397 | $as_echo "$ac_res" >&6; } | |
0ca10bb7 | 24398 | else |
bf89cb4d GM |
24399 | # Is the header compilable? |
24400 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
24401 | $as_echo_n "checking $ac_header usability... " >&6; } | |
24402 | cat >conftest.$ac_ext <<_ACEOF | |
24403 | /* confdefs.h. */ | |
0ca10bb7 | 24404 | _ACEOF |
bf89cb4d GM |
24405 | cat confdefs.h >>conftest.$ac_ext |
24406 | cat >>conftest.$ac_ext <<_ACEOF | |
24407 | /* end confdefs.h. */ | |
24408 | $ac_includes_default | |
24409 | #include <$ac_header> | |
2d2b6695 | 24410 | _ACEOF |
bf89cb4d GM |
24411 | rm -f conftest.$ac_objext |
24412 | if { (ac_try="$ac_compile" | |
24413 | case "(($ac_try" in | |
24414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24415 | *) ac_try_echo=$ac_try;; | |
24416 | esac | |
24417 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24418 | $as_echo "$ac_try_echo") >&5 | |
24419 | (eval "$ac_compile") 2>conftest.er1 | |
24420 | ac_status=$? | |
24421 | grep -v '^ *+' conftest.er1 >conftest.err | |
24422 | rm -f conftest.er1 | |
24423 | cat conftest.err >&5 | |
24424 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24425 | (exit $ac_status); } && { | |
24426 | test -z "$ac_c_werror_flag" || | |
24427 | test ! -s conftest.err | |
24428 | } && test -s conftest.$ac_objext; then | |
24429 | ac_header_compiler=yes | |
24430 | else | |
24431 | $as_echo "$as_me: failed program was:" >&5 | |
24432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2d2b6695 | 24433 | |
bf89cb4d | 24434 | ac_header_compiler=no |
2d2b6695 KS |
24435 | fi |
24436 | ||
bf89cb4d GM |
24437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
24438 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24439 | $as_echo "$ac_header_compiler" >&6; } | |
b936fae4 | 24440 | |
bf89cb4d GM |
24441 | # Is the header present? |
24442 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24443 | $as_echo_n "checking $ac_header presence... " >&6; } | |
24444 | cat >conftest.$ac_ext <<_ACEOF | |
24445 | /* confdefs.h. */ | |
24446 | _ACEOF | |
24447 | cat confdefs.h >>conftest.$ac_ext | |
24448 | cat >>conftest.$ac_ext <<_ACEOF | |
24449 | /* end confdefs.h. */ | |
24450 | #include <$ac_header> | |
c0d27fcc | 24451 | _ACEOF |
bf89cb4d GM |
24452 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
24453 | case "(($ac_try" in | |
24454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24455 | *) ac_try_echo=$ac_try;; | |
24456 | esac | |
24457 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24458 | $as_echo "$ac_try_echo") >&5 | |
24459 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
24460 | ac_status=$? | |
24461 | grep -v '^ *+' conftest.er1 >conftest.err | |
24462 | rm -f conftest.er1 | |
24463 | cat conftest.err >&5 | |
24464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24465 | (exit $ac_status); } >/dev/null && { | |
24466 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
24467 | test ! -s conftest.err | |
24468 | }; then | |
24469 | ac_header_preproc=yes | |
24470 | else | |
24471 | $as_echo "$as_me: failed program was:" >&5 | |
24472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3d9fec71 | 24473 | |
bf89cb4d | 24474 | ac_header_preproc=no |
3d9fec71 DL |
24475 | fi |
24476 | ||
bf89cb4d GM |
24477 | rm -f conftest.err conftest.$ac_ext |
24478 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24479 | $as_echo "$ac_header_preproc" >&6; } | |
0ca10bb7 | 24480 | |
bf89cb4d GM |
24481 | # So? What about this header? |
24482 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24483 | yes:no: ) | |
24484 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24485 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24486 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
24487 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24488 | ac_header_preproc=yes | |
24489 | ;; | |
24490 | no:yes:* ) | |
24491 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
24492 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
24493 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
24494 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24495 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24496 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24497 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24498 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
24499 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
24500 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
24501 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
24502 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
0ca10bb7 | 24503 | |
bf89cb4d GM |
24504 | ;; |
24505 | esac | |
24506 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24507 | $as_echo_n "checking for $ac_header... " >&6; } | |
24508 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e9a63f04 | 24509 | $as_echo_n "(cached) " >&6 |
647847ea | 24510 | else |
bf89cb4d | 24511 | eval "$as_ac_Header=\$ac_header_preproc" |
0ca10bb7 | 24512 | fi |
bf89cb4d GM |
24513 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
24514 | $as_echo "$as_val"'` | |
24515 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24516 | $as_echo "$ac_res" >&6; } | |
24517 | ||
0ca10bb7 | 24518 | fi |
bf89cb4d GM |
24519 | if test `eval 'as_val=${'$as_ac_Header'} |
24520 | $as_echo "$as_val"'` = yes; then | |
0ca10bb7 | 24521 | cat >>confdefs.h <<_ACEOF |
bf89cb4d | 24522 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
e9a63f04 | 24523 | _ACEOF |
0ca10bb7 | 24524 | |
0ca10bb7 RC |
24525 | fi |
24526 | ||
bf89cb4d | 24527 | done |
0ca10bb7 | 24528 | |
0ca10bb7 | 24529 | |
bf89cb4d | 24530 | if test -f /usr/lpp/X11/bin/smt.exp; then |
0ca10bb7 | 24531 | |
bf89cb4d GM |
24532 | cat >>confdefs.h <<\_ACEOF |
24533 | #define HAVE_AIX_SMT_EXP 1 | |
24534 | _ACEOF | |
0ca10bb7 RC |
24535 | |
24536 | fi | |
24537 | ||
bf89cb4d GM |
24538 | { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 |
24539 | $as_echo_n "checking whether system supports dynamic ptys... " >&6; } | |
24540 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | |
24541 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
24542 | $as_echo "yes" >&6; } | |
24543 | ||
24544 | cat >>confdefs.h <<\_ACEOF | |
24545 | #define HAVE_DEV_PTMX 1 | |
0ca10bb7 RC |
24546 | _ACEOF |
24547 | ||
bf89cb4d GM |
24548 | else |
24549 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
24550 | $as_echo "no" >&6; } | |
0ca10bb7 | 24551 | fi |
0ca10bb7 | 24552 | |
bf89cb4d GM |
24553 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
24554 | $as_echo_n "checking for pid_t... " >&6; } | |
24555 | if test "${ac_cv_type_pid_t+set}" = set; then | |
0ca10bb7 RC |
24556 | $as_echo_n "(cached) " >&6 |
24557 | else | |
bf89cb4d GM |
24558 | ac_cv_type_pid_t=no |
24559 | cat >conftest.$ac_ext <<_ACEOF | |
24560 | /* confdefs.h. */ | |
24561 | _ACEOF | |
24562 | cat confdefs.h >>conftest.$ac_ext | |
24563 | cat >>conftest.$ac_ext <<_ACEOF | |
0ca10bb7 | 24564 | /* end confdefs.h. */ |
bf89cb4d | 24565 | $ac_includes_default |
e9a63f04 GM |
24566 | int |
24567 | main () | |
24568 | { | |
bf89cb4d GM |
24569 | if (sizeof (pid_t)) |
24570 | return 0; | |
24571 | ; | |
24572 | return 0; | |
24573 | } | |
24574 | _ACEOF | |
24575 | rm -f conftest.$ac_objext | |
24576 | if { (ac_try="$ac_compile" | |
24577 | case "(($ac_try" in | |
24578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24579 | *) ac_try_echo=$ac_try;; | |
24580 | esac | |
24581 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24582 | $as_echo "$ac_try_echo") >&5 | |
24583 | (eval "$ac_compile") 2>conftest.er1 | |
24584 | ac_status=$? | |
24585 | grep -v '^ *+' conftest.er1 >conftest.err | |
24586 | rm -f conftest.er1 | |
24587 | cat conftest.err >&5 | |
24588 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24589 | (exit $ac_status); } && { | |
24590 | test -z "$ac_c_werror_flag" || | |
24591 | test ! -s conftest.err | |
24592 | } && test -s conftest.$ac_objext; then | |
24593 | cat >conftest.$ac_ext <<_ACEOF | |
24594 | /* confdefs.h. */ | |
24595 | _ACEOF | |
24596 | cat confdefs.h >>conftest.$ac_ext | |
24597 | cat >>conftest.$ac_ext <<_ACEOF | |
24598 | /* end confdefs.h. */ | |
24599 | $ac_includes_default | |
24600 | int | |
24601 | main () | |
24602 | { | |
24603 | if (sizeof ((pid_t))) | |
24604 | return 0; | |
503d2be0 AS |
24605 | ; |
24606 | return 0; | |
24607 | } | |
24608 | _ACEOF | |
bf89cb4d GM |
24609 | rm -f conftest.$ac_objext |
24610 | if { (ac_try="$ac_compile" | |
24611 | case "(($ac_try" in | |
24612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24613 | *) ac_try_echo=$ac_try;; | |
24614 | esac | |
24615 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24616 | $as_echo "$ac_try_echo") >&5 | |
24617 | (eval "$ac_compile") 2>conftest.er1 | |
24618 | ac_status=$? | |
24619 | grep -v '^ *+' conftest.er1 >conftest.err | |
24620 | rm -f conftest.er1 | |
24621 | cat conftest.err >&5 | |
24622 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24623 | (exit $ac_status); } && { | |
24624 | test -z "$ac_c_werror_flag" || | |
24625 | test ! -s conftest.err | |
24626 | } && test -s conftest.$ac_objext; then | |
24627 | : | |
e9a63f04 | 24628 | else |
bf89cb4d GM |
24629 | $as_echo "$as_me: failed program was:" >&5 |
24630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24631 | ||
24632 | ac_cv_type_pid_t=yes | |
e9a63f04 | 24633 | fi |
bf89cb4d | 24634 | |
e9a63f04 | 24635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bf89cb4d GM |
24636 | else |
24637 | $as_echo "$as_me: failed program was:" >&5 | |
24638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19650fd6 | 24639 | |
e9a63f04 | 24640 | |
647847ea | 24641 | fi |
ca81d7a0 | 24642 | |
bf89cb4d | 24643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0ca10bb7 | 24644 | fi |
bf89cb4d GM |
24645 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
24646 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
24647 | if test $ac_cv_type_pid_t = yes; then | |
24648 | : | |
24649 | else | |
503d2be0 | 24650 | |
bf89cb4d GM |
24651 | cat >>confdefs.h <<_ACEOF |
24652 | #define pid_t int | |
24653 | _ACEOF | |
647847ea DL |
24654 | |
24655 | fi | |
24656 | ||
c0d27fcc | 24657 | |
bf89cb4d GM |
24658 | for ac_header in vfork.h |
24659 | do | |
24660 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
24661 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24662 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24663 | $as_echo_n "checking for $ac_header... " >&6; } | |
24664 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24665 | $as_echo_n "(cached) " >&6 | |
c0d27fcc | 24666 | fi |
bf89cb4d GM |
24667 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
24668 | $as_echo "$as_val"'` | |
24669 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24670 | $as_echo "$ac_res" >&6; } | |
0ca10bb7 | 24671 | else |
bf89cb4d GM |
24672 | # Is the header compilable? |
24673 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
24674 | $as_echo_n "checking $ac_header usability... " >&6; } | |
24675 | cat >conftest.$ac_ext <<_ACEOF | |
24676 | /* confdefs.h. */ | |
24677 | _ACEOF | |
24678 | cat confdefs.h >>conftest.$ac_ext | |
24679 | cat >>conftest.$ac_ext <<_ACEOF | |
24680 | /* end confdefs.h. */ | |
24681 | $ac_includes_default | |
24682 | #include <$ac_header> | |
24683 | _ACEOF | |
24684 | rm -f conftest.$ac_objext | |
24685 | if { (ac_try="$ac_compile" | |
24686 | case "(($ac_try" in | |
24687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24688 | *) ac_try_echo=$ac_try;; | |
24689 | esac | |
24690 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24691 | $as_echo "$ac_try_echo") >&5 | |
24692 | (eval "$ac_compile") 2>conftest.er1 | |
24693 | ac_status=$? | |
24694 | grep -v '^ *+' conftest.er1 >conftest.err | |
24695 | rm -f conftest.er1 | |
24696 | cat conftest.err >&5 | |
24697 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24698 | (exit $ac_status); } && { | |
24699 | test -z "$ac_c_werror_flag" || | |
24700 | test ! -s conftest.err | |
24701 | } && test -s conftest.$ac_objext; then | |
24702 | ac_header_compiler=yes | |
24703 | else | |
24704 | $as_echo "$as_me: failed program was:" >&5 | |
24705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24706 | ||
24707 | ac_header_compiler=no | |
c0d27fcc | 24708 | fi |
ca81d7a0 | 24709 | |
bf89cb4d GM |
24710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
24711 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24712 | $as_echo "$ac_header_compiler" >&6; } | |
24713 | ||
24714 | # Is the header present? | |
24715 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24716 | $as_echo_n "checking $ac_header presence... " >&6; } | |
24717 | cat >conftest.$ac_ext <<_ACEOF | |
24718 | /* confdefs.h. */ | |
24719 | _ACEOF | |
24720 | cat confdefs.h >>conftest.$ac_ext | |
24721 | cat >>conftest.$ac_ext <<_ACEOF | |
24722 | /* end confdefs.h. */ | |
24723 | #include <$ac_header> | |
24724 | _ACEOF | |
24725 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
24726 | case "(($ac_try" in | |
24727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24728 | *) ac_try_echo=$ac_try;; | |
24729 | esac | |
24730 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24731 | $as_echo "$ac_try_echo") >&5 | |
24732 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
24733 | ac_status=$? | |
24734 | grep -v '^ *+' conftest.er1 >conftest.err | |
24735 | rm -f conftest.er1 | |
24736 | cat conftest.err >&5 | |
24737 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24738 | (exit $ac_status); } >/dev/null && { | |
24739 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
24740 | test ! -s conftest.err | |
24741 | }; then | |
24742 | ac_header_preproc=yes | |
24743 | else | |
24744 | $as_echo "$as_me: failed program was:" >&5 | |
24745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19650fd6 | 24746 | |
bf89cb4d | 24747 | ac_header_preproc=no |
647847ea | 24748 | fi |
ca81d7a0 | 24749 | |
bf89cb4d GM |
24750 | rm -f conftest.err conftest.$ac_ext |
24751 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24752 | $as_echo "$ac_header_preproc" >&6; } | |
24753 | ||
24754 | # So? What about this header? | |
24755 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24756 | yes:no: ) | |
24757 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24758 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24759 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
24760 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24761 | ac_header_preproc=yes | |
24762 | ;; | |
24763 | no:yes:* ) | |
24764 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
24765 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
24766 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
24767 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24768 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24769 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24770 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24771 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
24772 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
24773 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
24774 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
24775 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 24776 | |
bf89cb4d GM |
24777 | ;; |
24778 | esac | |
24779 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24780 | $as_echo_n "checking for $ac_header... " >&6; } | |
24781 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24782 | $as_echo_n "(cached) " >&6 | |
24783 | else | |
24784 | eval "$as_ac_Header=\$ac_header_preproc" | |
647847ea | 24785 | fi |
bf89cb4d GM |
24786 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
24787 | $as_echo "$as_val"'` | |
24788 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24789 | $as_echo "$ac_res" >&6; } | |
c0d27fcc | 24790 | |
bf89cb4d GM |
24791 | fi |
24792 | if test `eval 'as_val=${'$as_ac_Header'} | |
24793 | $as_echo "$as_val"'` = yes; then | |
c0d27fcc | 24794 | cat >>confdefs.h <<_ACEOF |
bf89cb4d | 24795 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 24796 | _ACEOF |
647847ea | 24797 | |
73b77ee5 | 24798 | fi |
c0d27fcc | 24799 | |
503d2be0 | 24800 | done |
73b77ee5 | 24801 | |
c0d27fcc | 24802 | |
edfaf76d | 24803 | |
bf89cb4d GM |
24804 | for ac_func in fork vfork |
24805 | do | |
24806 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24807 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24808 | $as_echo_n "checking for $ac_func... " >&6; } | |
24809 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
24810 | $as_echo_n "(cached) " >&6 | |
0ca10bb7 | 24811 | else |
bf89cb4d GM |
24812 | cat >conftest.$ac_ext <<_ACEOF |
24813 | /* confdefs.h. */ | |
24814 | _ACEOF | |
24815 | cat confdefs.h >>conftest.$ac_ext | |
24816 | cat >>conftest.$ac_ext <<_ACEOF | |
24817 | /* end confdefs.h. */ | |
24818 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24819 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24820 | #define $ac_func innocuous_$ac_func | |
0ca10bb7 | 24821 | |
bf89cb4d GM |
24822 | /* System header to define __stub macros and hopefully few prototypes, |
24823 | which can conflict with char $ac_func (); below. | |
24824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24825 | <limits.h> exists even on freestanding compilers. */ | |
fa0b693c | 24826 | |
bf89cb4d GM |
24827 | #ifdef __STDC__ |
24828 | # include <limits.h> | |
24829 | #else | |
24830 | # include <assert.h> | |
24831 | #endif | |
19650fd6 | 24832 | |
bf89cb4d | 24833 | #undef $ac_func |
0ca10bb7 | 24834 | |
bf89cb4d GM |
24835 | /* Override any GCC internal prototype to avoid an error. |
24836 | Use char because int might match the return type of a GCC | |
24837 | builtin and then its argument prototype would still apply. */ | |
24838 | #ifdef __cplusplus | |
24839 | extern "C" | |
24840 | #endif | |
24841 | char $ac_func (); | |
24842 | /* The GNU C library defines this for functions which it implements | |
24843 | to always fail with ENOSYS. Some functions are actually named | |
24844 | something starting with __ and the normal name is an alias. */ | |
24845 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
24846 | choke me | |
24847 | #endif | |
ca81d7a0 | 24848 | |
bf89cb4d GM |
24849 | int |
24850 | main () | |
24851 | { | |
24852 | return $ac_func (); | |
24853 | ; | |
24854 | return 0; | |
24855 | } | |
0ca10bb7 | 24856 | _ACEOF |
bf89cb4d GM |
24857 | rm -f conftest.$ac_objext conftest$ac_exeext |
24858 | if { (ac_try="$ac_link" | |
24859 | case "(($ac_try" in | |
24860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24861 | *) ac_try_echo=$ac_try;; | |
24862 | esac | |
24863 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24864 | $as_echo "$ac_try_echo") >&5 | |
24865 | (eval "$ac_link") 2>conftest.er1 | |
24866 | ac_status=$? | |
24867 | grep -v '^ *+' conftest.er1 >conftest.err | |
24868 | rm -f conftest.er1 | |
24869 | cat conftest.err >&5 | |
24870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24871 | (exit $ac_status); } && { | |
24872 | test -z "$ac_c_werror_flag" || | |
24873 | test ! -s conftest.err | |
24874 | } && test -s conftest$ac_exeext && { | |
24875 | test "$cross_compiling" = yes || | |
24876 | $as_test_x conftest$ac_exeext | |
24877 | }; then | |
24878 | eval "$as_ac_var=yes" | |
24879 | else | |
24880 | $as_echo "$as_me: failed program was:" >&5 | |
24881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0ca10bb7 | 24882 | |
bf89cb4d | 24883 | eval "$as_ac_var=no" |
503d2be0 | 24884 | fi |
0ca10bb7 | 24885 | |
bf89cb4d GM |
24886 | rm -rf conftest.dSYM |
24887 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
24888 | conftest$ac_exeext conftest.$ac_ext | |
24889 | fi | |
24890 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
24891 | $as_echo "$as_val"'` | |
24892 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24893 | $as_echo "$ac_res" >&6; } | |
24894 | if test `eval 'as_val=${'$as_ac_var'} | |
24895 | $as_echo "$as_val"'` = yes; then | |
c0d27fcc | 24896 | cat >>confdefs.h <<_ACEOF |
e9a63f04 | 24897 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 24898 | _ACEOF |
503d2be0 | 24899 | |
fa0b693c | 24900 | fi |
503d2be0 | 24901 | done |
fa0b693c | 24902 | |
503d2be0 | 24903 | if test "x$ac_cv_func_fork" = xyes; then |
bf89cb4d | 24904 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
e9a63f04 | 24905 | $as_echo_n "checking for working fork... " >&6; } |
bf89cb4d | 24906 | if test "${ac_cv_func_fork_works+set}" = set; then |
e9a63f04 | 24907 | $as_echo_n "(cached) " >&6 |
fa0b693c | 24908 | else |
bf89cb4d | 24909 | if test "$cross_compiling" = yes; then |
503d2be0 AS |
24910 | ac_cv_func_fork_works=cross |
24911 | else | |
bf89cb4d GM |
24912 | cat >conftest.$ac_ext <<_ACEOF |
24913 | /* confdefs.h. */ | |
24914 | _ACEOF | |
24915 | cat confdefs.h >>conftest.$ac_ext | |
24916 | cat >>conftest.$ac_ext <<_ACEOF | |
ca81d7a0 JD |
24917 | /* end confdefs.h. */ |
24918 | $ac_includes_default | |
24919 | int | |
24920 | main () | |
24921 | { | |
24922 | ||
24923 | /* By Ruediger Kuhlmann. */ | |
24924 | return fork () < 0; | |
24925 | ||
24926 | ; | |
24927 | return 0; | |
24928 | } | |
503d2be0 | 24929 | _ACEOF |
bf89cb4d GM |
24930 | rm -f conftest$ac_exeext |
24931 | if { (ac_try="$ac_link" | |
24932 | case "(($ac_try" in | |
24933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24934 | *) ac_try_echo=$ac_try;; | |
24935 | esac | |
24936 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24937 | $as_echo "$ac_try_echo") >&5 | |
24938 | (eval "$ac_link") 2>&5 | |
24939 | ac_status=$? | |
24940 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24941 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24942 | { (case "(($ac_try" in | |
24943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24944 | *) ac_try_echo=$ac_try;; | |
24945 | esac | |
24946 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24947 | $as_echo "$ac_try_echo") >&5 | |
24948 | (eval "$ac_try") 2>&5 | |
24949 | ac_status=$? | |
24950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24951 | (exit $ac_status); }; }; then | |
503d2be0 AS |
24952 | ac_cv_func_fork_works=yes |
24953 | else | |
bf89cb4d GM |
24954 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
24955 | $as_echo "$as_me: failed program was:" >&5 | |
24956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24957 | ||
24958 | ( exit $ac_status ) | |
24959 | ac_cv_func_fork_works=no | |
503d2be0 | 24960 | fi |
bf89cb4d GM |
24961 | rm -rf conftest.dSYM |
24962 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
503d2be0 | 24963 | fi |
ca81d7a0 | 24964 | |
bf89cb4d | 24965 | |
503d2be0 | 24966 | fi |
bf89cb4d | 24967 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
e9a63f04 | 24968 | $as_echo "$ac_cv_func_fork_works" >&6; } |
503d2be0 | 24969 | |
6bae0ccf DL |
24970 | else |
24971 | ac_cv_func_fork_works=$ac_cv_func_fork | |
503d2be0 AS |
24972 | fi |
24973 | if test "x$ac_cv_func_fork_works" = xcross; then | |
24974 | case $host in | |
24975 | *-*-amigaos* | *-*-msdosdjgpp*) | |
24976 | # Override, as these systems have only a dummy fork() stub | |
24977 | ac_cv_func_fork_works=no | |
24978 | ;; | |
24979 | *) | |
24980 | ac_cv_func_fork_works=yes | |
24981 | ;; | |
24982 | esac | |
bf89cb4d | 24983 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
e9a63f04 | 24984 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
fa0b693c | 24985 | fi |
73b77ee5 | 24986 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
503d2be0 | 24987 | if test "x$ac_cv_func_vfork" = xyes; then |
bf89cb4d | 24988 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
e9a63f04 | 24989 | $as_echo_n "checking for working vfork... " >&6; } |
bf89cb4d | 24990 | if test "${ac_cv_func_vfork_works+set}" = set; then |
e9a63f04 | 24991 | $as_echo_n "(cached) " >&6 |
503d2be0 | 24992 | else |
bf89cb4d | 24993 | if test "$cross_compiling" = yes; then |
503d2be0 | 24994 | ac_cv_func_vfork_works=cross |
fa0b693c | 24995 | else |
bf89cb4d GM |
24996 | cat >conftest.$ac_ext <<_ACEOF |
24997 | /* confdefs.h. */ | |
24998 | _ACEOF | |
24999 | cat confdefs.h >>conftest.$ac_ext | |
25000 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 25001 | /* end confdefs.h. */ |
73b77ee5 | 25002 | /* Thanks to Paul Eggert for this test. */ |
ca81d7a0 | 25003 | $ac_includes_default |
19650fd6 | 25004 | #include <sys/wait.h> |
f053c89f | 25005 | #ifdef HAVE_VFORK_H |
503d2be0 | 25006 | # include <vfork.h> |
73b77ee5 GM |
25007 | #endif |
25008 | /* On some sparc systems, changes by the child to local and incoming | |
503d2be0 AS |
25009 | argument registers are propagated back to the parent. The compiler |
25010 | is told about this with #include <vfork.h>, but some compilers | |
25011 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
25012 | static variable whose address is put into a register that is | |
25013 | clobbered by the vfork. */ | |
19650fd6 | 25014 | static void |
fa0b693c | 25015 | #ifdef __cplusplus |
73b77ee5 | 25016 | sparc_address_test (int arg) |
503d2be0 | 25017 | # else |
73b77ee5 | 25018 | sparc_address_test (arg) int arg; |
fa0b693c | 25019 | #endif |
fa0b693c | 25020 | { |
73b77ee5 GM |
25021 | static pid_t child; |
25022 | if (!child) { | |
25023 | child = vfork (); | |
25024 | if (child < 0) { | |
25025 | perror ("vfork"); | |
25026 | _exit(2); | |
25027 | } | |
25028 | if (!child) { | |
25029 | arg = getpid(); | |
25030 | write(-1, "", 0); | |
25031 | _exit (arg); | |
25032 | } | |
25033 | } | |
25034 | } | |
503d2be0 AS |
25035 | |
25036 | int | |
25037 | main () | |
25038 | { | |
73b77ee5 GM |
25039 | pid_t parent = getpid (); |
25040 | pid_t child; | |
fa0b693c | 25041 | |
19650fd6 | 25042 | sparc_address_test (0); |
fa0b693c | 25043 | |
73b77ee5 | 25044 | child = vfork (); |
fa0b693c | 25045 | |
73b77ee5 | 25046 | if (child == 0) { |
503d2be0 AS |
25047 | /* Here is another test for sparc vfork register problems. This |
25048 | test uses lots of local variables, at least as many local | |
25049 | variables as main has allocated so far including compiler | |
25050 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
25051 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
25052 | reuse the register of parent for one of the local variables, | |
25053 | since it will think that parent can't possibly be used any more | |
25054 | in this routine. Assigning to the local variable will thus | |
25055 | munge parent in the parent process. */ | |
73b77ee5 GM |
25056 | pid_t |
25057 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
25058 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
25059 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
25060 | use the same hardware register for all 8 local variables. */ | |
25061 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
25062 | || p != p5 || p != p6 || p != p7) | |
25063 | _exit(1); | |
fa0b693c | 25064 | |
503d2be0 AS |
25065 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
25066 | from child file descriptors. If the child closes a descriptor | |
25067 | before it execs or exits, this munges the parent's descriptor | |
25068 | as well. Test for this by closing stdout in the child. */ | |
73b77ee5 GM |
25069 | _exit(close(fileno(stdout)) != 0); |
25070 | } else { | |
25071 | int status; | |
25072 | struct stat st; | |
25073 | ||
25074 | while (wait(&status) != child) | |
25075 | ; | |
ca81d7a0 | 25076 | return ( |
73b77ee5 GM |
25077 | /* Was there some problem with vforking? */ |
25078 | child < 0 | |
25079 | ||
25080 | /* Did the child fail? (This shouldn't happen.) */ | |
25081 | || status | |
25082 | ||
25083 | /* Did the vfork/compiler bug occur? */ | |
25084 | || parent != getpid() | |
fa0b693c | 25085 | |
73b77ee5 GM |
25086 | /* Did the file descriptor bug occur? */ |
25087 | || fstat(fileno(stdout), &st) != 0 | |
25088 | ); | |
25089 | } | |
25090 | } | |
503d2be0 | 25091 | _ACEOF |
bf89cb4d GM |
25092 | rm -f conftest$ac_exeext |
25093 | if { (ac_try="$ac_link" | |
25094 | case "(($ac_try" in | |
25095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25096 | *) ac_try_echo=$ac_try;; | |
25097 | esac | |
25098 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25099 | $as_echo "$ac_try_echo") >&5 | |
25100 | (eval "$ac_link") 2>&5 | |
25101 | ac_status=$? | |
25102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25103 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25104 | { (case "(($ac_try" in | |
25105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25106 | *) ac_try_echo=$ac_try;; | |
25107 | esac | |
25108 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25109 | $as_echo "$ac_try_echo") >&5 | |
25110 | (eval "$ac_try") 2>&5 | |
25111 | ac_status=$? | |
25112 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25113 | (exit $ac_status); }; }; then | |
73b77ee5 | 25114 | ac_cv_func_vfork_works=yes |
fa0b693c | 25115 | else |
bf89cb4d GM |
25116 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
25117 | $as_echo "$as_me: failed program was:" >&5 | |
25118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25119 | ||
25120 | ( exit $ac_status ) | |
25121 | ac_cv_func_vfork_works=no | |
503d2be0 | 25122 | fi |
bf89cb4d GM |
25123 | rm -rf conftest.dSYM |
25124 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
fa0b693c | 25125 | fi |
ca81d7a0 | 25126 | |
bf89cb4d | 25127 | |
fa0b693c | 25128 | fi |
bf89cb4d | 25129 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
e9a63f04 | 25130 | $as_echo "$ac_cv_func_vfork_works" >&6; } |
fa0b693c | 25131 | |
503d2be0 AS |
25132 | fi; |
25133 | if test "x$ac_cv_func_fork_works" = xcross; then | |
edfaf76d | 25134 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
bf89cb4d | 25135 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
e9a63f04 | 25136 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
fa0b693c GM |
25137 | fi |
25138 | ||
503d2be0 AS |
25139 | if test "x$ac_cv_func_vfork_works" = xyes; then |
25140 | ||
bf89cb4d GM |
25141 | cat >>confdefs.h <<\_ACEOF |
25142 | #define HAVE_WORKING_VFORK 1 | |
25143 | _ACEOF | |
503d2be0 AS |
25144 | |
25145 | else | |
25146 | ||
bf89cb4d GM |
25147 | cat >>confdefs.h <<\_ACEOF |
25148 | #define vfork fork | |
25149 | _ACEOF | |
fa0b693c GM |
25150 | |
25151 | fi | |
503d2be0 AS |
25152 | if test "x$ac_cv_func_fork_works" = xyes; then |
25153 | ||
bf89cb4d GM |
25154 | cat >>confdefs.h <<\_ACEOF |
25155 | #define HAVE_WORKING_FORK 1 | |
25156 | _ACEOF | |
fa0b693c | 25157 | |
503d2be0 | 25158 | fi |
647847ea | 25159 | |
c0d27fcc | 25160 | |
bf89cb4d | 25161 | { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
e9a63f04 | 25162 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
bf89cb4d | 25163 | if test "${emacs_cv_langinfo_codeset+set}" = set; then |
e9a63f04 | 25164 | $as_echo_n "(cached) " >&6 |
6a3a24fa | 25165 | else |
bf89cb4d GM |
25166 | cat >conftest.$ac_ext <<_ACEOF |
25167 | /* confdefs.h. */ | |
25168 | _ACEOF | |
25169 | cat confdefs.h >>conftest.$ac_ext | |
25170 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 25171 | /* end confdefs.h. */ |
6a3a24fa JD |
25172 | #include <langinfo.h> |
25173 | int | |
25174 | main () | |
25175 | { | |
25176 | char* cs = nl_langinfo(CODESET); | |
0ca10bb7 RC |
25177 | ; |
25178 | return 0; | |
25179 | } | |
25180 | _ACEOF | |
bf89cb4d GM |
25181 | rm -f conftest.$ac_objext conftest$ac_exeext |
25182 | if { (ac_try="$ac_link" | |
25183 | case "(($ac_try" in | |
25184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25185 | *) ac_try_echo=$ac_try;; | |
25186 | esac | |
25187 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25188 | $as_echo "$ac_try_echo") >&5 | |
25189 | (eval "$ac_link") 2>conftest.er1 | |
25190 | ac_status=$? | |
25191 | grep -v '^ *+' conftest.er1 >conftest.err | |
25192 | rm -f conftest.er1 | |
25193 | cat conftest.err >&5 | |
25194 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25195 | (exit $ac_status); } && { | |
25196 | test -z "$ac_c_werror_flag" || | |
25197 | test ! -s conftest.err | |
25198 | } && test -s conftest$ac_exeext && { | |
25199 | test "$cross_compiling" = yes || | |
25200 | $as_test_x conftest$ac_exeext | |
25201 | }; then | |
0ca10bb7 | 25202 | emacs_cv_langinfo_codeset=yes |
8730a8da | 25203 | else |
bf89cb4d GM |
25204 | $as_echo "$as_me: failed program was:" >&5 |
25205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25206 | ||
25207 | emacs_cv_langinfo_codeset=no | |
25208 | fi | |
25209 | ||
25210 | rm -rf conftest.dSYM | |
25211 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
25212 | conftest$ac_exeext conftest.$ac_ext | |
25213 | ||
25214 | fi | |
25215 | { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5 | |
25216 | $as_echo "$emacs_cv_langinfo_codeset" >&6; } | |
25217 | if test $emacs_cv_langinfo_codeset = yes; then | |
25218 | ||
25219 | cat >>confdefs.h <<\_ACEOF | |
25220 | #define HAVE_LANGINFO_CODESET 1 | |
25221 | _ACEOF | |
25222 | ||
25223 | fi | |
25224 | ||
25225 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 | |
25226 | $as_echo_n "checking for size_t... " >&6; } | |
25227 | if test "${ac_cv_type_size_t+set}" = set; then | |
25228 | $as_echo_n "(cached) " >&6 | |
25229 | else | |
25230 | ac_cv_type_size_t=no | |
25231 | cat >conftest.$ac_ext <<_ACEOF | |
25232 | /* confdefs.h. */ | |
25233 | _ACEOF | |
25234 | cat confdefs.h >>conftest.$ac_ext | |
25235 | cat >>conftest.$ac_ext <<_ACEOF | |
25236 | /* end confdefs.h. */ | |
25237 | $ac_includes_default | |
25238 | int | |
25239 | main () | |
25240 | { | |
25241 | if (sizeof (size_t)) | |
25242 | return 0; | |
25243 | ; | |
25244 | return 0; | |
25245 | } | |
25246 | _ACEOF | |
25247 | rm -f conftest.$ac_objext | |
25248 | if { (ac_try="$ac_compile" | |
25249 | case "(($ac_try" in | |
25250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25251 | *) ac_try_echo=$ac_try;; | |
25252 | esac | |
25253 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25254 | $as_echo "$ac_try_echo") >&5 | |
25255 | (eval "$ac_compile") 2>conftest.er1 | |
25256 | ac_status=$? | |
25257 | grep -v '^ *+' conftest.er1 >conftest.err | |
25258 | rm -f conftest.er1 | |
25259 | cat conftest.err >&5 | |
25260 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25261 | (exit $ac_status); } && { | |
25262 | test -z "$ac_c_werror_flag" || | |
25263 | test ! -s conftest.err | |
25264 | } && test -s conftest.$ac_objext; then | |
25265 | cat >conftest.$ac_ext <<_ACEOF | |
25266 | /* confdefs.h. */ | |
25267 | _ACEOF | |
25268 | cat confdefs.h >>conftest.$ac_ext | |
25269 | cat >>conftest.$ac_ext <<_ACEOF | |
25270 | /* end confdefs.h. */ | |
25271 | $ac_includes_default | |
25272 | int | |
25273 | main () | |
25274 | { | |
25275 | if (sizeof ((size_t))) | |
25276 | return 0; | |
25277 | ; | |
25278 | return 0; | |
25279 | } | |
25280 | _ACEOF | |
25281 | rm -f conftest.$ac_objext | |
25282 | if { (ac_try="$ac_compile" | |
25283 | case "(($ac_try" in | |
25284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25285 | *) ac_try_echo=$ac_try;; | |
25286 | esac | |
25287 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25288 | $as_echo "$ac_try_echo") >&5 | |
25289 | (eval "$ac_compile") 2>conftest.er1 | |
25290 | ac_status=$? | |
25291 | grep -v '^ *+' conftest.er1 >conftest.err | |
25292 | rm -f conftest.er1 | |
25293 | cat conftest.err >&5 | |
25294 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25295 | (exit $ac_status); } && { | |
25296 | test -z "$ac_c_werror_flag" || | |
25297 | test ! -s conftest.err | |
25298 | } && test -s conftest.$ac_objext; then | |
25299 | : | |
25300 | else | |
25301 | $as_echo "$as_me: failed program was:" >&5 | |
25302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e9a63f04 | 25303 | |
bf89cb4d | 25304 | ac_cv_type_size_t=yes |
0ca10bb7 | 25305 | fi |
e9a63f04 | 25306 | |
bf89cb4d GM |
25307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
25308 | else | |
25309 | $as_echo "$as_me: failed program was:" >&5 | |
25310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25311 | ||
e9a63f04 | 25312 | |
8730a8da | 25313 | fi |
dc2933eb | 25314 | |
bf89cb4d GM |
25315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
25316 | fi | |
25317 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
25318 | $as_echo "$ac_cv_type_size_t" >&6; } | |
25319 | if test $ac_cv_type_size_t = yes; then | |
503d2be0 | 25320 | |
c0d27fcc MR |
25321 | cat >>confdefs.h <<_ACEOF |
25322 | #define HAVE_SIZE_T 1 | |
25323 | _ACEOF | |
25324 | ||
8730a8da DL |
25325 | |
25326 | fi | |
25327 | ||
c0d27fcc | 25328 | |
bf89cb4d | 25329 | { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
e9a63f04 | 25330 | $as_echo_n "checking for mbstate_t... " >&6; } |
bf89cb4d | 25331 | if test "${ac_cv_type_mbstate_t+set}" = set; then |
e9a63f04 | 25332 | $as_echo_n "(cached) " >&6 |
973a76b1 | 25333 | else |
bf89cb4d GM |
25334 | cat >conftest.$ac_ext <<_ACEOF |
25335 | /* confdefs.h. */ | |
25336 | _ACEOF | |
25337 | cat confdefs.h >>conftest.$ac_ext | |
25338 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 25339 | /* end confdefs.h. */ |
973a76b1 DL |
25340 | $ac_includes_default |
25341 | # include <wchar.h> | |
25342 | int | |
25343 | main () | |
25344 | { | |
25345 | mbstate_t x; return sizeof x; | |
25346 | ; | |
25347 | return 0; | |
25348 | } | |
25349 | _ACEOF | |
bf89cb4d GM |
25350 | rm -f conftest.$ac_objext |
25351 | if { (ac_try="$ac_compile" | |
25352 | case "(($ac_try" in | |
25353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25354 | *) ac_try_echo=$ac_try;; | |
25355 | esac | |
25356 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25357 | $as_echo "$ac_try_echo") >&5 | |
25358 | (eval "$ac_compile") 2>conftest.er1 | |
25359 | ac_status=$? | |
25360 | grep -v '^ *+' conftest.er1 >conftest.err | |
25361 | rm -f conftest.er1 | |
25362 | cat conftest.err >&5 | |
25363 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25364 | (exit $ac_status); } && { | |
25365 | test -z "$ac_c_werror_flag" || | |
25366 | test ! -s conftest.err | |
25367 | } && test -s conftest.$ac_objext; then | |
973a76b1 DL |
25368 | ac_cv_type_mbstate_t=yes |
25369 | else | |
bf89cb4d GM |
25370 | $as_echo "$as_me: failed program was:" >&5 |
25371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25372 | ||
25373 | ac_cv_type_mbstate_t=no | |
973a76b1 | 25374 | fi |
bf89cb4d | 25375 | |
ca81d7a0 | 25376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
973a76b1 | 25377 | fi |
bf89cb4d | 25378 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 |
e9a63f04 | 25379 | $as_echo "$ac_cv_type_mbstate_t" >&6; } |
973a76b1 DL |
25380 | if test $ac_cv_type_mbstate_t = yes; then |
25381 | ||
bf89cb4d GM |
25382 | cat >>confdefs.h <<\_ACEOF |
25383 | #define HAVE_MBSTATE_T 1 | |
25384 | _ACEOF | |
973a76b1 DL |
25385 | |
25386 | else | |
25387 | ||
bf89cb4d GM |
25388 | cat >>confdefs.h <<\_ACEOF |
25389 | #define mbstate_t int | |
25390 | _ACEOF | |
973a76b1 DL |
25391 | |
25392 | fi | |
25393 | ||
bf89cb4d | 25394 | { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5 |
e9a63f04 | 25395 | $as_echo_n "checking for C restrict keyword... " >&6; } |
bf89cb4d | 25396 | if test "${emacs_cv_c_restrict+set}" = set; then |
e9a63f04 | 25397 | $as_echo_n "(cached) " >&6 |
22044edf | 25398 | else |
bf89cb4d GM |
25399 | cat >conftest.$ac_ext <<_ACEOF |
25400 | /* confdefs.h. */ | |
25401 | _ACEOF | |
25402 | cat confdefs.h >>conftest.$ac_ext | |
25403 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 25404 | /* end confdefs.h. */ |
22044edf DL |
25405 | void fred (int *restrict x); |
25406 | int | |
25407 | main () | |
25408 | { | |
b936fae4 | 25409 | |
22044edf DL |
25410 | ; |
25411 | return 0; | |
25412 | } | |
c0d27fcc | 25413 | _ACEOF |
bf89cb4d GM |
25414 | rm -f conftest.$ac_objext |
25415 | if { (ac_try="$ac_compile" | |
25416 | case "(($ac_try" in | |
25417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25418 | *) ac_try_echo=$ac_try;; | |
25419 | esac | |
25420 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25421 | $as_echo "$ac_try_echo") >&5 | |
25422 | (eval "$ac_compile") 2>conftest.er1 | |
25423 | ac_status=$? | |
25424 | grep -v '^ *+' conftest.er1 >conftest.err | |
25425 | rm -f conftest.er1 | |
25426 | cat conftest.err >&5 | |
25427 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25428 | (exit $ac_status); } && { | |
25429 | test -z "$ac_c_werror_flag" || | |
25430 | test ! -s conftest.err | |
25431 | } && test -s conftest.$ac_objext; then | |
22044edf DL |
25432 | emacs_cv_c_restrict=yes |
25433 | else | |
bf89cb4d GM |
25434 | $as_echo "$as_me: failed program was:" >&5 |
25435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25436 | ||
25437 | cat >conftest.$ac_ext <<_ACEOF | |
25438 | /* confdefs.h. */ | |
25439 | _ACEOF | |
25440 | cat confdefs.h >>conftest.$ac_ext | |
25441 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 25442 | /* end confdefs.h. */ |
22044edf DL |
25443 | void fred (int *__restrict x); |
25444 | int | |
25445 | main () | |
25446 | { | |
c0d27fcc | 25447 | |
22044edf DL |
25448 | ; |
25449 | return 0; | |
25450 | } | |
c0d27fcc | 25451 | _ACEOF |
bf89cb4d GM |
25452 | rm -f conftest.$ac_objext |
25453 | if { (ac_try="$ac_compile" | |
25454 | case "(($ac_try" in | |
25455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25456 | *) ac_try_echo=$ac_try;; | |
25457 | esac | |
25458 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25459 | $as_echo "$ac_try_echo") >&5 | |
25460 | (eval "$ac_compile") 2>conftest.er1 | |
25461 | ac_status=$? | |
25462 | grep -v '^ *+' conftest.er1 >conftest.err | |
25463 | rm -f conftest.er1 | |
25464 | cat conftest.err >&5 | |
25465 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25466 | (exit $ac_status); } && { | |
25467 | test -z "$ac_c_werror_flag" || | |
25468 | test ! -s conftest.err | |
25469 | } && test -s conftest.$ac_objext; then | |
22044edf DL |
25470 | emacs_cv_c_restrict=__restrict |
25471 | else | |
bf89cb4d GM |
25472 | $as_echo "$as_me: failed program was:" >&5 |
25473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25474 | ||
25475 | emacs_cv_c_restrict=no | |
ba4481b5 | 25476 | fi |
bf89cb4d | 25477 | |
ca81d7a0 | 25478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 25479 | fi |
bf89cb4d | 25480 | |
ca81d7a0 | 25481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 25482 | fi |
bf89cb4d | 25483 | { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 |
e9a63f04 | 25484 | $as_echo "$emacs_cv_c_restrict" >&6; } |
22044edf DL |
25485 | case "$emacs_cv_c_restrict" in |
25486 | yes) emacs_restrict=restrict;; | |
25487 | no) emacs_restrict="";; | |
25488 | *) emacs_restrict="$emacs_cv_c_restrict";; | |
25489 | esac | |
25490 | if test "$emacs_restrict" != __restrict; then | |
b936fae4 | 25491 | |
22044edf DL |
25492 | cat >>confdefs.h <<_ACEOF |
25493 | #define __restrict $emacs_restrict | |
c0d27fcc | 25494 | _ACEOF |
ba4481b5 DL |
25495 | |
25496 | fi | |
ba4481b5 | 25497 | |
bf89cb4d | 25498 | { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 |
e9a63f04 | 25499 | $as_echo_n "checking for C restricted array declarations... " >&6; } |
bf89cb4d | 25500 | if test "${emacs_cv_c_restrict_arr+set}" = set; then |
e9a63f04 | 25501 | $as_echo_n "(cached) " >&6 |
22044edf | 25502 | else |
bf89cb4d GM |
25503 | cat >conftest.$ac_ext <<_ACEOF |
25504 | /* confdefs.h. */ | |
25505 | _ACEOF | |
25506 | cat confdefs.h >>conftest.$ac_ext | |
25507 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 25508 | /* end confdefs.h. */ |
22044edf DL |
25509 | void fred (int x[__restrict]); |
25510 | int | |
25511 | main () | |
25512 | { | |
b936fae4 | 25513 | |
22044edf DL |
25514 | ; |
25515 | return 0; | |
25516 | } | |
c0d27fcc | 25517 | _ACEOF |
bf89cb4d GM |
25518 | rm -f conftest.$ac_objext |
25519 | if { (ac_try="$ac_compile" | |
25520 | case "(($ac_try" in | |
25521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25522 | *) ac_try_echo=$ac_try;; | |
25523 | esac | |
25524 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25525 | $as_echo "$ac_try_echo") >&5 | |
25526 | (eval "$ac_compile") 2>conftest.er1 | |
25527 | ac_status=$? | |
25528 | grep -v '^ *+' conftest.er1 >conftest.err | |
25529 | rm -f conftest.er1 | |
25530 | cat conftest.err >&5 | |
25531 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25532 | (exit $ac_status); } && { | |
25533 | test -z "$ac_c_werror_flag" || | |
25534 | test ! -s conftest.err | |
25535 | } && test -s conftest.$ac_objext; then | |
22044edf DL |
25536 | emacs_cv_c_restrict_arr=yes |
25537 | else | |
bf89cb4d GM |
25538 | $as_echo "$as_me: failed program was:" >&5 |
25539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25540 | ||
25541 | emacs_cv_c_restrict_arr=no | |
ba4481b5 | 25542 | fi |
bf89cb4d | 25543 | |
ca81d7a0 | 25544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22044edf | 25545 | fi |
bf89cb4d | 25546 | { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 |
e9a63f04 | 25547 | $as_echo "$emacs_cv_c_restrict_arr" >&6; } |
22044edf | 25548 | if test "$emacs_cv_c_restrict_arr" = yes; then |
b936fae4 | 25549 | |
bf89cb4d GM |
25550 | cat >>confdefs.h <<\_ACEOF |
25551 | #define __restrict_arr __restrict | |
25552 | _ACEOF | |
ba4481b5 | 25553 | |
ba4481b5 DL |
25554 | fi |
25555 | ||
c0d27fcc | 25556 | |
c0d27fcc | 25557 | |
22044edf DL |
25558 | # Set up the CFLAGS for real compilation, so we can substitute it. |
25559 | CFLAGS="$REAL_CFLAGS" | |
25560 | CPPFLAGS="$REAL_CPPFLAGS" | |
25561 | ||
9978c06c CY |
25562 | ## Hack to detect a buggy GCC version. |
25563 | if test "x$GCC" = xyes \ | |
25564 | && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ | |
25565 | && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \ | |
25566 | && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then | |
25567 | { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5 | |
25568 | $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;} | |
25569 | { (exit 1); exit 1; }; } | |
25570 | fi | |
25571 | ||
22044edf DL |
25572 | #### Find out which version of Emacs this is. |
25573 | version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
25574 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
25575 | if test x"${version}" = x; then | |
bf89cb4d GM |
25576 | { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 |
25577 | $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} | |
25578 | { (exit 1); exit 1; }; } | |
22044edf | 25579 | fi |
879de935 | 25580 | if test x"${version}" != x"$PACKAGE_VERSION"; then |
bf89cb4d | 25581 | { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5 |
879de935 KR |
25582 | $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;} |
25583 | fi | |
22044edf DL |
25584 | |
25585 | ### Specify what sort of things we'll be editing into Makefile and config.h. | |
25586 | ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
25587 | ||
25588 | ||
25589 | ||
25590 | ||
25591 | ||
25592 | ||
25593 | ||
25594 | ||
25595 | ||
25596 | ||
25597 | ||
25598 | ||
25599 | ||
25600 | ||
25601 | ||
25602 | ||
25603 | ||
25604 | ||
25605 | ||
25606 | ||
25607 | ||
25608 | ||
25609 | ||
25610 | ||
25611 | ||
25612 | ||
25613 | ||
25614 | ||
25615 | ||
25616 | ||
25617 | ||
25618 | ||
6a3a24fa | 25619 | |
06b62770 AR |
25620 | |
25621 | ||
25622 | ||
48fad8e8 DN |
25623 | |
25624 | ||
5e159d07 CY |
25625 | |
25626 | ||
edfda783 | 25627 | |
91231421 | 25628 | |
22044edf DL |
25629 | |
25630 | ||
25631 | cat >>confdefs.h <<_ACEOF | |
25632 | #define EMACS_CONFIGURATION "${canonical}" | |
25633 | _ACEOF | |
25634 | ||
25635 | ||
25636 | cat >>confdefs.h <<_ACEOF | |
25637 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
25638 | _ACEOF | |
25639 | ||
25640 | ||
25641 | cat >>confdefs.h <<_ACEOF | |
25642 | #define config_machfile "${machfile}" | |
25643 | _ACEOF | |
25644 | ||
25645 | ||
25646 | cat >>confdefs.h <<_ACEOF | |
25647 | #define config_opsysfile "${opsysfile}" | |
25648 | _ACEOF | |
25649 | ||
25650 | ||
25651 | cat >>confdefs.h <<_ACEOF | |
25652 | #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
25653 | _ACEOF | |
25654 | ||
25655 | ||
25656 | cat >>confdefs.h <<_ACEOF | |
25657 | #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
25658 | _ACEOF | |
25659 | ||
25660 | ||
25661 | cat >>confdefs.h <<_ACEOF | |
25662 | #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
25663 | _ACEOF | |
25664 | ||
25665 | ||
25666 | cat >>confdefs.h <<_ACEOF | |
25667 | #define UNEXEC_SRC ${UNEXEC_SRC} | |
25668 | _ACEOF | |
25669 | ||
25670 | ||
25671 | if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
25672 | ||
bf89cb4d GM |
25673 | cat >>confdefs.h <<\_ACEOF |
25674 | #define HAVE_X_WINDOWS 1 | |
25675 | _ACEOF | |
22044edf DL |
25676 | |
25677 | fi | |
25678 | if test "${USE_X_TOOLKIT}" != "none" ; then | |
25679 | ||
bf89cb4d GM |
25680 | cat >>confdefs.h <<\_ACEOF |
25681 | #define USE_X_TOOLKIT 1 | |
25682 | _ACEOF | |
22044edf | 25683 | |
39dd4d52 | 25684 | if test "${USE_X_TOOLKIT}" = "LUCID"; then |
73d798d5 | 25685 | |
bf89cb4d GM |
25686 | cat >>confdefs.h <<\_ACEOF |
25687 | #define USE_LUCID 1 | |
25688 | _ACEOF | |
73d798d5 | 25689 | |
39dd4d52 | 25690 | elif test "${USE_X_TOOLKIT}" = "MOTIF"; then |
73d798d5 | 25691 | |
bf89cb4d GM |
25692 | cat >>confdefs.h <<\_ACEOF |
25693 | #define USE_MOTIF 1 | |
25694 | _ACEOF | |
73d798d5 SM |
25695 | |
25696 | fi | |
22044edf DL |
25697 | fi |
25698 | if test "${HAVE_X11}" = "yes" ; then | |
25699 | ||
bf89cb4d GM |
25700 | cat >>confdefs.h <<\_ACEOF |
25701 | #define HAVE_X11 1 | |
25702 | _ACEOF | |
22044edf | 25703 | |
22044edf DL |
25704 | fi |
25705 | if test "${HAVE_MENUS}" = "yes" ; then | |
25706 | ||
bf89cb4d GM |
25707 | cat >>confdefs.h <<\_ACEOF |
25708 | #define HAVE_MENUS 1 | |
25709 | _ACEOF | |
22044edf DL |
25710 | |
25711 | fi | |
25712 | if test "${GNU_MALLOC}" = "yes" ; then | |
25713 | ||
bf89cb4d GM |
25714 | cat >>confdefs.h <<\_ACEOF |
25715 | #define GNU_MALLOC 1 | |
25716 | _ACEOF | |
22044edf DL |
25717 | |
25718 | fi | |
25719 | if test "${REL_ALLOC}" = "yes" ; then | |
25720 | ||
bf89cb4d GM |
25721 | cat >>confdefs.h <<\_ACEOF |
25722 | #define REL_ALLOC 1 | |
25723 | _ACEOF | |
22044edf DL |
25724 | |
25725 | fi | |
25726 | ||
25727 | ||
25728 | ||
c0d27fcc | 25729 | |
bf89cb4d GM |
25730 | |
25731 | ||
ba4481b5 | 25732 | #### Report on what we decided to do. |
488dd4c4 JD |
25733 | #### Report GTK as a toolkit, even if it doesn't use Xt. |
25734 | #### It makes printing result more understandable as using GTK sets | |
25735 | #### toolkit_scroll_bars to yes by default. | |
25736 | if test "${HAVE_GTK}" = "yes"; then | |
25737 | USE_X_TOOLKIT=GTK | |
25738 | fi | |
25739 | ||
ba4481b5 DL |
25740 | echo " |
25741 | Configured for \`${canonical}'. | |
25742 | ||
25743 | Where should the build process find the source code? ${srcdir} | |
25744 | What operating system and machine description files should Emacs use? | |
25745 | \`${opsysfile}' and \`${machfile}' | |
25746 | What compiler should emacs be built with? ${CC} ${CFLAGS} | |
25747 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
73b77ee5 | 25748 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
ef9e4345 | 25749 | Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
ba4481b5 | 25750 | What window system should Emacs use? ${window_system} |
8e967cf7 | 25751 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
ba4481b5 DL |
25752 | |
25753 | if test -n "${x_includes}"; then | |
25754 | echo " Where do we find X Windows header files? ${x_includes}" | |
25755 | else | |
25756 | echo " Where do we find X Windows header files? Standard dirs" | |
25757 | fi | |
25758 | if test -n "${x_libraries}"; then | |
25759 | echo " Where do we find X Windows libraries? ${x_libraries}" | |
25760 | else | |
25761 | echo " Where do we find X Windows libraries? Standard dirs" | |
25762 | fi | |
25763 | ||
25764 | echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
25765 | echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
25766 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
25767 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
9aeb8aaa | 25768 | echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name" |
ba4481b5 | 25769 | echo " Does Emacs use -lpng? ${HAVE_PNG}" |
0cfc0546 | 25770 | echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" |
79011b82 | 25771 | echo " Does Emacs use -lgpm? ${HAVE_GPM}" |
409dd120 | 25772 | echo " Does Emacs use -ldbus? ${HAVE_DBUS}" |
637fa988 | 25773 | echo " Does Emacs use -lgconf? ${HAVE_GCONF}" |
2ee27f27 | 25774 | |
edfda783 AR |
25775 | echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}" |
25776 | echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}" | |
25777 | echo " Does Emacs use -lotf? ${HAVE_LIBOTF}" | |
25778 | echo " Does Emacs use -lxft? ${HAVE_XFT}" | |
25779 | ||
8d87199b | 25780 | echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" |
ba4481b5 DL |
25781 | echo |
25782 | ||
d0098f13 JD |
25783 | if test $USE_XASSERTS = yes; then |
25784 | echo " Compiling with asserts turned on." | |
d0098f13 | 25785 | CPPFLAGS="$CPPFLAGS -DXASSERTS=1" |
d0098f13 | 25786 | fi |
05cf15c6 | 25787 | |
ca34d75a JD |
25788 | echo |
25789 | ||
06b62770 AR |
25790 | if test "$HAVE_NS" = "yes"; then |
25791 | echo | |
25792 | echo "You must run \"make install\" in order to test the built application. | |
25793 | The installed application will go to nextstep/Emacs.app and can be | |
25794 | run or moved from there." | |
25795 | if test "$EN_NS_SELF_CONTAINED" = "yes"; then | |
25796 | echo "The application will be fully self-contained." | |
25797 | else | |
25798 | echo "The lisp resources for the application will be installed under ${prefix}. | |
25799 | You may need to run \"make install\" with sudo. The application will fail | |
25800 | to run if these resources are not installed." | |
25801 | fi | |
25802 | echo | |
25803 | fi | |
25804 | ||
131e4133 MA |
25805 | if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then |
25806 | echo "D-Bus integration has been tested for GNU/Linux only." | |
25807 | echo | |
25808 | fi | |
25809 | ||
05cf15c6 | 25810 | |
ba4481b5 DL |
25811 | # Remove any trailing slashes in these variables. |
25812 | test "${prefix}" != NONE && | |
25813 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
25814 | test "${exec_prefix}" != NONE && | |
25815 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
25816 | ||
8acdcf6f GM |
25817 | # Now get this: Some word that is part of the ${srcdir} directory name |
25818 | # or the ${configuration} value might, just might, happen to be an | |
25819 | # identifier like `sun4' or `i386' or something, and be predefined by | |
25820 | # the C preprocessor to some helpful value like 1, or maybe the empty | |
25821 | # string. Needless to say consequent macro substitutions are less | |
25822 | # than conducive to the makefile finding the correct directory. | |
25823 | cpp_undefs="`echo $srcdir $configuration $canonical | | |
25824 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
25825 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`" | |
25826 | ||
d0e9bfd2 GM |
25827 | ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
25828 | ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
25829 | ## from Makefile.c can correctly provide the arg `-traditional' to the | |
25830 | ## C preprocessor. | |
25831 | ||
bf89cb4d GM |
25832 | cat >conftest.$ac_ext <<_ACEOF |
25833 | /* confdefs.h. */ | |
25834 | _ACEOF | |
25835 | cat confdefs.h >>conftest.$ac_ext | |
25836 | cat >>conftest.$ac_ext <<_ACEOF | |
19650fd6 | 25837 | /* end confdefs.h. */ |
d0e9bfd2 | 25838 | yes..yes |
503d2be0 | 25839 | _ACEOF |
d0e9bfd2 | 25840 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bf89cb4d | 25841 | $EGREP "yes..yes" >/dev/null 2>&1; then |
d0e9bfd2 GM |
25842 | CPP_NEED_TRADITIONAL=no |
25843 | else | |
d0e9bfd2 GM |
25844 | CPP_NEED_TRADITIONAL=yes |
25845 | fi | |
25846 | rm -f conftest* | |
25847 | ||
c0d27fcc | 25848 | |
f657c21b | 25849 | 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" |
ca81d7a0 JD |
25850 | |
25851 | ac_config_commands="$ac_config_commands default" | |
25852 | ||
503d2be0 | 25853 | cat >confcache <<\_ACEOF |
ba4481b5 DL |
25854 | # This file is a shell script that caches the results of configure |
25855 | # tests run on this system so they can be shared between configure | |
503d2be0 AS |
25856 | # scripts and configure runs, see configure's option --config-cache. |
25857 | # It is not useful on other systems. If it contains results you don't | |
25858 | # want to keep, you may remove or edit it. | |
ba4481b5 | 25859 | # |
503d2be0 AS |
25860 | # config.status only pays attention to the cache file if you give it |
25861 | # the --recheck option to rerun configure. | |
ba4481b5 | 25862 | # |
6bae0ccf | 25863 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
503d2be0 AS |
25864 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
25865 | # following values. | |
25866 | ||
25867 | _ACEOF | |
25868 | ||
ba4481b5 DL |
25869 | # The following way of writing the cache mishandles newlines in values, |
25870 | # but we know of no workaround that is simple, portable, and efficient. | |
ca81d7a0 | 25871 | # So, we kill variables containing newlines. |
ba4481b5 DL |
25872 | # Ultrix sh set writes to stderr and can't be redirected directly, |
25873 | # and sets the high bit in the cache file unless we assign to the vars. | |
ca81d7a0 JD |
25874 | ( |
25875 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
25876 | eval ac_val=\$$ac_var | |
25877 | case $ac_val in #( | |
25878 | *${as_nl}*) | |
25879 | case $ac_var in #( | |
bf89cb4d GM |
25880 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
25881 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
ca81d7a0 JD |
25882 | esac |
25883 | case $ac_var in #( | |
25884 | _ | IFS | as_nl) ;; #( | |
e9a63f04 | 25885 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
bf89cb4d | 25886 | *) $as_unset $ac_var ;; |
ca81d7a0 JD |
25887 | esac ;; |
25888 | esac | |
25889 | done | |
25890 | ||
503d2be0 | 25891 | (set) 2>&1 | |
ca81d7a0 JD |
25892 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
25893 | *${as_nl}ac_space=\ *) | |
bf89cb4d GM |
25894 | # `set' does not quote correctly, so add quotes (double-quote |
25895 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
503d2be0 | 25896 | sed -n \ |
edfaf76d LK |
25897 | "s/'/'\\\\''/g; |
25898 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
ca81d7a0 | 25899 | ;; #( |
503d2be0 AS |
25900 | *) |
25901 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
ca81d7a0 | 25902 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
503d2be0 | 25903 | ;; |
ca81d7a0 JD |
25904 | esac | |
25905 | sort | |
25906 | ) | | |
503d2be0 | 25907 | sed ' |
ca81d7a0 | 25908 | /^ac_cv_env_/b end |
503d2be0 | 25909 | t clear |
ca81d7a0 | 25910 | :clear |
503d2be0 AS |
25911 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
25912 | t end | |
ca81d7a0 JD |
25913 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
25914 | :end' >>confcache | |
25915 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
25916 | if test -w "$cache_file"; then | |
25917 | test "x$cache_file" != "x/dev/null" && | |
bf89cb4d | 25918 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
e9a63f04 | 25919 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
503d2be0 | 25920 | cat confcache >$cache_file |
ba4481b5 | 25921 | else |
bf89cb4d | 25922 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
e9a63f04 | 25923 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
ba4481b5 DL |
25924 | fi |
25925 | fi | |
25926 | rm -f confcache | |
25927 | ||
ba4481b5 DL |
25928 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
25929 | # Let make expand exec_prefix. | |
25930 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
25931 | ||
ba4481b5 DL |
25932 | DEFS=-DHAVE_CONFIG_H |
25933 | ||
6bae0ccf DL |
25934 | ac_libobjs= |
25935 | ac_ltlibobjs= | |
25936 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
25937 | # 1. Remove the extension, and $U if already installed. | |
ca81d7a0 | 25938 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
e9a63f04 | 25939 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
ca81d7a0 JD |
25940 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
25941 | # will be set to the directory where LIBOBJS objects are built. | |
bf89cb4d GM |
25942 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
25943 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
6bae0ccf DL |
25944 | done |
25945 | LIBOBJS=$ac_libobjs | |
25946 | ||
25947 | LTLIBOBJS=$ac_ltlibobjs | |
25948 | ||
25949 | ||
c0d27fcc | 25950 | |
ba4481b5 | 25951 | : ${CONFIG_STATUS=./config.status} |
e9a63f04 | 25952 | ac_write_fail=0 |
503d2be0 AS |
25953 | ac_clean_files_save=$ac_clean_files |
25954 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
bf89cb4d | 25955 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
e9a63f04 | 25956 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
bf89cb4d | 25957 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
503d2be0 | 25958 | #! $SHELL |
c0d27fcc | 25959 | # Generated by $as_me. |
ba4481b5 | 25960 | # Run this file to recreate the current configuration. |
ba4481b5 | 25961 | # Compiler output produced by configure, useful for debugging |
503d2be0 | 25962 | # configure, is in config.log if it exists. |
ba4481b5 | 25963 | |
503d2be0 | 25964 | debug=false |
19650fd6 AS |
25965 | ac_cs_recheck=false |
25966 | ac_cs_silent=false | |
0ca10bb7 | 25967 | SHELL=\${CONFIG_SHELL-$SHELL} |
bf89cb4d GM |
25968 | _ACEOF |
25969 | ||
25970 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
25971 | ## --------------------- ## | |
25972 | ## M4sh Initialization. ## | |
25973 | ## --------------------- ## | |
c0d27fcc | 25974 | |
f053c89f CY |
25975 | # Be more Bourne compatible |
25976 | DUALCASE=1; export DUALCASE # for MKS sh | |
bf89cb4d | 25977 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
503d2be0 AS |
25978 | emulate sh |
25979 | NULLCMD=: | |
e9a63f04 | 25980 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
6bae0ccf DL |
25981 | # is contrary to our usage. Disable this feature. |
25982 | alias -g '${1+"$@"}'='"$@"' | |
ca81d7a0 JD |
25983 | setopt NO_GLOB_SUBST |
25984 | else | |
bf89cb4d GM |
25985 | case `(set -o) 2>/dev/null` in |
25986 | *posix*) set -o posix ;; | |
f053c89f | 25987 | esac |
bf89cb4d | 25988 | |
503d2be0 | 25989 | fi |
f053c89f CY |
25990 | |
25991 | ||
bf89cb4d GM |
25992 | |
25993 | ||
25994 | # PATH needs CR | |
25995 | # Avoid depending upon Character Ranges. | |
25996 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
25997 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
25998 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
25999 | as_cr_digits='0123456789' | |
26000 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
26001 | ||
e9a63f04 GM |
26002 | as_nl=' |
26003 | ' | |
26004 | export as_nl | |
26005 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
26006 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
26007 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
26008 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
bf89cb4d | 26009 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
e9a63f04 GM |
26010 | as_echo='printf %s\n' |
26011 | as_echo_n='printf %s' | |
26012 | else | |
26013 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
26014 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
26015 | as_echo_n='/usr/ucb/echo -n' | |
7bbec45b | 26016 | else |
e9a63f04 GM |
26017 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
26018 | as_echo_n_body='eval | |
26019 | arg=$1; | |
bf89cb4d | 26020 | case $arg in |
e9a63f04 GM |
26021 | *"$as_nl"*) |
26022 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
26023 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
26024 | esac; | |
26025 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
26026 | ' | |
26027 | export as_echo_n_body | |
26028 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7bbec45b | 26029 | fi |
e9a63f04 GM |
26030 | export as_echo_body |
26031 | as_echo='sh -c $as_echo_body as_echo' | |
26032 | fi | |
26033 | ||
26034 | # The user is always right. | |
26035 | if test "${PATH_SEPARATOR+set}" != set; then | |
26036 | PATH_SEPARATOR=: | |
26037 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
26038 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
26039 | PATH_SEPARATOR=';' | |
26040 | } | |
503d2be0 AS |
26041 | fi |
26042 | ||
bf89cb4d GM |
26043 | # Support unset when possible. |
26044 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26045 | as_unset=unset | |
26046 | else | |
26047 | as_unset=false | |
26048 | fi | |
26049 | ||
6bae0ccf | 26050 | |
ca81d7a0 JD |
26051 | # IFS |
26052 | # We need space, tab and new line, in precisely that order. Quoting is | |
26053 | # there to prevent editors from complaining about space-tab. | |
26054 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
26055 | # splitting by setting IFS to empty value.) | |
ca81d7a0 JD |
26056 | IFS=" "" $as_nl" |
26057 | ||
26058 | # Find who we are. Look in the path if we contain no directory separator. | |
bf89cb4d | 26059 | case $0 in |
ca81d7a0 JD |
26060 | *[\\/]* ) as_myself=$0 ;; |
26061 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26062 | for as_dir in $PATH | |
26063 | do | |
26064 | IFS=$as_save_IFS | |
26065 | test -z "$as_dir" && as_dir=. | |
bf89cb4d GM |
26066 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
26067 | done | |
ca81d7a0 JD |
26068 | IFS=$as_save_IFS |
26069 | ||
26070 | ;; | |
26071 | esac | |
26072 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
26073 | # in which case we are not to be found in the path. | |
26074 | if test "x$as_myself" = x; then | |
26075 | as_myself=$0 | |
26076 | fi | |
26077 | if test ! -f "$as_myself"; then | |
e9a63f04 | 26078 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
bf89cb4d | 26079 | { (exit 1); exit 1; } |
ca81d7a0 JD |
26080 | fi |
26081 | ||
bf89cb4d GM |
26082 | # Work around bugs in pre-3.0 UWIN ksh. |
26083 | for as_var in ENV MAIL MAILPATH | |
26084 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
ca81d7a0 | 26085 | done |
6bae0ccf DL |
26086 | PS1='$ ' |
26087 | PS2='> ' | |
26088 | PS4='+ ' | |
26089 | ||
26090 | # NLS nuisances. | |
e9a63f04 GM |
26091 | LC_ALL=C |
26092 | export LC_ALL | |
26093 | LANGUAGE=C | |
26094 | export LANGUAGE | |
6bae0ccf | 26095 | |
bf89cb4d | 26096 | # Required to use basename. |
ca81d7a0 JD |
26097 | if expr a : '\(a\)' >/dev/null 2>&1 && |
26098 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6bae0ccf DL |
26099 | as_expr=expr |
26100 | else | |
26101 | as_expr=false | |
26102 | fi | |
26103 | ||
ca81d7a0 | 26104 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6bae0ccf DL |
26105 | as_basename=basename |
26106 | else | |
26107 | as_basename=false | |
26108 | fi | |
c0d27fcc MR |
26109 | |
26110 | ||
bf89cb4d | 26111 | # Name of the executable. |
ca81d7a0 | 26112 | as_me=`$as_basename -- "$0" || |
c0d27fcc MR |
26113 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
26114 | X"$0" : 'X\(//\)$' \| \ | |
ca81d7a0 | 26115 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
e9a63f04 | 26116 | $as_echo X/"$0" | |
ca81d7a0 JD |
26117 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
26118 | s//\1/ | |
26119 | q | |
26120 | } | |
26121 | /^X\/\(\/\/\)$/{ | |
26122 | s//\1/ | |
26123 | q | |
26124 | } | |
26125 | /^X\/\(\/\).*/{ | |
26126 | s//\1/ | |
26127 | q | |
26128 | } | |
26129 | s/.*/./; q'` | |
c0d27fcc | 26130 | |
bf89cb4d GM |
26131 | # CDPATH. |
26132 | $as_unset CDPATH | |
26133 | ||
26134 | ||
26135 | ||
26136 | as_lineno_1=$LINENO | |
26137 | as_lineno_2=$LINENO | |
26138 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
26139 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
26140 | ||
26141 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
26142 | # uniformly replaced by the line number. The first 'sed' inserts a | |
26143 | # line-number line after each line using $LINENO; the second 'sed' | |
26144 | # does the real work. The second script uses 'N' to pair each | |
26145 | # line-number line with the line containing $LINENO, and appends | |
26146 | # trailing '-' during substitution so that $LINENO is not a special | |
26147 | # case at line end. | |
26148 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
26149 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
26150 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
26151 | sed -n ' | |
26152 | p | |
26153 | /[$]LINENO/= | |
26154 | ' <$as_myself | | |
26155 | sed ' | |
26156 | s/[$]LINENO.*/&-/ | |
26157 | t lineno | |
26158 | b | |
26159 | :lineno | |
26160 | N | |
26161 | :loop | |
26162 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
26163 | t loop | |
26164 | s/-\n.*// | |
26165 | ' >$as_me.lineno && | |
26166 | chmod +x "$as_me.lineno" || | |
26167 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
26168 | { (exit 1); exit 1; }; } | |
26169 | ||
26170 | # Don't try to exec as it changes $[0], causing all sort of problems | |
26171 | # (the dirname of $[0] is not the place where we might find the | |
26172 | # original and so on. Autoconf is especially sensitive to this). | |
26173 | . "./$as_me.lineno" | |
26174 | # Exit status is that of the last command. | |
26175 | exit | |
26176 | } | |
26177 | ||
26178 | ||
26179 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
26180 | as_dirname=dirname | |
26181 | else | |
26182 | as_dirname=false | |
26183 | fi | |
ca81d7a0 JD |
26184 | |
26185 | ECHO_C= ECHO_N= ECHO_T= | |
bf89cb4d | 26186 | case `echo -n x` in |
ca81d7a0 | 26187 | -n*) |
bf89cb4d | 26188 | case `echo 'x\c'` in |
ca81d7a0 | 26189 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
bf89cb4d | 26190 | *) ECHO_C='\c';; |
ca81d7a0 JD |
26191 | esac;; |
26192 | *) | |
26193 | ECHO_N='-n';; | |
c0d27fcc | 26194 | esac |
bf89cb4d GM |
26195 | if expr a : '\(a\)' >/dev/null 2>&1 && |
26196 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
26197 | as_expr=expr | |
26198 | else | |
26199 | as_expr=false | |
26200 | fi | |
503d2be0 AS |
26201 | |
26202 | rm -f conf$$ conf$$.exe conf$$.file | |
ca81d7a0 JD |
26203 | if test -d conf$$.dir; then |
26204 | rm -f conf$$.dir/conf$$.file | |
26205 | else | |
26206 | rm -f conf$$.dir | |
e9a63f04 GM |
26207 | mkdir conf$$.dir 2>/dev/null |
26208 | fi | |
26209 | if (echo >conf$$.file) 2>/dev/null; then | |
26210 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
26211 | as_ln_s='ln -s' | |
26212 | # ... but there are two gotchas: | |
26213 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
26214 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
26215 | # In both cases, we have to default to `cp -p'. | |
26216 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
26217 | as_ln_s='cp -p' | |
26218 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
26219 | as_ln_s=ln | |
26220 | else | |
503d2be0 | 26221 | as_ln_s='cp -p' |
e9a63f04 | 26222 | fi |
503d2be0 AS |
26223 | else |
26224 | as_ln_s='cp -p' | |
26225 | fi | |
ca81d7a0 JD |
26226 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
26227 | rmdir conf$$.dir 2>/dev/null | |
503d2be0 | 26228 | |
6bae0ccf | 26229 | if mkdir -p . 2>/dev/null; then |
bf89cb4d | 26230 | as_mkdir_p=: |
6bae0ccf | 26231 | else |
edfaf76d | 26232 | test -d ./-p && rmdir ./-p |
6bae0ccf DL |
26233 | as_mkdir_p=false |
26234 | fi | |
26235 | ||
f053c89f CY |
26236 | if test -x / >/dev/null 2>&1; then |
26237 | as_test_x='test -x' | |
ca81d7a0 | 26238 | else |
f053c89f CY |
26239 | if ls -dL / >/dev/null 2>&1; then |
26240 | as_ls_L_option=L | |
26241 | else | |
26242 | as_ls_L_option= | |
26243 | fi | |
26244 | as_test_x=' | |
26245 | eval sh -c '\'' | |
26246 | if test -d "$1"; then | |
e9a63f04 | 26247 | test -d "$1/."; |
f053c89f | 26248 | else |
bf89cb4d | 26249 | case $1 in |
e9a63f04 | 26250 | -*)set "./$1";; |
f053c89f | 26251 | esac; |
bf89cb4d | 26252 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
f053c89f CY |
26253 | ???[sx]*):;;*)false;;esac;fi |
26254 | '\'' sh | |
26255 | ' | |
ca81d7a0 | 26256 | fi |
f053c89f | 26257 | as_executable_p=$as_test_x |
503d2be0 | 26258 | |
c0d27fcc | 26259 | # Sed expression to map a string onto a valid CPP name. |
edfaf76d | 26260 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
c0d27fcc MR |
26261 | |
26262 | # Sed expression to map a string onto a valid variable name. | |
edfaf76d | 26263 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
503d2be0 | 26264 | |
503d2be0 | 26265 | |
503d2be0 AS |
26266 | exec 6>&1 |
26267 | ||
bf89cb4d | 26268 | # Save the log message, to keep $[0] and so on meaningful, and to |
c0d27fcc | 26269 | # report actual input values of CONFIG_FILES etc. instead of their |
ca81d7a0 JD |
26270 | # values after options handling. |
26271 | ac_log=" | |
61a808e8 | 26272 | This file was extended by emacs $as_me 23.2, which was |
bf89cb4d | 26273 | generated by GNU Autoconf 2.62. Invocation command line was |
c0d27fcc MR |
26274 | |
26275 | CONFIG_FILES = $CONFIG_FILES | |
26276 | CONFIG_HEADERS = $CONFIG_HEADERS | |
26277 | CONFIG_LINKS = $CONFIG_LINKS | |
26278 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
26279 | $ $0 $@ | |
26280 | ||
ca81d7a0 JD |
26281 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
26282 | " | |
26283 | ||
503d2be0 AS |
26284 | _ACEOF |
26285 | ||
e9a63f04 | 26286 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
503d2be0 | 26287 | # Files that config.status was made for. |
ca81d7a0 JD |
26288 | config_files="$ac_config_files" |
26289 | config_headers="$ac_config_headers" | |
26290 | config_commands="$ac_config_commands" | |
503d2be0 | 26291 | |
ca81d7a0 | 26292 | _ACEOF |
503d2be0 | 26293 | |
e9a63f04 | 26294 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
503d2be0 | 26295 | ac_cs_usage="\ |
bf89cb4d GM |
26296 | \`$as_me' instantiates files from templates according to the |
26297 | current configuration. | |
503d2be0 | 26298 | |
bf89cb4d | 26299 | Usage: $0 [OPTIONS] [FILE]... |
503d2be0 AS |
26300 | |
26301 | -h, --help print this help, then exit | |
f053c89f | 26302 | -V, --version print version number and configuration settings, then exit |
bf89cb4d | 26303 | -q, --quiet do not print progress messages |
503d2be0 AS |
26304 | -d, --debug don't remove temporary files |
26305 | --recheck update $as_me by reconfiguring in the same conditions | |
bf89cb4d | 26306 | --file=FILE[:TEMPLATE] |
e9a63f04 | 26307 | instantiate the configuration file FILE |
bf89cb4d | 26308 | --header=FILE[:TEMPLATE] |
e9a63f04 | 26309 | instantiate the configuration header FILE |
503d2be0 AS |
26310 | |
26311 | Configuration files: | |
26312 | $config_files | |
26313 | ||
26314 | Configuration headers: | |
26315 | $config_headers | |
26316 | ||
26317 | Configuration commands: | |
26318 | $config_commands | |
26319 | ||
bf89cb4d | 26320 | Report bugs to <bug-autoconf@gnu.org>." |
503d2be0 | 26321 | |
ca81d7a0 | 26322 | _ACEOF |
e9a63f04 | 26323 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
503d2be0 | 26324 | ac_cs_version="\\ |
61a808e8 | 26325 | emacs config.status 23.2 |
bf89cb4d GM |
26326 | configured by $0, generated by GNU Autoconf 2.62, |
26327 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
503d2be0 | 26328 | |
bf89cb4d | 26329 | Copyright (C) 2008 Free Software Foundation, Inc. |
503d2be0 AS |
26330 | This config.status script is free software; the Free Software Foundation |
26331 | gives unlimited permission to copy, distribute and modify it." | |
ca81d7a0 JD |
26332 | |
26333 | ac_pwd='$ac_pwd' | |
26334 | srcdir='$srcdir' | |
26335 | INSTALL='$INSTALL' | |
e9a63f04 | 26336 | test -n "\$AWK" || AWK=awk |
c0d27fcc | 26337 | _ACEOF |
503d2be0 | 26338 | |
e9a63f04 GM |
26339 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26340 | # The default lists apply if the user does not specify any file. | |
503d2be0 AS |
26341 | ac_need_defaults=: |
26342 | while test $# != 0 | |
ba4481b5 | 26343 | do |
503d2be0 AS |
26344 | case $1 in |
26345 | --*=*) | |
ca81d7a0 JD |
26346 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
26347 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
6bae0ccf DL |
26348 | ac_shift=: |
26349 | ;; | |
ca81d7a0 | 26350 | *) |
6bae0ccf DL |
26351 | ac_option=$1 |
26352 | ac_optarg=$2 | |
26353 | ac_shift=shift | |
503d2be0 | 26354 | ;; |
503d2be0 AS |
26355 | esac |
26356 | ||
6bae0ccf | 26357 | case $ac_option in |
503d2be0 | 26358 | # Handling of the options. |
19650fd6 AS |
26359 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
26360 | ac_cs_recheck=: ;; | |
ca81d7a0 | 26361 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
e9a63f04 | 26362 | $as_echo "$ac_cs_version"; exit ;; |
ca81d7a0 | 26363 | --debug | --debu | --deb | --de | --d | -d ) |
503d2be0 AS |
26364 | debug=: ;; |
26365 | --file | --fil | --fi | --f ) | |
6bae0ccf | 26366 | $ac_shift |
e9a63f04 GM |
26367 | case $ac_optarg in |
26368 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
26369 | esac | |
bf89cb4d | 26370 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
503d2be0 AS |
26371 | ac_need_defaults=false;; |
26372 | --header | --heade | --head | --hea ) | |
6bae0ccf | 26373 | $ac_shift |
e9a63f04 GM |
26374 | case $ac_optarg in |
26375 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
26376 | esac | |
bf89cb4d | 26377 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
503d2be0 | 26378 | ac_need_defaults=false;; |
ca81d7a0 JD |
26379 | --he | --h) |
26380 | # Conflict between --help and --header | |
bf89cb4d GM |
26381 | { $as_echo "$as_me: error: ambiguous option: $1 |
26382 | Try \`$0 --help' for more information." >&2 | |
26383 | { (exit 1); exit 1; }; };; | |
ca81d7a0 | 26384 | --help | --hel | -h ) |
e9a63f04 | 26385 | $as_echo "$ac_cs_usage"; exit ;; |
19650fd6 AS |
26386 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
26387 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
26388 | ac_cs_silent=: ;; | |
503d2be0 AS |
26389 | |
26390 | # This is an error. | |
bf89cb4d GM |
26391 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
26392 | Try \`$0 --help' for more information." >&2 | |
26393 | { (exit 1); exit 1; }; } ;; | |
503d2be0 | 26394 | |
bf89cb4d | 26395 | *) ac_config_targets="$ac_config_targets $1" |
ca81d7a0 | 26396 | ac_need_defaults=false ;; |
503d2be0 | 26397 | |
ba4481b5 | 26398 | esac |
503d2be0 | 26399 | shift |
ba4481b5 DL |
26400 | done |
26401 | ||
19650fd6 AS |
26402 | ac_configure_extra_args= |
26403 | ||
26404 | if $ac_cs_silent; then | |
26405 | exec 6>/dev/null | |
26406 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
26407 | fi | |
26408 | ||
26409 | _ACEOF | |
e9a63f04 | 26410 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19650fd6 | 26411 | if \$ac_cs_recheck; then |
e9a63f04 GM |
26412 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
26413 | shift | |
26414 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
26415 | CONFIG_SHELL='$SHELL' | |
ca81d7a0 | 26416 | export CONFIG_SHELL |
e9a63f04 | 26417 | exec "\$@" |
19650fd6 AS |
26418 | fi |
26419 | ||
503d2be0 | 26420 | _ACEOF |
e9a63f04 | 26421 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ca81d7a0 JD |
26422 | exec 5>>config.log |
26423 | { | |
26424 | echo | |
26425 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
26426 | ## Running $as_me. ## | |
26427 | _ASBOX | |
e9a63f04 | 26428 | $as_echo "$ac_log" |
ca81d7a0 | 26429 | } >&5 |
ba4481b5 | 26430 | |
ca81d7a0 | 26431 | _ACEOF |
e9a63f04 | 26432 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
503d2be0 | 26433 | # |
ca81d7a0 | 26434 | # INIT-COMMANDS |
503d2be0 | 26435 | # |
8acdcf6f | 26436 | GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs" |
503d2be0 | 26437 | |
c0d27fcc MR |
26438 | _ACEOF |
26439 | ||
e9a63f04 | 26440 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ca81d7a0 JD |
26441 | |
26442 | # Handling of arguments. | |
503d2be0 AS |
26443 | for ac_config_target in $ac_config_targets |
26444 | do | |
ca81d7a0 JD |
26445 | case $ac_config_target in |
26446 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
26447 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
26448 | "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
26449 | "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
f657c21b GM |
26450 | "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;; |
26451 | "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;; | |
26452 | "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;; | |
26453 | "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;; | |
ca81d7a0 | 26454 | "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; |
f657c21b | 26455 | "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; |
ca81d7a0 | 26456 | "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; |
ca81d7a0 JD |
26457 | "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
26458 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
26459 | ||
bf89cb4d GM |
26460 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
26461 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
26462 | { (exit 1); exit 1; }; };; | |
503d2be0 | 26463 | esac |
ba4481b5 | 26464 | done |
503d2be0 | 26465 | |
ca81d7a0 | 26466 | |
503d2be0 AS |
26467 | # If the user did not use the arguments to specify the items to instantiate, |
26468 | # then the envvar interface is used. Set only those that are not. | |
26469 | # We use the long form for the default assignment because of an extremely | |
26470 | # bizarre bug on SunOS 4.1.3. | |
26471 | if $ac_need_defaults; then | |
26472 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
26473 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
26474 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
ba4481b5 | 26475 | fi |
503d2be0 | 26476 | |
19650fd6 | 26477 | # Have a temporary directory for convenience. Make it in the build tree |
ca81d7a0 | 26478 | # simply because there is no reason against having it here, and in addition, |
19650fd6 | 26479 | # creating and moving files from /tmp can sometimes cause problems. |
ca81d7a0 JD |
26480 | # Hook for its removal unless debugging. |
26481 | # Note that there is a small window in which the directory will not be cleaned: | |
26482 | # after its creation but before its name has been assigned to `$tmp'. | |
503d2be0 AS |
26483 | $debug || |
26484 | { | |
ca81d7a0 JD |
26485 | tmp= |
26486 | trap 'exit_status=$? | |
26487 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
26488 | ' 0 | |
bf89cb4d | 26489 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
503d2be0 | 26490 | } |
503d2be0 | 26491 | # Create a (secure) tmp directory for tmp files. |
19650fd6 | 26492 | |
503d2be0 | 26493 | { |
ca81d7a0 | 26494 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
503d2be0 AS |
26495 | test -n "$tmp" && test -d "$tmp" |
26496 | } || | |
26497 | { | |
ca81d7a0 JD |
26498 | tmp=./conf$$-$RANDOM |
26499 | (umask 077 && mkdir "$tmp") | |
bf89cb4d GM |
26500 | } || |
26501 | { | |
26502 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
26503 | { (exit 1); exit 1; } | |
26504 | } | |
503d2be0 | 26505 | |
e9a63f04 GM |
26506 | # Set up the scripts for CONFIG_FILES section. |
26507 | # No need to generate them if there are no CONFIG_FILES. | |
26508 | # This happens for instance with `./config.status config.h'. | |
ca81d7a0 JD |
26509 | if test -n "$CONFIG_FILES"; then |
26510 | ||
7bbec45b | 26511 | |
bf89cb4d | 26512 | ac_cr='\r' |
e9a63f04 GM |
26513 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
26514 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
bf89cb4d | 26515 | ac_cs_awk_cr='\\r' |
e9a63f04 GM |
26516 | else |
26517 | ac_cs_awk_cr=$ac_cr | |
ca81d7a0 | 26518 | fi |
503d2be0 | 26519 | |
e9a63f04 | 26520 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
ca81d7a0 | 26521 | _ACEOF |
503d2be0 | 26522 | |
ca81d7a0 | 26523 | |
e9a63f04 GM |
26524 | { |
26525 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
26526 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
26527 | echo "_ACEOF" | |
26528 | } >conf$$subs.sh || | |
bf89cb4d GM |
26529 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
26530 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
26531 | { (exit 1); exit 1; }; } | |
e9a63f04 | 26532 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
ca81d7a0 JD |
26533 | ac_delim='%!_!# ' |
26534 | for ac_last_try in false false false false false :; do | |
e9a63f04 | 26535 | . ./conf$$subs.sh || |
bf89cb4d GM |
26536 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
26537 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
26538 | { (exit 1); exit 1; }; } | |
e9a63f04 | 26539 | |
bf89cb4d | 26540 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then |
c24fa7dc MB |
26541 | break |
26542 | elif $ac_last_try; then | |
bf89cb4d GM |
26543 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
26544 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
26545 | { (exit 1); exit 1; }; } | |
c24fa7dc MB |
26546 | else |
26547 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
503d2be0 | 26548 | fi |
ca81d7a0 | 26549 | done |
e9a63f04 GM |
26550 | rm -f conf$$subs.sh |
26551 | ||
26552 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
26553 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
26554 | _ACEOF | |
26555 | sed -n ' | |
26556 | h | |
26557 | s/^/S["/; s/!.*/"]=/ | |
26558 | p | |
26559 | g | |
26560 | s/^[^!]*!// | |
26561 | :repl | |
26562 | t repl | |
26563 | s/'"$ac_delim"'$// | |
26564 | t delim | |
26565 | :nl | |
26566 | h | |
bf89cb4d | 26567 | s/\(.\{148\}\).*/\1/ |
e9a63f04 GM |
26568 | t more1 |
26569 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
26570 | p | |
26571 | n | |
26572 | b repl | |
26573 | :more1 | |
26574 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
26575 | p | |
26576 | g | |
26577 | s/.\{148\}// | |
26578 | t nl | |
26579 | :delim | |
26580 | h | |
bf89cb4d | 26581 | s/\(.\{148\}\).*/\1/ |
e9a63f04 GM |
26582 | t more2 |
26583 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
26584 | p | |
26585 | b | |
26586 | :more2 | |
26587 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
26588 | p | |
26589 | g | |
26590 | s/.\{148\}// | |
26591 | t delim | |
26592 | ' <conf$$subs.awk | sed ' | |
26593 | /^[^""]/{ | |
26594 | N | |
26595 | s/\n// | |
26596 | } | |
26597 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
26598 | rm -f conf$$subs.awk | |
26599 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
26600 | _ACAWK | |
26601 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
26602 | for (key in S) S_is_set[key] = 1 | |
26603 | FS = "\a" | |
1e0093ea | 26604 | |
e9a63f04 GM |
26605 | } |
26606 | { | |
26607 | line = $ 0 | |
26608 | nfields = split(line, field, "@") | |
26609 | substed = 0 | |
26610 | len = length(field[1]) | |
26611 | for (i = 2; i < nfields; i++) { | |
26612 | key = field[i] | |
26613 | keylen = length(key) | |
26614 | if (S_is_set[key]) { | |
26615 | value = S[key] | |
26616 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
26617 | len += length(value) + length(field[++i]) | |
26618 | substed = 1 | |
26619 | } else | |
26620 | len += 1 + keylen | |
26621 | } | |
ba4481b5 | 26622 | |
e9a63f04 GM |
26623 | print line |
26624 | } | |
26625 | ||
26626 | _ACAWK | |
ca81d7a0 | 26627 | _ACEOF |
e9a63f04 GM |
26628 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26629 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
26630 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
26631 | else | |
26632 | cat | |
26633 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
bf89cb4d GM |
26634 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
26635 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
26636 | { (exit 1); exit 1; }; } | |
c0d27fcc | 26637 | _ACEOF |
ca81d7a0 | 26638 | |
ca81d7a0 JD |
26639 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
26640 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
26641 | # trailing colons and then remove the whole line if VPATH becomes empty | |
26642 | # (actually we leave an empty line to preserve line numbers). | |
26643 | if test "x$srcdir" = x.; then | |
26644 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
26645 | s/:*\$(srcdir):*/:/ | |
26646 | s/:*\${srcdir}:*/:/ | |
26647 | s/:*@srcdir@:*/:/ | |
26648 | s/^\([^=]*=[ ]*\):*/\1/ | |
26649 | s/:*$// | |
26650 | s/^[^=]*=[ ]*$// | |
26651 | }' | |
26652 | fi | |
26653 | ||
e9a63f04 | 26654 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ca81d7a0 JD |
26655 | fi # test -n "$CONFIG_FILES" |
26656 | ||
e9a63f04 GM |
26657 | # Set up the scripts for CONFIG_HEADERS section. |
26658 | # No need to generate them if there are no CONFIG_HEADERS. | |
26659 | # This happens for instance with `./config.status Makefile'. | |
26660 | if test -n "$CONFIG_HEADERS"; then | |
26661 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
26662 | BEGIN { | |
26663 | _ACEOF | |
dc2933eb | 26664 | |
e9a63f04 GM |
26665 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
26666 | # here-document in config.status, that substitutes the proper values into | |
26667 | # config.h.in to produce config.h. | |
26668 | ||
26669 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
26670 | # handling of long lines. | |
26671 | ac_delim='%!_!# ' | |
26672 | for ac_last_try in false false :; do | |
26673 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
26674 | if test -z "$ac_t"; then | |
26675 | break | |
26676 | elif $ac_last_try; then | |
bf89cb4d GM |
26677 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
26678 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
26679 | { (exit 1); exit 1; }; } | |
e9a63f04 GM |
26680 | else |
26681 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
26682 | fi | |
26683 | done | |
26684 | ||
26685 | # For the awk script, D is an array of macro values keyed by name, | |
26686 | # likewise P contains macro parameters if any. Preserve backslash | |
26687 | # newline sequences. | |
26688 | ||
26689 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
26690 | sed -n ' | |
26691 | s/.\{148\}/&'"$ac_delim"'/g | |
26692 | t rset | |
26693 | :rset | |
26694 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
26695 | t def | |
26696 | d | |
26697 | :def | |
26698 | s/\\$// | |
26699 | t bsnl | |
26700 | s/["\\]/\\&/g | |
26701 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
26702 | D["\1"]=" \3"/p | |
26703 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
26704 | d | |
26705 | :bsnl | |
26706 | s/["\\]/\\&/g | |
26707 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
26708 | D["\1"]=" \3\\\\\\n"\\/p | |
26709 | t cont | |
26710 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
26711 | t cont | |
26712 | d | |
26713 | :cont | |
26714 | n | |
26715 | s/.\{148\}/&'"$ac_delim"'/g | |
26716 | t clear | |
26717 | :clear | |
26718 | s/\\$// | |
26719 | t bsnlc | |
26720 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
26721 | d | |
26722 | :bsnlc | |
26723 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
26724 | b cont | |
26725 | ' <confdefs.h | sed ' | |
26726 | s/'"$ac_delim"'/"\\\ | |
26727 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
26728 | ||
26729 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
26730 | for (key in D) D_is_set[key] = 1 | |
26731 | FS = "\a" | |
26732 | } | |
26733 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
26734 | line = \$ 0 | |
26735 | split(line, arg, " ") | |
26736 | if (arg[1] == "#") { | |
26737 | defundef = arg[2] | |
26738 | mac1 = arg[3] | |
26739 | } else { | |
26740 | defundef = substr(arg[1], 2) | |
26741 | mac1 = arg[2] | |
26742 | } | |
26743 | split(mac1, mac2, "(") #) | |
26744 | macro = mac2[1] | |
26745 | if (D_is_set[macro]) { | |
26746 | # Preserve the white space surrounding the "#". | |
bf89cb4d | 26747 | prefix = substr(line, 1, index(line, defundef) - 1) |
e9a63f04 GM |
26748 | print prefix "define", macro P[macro] D[macro] |
26749 | next | |
26750 | } else { | |
26751 | # Replace #undef with comments. This is necessary, for example, | |
26752 | # in the case of _POSIX_SOURCE, which is predefined and required | |
26753 | # on some systems where configure will not decide to define it. | |
26754 | if (defundef == "undef") { | |
bf89cb4d | 26755 | print "/*", line, "*/" |
e9a63f04 GM |
26756 | next |
26757 | } | |
26758 | } | |
26759 | } | |
26760 | { print } | |
26761 | _ACAWK | |
26762 | _ACEOF | |
26763 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
bf89cb4d GM |
26764 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
26765 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
26766 | { (exit 1); exit 1; }; } | |
e9a63f04 GM |
26767 | fi # test -n "$CONFIG_HEADERS" |
26768 | ||
26769 | ||
26770 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
26771 | shift | |
26772 | for ac_tag | |
ca81d7a0 JD |
26773 | do |
26774 | case $ac_tag in | |
26775 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
26776 | esac | |
26777 | case $ac_mode$ac_tag in | |
26778 | :[FHL]*:*);; | |
bf89cb4d GM |
26779 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
26780 | $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
26781 | { (exit 1); exit 1; }; };; | |
ca81d7a0 JD |
26782 | :[FH]-) ac_tag=-:-;; |
26783 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
26784 | esac | |
26785 | ac_save_IFS=$IFS | |
26786 | IFS=: | |
26787 | set x $ac_tag | |
26788 | IFS=$ac_save_IFS | |
26789 | shift | |
26790 | ac_file=$1 | |
26791 | shift | |
26792 | ||
26793 | case $ac_mode in | |
26794 | :L) ac_source=$1;; | |
26795 | :[FH]) | |
26796 | ac_file_inputs= | |
26797 | for ac_f | |
26798 | do | |
26799 | case $ac_f in | |
26800 | -) ac_f="$tmp/stdin";; | |
26801 | *) # Look for the file first in the build tree, then in the source tree | |
26802 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
26803 | # because $ac_f cannot contain `:'. | |
26804 | test -f "$ac_f" || | |
26805 | case $ac_f in | |
26806 | [\\/$]*) false;; | |
26807 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
26808 | esac || | |
bf89cb4d GM |
26809 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
26810 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
26811 | { (exit 1); exit 1; }; };; | |
ca81d7a0 | 26812 | esac |
e9a63f04 | 26813 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
bf89cb4d | 26814 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
ca81d7a0 JD |
26815 | done |
26816 | ||
26817 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
26818 | # use $as_me), people would be surprised to read: | |
26819 | # /* config.h. Generated by config.status. */ | |
e9a63f04 GM |
26820 | configure_input='Generated from '` |
26821 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
26822 | `' by configure.' | |
ca81d7a0 JD |
26823 | if test x"$ac_file" != x-; then |
26824 | configure_input="$ac_file. $configure_input" | |
bf89cb4d | 26825 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
e9a63f04 | 26826 | $as_echo "$as_me: creating $ac_file" >&6;} |
ca81d7a0 | 26827 | fi |
e9a63f04 GM |
26828 | # Neutralize special characters interpreted by sed in replacement strings. |
26829 | case $configure_input in #( | |
26830 | *\&* | *\|* | *\\* ) | |
26831 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
26832 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
26833 | *) ac_sed_conf_input=$configure_input;; | |
26834 | esac | |
ca81d7a0 JD |
26835 | |
26836 | case $ac_tag in | |
e9a63f04 | 26837 | *:-:* | *:-) cat >"$tmp/stdin" \ |
bf89cb4d GM |
26838 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
26839 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
26840 | { (exit 1); exit 1; }; } ;; | |
ca81d7a0 JD |
26841 | esac |
26842 | ;; | |
ba4481b5 DL |
26843 | esac |
26844 | ||
ca81d7a0 | 26845 | ac_dir=`$as_dirname -- "$ac_file" || |
c0d27fcc | 26846 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
edfaf76d LK |
26847 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
26848 | X"$ac_file" : 'X\(//\)$' \| \ | |
ca81d7a0 | 26849 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
e9a63f04 | 26850 | $as_echo X"$ac_file" | |
ca81d7a0 JD |
26851 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
26852 | s//\1/ | |
26853 | q | |
26854 | } | |
26855 | /^X\(\/\/\)[^/].*/{ | |
26856 | s//\1/ | |
26857 | q | |
26858 | } | |
26859 | /^X\(\/\/\)$/{ | |
26860 | s//\1/ | |
26861 | q | |
26862 | } | |
26863 | /^X\(\/\).*/{ | |
26864 | s//\1/ | |
26865 | q | |
26866 | } | |
26867 | s/.*/./; q'` | |
bf89cb4d GM |
26868 | { as_dir="$ac_dir" |
26869 | case $as_dir in #( | |
26870 | -*) as_dir=./$as_dir;; | |
26871 | esac | |
26872 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
26873 | as_dirs= | |
26874 | while :; do | |
26875 | case $as_dir in #( | |
26876 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
26877 | *) as_qdir=$as_dir;; | |
26878 | esac | |
26879 | as_dirs="'$as_qdir' $as_dirs" | |
26880 | as_dir=`$as_dirname -- "$as_dir" || | |
26881 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26882 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26883 | X"$as_dir" : 'X\(//\)$' \| \ | |
26884 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
26885 | $as_echo X"$as_dir" | | |
26886 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
26887 | s//\1/ | |
26888 | q | |
26889 | } | |
26890 | /^X\(\/\/\)[^/].*/{ | |
26891 | s//\1/ | |
26892 | q | |
26893 | } | |
26894 | /^X\(\/\/\)$/{ | |
26895 | s//\1/ | |
26896 | q | |
26897 | } | |
26898 | /^X\(\/\).*/{ | |
26899 | s//\1/ | |
26900 | q | |
26901 | } | |
26902 | s/.*/./; q'` | |
26903 | test -d "$as_dir" && break | |
26904 | done | |
26905 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
26906 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
26907 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
26908 | { (exit 1); exit 1; }; }; } | |
c0d27fcc | 26909 | ac_builddir=. |
98418dba | 26910 | |
ca81d7a0 JD |
26911 | case "$ac_dir" in |
26912 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
26913 | *) | |
e9a63f04 | 26914 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
ca81d7a0 | 26915 | # A ".." for each directory in $ac_dir_suffix. |
e9a63f04 | 26916 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
ca81d7a0 JD |
26917 | case $ac_top_builddir_sub in |
26918 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
26919 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
26920 | esac ;; | |
26921 | esac | |
26922 | ac_abs_top_builddir=$ac_pwd | |
26923 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
26924 | # for backward compatibility: | |
26925 | ac_top_builddir=$ac_top_build_prefix | |
c0d27fcc MR |
26926 | |
26927 | case $srcdir in | |
ca81d7a0 | 26928 | .) # We are building in place. |
c0d27fcc | 26929 | ac_srcdir=. |
ca81d7a0 JD |
26930 | ac_top_srcdir=$ac_top_builddir_sub |
26931 | ac_abs_top_srcdir=$ac_pwd ;; | |
26932 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c0d27fcc | 26933 | ac_srcdir=$srcdir$ac_dir_suffix; |
ca81d7a0 JD |
26934 | ac_top_srcdir=$srcdir |
26935 | ac_abs_top_srcdir=$srcdir ;; | |
26936 | *) # Relative name. | |
26937 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
26938 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
26939 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c0d27fcc | 26940 | esac |
ca81d7a0 | 26941 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
edfaf76d | 26942 | |
c0d27fcc | 26943 | |
ca81d7a0 JD |
26944 | case $ac_mode in |
26945 | :F) | |
26946 | # | |
26947 | # CONFIG_FILE | |
26948 | # | |
ba4481b5 | 26949 | |
503d2be0 AS |
26950 | case $INSTALL in |
26951 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
ca81d7a0 | 26952 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
ba4481b5 | 26953 | esac |
ca81d7a0 | 26954 | _ACEOF |
ba4481b5 | 26955 | |
e9a63f04 | 26956 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ca81d7a0 JD |
26957 | # If the template does not know about datarootdir, expand it. |
26958 | # FIXME: This hack should be removed a few years after 2.60. | |
26959 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
bf89cb4d | 26960 | |
e9a63f04 GM |
26961 | ac_sed_dataroot=' |
26962 | /datarootdir/ { | |
ca81d7a0 JD |
26963 | p |
26964 | q | |
26965 | } | |
26966 | /@datadir@/p | |
26967 | /@docdir@/p | |
26968 | /@infodir@/p | |
26969 | /@localedir@/p | |
bf89cb4d GM |
26970 | /@mandir@/p |
26971 | ' | |
e9a63f04 | 26972 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
ca81d7a0 JD |
26973 | *datarootdir*) ac_datarootdir_seen=yes;; |
26974 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
bf89cb4d | 26975 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
e9a63f04 | 26976 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
8eeae1c9 | 26977 | _ACEOF |
e9a63f04 | 26978 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ca81d7a0 JD |
26979 | ac_datarootdir_hack=' |
26980 | s&@datadir@&$datadir&g | |
26981 | s&@docdir@&$docdir&g | |
26982 | s&@infodir@&$infodir&g | |
26983 | s&@localedir@&$localedir&g | |
26984 | s&@mandir@&$mandir&g | |
bf89cb4d | 26985 | s&\\\${datarootdir}&$datarootdir&g' ;; |
ca81d7a0 | 26986 | esac |
c0d27fcc | 26987 | _ACEOF |
ca81d7a0 JD |
26988 | |
26989 | # Neutralize VPATH when `$srcdir' = `.'. | |
26990 | # Shell code in configure.ac might set extrasub. | |
26991 | # FIXME: do we really want to maintain this feature? | |
e9a63f04 GM |
26992 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
26993 | ac_sed_extra="$ac_vpsub | |
503d2be0 | 26994 | $extrasub |
c0d27fcc | 26995 | _ACEOF |
e9a63f04 | 26996 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
503d2be0 AS |
26997 | :t |
26998 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
e9a63f04 | 26999 | s|@configure_input@|$ac_sed_conf_input|;t t |
ca81d7a0 | 27000 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
e9a63f04 | 27001 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
ca81d7a0 JD |
27002 | s&@srcdir@&$ac_srcdir&;t t |
27003 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
27004 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
27005 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
27006 | s&@builddir@&$ac_builddir&;t t | |
27007 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
27008 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
27009 | s&@INSTALL@&$ac_INSTALL&;t t | |
27010 | $ac_datarootdir_hack | |
e9a63f04 GM |
27011 | " |
27012 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
bf89cb4d GM |
27013 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
27014 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
27015 | { (exit 1); exit 1; }; } | |
ca81d7a0 JD |
27016 | |
27017 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
27018 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
27019 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
bf89cb4d | 27020 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
ca81d7a0 | 27021 | which seems to be undefined. Please make sure it is defined." >&5 |
e9a63f04 | 27022 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
ca81d7a0 JD |
27023 | which seems to be undefined. Please make sure it is defined." >&2;} |
27024 | ||
27025 | rm -f "$tmp/stdin" | |
503d2be0 | 27026 | case $ac_file in |
e9a63f04 GM |
27027 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
27028 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
27029 | esac \ | |
bf89cb4d GM |
27030 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
27031 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
27032 | { (exit 1); exit 1; }; } | |
ca81d7a0 JD |
27033 | ;; |
27034 | :H) | |
27035 | # | |
27036 | # CONFIG_HEADER | |
27037 | # | |
503d2be0 | 27038 | if test x"$ac_file" != x-; then |
e9a63f04 GM |
27039 | { |
27040 | $as_echo "/* $configure_input */" \ | |
27041 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
27042 | } >"$tmp/config.h" \ | |
bf89cb4d GM |
27043 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
27044 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
27045 | { (exit 1); exit 1; }; } | |
e9a63f04 | 27046 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
bf89cb4d | 27047 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
e9a63f04 | 27048 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
503d2be0 | 27049 | else |
e9a63f04 GM |
27050 | rm -f "$ac_file" |
27051 | mv "$tmp/config.h" "$ac_file" \ | |
bf89cb4d GM |
27052 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
27053 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
27054 | { (exit 1); exit 1; }; } | |
ba4481b5 | 27055 | fi |
503d2be0 | 27056 | else |
e9a63f04 GM |
27057 | $as_echo "/* $configure_input */" \ |
27058 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
bf89cb4d GM |
27059 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
27060 | $as_echo "$as_me: error: could not create -" >&2;} | |
27061 | { (exit 1); exit 1; }; } | |
ba4481b5 | 27062 | fi |
ca81d7a0 | 27063 | ;; |
edfaf76d | 27064 | |
bf89cb4d | 27065 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
e9a63f04 | 27066 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
ca81d7a0 JD |
27067 | ;; |
27068 | esac | |
ba4481b5 | 27069 | |
c0d27fcc | 27070 | |
ca81d7a0 JD |
27071 | case $ac_file$ac_mode in |
27072 | "default":C) | |
ba4481b5 DL |
27073 | |
27074 | ### Make the necessary directories, if they don't exist. | |
27075 | for dir in etc lisp ; do | |
27076 | test -d ${dir} || mkdir ${dir} | |
27077 | done | |
27078 | ||
27079 | # Build src/Makefile from ${srcdir}/src/Makefile.c | |
27080 | # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
27081 | # This must be done after src/config.h is built, since we rely on that file. | |
27082 | ||
ba4481b5 | 27083 | echo creating src/epaths.h |
4aa6b955 | 27084 | ${MAKE-make} epaths-force |
ba4481b5 | 27085 | |
1c203d4c DL |
27086 | # As of 2000-11-19, newest development versions of GNU cpp preprocess |
27087 | # `..' to `. .' unless invoked with -traditional | |
27088 | ||
d0e9bfd2 | 27089 | if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
1c203d4c DL |
27090 | CPPFLAGS="$CPPFLAGS -traditional" |
27091 | fi | |
27092 | ||
ba4481b5 DL |
27093 | echo creating lib-src/Makefile |
27094 | ( cd lib-src | |
27095 | rm -f junk.c junk1.c junk2.c | |
27096 | sed -e '/start of cpp stuff/q' \ | |
27097 | < Makefile.c > junk1.c | |
27098 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 27099 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 27100 | < Makefile.c > junk.c |
91231421 | 27101 | $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
27102 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
27103 | cat junk1.c junk2.c > Makefile.new | |
27104 | rm -f junk.c junk1.c junk2.c | |
27105 | chmod 444 Makefile.new | |
27106 | mv -f Makefile.new Makefile | |
27107 | ) | |
27108 | ||
27109 | echo creating src/Makefile | |
27110 | ( cd src | |
27111 | rm -f junk.c junk1.c junk2.c | |
27112 | sed -e '/start of cpp stuff/q' \ | |
27113 | < Makefile.c > junk1.c | |
27114 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 27115 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 27116 | < Makefile.c > junk.c |
91231421 | 27117 | $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
27118 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
27119 | cat junk1.c junk2.c > Makefile.new | |
27120 | rm -f junk.c junk1.c junk2.c | |
27121 | chmod 444 Makefile.new | |
27122 | mv -f Makefile.new Makefile | |
27123 | ) | |
27124 | ||
503d2be0 | 27125 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
ba4481b5 | 27126 | echo creating src/.gdbinit |
503d2be0 | 27127 | echo source $srcdir/src/.gdbinit > src/.gdbinit |
ba4481b5 DL |
27128 | fi |
27129 | ||
503d2be0 | 27130 | ;; |
ca81d7a0 | 27131 | |
503d2be0 | 27132 | esac |
ca81d7a0 | 27133 | done # for ac_tag |
503d2be0 | 27134 | |
ba4481b5 | 27135 | |
bf89cb4d | 27136 | { (exit 0); exit 0; } |
c0d27fcc | 27137 | _ACEOF |
bf89cb4d | 27138 | chmod +x $CONFIG_STATUS |
503d2be0 AS |
27139 | ac_clean_files=$ac_clean_files_save |
27140 | ||
e9a63f04 | 27141 | test $ac_write_fail = 0 || |
bf89cb4d GM |
27142 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
27143 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
27144 | { (exit 1); exit 1; }; } | |
e9a63f04 | 27145 | |
c0d27fcc | 27146 | |
503d2be0 AS |
27147 | # configure is writing to config.log, and then calls config.status. |
27148 | # config.status does its own redirection, appending to config.log. | |
27149 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
27150 | # by configure, so config.status won't be able to write to it; its | |
27151 | # output is simply discarded. So we exec the FD to /dev/null, | |
27152 | # effectively closing config.log, so it can be properly (re)opened and | |
27153 | # appended to by config.status. When coming back to configure, we | |
27154 | # need to make the FD available again. | |
27155 | if test "$no_create" != yes; then | |
27156 | ac_cs_success=: | |
19650fd6 AS |
27157 | ac_config_status_args= |
27158 | test "$silent" = yes && | |
27159 | ac_config_status_args="$ac_config_status_args --quiet" | |
503d2be0 | 27160 | exec 5>/dev/null |
19650fd6 | 27161 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
503d2be0 AS |
27162 | exec 5>>config.log |
27163 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
27164 | # would make configure fail if this is the last instruction. | |
bf89cb4d | 27165 | $ac_cs_success || { (exit 1); exit 1; } |
503d2be0 | 27166 | fi |
e9a63f04 | 27167 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
bf89cb4d GM |
27168 | { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 |
27169 | $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} | |
e9a63f04 | 27170 | fi |
f5f47add | 27171 | |
c0d27fcc | 27172 |