]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
1d17c179 | 3 | # Generated by GNU Autoconf 2.61 for charybdis 3.0.0-alpha1. |
212380e3 | 4 | # |
b676ea3b | 5 | # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ |
212380e3 | 6 | # |
631ef239 AC |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
212380e3 AC |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
631ef239 AC |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
212380e3 AC |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 AC |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in | |
26 | *posix*) set -o posix ;; | |
27 | esac | |
28 | ||
29 | fi | |
30 | ||
31 | ||
32 | ||
33 | ||
34 | # PATH needs CR | |
35 | # Avoid depending upon Character Ranges. | |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39 | as_cr_digits='0123456789' | |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41 | ||
42 | # The user is always right. | |
43 | if test "${PATH_SEPARATOR+set}" != set; then | |
44 | echo "#! /bin/sh" >conf$$.sh | |
45 | echo "exit 0" >>conf$$.sh | |
46 | chmod +x conf$$.sh | |
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48 | PATH_SEPARATOR=';' | |
49 | else | |
50 | PATH_SEPARATOR=: | |
51 | fi | |
52 | rm -f conf$$.sh | |
212380e3 | 53 | fi |
212380e3 AC |
54 | |
55 | # Support unset when possible. | |
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
57 | as_unset=unset | |
58 | else | |
59 | as_unset=false | |
60 | fi | |
61 | ||
62 | ||
631ef239 AC |
63 | # IFS |
64 | # We need space, tab and new line, in precisely that order. Quoting is | |
65 | # there to prevent editors from complaining about space-tab. | |
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
67 | # splitting by setting IFS to empty value.) | |
68 | as_nl=' | |
69 | ' | |
70 | IFS=" "" $as_nl" | |
71 | ||
72 | # Find who we are. Look in the path if we contain no directory separator. | |
73 | case $0 in | |
74 | *[\\/]* ) as_myself=$0 ;; | |
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
76 | for as_dir in $PATH | |
77 | do | |
78 | IFS=$as_save_IFS | |
79 | test -z "$as_dir" && as_dir=. | |
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
81 | done | |
82 | IFS=$as_save_IFS | |
83 | ||
84 | ;; | |
85 | esac | |
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
87 | # in which case we are not to be found in the path. | |
88 | if test "x$as_myself" = x; then | |
89 | as_myself=$0 | |
90 | fi | |
91 | if test ! -f "$as_myself"; then | |
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
93 | { (exit 1); exit 1; } | |
94 | fi | |
95 | ||
212380e3 | 96 | # Work around bugs in pre-3.0 UWIN ksh. |
631ef239 AC |
97 | for as_var in ENV MAIL MAILPATH |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
99 | done | |
212380e3 AC |
100 | PS1='$ ' |
101 | PS2='> ' | |
102 | PS4='+ ' | |
103 | ||
104 | # NLS nuisances. | |
105 | for as_var in \ | |
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
108 | LC_TELEPHONE LC_TIME | |
109 | do | |
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
111 | eval $as_var=C; export $as_var | |
112 | else | |
631ef239 | 113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
212380e3 AC |
114 | fi |
115 | done | |
116 | ||
117 | # Required to use basename. | |
631ef239 AC |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
120 | as_expr=expr |
121 | else | |
122 | as_expr=false | |
123 | fi | |
124 | ||
631ef239 | 125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
126 | as_basename=basename |
127 | else | |
128 | as_basename=false | |
129 | fi | |
130 | ||
131 | ||
132 | # Name of the executable. | |
631ef239 | 133 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 137 | echo X/"$0" | |
631ef239 AC |
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
139 | s//\1/ | |
140 | q | |
141 | } | |
142 | /^X\/\(\/\/\)$/{ | |
143 | s//\1/ | |
144 | q | |
145 | } | |
146 | /^X\/\(\/\).*/{ | |
147 | s//\1/ | |
148 | q | |
149 | } | |
150 | s/.*/./; q'` | |
212380e3 | 151 | |
631ef239 AC |
152 | # CDPATH. |
153 | $as_unset CDPATH | |
212380e3 | 154 | |
212380e3 | 155 | |
631ef239 AC |
156 | if test "x$CONFIG_SHELL" = x; then |
157 | if (eval ":") 2>/dev/null; then | |
158 | as_have_required=yes | |
159 | else | |
160 | as_have_required=no | |
212380e3 AC |
161 | fi |
162 | ||
631ef239 AC |
163 | if test $as_have_required = yes && (eval ": |
164 | (as_func_return () { | |
165 | (exit \$1) | |
166 | } | |
167 | as_func_success () { | |
168 | as_func_return 0 | |
169 | } | |
170 | as_func_failure () { | |
171 | as_func_return 1 | |
172 | } | |
173 | as_func_ret_success () { | |
174 | return 0 | |
175 | } | |
176 | as_func_ret_failure () { | |
177 | return 1 | |
178 | } | |
212380e3 | 179 | |
631ef239 AC |
180 | exitcode=0 |
181 | if as_func_success; then | |
182 | : | |
183 | else | |
184 | exitcode=1 | |
185 | echo as_func_success failed. | |
186 | fi | |
212380e3 | 187 | |
631ef239 AC |
188 | if as_func_failure; then |
189 | exitcode=1 | |
190 | echo as_func_failure succeeded. | |
191 | fi | |
192 | ||
193 | if as_func_ret_success; then | |
194 | : | |
195 | else | |
196 | exitcode=1 | |
197 | echo as_func_ret_success failed. | |
198 | fi | |
199 | ||
200 | if as_func_ret_failure; then | |
201 | exitcode=1 | |
202 | echo as_func_ret_failure succeeded. | |
203 | fi | |
204 | ||
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
206 | : | |
207 | else | |
208 | exitcode=1 | |
209 | echo positional parameters were not saved. | |
210 | fi | |
211 | ||
212 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
213 | ||
214 | ( | |
215 | as_lineno_1=\$LINENO | |
216 | as_lineno_2=\$LINENO | |
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
219 | ") 2> /dev/null; then | |
220 | : | |
221 | else | |
222 | as_candidate_shells= | |
212380e3 AC |
223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
225 | do | |
226 | IFS=$as_save_IFS | |
227 | test -z "$as_dir" && as_dir=. | |
631ef239 | 228 | case $as_dir in |
212380e3 | 229 | /*) |
631ef239 AC |
230 | for as_base in sh bash ksh sh5; do |
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
232 | done;; | |
233 | esac | |
234 | done | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | for as_shell in $as_candidate_shells $SHELL; do | |
239 | # Try only shells that exist, to save several forks. | |
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
243 | emulate sh | |
244 | NULLCMD=: | |
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
246 | # is contrary to our usage. Disable this feature. | |
247 | alias -g '${1+"$@"}'='"$@"' | |
248 | setopt NO_GLOB_SUBST | |
249 | else | |
250 | case `(set -o) 2>/dev/null` in | |
251 | *posix*) set -o posix ;; | |
252 | esac | |
253 | ||
254 | fi | |
255 | ||
256 | ||
257 | : | |
258 | _ASEOF | |
259 | }; then | |
260 | CONFIG_SHELL=$as_shell | |
261 | as_have_required=yes | |
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
264 | emulate sh | |
265 | NULLCMD=: | |
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
267 | # is contrary to our usage. Disable this feature. | |
268 | alias -g '${1+"$@"}'='"$@"' | |
269 | setopt NO_GLOB_SUBST | |
270 | else | |
271 | case `(set -o) 2>/dev/null` in | |
272 | *posix*) set -o posix ;; | |
273 | esac | |
274 | ||
275 | fi | |
276 | ||
277 | ||
278 | : | |
279 | (as_func_return () { | |
280 | (exit $1) | |
281 | } | |
282 | as_func_success () { | |
283 | as_func_return 0 | |
284 | } | |
285 | as_func_failure () { | |
286 | as_func_return 1 | |
287 | } | |
288 | as_func_ret_success () { | |
289 | return 0 | |
290 | } | |
291 | as_func_ret_failure () { | |
292 | return 1 | |
293 | } | |
294 | ||
295 | exitcode=0 | |
296 | if as_func_success; then | |
297 | : | |
298 | else | |
299 | exitcode=1 | |
300 | echo as_func_success failed. | |
301 | fi | |
302 | ||
303 | if as_func_failure; then | |
304 | exitcode=1 | |
305 | echo as_func_failure succeeded. | |
306 | fi | |
307 | ||
308 | if as_func_ret_success; then | |
309 | : | |
310 | else | |
311 | exitcode=1 | |
312 | echo as_func_ret_success failed. | |
313 | fi | |
314 | ||
315 | if as_func_ret_failure; then | |
316 | exitcode=1 | |
317 | echo as_func_ret_failure succeeded. | |
318 | fi | |
319 | ||
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
321 | : | |
322 | else | |
323 | exitcode=1 | |
324 | echo positional parameters were not saved. | |
325 | fi | |
326 | ||
327 | test $exitcode = 0) || { (exit 1); exit 1; } | |
328 | ||
329 | ( | |
212380e3 AC |
330 | as_lineno_1=$LINENO |
331 | as_lineno_2=$LINENO | |
212380e3 | 332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
631ef239 AC |
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
334 | ||
335 | _ASEOF | |
336 | }; then | |
337 | break | |
338 | fi | |
339 | ||
340 | fi | |
341 | ||
342 | done | |
343 | ||
344 | if test "x$CONFIG_SHELL" != x; then | |
345 | for as_var in BASH_ENV ENV | |
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
347 | done | |
348 | export CONFIG_SHELL | |
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
350 | fi | |
351 | ||
352 | ||
353 | if test $as_have_required = no; then | |
354 | echo This script requires a shell more modern than all the | |
355 | echo shells that I found on your system. Please install a | |
356 | echo modern shell, or manually run the script under such a | |
357 | echo shell if you do have one. | |
358 | { (exit 1); exit 1; } | |
359 | fi | |
360 | ||
361 | ||
362 | fi | |
363 | ||
364 | fi | |
365 | ||
366 | ||
367 | ||
368 | (eval "as_func_return () { | |
369 | (exit \$1) | |
370 | } | |
371 | as_func_success () { | |
372 | as_func_return 0 | |
373 | } | |
374 | as_func_failure () { | |
375 | as_func_return 1 | |
376 | } | |
377 | as_func_ret_success () { | |
378 | return 0 | |
379 | } | |
380 | as_func_ret_failure () { | |
381 | return 1 | |
382 | } | |
383 | ||
384 | exitcode=0 | |
385 | if as_func_success; then | |
386 | : | |
387 | else | |
388 | exitcode=1 | |
389 | echo as_func_success failed. | |
390 | fi | |
391 | ||
392 | if as_func_failure; then | |
393 | exitcode=1 | |
394 | echo as_func_failure succeeded. | |
395 | fi | |
396 | ||
397 | if as_func_ret_success; then | |
398 | : | |
399 | else | |
400 | exitcode=1 | |
401 | echo as_func_ret_success failed. | |
402 | fi | |
403 | ||
404 | if as_func_ret_failure; then | |
405 | exitcode=1 | |
406 | echo as_func_ret_failure succeeded. | |
407 | fi | |
408 | ||
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
410 | : | |
411 | else | |
412 | exitcode=1 | |
413 | echo positional parameters were not saved. | |
414 | fi | |
415 | ||
416 | test \$exitcode = 0") || { | |
417 | echo No shell found that supports shell functions. | |
418 | echo Please tell autoconf@gnu.org about your system, | |
419 | echo including any error possibly output before this | |
420 | echo message | |
421 | } | |
422 | ||
423 | ||
424 | ||
425 | as_lineno_1=$LINENO | |
426 | as_lineno_2=$LINENO | |
427 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
212380e3 AC |
429 | |
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
431 | # uniformly replaced by the line number. The first 'sed' inserts a | |
631ef239 AC |
432 | # line-number line after each line using $LINENO; the second 'sed' |
433 | # does the real work. The second script uses 'N' to pair each | |
434 | # line-number line with the line containing $LINENO, and appends | |
435 | # trailing '-' during substitution so that $LINENO is not a special | |
436 | # case at line end. | |
212380e3 | 437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
631ef239 AC |
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
439 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
440 | sed -n ' | |
441 | p | |
442 | /[$]LINENO/= | |
443 | ' <$as_myself | | |
212380e3 | 444 | sed ' |
631ef239 AC |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno | |
447 | b | |
448 | :lineno | |
212380e3 | 449 | N |
631ef239 AC |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
212380e3 | 452 | t loop |
631ef239 | 453 | s/-\n.*// |
212380e3 | 454 | ' >$as_me.lineno && |
631ef239 | 455 | chmod +x "$as_me.lineno" || |
212380e3 AC |
456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
457 | { (exit 1); exit 1; }; } | |
458 | ||
459 | # Don't try to exec as it changes $[0], causing all sort of problems | |
460 | # (the dirname of $[0] is not the place where we might find the | |
631ef239 AC |
461 | # original and so on. Autoconf is especially sensitive to this). |
462 | . "./$as_me.lineno" | |
212380e3 AC |
463 | # Exit status is that of the last command. |
464 | exit | |
465 | } | |
466 | ||
467 | ||
631ef239 AC |
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
469 | as_dirname=dirname | |
470 | else | |
471 | as_dirname=false | |
472 | fi | |
473 | ||
474 | ECHO_C= ECHO_N= ECHO_T= | |
475 | case `echo -n x` in | |
476 | -n*) | |
477 | case `echo 'x\c'` in | |
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
479 | *) ECHO_C='\c';; | |
480 | esac;; | |
481 | *) | |
482 | ECHO_N='-n';; | |
212380e3 AC |
483 | esac |
484 | ||
631ef239 AC |
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
487 | as_expr=expr |
488 | else | |
489 | as_expr=false | |
490 | fi | |
491 | ||
492 | rm -f conf$$ conf$$.exe conf$$.file | |
631ef239 AC |
493 | if test -d conf$$.dir; then |
494 | rm -f conf$$.dir/conf$$.file | |
495 | else | |
496 | rm -f conf$$.dir | |
497 | mkdir conf$$.dir | |
498 | fi | |
212380e3 AC |
499 | echo >conf$$.file |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
631ef239 AC |
501 | as_ln_s='ln -s' |
502 | # ... but there are two gotchas: | |
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
505 | # In both cases, we have to default to `cp -p'. | |
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
212380e3 | 507 | as_ln_s='cp -p' |
212380e3 AC |
508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
509 | as_ln_s=ln | |
510 | else | |
511 | as_ln_s='cp -p' | |
512 | fi | |
631ef239 AC |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 | rmdir conf$$.dir 2>/dev/null | |
212380e3 AC |
515 | |
516 | if mkdir -p . 2>/dev/null; then | |
517 | as_mkdir_p=: | |
518 | else | |
519 | test -d ./-p && rmdir ./-p | |
520 | as_mkdir_p=false | |
521 | fi | |
522 | ||
631ef239 AC |
523 | if test -x / >/dev/null 2>&1; then |
524 | as_test_x='test -x' | |
525 | else | |
526 | if ls -dL / >/dev/null 2>&1; then | |
527 | as_ls_L_option=L | |
528 | else | |
529 | as_ls_L_option= | |
530 | fi | |
531 | as_test_x=' | |
532 | eval sh -c '\'' | |
533 | if test -d "$1"; then | |
534 | test -d "$1/."; | |
535 | else | |
536 | case $1 in | |
537 | -*)set "./$1";; | |
538 | esac; | |
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
540 | ???[sx]*):;;*)false;;esac;fi | |
541 | '\'' sh | |
542 | ' | |
543 | fi | |
544 | as_executable_p=$as_test_x | |
212380e3 AC |
545 | |
546 | # Sed expression to map a string onto a valid CPP name. | |
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
548 | ||
549 | # Sed expression to map a string onto a valid variable name. | |
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
551 | ||
552 | ||
212380e3 | 553 | |
631ef239 | 554 | exec 7<&0 </dev/null 6>&1 |
212380e3 AC |
555 | |
556 | # Name of the host. | |
557 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
558 | # so uname gets run too. | |
559 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
560 | ||
212380e3 AC |
561 | # |
562 | # Initializations. | |
563 | # | |
564 | ac_default_prefix=/usr/local | |
631ef239 | 565 | ac_clean_files= |
212380e3 | 566 | ac_config_libobj_dir=. |
631ef239 | 567 | LIBOBJS= |
212380e3 AC |
568 | cross_compiling=no |
569 | subdirs= | |
570 | MFLAGS= | |
571 | MAKEFLAGS= | |
572 | SHELL=${CONFIG_SHELL-/bin/sh} | |
573 | ||
212380e3 AC |
574 | # Identity of this package. |
575 | PACKAGE_NAME='charybdis' | |
576 | PACKAGE_TARNAME='charybdis' | |
1d17c179 AC |
577 | PACKAGE_VERSION='3.0.0-alpha1' |
578 | PACKAGE_STRING='charybdis 3.0.0-alpha1' | |
212380e3 AC |
579 | PACKAGE_BUGREPORT='' |
580 | ||
581 | ac_default_prefix=$HOME/ircd | |
582 | # Factoring default headers for most tests. | |
583 | ac_includes_default="\ | |
584 | #include <stdio.h> | |
631ef239 | 585 | #ifdef HAVE_SYS_TYPES_H |
212380e3 AC |
586 | # include <sys/types.h> |
587 | #endif | |
631ef239 | 588 | #ifdef HAVE_SYS_STAT_H |
212380e3 AC |
589 | # include <sys/stat.h> |
590 | #endif | |
631ef239 | 591 | #ifdef STDC_HEADERS |
212380e3 AC |
592 | # include <stdlib.h> |
593 | # include <stddef.h> | |
594 | #else | |
631ef239 | 595 | # ifdef HAVE_STDLIB_H |
212380e3 AC |
596 | # include <stdlib.h> |
597 | # endif | |
598 | #endif | |
631ef239 AC |
599 | #ifdef HAVE_STRING_H |
600 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
212380e3 AC |
601 | # include <memory.h> |
602 | # endif | |
603 | # include <string.h> | |
604 | #endif | |
631ef239 | 605 | #ifdef HAVE_STRINGS_H |
212380e3 AC |
606 | # include <strings.h> |
607 | #endif | |
631ef239 | 608 | #ifdef HAVE_INTTYPES_H |
212380e3 | 609 | # include <inttypes.h> |
212380e3 | 610 | #endif |
631ef239 AC |
611 | #ifdef HAVE_STDINT_H |
612 | # include <stdint.h> | |
613 | #endif | |
614 | #ifdef HAVE_UNISTD_H | |
212380e3 AC |
615 | # include <unistd.h> |
616 | #endif" | |
617 | ||
631ef239 AC |
618 | ac_subst_vars='SHELL |
619 | PATH_SEPARATOR | |
620 | PACKAGE_NAME | |
621 | PACKAGE_TARNAME | |
622 | PACKAGE_VERSION | |
623 | PACKAGE_STRING | |
624 | PACKAGE_BUGREPORT | |
625 | exec_prefix | |
626 | prefix | |
627 | program_transform_name | |
628 | bindir | |
629 | sbindir | |
630 | libexecdir | |
631 | datarootdir | |
632 | datadir | |
633 | sysconfdir | |
634 | sharedstatedir | |
635 | localstatedir | |
636 | includedir | |
637 | oldincludedir | |
638 | docdir | |
639 | infodir | |
640 | htmldir | |
641 | dvidir | |
642 | pdfdir | |
643 | psdir | |
644 | libdir | |
645 | localedir | |
646 | mandir | |
647 | DEFS | |
648 | ECHO_C | |
649 | ECHO_N | |
650 | ECHO_T | |
651 | LIBS | |
652 | build_alias | |
653 | host_alias | |
654 | target_alias | |
655 | CC | |
656 | CFLAGS | |
657 | LDFLAGS | |
658 | CPPFLAGS | |
659 | ac_ct_CC | |
660 | EXEEXT | |
661 | OBJEXT | |
b676ea3b | 662 | subdirs |
631ef239 AC |
663 | MKDEP |
664 | MAKEDEPEND | |
665 | STDOUT | |
666 | CPP | |
667 | GREP | |
668 | EGREP | |
669 | SET_MAKE | |
670 | INSTALL_PROGRAM | |
671 | INSTALL_SCRIPT | |
672 | INSTALL_DATA | |
673 | RM | |
674 | CP | |
675 | MV | |
676 | LN | |
677 | SED | |
678 | AR | |
679 | LD | |
680 | RANLIB | |
681 | TOUCH | |
682 | YACC | |
683 | YFLAGS | |
684 | LEX | |
685 | LEX_OUTPUT_ROOT | |
686 | LEXLIB | |
687 | CRYPT_LIB | |
688 | VICONF | |
689 | ALLOCA | |
690 | ENCSPEED | |
691 | ZLIB_LD | |
692 | ETC_DIR | |
693 | confdir | |
694 | LOG_DIR | |
695 | logdir | |
696 | HELP_DIR | |
697 | helpdir | |
698 | MODULE_DIR | |
699 | moduledir | |
700 | SELECT_TYPE | |
631ef239 AC |
701 | MODULES_LIBS |
702 | MOD_TARGET | |
703 | SSL_SRCS_ENABLE | |
704 | SSL_INCLUDES | |
705 | SSL_LIBS | |
706 | PICFLAGS | |
707 | IRC_CFLAGS | |
708 | SEDOBJ | |
709 | LIBOBJS | |
710 | LTLIBOBJS' | |
212380e3 | 711 | ac_subst_files='' |
631ef239 AC |
712 | ac_precious_vars='build_alias |
713 | host_alias | |
714 | target_alias | |
715 | CC | |
716 | CFLAGS | |
717 | LDFLAGS | |
718 | LIBS | |
719 | CPPFLAGS | |
720 | CPP | |
721 | YACC | |
722 | YFLAGS' | |
b676ea3b | 723 | ac_subdirs_all='libratbox' |
212380e3 AC |
724 | |
725 | # Initialize some variables set by options. | |
726 | ac_init_help= | |
727 | ac_init_version=false | |
728 | # The variables have the same names as the options, with | |
729 | # dashes changed to underlines. | |
730 | cache_file=/dev/null | |
731 | exec_prefix=NONE | |
732 | no_create= | |
733 | no_recursion= | |
734 | prefix=NONE | |
735 | program_prefix=NONE | |
736 | program_suffix=NONE | |
737 | program_transform_name=s,x,x, | |
738 | silent= | |
739 | site= | |
740 | srcdir= | |
741 | verbose= | |
742 | x_includes=NONE | |
743 | x_libraries=NONE | |
744 | ||
745 | # Installation directory options. | |
746 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
747 | # and all the variables that are supposed to be based on exec_prefix | |
748 | # by default will actually change. | |
749 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 750 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 AC |
751 | bindir='${exec_prefix}/bin' |
752 | sbindir='${exec_prefix}/sbin' | |
753 | libexecdir='${exec_prefix}/libexec' | |
631ef239 AC |
754 | datarootdir='${prefix}/share' |
755 | datadir='${datarootdir}' | |
212380e3 AC |
756 | sysconfdir='${prefix}/etc' |
757 | sharedstatedir='${prefix}/com' | |
758 | localstatedir='${prefix}/var' | |
212380e3 AC |
759 | includedir='${prefix}/include' |
760 | oldincludedir='/usr/include' | |
631ef239 AC |
761 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
762 | infodir='${datarootdir}/info' | |
763 | htmldir='${docdir}' | |
764 | dvidir='${docdir}' | |
765 | pdfdir='${docdir}' | |
766 | psdir='${docdir}' | |
767 | libdir='${exec_prefix}/lib' | |
768 | localedir='${datarootdir}/locale' | |
769 | mandir='${datarootdir}/man' | |
212380e3 AC |
770 | |
771 | ac_prev= | |
631ef239 | 772 | ac_dashdash= |
212380e3 AC |
773 | for ac_option |
774 | do | |
775 | # If the previous option needs an argument, assign it. | |
776 | if test -n "$ac_prev"; then | |
631ef239 | 777 | eval $ac_prev=\$ac_option |
212380e3 AC |
778 | ac_prev= |
779 | continue | |
780 | fi | |
781 | ||
631ef239 AC |
782 | case $ac_option in |
783 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
784 | *) ac_optarg=yes ;; | |
785 | esac | |
212380e3 AC |
786 | |
787 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
788 | ||
631ef239 AC |
789 | case $ac_dashdash$ac_option in |
790 | --) | |
791 | ac_dashdash=yes ;; | |
212380e3 AC |
792 | |
793 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
794 | ac_prev=bindir ;; | |
795 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
796 | bindir=$ac_optarg ;; | |
797 | ||
798 | -build | --build | --buil | --bui | --bu) | |
799 | ac_prev=build_alias ;; | |
800 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
801 | build_alias=$ac_optarg ;; | |
802 | ||
803 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
804 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
805 | ac_prev=cache_file ;; | |
806 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
807 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
808 | cache_file=$ac_optarg ;; | |
809 | ||
810 | --config-cache | -C) | |
811 | cache_file=config.cache ;; | |
812 | ||
631ef239 | 813 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 814 | ac_prev=datadir ;; |
631ef239 | 815 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 AC |
816 | datadir=$ac_optarg ;; |
817 | ||
631ef239 AC |
818 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
819 | | --dataroo | --dataro | --datar) | |
820 | ac_prev=datarootdir ;; | |
821 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
822 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
823 | datarootdir=$ac_optarg ;; | |
824 | ||
212380e3 AC |
825 | -disable-* | --disable-*) |
826 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
827 | # Reject names that are not valid shell variable names. | |
631ef239 | 828 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
829 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
830 | { (exit 1); exit 1; }; } | |
631ef239 AC |
831 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
832 | eval enable_$ac_feature=no ;; | |
833 | ||
834 | -docdir | --docdir | --docdi | --doc | --do) | |
835 | ac_prev=docdir ;; | |
836 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
837 | docdir=$ac_optarg ;; | |
838 | ||
839 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
840 | ac_prev=dvidir ;; | |
841 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
842 | dvidir=$ac_optarg ;; | |
212380e3 AC |
843 | |
844 | -enable-* | --enable-*) | |
845 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
846 | # Reject names that are not valid shell variable names. | |
631ef239 | 847 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
848 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
849 | { (exit 1); exit 1; }; } | |
631ef239 AC |
850 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
851 | eval enable_$ac_feature=\$ac_optarg ;; | |
212380e3 AC |
852 | |
853 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
854 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
855 | | --exec | --exe | --ex) | |
856 | ac_prev=exec_prefix ;; | |
857 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
858 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
859 | | --exec=* | --exe=* | --ex=*) | |
860 | exec_prefix=$ac_optarg ;; | |
861 | ||
862 | -gas | --gas | --ga | --g) | |
863 | # Obsolete; use --with-gas. | |
864 | with_gas=yes ;; | |
865 | ||
866 | -help | --help | --hel | --he | -h) | |
867 | ac_init_help=long ;; | |
868 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
869 | ac_init_help=recursive ;; | |
870 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
871 | ac_init_help=short ;; | |
872 | ||
873 | -host | --host | --hos | --ho) | |
874 | ac_prev=host_alias ;; | |
875 | -host=* | --host=* | --hos=* | --ho=*) | |
876 | host_alias=$ac_optarg ;; | |
877 | ||
631ef239 AC |
878 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
879 | ac_prev=htmldir ;; | |
880 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
881 | | --ht=*) | |
882 | htmldir=$ac_optarg ;; | |
883 | ||
212380e3 AC |
884 | -includedir | --includedir | --includedi | --included | --include \ |
885 | | --includ | --inclu | --incl | --inc) | |
886 | ac_prev=includedir ;; | |
887 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
888 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
889 | includedir=$ac_optarg ;; | |
890 | ||
891 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
892 | ac_prev=infodir ;; | |
893 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
894 | infodir=$ac_optarg ;; | |
895 | ||
896 | -libdir | --libdir | --libdi | --libd) | |
897 | ac_prev=libdir ;; | |
898 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
899 | libdir=$ac_optarg ;; | |
900 | ||
901 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
902 | | --libexe | --libex | --libe) | |
903 | ac_prev=libexecdir ;; | |
904 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
905 | | --libexe=* | --libex=* | --libe=*) | |
906 | libexecdir=$ac_optarg ;; | |
907 | ||
631ef239 AC |
908 | -localedir | --localedir | --localedi | --localed | --locale) |
909 | ac_prev=localedir ;; | |
910 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
911 | localedir=$ac_optarg ;; | |
912 | ||
212380e3 | 913 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 914 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 AC |
915 | ac_prev=localstatedir ;; |
916 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 917 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 AC |
918 | localstatedir=$ac_optarg ;; |
919 | ||
920 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
921 | ac_prev=mandir ;; | |
922 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
923 | mandir=$ac_optarg ;; | |
924 | ||
925 | -nfp | --nfp | --nf) | |
926 | # Obsolete; use --without-fp. | |
927 | with_fp=no ;; | |
928 | ||
929 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
930 | | --no-cr | --no-c | -n) | |
931 | no_create=yes ;; | |
932 | ||
933 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
934 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
935 | no_recursion=yes ;; | |
936 | ||
937 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
938 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
939 | | --oldin | --oldi | --old | --ol | --o) | |
940 | ac_prev=oldincludedir ;; | |
941 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
942 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
943 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
944 | oldincludedir=$ac_optarg ;; | |
945 | ||
946 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
947 | ac_prev=prefix ;; | |
948 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
949 | prefix=$ac_optarg ;; | |
950 | ||
951 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
952 | | --program-pre | --program-pr | --program-p) | |
953 | ac_prev=program_prefix ;; | |
954 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
955 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
956 | program_prefix=$ac_optarg ;; | |
957 | ||
958 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
959 | | --program-suf | --program-su | --program-s) | |
960 | ac_prev=program_suffix ;; | |
961 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
962 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
963 | program_suffix=$ac_optarg ;; | |
964 | ||
965 | -program-transform-name | --program-transform-name \ | |
966 | | --program-transform-nam | --program-transform-na \ | |
967 | | --program-transform-n | --program-transform- \ | |
968 | | --program-transform | --program-transfor \ | |
969 | | --program-transfo | --program-transf \ | |
970 | | --program-trans | --program-tran \ | |
971 | | --progr-tra | --program-tr | --program-t) | |
972 | ac_prev=program_transform_name ;; | |
973 | -program-transform-name=* | --program-transform-name=* \ | |
974 | | --program-transform-nam=* | --program-transform-na=* \ | |
975 | | --program-transform-n=* | --program-transform-=* \ | |
976 | | --program-transform=* | --program-transfor=* \ | |
977 | | --program-transfo=* | --program-transf=* \ | |
978 | | --program-trans=* | --program-tran=* \ | |
979 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
980 | program_transform_name=$ac_optarg ;; | |
981 | ||
631ef239 AC |
982 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
983 | ac_prev=pdfdir ;; | |
984 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
985 | pdfdir=$ac_optarg ;; | |
986 | ||
987 | -psdir | --psdir | --psdi | --psd | --ps) | |
988 | ac_prev=psdir ;; | |
989 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
990 | psdir=$ac_optarg ;; | |
991 | ||
212380e3 AC |
992 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
993 | | -silent | --silent | --silen | --sile | --sil) | |
994 | silent=yes ;; | |
995 | ||
996 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
997 | ac_prev=sbindir ;; | |
998 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
999 | | --sbi=* | --sb=*) | |
1000 | sbindir=$ac_optarg ;; | |
1001 | ||
1002 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1003 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1004 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1005 | | --sha | --sh) | |
1006 | ac_prev=sharedstatedir ;; | |
1007 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1008 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1009 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1010 | | --sha=* | --sh=*) | |
1011 | sharedstatedir=$ac_optarg ;; | |
1012 | ||
1013 | -site | --site | --sit) | |
1014 | ac_prev=site ;; | |
1015 | -site=* | --site=* | --sit=*) | |
1016 | site=$ac_optarg ;; | |
1017 | ||
1018 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1019 | ac_prev=srcdir ;; | |
1020 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1021 | srcdir=$ac_optarg ;; | |
1022 | ||
1023 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1024 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1025 | ac_prev=sysconfdir ;; | |
1026 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1027 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1028 | sysconfdir=$ac_optarg ;; | |
1029 | ||
1030 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1031 | ac_prev=target_alias ;; | |
1032 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1033 | target_alias=$ac_optarg ;; | |
1034 | ||
1035 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1036 | verbose=yes ;; | |
1037 | ||
1038 | -version | --version | --versio | --versi | --vers | -V) | |
1039 | ac_init_version=: ;; | |
1040 | ||
1041 | -with-* | --with-*) | |
1042 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1043 | # Reject names that are not valid shell variable names. | |
631ef239 | 1044 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
1045 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1046 | { (exit 1); exit 1; }; } | |
631ef239 AC |
1047 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1048 | eval with_$ac_package=\$ac_optarg ;; | |
212380e3 AC |
1049 | |
1050 | -without-* | --without-*) | |
1051 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1052 | # Reject names that are not valid shell variable names. | |
631ef239 | 1053 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
1054 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1055 | { (exit 1); exit 1; }; } | |
631ef239 AC |
1056 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1057 | eval with_$ac_package=no ;; | |
212380e3 AC |
1058 | |
1059 | --x) | |
1060 | # Obsolete; use --with-x. | |
1061 | with_x=yes ;; | |
1062 | ||
1063 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1064 | | --x-incl | --x-inc | --x-in | --x-i) | |
1065 | ac_prev=x_includes ;; | |
1066 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1067 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1068 | x_includes=$ac_optarg ;; | |
1069 | ||
1070 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1071 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1072 | ac_prev=x_libraries ;; | |
1073 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1074 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1075 | x_libraries=$ac_optarg ;; | |
1076 | ||
1077 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1078 | Try \`$0 --help' for more information." >&2 | |
1079 | { (exit 1); exit 1; }; } | |
1080 | ;; | |
1081 | ||
1082 | *=*) | |
1083 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1084 | # Reject names that are not valid shell variable names. | |
1085 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1086 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1087 | { (exit 1); exit 1; }; } | |
631ef239 | 1088 | eval $ac_envvar=\$ac_optarg |
212380e3 AC |
1089 | export $ac_envvar ;; |
1090 | ||
1091 | *) | |
1092 | # FIXME: should be removed in autoconf 3.0. | |
1093 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1094 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1095 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1096 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1097 | ;; | |
1098 | ||
1099 | esac | |
1100 | done | |
1101 | ||
1102 | if test -n "$ac_prev"; then | |
1103 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1104 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1105 | { (exit 1); exit 1; }; } | |
1106 | fi | |
1107 | ||
631ef239 AC |
1108 | # Be sure to have absolute directory names. |
1109 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1110 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1111 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1112 | libdir localedir mandir | |
212380e3 | 1113 | do |
631ef239 | 1114 | eval ac_val=\$$ac_var |
212380e3 | 1115 | case $ac_val in |
631ef239 AC |
1116 | [\\/$]* | ?:[\\/]* ) continue;; |
1117 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1118 | esac |
631ef239 AC |
1119 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1120 | { (exit 1); exit 1; }; } | |
212380e3 AC |
1121 | done |
1122 | ||
1123 | # There might be people who depend on the old broken behavior: `$host' | |
1124 | # used to hold the argument of --host etc. | |
1125 | # FIXME: To remove some day. | |
1126 | build=$build_alias | |
1127 | host=$host_alias | |
1128 | target=$target_alias | |
1129 | ||
1130 | # FIXME: To remove some day. | |
1131 | if test "x$host_alias" != x; then | |
1132 | if test "x$build_alias" = x; then | |
1133 | cross_compiling=maybe | |
1134 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1135 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1136 | elif test "x$build_alias" != "x$host_alias"; then | |
1137 | cross_compiling=yes | |
1138 | fi | |
1139 | fi | |
1140 | ||
1141 | ac_tool_prefix= | |
1142 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1143 | ||
1144 | test "$silent" = yes && exec 6>/dev/null | |
1145 | ||
1146 | ||
631ef239 AC |
1147 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1148 | ac_ls_di=`ls -di .` && | |
1149 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1150 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1151 | { (exit 1); exit 1; }; } | |
1152 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1153 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1154 | { (exit 1); exit 1; }; } | |
1155 | ||
1156 | ||
1157 | # Find the source files, if location was not specified. | |
1158 | if test -z "$srcdir"; then | |
212380e3 | 1159 | ac_srcdir_defaulted=yes |
631ef239 AC |
1160 | # Try the directory containing this script, then the parent directory. |
1161 | ac_confdir=`$as_dirname -- "$0" || | |
212380e3 AC |
1162 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1163 | X"$0" : 'X\(//\)[^/]' \| \ | |
1164 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 1165 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 1166 | echo X"$0" | |
631ef239 AC |
1167 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1168 | s//\1/ | |
1169 | q | |
1170 | } | |
1171 | /^X\(\/\/\)[^/].*/{ | |
1172 | s//\1/ | |
1173 | q | |
1174 | } | |
1175 | /^X\(\/\/\)$/{ | |
1176 | s//\1/ | |
1177 | q | |
1178 | } | |
1179 | /^X\(\/\).*/{ | |
1180 | s//\1/ | |
1181 | q | |
1182 | } | |
1183 | s/.*/./; q'` | |
212380e3 | 1184 | srcdir=$ac_confdir |
631ef239 | 1185 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 AC |
1186 | srcdir=.. |
1187 | fi | |
1188 | else | |
1189 | ac_srcdir_defaulted=no | |
1190 | fi | |
631ef239 AC |
1191 | if test ! -r "$srcdir/$ac_unique_file"; then |
1192 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1193 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
212380e3 | 1194 | { (exit 1); exit 1; }; } |
212380e3 | 1195 | fi |
631ef239 AC |
1196 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1197 | ac_abs_confdir=`( | |
1198 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
212380e3 | 1199 | { (exit 1); exit 1; }; } |
631ef239 AC |
1200 | pwd)` |
1201 | # When building in place, set srcdir=. | |
1202 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1203 | srcdir=. | |
1204 | fi | |
1205 | # Remove unnecessary trailing slashes from srcdir. | |
1206 | # Double slashes in file names in object file debugging info | |
1207 | # mess up M-x gdb in Emacs. | |
1208 | case $srcdir in | |
1209 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1210 | esac | |
1211 | for ac_var in $ac_precious_vars; do | |
1212 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1213 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1214 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1215 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1216 | done | |
212380e3 AC |
1217 | |
1218 | # | |
1219 | # Report the --help message. | |
1220 | # | |
1221 | if test "$ac_init_help" = "long"; then | |
1222 | # Omit some internal or obsolete options to make the list less imposing. | |
1223 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1224 | cat <<_ACEOF | |
1d17c179 | 1225 | \`configure' configures charybdis 3.0.0-alpha1 to adapt to many kinds of systems. |
212380e3 AC |
1226 | |
1227 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1228 | ||
1229 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1230 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1231 | ||
1232 | Defaults for the options are specified in brackets. | |
1233 | ||
1234 | Configuration: | |
1235 | -h, --help display this help and exit | |
1236 | --help=short display options specific to this package | |
1237 | --help=recursive display the short help of all the included packages | |
1238 | -V, --version display version information and exit | |
1239 | -q, --quiet, --silent do not print \`checking...' messages | |
1240 | --cache-file=FILE cache test results in FILE [disabled] | |
1241 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1242 | -n, --no-create do not create output files | |
1243 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1244 | ||
212380e3 AC |
1245 | Installation directories: |
1246 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1247 | [$ac_default_prefix] | |
1248 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1249 | [PREFIX] | |
1250 | ||
1251 | By default, \`make install' will install all the files in | |
1252 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1253 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1254 | for instance \`--prefix=\$HOME'. | |
1255 | ||
1256 | For better control, use the options below. | |
1257 | ||
1258 | Fine tuning of the installation directories: | |
1259 | --bindir=DIR user executables [EPREFIX/bin] | |
1260 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1261 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
212380e3 AC |
1262 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1263 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1264 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1265 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1266 | --includedir=DIR C header files [PREFIX/include] | |
1267 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
631ef239 AC |
1268 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1269 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1270 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1271 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1272 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1273 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1274 | --htmldir=DIR html documentation [DOCDIR] | |
1275 | --dvidir=DIR dvi documentation [DOCDIR] | |
1276 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1277 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 AC |
1278 | _ACEOF |
1279 | ||
1280 | cat <<\_ACEOF | |
1281 | _ACEOF | |
1282 | fi | |
1283 | ||
1284 | if test -n "$ac_init_help"; then | |
1285 | case $ac_init_help in | |
1d17c179 | 1286 | short | recursive ) echo "Configuration of charybdis 3.0.0-alpha1:";; |
212380e3 AC |
1287 | esac |
1288 | cat <<\_ACEOF | |
1289 | ||
1290 | Optional Features: | |
1291 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1292 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1293 | --enable-ipv6 Enable IPv6 support | |
631ef239 | 1294 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 AC |
1295 | --disable-openssl Disable OpenSSL support. |
1296 | --disable-zlib Disable ziplinks support | |
c1c5fdc4 | 1297 | --enable-ports Force solaris I/O ports subsystem usage. |
212380e3 AC |
1298 | --enable-poll Force poll() usage. |
1299 | --enable-select Force select() usage. | |
1300 | --enable-kqueue Force kqueue() usage. | |
212380e3 AC |
1301 | --enable-epoll Force sys_epoll usage (Linux only). |
1302 | --enable-assert Enable assert(). Choose between soft(warnings) and | |
1303 | hard(aborts the daemon) | |
1304 | --enable-iodebug Enable IO Debugging hooks | |
1305 | --enable-profile Enable profiling | |
1306 | --disable-balloc Disable the block allocator. | |
212380e3 | 1307 | --enable-small-net Enable small network support. |
212380e3 AC |
1308 | --enable-warnings Enable all sorts of warnings for debugging. |
1309 | ||
1310 | Optional Packages: | |
1311 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1312 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1313 | --with-zlib-path=DIR Path to libz.so for ziplinks support. | |
1314 | --with-confdir=DIR Directory to install config files. | |
1315 | --with-logdir=DIR Directory where to write logfiles. | |
1316 | --with-helpdir=DIR Directory to install help files. | |
1317 | --with-moduledir=DIR Directory to install modules. | |
1318 | --with-nicklen=LENGTH Set the nick length to LENGTH (default 15, max 50) | |
1319 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max | |
1320 | 390) | |
212380e3 AC |
1321 | |
1322 | Some influential environment variables: | |
1323 | CC C compiler command | |
1324 | CFLAGS C compiler flags | |
1325 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1326 | nonstandard directory <lib dir> | |
631ef239 AC |
1327 | LIBS libraries to pass to the linker, e.g. -l<library> |
1328 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1329 | you have headers in a nonstandard directory <include dir> | |
212380e3 | 1330 | CPP C preprocessor |
631ef239 AC |
1331 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1332 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1333 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1334 | This script will default YFLAGS to the empty string to avoid a | |
1335 | default value of `-d' given by some make applications. | |
212380e3 AC |
1336 | |
1337 | Use these variables to override the choices made by `configure' or to help | |
1338 | it to find libraries and programs with nonstandard names/locations. | |
1339 | ||
1340 | _ACEOF | |
631ef239 | 1341 | ac_status=$? |
212380e3 AC |
1342 | fi |
1343 | ||
1344 | if test "$ac_init_help" = "recursive"; then | |
1345 | # If there are subdirs, report their specific --help. | |
212380e3 | 1346 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
631ef239 | 1347 | test -d "$ac_dir" || continue |
212380e3 AC |
1348 | ac_builddir=. |
1349 | ||
631ef239 AC |
1350 | case "$ac_dir" in |
1351 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1352 | *) | |
212380e3 | 1353 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
631ef239 AC |
1354 | # A ".." for each directory in $ac_dir_suffix. |
1355 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1356 | case $ac_top_builddir_sub in | |
1357 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1358 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1359 | esac ;; | |
1360 | esac | |
1361 | ac_abs_top_builddir=$ac_pwd | |
1362 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1363 | # for backward compatibility: | |
1364 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
1365 | |
1366 | case $srcdir in | |
631ef239 | 1367 | .) # We are building in place. |
212380e3 | 1368 | ac_srcdir=. |
631ef239 AC |
1369 | ac_top_srcdir=$ac_top_builddir_sub |
1370 | ac_abs_top_srcdir=$ac_pwd ;; | |
1371 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 1372 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
1373 | ac_top_srcdir=$srcdir |
1374 | ac_abs_top_srcdir=$srcdir ;; | |
1375 | *) # Relative name. | |
1376 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1377 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1378 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 1379 | esac |
631ef239 AC |
1380 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1381 | ||
1382 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1383 | # Check for guested configure. | |
1384 | if test -f "$ac_srcdir/configure.gnu"; then | |
1385 | echo && | |
1386 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1387 | elif test -f "$ac_srcdir/configure"; then | |
1388 | echo && | |
1389 | $SHELL "$ac_srcdir/configure" --help=recursive | |
212380e3 AC |
1390 | else |
1391 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
631ef239 AC |
1392 | fi || ac_status=$? |
1393 | cd "$ac_pwd" || { ac_status=$?; break; } | |
212380e3 AC |
1394 | done |
1395 | fi | |
1396 | ||
631ef239 | 1397 | test -n "$ac_init_help" && exit $ac_status |
212380e3 AC |
1398 | if $ac_init_version; then |
1399 | cat <<\_ACEOF | |
1d17c179 | 1400 | charybdis configure 3.0.0-alpha1 |
631ef239 | 1401 | generated by GNU Autoconf 2.61 |
212380e3 | 1402 | |
631ef239 AC |
1403 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1404 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
212380e3 AC |
1405 | This configure script is free software; the Free Software Foundation |
1406 | gives unlimited permission to copy, distribute and modify it. | |
1407 | ||
b676ea3b | 1408 | $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ |
212380e3 | 1409 | _ACEOF |
631ef239 | 1410 | exit |
212380e3 | 1411 | fi |
631ef239 | 1412 | cat >config.log <<_ACEOF |
212380e3 AC |
1413 | This file contains any messages produced by compilers while |
1414 | running configure, to aid debugging if configure makes a mistake. | |
1415 | ||
1d17c179 | 1416 | It was created by charybdis $as_me 3.0.0-alpha1, which was |
631ef239 | 1417 | generated by GNU Autoconf 2.61. Invocation command line was |
212380e3 AC |
1418 | |
1419 | $ $0 $@ | |
1420 | ||
1421 | _ACEOF | |
631ef239 | 1422 | exec 5>>config.log |
212380e3 AC |
1423 | { |
1424 | cat <<_ASUNAME | |
1425 | ## --------- ## | |
1426 | ## Platform. ## | |
1427 | ## --------- ## | |
1428 | ||
1429 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1430 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1431 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1432 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1433 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1434 | ||
1435 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1436 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1437 | ||
1438 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1439 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1440 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
631ef239 | 1441 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
212380e3 AC |
1442 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1443 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1444 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1445 | ||
1446 | _ASUNAME | |
1447 | ||
1448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1449 | for as_dir in $PATH | |
1450 | do | |
1451 | IFS=$as_save_IFS | |
1452 | test -z "$as_dir" && as_dir=. | |
1453 | echo "PATH: $as_dir" | |
1454 | done | |
631ef239 | 1455 | IFS=$as_save_IFS |
212380e3 AC |
1456 | |
1457 | } >&5 | |
1458 | ||
1459 | cat >&5 <<_ACEOF | |
1460 | ||
1461 | ||
1462 | ## ----------- ## | |
1463 | ## Core tests. ## | |
1464 | ## ----------- ## | |
1465 | ||
1466 | _ACEOF | |
1467 | ||
1468 | ||
1469 | # Keep a trace of the command line. | |
1470 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1471 | # Strip out --silent because we don't want to record it for future runs. | |
1472 | # Also quote any args containing shell meta-characters. | |
1473 | # Make two passes to allow for proper duplicate-argument suppression. | |
1474 | ac_configure_args= | |
1475 | ac_configure_args0= | |
1476 | ac_configure_args1= | |
212380e3 AC |
1477 | ac_must_keep_next=false |
1478 | for ac_pass in 1 2 | |
1479 | do | |
1480 | for ac_arg | |
1481 | do | |
1482 | case $ac_arg in | |
1483 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1484 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1485 | | -silent | --silent | --silen | --sile | --sil) | |
1486 | continue ;; | |
631ef239 | 1487 | *\'*) |
212380e3 AC |
1488 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1489 | esac | |
1490 | case $ac_pass in | |
1491 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1492 | 2) | |
1493 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1494 | if test $ac_must_keep_next = true; then | |
1495 | ac_must_keep_next=false # Got value, back to normal. | |
1496 | else | |
1497 | case $ac_arg in | |
1498 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1499 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1500 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1501 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1502 | case "$ac_configure_args0 " in | |
1503 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1504 | esac | |
1505 | ;; | |
1506 | -* ) ac_must_keep_next=true ;; | |
1507 | esac | |
1508 | fi | |
631ef239 | 1509 | ac_configure_args="$ac_configure_args '$ac_arg'" |
212380e3 AC |
1510 | ;; |
1511 | esac | |
1512 | done | |
1513 | done | |
1514 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1515 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1516 | ||
1517 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1518 | # config.log. We remove comments because anyway the quotes in there | |
1519 | # would cause problems or look ugly. | |
631ef239 AC |
1520 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1521 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
212380e3 AC |
1522 | trap 'exit_status=$? |
1523 | # Save into config.log some information that might help in debugging. | |
1524 | { | |
1525 | echo | |
1526 | ||
1527 | cat <<\_ASBOX | |
1528 | ## ---------------- ## | |
1529 | ## Cache variables. ## | |
1530 | ## ---------------- ## | |
1531 | _ASBOX | |
1532 | echo | |
1533 | # The following way of writing the cache mishandles newlines in values, | |
631ef239 AC |
1534 | ( |
1535 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1536 | eval ac_val=\$$ac_var | |
1537 | case $ac_val in #( | |
1538 | *${as_nl}*) | |
1539 | case $ac_var in #( | |
1540 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1541 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1542 | esac | |
1543 | case $ac_var in #( | |
1544 | _ | IFS | as_nl) ;; #( | |
1545 | *) $as_unset $ac_var ;; | |
1546 | esac ;; | |
1547 | esac | |
1548 | done | |
212380e3 | 1549 | (set) 2>&1 | |
631ef239 AC |
1550 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1551 | *${as_nl}ac_space=\ *) | |
212380e3 | 1552 | sed -n \ |
631ef239 AC |
1553 | "s/'\''/'\''\\\\'\'''\''/g; |
1554 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1555 | ;; #( | |
212380e3 | 1556 | *) |
631ef239 | 1557 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 1558 | ;; |
631ef239 AC |
1559 | esac | |
1560 | sort | |
1561 | ) | |
212380e3 AC |
1562 | echo |
1563 | ||
1564 | cat <<\_ASBOX | |
1565 | ## ----------------- ## | |
1566 | ## Output variables. ## | |
1567 | ## ----------------- ## | |
1568 | _ASBOX | |
1569 | echo | |
1570 | for ac_var in $ac_subst_vars | |
1571 | do | |
631ef239 AC |
1572 | eval ac_val=\$$ac_var |
1573 | case $ac_val in | |
1574 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1575 | esac | |
1576 | echo "$ac_var='\''$ac_val'\''" | |
212380e3 AC |
1577 | done | sort |
1578 | echo | |
1579 | ||
1580 | if test -n "$ac_subst_files"; then | |
1581 | cat <<\_ASBOX | |
631ef239 AC |
1582 | ## ------------------- ## |
1583 | ## File substitutions. ## | |
1584 | ## ------------------- ## | |
212380e3 AC |
1585 | _ASBOX |
1586 | echo | |
1587 | for ac_var in $ac_subst_files | |
1588 | do | |
631ef239 AC |
1589 | eval ac_val=\$$ac_var |
1590 | case $ac_val in | |
1591 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1592 | esac | |
1593 | echo "$ac_var='\''$ac_val'\''" | |
212380e3 AC |
1594 | done | sort |
1595 | echo | |
1596 | fi | |
1597 | ||
1598 | if test -s confdefs.h; then | |
1599 | cat <<\_ASBOX | |
1600 | ## ----------- ## | |
1601 | ## confdefs.h. ## | |
1602 | ## ----------- ## | |
1603 | _ASBOX | |
1604 | echo | |
631ef239 | 1605 | cat confdefs.h |
212380e3 AC |
1606 | echo |
1607 | fi | |
1608 | test "$ac_signal" != 0 && | |
1609 | echo "$as_me: caught signal $ac_signal" | |
1610 | echo "$as_me: exit $exit_status" | |
1611 | } >&5 | |
631ef239 AC |
1612 | rm -f core *.core core.conftest.* && |
1613 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
212380e3 | 1614 | exit $exit_status |
631ef239 | 1615 | ' 0 |
212380e3 AC |
1616 | for ac_signal in 1 2 13 15; do |
1617 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1618 | done | |
1619 | ac_signal=0 | |
1620 | ||
1621 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
631ef239 | 1622 | rm -f -r conftest* confdefs.h |
212380e3 AC |
1623 | |
1624 | # Predefined preprocessor variables. | |
1625 | ||
1626 | cat >>confdefs.h <<_ACEOF | |
1627 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1628 | _ACEOF | |
1629 | ||
1630 | ||
1631 | cat >>confdefs.h <<_ACEOF | |
1632 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1633 | _ACEOF | |
1634 | ||
1635 | ||
1636 | cat >>confdefs.h <<_ACEOF | |
1637 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1638 | _ACEOF | |
1639 | ||
1640 | ||
1641 | cat >>confdefs.h <<_ACEOF | |
1642 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1643 | _ACEOF | |
1644 | ||
1645 | ||
1646 | cat >>confdefs.h <<_ACEOF | |
1647 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1648 | _ACEOF | |
1649 | ||
1650 | ||
1651 | # Let the site file select an alternate cache file if it wants to. | |
1652 | # Prefer explicitly selected file to automatically selected ones. | |
631ef239 AC |
1653 | if test -n "$CONFIG_SITE"; then |
1654 | set x "$CONFIG_SITE" | |
1655 | elif test "x$prefix" != xNONE; then | |
1656 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1657 | else | |
1658 | set x "$ac_default_prefix/share/config.site" \ | |
1659 | "$ac_default_prefix/etc/config.site" | |
212380e3 | 1660 | fi |
631ef239 AC |
1661 | shift |
1662 | for ac_site_file | |
1663 | do | |
212380e3 AC |
1664 | if test -r "$ac_site_file"; then |
1665 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1666 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1667 | sed 's/^/| /' "$ac_site_file" >&5 | |
1668 | . "$ac_site_file" | |
1669 | fi | |
1670 | done | |
1671 | ||
1672 | if test -r "$cache_file"; then | |
1673 | # Some versions of bash will fail to source /dev/null (special | |
1674 | # files actually), so we avoid doing that. | |
1675 | if test -f "$cache_file"; then | |
1676 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1677 | echo "$as_me: loading cache $cache_file" >&6;} | |
1678 | case $cache_file in | |
631ef239 AC |
1679 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1680 | *) . "./$cache_file";; | |
212380e3 AC |
1681 | esac |
1682 | fi | |
1683 | else | |
1684 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1685 | echo "$as_me: creating cache $cache_file" >&6;} | |
1686 | >$cache_file | |
1687 | fi | |
1688 | ||
1689 | # Check that the precious variables saved in the cache have kept the same | |
1690 | # value. | |
1691 | ac_cache_corrupted=false | |
631ef239 | 1692 | for ac_var in $ac_precious_vars; do |
212380e3 AC |
1693 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1694 | eval ac_new_set=\$ac_env_${ac_var}_set | |
631ef239 AC |
1695 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1696 | eval ac_new_val=\$ac_env_${ac_var}_value | |
212380e3 AC |
1697 | case $ac_old_set,$ac_new_set in |
1698 | set,) | |
1699 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1700 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1701 | ac_cache_corrupted=: ;; | |
1702 | ,set) | |
1703 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1704 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1705 | ac_cache_corrupted=: ;; | |
1706 | ,);; | |
1707 | *) | |
1708 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1709 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1710 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1711 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1712 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1713 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1714 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1715 | ac_cache_corrupted=: | |
1716 | fi;; | |
1717 | esac | |
1718 | # Pass precious variables to config.status. | |
1719 | if test "$ac_new_set" = set; then | |
1720 | case $ac_new_val in | |
631ef239 | 1721 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
212380e3 AC |
1722 | *) ac_arg=$ac_var=$ac_new_val ;; |
1723 | esac | |
1724 | case " $ac_configure_args " in | |
1725 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1726 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1727 | esac | |
1728 | fi | |
1729 | done | |
1730 | if $ac_cache_corrupted; then | |
1731 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1732 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1733 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1734 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1735 | { (exit 1); exit 1; }; } | |
1736 | fi | |
1737 | ||
212380e3 AC |
1738 | |
1739 | ||
1740 | ||
1741 | ||
1742 | ||
1743 | ||
1744 | ||
1745 | ||
1746 | ||
1747 | ||
1748 | ||
1749 | ||
1750 | ||
1751 | ||
1752 | ||
1753 | ||
1754 | ||
1755 | ||
1756 | ||
1757 | ||
1758 | ||
1759 | ||
1760 | ||
1761 | ||
631ef239 AC |
1762 | ac_ext=c |
1763 | ac_cpp='$CPP $CPPFLAGS' | |
1764 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1765 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1766 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
212380e3 AC |
1767 | |
1768 | ||
1769 | ||
631ef239 | 1770 | ac_config_headers="$ac_config_headers include/setup.h" |
212380e3 AC |
1771 | |
1772 | ||
1773 | ||
1774 | ||
1775 | ||
1776 | cat >>confdefs.h <<\_ACEOF | |
1777 | #define _GNU_SOURCE 1 | |
1778 | _ACEOF | |
1779 | ||
1780 | ||
1781 | ||
1782 | OLD_CFLAGS="$CFLAGS" | |
1783 | ac_ext=c | |
1784 | ac_cpp='$CPP $CPPFLAGS' | |
1785 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1786 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1787 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1788 | if test -n "$ac_tool_prefix"; then | |
1789 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1790 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
631ef239 AC |
1791 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1792 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
1793 | if test "${ac_cv_prog_CC+set}" = set; then |
1794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1795 | else | |
1796 | if test -n "$CC"; then | |
1797 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1798 | else | |
1799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1800 | for as_dir in $PATH | |
1801 | do | |
1802 | IFS=$as_save_IFS | |
1803 | test -z "$as_dir" && as_dir=. | |
1804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 1805 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
1806 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1807 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1808 | break 2 | |
1809 | fi | |
1810 | done | |
1811 | done | |
631ef239 | 1812 | IFS=$as_save_IFS |
212380e3 AC |
1813 | |
1814 | fi | |
1815 | fi | |
1816 | CC=$ac_cv_prog_CC | |
1817 | if test -n "$CC"; then | |
631ef239 AC |
1818 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1819 | echo "${ECHO_T}$CC" >&6; } | |
212380e3 | 1820 | else |
631ef239 AC |
1821 | { echo "$as_me:$LINENO: result: no" >&5 |
1822 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
1823 | fi |
1824 | ||
631ef239 | 1825 | |
212380e3 AC |
1826 | fi |
1827 | if test -z "$ac_cv_prog_CC"; then | |
1828 | ac_ct_CC=$CC | |
1829 | # Extract the first word of "gcc", so it can be a program name with args. | |
1830 | set dummy gcc; ac_word=$2 | |
631ef239 AC |
1831 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1832 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
1833 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1835 | else | |
1836 | if test -n "$ac_ct_CC"; then | |
1837 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1838 | else | |
1839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1840 | for as_dir in $PATH | |
1841 | do | |
1842 | IFS=$as_save_IFS | |
1843 | test -z "$as_dir" && as_dir=. | |
1844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 1845 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
1846 | ac_cv_prog_ac_ct_CC="gcc" |
1847 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1848 | break 2 | |
1849 | fi | |
1850 | done | |
1851 | done | |
631ef239 | 1852 | IFS=$as_save_IFS |
212380e3 AC |
1853 | |
1854 | fi | |
1855 | fi | |
1856 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1857 | if test -n "$ac_ct_CC"; then | |
631ef239 AC |
1858 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1859 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
212380e3 | 1860 | else |
631ef239 AC |
1861 | { echo "$as_me:$LINENO: result: no" >&5 |
1862 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
1863 | fi |
1864 | ||
631ef239 AC |
1865 | if test "x$ac_ct_CC" = x; then |
1866 | CC="" | |
1867 | else | |
1868 | case $cross_compiling:$ac_tool_warned in | |
1869 | yes:) | |
1870 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
1871 | whose name does not start with the host triplet. If you think this | |
1872 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1873 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
1874 | whose name does not start with the host triplet. If you think this | |
1875 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
1876 | ac_tool_warned=yes ;; | |
1877 | esac | |
1878 | CC=$ac_ct_CC | |
1879 | fi | |
212380e3 AC |
1880 | else |
1881 | CC="$ac_cv_prog_CC" | |
1882 | fi | |
1883 | ||
1884 | if test -z "$CC"; then | |
631ef239 AC |
1885 | if test -n "$ac_tool_prefix"; then |
1886 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
212380e3 | 1887 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
631ef239 AC |
1888 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1889 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
1890 | if test "${ac_cv_prog_CC+set}" = set; then |
1891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1892 | else | |
1893 | if test -n "$CC"; then | |
1894 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1895 | else | |
1896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1897 | for as_dir in $PATH | |
1898 | do | |
1899 | IFS=$as_save_IFS | |
1900 | test -z "$as_dir" && as_dir=. | |
1901 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 1902 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
1903 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1904 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1905 | break 2 | |
1906 | fi | |
1907 | done | |
1908 | done | |
631ef239 | 1909 | IFS=$as_save_IFS |
212380e3 AC |
1910 | |
1911 | fi | |
1912 | fi | |
1913 | CC=$ac_cv_prog_CC | |
1914 | if test -n "$CC"; then | |
631ef239 AC |
1915 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1916 | echo "${ECHO_T}$CC" >&6; } | |
212380e3 | 1917 | else |
631ef239 AC |
1918 | { echo "$as_me:$LINENO: result: no" >&5 |
1919 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
1920 | fi |
1921 | ||
212380e3 | 1922 | |
631ef239 | 1923 | fi |
212380e3 AC |
1924 | fi |
1925 | if test -z "$CC"; then | |
1926 | # Extract the first word of "cc", so it can be a program name with args. | |
1927 | set dummy cc; ac_word=$2 | |
631ef239 AC |
1928 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
1930 | if test "${ac_cv_prog_CC+set}" = set; then |
1931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1932 | else | |
1933 | if test -n "$CC"; then | |
1934 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1935 | else | |
1936 | ac_prog_rejected=no | |
1937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1938 | for as_dir in $PATH | |
1939 | do | |
1940 | IFS=$as_save_IFS | |
1941 | test -z "$as_dir" && as_dir=. | |
1942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 1943 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
1944 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1945 | ac_prog_rejected=yes | |
1946 | continue | |
1947 | fi | |
1948 | ac_cv_prog_CC="cc" | |
1949 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1950 | break 2 | |
1951 | fi | |
1952 | done | |
1953 | done | |
631ef239 | 1954 | IFS=$as_save_IFS |
212380e3 AC |
1955 | |
1956 | if test $ac_prog_rejected = yes; then | |
1957 | # We found a bogon in the path, so make sure we never use it. | |
1958 | set dummy $ac_cv_prog_CC | |
1959 | shift | |
1960 | if test $# != 0; then | |
1961 | # We chose a different compiler from the bogus one. | |
1962 | # However, it has the same basename, so the bogon will be chosen | |
1963 | # first if we set CC to just the basename; use the full file name. | |
1964 | shift | |
1965 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1966 | fi | |
1967 | fi | |
1968 | fi | |
1969 | fi | |
1970 | CC=$ac_cv_prog_CC | |
1971 | if test -n "$CC"; then | |
631ef239 AC |
1972 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1973 | echo "${ECHO_T}$CC" >&6; } | |
212380e3 | 1974 | else |
631ef239 AC |
1975 | { echo "$as_me:$LINENO: result: no" >&5 |
1976 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
1977 | fi |
1978 | ||
631ef239 | 1979 | |
212380e3 AC |
1980 | fi |
1981 | if test -z "$CC"; then | |
1982 | if test -n "$ac_tool_prefix"; then | |
631ef239 | 1983 | for ac_prog in cl.exe |
212380e3 AC |
1984 | do |
1985 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1986 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
631ef239 AC |
1987 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
1989 | if test "${ac_cv_prog_CC+set}" = set; then |
1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1991 | else | |
1992 | if test -n "$CC"; then | |
1993 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1994 | else | |
1995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1996 | for as_dir in $PATH | |
1997 | do | |
1998 | IFS=$as_save_IFS | |
1999 | test -z "$as_dir" && as_dir=. | |
2000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
2002 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2004 | break 2 | |
2005 | fi | |
2006 | done | |
2007 | done | |
631ef239 | 2008 | IFS=$as_save_IFS |
212380e3 AC |
2009 | |
2010 | fi | |
2011 | fi | |
2012 | CC=$ac_cv_prog_CC | |
2013 | if test -n "$CC"; then | |
631ef239 AC |
2014 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2015 | echo "${ECHO_T}$CC" >&6; } | |
212380e3 | 2016 | else |
631ef239 AC |
2017 | { echo "$as_me:$LINENO: result: no" >&5 |
2018 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2019 | fi |
2020 | ||
631ef239 | 2021 | |
212380e3 AC |
2022 | test -n "$CC" && break |
2023 | done | |
2024 | fi | |
2025 | if test -z "$CC"; then | |
2026 | ac_ct_CC=$CC | |
631ef239 | 2027 | for ac_prog in cl.exe |
212380e3 AC |
2028 | do |
2029 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2030 | set dummy $ac_prog; ac_word=$2 | |
631ef239 AC |
2031 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
2033 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2035 | else | |
2036 | if test -n "$ac_ct_CC"; then | |
2037 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2038 | else | |
2039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2040 | for as_dir in $PATH | |
2041 | do | |
2042 | IFS=$as_save_IFS | |
2043 | test -z "$as_dir" && as_dir=. | |
2044 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2045 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
2046 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2048 | break 2 | |
2049 | fi | |
2050 | done | |
2051 | done | |
631ef239 | 2052 | IFS=$as_save_IFS |
212380e3 AC |
2053 | |
2054 | fi | |
2055 | fi | |
2056 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2057 | if test -n "$ac_ct_CC"; then | |
631ef239 AC |
2058 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2059 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
212380e3 | 2060 | else |
631ef239 AC |
2061 | { echo "$as_me:$LINENO: result: no" >&5 |
2062 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2063 | fi |
2064 | ||
631ef239 | 2065 | |
212380e3 AC |
2066 | test -n "$ac_ct_CC" && break |
2067 | done | |
2068 | ||
631ef239 AC |
2069 | if test "x$ac_ct_CC" = x; then |
2070 | CC="" | |
2071 | else | |
2072 | case $cross_compiling:$ac_tool_warned in | |
2073 | yes:) | |
2074 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2075 | whose name does not start with the host triplet. If you think this | |
2076 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2077 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2078 | whose name does not start with the host triplet. If you think this | |
2079 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2080 | ac_tool_warned=yes ;; | |
2081 | esac | |
2082 | CC=$ac_ct_CC | |
2083 | fi | |
212380e3 AC |
2084 | fi |
2085 | ||
2086 | fi | |
2087 | ||
2088 | ||
2089 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2090 | See \`config.log' for more details." >&5 | |
2091 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2092 | See \`config.log' for more details." >&2;} | |
2093 | { (exit 1); exit 1; }; } | |
2094 | ||
2095 | # Provide some information about the compiler. | |
631ef239 | 2096 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
212380e3 | 2097 | ac_compiler=`set X $ac_compile; echo $2` |
631ef239 AC |
2098 | { (ac_try="$ac_compiler --version >&5" |
2099 | case "(($ac_try" in | |
2100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2101 | *) ac_try_echo=$ac_try;; | |
2102 | esac | |
2103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2104 | (eval "$ac_compiler --version >&5") 2>&5 | |
212380e3 AC |
2105 | ac_status=$? |
2106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2107 | (exit $ac_status); } | |
631ef239 AC |
2108 | { (ac_try="$ac_compiler -v >&5" |
2109 | case "(($ac_try" in | |
2110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2111 | *) ac_try_echo=$ac_try;; | |
2112 | esac | |
2113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2114 | (eval "$ac_compiler -v >&5") 2>&5 | |
212380e3 AC |
2115 | ac_status=$? |
2116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2117 | (exit $ac_status); } | |
631ef239 AC |
2118 | { (ac_try="$ac_compiler -V >&5" |
2119 | case "(($ac_try" in | |
2120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2121 | *) ac_try_echo=$ac_try;; | |
2122 | esac | |
2123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2124 | (eval "$ac_compiler -V >&5") 2>&5 | |
212380e3 AC |
2125 | ac_status=$? |
2126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2127 | (exit $ac_status); } | |
2128 | ||
2129 | cat >conftest.$ac_ext <<_ACEOF | |
2130 | /* confdefs.h. */ | |
2131 | _ACEOF | |
2132 | cat confdefs.h >>conftest.$ac_ext | |
2133 | cat >>conftest.$ac_ext <<_ACEOF | |
2134 | /* end confdefs.h. */ | |
2135 | ||
2136 | int | |
2137 | main () | |
2138 | { | |
2139 | ||
2140 | ; | |
2141 | return 0; | |
2142 | } | |
2143 | _ACEOF | |
2144 | ac_clean_files_save=$ac_clean_files | |
2145 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2146 | # Try to create an executable without -o first, disregard a.out. | |
2147 | # It will help us diagnose broken compilers, and finding out an intuition | |
2148 | # of exeext. | |
631ef239 AC |
2149 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2150 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
212380e3 | 2151 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
631ef239 AC |
2152 | # |
2153 | # List of possible output files, starting from the most likely. | |
2154 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2155 | # only as a last resort. b.out is created by i960 compilers. | |
2156 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2157 | # | |
2158 | # The IRIX 6 linker writes into existing files which may not be | |
2159 | # executable, retaining their permissions. Remove them first so a | |
2160 | # subsequent execution test works. | |
2161 | ac_rmfiles= | |
2162 | for ac_file in $ac_files | |
2163 | do | |
2164 | case $ac_file in | |
2165 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2166 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2167 | esac | |
2168 | done | |
2169 | rm -f $ac_rmfiles | |
2170 | ||
2171 | if { (ac_try="$ac_link_default" | |
2172 | case "(($ac_try" in | |
2173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2174 | *) ac_try_echo=$ac_try;; | |
2175 | esac | |
2176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2177 | (eval "$ac_link_default") 2>&5 | |
212380e3 AC |
2178 | ac_status=$? |
2179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2180 | (exit $ac_status); }; then | |
631ef239 AC |
2181 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2182 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2183 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2184 | # so that the user can short-circuit this test for compilers unknown to | |
2185 | # Autoconf. | |
2186 | for ac_file in $ac_files '' | |
212380e3 AC |
2187 | do |
2188 | test -f "$ac_file" || continue | |
2189 | case $ac_file in | |
631ef239 | 2190 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
212380e3 AC |
2191 | ;; |
2192 | [ab].out ) | |
2193 | # We found the default executable, but exeext='' is most | |
2194 | # certainly right. | |
2195 | break;; | |
2196 | *.* ) | |
631ef239 AC |
2197 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2198 | then :; else | |
2199 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2200 | fi | |
2201 | # We set ac_cv_exeext here because the later test for it is not | |
2202 | # safe: cross compilers may not add the suffix if given an `-o' | |
2203 | # argument, so we may need to know it at that point already. | |
2204 | # Even if this section looks crufty: it has the advantage of | |
2205 | # actually working. | |
212380e3 AC |
2206 | break;; |
2207 | * ) | |
2208 | break;; | |
2209 | esac | |
2210 | done | |
631ef239 AC |
2211 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2212 | ||
212380e3 | 2213 | else |
631ef239 AC |
2214 | ac_file='' |
2215 | fi | |
2216 | ||
2217 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2218 | echo "${ECHO_T}$ac_file" >&6; } | |
2219 | if test -z "$ac_file"; then | |
212380e3 AC |
2220 | echo "$as_me: failed program was:" >&5 |
2221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2222 | ||
2223 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2224 | See \`config.log' for more details." >&5 | |
2225 | echo "$as_me: error: C compiler cannot create executables | |
2226 | See \`config.log' for more details." >&2;} | |
2227 | { (exit 77); exit 77; }; } | |
2228 | fi | |
2229 | ||
2230 | ac_exeext=$ac_cv_exeext | |
212380e3 | 2231 | |
631ef239 | 2232 | # Check that the compiler produces executables we can run. If not, either |
212380e3 | 2233 | # the compiler is broken, or we cross compile. |
631ef239 AC |
2234 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2235 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
212380e3 AC |
2236 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2237 | # If not cross compiling, check that we can run a simple program. | |
2238 | if test "$cross_compiling" != yes; then | |
2239 | if { ac_try='./$ac_file' | |
631ef239 AC |
2240 | { (case "(($ac_try" in |
2241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2242 | *) ac_try_echo=$ac_try;; | |
2243 | esac | |
2244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2245 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
2246 | ac_status=$? |
2247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2248 | (exit $ac_status); }; }; then | |
2249 | cross_compiling=no | |
2250 | else | |
2251 | if test "$cross_compiling" = maybe; then | |
2252 | cross_compiling=yes | |
2253 | else | |
2254 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2255 | If you meant to cross compile, use \`--host'. | |
2256 | See \`config.log' for more details." >&5 | |
2257 | echo "$as_me: error: cannot run C compiled programs. | |
2258 | If you meant to cross compile, use \`--host'. | |
2259 | See \`config.log' for more details." >&2;} | |
2260 | { (exit 1); exit 1; }; } | |
2261 | fi | |
2262 | fi | |
2263 | fi | |
631ef239 AC |
2264 | { echo "$as_me:$LINENO: result: yes" >&5 |
2265 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
2266 | |
2267 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2268 | ac_clean_files=$ac_clean_files_save | |
631ef239 | 2269 | # Check that the compiler produces executables we can run. If not, either |
212380e3 | 2270 | # the compiler is broken, or we cross compile. |
631ef239 AC |
2271 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2272 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2273 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2274 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2275 | ||
2276 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2277 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2278 | if { (ac_try="$ac_link" | |
2279 | case "(($ac_try" in | |
2280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2281 | *) ac_try_echo=$ac_try;; | |
2282 | esac | |
2283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2284 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
2285 | ac_status=$? |
2286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2287 | (exit $ac_status); }; then | |
2288 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2289 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2290 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2291 | # `rm'. | |
2292 | for ac_file in conftest.exe conftest conftest.*; do | |
2293 | test -f "$ac_file" || continue | |
2294 | case $ac_file in | |
631ef239 | 2295 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
212380e3 | 2296 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
212380e3 AC |
2297 | break;; |
2298 | * ) break;; | |
2299 | esac | |
2300 | done | |
2301 | else | |
2302 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2303 | See \`config.log' for more details." >&5 | |
2304 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2305 | See \`config.log' for more details." >&2;} | |
2306 | { (exit 1); exit 1; }; } | |
2307 | fi | |
2308 | ||
2309 | rm -f conftest$ac_cv_exeext | |
631ef239 AC |
2310 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2311 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
212380e3 AC |
2312 | |
2313 | rm -f conftest.$ac_ext | |
2314 | EXEEXT=$ac_cv_exeext | |
2315 | ac_exeext=$EXEEXT | |
631ef239 AC |
2316 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2317 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
212380e3 AC |
2318 | if test "${ac_cv_objext+set}" = set; then |
2319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2320 | else | |
2321 | cat >conftest.$ac_ext <<_ACEOF | |
2322 | /* confdefs.h. */ | |
2323 | _ACEOF | |
2324 | cat confdefs.h >>conftest.$ac_ext | |
2325 | cat >>conftest.$ac_ext <<_ACEOF | |
2326 | /* end confdefs.h. */ | |
2327 | ||
2328 | int | |
2329 | main () | |
2330 | { | |
2331 | ||
2332 | ; | |
2333 | return 0; | |
2334 | } | |
2335 | _ACEOF | |
2336 | rm -f conftest.o conftest.obj | |
631ef239 AC |
2337 | if { (ac_try="$ac_compile" |
2338 | case "(($ac_try" in | |
2339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2340 | *) ac_try_echo=$ac_try;; | |
2341 | esac | |
2342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2343 | (eval "$ac_compile") 2>&5 | |
212380e3 AC |
2344 | ac_status=$? |
2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2346 | (exit $ac_status); }; then | |
631ef239 AC |
2347 | for ac_file in conftest.o conftest.obj conftest.*; do |
2348 | test -f "$ac_file" || continue; | |
212380e3 | 2349 | case $ac_file in |
631ef239 | 2350 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
212380e3 AC |
2351 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2352 | break;; | |
2353 | esac | |
2354 | done | |
2355 | else | |
2356 | echo "$as_me: failed program was:" >&5 | |
2357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2358 | ||
2359 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2360 | See \`config.log' for more details." >&5 | |
2361 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2362 | See \`config.log' for more details." >&2;} | |
2363 | { (exit 1); exit 1; }; } | |
2364 | fi | |
2365 | ||
2366 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2367 | fi | |
631ef239 AC |
2368 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2369 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
212380e3 AC |
2370 | OBJEXT=$ac_cv_objext |
2371 | ac_objext=$OBJEXT | |
631ef239 AC |
2372 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2373 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
212380e3 AC |
2374 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2376 | else | |
2377 | cat >conftest.$ac_ext <<_ACEOF | |
2378 | /* confdefs.h. */ | |
2379 | _ACEOF | |
2380 | cat confdefs.h >>conftest.$ac_ext | |
2381 | cat >>conftest.$ac_ext <<_ACEOF | |
2382 | /* end confdefs.h. */ | |
2383 | ||
2384 | int | |
2385 | main () | |
2386 | { | |
2387 | #ifndef __GNUC__ | |
2388 | choke me | |
2389 | #endif | |
2390 | ||
2391 | ; | |
2392 | return 0; | |
2393 | } | |
2394 | _ACEOF | |
2395 | rm -f conftest.$ac_objext | |
631ef239 AC |
2396 | if { (ac_try="$ac_compile" |
2397 | case "(($ac_try" in | |
2398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2399 | *) ac_try_echo=$ac_try;; | |
2400 | esac | |
2401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2402 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
2403 | ac_status=$? |
2404 | grep -v '^ *+' conftest.er1 >conftest.err | |
2405 | rm -f conftest.er1 | |
2406 | cat conftest.err >&5 | |
2407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
2408 | (exit $ac_status); } && { |
2409 | test -z "$ac_c_werror_flag" || | |
2410 | test ! -s conftest.err | |
2411 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
2412 | ac_compiler_gnu=yes |
2413 | else | |
2414 | echo "$as_me: failed program was:" >&5 | |
2415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2416 | ||
631ef239 | 2417 | ac_compiler_gnu=no |
212380e3 | 2418 | fi |
631ef239 AC |
2419 | |
2420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
2421 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2422 | ||
2423 | fi | |
631ef239 AC |
2424 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2425 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
212380e3 AC |
2426 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2427 | ac_test_CFLAGS=${CFLAGS+set} | |
2428 | ac_save_CFLAGS=$CFLAGS | |
631ef239 AC |
2429 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2430 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
212380e3 AC |
2431 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2433 | else | |
631ef239 AC |
2434 | ac_save_c_werror_flag=$ac_c_werror_flag |
2435 | ac_c_werror_flag=yes | |
2436 | ac_cv_prog_cc_g=no | |
2437 | CFLAGS="-g" | |
2438 | cat >conftest.$ac_ext <<_ACEOF | |
212380e3 AC |
2439 | /* confdefs.h. */ |
2440 | _ACEOF | |
2441 | cat confdefs.h >>conftest.$ac_ext | |
2442 | cat >>conftest.$ac_ext <<_ACEOF | |
2443 | /* end confdefs.h. */ | |
2444 | ||
2445 | int | |
2446 | main () | |
2447 | { | |
2448 | ||
2449 | ; | |
2450 | return 0; | |
2451 | } | |
2452 | _ACEOF | |
2453 | rm -f conftest.$ac_objext | |
631ef239 AC |
2454 | if { (ac_try="$ac_compile" |
2455 | case "(($ac_try" in | |
2456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2457 | *) ac_try_echo=$ac_try;; | |
2458 | esac | |
2459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2460 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
2461 | ac_status=$? |
2462 | grep -v '^ *+' conftest.er1 >conftest.err | |
2463 | rm -f conftest.er1 | |
2464 | cat conftest.err >&5 | |
2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
2466 | (exit $ac_status); } && { |
2467 | test -z "$ac_c_werror_flag" || | |
2468 | test ! -s conftest.err | |
2469 | } && test -s conftest.$ac_objext; then | |
2470 | ac_cv_prog_cc_g=yes | |
2471 | else | |
2472 | echo "$as_me: failed program was:" >&5 | |
2473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2474 | ||
2475 | CFLAGS="" | |
2476 | cat >conftest.$ac_ext <<_ACEOF | |
2477 | /* confdefs.h. */ | |
2478 | _ACEOF | |
2479 | cat confdefs.h >>conftest.$ac_ext | |
2480 | cat >>conftest.$ac_ext <<_ACEOF | |
2481 | /* end confdefs.h. */ | |
2482 | ||
2483 | int | |
2484 | main () | |
2485 | { | |
2486 | ||
2487 | ; | |
2488 | return 0; | |
2489 | } | |
2490 | _ACEOF | |
2491 | rm -f conftest.$ac_objext | |
2492 | if { (ac_try="$ac_compile" | |
2493 | case "(($ac_try" in | |
2494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2495 | *) ac_try_echo=$ac_try;; | |
2496 | esac | |
2497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2498 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 2499 | ac_status=$? |
631ef239 AC |
2500 | grep -v '^ *+' conftest.er1 >conftest.err |
2501 | rm -f conftest.er1 | |
2502 | cat conftest.err >&5 | |
212380e3 | 2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
631ef239 AC |
2504 | (exit $ac_status); } && { |
2505 | test -z "$ac_c_werror_flag" || | |
2506 | test ! -s conftest.err | |
2507 | } && test -s conftest.$ac_objext; then | |
2508 | : | |
2509 | else | |
2510 | echo "$as_me: failed program was:" >&5 | |
2511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2512 | ||
2513 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2514 | CFLAGS="-g" | |
2515 | cat >conftest.$ac_ext <<_ACEOF | |
2516 | /* confdefs.h. */ | |
2517 | _ACEOF | |
2518 | cat confdefs.h >>conftest.$ac_ext | |
2519 | cat >>conftest.$ac_ext <<_ACEOF | |
2520 | /* end confdefs.h. */ | |
2521 | ||
2522 | int | |
2523 | main () | |
2524 | { | |
2525 | ||
2526 | ; | |
2527 | return 0; | |
2528 | } | |
2529 | _ACEOF | |
2530 | rm -f conftest.$ac_objext | |
2531 | if { (ac_try="$ac_compile" | |
2532 | case "(($ac_try" in | |
2533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2534 | *) ac_try_echo=$ac_try;; | |
2535 | esac | |
2536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2537 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 2538 | ac_status=$? |
631ef239 AC |
2539 | grep -v '^ *+' conftest.er1 >conftest.err |
2540 | rm -f conftest.er1 | |
2541 | cat conftest.err >&5 | |
212380e3 | 2542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
631ef239 AC |
2543 | (exit $ac_status); } && { |
2544 | test -z "$ac_c_werror_flag" || | |
2545 | test ! -s conftest.err | |
2546 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
2547 | ac_cv_prog_cc_g=yes |
2548 | else | |
2549 | echo "$as_me: failed program was:" >&5 | |
2550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2551 | ||
631ef239 AC |
2552 | |
2553 | fi | |
2554 | ||
2555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 2556 | fi |
631ef239 AC |
2557 | |
2558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2559 | fi | |
2560 | ||
2561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2562 | ac_c_werror_flag=$ac_save_c_werror_flag | |
212380e3 | 2563 | fi |
631ef239 AC |
2564 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2565 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
212380e3 AC |
2566 | if test "$ac_test_CFLAGS" = set; then |
2567 | CFLAGS=$ac_save_CFLAGS | |
2568 | elif test $ac_cv_prog_cc_g = yes; then | |
2569 | if test "$GCC" = yes; then | |
2570 | CFLAGS="-g -O2" | |
2571 | else | |
2572 | CFLAGS="-g" | |
2573 | fi | |
2574 | else | |
2575 | if test "$GCC" = yes; then | |
2576 | CFLAGS="-O2" | |
2577 | else | |
2578 | CFLAGS= | |
2579 | fi | |
2580 | fi | |
631ef239 AC |
2581 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2582 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2583 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
212380e3 AC |
2584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2585 | else | |
631ef239 | 2586 | ac_cv_prog_cc_c89=no |
212380e3 AC |
2587 | ac_save_CC=$CC |
2588 | cat >conftest.$ac_ext <<_ACEOF | |
2589 | /* confdefs.h. */ | |
2590 | _ACEOF | |
2591 | cat confdefs.h >>conftest.$ac_ext | |
2592 | cat >>conftest.$ac_ext <<_ACEOF | |
2593 | /* end confdefs.h. */ | |
2594 | #include <stdarg.h> | |
2595 | #include <stdio.h> | |
2596 | #include <sys/types.h> | |
2597 | #include <sys/stat.h> | |
2598 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2599 | struct buf { int x; }; | |
2600 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2601 | static char *e (p, i) | |
2602 | char **p; | |
2603 | int i; | |
2604 | { | |
2605 | return p[i]; | |
2606 | } | |
2607 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2608 | { | |
2609 | char *s; | |
2610 | va_list v; | |
2611 | va_start (v,p); | |
2612 | s = g (p, va_arg (v,int)); | |
2613 | va_end (v); | |
2614 | return s; | |
2615 | } | |
2616 | ||
2617 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2618 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2619 | These don't provoke an error unfortunately, instead are silently treated | |
631ef239 | 2620 | as 'x'. The following induces an error, until -std is added to get |
212380e3 AC |
2621 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2622 | array size at least. It's necessary to write '\x00'==0 to get something | |
631ef239 | 2623 | that's true only with -std. */ |
212380e3 AC |
2624 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2625 | ||
631ef239 AC |
2626 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2627 | inside strings and character constants. */ | |
2628 | #define FOO(x) 'x' | |
2629 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2630 | ||
212380e3 AC |
2631 | int test (int i, double x); |
2632 | struct s1 {int (*f) (int a);}; | |
2633 | struct s2 {int (*f) (double a);}; | |
2634 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2635 | int argc; | |
2636 | char **argv; | |
2637 | int | |
2638 | main () | |
2639 | { | |
2640 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2641 | ; | |
2642 | return 0; | |
2643 | } | |
2644 | _ACEOF | |
631ef239 AC |
2645 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2646 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
212380e3 AC |
2647 | do |
2648 | CC="$ac_save_CC $ac_arg" | |
2649 | rm -f conftest.$ac_objext | |
631ef239 AC |
2650 | if { (ac_try="$ac_compile" |
2651 | case "(($ac_try" in | |
2652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2653 | *) ac_try_echo=$ac_try;; | |
2654 | esac | |
2655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2656 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
2657 | ac_status=$? |
2658 | grep -v '^ *+' conftest.er1 >conftest.err | |
2659 | rm -f conftest.er1 | |
2660 | cat conftest.err >&5 | |
2661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
2662 | (exit $ac_status); } && { |
2663 | test -z "$ac_c_werror_flag" || | |
2664 | test ! -s conftest.err | |
2665 | } && test -s conftest.$ac_objext; then | |
2666 | ac_cv_prog_cc_c89=$ac_arg | |
212380e3 AC |
2667 | else |
2668 | echo "$as_me: failed program was:" >&5 | |
2669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2670 | ||
631ef239 | 2671 | |
212380e3 | 2672 | fi |
631ef239 AC |
2673 | |
2674 | rm -f core conftest.err conftest.$ac_objext | |
2675 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
212380e3 | 2676 | done |
631ef239 | 2677 | rm -f conftest.$ac_ext |
212380e3 AC |
2678 | CC=$ac_save_CC |
2679 | ||
2680 | fi | |
631ef239 AC |
2681 | # AC_CACHE_VAL |
2682 | case "x$ac_cv_prog_cc_c89" in | |
2683 | x) | |
2684 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
2685 | echo "${ECHO_T}none needed" >&6; } ;; | |
2686 | xno) | |
2687 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
2688 | echo "${ECHO_T}unsupported" >&6; } ;; | |
212380e3 | 2689 | *) |
631ef239 AC |
2690 | CC="$CC $ac_cv_prog_cc_c89" |
2691 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
2692 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
212380e3 AC |
2693 | esac |
2694 | ||
212380e3 | 2695 | |
212380e3 AC |
2696 | ac_ext=c |
2697 | ac_cpp='$CPP $CPPFLAGS' | |
2698 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2699 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2700 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2701 | ||
2702 | ac_ext=c | |
2703 | ac_cpp='$CPP $CPPFLAGS' | |
2704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2707 | ||
2708 | ||
2709 | CFLAGS="$OLD_CFLAGS" | |
2710 | ||
b676ea3b AC |
2711 | ac_aux_dir= |
2712 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2713 | if test -f "$ac_dir/install-sh"; then | |
2714 | ac_aux_dir=$ac_dir | |
2715 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2716 | break | |
2717 | elif test -f "$ac_dir/install.sh"; then | |
2718 | ac_aux_dir=$ac_dir | |
2719 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2720 | break | |
2721 | elif test -f "$ac_dir/shtool"; then | |
2722 | ac_aux_dir=$ac_dir | |
2723 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2724 | break | |
2725 | fi | |
2726 | done | |
2727 | if test -z "$ac_aux_dir"; then | |
2728 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
2729 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
2730 | { (exit 1); exit 1; }; } | |
2731 | fi | |
2732 | ||
2733 | # These three variables are undocumented and unsupported, | |
2734 | # and are intended to be withdrawn in a future Autoconf release. | |
2735 | # They can cause serious problems if a builder's source tree is in a directory | |
2736 | # whose full name contains unusual characters. | |
2737 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2738 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2739 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2740 | ||
2741 | ||
2742 | subdirs="$subdirs libratbox" | |
2743 | ||
2744 | ||
212380e3 AC |
2745 | |
2746 | if test "$ac_cv_c_compiler_gnu" != yes; then | |
2747 | ||
2748 | SGS=no | |
631ef239 AC |
2749 | { echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5 |
2750 | echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6; } | |
212380e3 AC |
2751 | case `$CC -version 2>&1` in |
2752 | *TenDRA*) | |
631ef239 AC |
2753 | { echo "$as_me:$LINENO: result: yes, TenDRA" >&5 |
2754 | echo "${ECHO_T}yes, TenDRA" >&6; } | |
212380e3 AC |
2755 | IRC_CFLAGS="" |
2756 | CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include" | |
2757 | SGS=yes | |
2758 | TenDRA=yes | |
2759 | ;; | |
2760 | *MIPSpro*) | |
631ef239 AC |
2761 | { echo "$as_me:$LINENO: result: yes, MIPSpro" >&5 |
2762 | echo "${ECHO_T}yes, MIPSpro" >&6; } | |
212380e3 AC |
2763 | MIPSpro=yes |
2764 | SGS=yes | |
2765 | ;; | |
2766 | *) | |
631ef239 AC |
2767 | { echo "$as_me:$LINENO: result: no" >&5 |
2768 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2769 | TenDRA=no |
2770 | MIPSpro=no | |
2771 | ;; | |
2772 | esac | |
2773 | ||
631ef239 AC |
2774 | { echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 |
2775 | echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6; } | |
212380e3 AC |
2776 | case `$CC -V 2>&1` in |
2777 | *Sun*WorkShop* | *Forte*Developer*) | |
631ef239 AC |
2778 | { echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5 |
2779 | echo "${ECHO_T}Sun Workshop/Forte" >&6; } | |
212380e3 AC |
2780 | IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" |
2781 | SunWorkShop=yes | |
2782 | SGS=yes | |
2783 | ;; | |
2784 | *Tru64*) | |
631ef239 AC |
2785 | { echo "$as_me:$LINENO: result: Tru64 cc" >&5 |
2786 | echo "${ECHO_T}Tru64 cc" >&6; } | |
212380e3 AC |
2787 | IRC_CFLAGS="-O2" |
2788 | CPPFLAGS="-I/usr/local/include" | |
2789 | Tru=yes | |
2790 | ;; | |
2791 | *HP*ANSI*) | |
631ef239 AC |
2792 | { echo "$as_me:$LINENO: result: HPUX cc" >&5 |
2793 | echo "${ECHO_T}HPUX cc" >&6; } | |
212380e3 AC |
2794 | HPUX=yes |
2795 | IRC_CFLAGS="+e" | |
2796 | ;; | |
2797 | *) | |
631ef239 AC |
2798 | { echo "$as_me:$LINENO: result: no" >&5 |
2799 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2800 | ;; |
2801 | esac | |
2802 | ||
2803 | fi | |
2804 | ||
631ef239 AC |
2805 | { echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris, AIX or HPUX" >&5 |
2806 | echo $ECHO_N "checking uname -s for Cygwin, Solaris, AIX or HPUX... $ECHO_C" >&6; } | |
212380e3 AC |
2807 | OSNAME=`uname -s` |
2808 | case "$OSNAME" in | |
2809 | HP-UX*) | |
2810 | ||
2811 | if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then | |
631ef239 AC |
2812 | { echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5 |
2813 | echo "${ECHO_T}assuming old HPUX with its own cc" >&6; } | |
212380e3 AC |
2814 | IRC_CFLAGS="$IRC_CFLAGS +e" |
2815 | HPUX=yes | |
2816 | else | |
631ef239 AC |
2817 | { echo "$as_me:$LINENO: result: already using newer HPUX" >&5 |
2818 | echo "${ECHO_T}already using newer HPUX" >&6; } | |
212380e3 AC |
2819 | fi |
2820 | ;; | |
2821 | CYGWIN*) | |
631ef239 AC |
2822 | { echo "$as_me:$LINENO: result: Cygwin" >&5 |
2823 | echo "${ECHO_T}Cygwin" >&6; } | |
212380e3 AC |
2824 | CYGWIN=yes |
2825 | ;; | |
2826 | SunOS*) | |
631ef239 AC |
2827 | { echo "$as_me:$LINENO: result: SunOS or Solaris" >&5 |
2828 | echo "${ECHO_T}SunOS or Solaris" >&6; } | |
212380e3 AC |
2829 | |
2830 | cat >>confdefs.h <<\_ACEOF | |
2831 | #define __EXTENSIONS__ 1 | |
2832 | _ACEOF | |
2833 | ||
2834 | SUN=yes | |
2835 | ;; | |
2836 | AIX*) | |
631ef239 AC |
2837 | { echo "$as_me:$LINENO: result: AIX - Sorry you poor bastard..really we are" >&5 |
2838 | echo "${ECHO_T}AIX - Sorry you poor bastard..really we are" >&6; } | |
212380e3 AC |
2839 | IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G" |
2840 | ;; | |
2841 | *) | |
631ef239 AC |
2842 | { echo "$as_me:$LINENO: result: no" >&5 |
2843 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2844 | ;; |
2845 | esac | |
2846 | ||
2847 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
631ef239 AC |
2848 | { echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5 |
2849 | echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; } | |
212380e3 AC |
2850 | |
2851 | case `$CC -v 2>&1 | tail -n 1` in | |
2852 | *Apple*) | |
631ef239 AC |
2853 | { echo "$as_me:$LINENO: result: yes" >&5 |
2854 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
2855 | AppleGCC=yes |
2856 | ;; | |
2857 | *) | |
631ef239 AC |
2858 | { echo "$as_me:$LINENO: result: no" >&5 |
2859 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2860 | AppleGCC=no |
2861 | ;; | |
2862 | esac | |
2863 | ||
2864 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall" | |
2865 | fi | |
2866 | ||
2867 | if test "$ac_cv_prog_cc_g" = yes; then | |
2868 | if test "$Tru" = yes; then | |
2869 | IRC_CFLAGS="$IRC_CFLAGS -g3" | |
2870 | else | |
2871 | IRC_CFLAGS="$IRC_CFLAGS -g" | |
2872 | fi | |
2873 | fi | |
2874 | ||
631ef239 AC |
2875 | { echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5 |
2876 | echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; } | |
212380e3 | 2877 | if test "$SGS" = "yes"; then |
631ef239 AC |
2878 | { echo "$as_me:$LINENO: result: yes" >&5 |
2879 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 2880 | else |
631ef239 AC |
2881 | { echo "$as_me:$LINENO: result: no" >&5 |
2882 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2883 | fi |
2884 | ||
2885 | # Extract the first word of "mkdep", so it can be a program name with args. | |
2886 | set dummy mkdep; ac_word=$2 | |
631ef239 AC |
2887 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2888 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
2889 | if test "${ac_cv_path_MKDEP+set}" = set; then |
2890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2891 | else | |
2892 | case $MKDEP in | |
2893 | [\\/]* | ?:[\\/]*) | |
2894 | ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. | |
2895 | ;; | |
2896 | *) | |
2897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2898 | for as_dir in $PATH | |
2899 | do | |
2900 | IFS=$as_save_IFS | |
2901 | test -z "$as_dir" && as_dir=. | |
2902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2903 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
2904 | ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" |
2905 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2906 | break 2 | |
2907 | fi | |
2908 | done | |
2909 | done | |
631ef239 | 2910 | IFS=$as_save_IFS |
212380e3 AC |
2911 | |
2912 | ;; | |
2913 | esac | |
2914 | fi | |
2915 | MKDEP=$ac_cv_path_MKDEP | |
212380e3 | 2916 | if test -n "$MKDEP"; then |
631ef239 AC |
2917 | { echo "$as_me:$LINENO: result: $MKDEP" >&5 |
2918 | echo "${ECHO_T}$MKDEP" >&6; } | |
212380e3 | 2919 | else |
631ef239 AC |
2920 | { echo "$as_me:$LINENO: result: no" >&5 |
2921 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2922 | fi |
2923 | ||
631ef239 | 2924 | |
212380e3 AC |
2925 | # Extract the first word of "makedepend", so it can be a program name with args. |
2926 | set dummy makedepend; ac_word=$2 | |
631ef239 AC |
2927 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2928 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
2929 | if test "${ac_cv_path_MAKEDEPEND+set}" = set; then |
2930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2931 | else | |
2932 | case $MAKEDEPEND in | |
2933 | [\\/]* | ?:[\\/]*) | |
2934 | ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. | |
2935 | ;; | |
2936 | *) | |
2937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2938 | for as_dir in $PATH | |
2939 | do | |
2940 | IFS=$as_save_IFS | |
2941 | test -z "$as_dir" && as_dir=. | |
2942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2943 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
2944 | ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" |
2945 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2946 | break 2 | |
2947 | fi | |
2948 | done | |
2949 | done | |
631ef239 | 2950 | IFS=$as_save_IFS |
212380e3 AC |
2951 | |
2952 | ;; | |
2953 | esac | |
2954 | fi | |
2955 | MAKEDEPEND=$ac_cv_path_MAKEDEPEND | |
212380e3 | 2956 | if test -n "$MAKEDEPEND"; then |
631ef239 AC |
2957 | { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5 |
2958 | echo "${ECHO_T}$MAKEDEPEND" >&6; } | |
212380e3 | 2959 | else |
631ef239 AC |
2960 | { echo "$as_me:$LINENO: result: no" >&5 |
2961 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2962 | fi |
2963 | ||
2964 | ||
631ef239 AC |
2965 | |
2966 | { echo "$as_me:$LINENO: checking how to generate dependency info" >&5 | |
2967 | echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; } | |
212380e3 AC |
2968 | |
2969 | STDOUT="> .depend" | |
2970 | ||
2971 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
631ef239 AC |
2972 | { echo "$as_me:$LINENO: result: gcc -MM" >&5 |
2973 | echo "${ECHO_T}gcc -MM" >&6; } | |
212380e3 AC |
2974 | MKDEP="$CC -MM" |
2975 | elif test ! -z "$MKDEP"; then | |
631ef239 AC |
2976 | { echo "$as_me:$LINENO: result: mkdep" >&5 |
2977 | echo "${ECHO_T}mkdep" >&6; } | |
212380e3 AC |
2978 | |
2979 | if test -z "$Tru"; then | |
2980 | STDOUT="" | |
2981 | else | |
2982 | STDOUT=" 2> /dev/null" | |
2983 | fi | |
2984 | elif test "$SunWorkShop" = yes; then | |
631ef239 AC |
2985 | { echo "$as_me:$LINENO: result: $CC -xM" >&5 |
2986 | echo "${ECHO_T}$CC -xM" >&6; } | |
212380e3 AC |
2987 | MKDEP="$CC -xM" |
2988 | STDOUT="> .depend 2> /dev/null" | |
2989 | elif test ! -z "$MAKEDEPEND"; then | |
631ef239 AC |
2990 | { echo "$as_me:$LINENO: result: makedepend" >&5 |
2991 | echo "${ECHO_T}makedepend" >&6; } | |
212380e3 AC |
2992 | MKDEP="$MAKEDEPEND -f-" |
2993 | else | |
631ef239 AC |
2994 | { echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5 |
2995 | echo "${ECHO_T}nothing suitable.. forget it!" >&6; } | |
212380e3 AC |
2996 | MKDEP=":" |
2997 | fi | |
2998 | ||
2999 | ||
3000 | ||
3001 | ||
631ef239 AC |
3002 | { echo "$as_me:$LINENO: checking for /dev/null" >&5 |
3003 | echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; } | |
212380e3 AC |
3004 | if test -c /dev/null ; then |
3005 | ||
3006 | cat >>confdefs.h <<\_ACEOF | |
3007 | #define PATH_DEVNULL "/dev/null" | |
3008 | _ACEOF | |
3009 | ||
631ef239 AC |
3010 | { echo "$as_me:$LINENO: result: yes" >&5 |
3011 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
3012 | else |
3013 | ||
3014 | cat >>confdefs.h <<\_ACEOF | |
3015 | #define PATH_DEVNULL "devnull.log" | |
3016 | _ACEOF | |
3017 | ||
631ef239 AC |
3018 | { echo "$as_me:$LINENO: result: no - using devnull.log" >&5 |
3019 | echo "${ECHO_T}no - using devnull.log" >&6; } | |
212380e3 AC |
3020 | fi |
3021 | ||
3022 | if test ! -z "$CFLAGS"; then | |
3023 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
3024 | fi | |
3025 | ||
3026 | ||
631ef239 AC |
3027 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3028 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } | |
212380e3 AC |
3029 | if test "${ac_cv_search_strerror+set}" = set; then |
3030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3031 | else | |
3032 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
3033 | cat >conftest.$ac_ext <<_ACEOF |
3034 | /* confdefs.h. */ | |
3035 | _ACEOF | |
3036 | cat confdefs.h >>conftest.$ac_ext | |
3037 | cat >>conftest.$ac_ext <<_ACEOF | |
3038 | /* end confdefs.h. */ | |
3039 | ||
631ef239 AC |
3040 | /* Override any GCC internal prototype to avoid an error. |
3041 | Use char because int might match the return type of a GCC | |
3042 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
3043 | #ifdef __cplusplus |
3044 | extern "C" | |
3045 | #endif | |
212380e3 AC |
3046 | char strerror (); |
3047 | int | |
3048 | main () | |
3049 | { | |
631ef239 | 3050 | return strerror (); |
212380e3 AC |
3051 | ; |
3052 | return 0; | |
3053 | } | |
3054 | _ACEOF | |
631ef239 AC |
3055 | for ac_lib in '' cposix; do |
3056 | if test -z "$ac_lib"; then | |
3057 | ac_res="none required" | |
3058 | else | |
3059 | ac_res=-l$ac_lib | |
3060 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3061 | fi | |
3062 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3063 | if { (ac_try="$ac_link" | |
3064 | case "(($ac_try" in | |
3065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3066 | *) ac_try_echo=$ac_try;; | |
3067 | esac | |
3068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3069 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
3070 | ac_status=$? |
3071 | grep -v '^ *+' conftest.er1 >conftest.err | |
3072 | rm -f conftest.er1 | |
3073 | cat conftest.err >&5 | |
3074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3075 | (exit $ac_status); } && { |
3076 | test -z "$ac_c_werror_flag" || | |
3077 | test ! -s conftest.err | |
3078 | } && test -s conftest$ac_exeext && | |
3079 | $as_test_x conftest$ac_exeext; then | |
3080 | ac_cv_search_strerror=$ac_res | |
212380e3 AC |
3081 | else |
3082 | echo "$as_me: failed program was:" >&5 | |
3083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3084 | ||
212380e3 | 3085 | |
631ef239 | 3086 | fi |
212380e3 | 3087 | |
631ef239 AC |
3088 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3089 | conftest$ac_exeext | |
3090 | if test "${ac_cv_search_strerror+set}" = set; then | |
3091 | break | |
212380e3 | 3092 | fi |
631ef239 AC |
3093 | done |
3094 | if test "${ac_cv_search_strerror+set}" = set; then | |
3095 | : | |
3096 | else | |
3097 | ac_cv_search_strerror=no | |
212380e3 | 3098 | fi |
631ef239 | 3099 | rm conftest.$ac_ext |
212380e3 AC |
3100 | LIBS=$ac_func_search_save_LIBS |
3101 | fi | |
631ef239 AC |
3102 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
3103 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } | |
3104 | ac_res=$ac_cv_search_strerror | |
3105 | if test "$ac_res" != no; then | |
3106 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
3107 | |
3108 | fi | |
3109 | ||
631ef239 AC |
3110 | { echo "$as_me:$LINENO: checking for inline" >&5 |
3111 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
212380e3 AC |
3112 | if test "${ac_cv_c_inline+set}" = set; then |
3113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3114 | else | |
3115 | ac_cv_c_inline=no | |
3116 | for ac_kw in inline __inline__ __inline; do | |
3117 | cat >conftest.$ac_ext <<_ACEOF | |
3118 | /* confdefs.h. */ | |
3119 | _ACEOF | |
3120 | cat confdefs.h >>conftest.$ac_ext | |
3121 | cat >>conftest.$ac_ext <<_ACEOF | |
3122 | /* end confdefs.h. */ | |
3123 | #ifndef __cplusplus | |
3124 | typedef int foo_t; | |
3125 | static $ac_kw foo_t static_foo () {return 0; } | |
3126 | $ac_kw foo_t foo () {return 0; } | |
3127 | #endif | |
3128 | ||
3129 | _ACEOF | |
3130 | rm -f conftest.$ac_objext | |
631ef239 AC |
3131 | if { (ac_try="$ac_compile" |
3132 | case "(($ac_try" in | |
3133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3134 | *) ac_try_echo=$ac_try;; | |
3135 | esac | |
3136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3137 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
3138 | ac_status=$? |
3139 | grep -v '^ *+' conftest.er1 >conftest.err | |
3140 | rm -f conftest.er1 | |
3141 | cat conftest.err >&5 | |
3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3143 | (exit $ac_status); } && { |
3144 | test -z "$ac_c_werror_flag" || | |
3145 | test ! -s conftest.err | |
3146 | } && test -s conftest.$ac_objext; then | |
3147 | ac_cv_c_inline=$ac_kw | |
212380e3 AC |
3148 | else |
3149 | echo "$as_me: failed program was:" >&5 | |
3150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3151 | ||
631ef239 | 3152 | |
212380e3 | 3153 | fi |
631ef239 AC |
3154 | |
3155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3156 | test "$ac_cv_c_inline" != no && break | |
212380e3 AC |
3157 | done |
3158 | ||
3159 | fi | |
631ef239 AC |
3160 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3161 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
212380e3 AC |
3162 | |
3163 | ||
3164 | case $ac_cv_c_inline in | |
3165 | inline | yes) ;; | |
3166 | *) | |
3167 | case $ac_cv_c_inline in | |
3168 | no) ac_val=;; | |
3169 | *) ac_val=$ac_cv_c_inline;; | |
3170 | esac | |
3171 | cat >>confdefs.h <<_ACEOF | |
3172 | #ifndef __cplusplus | |
3173 | #define inline $ac_val | |
3174 | #endif | |
3175 | _ACEOF | |
3176 | ;; | |
3177 | esac | |
3178 | ||
3179 | ac_ext=c | |
3180 | ac_cpp='$CPP $CPPFLAGS' | |
3181 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3182 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3183 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 AC |
3184 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3185 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
212380e3 AC |
3186 | # On Suns, sometimes $CPP names a directory. |
3187 | if test -n "$CPP" && test -d "$CPP"; then | |
3188 | CPP= | |
3189 | fi | |
3190 | if test -z "$CPP"; then | |
3191 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3193 | else | |
3194 | # Double quotes because CPP needs to be expanded | |
3195 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3196 | do | |
3197 | ac_preproc_ok=false | |
3198 | for ac_c_preproc_warn_flag in '' yes | |
3199 | do | |
3200 | # Use a header file that comes with gcc, so configuring glibc | |
3201 | # with a fresh cross-compiler works. | |
3202 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3203 | # <limits.h> exists even on freestanding compilers. | |
3204 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3205 | # not just through cpp. "Syntax error" is here to catch this case. | |
3206 | cat >conftest.$ac_ext <<_ACEOF | |
3207 | /* confdefs.h. */ | |
3208 | _ACEOF | |
3209 | cat confdefs.h >>conftest.$ac_ext | |
3210 | cat >>conftest.$ac_ext <<_ACEOF | |
3211 | /* end confdefs.h. */ | |
3212 | #ifdef __STDC__ | |
3213 | # include <limits.h> | |
3214 | #else | |
3215 | # include <assert.h> | |
3216 | #endif | |
3217 | Syntax error | |
3218 | _ACEOF | |
631ef239 AC |
3219 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3220 | case "(($ac_try" in | |
3221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3222 | *) ac_try_echo=$ac_try;; | |
3223 | esac | |
3224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3225 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3226 | ac_status=$? |
3227 | grep -v '^ *+' conftest.er1 >conftest.err | |
3228 | rm -f conftest.er1 | |
3229 | cat conftest.err >&5 | |
3230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3231 | (exit $ac_status); } >/dev/null && { |
3232 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3233 | test ! -s conftest.err | |
3234 | }; then | |
212380e3 AC |
3235 | : |
3236 | else | |
3237 | echo "$as_me: failed program was:" >&5 | |
3238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3239 | ||
3240 | # Broken: fails on valid input. | |
3241 | continue | |
3242 | fi | |
631ef239 | 3243 | |
212380e3 AC |
3244 | rm -f conftest.err conftest.$ac_ext |
3245 | ||
631ef239 | 3246 | # OK, works on sane cases. Now check whether nonexistent headers |
212380e3 AC |
3247 | # can be detected and how. |
3248 | cat >conftest.$ac_ext <<_ACEOF | |
3249 | /* confdefs.h. */ | |
3250 | _ACEOF | |
3251 | cat confdefs.h >>conftest.$ac_ext | |
3252 | cat >>conftest.$ac_ext <<_ACEOF | |
3253 | /* end confdefs.h. */ | |
3254 | #include <ac_nonexistent.h> | |
3255 | _ACEOF | |
631ef239 AC |
3256 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3257 | case "(($ac_try" in | |
3258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3259 | *) ac_try_echo=$ac_try;; | |
3260 | esac | |
3261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3262 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3263 | ac_status=$? |
3264 | grep -v '^ *+' conftest.er1 >conftest.err | |
3265 | rm -f conftest.er1 | |
3266 | cat conftest.err >&5 | |
3267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3268 | (exit $ac_status); } >/dev/null && { |
3269 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3270 | test ! -s conftest.err | |
3271 | }; then | |
212380e3 AC |
3272 | # Broken: success on invalid input. |
3273 | continue | |
3274 | else | |
3275 | echo "$as_me: failed program was:" >&5 | |
3276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3277 | ||
3278 | # Passes both tests. | |
3279 | ac_preproc_ok=: | |
3280 | break | |
3281 | fi | |
631ef239 | 3282 | |
212380e3 AC |
3283 | rm -f conftest.err conftest.$ac_ext |
3284 | ||
3285 | done | |
3286 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3287 | rm -f conftest.err conftest.$ac_ext | |
3288 | if $ac_preproc_ok; then | |
3289 | break | |
3290 | fi | |
3291 | ||
3292 | done | |
3293 | ac_cv_prog_CPP=$CPP | |
3294 | ||
3295 | fi | |
3296 | CPP=$ac_cv_prog_CPP | |
3297 | else | |
3298 | ac_cv_prog_CPP=$CPP | |
3299 | fi | |
631ef239 AC |
3300 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3301 | echo "${ECHO_T}$CPP" >&6; } | |
212380e3 AC |
3302 | ac_preproc_ok=false |
3303 | for ac_c_preproc_warn_flag in '' yes | |
3304 | do | |
3305 | # Use a header file that comes with gcc, so configuring glibc | |
3306 | # with a fresh cross-compiler works. | |
3307 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3308 | # <limits.h> exists even on freestanding compilers. | |
3309 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3310 | # not just through cpp. "Syntax error" is here to catch this case. | |
3311 | cat >conftest.$ac_ext <<_ACEOF | |
3312 | /* confdefs.h. */ | |
3313 | _ACEOF | |
3314 | cat confdefs.h >>conftest.$ac_ext | |
3315 | cat >>conftest.$ac_ext <<_ACEOF | |
3316 | /* end confdefs.h. */ | |
3317 | #ifdef __STDC__ | |
3318 | # include <limits.h> | |
3319 | #else | |
3320 | # include <assert.h> | |
3321 | #endif | |
3322 | Syntax error | |
3323 | _ACEOF | |
631ef239 AC |
3324 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3325 | case "(($ac_try" in | |
3326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3327 | *) ac_try_echo=$ac_try;; | |
3328 | esac | |
3329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3330 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3331 | ac_status=$? |
3332 | grep -v '^ *+' conftest.er1 >conftest.err | |
3333 | rm -f conftest.er1 | |
3334 | cat conftest.err >&5 | |
3335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3336 | (exit $ac_status); } >/dev/null && { |
3337 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3338 | test ! -s conftest.err | |
3339 | }; then | |
212380e3 AC |
3340 | : |
3341 | else | |
3342 | echo "$as_me: failed program was:" >&5 | |
3343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3344 | ||
3345 | # Broken: fails on valid input. | |
3346 | continue | |
3347 | fi | |
631ef239 | 3348 | |
212380e3 AC |
3349 | rm -f conftest.err conftest.$ac_ext |
3350 | ||
631ef239 | 3351 | # OK, works on sane cases. Now check whether nonexistent headers |
212380e3 AC |
3352 | # can be detected and how. |
3353 | cat >conftest.$ac_ext <<_ACEOF | |
3354 | /* confdefs.h. */ | |
3355 | _ACEOF | |
3356 | cat confdefs.h >>conftest.$ac_ext | |
3357 | cat >>conftest.$ac_ext <<_ACEOF | |
3358 | /* end confdefs.h. */ | |
3359 | #include <ac_nonexistent.h> | |
3360 | _ACEOF | |
631ef239 AC |
3361 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3362 | case "(($ac_try" in | |
3363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3364 | *) ac_try_echo=$ac_try;; | |
3365 | esac | |
3366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3367 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3368 | ac_status=$? |
3369 | grep -v '^ *+' conftest.er1 >conftest.err | |
3370 | rm -f conftest.er1 | |
3371 | cat conftest.err >&5 | |
3372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3373 | (exit $ac_status); } >/dev/null && { |
3374 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3375 | test ! -s conftest.err | |
3376 | }; then | |
212380e3 AC |
3377 | # Broken: success on invalid input. |
3378 | continue | |
3379 | else | |
3380 | echo "$as_me: failed program was:" >&5 | |
3381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3382 | ||
3383 | # Passes both tests. | |
3384 | ac_preproc_ok=: | |
3385 | break | |
3386 | fi | |
631ef239 | 3387 | |
212380e3 AC |
3388 | rm -f conftest.err conftest.$ac_ext |
3389 | ||
3390 | done | |
3391 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3392 | rm -f conftest.err conftest.$ac_ext | |
3393 | if $ac_preproc_ok; then | |
3394 | : | |
3395 | else | |
3396 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3397 | See \`config.log' for more details." >&5 | |
3398 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3399 | See \`config.log' for more details." >&2;} | |
3400 | { (exit 1); exit 1; }; } | |
3401 | fi | |
3402 | ||
3403 | ac_ext=c | |
3404 | ac_cpp='$CPP $CPPFLAGS' | |
3405 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3406 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3407 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3408 | ||
3409 | ||
631ef239 AC |
3410 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3411 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3412 | if test "${ac_cv_path_GREP+set}" = set; then | |
3413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3414 | else | |
3415 | # Extract the first word of "grep ggrep" to use in msg output | |
3416 | if test -z "$GREP"; then | |
3417 | set dummy grep ggrep; ac_prog_name=$2 | |
3418 | if test "${ac_cv_path_GREP+set}" = set; then | |
3419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3420 | else | |
3421 | ac_path_GREP_found=false | |
3422 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3424 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3425 | do | |
3426 | IFS=$as_save_IFS | |
3427 | test -z "$as_dir" && as_dir=. | |
3428 | for ac_prog in grep ggrep; do | |
3429 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3430 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3431 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3432 | # Check for GNU ac_path_GREP and select it if it is found. | |
3433 | # Check for GNU $ac_path_GREP | |
3434 | case `"$ac_path_GREP" --version 2>&1` in | |
3435 | *GNU*) | |
3436 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3437 | *) | |
3438 | ac_count=0 | |
3439 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3440 | while : | |
3441 | do | |
3442 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3443 | mv "conftest.tmp" "conftest.in" | |
3444 | cp "conftest.in" "conftest.nl" | |
3445 | echo 'GREP' >> "conftest.nl" | |
3446 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3447 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3448 | ac_count=`expr $ac_count + 1` | |
3449 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3450 | # Best one so far, save it but keep looking for a better one | |
3451 | ac_cv_path_GREP="$ac_path_GREP" | |
3452 | ac_path_GREP_max=$ac_count | |
3453 | fi | |
3454 | # 10*(2^10) chars as input seems more than enough | |
3455 | test $ac_count -gt 10 && break | |
3456 | done | |
3457 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3458 | esac | |
3459 | ||
3460 | ||
3461 | $ac_path_GREP_found && break 3 | |
3462 | done | |
3463 | done | |
3464 | ||
3465 | done | |
3466 | IFS=$as_save_IFS | |
3467 | ||
3468 | ||
3469 | fi | |
3470 | ||
3471 | GREP="$ac_cv_path_GREP" | |
3472 | if test -z "$GREP"; then | |
3473 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3474 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3475 | { (exit 1); exit 1; }; } | |
3476 | fi | |
3477 | ||
3478 | else | |
3479 | ac_cv_path_GREP=$GREP | |
3480 | fi | |
3481 | ||
3482 | ||
3483 | fi | |
3484 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3485 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3486 | GREP="$ac_cv_path_GREP" | |
3487 | ||
3488 | ||
3489 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3490 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3491 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3493 | else | |
3494 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3495 | then ac_cv_path_EGREP="$GREP -E" | |
3496 | else | |
3497 | # Extract the first word of "egrep" to use in msg output | |
3498 | if test -z "$EGREP"; then | |
3499 | set dummy egrep; ac_prog_name=$2 | |
3500 | if test "${ac_cv_path_EGREP+set}" = set; then | |
212380e3 AC |
3501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3502 | else | |
631ef239 AC |
3503 | ac_path_EGREP_found=false |
3504 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3506 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3507 | do | |
3508 | IFS=$as_save_IFS | |
3509 | test -z "$as_dir" && as_dir=. | |
3510 | for ac_prog in egrep; do | |
3511 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3512 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3513 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3514 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3515 | # Check for GNU $ac_path_EGREP | |
3516 | case `"$ac_path_EGREP" --version 2>&1` in | |
3517 | *GNU*) | |
3518 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3519 | *) | |
3520 | ac_count=0 | |
3521 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3522 | while : | |
3523 | do | |
3524 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3525 | mv "conftest.tmp" "conftest.in" | |
3526 | cp "conftest.in" "conftest.nl" | |
3527 | echo 'EGREP' >> "conftest.nl" | |
3528 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3529 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3530 | ac_count=`expr $ac_count + 1` | |
3531 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3532 | # Best one so far, save it but keep looking for a better one | |
3533 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3534 | ac_path_EGREP_max=$ac_count | |
212380e3 | 3535 | fi |
631ef239 AC |
3536 | # 10*(2^10) chars as input seems more than enough |
3537 | test $ac_count -gt 10 && break | |
3538 | done | |
3539 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3540 | esac | |
3541 | ||
3542 | ||
3543 | $ac_path_EGREP_found && break 3 | |
3544 | done | |
3545 | done | |
3546 | ||
3547 | done | |
3548 | IFS=$as_save_IFS | |
3549 | ||
3550 | ||
3551 | fi | |
3552 | ||
3553 | EGREP="$ac_cv_path_EGREP" | |
3554 | if test -z "$EGREP"; then | |
3555 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3556 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3557 | { (exit 1); exit 1; }; } | |
3558 | fi | |
3559 | ||
3560 | else | |
3561 | ac_cv_path_EGREP=$EGREP | |
212380e3 | 3562 | fi |
631ef239 AC |
3563 | |
3564 | ||
3565 | fi | |
3566 | fi | |
3567 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3568 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3569 | EGREP="$ac_cv_path_EGREP" | |
212380e3 AC |
3570 | |
3571 | ||
3572 | if test $ac_cv_c_compiler_gnu = yes; then | |
631ef239 AC |
3573 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3574 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
212380e3 AC |
3575 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
3576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3577 | else | |
3578 | ac_pattern="Autoconf.*'x'" | |
3579 | cat >conftest.$ac_ext <<_ACEOF | |
3580 | /* confdefs.h. */ | |
3581 | _ACEOF | |
3582 | cat confdefs.h >>conftest.$ac_ext | |
3583 | cat >>conftest.$ac_ext <<_ACEOF | |
3584 | /* end confdefs.h. */ | |
3585 | #include <sgtty.h> | |
3586 | Autoconf TIOCGETP | |
3587 | _ACEOF | |
3588 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3589 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3590 | ac_cv_prog_gcc_traditional=yes | |
3591 | else | |
3592 | ac_cv_prog_gcc_traditional=no | |
3593 | fi | |
3594 | rm -f conftest* | |
3595 | ||
3596 | ||
3597 | if test $ac_cv_prog_gcc_traditional = no; then | |
3598 | cat >conftest.$ac_ext <<_ACEOF | |
3599 | /* confdefs.h. */ | |
3600 | _ACEOF | |
3601 | cat confdefs.h >>conftest.$ac_ext | |
3602 | cat >>conftest.$ac_ext <<_ACEOF | |
3603 | /* end confdefs.h. */ | |
3604 | #include <termio.h> | |
3605 | Autoconf TCGETA | |
3606 | _ACEOF | |
3607 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3608 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3609 | ac_cv_prog_gcc_traditional=yes | |
3610 | fi | |
3611 | rm -f conftest* | |
3612 | ||
3613 | fi | |
3614 | fi | |
631ef239 AC |
3615 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3616 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
212380e3 AC |
3617 | if test $ac_cv_prog_gcc_traditional = yes; then |
3618 | CC="$CC -traditional" | |
3619 | fi | |
3620 | fi | |
3621 | ||
631ef239 AC |
3622 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3623 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3624 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3625 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
3626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3627 | else | |
3628 | cat >conftest.make <<\_ACEOF | |
631ef239 | 3629 | SHELL = /bin/sh |
212380e3 | 3630 | all: |
631ef239 | 3631 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
212380e3 AC |
3632 | _ACEOF |
3633 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
631ef239 AC |
3634 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3635 | *@@@%%%=?*=@@@%%%*) | |
3636 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3637 | *) | |
3638 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3639 | esac | |
212380e3 AC |
3640 | rm -f conftest.make |
3641 | fi | |
631ef239 AC |
3642 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3643 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3644 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
3645 | SET_MAKE= |
3646 | else | |
631ef239 AC |
3647 | { echo "$as_me:$LINENO: result: no" >&5 |
3648 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3649 | SET_MAKE="MAKE=${MAKE-make}" |
3650 | fi | |
3651 | ||
212380e3 AC |
3652 | # Find a good install program. We prefer a C program (faster), |
3653 | # so one script is as good as another. But avoid the broken or | |
3654 | # incompatible versions: | |
3655 | # SysV /etc/install, /usr/sbin/install | |
3656 | # SunOS /usr/etc/install | |
3657 | # IRIX /sbin/install | |
3658 | # AIX /bin/install | |
3659 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3660 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3661 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3662 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3663 | # OS/2's system install, which has a completely different semantic | |
3664 | # ./install, which can be erroneously created by make from ./install.sh. | |
631ef239 AC |
3665 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3666 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
212380e3 AC |
3667 | if test -z "$INSTALL"; then |
3668 | if test "${ac_cv_path_install+set}" = set; then | |
3669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3670 | else | |
3671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3672 | for as_dir in $PATH | |
3673 | do | |
3674 | IFS=$as_save_IFS | |
3675 | test -z "$as_dir" && as_dir=. | |
3676 | # Account for people who put trailing slashes in PATH elements. | |
3677 | case $as_dir/ in | |
3678 | ./ | .// | /cC/* | \ | |
3679 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3680 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3681 | /usr/ucb/* ) ;; | |
3682 | *) | |
3683 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3684 | # Don't use installbsd from OSF since it installs stuff as root | |
3685 | # by default. | |
3686 | for ac_prog in ginstall scoinst install; do | |
3687 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3688 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
212380e3 AC |
3689 | if test $ac_prog = install && |
3690 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3691 | # AIX install. It has an incompatible calling convention. | |
3692 | : | |
3693 | elif test $ac_prog = install && | |
3694 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3695 | # program-specific install script used by HP pwplus--don't use. | |
3696 | : | |
3697 | else | |
3698 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3699 | break 3 | |
3700 | fi | |
3701 | fi | |
3702 | done | |
3703 | done | |
3704 | ;; | |
3705 | esac | |
3706 | done | |
631ef239 | 3707 | IFS=$as_save_IFS |
212380e3 AC |
3708 | |
3709 | ||
3710 | fi | |
3711 | if test "${ac_cv_path_install+set}" = set; then | |
3712 | INSTALL=$ac_cv_path_install | |
3713 | else | |
631ef239 AC |
3714 | # As a last resort, use the slow shell script. Don't cache a |
3715 | # value for INSTALL within a source directory, because that will | |
212380e3 | 3716 | # break other packages using the cache if that directory is |
631ef239 | 3717 | # removed, or if the value is a relative name. |
212380e3 AC |
3718 | INSTALL=$ac_install_sh |
3719 | fi | |
3720 | fi | |
631ef239 AC |
3721 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3722 | echo "${ECHO_T}$INSTALL" >&6; } | |
212380e3 AC |
3723 | |
3724 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3725 | # It thinks the first close brace ends the variable substitution. | |
3726 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3727 | ||
3728 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3729 | ||
3730 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3731 | ||
3732 | # Extract the first word of "rm", so it can be a program name with args. | |
3733 | set dummy rm; ac_word=$2 | |
631ef239 AC |
3734 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3736 | if test "${ac_cv_path_RM+set}" = set; then |
3737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3738 | else | |
3739 | case $RM in | |
3740 | [\\/]* | ?:[\\/]*) | |
3741 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
3742 | ;; | |
3743 | *) | |
3744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3745 | for as_dir in $PATH | |
3746 | do | |
3747 | IFS=$as_save_IFS | |
3748 | test -z "$as_dir" && as_dir=. | |
3749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3750 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3751 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
3752 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3753 | break 2 | |
3754 | fi | |
3755 | done | |
3756 | done | |
631ef239 | 3757 | IFS=$as_save_IFS |
212380e3 AC |
3758 | |
3759 | ;; | |
3760 | esac | |
3761 | fi | |
3762 | RM=$ac_cv_path_RM | |
212380e3 | 3763 | if test -n "$RM"; then |
631ef239 AC |
3764 | { echo "$as_me:$LINENO: result: $RM" >&5 |
3765 | echo "${ECHO_T}$RM" >&6; } | |
212380e3 | 3766 | else |
631ef239 AC |
3767 | { echo "$as_me:$LINENO: result: no" >&5 |
3768 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3769 | fi |
3770 | ||
631ef239 | 3771 | |
212380e3 AC |
3772 | # Extract the first word of "cp", so it can be a program name with args. |
3773 | set dummy cp; ac_word=$2 | |
631ef239 AC |
3774 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3775 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3776 | if test "${ac_cv_path_CP+set}" = set; then |
3777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3778 | else | |
3779 | case $CP in | |
3780 | [\\/]* | ?:[\\/]*) | |
3781 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
3782 | ;; | |
3783 | *) | |
3784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3785 | for as_dir in $PATH | |
3786 | do | |
3787 | IFS=$as_save_IFS | |
3788 | test -z "$as_dir" && as_dir=. | |
3789 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3790 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3791 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
3792 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3793 | break 2 | |
3794 | fi | |
3795 | done | |
3796 | done | |
631ef239 | 3797 | IFS=$as_save_IFS |
212380e3 AC |
3798 | |
3799 | ;; | |
3800 | esac | |
3801 | fi | |
3802 | CP=$ac_cv_path_CP | |
212380e3 | 3803 | if test -n "$CP"; then |
631ef239 AC |
3804 | { echo "$as_me:$LINENO: result: $CP" >&5 |
3805 | echo "${ECHO_T}$CP" >&6; } | |
212380e3 | 3806 | else |
631ef239 AC |
3807 | { echo "$as_me:$LINENO: result: no" >&5 |
3808 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3809 | fi |
3810 | ||
631ef239 | 3811 | |
212380e3 AC |
3812 | # Extract the first word of "mv", so it can be a program name with args. |
3813 | set dummy mv; ac_word=$2 | |
631ef239 AC |
3814 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3815 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3816 | if test "${ac_cv_path_MV+set}" = set; then |
3817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3818 | else | |
3819 | case $MV in | |
3820 | [\\/]* | ?:[\\/]*) | |
3821 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
3822 | ;; | |
3823 | *) | |
3824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3825 | for as_dir in $PATH | |
3826 | do | |
3827 | IFS=$as_save_IFS | |
3828 | test -z "$as_dir" && as_dir=. | |
3829 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3831 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
3832 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3833 | break 2 | |
3834 | fi | |
3835 | done | |
3836 | done | |
631ef239 | 3837 | IFS=$as_save_IFS |
212380e3 AC |
3838 | |
3839 | ;; | |
3840 | esac | |
3841 | fi | |
3842 | MV=$ac_cv_path_MV | |
212380e3 | 3843 | if test -n "$MV"; then |
631ef239 AC |
3844 | { echo "$as_me:$LINENO: result: $MV" >&5 |
3845 | echo "${ECHO_T}$MV" >&6; } | |
212380e3 | 3846 | else |
631ef239 AC |
3847 | { echo "$as_me:$LINENO: result: no" >&5 |
3848 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3849 | fi |
3850 | ||
631ef239 | 3851 | |
212380e3 AC |
3852 | # Extract the first word of "ln", so it can be a program name with args. |
3853 | set dummy ln; ac_word=$2 | |
631ef239 AC |
3854 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3856 | if test "${ac_cv_path_LN+set}" = set; then |
3857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3858 | else | |
3859 | case $LN in | |
3860 | [\\/]* | ?:[\\/]*) | |
3861 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
3862 | ;; | |
3863 | *) | |
3864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3865 | for as_dir in $PATH | |
3866 | do | |
3867 | IFS=$as_save_IFS | |
3868 | test -z "$as_dir" && as_dir=. | |
3869 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3870 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3871 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
3872 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3873 | break 2 | |
3874 | fi | |
3875 | done | |
3876 | done | |
631ef239 | 3877 | IFS=$as_save_IFS |
212380e3 AC |
3878 | |
3879 | ;; | |
3880 | esac | |
3881 | fi | |
3882 | LN=$ac_cv_path_LN | |
212380e3 | 3883 | if test -n "$LN"; then |
631ef239 AC |
3884 | { echo "$as_me:$LINENO: result: $LN" >&5 |
3885 | echo "${ECHO_T}$LN" >&6; } | |
212380e3 | 3886 | else |
631ef239 AC |
3887 | { echo "$as_me:$LINENO: result: no" >&5 |
3888 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3889 | fi |
3890 | ||
631ef239 | 3891 | |
212380e3 AC |
3892 | # Extract the first word of "sed", so it can be a program name with args. |
3893 | set dummy sed; ac_word=$2 | |
631ef239 AC |
3894 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3896 | if test "${ac_cv_path_SED+set}" = set; then |
3897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3898 | else | |
3899 | case $SED in | |
3900 | [\\/]* | ?:[\\/]*) | |
3901 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
3902 | ;; | |
3903 | *) | |
3904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3905 | for as_dir in $PATH | |
3906 | do | |
3907 | IFS=$as_save_IFS | |
3908 | test -z "$as_dir" && as_dir=. | |
3909 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3910 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3911 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
3912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3913 | break 2 | |
3914 | fi | |
3915 | done | |
3916 | done | |
631ef239 | 3917 | IFS=$as_save_IFS |
212380e3 AC |
3918 | |
3919 | ;; | |
3920 | esac | |
3921 | fi | |
3922 | SED=$ac_cv_path_SED | |
212380e3 | 3923 | if test -n "$SED"; then |
631ef239 AC |
3924 | { echo "$as_me:$LINENO: result: $SED" >&5 |
3925 | echo "${ECHO_T}$SED" >&6; } | |
212380e3 | 3926 | else |
631ef239 AC |
3927 | { echo "$as_me:$LINENO: result: no" >&5 |
3928 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3929 | fi |
3930 | ||
631ef239 | 3931 | |
212380e3 AC |
3932 | # Extract the first word of "ar", so it can be a program name with args. |
3933 | set dummy ar; ac_word=$2 | |
631ef239 AC |
3934 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3935 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3936 | if test "${ac_cv_path_AR+set}" = set; then |
3937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3938 | else | |
3939 | case $AR in | |
3940 | [\\/]* | ?:[\\/]*) | |
3941 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
3942 | ;; | |
3943 | *) | |
3944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3945 | for as_dir in $PATH | |
3946 | do | |
3947 | IFS=$as_save_IFS | |
3948 | test -z "$as_dir" && as_dir=. | |
3949 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3950 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3951 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
3952 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3953 | break 2 | |
3954 | fi | |
3955 | done | |
3956 | done | |
631ef239 | 3957 | IFS=$as_save_IFS |
212380e3 AC |
3958 | |
3959 | ;; | |
3960 | esac | |
3961 | fi | |
3962 | AR=$ac_cv_path_AR | |
212380e3 | 3963 | if test -n "$AR"; then |
631ef239 AC |
3964 | { echo "$as_me:$LINENO: result: $AR" >&5 |
3965 | echo "${ECHO_T}$AR" >&6; } | |
212380e3 | 3966 | else |
631ef239 AC |
3967 | { echo "$as_me:$LINENO: result: no" >&5 |
3968 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3969 | fi |
3970 | ||
631ef239 | 3971 | |
212380e3 AC |
3972 | # Extract the first word of "ld", so it can be a program name with args. |
3973 | set dummy ld; ac_word=$2 | |
631ef239 AC |
3974 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3976 | if test "${ac_cv_path_LD+set}" = set; then |
3977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3978 | else | |
3979 | case $LD in | |
3980 | [\\/]* | ?:[\\/]*) | |
3981 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
3982 | ;; | |
3983 | *) | |
3984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3985 | for as_dir in $PATH | |
3986 | do | |
3987 | IFS=$as_save_IFS | |
3988 | test -z "$as_dir" && as_dir=. | |
3989 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3990 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3991 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
3992 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3993 | break 2 | |
3994 | fi | |
3995 | done | |
3996 | done | |
631ef239 | 3997 | IFS=$as_save_IFS |
212380e3 AC |
3998 | |
3999 | ;; | |
4000 | esac | |
4001 | fi | |
4002 | LD=$ac_cv_path_LD | |
212380e3 | 4003 | if test -n "$LD"; then |
631ef239 AC |
4004 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4005 | echo "${ECHO_T}$LD" >&6; } | |
212380e3 | 4006 | else |
631ef239 AC |
4007 | { echo "$as_me:$LINENO: result: no" >&5 |
4008 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4009 | fi |
4010 | ||
631ef239 | 4011 | |
212380e3 AC |
4012 | # Extract the first word of "ranlib", so it can be a program name with args. |
4013 | set dummy ranlib; ac_word=$2 | |
631ef239 AC |
4014 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4015 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4016 | if test "${ac_cv_path_RANLIB+set}" = set; then |
4017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4018 | else | |
4019 | case $RANLIB in | |
4020 | [\\/]* | ?:[\\/]*) | |
4021 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
4022 | ;; | |
4023 | *) | |
4024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4025 | for as_dir in $PATH | |
4026 | do | |
4027 | IFS=$as_save_IFS | |
4028 | test -z "$as_dir" && as_dir=. | |
4029 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4030 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4031 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" |
4032 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4033 | break 2 | |
4034 | fi | |
4035 | done | |
4036 | done | |
631ef239 | 4037 | IFS=$as_save_IFS |
212380e3 AC |
4038 | |
4039 | ;; | |
4040 | esac | |
4041 | fi | |
4042 | RANLIB=$ac_cv_path_RANLIB | |
212380e3 | 4043 | if test -n "$RANLIB"; then |
631ef239 AC |
4044 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4045 | echo "${ECHO_T}$RANLIB" >&6; } | |
212380e3 | 4046 | else |
631ef239 AC |
4047 | { echo "$as_me:$LINENO: result: no" >&5 |
4048 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4049 | fi |
4050 | ||
631ef239 | 4051 | |
212380e3 AC |
4052 | # Extract the first word of "touch", so it can be a program name with args. |
4053 | set dummy touch; ac_word=$2 | |
631ef239 AC |
4054 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4055 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4056 | if test "${ac_cv_path_TOUCH+set}" = set; then |
4057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4058 | else | |
4059 | case $TOUCH in | |
4060 | [\\/]* | ?:[\\/]*) | |
4061 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
4062 | ;; | |
4063 | *) | |
4064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4065 | for as_dir in $PATH | |
4066 | do | |
4067 | IFS=$as_save_IFS | |
4068 | test -z "$as_dir" && as_dir=. | |
4069 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4070 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4071 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
4072 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4073 | break 2 | |
4074 | fi | |
4075 | done | |
4076 | done | |
631ef239 | 4077 | IFS=$as_save_IFS |
212380e3 AC |
4078 | |
4079 | ;; | |
4080 | esac | |
4081 | fi | |
4082 | TOUCH=$ac_cv_path_TOUCH | |
212380e3 | 4083 | if test -n "$TOUCH"; then |
631ef239 AC |
4084 | { echo "$as_me:$LINENO: result: $TOUCH" >&5 |
4085 | echo "${ECHO_T}$TOUCH" >&6; } | |
212380e3 | 4086 | else |
631ef239 AC |
4087 | { echo "$as_me:$LINENO: result: no" >&5 |
4088 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4089 | fi |
4090 | ||
4091 | ||
631ef239 | 4092 | |
212380e3 AC |
4093 | for ac_prog in 'bison -y' byacc |
4094 | do | |
4095 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4096 | set dummy $ac_prog; ac_word=$2 | |
631ef239 AC |
4097 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4099 | if test "${ac_cv_prog_YACC+set}" = set; then |
4100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4101 | else | |
4102 | if test -n "$YACC"; then | |
4103 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4104 | else | |
4105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4106 | for as_dir in $PATH | |
4107 | do | |
4108 | IFS=$as_save_IFS | |
4109 | test -z "$as_dir" && as_dir=. | |
4110 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4111 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4112 | ac_cv_prog_YACC="$ac_prog" |
4113 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4114 | break 2 | |
4115 | fi | |
4116 | done | |
4117 | done | |
631ef239 | 4118 | IFS=$as_save_IFS |
212380e3 AC |
4119 | |
4120 | fi | |
4121 | fi | |
4122 | YACC=$ac_cv_prog_YACC | |
4123 | if test -n "$YACC"; then | |
631ef239 AC |
4124 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
4125 | echo "${ECHO_T}$YACC" >&6; } | |
212380e3 | 4126 | else |
631ef239 AC |
4127 | { echo "$as_me:$LINENO: result: no" >&5 |
4128 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4129 | fi |
4130 | ||
631ef239 | 4131 | |
212380e3 AC |
4132 | test -n "$YACC" && break |
4133 | done | |
4134 | test -n "$YACC" || YACC="yacc" | |
4135 | ||
4136 | ||
4137 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then | |
4138 | { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5 | |
4139 | echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;} | |
4140 | { (exit 1); exit 1; }; } | |
4141 | fi | |
4142 | ||
4143 | for ac_prog in flex lex | |
4144 | do | |
4145 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4146 | set dummy $ac_prog; ac_word=$2 | |
631ef239 AC |
4147 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4149 | if test "${ac_cv_prog_LEX+set}" = set; then |
4150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4151 | else | |
4152 | if test -n "$LEX"; then | |
4153 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
4154 | else | |
4155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4156 | for as_dir in $PATH | |
4157 | do | |
4158 | IFS=$as_save_IFS | |
4159 | test -z "$as_dir" && as_dir=. | |
4160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4161 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4162 | ac_cv_prog_LEX="$ac_prog" |
4163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4164 | break 2 | |
4165 | fi | |
4166 | done | |
4167 | done | |
631ef239 | 4168 | IFS=$as_save_IFS |
212380e3 AC |
4169 | |
4170 | fi | |
4171 | fi | |
4172 | LEX=$ac_cv_prog_LEX | |
4173 | if test -n "$LEX"; then | |
631ef239 AC |
4174 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
4175 | echo "${ECHO_T}$LEX" >&6; } | |
212380e3 | 4176 | else |
631ef239 AC |
4177 | { echo "$as_me:$LINENO: result: no" >&5 |
4178 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4179 | fi |
4180 | ||
631ef239 | 4181 | |
212380e3 AC |
4182 | test -n "$LEX" && break |
4183 | done | |
4184 | test -n "$LEX" || LEX=":" | |
4185 | ||
631ef239 AC |
4186 | if test "x$LEX" != "x:"; then |
4187 | cat >conftest.l <<_ACEOF | |
4188 | %% | |
4189 | a { ECHO; } | |
4190 | b { REJECT; } | |
4191 | c { yymore (); } | |
4192 | d { yyless (1); } | |
4193 | e { yyless (input () != 0); } | |
4194 | f { unput (yytext[0]); } | |
4195 | . { BEGIN INITIAL; } | |
4196 | %% | |
4197 | #ifdef YYTEXT_POINTER | |
4198 | extern char *yytext; | |
212380e3 | 4199 | #endif |
212380e3 | 4200 | int |
631ef239 | 4201 | main (void) |
212380e3 | 4202 | { |
631ef239 | 4203 | return ! yylex () + ! yywrap (); |
212380e3 AC |
4204 | } |
4205 | _ACEOF | |
631ef239 AC |
4206 | { (ac_try="$LEX conftest.l" |
4207 | case "(($ac_try" in | |
4208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4209 | *) ac_try_echo=$ac_try;; | |
4210 | esac | |
4211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4212 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 AC |
4213 | ac_status=$? |
4214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4215 | (exit $ac_status); } |
4216 | { echo "$as_me:$LINENO: checking lex output file root" >&5 | |
4217 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } | |
4218 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
4219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
212380e3 | 4220 | else |
212380e3 | 4221 | |
631ef239 AC |
4222 | if test -f lex.yy.c; then |
4223 | ac_cv_prog_lex_root=lex.yy | |
4224 | elif test -f lexyy.c; then | |
4225 | ac_cv_prog_lex_root=lexyy | |
212380e3 | 4226 | else |
631ef239 AC |
4227 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
4228 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
4229 | { (exit 1); exit 1; }; } | |
4230 | fi | |
4231 | fi | |
4232 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | |
4233 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } | |
4234 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
4235 | ||
4236 | if test -z "${LEXLIB+set}"; then | |
4237 | { echo "$as_me:$LINENO: checking lex library" >&5 | |
4238 | echo $ECHO_N "checking lex library... $ECHO_C" >&6; } | |
4239 | if test "${ac_cv_lib_lex+set}" = set; then | |
212380e3 AC |
4240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4241 | else | |
212380e3 | 4242 | |
631ef239 AC |
4243 | ac_save_LIBS=$LIBS |
4244 | ac_cv_lib_lex='none needed' | |
4245 | for ac_lib in '' -lfl -ll; do | |
4246 | LIBS="$ac_lib $ac_save_LIBS" | |
4247 | cat >conftest.$ac_ext <<_ACEOF | |
4248 | `cat $LEX_OUTPUT_ROOT.c` | |
212380e3 AC |
4249 | _ACEOF |
4250 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
4251 | if { (ac_try="$ac_link" |
4252 | case "(($ac_try" in | |
4253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4254 | *) ac_try_echo=$ac_try;; | |
4255 | esac | |
4256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4257 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
4258 | ac_status=$? |
4259 | grep -v '^ *+' conftest.er1 >conftest.err | |
4260 | rm -f conftest.er1 | |
4261 | cat conftest.err >&5 | |
4262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4263 | (exit $ac_status); } && { |
4264 | test -z "$ac_c_werror_flag" || | |
4265 | test ! -s conftest.err | |
4266 | } && test -s conftest$ac_exeext && | |
4267 | $as_test_x conftest$ac_exeext; then | |
4268 | ac_cv_lib_lex=$ac_lib | |
212380e3 AC |
4269 | else |
4270 | echo "$as_me: failed program was:" >&5 | |
4271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4272 | ||
212380e3 AC |
4273 | |
4274 | fi | |
4275 | ||
631ef239 AC |
4276 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4277 | conftest$ac_exeext conftest.$ac_ext | |
4278 | test "$ac_cv_lib_lex" != 'none needed' && break | |
4279 | done | |
4280 | LIBS=$ac_save_LIBS | |
212380e3 | 4281 | |
212380e3 | 4282 | fi |
631ef239 AC |
4283 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 |
4284 | echo "${ECHO_T}$ac_cv_lib_lex" >&6; } | |
4285 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
212380e3 | 4286 | fi |
212380e3 | 4287 | |
631ef239 AC |
4288 | |
4289 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | |
4290 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } | |
212380e3 AC |
4291 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
4292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4293 | else | |
4294 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
631ef239 | 4295 | # default is implementation-dependent. Figure out which it is, since |
212380e3 AC |
4296 | # not all implementations provide the %pointer and %array declarations. |
4297 | ac_cv_prog_lex_yytext_pointer=no | |
212380e3 | 4298 | ac_save_LIBS=$LIBS |
631ef239 | 4299 | LIBS="$LEXLIB $ac_save_LIBS" |
212380e3 | 4300 | cat >conftest.$ac_ext <<_ACEOF |
631ef239 | 4301 | #define YYTEXT_POINTER 1 |
212380e3 AC |
4302 | `cat $LEX_OUTPUT_ROOT.c` |
4303 | _ACEOF | |
4304 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
4305 | if { (ac_try="$ac_link" |
4306 | case "(($ac_try" in | |
4307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4308 | *) ac_try_echo=$ac_try;; | |
4309 | esac | |
4310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4311 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
4312 | ac_status=$? |
4313 | grep -v '^ *+' conftest.er1 >conftest.err | |
4314 | rm -f conftest.er1 | |
4315 | cat conftest.err >&5 | |
4316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4317 | (exit $ac_status); } && { |
4318 | test -z "$ac_c_werror_flag" || | |
4319 | test ! -s conftest.err | |
4320 | } && test -s conftest$ac_exeext && | |
4321 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
4322 | ac_cv_prog_lex_yytext_pointer=yes |
4323 | else | |
4324 | echo "$as_me: failed program was:" >&5 | |
4325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4326 | ||
631ef239 | 4327 | |
212380e3 | 4328 | fi |
631ef239 AC |
4329 | |
4330 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
4331 | conftest$ac_exeext conftest.$ac_ext |
4332 | LIBS=$ac_save_LIBS | |
212380e3 AC |
4333 | |
4334 | fi | |
631ef239 AC |
4335 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
4336 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } | |
212380e3 AC |
4337 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
4338 | ||
4339 | cat >>confdefs.h <<\_ACEOF | |
4340 | #define YYTEXT_POINTER 1 | |
4341 | _ACEOF | |
4342 | ||
4343 | fi | |
631ef239 | 4344 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
212380e3 AC |
4345 | |
4346 | fi | |
4347 | ||
4348 | if test "$LEX" = ":"; then | |
4349 | { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5 | |
4350 | echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;} | |
4351 | { (exit 1); exit 1; }; } | |
4352 | fi | |
4353 | ||
4354 | if test "$libexecdir" = '${exec_prefix}/libexec' && | |
4355 | test "$localstatedir" = '${prefix}/var'; then | |
4356 | libexecdir='${bindir}' | |
4357 | localstatedir='${prefix}' | |
4358 | fi | |
4359 | ||
631ef239 AC |
4360 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4361 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
212380e3 AC |
4362 | if test "${ac_cv_header_stdc+set}" = set; then |
4363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4364 | else | |
4365 | cat >conftest.$ac_ext <<_ACEOF | |
4366 | /* confdefs.h. */ | |
4367 | _ACEOF | |
4368 | cat confdefs.h >>conftest.$ac_ext | |
4369 | cat >>conftest.$ac_ext <<_ACEOF | |
4370 | /* end confdefs.h. */ | |
4371 | #include <stdlib.h> | |
4372 | #include <stdarg.h> | |
4373 | #include <string.h> | |
4374 | #include <float.h> | |
4375 | ||
4376 | int | |
4377 | main () | |
4378 | { | |
4379 | ||
4380 | ; | |
4381 | return 0; | |
4382 | } | |
4383 | _ACEOF | |
4384 | rm -f conftest.$ac_objext | |
631ef239 AC |
4385 | if { (ac_try="$ac_compile" |
4386 | case "(($ac_try" in | |
4387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4388 | *) ac_try_echo=$ac_try;; | |
4389 | esac | |
4390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4391 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4392 | ac_status=$? |
4393 | grep -v '^ *+' conftest.er1 >conftest.err | |
4394 | rm -f conftest.er1 | |
4395 | cat conftest.err >&5 | |
4396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4397 | (exit $ac_status); } && { |
4398 | test -z "$ac_c_werror_flag" || | |
4399 | test ! -s conftest.err | |
4400 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4401 | ac_cv_header_stdc=yes |
4402 | else | |
4403 | echo "$as_me: failed program was:" >&5 | |
4404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4405 | ||
631ef239 | 4406 | ac_cv_header_stdc=no |
212380e3 | 4407 | fi |
631ef239 AC |
4408 | |
4409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
4410 | |
4411 | if test $ac_cv_header_stdc = yes; then | |
4412 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4413 | cat >conftest.$ac_ext <<_ACEOF | |
4414 | /* confdefs.h. */ | |
4415 | _ACEOF | |
4416 | cat confdefs.h >>conftest.$ac_ext | |
4417 | cat >>conftest.$ac_ext <<_ACEOF | |
4418 | /* end confdefs.h. */ | |
4419 | #include <string.h> | |
4420 | ||
4421 | _ACEOF | |
4422 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4423 | $EGREP "memchr" >/dev/null 2>&1; then | |
4424 | : | |
4425 | else | |
4426 | ac_cv_header_stdc=no | |
4427 | fi | |
4428 | rm -f conftest* | |
4429 | ||
4430 | fi | |
4431 | ||
4432 | if test $ac_cv_header_stdc = yes; then | |
4433 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4434 | cat >conftest.$ac_ext <<_ACEOF | |
4435 | /* confdefs.h. */ | |
4436 | _ACEOF | |
4437 | cat confdefs.h >>conftest.$ac_ext | |
4438 | cat >>conftest.$ac_ext <<_ACEOF | |
4439 | /* end confdefs.h. */ | |
4440 | #include <stdlib.h> | |
4441 | ||
4442 | _ACEOF | |
4443 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4444 | $EGREP "free" >/dev/null 2>&1; then | |
4445 | : | |
4446 | else | |
4447 | ac_cv_header_stdc=no | |
4448 | fi | |
4449 | rm -f conftest* | |
4450 | ||
4451 | fi | |
4452 | ||
4453 | if test $ac_cv_header_stdc = yes; then | |
4454 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4455 | if test "$cross_compiling" = yes; then | |
4456 | : | |
4457 | else | |
4458 | cat >conftest.$ac_ext <<_ACEOF | |
4459 | /* confdefs.h. */ | |
4460 | _ACEOF | |
4461 | cat confdefs.h >>conftest.$ac_ext | |
4462 | cat >>conftest.$ac_ext <<_ACEOF | |
4463 | /* end confdefs.h. */ | |
4464 | #include <ctype.h> | |
631ef239 | 4465 | #include <stdlib.h> |
212380e3 AC |
4466 | #if ((' ' & 0x0FF) == 0x020) |
4467 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4468 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4469 | #else | |
4470 | # define ISLOWER(c) \ | |
4471 | (('a' <= (c) && (c) <= 'i') \ | |
4472 | || ('j' <= (c) && (c) <= 'r') \ | |
4473 | || ('s' <= (c) && (c) <= 'z')) | |
4474 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4475 | #endif | |
4476 | ||
4477 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4478 | int | |
4479 | main () | |
4480 | { | |
4481 | int i; | |
4482 | for (i = 0; i < 256; i++) | |
4483 | if (XOR (islower (i), ISLOWER (i)) | |
4484 | || toupper (i) != TOUPPER (i)) | |
631ef239 AC |
4485 | return 2; |
4486 | return 0; | |
212380e3 AC |
4487 | } |
4488 | _ACEOF | |
4489 | rm -f conftest$ac_exeext | |
631ef239 AC |
4490 | if { (ac_try="$ac_link" |
4491 | case "(($ac_try" in | |
4492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4493 | *) ac_try_echo=$ac_try;; | |
4494 | esac | |
4495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4496 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
4497 | ac_status=$? |
4498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4499 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
4500 | { (case "(($ac_try" in |
4501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4502 | *) ac_try_echo=$ac_try;; | |
4503 | esac | |
4504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4505 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
4506 | ac_status=$? |
4507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4508 | (exit $ac_status); }; }; then | |
4509 | : | |
4510 | else | |
4511 | echo "$as_me: program exited with status $ac_status" >&5 | |
4512 | echo "$as_me: failed program was:" >&5 | |
4513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4514 | ||
4515 | ( exit $ac_status ) | |
4516 | ac_cv_header_stdc=no | |
4517 | fi | |
631ef239 | 4518 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 4519 | fi |
631ef239 AC |
4520 | |
4521 | ||
212380e3 AC |
4522 | fi |
4523 | fi | |
631ef239 AC |
4524 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4525 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
212380e3 AC |
4526 | if test $ac_cv_header_stdc = yes; then |
4527 | ||
4528 | cat >>confdefs.h <<\_ACEOF | |
4529 | #define STDC_HEADERS 1 | |
4530 | _ACEOF | |
4531 | ||
4532 | fi | |
4533 | ||
4534 | ||
4535 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4536 | ||
4537 | ||
4538 | ||
4539 | ||
4540 | ||
4541 | ||
4542 | ||
4543 | ||
4544 | ||
4545 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4546 | inttypes.h stdint.h unistd.h | |
4547 | do | |
4548 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
4549 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4550 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4551 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
4552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4553 | else | |
4554 | cat >conftest.$ac_ext <<_ACEOF | |
4555 | /* confdefs.h. */ | |
4556 | _ACEOF | |
4557 | cat confdefs.h >>conftest.$ac_ext | |
4558 | cat >>conftest.$ac_ext <<_ACEOF | |
4559 | /* end confdefs.h. */ | |
4560 | $ac_includes_default | |
4561 | ||
4562 | #include <$ac_header> | |
4563 | _ACEOF | |
4564 | rm -f conftest.$ac_objext | |
631ef239 AC |
4565 | if { (ac_try="$ac_compile" |
4566 | case "(($ac_try" in | |
4567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4568 | *) ac_try_echo=$ac_try;; | |
4569 | esac | |
4570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4571 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4572 | ac_status=$? |
4573 | grep -v '^ *+' conftest.er1 >conftest.err | |
4574 | rm -f conftest.er1 | |
4575 | cat conftest.err >&5 | |
4576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4577 | (exit $ac_status); } && { |
4578 | test -z "$ac_c_werror_flag" || | |
4579 | test ! -s conftest.err | |
4580 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4581 | eval "$as_ac_Header=yes" |
4582 | else | |
4583 | echo "$as_me: failed program was:" >&5 | |
4584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4585 | ||
631ef239 | 4586 | eval "$as_ac_Header=no" |
212380e3 | 4587 | fi |
631ef239 AC |
4588 | |
4589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 4590 | fi |
631ef239 AC |
4591 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4592 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4593 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
4594 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4595 | cat >>confdefs.h <<_ACEOF | |
4596 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4597 | _ACEOF | |
4598 | ||
4599 | fi | |
4600 | ||
4601 | done | |
4602 | ||
4603 | ||
4604 | ||
4605 | ||
4606 | ||
4607 | ||
4608 | ||
4609 | ||
4610 | ||
4611 | ||
4612 | ||
4613 | ||
4614 | ||
4615 | for ac_header in crypt.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h sys/wait.h wait.h sys/epoll.h sys/uio.h machine/endian.h | |
4616 | do | |
4617 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
4618 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4619 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4620 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4621 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
4622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4623 | fi | |
631ef239 AC |
4624 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4625 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4626 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
4627 | else |
4628 | # Is the header compilable? | |
631ef239 AC |
4629 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4630 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 AC |
4631 | cat >conftest.$ac_ext <<_ACEOF |
4632 | /* confdefs.h. */ | |
4633 | _ACEOF | |
4634 | cat confdefs.h >>conftest.$ac_ext | |
4635 | cat >>conftest.$ac_ext <<_ACEOF | |
4636 | /* end confdefs.h. */ | |
4637 | $ac_includes_default | |
4638 | #include <$ac_header> | |
4639 | _ACEOF | |
4640 | rm -f conftest.$ac_objext | |
631ef239 AC |
4641 | if { (ac_try="$ac_compile" |
4642 | case "(($ac_try" in | |
4643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4644 | *) ac_try_echo=$ac_try;; | |
4645 | esac | |
4646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4647 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4648 | ac_status=$? |
4649 | grep -v '^ *+' conftest.er1 >conftest.err | |
4650 | rm -f conftest.er1 | |
4651 | cat conftest.err >&5 | |
4652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4653 | (exit $ac_status); } && { |
4654 | test -z "$ac_c_werror_flag" || | |
4655 | test ! -s conftest.err | |
4656 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4657 | ac_header_compiler=yes |
4658 | else | |
4659 | echo "$as_me: failed program was:" >&5 | |
4660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4661 | ||
631ef239 | 4662 | ac_header_compiler=no |
212380e3 | 4663 | fi |
631ef239 AC |
4664 | |
4665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4666 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4667 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
4668 | |
4669 | # Is the header present? | |
631ef239 AC |
4670 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4671 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 AC |
4672 | cat >conftest.$ac_ext <<_ACEOF |
4673 | /* confdefs.h. */ | |
4674 | _ACEOF | |
4675 | cat confdefs.h >>conftest.$ac_ext | |
4676 | cat >>conftest.$ac_ext <<_ACEOF | |
4677 | /* end confdefs.h. */ | |
4678 | #include <$ac_header> | |
4679 | _ACEOF | |
631ef239 AC |
4680 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4681 | case "(($ac_try" in | |
4682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4683 | *) ac_try_echo=$ac_try;; | |
4684 | esac | |
4685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4686 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
4687 | ac_status=$? |
4688 | grep -v '^ *+' conftest.er1 >conftest.err | |
4689 | rm -f conftest.er1 | |
4690 | cat conftest.err >&5 | |
4691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4692 | (exit $ac_status); } >/dev/null && { |
4693 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4694 | test ! -s conftest.err | |
4695 | }; then | |
212380e3 AC |
4696 | ac_header_preproc=yes |
4697 | else | |
4698 | echo "$as_me: failed program was:" >&5 | |
4699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4700 | ||
4701 | ac_header_preproc=no | |
4702 | fi | |
631ef239 | 4703 | |
212380e3 | 4704 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
4705 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4706 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
4707 | |
4708 | # So? What about this header? | |
4709 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4710 | yes:no: ) | |
4711 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4712 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4713 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4714 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4715 | ac_header_preproc=yes | |
4716 | ;; | |
4717 | no:yes:* ) | |
4718 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4719 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4720 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4721 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4722 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4723 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4724 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4725 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4726 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4727 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4728 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4729 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 4730 | |
212380e3 AC |
4731 | ;; |
4732 | esac | |
631ef239 AC |
4733 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4734 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4735 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
4736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4737 | else | |
4738 | eval "$as_ac_Header=\$ac_header_preproc" | |
4739 | fi | |
631ef239 AC |
4740 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4741 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4742 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
4743 | |
4744 | fi | |
4745 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4746 | cat >>confdefs.h <<_ACEOF | |
4747 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4748 | _ACEOF | |
4749 | ||
4750 | fi | |
4751 | ||
4752 | done | |
4753 | ||
4754 | ||
4755 | ||
631ef239 AC |
4756 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4757 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
212380e3 AC |
4758 | if test "${ac_cv_c_const+set}" = set; then |
4759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4760 | else | |
4761 | cat >conftest.$ac_ext <<_ACEOF | |
4762 | /* confdefs.h. */ | |
4763 | _ACEOF | |
4764 | cat confdefs.h >>conftest.$ac_ext | |
4765 | cat >>conftest.$ac_ext <<_ACEOF | |
4766 | /* end confdefs.h. */ | |
4767 | ||
4768 | int | |
4769 | main () | |
4770 | { | |
4771 | /* FIXME: Include the comments suggested by Paul. */ | |
4772 | #ifndef __cplusplus | |
4773 | /* Ultrix mips cc rejects this. */ | |
4774 | typedef int charset[2]; | |
631ef239 | 4775 | const charset cs; |
212380e3 | 4776 | /* SunOS 4.1.1 cc rejects this. */ |
631ef239 AC |
4777 | char const *const *pcpcc; |
4778 | char **ppc; | |
212380e3 AC |
4779 | /* NEC SVR4.0.2 mips cc rejects this. */ |
4780 | struct point {int x, y;}; | |
4781 | static struct point const zero = {0,0}; | |
4782 | /* AIX XL C 1.02.0.0 rejects this. | |
4783 | It does not let you subtract one const X* pointer from another in | |
4784 | an arm of an if-expression whose if-part is not a constant | |
4785 | expression */ | |
4786 | const char *g = "string"; | |
631ef239 | 4787 | pcpcc = &g + (g ? g-g : 0); |
212380e3 | 4788 | /* HPUX 7.0 cc rejects these. */ |
631ef239 AC |
4789 | ++pcpcc; |
4790 | ppc = (char**) pcpcc; | |
4791 | pcpcc = (char const *const *) ppc; | |
212380e3 AC |
4792 | { /* SCO 3.2v4 cc rejects this. */ |
4793 | char *t; | |
4794 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4795 | ||
4796 | *t++ = 0; | |
631ef239 | 4797 | if (s) return 0; |
212380e3 AC |
4798 | } |
4799 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4800 | int x[] = {25, 17}; | |
4801 | const int *foo = &x[0]; | |
4802 | ++foo; | |
4803 | } | |
4804 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4805 | typedef const int *iptr; | |
4806 | iptr p = 0; | |
4807 | ++p; | |
4808 | } | |
4809 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4810 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4811 | struct s { int j; const int *ap[3]; }; | |
4812 | struct s *b; b->j = 5; | |
4813 | } | |
4814 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4815 | const int foo = 10; | |
631ef239 | 4816 | if (!foo) return 0; |
212380e3 | 4817 | } |
631ef239 | 4818 | return !cs[0] && !zero.x; |
212380e3 AC |
4819 | #endif |
4820 | ||
4821 | ; | |
4822 | return 0; | |
4823 | } | |
4824 | _ACEOF | |
4825 | rm -f conftest.$ac_objext | |
631ef239 AC |
4826 | if { (ac_try="$ac_compile" |
4827 | case "(($ac_try" in | |
4828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4829 | *) ac_try_echo=$ac_try;; | |
4830 | esac | |
4831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4832 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4833 | ac_status=$? |
4834 | grep -v '^ *+' conftest.er1 >conftest.err | |
4835 | rm -f conftest.er1 | |
4836 | cat conftest.err >&5 | |
4837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4838 | (exit $ac_status); } && { |
4839 | test -z "$ac_c_werror_flag" || | |
4840 | test ! -s conftest.err | |
4841 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4842 | ac_cv_c_const=yes |
4843 | else | |
4844 | echo "$as_me: failed program was:" >&5 | |
4845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4846 | ||
631ef239 | 4847 | ac_cv_c_const=no |
212380e3 | 4848 | fi |
631ef239 AC |
4849 | |
4850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 4851 | fi |
631ef239 AC |
4852 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4853 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
212380e3 AC |
4854 | if test $ac_cv_c_const = no; then |
4855 | ||
4856 | cat >>confdefs.h <<\_ACEOF | |
4857 | #define const | |
4858 | _ACEOF | |
4859 | ||
4860 | fi | |
4861 | ||
4862 | if test "$ac_cv_header_machine_endian_h" = "no" ; then | |
631ef239 AC |
4863 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
4864 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
212380e3 AC |
4865 | if test "${ac_cv_c_bigendian+set}" = set; then |
4866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4867 | else | |
4868 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4869 | cat >conftest.$ac_ext <<_ACEOF | |
4870 | /* confdefs.h. */ | |
4871 | _ACEOF | |
4872 | cat confdefs.h >>conftest.$ac_ext | |
4873 | cat >>conftest.$ac_ext <<_ACEOF | |
4874 | /* end confdefs.h. */ | |
4875 | #include <sys/types.h> | |
4876 | #include <sys/param.h> | |
4877 | ||
4878 | int | |
4879 | main () | |
4880 | { | |
631ef239 AC |
4881 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
4882 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
212380e3 AC |
4883 | bogus endian macros |
4884 | #endif | |
4885 | ||
4886 | ; | |
4887 | return 0; | |
4888 | } | |
4889 | _ACEOF | |
4890 | rm -f conftest.$ac_objext | |
631ef239 AC |
4891 | if { (ac_try="$ac_compile" |
4892 | case "(($ac_try" in | |
4893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4894 | *) ac_try_echo=$ac_try;; | |
4895 | esac | |
4896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4897 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4898 | ac_status=$? |
4899 | grep -v '^ *+' conftest.er1 >conftest.err | |
4900 | rm -f conftest.er1 | |
4901 | cat conftest.err >&5 | |
4902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4903 | (exit $ac_status); } && { |
4904 | test -z "$ac_c_werror_flag" || | |
4905 | test ! -s conftest.err | |
4906 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4907 | # It does; now see whether it defined to BIG_ENDIAN or not. |
4908 | cat >conftest.$ac_ext <<_ACEOF | |
4909 | /* confdefs.h. */ | |
4910 | _ACEOF | |
4911 | cat confdefs.h >>conftest.$ac_ext | |
4912 | cat >>conftest.$ac_ext <<_ACEOF | |
4913 | /* end confdefs.h. */ | |
4914 | #include <sys/types.h> | |
4915 | #include <sys/param.h> | |
4916 | ||
4917 | int | |
4918 | main () | |
4919 | { | |
4920 | #if BYTE_ORDER != BIG_ENDIAN | |
4921 | not big endian | |
4922 | #endif | |
4923 | ||
4924 | ; | |
4925 | return 0; | |
4926 | } | |
4927 | _ACEOF | |
4928 | rm -f conftest.$ac_objext | |
631ef239 AC |
4929 | if { (ac_try="$ac_compile" |
4930 | case "(($ac_try" in | |
4931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4932 | *) ac_try_echo=$ac_try;; | |
4933 | esac | |
4934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4935 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4936 | ac_status=$? |
4937 | grep -v '^ *+' conftest.er1 >conftest.err | |
4938 | rm -f conftest.er1 | |
4939 | cat conftest.err >&5 | |
4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4941 | (exit $ac_status); } && { |
4942 | test -z "$ac_c_werror_flag" || | |
4943 | test ! -s conftest.err | |
4944 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4945 | ac_cv_c_bigendian=yes |
4946 | else | |
4947 | echo "$as_me: failed program was:" >&5 | |
4948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4949 | ||
631ef239 | 4950 | ac_cv_c_bigendian=no |
212380e3 | 4951 | fi |
631ef239 AC |
4952 | |
4953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
4954 | else |
4955 | echo "$as_me: failed program was:" >&5 | |
4956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4957 | ||
631ef239 | 4958 | # It does not; compile a test program. |
212380e3 AC |
4959 | if test "$cross_compiling" = yes; then |
4960 | # try to guess the endianness by grepping values into an object file | |
4961 | ac_cv_c_bigendian=unknown | |
4962 | cat >conftest.$ac_ext <<_ACEOF | |
4963 | /* confdefs.h. */ | |
4964 | _ACEOF | |
4965 | cat confdefs.h >>conftest.$ac_ext | |
4966 | cat >>conftest.$ac_ext <<_ACEOF | |
4967 | /* end confdefs.h. */ | |
631ef239 AC |
4968 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
4969 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
212380e3 | 4970 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
631ef239 AC |
4971 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
4972 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
212380e3 AC |
4973 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
4974 | int | |
4975 | main () | |
4976 | { | |
4977 | _ascii (); _ebcdic (); | |
4978 | ; | |
4979 | return 0; | |
4980 | } | |
4981 | _ACEOF | |
4982 | rm -f conftest.$ac_objext | |
631ef239 AC |
4983 | if { (ac_try="$ac_compile" |
4984 | case "(($ac_try" in | |
4985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4986 | *) ac_try_echo=$ac_try;; | |
4987 | esac | |
4988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4989 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4990 | ac_status=$? |
4991 | grep -v '^ *+' conftest.er1 >conftest.err | |
4992 | rm -f conftest.er1 | |
4993 | cat conftest.err >&5 | |
4994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4995 | (exit $ac_status); } && { |
4996 | test -z "$ac_c_werror_flag" || | |
4997 | test ! -s conftest.err | |
4998 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4999 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
5000 | ac_cv_c_bigendian=yes | |
5001 | fi | |
5002 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5003 | if test "$ac_cv_c_bigendian" = unknown; then | |
5004 | ac_cv_c_bigendian=no | |
5005 | else | |
5006 | # finding both strings is unlikely to happen, but who knows? | |
5007 | ac_cv_c_bigendian=unknown | |
5008 | fi | |
5009 | fi | |
5010 | else | |
5011 | echo "$as_me: failed program was:" >&5 | |
5012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5013 | ||
631ef239 | 5014 | |
212380e3 | 5015 | fi |
631ef239 AC |
5016 | |
5017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5018 | else |
5019 | cat >conftest.$ac_ext <<_ACEOF | |
5020 | /* confdefs.h. */ | |
5021 | _ACEOF | |
5022 | cat confdefs.h >>conftest.$ac_ext | |
5023 | cat >>conftest.$ac_ext <<_ACEOF | |
5024 | /* end confdefs.h. */ | |
631ef239 | 5025 | $ac_includes_default |
212380e3 AC |
5026 | int |
5027 | main () | |
5028 | { | |
631ef239 | 5029 | |
212380e3 AC |
5030 | /* Are we little or big endian? From Harbison&Steele. */ |
5031 | union | |
5032 | { | |
631ef239 AC |
5033 | long int l; |
5034 | char c[sizeof (long int)]; | |
212380e3 AC |
5035 | } u; |
5036 | u.l = 1; | |
631ef239 AC |
5037 | return u.c[sizeof (long int) - 1] == 1; |
5038 | ||
5039 | ; | |
5040 | return 0; | |
212380e3 AC |
5041 | } |
5042 | _ACEOF | |
5043 | rm -f conftest$ac_exeext | |
631ef239 AC |
5044 | if { (ac_try="$ac_link" |
5045 | case "(($ac_try" in | |
5046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5047 | *) ac_try_echo=$ac_try;; | |
5048 | esac | |
5049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5050 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
5051 | ac_status=$? |
5052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5053 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
5054 | { (case "(($ac_try" in |
5055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5056 | *) ac_try_echo=$ac_try;; | |
5057 | esac | |
5058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5059 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
5060 | ac_status=$? |
5061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5062 | (exit $ac_status); }; }; then | |
5063 | ac_cv_c_bigendian=no | |
5064 | else | |
5065 | echo "$as_me: program exited with status $ac_status" >&5 | |
5066 | echo "$as_me: failed program was:" >&5 | |
5067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5068 | ||
5069 | ( exit $ac_status ) | |
5070 | ac_cv_c_bigendian=yes | |
5071 | fi | |
631ef239 | 5072 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5073 | fi |
631ef239 AC |
5074 | |
5075 | ||
212380e3 | 5076 | fi |
631ef239 AC |
5077 | |
5078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5079 | fi |
631ef239 AC |
5080 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
5081 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
212380e3 AC |
5082 | case $ac_cv_c_bigendian in |
5083 | yes) | |
5084 | ||
5085 | cat >>confdefs.h <<\_ACEOF | |
5086 | #define WORDS_BIGENDIAN 1 | |
5087 | _ACEOF | |
5088 | ;; | |
5089 | no) | |
5090 | ;; | |
5091 | *) | |
5092 | { { echo "$as_me:$LINENO: error: unknown endianness | |
5093 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
5094 | echo "$as_me: error: unknown endianness | |
5095 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
5096 | { (exit 1); exit 1; }; } ;; | |
5097 | esac | |
5098 | ||
5099 | fi | |
631ef239 AC |
5100 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5101 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
212380e3 AC |
5102 | if test "${ac_cv_type_pid_t+set}" = set; then |
5103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5104 | else | |
5105 | cat >conftest.$ac_ext <<_ACEOF | |
5106 | /* confdefs.h. */ | |
5107 | _ACEOF | |
5108 | cat confdefs.h >>conftest.$ac_ext | |
5109 | cat >>conftest.$ac_ext <<_ACEOF | |
5110 | /* end confdefs.h. */ | |
5111 | $ac_includes_default | |
631ef239 | 5112 | typedef pid_t ac__type_new_; |
212380e3 AC |
5113 | int |
5114 | main () | |
5115 | { | |
631ef239 | 5116 | if ((ac__type_new_ *) 0) |
212380e3 | 5117 | return 0; |
631ef239 | 5118 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5119 | return 0; |
5120 | ; | |
5121 | return 0; | |
5122 | } | |
5123 | _ACEOF | |
5124 | rm -f conftest.$ac_objext | |
631ef239 AC |
5125 | if { (ac_try="$ac_compile" |
5126 | case "(($ac_try" in | |
5127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5128 | *) ac_try_echo=$ac_try;; | |
5129 | esac | |
5130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5131 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5132 | ac_status=$? |
5133 | grep -v '^ *+' conftest.er1 >conftest.err | |
5134 | rm -f conftest.er1 | |
5135 | cat conftest.err >&5 | |
5136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5137 | (exit $ac_status); } && { |
5138 | test -z "$ac_c_werror_flag" || | |
5139 | test ! -s conftest.err | |
5140 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5141 | ac_cv_type_pid_t=yes |
5142 | else | |
5143 | echo "$as_me: failed program was:" >&5 | |
5144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5145 | ||
631ef239 | 5146 | ac_cv_type_pid_t=no |
212380e3 | 5147 | fi |
631ef239 AC |
5148 | |
5149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5150 | fi |
631ef239 AC |
5151 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5152 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
212380e3 AC |
5153 | if test $ac_cv_type_pid_t = yes; then |
5154 | : | |
5155 | else | |
5156 | ||
5157 | cat >>confdefs.h <<_ACEOF | |
5158 | #define pid_t int | |
5159 | _ACEOF | |
5160 | ||
5161 | fi | |
5162 | ||
631ef239 AC |
5163 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5164 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
212380e3 AC |
5165 | if test "${ac_cv_type_size_t+set}" = set; then |
5166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5167 | else | |
5168 | cat >conftest.$ac_ext <<_ACEOF | |
5169 | /* confdefs.h. */ | |
5170 | _ACEOF | |
5171 | cat confdefs.h >>conftest.$ac_ext | |
5172 | cat >>conftest.$ac_ext <<_ACEOF | |
5173 | /* end confdefs.h. */ | |
5174 | $ac_includes_default | |
631ef239 | 5175 | typedef size_t ac__type_new_; |
212380e3 AC |
5176 | int |
5177 | main () | |
5178 | { | |
631ef239 | 5179 | if ((ac__type_new_ *) 0) |
212380e3 | 5180 | return 0; |
631ef239 | 5181 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5182 | return 0; |
5183 | ; | |
5184 | return 0; | |
5185 | } | |
5186 | _ACEOF | |
5187 | rm -f conftest.$ac_objext | |
631ef239 AC |
5188 | if { (ac_try="$ac_compile" |
5189 | case "(($ac_try" in | |
5190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5191 | *) ac_try_echo=$ac_try;; | |
5192 | esac | |
5193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5194 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5195 | ac_status=$? |
5196 | grep -v '^ *+' conftest.er1 >conftest.err | |
5197 | rm -f conftest.er1 | |
5198 | cat conftest.err >&5 | |
5199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5200 | (exit $ac_status); } && { |
5201 | test -z "$ac_c_werror_flag" || | |
5202 | test ! -s conftest.err | |
5203 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5204 | ac_cv_type_size_t=yes |
5205 | else | |
5206 | echo "$as_me: failed program was:" >&5 | |
5207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5208 | ||
631ef239 | 5209 | ac_cv_type_size_t=no |
212380e3 | 5210 | fi |
631ef239 AC |
5211 | |
5212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5213 | fi |
631ef239 AC |
5214 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5215 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
212380e3 AC |
5216 | if test $ac_cv_type_size_t = yes; then |
5217 | : | |
5218 | else | |
5219 | ||
5220 | cat >>confdefs.h <<_ACEOF | |
631ef239 | 5221 | #define size_t unsigned int |
212380e3 AC |
5222 | _ACEOF |
5223 | ||
5224 | fi | |
5225 | ||
631ef239 AC |
5226 | { echo "$as_me:$LINENO: checking for short" >&5 |
5227 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } | |
212380e3 AC |
5228 | if test "${ac_cv_type_short+set}" = set; then |
5229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5230 | else | |
5231 | cat >conftest.$ac_ext <<_ACEOF | |
5232 | /* confdefs.h. */ | |
5233 | _ACEOF | |
5234 | cat confdefs.h >>conftest.$ac_ext | |
5235 | cat >>conftest.$ac_ext <<_ACEOF | |
5236 | /* end confdefs.h. */ | |
5237 | $ac_includes_default | |
631ef239 | 5238 | typedef short ac__type_new_; |
212380e3 AC |
5239 | int |
5240 | main () | |
5241 | { | |
631ef239 | 5242 | if ((ac__type_new_ *) 0) |
212380e3 | 5243 | return 0; |
631ef239 | 5244 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5245 | return 0; |
5246 | ; | |
5247 | return 0; | |
5248 | } | |
5249 | _ACEOF | |
5250 | rm -f conftest.$ac_objext | |
631ef239 AC |
5251 | if { (ac_try="$ac_compile" |
5252 | case "(($ac_try" in | |
5253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5254 | *) ac_try_echo=$ac_try;; | |
5255 | esac | |
5256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5257 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5258 | ac_status=$? |
5259 | grep -v '^ *+' conftest.er1 >conftest.err | |
5260 | rm -f conftest.er1 | |
5261 | cat conftest.err >&5 | |
5262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5263 | (exit $ac_status); } && { |
5264 | test -z "$ac_c_werror_flag" || | |
5265 | test ! -s conftest.err | |
5266 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5267 | ac_cv_type_short=yes |
5268 | else | |
5269 | echo "$as_me: failed program was:" >&5 | |
5270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5271 | ||
631ef239 | 5272 | ac_cv_type_short=no |
212380e3 | 5273 | fi |
631ef239 AC |
5274 | |
5275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5276 | fi |
631ef239 AC |
5277 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
5278 | echo "${ECHO_T}$ac_cv_type_short" >&6; } | |
212380e3 | 5279 | |
631ef239 AC |
5280 | # The cast to long int works around a bug in the HP C Compiler |
5281 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5282 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5283 | # This bug is HP SR number 8606223364. | |
5284 | { echo "$as_me:$LINENO: checking size of short" >&5 | |
5285 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } | |
212380e3 AC |
5286 | if test "${ac_cv_sizeof_short+set}" = set; then |
5287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5288 | else | |
212380e3 AC |
5289 | if test "$cross_compiling" = yes; then |
5290 | # Depending upon the size, compute the lo and hi bounds. | |
5291 | cat >conftest.$ac_ext <<_ACEOF | |
5292 | /* confdefs.h. */ | |
5293 | _ACEOF | |
5294 | cat confdefs.h >>conftest.$ac_ext | |
5295 | cat >>conftest.$ac_ext <<_ACEOF | |
5296 | /* end confdefs.h. */ | |
5297 | $ac_includes_default | |
631ef239 | 5298 | typedef short ac__type_sizeof_; |
212380e3 AC |
5299 | int |
5300 | main () | |
5301 | { | |
631ef239 | 5302 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
5303 | test_array [0] = 0 |
5304 | ||
5305 | ; | |
5306 | return 0; | |
5307 | } | |
5308 | _ACEOF | |
5309 | rm -f conftest.$ac_objext | |
631ef239 AC |
5310 | if { (ac_try="$ac_compile" |
5311 | case "(($ac_try" in | |
5312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5313 | *) ac_try_echo=$ac_try;; | |
5314 | esac | |
5315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5316 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5317 | ac_status=$? |
5318 | grep -v '^ *+' conftest.er1 >conftest.err | |
5319 | rm -f conftest.er1 | |
5320 | cat conftest.err >&5 | |
5321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5322 | (exit $ac_status); } && { |
5323 | test -z "$ac_c_werror_flag" || | |
5324 | test ! -s conftest.err | |
5325 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5326 | ac_lo=0 ac_mid=0 |
5327 | while :; do | |
5328 | cat >conftest.$ac_ext <<_ACEOF | |
5329 | /* confdefs.h. */ | |
5330 | _ACEOF | |
5331 | cat confdefs.h >>conftest.$ac_ext | |
5332 | cat >>conftest.$ac_ext <<_ACEOF | |
5333 | /* end confdefs.h. */ | |
5334 | $ac_includes_default | |
631ef239 | 5335 | typedef short ac__type_sizeof_; |
212380e3 AC |
5336 | int |
5337 | main () | |
5338 | { | |
631ef239 | 5339 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5340 | test_array [0] = 0 |
5341 | ||
5342 | ; | |
5343 | return 0; | |
5344 | } | |
5345 | _ACEOF | |
5346 | rm -f conftest.$ac_objext | |
631ef239 AC |
5347 | if { (ac_try="$ac_compile" |
5348 | case "(($ac_try" in | |
5349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5350 | *) ac_try_echo=$ac_try;; | |
5351 | esac | |
5352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5353 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5354 | ac_status=$? |
5355 | grep -v '^ *+' conftest.er1 >conftest.err | |
5356 | rm -f conftest.er1 | |
5357 | cat conftest.err >&5 | |
5358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5359 | (exit $ac_status); } && { |
5360 | test -z "$ac_c_werror_flag" || | |
5361 | test ! -s conftest.err | |
5362 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5363 | ac_hi=$ac_mid; break |
5364 | else | |
5365 | echo "$as_me: failed program was:" >&5 | |
5366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5367 | ||
631ef239 AC |
5368 | ac_lo=`expr $ac_mid + 1` |
5369 | if test $ac_lo -le $ac_mid; then | |
5370 | ac_lo= ac_hi= | |
5371 | break | |
5372 | fi | |
5373 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 5374 | fi |
631ef239 AC |
5375 | |
5376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5377 | done |
5378 | else | |
5379 | echo "$as_me: failed program was:" >&5 | |
5380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5381 | ||
631ef239 | 5382 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
5383 | /* confdefs.h. */ |
5384 | _ACEOF | |
5385 | cat confdefs.h >>conftest.$ac_ext | |
5386 | cat >>conftest.$ac_ext <<_ACEOF | |
5387 | /* end confdefs.h. */ | |
5388 | $ac_includes_default | |
631ef239 | 5389 | typedef short ac__type_sizeof_; |
212380e3 AC |
5390 | int |
5391 | main () | |
5392 | { | |
631ef239 | 5393 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
5394 | test_array [0] = 0 |
5395 | ||
5396 | ; | |
5397 | return 0; | |
5398 | } | |
5399 | _ACEOF | |
5400 | rm -f conftest.$ac_objext | |
631ef239 AC |
5401 | if { (ac_try="$ac_compile" |
5402 | case "(($ac_try" in | |
5403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5404 | *) ac_try_echo=$ac_try;; | |
5405 | esac | |
5406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5407 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5408 | ac_status=$? |
5409 | grep -v '^ *+' conftest.er1 >conftest.err | |
5410 | rm -f conftest.er1 | |
5411 | cat conftest.err >&5 | |
5412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5413 | (exit $ac_status); } && { |
5414 | test -z "$ac_c_werror_flag" || | |
5415 | test ! -s conftest.err | |
5416 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5417 | ac_hi=-1 ac_mid=-1 |
5418 | while :; do | |
5419 | cat >conftest.$ac_ext <<_ACEOF | |
5420 | /* confdefs.h. */ | |
5421 | _ACEOF | |
5422 | cat confdefs.h >>conftest.$ac_ext | |
5423 | cat >>conftest.$ac_ext <<_ACEOF | |
5424 | /* end confdefs.h. */ | |
5425 | $ac_includes_default | |
631ef239 | 5426 | typedef short ac__type_sizeof_; |
212380e3 AC |
5427 | int |
5428 | main () | |
5429 | { | |
631ef239 | 5430 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
5431 | test_array [0] = 0 |
5432 | ||
5433 | ; | |
5434 | return 0; | |
5435 | } | |
5436 | _ACEOF | |
5437 | rm -f conftest.$ac_objext | |
631ef239 AC |
5438 | if { (ac_try="$ac_compile" |
5439 | case "(($ac_try" in | |
5440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5441 | *) ac_try_echo=$ac_try;; | |
5442 | esac | |
5443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5444 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5445 | ac_status=$? |
5446 | grep -v '^ *+' conftest.er1 >conftest.err | |
5447 | rm -f conftest.er1 | |
5448 | cat conftest.err >&5 | |
5449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5450 | (exit $ac_status); } && { |
5451 | test -z "$ac_c_werror_flag" || | |
5452 | test ! -s conftest.err | |
5453 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5454 | ac_lo=$ac_mid; break |
5455 | else | |
5456 | echo "$as_me: failed program was:" >&5 | |
5457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5458 | ||
631ef239 AC |
5459 | ac_hi=`expr '(' $ac_mid ')' - 1` |
5460 | if test $ac_mid -le $ac_hi; then | |
5461 | ac_lo= ac_hi= | |
5462 | break | |
5463 | fi | |
5464 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 5465 | fi |
631ef239 AC |
5466 | |
5467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5468 | done |
5469 | else | |
5470 | echo "$as_me: failed program was:" >&5 | |
5471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5472 | ||
631ef239 | 5473 | ac_lo= ac_hi= |
212380e3 | 5474 | fi |
631ef239 AC |
5475 | |
5476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5477 | fi |
631ef239 AC |
5478 | |
5479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5480 | # Binary search between lo and hi bounds. |
5481 | while test "x$ac_lo" != "x$ac_hi"; do | |
5482 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5483 | cat >conftest.$ac_ext <<_ACEOF | |
5484 | /* confdefs.h. */ | |
5485 | _ACEOF | |
5486 | cat confdefs.h >>conftest.$ac_ext | |
5487 | cat >>conftest.$ac_ext <<_ACEOF | |
5488 | /* end confdefs.h. */ | |
5489 | $ac_includes_default | |
631ef239 | 5490 | typedef short ac__type_sizeof_; |
212380e3 AC |
5491 | int |
5492 | main () | |
5493 | { | |
631ef239 | 5494 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5495 | test_array [0] = 0 |
5496 | ||
5497 | ; | |
5498 | return 0; | |
5499 | } | |
5500 | _ACEOF | |
5501 | rm -f conftest.$ac_objext | |
631ef239 AC |
5502 | if { (ac_try="$ac_compile" |
5503 | case "(($ac_try" in | |
5504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5505 | *) ac_try_echo=$ac_try;; | |
5506 | esac | |
5507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5508 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5509 | ac_status=$? |
5510 | grep -v '^ *+' conftest.er1 >conftest.err | |
5511 | rm -f conftest.er1 | |
5512 | cat conftest.err >&5 | |
5513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5514 | (exit $ac_status); } && { |
5515 | test -z "$ac_c_werror_flag" || | |
5516 | test ! -s conftest.err | |
5517 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5518 | ac_hi=$ac_mid |
5519 | else | |
5520 | echo "$as_me: failed program was:" >&5 | |
5521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5522 | ||
631ef239 | 5523 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 5524 | fi |
631ef239 AC |
5525 | |
5526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5527 | done |
5528 | case $ac_lo in | |
5529 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
631ef239 AC |
5530 | '') if test "$ac_cv_type_short" = yes; then |
5531 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
212380e3 | 5532 | See \`config.log' for more details." >&5 |
631ef239 | 5533 | echo "$as_me: error: cannot compute sizeof (short) |
212380e3 | 5534 | See \`config.log' for more details." >&2;} |
631ef239 AC |
5535 | { (exit 77); exit 77; }; } |
5536 | else | |
5537 | ac_cv_sizeof_short=0 | |
5538 | fi ;; | |
212380e3 | 5539 | esac |
212380e3 AC |
5540 | else |
5541 | cat >conftest.$ac_ext <<_ACEOF | |
5542 | /* confdefs.h. */ | |
5543 | _ACEOF | |
5544 | cat confdefs.h >>conftest.$ac_ext | |
5545 | cat >>conftest.$ac_ext <<_ACEOF | |
5546 | /* end confdefs.h. */ | |
5547 | $ac_includes_default | |
631ef239 AC |
5548 | typedef short ac__type_sizeof_; |
5549 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5550 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
5551 | #include <stdio.h> |
5552 | #include <stdlib.h> | |
5553 | int | |
5554 | main () | |
5555 | { | |
5556 | ||
5557 | FILE *f = fopen ("conftest.val", "w"); | |
5558 | if (! f) | |
631ef239 AC |
5559 | return 1; |
5560 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 5561 | { |
631ef239 AC |
5562 | long int i = longval (); |
5563 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5564 | return 1; | |
212380e3 AC |
5565 | fprintf (f, "%ld\n", i); |
5566 | } | |
5567 | else | |
5568 | { | |
631ef239 AC |
5569 | unsigned long int i = ulongval (); |
5570 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5571 | return 1; | |
212380e3 AC |
5572 | fprintf (f, "%lu\n", i); |
5573 | } | |
631ef239 | 5574 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
5575 | |
5576 | ; | |
5577 | return 0; | |
5578 | } | |
5579 | _ACEOF | |
5580 | rm -f conftest$ac_exeext | |
631ef239 AC |
5581 | if { (ac_try="$ac_link" |
5582 | case "(($ac_try" in | |
5583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5584 | *) ac_try_echo=$ac_try;; | |
5585 | esac | |
5586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5587 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
5588 | ac_status=$? |
5589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5590 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
5591 | { (case "(($ac_try" in |
5592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5593 | *) ac_try_echo=$ac_try;; | |
5594 | esac | |
5595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5596 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
5597 | ac_status=$? |
5598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5599 | (exit $ac_status); }; }; then | |
5600 | ac_cv_sizeof_short=`cat conftest.val` | |
5601 | else | |
5602 | echo "$as_me: program exited with status $ac_status" >&5 | |
5603 | echo "$as_me: failed program was:" >&5 | |
5604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5605 | ||
5606 | ( exit $ac_status ) | |
631ef239 AC |
5607 | if test "$ac_cv_type_short" = yes; then |
5608 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
212380e3 | 5609 | See \`config.log' for more details." >&5 |
631ef239 | 5610 | echo "$as_me: error: cannot compute sizeof (short) |
212380e3 | 5611 | See \`config.log' for more details." >&2;} |
631ef239 AC |
5612 | { (exit 77); exit 77; }; } |
5613 | else | |
5614 | ac_cv_sizeof_short=0 | |
5615 | fi | |
212380e3 | 5616 | fi |
631ef239 | 5617 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
5618 | fi |
5619 | rm -f conftest.val | |
212380e3 | 5620 | fi |
631ef239 AC |
5621 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
5622 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } | |
5623 | ||
5624 | ||
5625 | ||
212380e3 AC |
5626 | cat >>confdefs.h <<_ACEOF |
5627 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
5628 | _ACEOF | |
5629 | ||
5630 | ||
631ef239 AC |
5631 | { echo "$as_me:$LINENO: checking for int" >&5 |
5632 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | |
212380e3 AC |
5633 | if test "${ac_cv_type_int+set}" = set; then |
5634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5635 | else | |
5636 | cat >conftest.$ac_ext <<_ACEOF | |
5637 | /* confdefs.h. */ | |
5638 | _ACEOF | |
5639 | cat confdefs.h >>conftest.$ac_ext | |
5640 | cat >>conftest.$ac_ext <<_ACEOF | |
5641 | /* end confdefs.h. */ | |
5642 | $ac_includes_default | |
631ef239 | 5643 | typedef int ac__type_new_; |
212380e3 AC |
5644 | int |
5645 | main () | |
5646 | { | |
631ef239 | 5647 | if ((ac__type_new_ *) 0) |
212380e3 | 5648 | return 0; |
631ef239 | 5649 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5650 | return 0; |
5651 | ; | |
5652 | return 0; | |
5653 | } | |
5654 | _ACEOF | |
5655 | rm -f conftest.$ac_objext | |
631ef239 AC |
5656 | if { (ac_try="$ac_compile" |
5657 | case "(($ac_try" in | |
5658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5659 | *) ac_try_echo=$ac_try;; | |
5660 | esac | |
5661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5662 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5663 | ac_status=$? |
5664 | grep -v '^ *+' conftest.er1 >conftest.err | |
5665 | rm -f conftest.er1 | |
5666 | cat conftest.err >&5 | |
5667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5668 | (exit $ac_status); } && { |
5669 | test -z "$ac_c_werror_flag" || | |
5670 | test ! -s conftest.err | |
5671 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5672 | ac_cv_type_int=yes |
5673 | else | |
5674 | echo "$as_me: failed program was:" >&5 | |
5675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5676 | ||
631ef239 | 5677 | ac_cv_type_int=no |
212380e3 | 5678 | fi |
631ef239 AC |
5679 | |
5680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5681 | fi |
631ef239 AC |
5682 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
5683 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | |
212380e3 | 5684 | |
631ef239 AC |
5685 | # The cast to long int works around a bug in the HP C Compiler |
5686 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5687 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5688 | # This bug is HP SR number 8606223364. | |
5689 | { echo "$as_me:$LINENO: checking size of int" >&5 | |
5690 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | |
212380e3 AC |
5691 | if test "${ac_cv_sizeof_int+set}" = set; then |
5692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5693 | else | |
212380e3 AC |
5694 | if test "$cross_compiling" = yes; then |
5695 | # Depending upon the size, compute the lo and hi bounds. | |
5696 | cat >conftest.$ac_ext <<_ACEOF | |
5697 | /* confdefs.h. */ | |
5698 | _ACEOF | |
5699 | cat confdefs.h >>conftest.$ac_ext | |
5700 | cat >>conftest.$ac_ext <<_ACEOF | |
5701 | /* end confdefs.h. */ | |
5702 | $ac_includes_default | |
631ef239 | 5703 | typedef int ac__type_sizeof_; |
212380e3 AC |
5704 | int |
5705 | main () | |
5706 | { | |
631ef239 | 5707 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
5708 | test_array [0] = 0 |
5709 | ||
5710 | ; | |
5711 | return 0; | |
5712 | } | |
5713 | _ACEOF | |
5714 | rm -f conftest.$ac_objext | |
631ef239 AC |
5715 | if { (ac_try="$ac_compile" |
5716 | case "(($ac_try" in | |
5717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5718 | *) ac_try_echo=$ac_try;; | |
5719 | esac | |
5720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5721 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5722 | ac_status=$? |
5723 | grep -v '^ *+' conftest.er1 >conftest.err | |
5724 | rm -f conftest.er1 | |
5725 | cat conftest.err >&5 | |
5726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5727 | (exit $ac_status); } && { |
5728 | test -z "$ac_c_werror_flag" || | |
5729 | test ! -s conftest.err | |
5730 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5731 | ac_lo=0 ac_mid=0 |
5732 | while :; do | |
5733 | cat >conftest.$ac_ext <<_ACEOF | |
5734 | /* confdefs.h. */ | |
5735 | _ACEOF | |
5736 | cat confdefs.h >>conftest.$ac_ext | |
5737 | cat >>conftest.$ac_ext <<_ACEOF | |
5738 | /* end confdefs.h. */ | |
5739 | $ac_includes_default | |
631ef239 | 5740 | typedef int ac__type_sizeof_; |
212380e3 AC |
5741 | int |
5742 | main () | |
5743 | { | |
631ef239 | 5744 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5745 | test_array [0] = 0 |
5746 | ||
5747 | ; | |
5748 | return 0; | |
5749 | } | |
5750 | _ACEOF | |
5751 | rm -f conftest.$ac_objext | |
631ef239 AC |
5752 | if { (ac_try="$ac_compile" |
5753 | case "(($ac_try" in | |
5754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5755 | *) ac_try_echo=$ac_try;; | |
5756 | esac | |
5757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5758 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5759 | ac_status=$? |
5760 | grep -v '^ *+' conftest.er1 >conftest.err | |
5761 | rm -f conftest.er1 | |
5762 | cat conftest.err >&5 | |
5763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5764 | (exit $ac_status); } && { |
5765 | test -z "$ac_c_werror_flag" || | |
5766 | test ! -s conftest.err | |
5767 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5768 | ac_hi=$ac_mid; break |
5769 | else | |
5770 | echo "$as_me: failed program was:" >&5 | |
5771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5772 | ||
631ef239 AC |
5773 | ac_lo=`expr $ac_mid + 1` |
5774 | if test $ac_lo -le $ac_mid; then | |
5775 | ac_lo= ac_hi= | |
5776 | break | |
5777 | fi | |
5778 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 5779 | fi |
631ef239 AC |
5780 | |
5781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5782 | done |
5783 | else | |
5784 | echo "$as_me: failed program was:" >&5 | |
5785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5786 | ||
631ef239 | 5787 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
5788 | /* confdefs.h. */ |
5789 | _ACEOF | |
5790 | cat confdefs.h >>conftest.$ac_ext | |
5791 | cat >>conftest.$ac_ext <<_ACEOF | |
5792 | /* end confdefs.h. */ | |
5793 | $ac_includes_default | |
631ef239 | 5794 | typedef int ac__type_sizeof_; |
212380e3 AC |
5795 | int |
5796 | main () | |
5797 | { | |
631ef239 | 5798 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
5799 | test_array [0] = 0 |
5800 | ||
5801 | ; | |
5802 | return 0; | |
5803 | } | |
5804 | _ACEOF | |
5805 | rm -f conftest.$ac_objext | |
631ef239 AC |
5806 | if { (ac_try="$ac_compile" |
5807 | case "(($ac_try" in | |
5808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5809 | *) ac_try_echo=$ac_try;; | |
5810 | esac | |
5811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5812 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5813 | ac_status=$? |
5814 | grep -v '^ *+' conftest.er1 >conftest.err | |
5815 | rm -f conftest.er1 | |
5816 | cat conftest.err >&5 | |
5817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5818 | (exit $ac_status); } && { |
5819 | test -z "$ac_c_werror_flag" || | |
5820 | test ! -s conftest.err | |
5821 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5822 | ac_hi=-1 ac_mid=-1 |
5823 | while :; do | |
5824 | cat >conftest.$ac_ext <<_ACEOF | |
5825 | /* confdefs.h. */ | |
5826 | _ACEOF | |
5827 | cat confdefs.h >>conftest.$ac_ext | |
5828 | cat >>conftest.$ac_ext <<_ACEOF | |
5829 | /* end confdefs.h. */ | |
5830 | $ac_includes_default | |
631ef239 | 5831 | typedef int ac__type_sizeof_; |
212380e3 AC |
5832 | int |
5833 | main () | |
5834 | { | |
631ef239 | 5835 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
5836 | test_array [0] = 0 |
5837 | ||
5838 | ; | |
5839 | return 0; | |
5840 | } | |
5841 | _ACEOF | |
5842 | rm -f conftest.$ac_objext | |
631ef239 AC |
5843 | if { (ac_try="$ac_compile" |
5844 | case "(($ac_try" in | |
5845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5846 | *) ac_try_echo=$ac_try;; | |
5847 | esac | |
5848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5849 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5850 | ac_status=$? |
5851 | grep -v '^ *+' conftest.er1 >conftest.err | |
5852 | rm -f conftest.er1 | |
5853 | cat conftest.err >&5 | |
5854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5855 | (exit $ac_status); } && { |
5856 | test -z "$ac_c_werror_flag" || | |
5857 | test ! -s conftest.err | |
5858 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5859 | ac_lo=$ac_mid; break |
5860 | else | |
5861 | echo "$as_me: failed program was:" >&5 | |
5862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5863 | ||
631ef239 AC |
5864 | ac_hi=`expr '(' $ac_mid ')' - 1` |
5865 | if test $ac_mid -le $ac_hi; then | |
5866 | ac_lo= ac_hi= | |
5867 | break | |
5868 | fi | |
5869 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 5870 | fi |
631ef239 AC |
5871 | |
5872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5873 | done |
5874 | else | |
5875 | echo "$as_me: failed program was:" >&5 | |
5876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5877 | ||
631ef239 | 5878 | ac_lo= ac_hi= |
212380e3 | 5879 | fi |
631ef239 AC |
5880 | |
5881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5882 | fi |
631ef239 AC |
5883 | |
5884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5885 | # Binary search between lo and hi bounds. |
5886 | while test "x$ac_lo" != "x$ac_hi"; do | |
5887 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5888 | cat >conftest.$ac_ext <<_ACEOF | |
5889 | /* confdefs.h. */ | |
5890 | _ACEOF | |
5891 | cat confdefs.h >>conftest.$ac_ext | |
5892 | cat >>conftest.$ac_ext <<_ACEOF | |
5893 | /* end confdefs.h. */ | |
5894 | $ac_includes_default | |
631ef239 | 5895 | typedef int ac__type_sizeof_; |
212380e3 AC |
5896 | int |
5897 | main () | |
5898 | { | |
631ef239 | 5899 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5900 | test_array [0] = 0 |
5901 | ||
5902 | ; | |
5903 | return 0; | |
5904 | } | |
5905 | _ACEOF | |
5906 | rm -f conftest.$ac_objext | |
631ef239 AC |
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5913 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5914 | ac_status=$? |
5915 | grep -v '^ *+' conftest.er1 >conftest.err | |
5916 | rm -f conftest.er1 | |
5917 | cat conftest.err >&5 | |
5918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5919 | (exit $ac_status); } && { |
5920 | test -z "$ac_c_werror_flag" || | |
5921 | test ! -s conftest.err | |
5922 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5923 | ac_hi=$ac_mid |
5924 | else | |
5925 | echo "$as_me: failed program was:" >&5 | |
5926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5927 | ||
631ef239 | 5928 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 5929 | fi |
631ef239 AC |
5930 | |
5931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5932 | done |
5933 | case $ac_lo in | |
5934 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
631ef239 AC |
5935 | '') if test "$ac_cv_type_int" = yes; then |
5936 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
212380e3 | 5937 | See \`config.log' for more details." >&5 |
631ef239 | 5938 | echo "$as_me: error: cannot compute sizeof (int) |
212380e3 | 5939 | See \`config.log' for more details." >&2;} |
631ef239 AC |
5940 | { (exit 77); exit 77; }; } |
5941 | else | |
5942 | ac_cv_sizeof_int=0 | |
5943 | fi ;; | |
212380e3 | 5944 | esac |
212380e3 AC |
5945 | else |
5946 | cat >conftest.$ac_ext <<_ACEOF | |
5947 | /* confdefs.h. */ | |
5948 | _ACEOF | |
5949 | cat confdefs.h >>conftest.$ac_ext | |
5950 | cat >>conftest.$ac_ext <<_ACEOF | |
5951 | /* end confdefs.h. */ | |
5952 | $ac_includes_default | |
631ef239 AC |
5953 | typedef int ac__type_sizeof_; |
5954 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5955 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
5956 | #include <stdio.h> |
5957 | #include <stdlib.h> | |
5958 | int | |
5959 | main () | |
5960 | { | |
5961 | ||
5962 | FILE *f = fopen ("conftest.val", "w"); | |
5963 | if (! f) | |
631ef239 AC |
5964 | return 1; |
5965 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 5966 | { |
631ef239 AC |
5967 | long int i = longval (); |
5968 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5969 | return 1; | |
212380e3 AC |
5970 | fprintf (f, "%ld\n", i); |
5971 | } | |
5972 | else | |
5973 | { | |
631ef239 AC |
5974 | unsigned long int i = ulongval (); |
5975 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5976 | return 1; | |
212380e3 AC |
5977 | fprintf (f, "%lu\n", i); |
5978 | } | |
631ef239 | 5979 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
5980 | |
5981 | ; | |
5982 | return 0; | |
5983 | } | |
5984 | _ACEOF | |
5985 | rm -f conftest$ac_exeext | |
631ef239 AC |
5986 | if { (ac_try="$ac_link" |
5987 | case "(($ac_try" in | |
5988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5989 | *) ac_try_echo=$ac_try;; | |
5990 | esac | |
5991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5992 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
5993 | ac_status=$? |
5994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5995 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
5996 | { (case "(($ac_try" in |
5997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5998 | *) ac_try_echo=$ac_try;; | |
5999 | esac | |
6000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6001 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
6002 | ac_status=$? |
6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6004 | (exit $ac_status); }; }; then | |
6005 | ac_cv_sizeof_int=`cat conftest.val` | |
6006 | else | |
6007 | echo "$as_me: program exited with status $ac_status" >&5 | |
6008 | echo "$as_me: failed program was:" >&5 | |
6009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6010 | ||
6011 | ( exit $ac_status ) | |
631ef239 AC |
6012 | if test "$ac_cv_type_int" = yes; then |
6013 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
212380e3 | 6014 | See \`config.log' for more details." >&5 |
631ef239 | 6015 | echo "$as_me: error: cannot compute sizeof (int) |
212380e3 | 6016 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6017 | { (exit 77); exit 77; }; } |
6018 | else | |
6019 | ac_cv_sizeof_int=0 | |
6020 | fi | |
212380e3 | 6021 | fi |
631ef239 | 6022 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
6023 | fi |
6024 | rm -f conftest.val | |
212380e3 | 6025 | fi |
631ef239 AC |
6026 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
6027 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | |
6028 | ||
6029 | ||
6030 | ||
212380e3 AC |
6031 | cat >>confdefs.h <<_ACEOF |
6032 | #define SIZEOF_INT $ac_cv_sizeof_int | |
6033 | _ACEOF | |
6034 | ||
6035 | ||
631ef239 AC |
6036 | { echo "$as_me:$LINENO: checking for long" >&5 |
6037 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } | |
212380e3 AC |
6038 | if test "${ac_cv_type_long+set}" = set; then |
6039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6040 | else | |
6041 | cat >conftest.$ac_ext <<_ACEOF | |
6042 | /* confdefs.h. */ | |
6043 | _ACEOF | |
6044 | cat confdefs.h >>conftest.$ac_ext | |
6045 | cat >>conftest.$ac_ext <<_ACEOF | |
6046 | /* end confdefs.h. */ | |
6047 | $ac_includes_default | |
631ef239 | 6048 | typedef long ac__type_new_; |
212380e3 AC |
6049 | int |
6050 | main () | |
6051 | { | |
631ef239 | 6052 | if ((ac__type_new_ *) 0) |
212380e3 | 6053 | return 0; |
631ef239 | 6054 | if (sizeof (ac__type_new_)) |
212380e3 AC |
6055 | return 0; |
6056 | ; | |
6057 | return 0; | |
6058 | } | |
6059 | _ACEOF | |
6060 | rm -f conftest.$ac_objext | |
631ef239 AC |
6061 | if { (ac_try="$ac_compile" |
6062 | case "(($ac_try" in | |
6063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6064 | *) ac_try_echo=$ac_try;; | |
6065 | esac | |
6066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6067 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6068 | ac_status=$? |
6069 | grep -v '^ *+' conftest.er1 >conftest.err | |
6070 | rm -f conftest.er1 | |
6071 | cat conftest.err >&5 | |
6072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6073 | (exit $ac_status); } && { |
6074 | test -z "$ac_c_werror_flag" || | |
6075 | test ! -s conftest.err | |
6076 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6077 | ac_cv_type_long=yes |
6078 | else | |
6079 | echo "$as_me: failed program was:" >&5 | |
6080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6081 | ||
631ef239 | 6082 | ac_cv_type_long=no |
212380e3 | 6083 | fi |
631ef239 AC |
6084 | |
6085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6086 | fi |
631ef239 AC |
6087 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
6088 | echo "${ECHO_T}$ac_cv_type_long" >&6; } | |
212380e3 | 6089 | |
631ef239 AC |
6090 | # The cast to long int works around a bug in the HP C Compiler |
6091 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6092 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6093 | # This bug is HP SR number 8606223364. | |
6094 | { echo "$as_me:$LINENO: checking size of long" >&5 | |
6095 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } | |
212380e3 AC |
6096 | if test "${ac_cv_sizeof_long+set}" = set; then |
6097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6098 | else | |
212380e3 AC |
6099 | if test "$cross_compiling" = yes; then |
6100 | # Depending upon the size, compute the lo and hi bounds. | |
6101 | cat >conftest.$ac_ext <<_ACEOF | |
6102 | /* confdefs.h. */ | |
6103 | _ACEOF | |
6104 | cat confdefs.h >>conftest.$ac_ext | |
6105 | cat >>conftest.$ac_ext <<_ACEOF | |
6106 | /* end confdefs.h. */ | |
6107 | $ac_includes_default | |
631ef239 | 6108 | typedef long ac__type_sizeof_; |
212380e3 AC |
6109 | int |
6110 | main () | |
6111 | { | |
631ef239 | 6112 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
6113 | test_array [0] = 0 |
6114 | ||
6115 | ; | |
6116 | return 0; | |
6117 | } | |
6118 | _ACEOF | |
6119 | rm -f conftest.$ac_objext | |
631ef239 AC |
6120 | if { (ac_try="$ac_compile" |
6121 | case "(($ac_try" in | |
6122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6123 | *) ac_try_echo=$ac_try;; | |
6124 | esac | |
6125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6126 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6127 | ac_status=$? |
6128 | grep -v '^ *+' conftest.er1 >conftest.err | |
6129 | rm -f conftest.er1 | |
6130 | cat conftest.err >&5 | |
6131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6132 | (exit $ac_status); } && { |
6133 | test -z "$ac_c_werror_flag" || | |
6134 | test ! -s conftest.err | |
6135 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6136 | ac_lo=0 ac_mid=0 |
6137 | while :; do | |
6138 | cat >conftest.$ac_ext <<_ACEOF | |
6139 | /* confdefs.h. */ | |
6140 | _ACEOF | |
6141 | cat confdefs.h >>conftest.$ac_ext | |
6142 | cat >>conftest.$ac_ext <<_ACEOF | |
6143 | /* end confdefs.h. */ | |
6144 | $ac_includes_default | |
631ef239 | 6145 | typedef long ac__type_sizeof_; |
212380e3 AC |
6146 | int |
6147 | main () | |
6148 | { | |
631ef239 | 6149 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6150 | test_array [0] = 0 |
6151 | ||
6152 | ; | |
6153 | return 0; | |
6154 | } | |
6155 | _ACEOF | |
6156 | rm -f conftest.$ac_objext | |
631ef239 AC |
6157 | if { (ac_try="$ac_compile" |
6158 | case "(($ac_try" in | |
6159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6160 | *) ac_try_echo=$ac_try;; | |
6161 | esac | |
6162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6163 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6164 | ac_status=$? |
6165 | grep -v '^ *+' conftest.er1 >conftest.err | |
6166 | rm -f conftest.er1 | |
6167 | cat conftest.err >&5 | |
6168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6169 | (exit $ac_status); } && { |
6170 | test -z "$ac_c_werror_flag" || | |
6171 | test ! -s conftest.err | |
6172 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6173 | ac_hi=$ac_mid; break |
6174 | else | |
6175 | echo "$as_me: failed program was:" >&5 | |
6176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6177 | ||
631ef239 AC |
6178 | ac_lo=`expr $ac_mid + 1` |
6179 | if test $ac_lo -le $ac_mid; then | |
6180 | ac_lo= ac_hi= | |
6181 | break | |
6182 | fi | |
6183 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 6184 | fi |
631ef239 AC |
6185 | |
6186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6187 | done |
6188 | else | |
6189 | echo "$as_me: failed program was:" >&5 | |
6190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6191 | ||
631ef239 | 6192 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
6193 | /* confdefs.h. */ |
6194 | _ACEOF | |
6195 | cat confdefs.h >>conftest.$ac_ext | |
6196 | cat >>conftest.$ac_ext <<_ACEOF | |
6197 | /* end confdefs.h. */ | |
6198 | $ac_includes_default | |
631ef239 | 6199 | typedef long ac__type_sizeof_; |
212380e3 AC |
6200 | int |
6201 | main () | |
6202 | { | |
631ef239 | 6203 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
6204 | test_array [0] = 0 |
6205 | ||
6206 | ; | |
6207 | return 0; | |
6208 | } | |
6209 | _ACEOF | |
6210 | rm -f conftest.$ac_objext | |
631ef239 AC |
6211 | if { (ac_try="$ac_compile" |
6212 | case "(($ac_try" in | |
6213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6214 | *) ac_try_echo=$ac_try;; | |
6215 | esac | |
6216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6217 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6218 | ac_status=$? |
6219 | grep -v '^ *+' conftest.er1 >conftest.err | |
6220 | rm -f conftest.er1 | |
6221 | cat conftest.err >&5 | |
6222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6223 | (exit $ac_status); } && { |
6224 | test -z "$ac_c_werror_flag" || | |
6225 | test ! -s conftest.err | |
6226 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6227 | ac_hi=-1 ac_mid=-1 |
6228 | while :; do | |
6229 | cat >conftest.$ac_ext <<_ACEOF | |
6230 | /* confdefs.h. */ | |
6231 | _ACEOF | |
6232 | cat confdefs.h >>conftest.$ac_ext | |
6233 | cat >>conftest.$ac_ext <<_ACEOF | |
6234 | /* end confdefs.h. */ | |
6235 | $ac_includes_default | |
631ef239 | 6236 | typedef long ac__type_sizeof_; |
212380e3 AC |
6237 | int |
6238 | main () | |
6239 | { | |
631ef239 | 6240 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
6241 | test_array [0] = 0 |
6242 | ||
6243 | ; | |
6244 | return 0; | |
6245 | } | |
6246 | _ACEOF | |
6247 | rm -f conftest.$ac_objext | |
631ef239 AC |
6248 | if { (ac_try="$ac_compile" |
6249 | case "(($ac_try" in | |
6250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6251 | *) ac_try_echo=$ac_try;; | |
6252 | esac | |
6253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6254 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6255 | ac_status=$? |
6256 | grep -v '^ *+' conftest.er1 >conftest.err | |
6257 | rm -f conftest.er1 | |
6258 | cat conftest.err >&5 | |
6259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6260 | (exit $ac_status); } && { |
6261 | test -z "$ac_c_werror_flag" || | |
6262 | test ! -s conftest.err | |
6263 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6264 | ac_lo=$ac_mid; break |
6265 | else | |
6266 | echo "$as_me: failed program was:" >&5 | |
6267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6268 | ||
631ef239 AC |
6269 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6270 | if test $ac_mid -le $ac_hi; then | |
6271 | ac_lo= ac_hi= | |
6272 | break | |
6273 | fi | |
6274 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 6275 | fi |
631ef239 AC |
6276 | |
6277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6278 | done |
6279 | else | |
6280 | echo "$as_me: failed program was:" >&5 | |
6281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6282 | ||
631ef239 | 6283 | ac_lo= ac_hi= |
212380e3 | 6284 | fi |
631ef239 AC |
6285 | |
6286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6287 | fi |
631ef239 AC |
6288 | |
6289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6290 | # Binary search between lo and hi bounds. |
6291 | while test "x$ac_lo" != "x$ac_hi"; do | |
6292 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6293 | cat >conftest.$ac_ext <<_ACEOF | |
6294 | /* confdefs.h. */ | |
6295 | _ACEOF | |
6296 | cat confdefs.h >>conftest.$ac_ext | |
6297 | cat >>conftest.$ac_ext <<_ACEOF | |
6298 | /* end confdefs.h. */ | |
6299 | $ac_includes_default | |
631ef239 | 6300 | typedef long ac__type_sizeof_; |
212380e3 AC |
6301 | int |
6302 | main () | |
6303 | { | |
631ef239 | 6304 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6305 | test_array [0] = 0 |
6306 | ||
6307 | ; | |
6308 | return 0; | |
6309 | } | |
6310 | _ACEOF | |
6311 | rm -f conftest.$ac_objext | |
631ef239 AC |
6312 | if { (ac_try="$ac_compile" |
6313 | case "(($ac_try" in | |
6314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6315 | *) ac_try_echo=$ac_try;; | |
6316 | esac | |
6317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6318 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6319 | ac_status=$? |
6320 | grep -v '^ *+' conftest.er1 >conftest.err | |
6321 | rm -f conftest.er1 | |
6322 | cat conftest.err >&5 | |
6323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6324 | (exit $ac_status); } && { |
6325 | test -z "$ac_c_werror_flag" || | |
6326 | test ! -s conftest.err | |
6327 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6328 | ac_hi=$ac_mid |
6329 | else | |
6330 | echo "$as_me: failed program was:" >&5 | |
6331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6332 | ||
631ef239 | 6333 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 6334 | fi |
631ef239 AC |
6335 | |
6336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6337 | done |
6338 | case $ac_lo in | |
6339 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
631ef239 AC |
6340 | '') if test "$ac_cv_type_long" = yes; then |
6341 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
212380e3 | 6342 | See \`config.log' for more details." >&5 |
631ef239 | 6343 | echo "$as_me: error: cannot compute sizeof (long) |
212380e3 | 6344 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6345 | { (exit 77); exit 77; }; } |
6346 | else | |
6347 | ac_cv_sizeof_long=0 | |
6348 | fi ;; | |
212380e3 | 6349 | esac |
212380e3 AC |
6350 | else |
6351 | cat >conftest.$ac_ext <<_ACEOF | |
6352 | /* confdefs.h. */ | |
6353 | _ACEOF | |
6354 | cat confdefs.h >>conftest.$ac_ext | |
6355 | cat >>conftest.$ac_ext <<_ACEOF | |
6356 | /* end confdefs.h. */ | |
6357 | $ac_includes_default | |
631ef239 AC |
6358 | typedef long ac__type_sizeof_; |
6359 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6360 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
6361 | #include <stdio.h> |
6362 | #include <stdlib.h> | |
6363 | int | |
6364 | main () | |
6365 | { | |
6366 | ||
6367 | FILE *f = fopen ("conftest.val", "w"); | |
6368 | if (! f) | |
631ef239 AC |
6369 | return 1; |
6370 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 6371 | { |
631ef239 AC |
6372 | long int i = longval (); |
6373 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6374 | return 1; | |
212380e3 AC |
6375 | fprintf (f, "%ld\n", i); |
6376 | } | |
6377 | else | |
6378 | { | |
631ef239 AC |
6379 | unsigned long int i = ulongval (); |
6380 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6381 | return 1; | |
212380e3 AC |
6382 | fprintf (f, "%lu\n", i); |
6383 | } | |
631ef239 | 6384 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
6385 | |
6386 | ; | |
6387 | return 0; | |
6388 | } | |
6389 | _ACEOF | |
6390 | rm -f conftest$ac_exeext | |
631ef239 AC |
6391 | if { (ac_try="$ac_link" |
6392 | case "(($ac_try" in | |
6393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6394 | *) ac_try_echo=$ac_try;; | |
6395 | esac | |
6396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6397 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
6398 | ac_status=$? |
6399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6400 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
6401 | { (case "(($ac_try" in |
6402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6403 | *) ac_try_echo=$ac_try;; | |
6404 | esac | |
6405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6406 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
6407 | ac_status=$? |
6408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6409 | (exit $ac_status); }; }; then | |
6410 | ac_cv_sizeof_long=`cat conftest.val` | |
6411 | else | |
6412 | echo "$as_me: program exited with status $ac_status" >&5 | |
6413 | echo "$as_me: failed program was:" >&5 | |
6414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6415 | ||
6416 | ( exit $ac_status ) | |
631ef239 AC |
6417 | if test "$ac_cv_type_long" = yes; then |
6418 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
212380e3 | 6419 | See \`config.log' for more details." >&5 |
631ef239 | 6420 | echo "$as_me: error: cannot compute sizeof (long) |
212380e3 | 6421 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6422 | { (exit 77); exit 77; }; } |
6423 | else | |
6424 | ac_cv_sizeof_long=0 | |
6425 | fi | |
212380e3 | 6426 | fi |
631ef239 | 6427 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
6428 | fi |
6429 | rm -f conftest.val | |
212380e3 | 6430 | fi |
631ef239 AC |
6431 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
6432 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } | |
6433 | ||
6434 | ||
6435 | ||
212380e3 AC |
6436 | cat >>confdefs.h <<_ACEOF |
6437 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
6438 | _ACEOF | |
6439 | ||
6440 | ||
631ef239 AC |
6441 | { echo "$as_me:$LINENO: checking for long long" >&5 |
6442 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | |
212380e3 AC |
6443 | if test "${ac_cv_type_long_long+set}" = set; then |
6444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6445 | else | |
6446 | cat >conftest.$ac_ext <<_ACEOF | |
6447 | /* confdefs.h. */ | |
6448 | _ACEOF | |
6449 | cat confdefs.h >>conftest.$ac_ext | |
6450 | cat >>conftest.$ac_ext <<_ACEOF | |
6451 | /* end confdefs.h. */ | |
6452 | $ac_includes_default | |
631ef239 | 6453 | typedef long long ac__type_new_; |
212380e3 AC |
6454 | int |
6455 | main () | |
6456 | { | |
631ef239 | 6457 | if ((ac__type_new_ *) 0) |
212380e3 | 6458 | return 0; |
631ef239 | 6459 | if (sizeof (ac__type_new_)) |
212380e3 AC |
6460 | return 0; |
6461 | ; | |
6462 | return 0; | |
6463 | } | |
6464 | _ACEOF | |
6465 | rm -f conftest.$ac_objext | |
631ef239 AC |
6466 | if { (ac_try="$ac_compile" |
6467 | case "(($ac_try" in | |
6468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6469 | *) ac_try_echo=$ac_try;; | |
6470 | esac | |
6471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6472 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6473 | ac_status=$? |
6474 | grep -v '^ *+' conftest.er1 >conftest.err | |
6475 | rm -f conftest.er1 | |
6476 | cat conftest.err >&5 | |
6477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6478 | (exit $ac_status); } && { |
6479 | test -z "$ac_c_werror_flag" || | |
6480 | test ! -s conftest.err | |
6481 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6482 | ac_cv_type_long_long=yes |
6483 | else | |
6484 | echo "$as_me: failed program was:" >&5 | |
6485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6486 | ||
631ef239 | 6487 | ac_cv_type_long_long=no |
212380e3 | 6488 | fi |
631ef239 AC |
6489 | |
6490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6491 | fi |
631ef239 AC |
6492 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
6493 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | |
212380e3 | 6494 | |
631ef239 AC |
6495 | # The cast to long int works around a bug in the HP C Compiler |
6496 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6497 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6498 | # This bug is HP SR number 8606223364. | |
6499 | { echo "$as_me:$LINENO: checking size of long long" >&5 | |
6500 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } | |
212380e3 AC |
6501 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
6502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6503 | else | |
212380e3 AC |
6504 | if test "$cross_compiling" = yes; then |
6505 | # Depending upon the size, compute the lo and hi bounds. | |
6506 | cat >conftest.$ac_ext <<_ACEOF | |
6507 | /* confdefs.h. */ | |
6508 | _ACEOF | |
6509 | cat confdefs.h >>conftest.$ac_ext | |
6510 | cat >>conftest.$ac_ext <<_ACEOF | |
6511 | /* end confdefs.h. */ | |
6512 | $ac_includes_default | |
631ef239 | 6513 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6514 | int |
6515 | main () | |
6516 | { | |
631ef239 | 6517 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
6518 | test_array [0] = 0 |
6519 | ||
6520 | ; | |
6521 | return 0; | |
6522 | } | |
6523 | _ACEOF | |
6524 | rm -f conftest.$ac_objext | |
631ef239 AC |
6525 | if { (ac_try="$ac_compile" |
6526 | case "(($ac_try" in | |
6527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6528 | *) ac_try_echo=$ac_try;; | |
6529 | esac | |
6530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6531 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6532 | ac_status=$? |
6533 | grep -v '^ *+' conftest.er1 >conftest.err | |
6534 | rm -f conftest.er1 | |
6535 | cat conftest.err >&5 | |
6536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6537 | (exit $ac_status); } && { |
6538 | test -z "$ac_c_werror_flag" || | |
6539 | test ! -s conftest.err | |
6540 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6541 | ac_lo=0 ac_mid=0 |
6542 | while :; do | |
6543 | cat >conftest.$ac_ext <<_ACEOF | |
6544 | /* confdefs.h. */ | |
6545 | _ACEOF | |
6546 | cat confdefs.h >>conftest.$ac_ext | |
6547 | cat >>conftest.$ac_ext <<_ACEOF | |
6548 | /* end confdefs.h. */ | |
6549 | $ac_includes_default | |
631ef239 | 6550 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6551 | int |
6552 | main () | |
6553 | { | |
631ef239 | 6554 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6555 | test_array [0] = 0 |
6556 | ||
6557 | ; | |
6558 | return 0; | |
6559 | } | |
6560 | _ACEOF | |
6561 | rm -f conftest.$ac_objext | |
631ef239 AC |
6562 | if { (ac_try="$ac_compile" |
6563 | case "(($ac_try" in | |
6564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6565 | *) ac_try_echo=$ac_try;; | |
6566 | esac | |
6567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6568 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6569 | ac_status=$? |
6570 | grep -v '^ *+' conftest.er1 >conftest.err | |
6571 | rm -f conftest.er1 | |
6572 | cat conftest.err >&5 | |
6573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6574 | (exit $ac_status); } && { |
6575 | test -z "$ac_c_werror_flag" || | |
6576 | test ! -s conftest.err | |
6577 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6578 | ac_hi=$ac_mid; break |
6579 | else | |
6580 | echo "$as_me: failed program was:" >&5 | |
6581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6582 | ||
631ef239 AC |
6583 | ac_lo=`expr $ac_mid + 1` |
6584 | if test $ac_lo -le $ac_mid; then | |
6585 | ac_lo= ac_hi= | |
6586 | break | |
6587 | fi | |
6588 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 6589 | fi |
631ef239 AC |
6590 | |
6591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6592 | done |
6593 | else | |
6594 | echo "$as_me: failed program was:" >&5 | |
6595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6596 | ||
631ef239 | 6597 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
6598 | /* confdefs.h. */ |
6599 | _ACEOF | |
6600 | cat confdefs.h >>conftest.$ac_ext | |
6601 | cat >>conftest.$ac_ext <<_ACEOF | |
6602 | /* end confdefs.h. */ | |
6603 | $ac_includes_default | |
631ef239 | 6604 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6605 | int |
6606 | main () | |
6607 | { | |
631ef239 | 6608 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
6609 | test_array [0] = 0 |
6610 | ||
6611 | ; | |
6612 | return 0; | |
6613 | } | |
6614 | _ACEOF | |
6615 | rm -f conftest.$ac_objext | |
631ef239 AC |
6616 | if { (ac_try="$ac_compile" |
6617 | case "(($ac_try" in | |
6618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6619 | *) ac_try_echo=$ac_try;; | |
6620 | esac | |
6621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6622 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6623 | ac_status=$? |
6624 | grep -v '^ *+' conftest.er1 >conftest.err | |
6625 | rm -f conftest.er1 | |
6626 | cat conftest.err >&5 | |
6627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6628 | (exit $ac_status); } && { |
6629 | test -z "$ac_c_werror_flag" || | |
6630 | test ! -s conftest.err | |
6631 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6632 | ac_hi=-1 ac_mid=-1 |
6633 | while :; do | |
6634 | cat >conftest.$ac_ext <<_ACEOF | |
6635 | /* confdefs.h. */ | |
6636 | _ACEOF | |
6637 | cat confdefs.h >>conftest.$ac_ext | |
6638 | cat >>conftest.$ac_ext <<_ACEOF | |
6639 | /* end confdefs.h. */ | |
6640 | $ac_includes_default | |
631ef239 | 6641 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6642 | int |
6643 | main () | |
6644 | { | |
631ef239 | 6645 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
6646 | test_array [0] = 0 |
6647 | ||
6648 | ; | |
6649 | return 0; | |
6650 | } | |
6651 | _ACEOF | |
6652 | rm -f conftest.$ac_objext | |
631ef239 AC |
6653 | if { (ac_try="$ac_compile" |
6654 | case "(($ac_try" in | |
6655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6656 | *) ac_try_echo=$ac_try;; | |
6657 | esac | |
6658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6659 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6660 | ac_status=$? |
6661 | grep -v '^ *+' conftest.er1 >conftest.err | |
6662 | rm -f conftest.er1 | |
6663 | cat conftest.err >&5 | |
6664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6665 | (exit $ac_status); } && { |
6666 | test -z "$ac_c_werror_flag" || | |
6667 | test ! -s conftest.err | |
6668 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6669 | ac_lo=$ac_mid; break |
6670 | else | |
6671 | echo "$as_me: failed program was:" >&5 | |
6672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6673 | ||
631ef239 AC |
6674 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6675 | if test $ac_mid -le $ac_hi; then | |
6676 | ac_lo= ac_hi= | |
6677 | break | |
6678 | fi | |
6679 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 6680 | fi |
631ef239 AC |
6681 | |
6682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6683 | done |
6684 | else | |
6685 | echo "$as_me: failed program was:" >&5 | |
6686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6687 | ||
631ef239 | 6688 | ac_lo= ac_hi= |
212380e3 | 6689 | fi |
631ef239 AC |
6690 | |
6691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6692 | fi |
631ef239 AC |
6693 | |
6694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6695 | # Binary search between lo and hi bounds. |
6696 | while test "x$ac_lo" != "x$ac_hi"; do | |
6697 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6698 | cat >conftest.$ac_ext <<_ACEOF | |
6699 | /* confdefs.h. */ | |
6700 | _ACEOF | |
6701 | cat confdefs.h >>conftest.$ac_ext | |
6702 | cat >>conftest.$ac_ext <<_ACEOF | |
6703 | /* end confdefs.h. */ | |
6704 | $ac_includes_default | |
631ef239 | 6705 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6706 | int |
6707 | main () | |
6708 | { | |
631ef239 | 6709 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6710 | test_array [0] = 0 |
6711 | ||
6712 | ; | |
6713 | return 0; | |
6714 | } | |
6715 | _ACEOF | |
6716 | rm -f conftest.$ac_objext | |
631ef239 AC |
6717 | if { (ac_try="$ac_compile" |
6718 | case "(($ac_try" in | |
6719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6720 | *) ac_try_echo=$ac_try;; | |
6721 | esac | |
6722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6723 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6724 | ac_status=$? |
6725 | grep -v '^ *+' conftest.er1 >conftest.err | |
6726 | rm -f conftest.er1 | |
6727 | cat conftest.err >&5 | |
6728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6729 | (exit $ac_status); } && { |
6730 | test -z "$ac_c_werror_flag" || | |
6731 | test ! -s conftest.err | |
6732 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6733 | ac_hi=$ac_mid |
6734 | else | |
6735 | echo "$as_me: failed program was:" >&5 | |
6736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6737 | ||
631ef239 | 6738 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 6739 | fi |
631ef239 AC |
6740 | |
6741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6742 | done |
6743 | case $ac_lo in | |
6744 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
631ef239 AC |
6745 | '') if test "$ac_cv_type_long_long" = yes; then |
6746 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
212380e3 | 6747 | See \`config.log' for more details." >&5 |
631ef239 | 6748 | echo "$as_me: error: cannot compute sizeof (long long) |
212380e3 | 6749 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6750 | { (exit 77); exit 77; }; } |
6751 | else | |
6752 | ac_cv_sizeof_long_long=0 | |
6753 | fi ;; | |
212380e3 | 6754 | esac |
212380e3 AC |
6755 | else |
6756 | cat >conftest.$ac_ext <<_ACEOF | |
6757 | /* confdefs.h. */ | |
6758 | _ACEOF | |
6759 | cat confdefs.h >>conftest.$ac_ext | |
6760 | cat >>conftest.$ac_ext <<_ACEOF | |
6761 | /* end confdefs.h. */ | |
6762 | $ac_includes_default | |
631ef239 AC |
6763 | typedef long long ac__type_sizeof_; |
6764 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6765 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
6766 | #include <stdio.h> |
6767 | #include <stdlib.h> | |
6768 | int | |
6769 | main () | |
6770 | { | |
6771 | ||
6772 | FILE *f = fopen ("conftest.val", "w"); | |
6773 | if (! f) | |
631ef239 AC |
6774 | return 1; |
6775 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 6776 | { |
631ef239 AC |
6777 | long int i = longval (); |
6778 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6779 | return 1; | |
212380e3 AC |
6780 | fprintf (f, "%ld\n", i); |
6781 | } | |
6782 | else | |
6783 | { | |
631ef239 AC |
6784 | unsigned long int i = ulongval (); |
6785 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6786 | return 1; | |
212380e3 AC |
6787 | fprintf (f, "%lu\n", i); |
6788 | } | |
631ef239 | 6789 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
6790 | |
6791 | ; | |
6792 | return 0; | |
6793 | } | |
6794 | _ACEOF | |
6795 | rm -f conftest$ac_exeext | |
631ef239 AC |
6796 | if { (ac_try="$ac_link" |
6797 | case "(($ac_try" in | |
6798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6799 | *) ac_try_echo=$ac_try;; | |
6800 | esac | |
6801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6802 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
6803 | ac_status=$? |
6804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6805 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
6806 | { (case "(($ac_try" in |
6807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6808 | *) ac_try_echo=$ac_try;; | |
6809 | esac | |
6810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6811 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
6812 | ac_status=$? |
6813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6814 | (exit $ac_status); }; }; then | |
6815 | ac_cv_sizeof_long_long=`cat conftest.val` | |
6816 | else | |
6817 | echo "$as_me: program exited with status $ac_status" >&5 | |
6818 | echo "$as_me: failed program was:" >&5 | |
6819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6820 | ||
6821 | ( exit $ac_status ) | |
631ef239 AC |
6822 | if test "$ac_cv_type_long_long" = yes; then |
6823 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
212380e3 | 6824 | See \`config.log' for more details." >&5 |
631ef239 | 6825 | echo "$as_me: error: cannot compute sizeof (long long) |
212380e3 | 6826 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6827 | { (exit 77); exit 77; }; } |
6828 | else | |
6829 | ac_cv_sizeof_long_long=0 | |
6830 | fi | |
212380e3 | 6831 | fi |
631ef239 | 6832 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
6833 | fi |
6834 | rm -f conftest.val | |
212380e3 | 6835 | fi |
631ef239 AC |
6836 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
6837 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } | |
6838 | ||
6839 | ||
6840 | ||
212380e3 AC |
6841 | cat >>confdefs.h <<_ACEOF |
6842 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
6843 | _ACEOF | |
6844 | ||
6845 | ||
6846 | ||
6847 | ||
631ef239 AC |
6848 | { echo "$as_me:$LINENO: checking the system's memory page size" >&5 |
6849 | echo $ECHO_N "checking the system's memory page size... $ECHO_C" >&6; } | |
212380e3 AC |
6850 | pagesize="no" |
6851 | if test "$cross_compiling" = yes; then | |
6852 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
6853 | See \`config.log' for more details." >&5 | |
6854 | echo "$as_me: error: cannot run test program while cross compiling | |
6855 | See \`config.log' for more details." >&2;} | |
6856 | { (exit 1); exit 1; }; } | |
6857 | else | |
6858 | cat >conftest.$ac_ext <<_ACEOF | |
6859 | /* confdefs.h. */ | |
6860 | _ACEOF | |
6861 | cat confdefs.h >>conftest.$ac_ext | |
6862 | cat >>conftest.$ac_ext <<_ACEOF | |
6863 | /* end confdefs.h. */ | |
6864 | ||
6865 | #include <stdio.h> | |
6866 | #if HAVE_UNISTD_H | |
6867 | # include <unistd.h> | |
6868 | #endif | |
6869 | ||
6870 | int main(void) { | |
6871 | FILE *fp = fopen("conftest.malloc", "w"); | |
6872 | ||
6873 | if (fp != NULL) { | |
6874 | fprintf(fp, "%d\n", getpagesize()); | |
6875 | fclose(fp); | |
6876 | } else | |
6877 | exit(1); | |
6878 | exit(0); | |
6879 | } | |
6880 | _ACEOF | |
6881 | rm -f conftest$ac_exeext | |
631ef239 AC |
6882 | if { (ac_try="$ac_link" |
6883 | case "(($ac_try" in | |
6884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6885 | *) ac_try_echo=$ac_try;; | |
6886 | esac | |
6887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6888 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
6889 | ac_status=$? |
6890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6891 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
6892 | { (case "(($ac_try" in |
6893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6894 | *) ac_try_echo=$ac_try;; | |
6895 | esac | |
6896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6897 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
6898 | ac_status=$? |
6899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6900 | (exit $ac_status); }; }; then | |
6901 | ||
6902 | if test -f "conftest.malloc" ; then | |
6903 | pagesize=`cat conftest.malloc` | |
6904 | fi | |
6905 | ||
6906 | else | |
6907 | echo "$as_me: program exited with status $ac_status" >&5 | |
6908 | echo "$as_me: failed program was:" >&5 | |
6909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6910 | ||
6911 | fi | |
631ef239 | 6912 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 6913 | fi |
631ef239 AC |
6914 | |
6915 | ||
212380e3 | 6916 | if test "$pagesize" != "no" ; then |
631ef239 AC |
6917 | { echo "$as_me:$LINENO: result: $pagesize" >&5 |
6918 | echo "${ECHO_T}$pagesize" >&6; } | |
212380e3 AC |
6919 | else |
6920 | if test "$ac_cv_sizeof_int" = "4" ; then | |
6921 | pagesize=4096 | |
6922 | else | |
6923 | pagesize=8192 | |
6924 | fi | |
631ef239 AC |
6925 | { echo "$as_me:$LINENO: result: $pagesize (guessing)" >&5 |
6926 | echo "${ECHO_T}$pagesize (guessing)" >&6; } | |
212380e3 AC |
6927 | fi |
6928 | ||
6929 | cat >>confdefs.h <<_ACEOF | |
6930 | #define MALLOC_PAGESIZE $pagesize | |
6931 | _ACEOF | |
6932 | ||
6933 | ||
6934 | ||
631ef239 AC |
6935 | { echo "$as_me:$LINENO: checking for library containing socket" >&5 |
6936 | echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } | |
212380e3 AC |
6937 | if test "${ac_cv_search_socket+set}" = set; then |
6938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6939 | else | |
6940 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
6941 | cat >conftest.$ac_ext <<_ACEOF |
6942 | /* confdefs.h. */ | |
6943 | _ACEOF | |
6944 | cat confdefs.h >>conftest.$ac_ext | |
6945 | cat >>conftest.$ac_ext <<_ACEOF | |
6946 | /* end confdefs.h. */ | |
6947 | ||
631ef239 AC |
6948 | /* Override any GCC internal prototype to avoid an error. |
6949 | Use char because int might match the return type of a GCC | |
6950 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6951 | #ifdef __cplusplus |
6952 | extern "C" | |
6953 | #endif | |
212380e3 AC |
6954 | char socket (); |
6955 | int | |
6956 | main () | |
6957 | { | |
631ef239 | 6958 | return socket (); |
212380e3 AC |
6959 | ; |
6960 | return 0; | |
6961 | } | |
6962 | _ACEOF | |
631ef239 AC |
6963 | for ac_lib in '' socket; do |
6964 | if test -z "$ac_lib"; then | |
6965 | ac_res="none required" | |
6966 | else | |
6967 | ac_res=-l$ac_lib | |
6968 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6969 | fi | |
6970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6971 | if { (ac_try="$ac_link" | |
6972 | case "(($ac_try" in | |
6973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6974 | *) ac_try_echo=$ac_try;; | |
6975 | esac | |
6976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6977 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
6978 | ac_status=$? |
6979 | grep -v '^ *+' conftest.er1 >conftest.err | |
6980 | rm -f conftest.er1 | |
6981 | cat conftest.err >&5 | |
6982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6983 | (exit $ac_status); } && { |
6984 | test -z "$ac_c_werror_flag" || | |
6985 | test ! -s conftest.err | |
6986 | } && test -s conftest$ac_exeext && | |
6987 | $as_test_x conftest$ac_exeext; then | |
6988 | ac_cv_search_socket=$ac_res | |
212380e3 AC |
6989 | else |
6990 | echo "$as_me: failed program was:" >&5 | |
6991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6992 | ||
631ef239 | 6993 | |
212380e3 | 6994 | fi |
631ef239 AC |
6995 | |
6996 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6997 | conftest$ac_exeext | |
6998 | if test "${ac_cv_search_socket+set}" = set; then | |
6999 | break | |
7000 | fi | |
7001 | done | |
7002 | if test "${ac_cv_search_socket+set}" = set; then | |
7003 | : | |
7004 | else | |
7005 | ac_cv_search_socket=no | |
7006 | fi | |
7007 | rm conftest.$ac_ext | |
7008 | LIBS=$ac_func_search_save_LIBS | |
7009 | fi | |
7010 | { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 | |
7011 | echo "${ECHO_T}$ac_cv_search_socket" >&6; } | |
7012 | ac_res=$ac_cv_search_socket | |
7013 | if test "$ac_res" != no; then | |
7014 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7015 | ||
7016 | else | |
7017 | { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5 | |
7018 | echo "$as_me: error: You have no socket()! Aborting." >&2;} | |
7019 | { (exit 1); exit 1; }; } | |
7020 | fi | |
7021 | ||
7022 | ||
7023 | if test x"$SUN" = xyes; then | |
7024 | { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5 | |
7025 | echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; } | |
7026 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
7027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7028 | else | |
7029 | ac_func_search_save_LIBS=$LIBS | |
7030 | cat >conftest.$ac_ext <<_ACEOF | |
212380e3 AC |
7031 | /* confdefs.h. */ |
7032 | _ACEOF | |
7033 | cat confdefs.h >>conftest.$ac_ext | |
7034 | cat >>conftest.$ac_ext <<_ACEOF | |
7035 | /* end confdefs.h. */ | |
7036 | ||
631ef239 AC |
7037 | /* Override any GCC internal prototype to avoid an error. |
7038 | Use char because int might match the return type of a GCC | |
7039 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7040 | #ifdef __cplusplus |
7041 | extern "C" | |
7042 | #endif | |
631ef239 | 7043 | char inet_ntoa (); |
212380e3 AC |
7044 | int |
7045 | main () | |
7046 | { | |
631ef239 | 7047 | return inet_ntoa (); |
212380e3 AC |
7048 | ; |
7049 | return 0; | |
7050 | } | |
7051 | _ACEOF | |
631ef239 AC |
7052 | for ac_lib in '' nsl; do |
7053 | if test -z "$ac_lib"; then | |
7054 | ac_res="none required" | |
7055 | else | |
7056 | ac_res=-l$ac_lib | |
7057 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7058 | fi | |
7059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7060 | if { (ac_try="$ac_link" | |
7061 | case "(($ac_try" in | |
7062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7063 | *) ac_try_echo=$ac_try;; | |
7064 | esac | |
7065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7066 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7067 | ac_status=$? |
7068 | grep -v '^ *+' conftest.er1 >conftest.err | |
7069 | rm -f conftest.er1 | |
7070 | cat conftest.err >&5 | |
7071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7072 | (exit $ac_status); } && { |
7073 | test -z "$ac_c_werror_flag" || | |
7074 | test ! -s conftest.err | |
7075 | } && test -s conftest$ac_exeext && | |
7076 | $as_test_x conftest$ac_exeext; then | |
7077 | ac_cv_search_inet_ntoa=$ac_res | |
212380e3 AC |
7078 | else |
7079 | echo "$as_me: failed program was:" >&5 | |
7080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7081 | ||
631ef239 | 7082 | |
212380e3 | 7083 | fi |
631ef239 AC |
7084 | |
7085 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7086 | conftest$ac_exeext | |
7087 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
7088 | break | |
7089 | fi | |
7090 | done | |
7091 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
7092 | : | |
7093 | else | |
7094 | ac_cv_search_inet_ntoa=no | |
212380e3 | 7095 | fi |
631ef239 | 7096 | rm conftest.$ac_ext |
212380e3 AC |
7097 | LIBS=$ac_func_search_save_LIBS |
7098 | fi | |
631ef239 AC |
7099 | { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5 |
7100 | echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; } | |
7101 | ac_res=$ac_cv_search_inet_ntoa | |
7102 | if test "$ac_res" != no; then | |
7103 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
7104 | |
7105 | else | |
631ef239 AC |
7106 | { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5 |
7107 | echo "$as_me: error: libnsl not found! Aborting." >&2;} | |
212380e3 AC |
7108 | { (exit 1); exit 1; }; } |
7109 | fi | |
7110 | ||
631ef239 | 7111 | fi |
212380e3 | 7112 | |
631ef239 AC |
7113 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
7114 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } | |
7115 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then | |
212380e3 AC |
7116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7117 | else | |
631ef239 | 7118 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
7119 | /* confdefs.h. */ |
7120 | _ACEOF | |
7121 | cat confdefs.h >>conftest.$ac_ext | |
7122 | cat >>conftest.$ac_ext <<_ACEOF | |
7123 | /* end confdefs.h. */ | |
631ef239 AC |
7124 | #include <sys/types.h> |
7125 | #include <sys/socket.h> | |
7126 | ||
212380e3 | 7127 | |
212380e3 AC |
7128 | int |
7129 | main () | |
7130 | { | |
631ef239 AC |
7131 | static struct sockaddr ac_aggr; |
7132 | if (ac_aggr.sa_len) | |
7133 | return 0; | |
212380e3 AC |
7134 | ; |
7135 | return 0; | |
7136 | } | |
7137 | _ACEOF | |
7138 | rm -f conftest.$ac_objext | |
631ef239 AC |
7139 | if { (ac_try="$ac_compile" |
7140 | case "(($ac_try" in | |
7141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7142 | *) ac_try_echo=$ac_try;; | |
7143 | esac | |
7144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7145 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7146 | ac_status=$? |
7147 | grep -v '^ *+' conftest.er1 >conftest.err | |
7148 | rm -f conftest.er1 | |
7149 | cat conftest.err >&5 | |
7150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7151 | (exit $ac_status); } && { |
7152 | test -z "$ac_c_werror_flag" || | |
7153 | test ! -s conftest.err | |
7154 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7155 | ac_cv_member_struct_sockaddr_sa_len=yes |
7156 | else | |
7157 | echo "$as_me: failed program was:" >&5 | |
7158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7159 | ||
631ef239 | 7160 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
7161 | /* confdefs.h. */ |
7162 | _ACEOF | |
7163 | cat confdefs.h >>conftest.$ac_ext | |
7164 | cat >>conftest.$ac_ext <<_ACEOF | |
7165 | /* end confdefs.h. */ | |
7166 | #include <sys/types.h> | |
7167 | #include <sys/socket.h> | |
7168 | ||
7169 | ||
7170 | int | |
7171 | main () | |
7172 | { | |
7173 | static struct sockaddr ac_aggr; | |
7174 | if (sizeof ac_aggr.sa_len) | |
7175 | return 0; | |
7176 | ; | |
7177 | return 0; | |
7178 | } | |
7179 | _ACEOF | |
7180 | rm -f conftest.$ac_objext | |
631ef239 AC |
7181 | if { (ac_try="$ac_compile" |
7182 | case "(($ac_try" in | |
7183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7184 | *) ac_try_echo=$ac_try;; | |
7185 | esac | |
7186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7187 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7188 | ac_status=$? |
7189 | grep -v '^ *+' conftest.er1 >conftest.err | |
7190 | rm -f conftest.er1 | |
7191 | cat conftest.err >&5 | |
7192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7193 | (exit $ac_status); } && { |
7194 | test -z "$ac_c_werror_flag" || | |
7195 | test ! -s conftest.err | |
7196 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7197 | ac_cv_member_struct_sockaddr_sa_len=yes |
7198 | else | |
7199 | echo "$as_me: failed program was:" >&5 | |
7200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7201 | ||
631ef239 | 7202 | ac_cv_member_struct_sockaddr_sa_len=no |
212380e3 | 7203 | fi |
631ef239 AC |
7204 | |
7205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7206 | fi |
631ef239 AC |
7207 | |
7208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7209 | fi |
631ef239 AC |
7210 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
7211 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } | |
212380e3 AC |
7212 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
7213 | ||
7214 | cat >>confdefs.h <<\_ACEOF | |
7215 | #define SOCKADDR_IN_HAS_LEN 1 | |
7216 | _ACEOF | |
7217 | ||
7218 | fi | |
7219 | ||
7220 | ||
631ef239 AC |
7221 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
7222 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | |
212380e3 AC |
7223 | if test "${ac_cv_type_socklen_t+set}" = set; then |
7224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7225 | else | |
7226 | cat >conftest.$ac_ext <<_ACEOF | |
7227 | /* confdefs.h. */ | |
7228 | _ACEOF | |
7229 | cat confdefs.h >>conftest.$ac_ext | |
7230 | cat >>conftest.$ac_ext <<_ACEOF | |
7231 | /* end confdefs.h. */ | |
7232 | #include <sys/types.h> | |
7233 | #include <sys/socket.h> | |
7234 | ||
631ef239 | 7235 | typedef socklen_t ac__type_new_; |
212380e3 AC |
7236 | int |
7237 | main () | |
7238 | { | |
631ef239 | 7239 | if ((ac__type_new_ *) 0) |
212380e3 | 7240 | return 0; |
631ef239 | 7241 | if (sizeof (ac__type_new_)) |
212380e3 AC |
7242 | return 0; |
7243 | ; | |
7244 | return 0; | |
7245 | } | |
7246 | _ACEOF | |
7247 | rm -f conftest.$ac_objext | |
631ef239 AC |
7248 | if { (ac_try="$ac_compile" |
7249 | case "(($ac_try" in | |
7250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7251 | *) ac_try_echo=$ac_try;; | |
7252 | esac | |
7253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7254 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7255 | ac_status=$? |
7256 | grep -v '^ *+' conftest.er1 >conftest.err | |
7257 | rm -f conftest.er1 | |
7258 | cat conftest.err >&5 | |
7259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7260 | (exit $ac_status); } && { |
7261 | test -z "$ac_c_werror_flag" || | |
7262 | test ! -s conftest.err | |
7263 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7264 | ac_cv_type_socklen_t=yes |
7265 | else | |
7266 | echo "$as_me: failed program was:" >&5 | |
7267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7268 | ||
631ef239 | 7269 | ac_cv_type_socklen_t=no |
212380e3 | 7270 | fi |
631ef239 AC |
7271 | |
7272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7273 | fi |
631ef239 AC |
7274 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
7275 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | |
212380e3 AC |
7276 | if test $ac_cv_type_socklen_t = yes; then |
7277 | : | |
7278 | else | |
7279 | ||
7280 | cat >>confdefs.h <<\_ACEOF | |
7281 | #define socklen_t unsigned int | |
7282 | _ACEOF | |
7283 | ||
7284 | fi | |
7285 | ||
7286 | ||
631ef239 | 7287 | # Check whether --enable-ipv6 was given. |
212380e3 | 7288 | if test "${enable_ipv6+set}" = set; then |
631ef239 | 7289 | enableval=$enable_ipv6; ipv6=$enableval |
212380e3 AC |
7290 | else |
7291 | ipv6=no | |
631ef239 AC |
7292 | fi |
7293 | ||
212380e3 | 7294 | |
631ef239 AC |
7295 | { echo "$as_me:$LINENO: checking for library containing crypt" >&5 |
7296 | echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; } | |
212380e3 AC |
7297 | if test "${ac_cv_search_crypt+set}" = set; then |
7298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7299 | else | |
7300 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
7301 | cat >conftest.$ac_ext <<_ACEOF |
7302 | /* confdefs.h. */ | |
7303 | _ACEOF | |
7304 | cat confdefs.h >>conftest.$ac_ext | |
7305 | cat >>conftest.$ac_ext <<_ACEOF | |
7306 | /* end confdefs.h. */ | |
7307 | ||
631ef239 AC |
7308 | /* Override any GCC internal prototype to avoid an error. |
7309 | Use char because int might match the return type of a GCC | |
7310 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7311 | #ifdef __cplusplus |
7312 | extern "C" | |
7313 | #endif | |
212380e3 AC |
7314 | char crypt (); |
7315 | int | |
7316 | main () | |
7317 | { | |
631ef239 | 7318 | return crypt (); |
212380e3 AC |
7319 | ; |
7320 | return 0; | |
7321 | } | |
7322 | _ACEOF | |
631ef239 AC |
7323 | for ac_lib in '' crypt descrypt; do |
7324 | if test -z "$ac_lib"; then | |
7325 | ac_res="none required" | |
7326 | else | |
7327 | ac_res=-l$ac_lib | |
7328 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7329 | fi | |
7330 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7331 | if { (ac_try="$ac_link" | |
7332 | case "(($ac_try" in | |
7333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7334 | *) ac_try_echo=$ac_try;; | |
7335 | esac | |
7336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7337 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7338 | ac_status=$? |
7339 | grep -v '^ *+' conftest.er1 >conftest.err | |
7340 | rm -f conftest.er1 | |
7341 | cat conftest.err >&5 | |
7342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7343 | (exit $ac_status); } && { |
7344 | test -z "$ac_c_werror_flag" || | |
7345 | test ! -s conftest.err | |
7346 | } && test -s conftest$ac_exeext && | |
7347 | $as_test_x conftest$ac_exeext; then | |
7348 | ac_cv_search_crypt=$ac_res | |
212380e3 AC |
7349 | else |
7350 | echo "$as_me: failed program was:" >&5 | |
7351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7352 | ||
212380e3 | 7353 | |
631ef239 | 7354 | fi |
212380e3 | 7355 | |
631ef239 AC |
7356 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7357 | conftest$ac_exeext | |
7358 | if test "${ac_cv_search_crypt+set}" = set; then | |
7359 | break | |
212380e3 | 7360 | fi |
631ef239 AC |
7361 | done |
7362 | if test "${ac_cv_search_crypt+set}" = set; then | |
7363 | : | |
7364 | else | |
7365 | ac_cv_search_crypt=no | |
212380e3 | 7366 | fi |
631ef239 | 7367 | rm conftest.$ac_ext |
212380e3 AC |
7368 | LIBS=$ac_func_search_save_LIBS |
7369 | fi | |
631ef239 AC |
7370 | { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5 |
7371 | echo "${ECHO_T}$ac_cv_search_crypt" >&6; } | |
7372 | ac_res=$ac_cv_search_crypt | |
7373 | if test "$ac_res" != no; then | |
7374 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
7375 | |
7376 | fi | |
7377 | ||
7378 | ||
7379 | CRYPT_LIB=$ac_cv_search_crypt | |
7380 | ||
7381 | if test "$CRYPT_LIB" = "none required"; then | |
7382 | unset CRYPT_LIB | |
7383 | elif test "$CRYPT_LIB" = no; then | |
7384 | unset CRYPT_LIB | |
7385 | fi | |
7386 | ||
7387 | ||
7388 | ||
7389 | if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then | |
7390 | VICONF=viconf | |
7391 | else | |
7392 | VICONF="" | |
7393 | fi | |
7394 | ||
7395 | ||
7396 | ||
631ef239 AC |
7397 | { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 |
7398 | echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; } | |
212380e3 AC |
7399 | if test "${gcc_cv_header_string+set}" = set; then |
7400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7401 | else | |
7402 | ||
7403 | cat >conftest.$ac_ext <<_ACEOF | |
7404 | #include <string.h> | |
7405 | #include <strings.h> | |
7406 | _ACEOF | |
7407 | rm -f conftest.$ac_objext | |
631ef239 AC |
7408 | if { (ac_try="$ac_compile" |
7409 | case "(($ac_try" in | |
7410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7411 | *) ac_try_echo=$ac_try;; | |
7412 | esac | |
7413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7414 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7415 | ac_status=$? |
7416 | grep -v '^ *+' conftest.er1 >conftest.err | |
7417 | rm -f conftest.er1 | |
7418 | cat conftest.err >&5 | |
7419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7420 | (exit $ac_status); } && { |
7421 | test -z "$ac_c_werror_flag" || | |
7422 | test ! -s conftest.err | |
7423 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7424 | gcc_cv_header_string=yes |
7425 | else | |
7426 | echo "$as_me: failed program was:" >&5 | |
7427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7428 | ||
631ef239 | 7429 | gcc_cv_header_string=no |
212380e3 | 7430 | fi |
631ef239 AC |
7431 | |
7432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7433 | |
7434 | fi | |
631ef239 AC |
7435 | { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 |
7436 | echo "${ECHO_T}$gcc_cv_header_string" >&6; } | |
212380e3 AC |
7437 | |
7438 | if test "$gcc_cv_header_string" = "yes"; then | |
7439 | ||
7440 | cat >>confdefs.h <<\_ACEOF | |
7441 | #define STRING_WITH_STRINGS 1 | |
7442 | _ACEOF | |
7443 | ||
7444 | fi | |
7445 | ||
631ef239 AC |
7446 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
7447 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
212380e3 AC |
7448 | if test "${ac_cv_c_bigendian+set}" = set; then |
7449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7450 | else | |
7451 | # See if sys/param.h defines the BYTE_ORDER macro. | |
7452 | cat >conftest.$ac_ext <<_ACEOF | |
7453 | /* confdefs.h. */ | |
7454 | _ACEOF | |
7455 | cat confdefs.h >>conftest.$ac_ext | |
7456 | cat >>conftest.$ac_ext <<_ACEOF | |
7457 | /* end confdefs.h. */ | |
7458 | #include <sys/types.h> | |
7459 | #include <sys/param.h> | |
7460 | ||
7461 | int | |
7462 | main () | |
7463 | { | |
631ef239 AC |
7464 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
7465 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
212380e3 AC |
7466 | bogus endian macros |
7467 | #endif | |
7468 | ||
7469 | ; | |
7470 | return 0; | |
7471 | } | |
7472 | _ACEOF | |
7473 | rm -f conftest.$ac_objext | |
631ef239 AC |
7474 | if { (ac_try="$ac_compile" |
7475 | case "(($ac_try" in | |
7476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7477 | *) ac_try_echo=$ac_try;; | |
7478 | esac | |
7479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7480 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7481 | ac_status=$? |
7482 | grep -v '^ *+' conftest.er1 >conftest.err | |
7483 | rm -f conftest.er1 | |
7484 | cat conftest.err >&5 | |
7485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7486 | (exit $ac_status); } && { |
7487 | test -z "$ac_c_werror_flag" || | |
7488 | test ! -s conftest.err | |
7489 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7490 | # It does; now see whether it defined to BIG_ENDIAN or not. |
7491 | cat >conftest.$ac_ext <<_ACEOF | |
7492 | /* confdefs.h. */ | |
7493 | _ACEOF | |
7494 | cat confdefs.h >>conftest.$ac_ext | |
7495 | cat >>conftest.$ac_ext <<_ACEOF | |
7496 | /* end confdefs.h. */ | |
7497 | #include <sys/types.h> | |
7498 | #include <sys/param.h> | |
7499 | ||
7500 | int | |
7501 | main () | |
7502 | { | |
7503 | #if BYTE_ORDER != BIG_ENDIAN | |
7504 | not big endian | |
7505 | #endif | |
7506 | ||
7507 | ; | |
7508 | return 0; | |
7509 | } | |
7510 | _ACEOF | |
7511 | rm -f conftest.$ac_objext | |
631ef239 AC |
7512 | if { (ac_try="$ac_compile" |
7513 | case "(($ac_try" in | |
7514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7515 | *) ac_try_echo=$ac_try;; | |
7516 | esac | |
7517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7518 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7519 | ac_status=$? |
7520 | grep -v '^ *+' conftest.er1 >conftest.err | |
7521 | rm -f conftest.er1 | |
7522 | cat conftest.err >&5 | |
7523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7524 | (exit $ac_status); } && { |
7525 | test -z "$ac_c_werror_flag" || | |
7526 | test ! -s conftest.err | |
7527 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7528 | ac_cv_c_bigendian=yes |
7529 | else | |
7530 | echo "$as_me: failed program was:" >&5 | |
7531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7532 | ||
631ef239 | 7533 | ac_cv_c_bigendian=no |
212380e3 | 7534 | fi |
631ef239 AC |
7535 | |
7536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7537 | else |
7538 | echo "$as_me: failed program was:" >&5 | |
7539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7540 | ||
631ef239 | 7541 | # It does not; compile a test program. |
212380e3 AC |
7542 | if test "$cross_compiling" = yes; then |
7543 | # try to guess the endianness by grepping values into an object file | |
7544 | ac_cv_c_bigendian=unknown | |
7545 | cat >conftest.$ac_ext <<_ACEOF | |
7546 | /* confdefs.h. */ | |
7547 | _ACEOF | |
7548 | cat confdefs.h >>conftest.$ac_ext | |
7549 | cat >>conftest.$ac_ext <<_ACEOF | |
7550 | /* end confdefs.h. */ | |
631ef239 AC |
7551 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
7552 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
212380e3 | 7553 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
631ef239 AC |
7554 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
7555 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
212380e3 AC |
7556 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
7557 | int | |
7558 | main () | |
7559 | { | |
7560 | _ascii (); _ebcdic (); | |
7561 | ; | |
7562 | return 0; | |
7563 | } | |
7564 | _ACEOF | |
7565 | rm -f conftest.$ac_objext | |
631ef239 AC |
7566 | if { (ac_try="$ac_compile" |
7567 | case "(($ac_try" in | |
7568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7569 | *) ac_try_echo=$ac_try;; | |
7570 | esac | |
7571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7572 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7573 | ac_status=$? |
7574 | grep -v '^ *+' conftest.er1 >conftest.err | |
7575 | rm -f conftest.er1 | |
7576 | cat conftest.err >&5 | |
7577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7578 | (exit $ac_status); } && { |
7579 | test -z "$ac_c_werror_flag" || | |
7580 | test ! -s conftest.err | |
7581 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7582 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
7583 | ac_cv_c_bigendian=yes | |
7584 | fi | |
7585 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
7586 | if test "$ac_cv_c_bigendian" = unknown; then | |
7587 | ac_cv_c_bigendian=no | |
7588 | else | |
7589 | # finding both strings is unlikely to happen, but who knows? | |
7590 | ac_cv_c_bigendian=unknown | |
7591 | fi | |
7592 | fi | |
7593 | else | |
7594 | echo "$as_me: failed program was:" >&5 | |
7595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7596 | ||
631ef239 | 7597 | |
212380e3 | 7598 | fi |
631ef239 AC |
7599 | |
7600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7601 | else |
7602 | cat >conftest.$ac_ext <<_ACEOF | |
7603 | /* confdefs.h. */ | |
7604 | _ACEOF | |
7605 | cat confdefs.h >>conftest.$ac_ext | |
7606 | cat >>conftest.$ac_ext <<_ACEOF | |
7607 | /* end confdefs.h. */ | |
631ef239 | 7608 | $ac_includes_default |
212380e3 AC |
7609 | int |
7610 | main () | |
7611 | { | |
631ef239 | 7612 | |
212380e3 AC |
7613 | /* Are we little or big endian? From Harbison&Steele. */ |
7614 | union | |
7615 | { | |
631ef239 AC |
7616 | long int l; |
7617 | char c[sizeof (long int)]; | |
212380e3 AC |
7618 | } u; |
7619 | u.l = 1; | |
631ef239 AC |
7620 | return u.c[sizeof (long int) - 1] == 1; |
7621 | ||
7622 | ; | |
7623 | return 0; | |
212380e3 AC |
7624 | } |
7625 | _ACEOF | |
7626 | rm -f conftest$ac_exeext | |
631ef239 AC |
7627 | if { (ac_try="$ac_link" |
7628 | case "(($ac_try" in | |
7629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7630 | *) ac_try_echo=$ac_try;; | |
7631 | esac | |
7632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7633 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
7634 | ac_status=$? |
7635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7636 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
7637 | { (case "(($ac_try" in |
7638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7639 | *) ac_try_echo=$ac_try;; | |
7640 | esac | |
7641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7642 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
7643 | ac_status=$? |
7644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7645 | (exit $ac_status); }; }; then | |
7646 | ac_cv_c_bigendian=no | |
7647 | else | |
7648 | echo "$as_me: program exited with status $ac_status" >&5 | |
7649 | echo "$as_me: failed program was:" >&5 | |
7650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7651 | ||
7652 | ( exit $ac_status ) | |
7653 | ac_cv_c_bigendian=yes | |
7654 | fi | |
631ef239 | 7655 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 7656 | fi |
631ef239 AC |
7657 | |
7658 | ||
212380e3 | 7659 | fi |
631ef239 AC |
7660 | |
7661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7662 | fi |
631ef239 AC |
7663 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
7664 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
212380e3 AC |
7665 | case $ac_cv_c_bigendian in |
7666 | yes) | |
7667 | ||
7668 | cat >>confdefs.h <<\_ACEOF | |
7669 | #define WORDS_BIGENDIAN 1 | |
7670 | _ACEOF | |
7671 | ;; | |
7672 | no) | |
7673 | ;; | |
7674 | *) | |
7675 | { { echo "$as_me:$LINENO: error: unknown endianness | |
7676 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
7677 | echo "$as_me: error: unknown endianness | |
7678 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
7679 | { (exit 1); exit 1; }; } ;; | |
7680 | esac | |
7681 | ||
7682 | ||
7683 | if test "${ac_cv_header_stdarg_h+set}" = set; then | |
631ef239 AC |
7684 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
7685 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } | |
212380e3 AC |
7686 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
7687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7688 | fi | |
631ef239 AC |
7689 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
7690 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } | |
212380e3 AC |
7691 | else |
7692 | # Is the header compilable? | |
631ef239 AC |
7693 | { echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
7694 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
7695 | cat >conftest.$ac_ext <<_ACEOF |
7696 | /* confdefs.h. */ | |
7697 | _ACEOF | |
7698 | cat confdefs.h >>conftest.$ac_ext | |
7699 | cat >>conftest.$ac_ext <<_ACEOF | |
7700 | /* end confdefs.h. */ | |
7701 | $ac_includes_default | |
7702 | #include <stdarg.h> | |
7703 | _ACEOF | |
7704 | rm -f conftest.$ac_objext | |
631ef239 AC |
7705 | if { (ac_try="$ac_compile" |
7706 | case "(($ac_try" in | |
7707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7708 | *) ac_try_echo=$ac_try;; | |
7709 | esac | |
7710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7711 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7712 | ac_status=$? |
7713 | grep -v '^ *+' conftest.er1 >conftest.err | |
7714 | rm -f conftest.er1 | |
7715 | cat conftest.err >&5 | |
7716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7717 | (exit $ac_status); } && { |
7718 | test -z "$ac_c_werror_flag" || | |
7719 | test ! -s conftest.err | |
7720 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7721 | ac_header_compiler=yes |
7722 | else | |
7723 | echo "$as_me: failed program was:" >&5 | |
7724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7725 | ||
631ef239 | 7726 | ac_header_compiler=no |
212380e3 | 7727 | fi |
631ef239 AC |
7728 | |
7729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7730 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7731 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
7732 | |
7733 | # Is the header present? | |
631ef239 AC |
7734 | { echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
7735 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
7736 | cat >conftest.$ac_ext <<_ACEOF |
7737 | /* confdefs.h. */ | |
7738 | _ACEOF | |
7739 | cat confdefs.h >>conftest.$ac_ext | |
7740 | cat >>conftest.$ac_ext <<_ACEOF | |
7741 | /* end confdefs.h. */ | |
7742 | #include <stdarg.h> | |
7743 | _ACEOF | |
631ef239 AC |
7744 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7745 | case "(($ac_try" in | |
7746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7747 | *) ac_try_echo=$ac_try;; | |
7748 | esac | |
7749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7750 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
7751 | ac_status=$? |
7752 | grep -v '^ *+' conftest.er1 >conftest.err | |
7753 | rm -f conftest.er1 | |
7754 | cat conftest.err >&5 | |
7755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7756 | (exit $ac_status); } >/dev/null && { |
7757 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7758 | test ! -s conftest.err | |
7759 | }; then | |
212380e3 AC |
7760 | ac_header_preproc=yes |
7761 | else | |
7762 | echo "$as_me: failed program was:" >&5 | |
7763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7764 | ||
7765 | ac_header_preproc=no | |
7766 | fi | |
631ef239 | 7767 | |
212380e3 | 7768 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
7769 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7770 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
7771 | |
7772 | # So? What about this header? | |
7773 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7774 | yes:no: ) | |
7775 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7776 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7777 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 | |
7778 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} | |
7779 | ac_header_preproc=yes | |
7780 | ;; | |
7781 | no:yes:* ) | |
7782 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 | |
7783 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} | |
7784 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 | |
7785 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} | |
7786 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 | |
7787 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} | |
7788 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7789 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7790 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 | |
7791 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} | |
7792 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 | |
7793 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 7794 | |
212380e3 AC |
7795 | ;; |
7796 | esac | |
631ef239 AC |
7797 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
7798 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } | |
212380e3 AC |
7799 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
7800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7801 | else | |
7802 | ac_cv_header_stdarg_h=$ac_header_preproc | |
7803 | fi | |
631ef239 AC |
7804 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
7805 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } | |
212380e3 AC |
7806 | |
7807 | fi | |
7808 | if test $ac_cv_header_stdarg_h = yes; then | |
7809 | : | |
7810 | else | |
7811 | { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&5 | |
7812 | echo "$as_me: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&2;} | |
7813 | { (exit 1); exit 1; }; } | |
7814 | fi | |
7815 | ||
7816 | ||
7817 | ||
7818 | ||
7819 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
7820 | ||
631ef239 AC |
7821 | { echo "$as_me:$LINENO: checking for strlcpy" >&5 |
7822 | echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; } | |
212380e3 AC |
7823 | save_CFLAGS=$CFLAGS |
7824 | CFLAGS="$CFLAGS -Wimplicit -Werror" | |
7825 | ||
7826 | cat >conftest.$ac_ext <<_ACEOF | |
7827 | /* confdefs.h. */ | |
7828 | _ACEOF | |
7829 | cat confdefs.h >>conftest.$ac_ext | |
7830 | cat >>conftest.$ac_ext <<_ACEOF | |
7831 | /* end confdefs.h. */ | |
7832 | #include <string.h> | |
7833 | #include <stdlib.h> | |
7834 | int | |
7835 | main () | |
7836 | { | |
7837 | char *a = malloc(6); | |
7838 | strlcpy(a, "hello", 6); | |
7839 | ||
7840 | ; | |
7841 | return 0; | |
7842 | } | |
7843 | _ACEOF | |
7844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
7845 | if { (ac_try="$ac_link" |
7846 | case "(($ac_try" in | |
7847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7848 | *) ac_try_echo=$ac_try;; | |
7849 | esac | |
7850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7851 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7852 | ac_status=$? |
7853 | grep -v '^ *+' conftest.er1 >conftest.err | |
7854 | rm -f conftest.er1 | |
7855 | cat conftest.err >&5 | |
7856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7857 | (exit $ac_status); } && { |
7858 | test -z "$ac_c_werror_flag" || | |
7859 | test ! -s conftest.err | |
7860 | } && test -s conftest$ac_exeext && | |
7861 | $as_test_x conftest$ac_exeext; then | |
7862 | { echo "$as_me:$LINENO: result: yes" >&5 | |
7863 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
7864 | |
7865 | cat >>confdefs.h <<\_ACEOF | |
7866 | #define HAVE_STRLCPY 1 | |
7867 | _ACEOF | |
7868 | ||
7869 | else | |
7870 | echo "$as_me: failed program was:" >&5 | |
7871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7872 | ||
631ef239 AC |
7873 | { echo "$as_me:$LINENO: result: no" >&5 |
7874 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
7875 | |
7876 | fi | |
631ef239 AC |
7877 | |
7878 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
7879 | conftest$ac_exeext conftest.$ac_ext |
7880 | ||
631ef239 AC |
7881 | { echo "$as_me:$LINENO: checking for strlcat" >&5 |
7882 | echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; } | |
212380e3 AC |
7883 | cat >conftest.$ac_ext <<_ACEOF |
7884 | /* confdefs.h. */ | |
7885 | _ACEOF | |
7886 | cat confdefs.h >>conftest.$ac_ext | |
7887 | cat >>conftest.$ac_ext <<_ACEOF | |
7888 | /* end confdefs.h. */ | |
7889 | #include <string.h> | |
7890 | #include <stdlib.h> | |
7891 | int | |
7892 | main () | |
7893 | { | |
7894 | char *a = malloc(6); | |
7895 | a[0] = '\0'; | |
7896 | strlcat(a, "hello", 6); | |
7897 | ||
7898 | ; | |
7899 | return 0; | |
7900 | } | |
7901 | _ACEOF | |
7902 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
7903 | if { (ac_try="$ac_link" |
7904 | case "(($ac_try" in | |
7905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7906 | *) ac_try_echo=$ac_try;; | |
7907 | esac | |
7908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7909 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7910 | ac_status=$? |
7911 | grep -v '^ *+' conftest.er1 >conftest.err | |
7912 | rm -f conftest.er1 | |
7913 | cat conftest.err >&5 | |
7914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7915 | (exit $ac_status); } && { |
7916 | test -z "$ac_c_werror_flag" || | |
7917 | test ! -s conftest.err | |
7918 | } && test -s conftest$ac_exeext && | |
7919 | $as_test_x conftest$ac_exeext; then | |
7920 | { echo "$as_me:$LINENO: result: yes" >&5 | |
7921 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
7922 | |
7923 | cat >>confdefs.h <<\_ACEOF | |
7924 | #define HAVE_STRLCAT 1 | |
7925 | _ACEOF | |
7926 | ||
7927 | else | |
7928 | echo "$as_me: failed program was:" >&5 | |
7929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7930 | ||
631ef239 AC |
7931 | { echo "$as_me:$LINENO: result: no" >&5 |
7932 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
7933 | |
7934 | fi | |
631ef239 AC |
7935 | |
7936 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
7937 | conftest$ac_exeext conftest.$ac_ext |
7938 | ||
7939 | CFLAGS=$save_CFLAGS | |
7940 | ||
7941 | else | |
7942 | ||
7943 | ||
7944 | ||
7945 | ||
7946 | for ac_func in strlcat strlcpy | |
7947 | do | |
7948 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
7949 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7950 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7951 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
7952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7953 | else | |
7954 | cat >conftest.$ac_ext <<_ACEOF | |
7955 | /* confdefs.h. */ | |
7956 | _ACEOF | |
7957 | cat confdefs.h >>conftest.$ac_ext | |
7958 | cat >>conftest.$ac_ext <<_ACEOF | |
7959 | /* end confdefs.h. */ | |
7960 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7961 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7962 | #define $ac_func innocuous_$ac_func | |
7963 | ||
7964 | /* System header to define __stub macros and hopefully few prototypes, | |
7965 | which can conflict with char $ac_func (); below. | |
7966 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7967 | <limits.h> exists even on freestanding compilers. */ | |
7968 | ||
7969 | #ifdef __STDC__ | |
7970 | # include <limits.h> | |
7971 | #else | |
7972 | # include <assert.h> | |
7973 | #endif | |
7974 | ||
7975 | #undef $ac_func | |
7976 | ||
631ef239 AC |
7977 | /* Override any GCC internal prototype to avoid an error. |
7978 | Use char because int might match the return type of a GCC | |
7979 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7980 | #ifdef __cplusplus |
7981 | extern "C" | |
212380e3 | 7982 | #endif |
212380e3 AC |
7983 | char $ac_func (); |
7984 | /* The GNU C library defines this for functions which it implements | |
7985 | to always fail with ENOSYS. Some functions are actually named | |
7986 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 7987 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 7988 | choke me |
212380e3 AC |
7989 | #endif |
7990 | ||
7991 | int | |
7992 | main () | |
7993 | { | |
631ef239 | 7994 | return $ac_func (); |
212380e3 AC |
7995 | ; |
7996 | return 0; | |
7997 | } | |
7998 | _ACEOF | |
7999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8000 | if { (ac_try="$ac_link" |
8001 | case "(($ac_try" in | |
8002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8003 | *) ac_try_echo=$ac_try;; | |
8004 | esac | |
8005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8006 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8007 | ac_status=$? |
8008 | grep -v '^ *+' conftest.er1 >conftest.err | |
8009 | rm -f conftest.er1 | |
8010 | cat conftest.err >&5 | |
8011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8012 | (exit $ac_status); } && { |
8013 | test -z "$ac_c_werror_flag" || | |
8014 | test ! -s conftest.err | |
8015 | } && test -s conftest$ac_exeext && | |
8016 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8017 | eval "$as_ac_var=yes" |
8018 | else | |
8019 | echo "$as_me: failed program was:" >&5 | |
8020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8021 | ||
631ef239 | 8022 | eval "$as_ac_var=no" |
212380e3 | 8023 | fi |
631ef239 AC |
8024 | |
8025 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8026 | conftest$ac_exeext conftest.$ac_ext |
8027 | fi | |
631ef239 AC |
8028 | ac_res=`eval echo '${'$as_ac_var'}'` |
8029 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8030 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
8031 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8032 | cat >>confdefs.h <<_ACEOF | |
8033 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8034 | _ACEOF | |
8035 | ||
8036 | fi | |
8037 | done | |
8038 | ||
8039 | ||
8040 | fi | |
8041 | ||
631ef239 AC |
8042 | { echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
8043 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } | |
212380e3 AC |
8044 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
8045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8046 | else | |
8047 | cat >conftest.$ac_ext <<_ACEOF | |
8048 | /* confdefs.h. */ | |
8049 | _ACEOF | |
8050 | cat confdefs.h >>conftest.$ac_ext | |
8051 | cat >>conftest.$ac_ext <<_ACEOF | |
8052 | /* end confdefs.h. */ | |
8053 | $ac_includes_default | |
631ef239 | 8054 | typedef u_int32_t ac__type_new_; |
212380e3 AC |
8055 | int |
8056 | main () | |
8057 | { | |
631ef239 | 8058 | if ((ac__type_new_ *) 0) |
212380e3 | 8059 | return 0; |
631ef239 | 8060 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8061 | return 0; |
8062 | ; | |
8063 | return 0; | |
8064 | } | |
8065 | _ACEOF | |
8066 | rm -f conftest.$ac_objext | |
631ef239 AC |
8067 | if { (ac_try="$ac_compile" |
8068 | case "(($ac_try" in | |
8069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8070 | *) ac_try_echo=$ac_try;; | |
8071 | esac | |
8072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8073 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8074 | ac_status=$? |
8075 | grep -v '^ *+' conftest.er1 >conftest.err | |
8076 | rm -f conftest.er1 | |
8077 | cat conftest.err >&5 | |
8078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8079 | (exit $ac_status); } && { |
8080 | test -z "$ac_c_werror_flag" || | |
8081 | test ! -s conftest.err | |
8082 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8083 | ac_cv_type_u_int32_t=yes |
8084 | else | |
8085 | echo "$as_me: failed program was:" >&5 | |
8086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8087 | ||
631ef239 | 8088 | ac_cv_type_u_int32_t=no |
212380e3 | 8089 | fi |
631ef239 AC |
8090 | |
8091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8092 | fi |
631ef239 AC |
8093 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
8094 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } | |
212380e3 AC |
8095 | if test $ac_cv_type_u_int32_t = yes; then |
8096 | : | |
8097 | else | |
8098 | ||
631ef239 AC |
8099 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
8100 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } | |
212380e3 AC |
8101 | if test "${ac_cv_type_uint32_t+set}" = set; then |
8102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8103 | else | |
8104 | cat >conftest.$ac_ext <<_ACEOF | |
8105 | /* confdefs.h. */ | |
8106 | _ACEOF | |
8107 | cat confdefs.h >>conftest.$ac_ext | |
8108 | cat >>conftest.$ac_ext <<_ACEOF | |
8109 | /* end confdefs.h. */ | |
8110 | $ac_includes_default | |
631ef239 | 8111 | typedef uint32_t ac__type_new_; |
212380e3 AC |
8112 | int |
8113 | main () | |
8114 | { | |
631ef239 | 8115 | if ((ac__type_new_ *) 0) |
212380e3 | 8116 | return 0; |
631ef239 | 8117 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8118 | return 0; |
8119 | ; | |
8120 | return 0; | |
8121 | } | |
8122 | _ACEOF | |
8123 | rm -f conftest.$ac_objext | |
631ef239 AC |
8124 | if { (ac_try="$ac_compile" |
8125 | case "(($ac_try" in | |
8126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8127 | *) ac_try_echo=$ac_try;; | |
8128 | esac | |
8129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8130 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8131 | ac_status=$? |
8132 | grep -v '^ *+' conftest.er1 >conftest.err | |
8133 | rm -f conftest.er1 | |
8134 | cat conftest.err >&5 | |
8135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8136 | (exit $ac_status); } && { |
8137 | test -z "$ac_c_werror_flag" || | |
8138 | test ! -s conftest.err | |
8139 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8140 | ac_cv_type_uint32_t=yes |
8141 | else | |
8142 | echo "$as_me: failed program was:" >&5 | |
8143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8144 | ||
631ef239 | 8145 | ac_cv_type_uint32_t=no |
212380e3 | 8146 | fi |
631ef239 AC |
8147 | |
8148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8149 | fi |
631ef239 AC |
8150 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
8151 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } | |
212380e3 AC |
8152 | if test $ac_cv_type_uint32_t = yes; then |
8153 | ||
8154 | ||
8155 | cat >>confdefs.h <<\_ACEOF | |
8156 | #define u_int32_t uint32_t | |
8157 | _ACEOF | |
8158 | ||
8159 | ||
8160 | else | |
8161 | ||
8162 | { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 | |
8163 | echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
8164 | ||
8165 | cat >>confdefs.h <<\_ACEOF | |
8166 | #define u_int32_t unsigned long int | |
8167 | _ACEOF | |
8168 | ||
8169 | ||
8170 | fi | |
8171 | ||
8172 | ||
8173 | fi | |
8174 | ||
8175 | ||
631ef239 AC |
8176 | { echo "$as_me:$LINENO: checking for u_int16_t" >&5 |
8177 | echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } | |
212380e3 AC |
8178 | if test "${ac_cv_type_u_int16_t+set}" = set; then |
8179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8180 | else | |
8181 | cat >conftest.$ac_ext <<_ACEOF | |
8182 | /* confdefs.h. */ | |
8183 | _ACEOF | |
8184 | cat confdefs.h >>conftest.$ac_ext | |
8185 | cat >>conftest.$ac_ext <<_ACEOF | |
8186 | /* end confdefs.h. */ | |
8187 | $ac_includes_default | |
631ef239 | 8188 | typedef u_int16_t ac__type_new_; |
212380e3 AC |
8189 | int |
8190 | main () | |
8191 | { | |
631ef239 | 8192 | if ((ac__type_new_ *) 0) |
212380e3 | 8193 | return 0; |
631ef239 | 8194 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8195 | return 0; |
8196 | ; | |
8197 | return 0; | |
8198 | } | |
8199 | _ACEOF | |
8200 | rm -f conftest.$ac_objext | |
631ef239 AC |
8201 | if { (ac_try="$ac_compile" |
8202 | case "(($ac_try" in | |
8203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8204 | *) ac_try_echo=$ac_try;; | |
8205 | esac | |
8206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8207 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8208 | ac_status=$? |
8209 | grep -v '^ *+' conftest.er1 >conftest.err | |
8210 | rm -f conftest.er1 | |
8211 | cat conftest.err >&5 | |
8212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8213 | (exit $ac_status); } && { |
8214 | test -z "$ac_c_werror_flag" || | |
8215 | test ! -s conftest.err | |
8216 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8217 | ac_cv_type_u_int16_t=yes |
8218 | else | |
8219 | echo "$as_me: failed program was:" >&5 | |
8220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8221 | ||
631ef239 | 8222 | ac_cv_type_u_int16_t=no |
212380e3 | 8223 | fi |
631ef239 AC |
8224 | |
8225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8226 | fi |
631ef239 AC |
8227 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 |
8228 | echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; } | |
212380e3 AC |
8229 | if test $ac_cv_type_u_int16_t = yes; then |
8230 | : | |
8231 | else | |
8232 | ||
631ef239 AC |
8233 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
8234 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } | |
212380e3 AC |
8235 | if test "${ac_cv_type_uint16_t+set}" = set; then |
8236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8237 | else | |
8238 | cat >conftest.$ac_ext <<_ACEOF | |
8239 | /* confdefs.h. */ | |
8240 | _ACEOF | |
8241 | cat confdefs.h >>conftest.$ac_ext | |
8242 | cat >>conftest.$ac_ext <<_ACEOF | |
8243 | /* end confdefs.h. */ | |
8244 | $ac_includes_default | |
631ef239 | 8245 | typedef uint16_t ac__type_new_; |
212380e3 AC |
8246 | int |
8247 | main () | |
8248 | { | |
631ef239 | 8249 | if ((ac__type_new_ *) 0) |
212380e3 | 8250 | return 0; |
631ef239 | 8251 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8252 | return 0; |
8253 | ; | |
8254 | return 0; | |
8255 | } | |
8256 | _ACEOF | |
8257 | rm -f conftest.$ac_objext | |
631ef239 AC |
8258 | if { (ac_try="$ac_compile" |
8259 | case "(($ac_try" in | |
8260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8261 | *) ac_try_echo=$ac_try;; | |
8262 | esac | |
8263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8264 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8265 | ac_status=$? |
8266 | grep -v '^ *+' conftest.er1 >conftest.err | |
8267 | rm -f conftest.er1 | |
8268 | cat conftest.err >&5 | |
8269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8270 | (exit $ac_status); } && { |
8271 | test -z "$ac_c_werror_flag" || | |
8272 | test ! -s conftest.err | |
8273 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8274 | ac_cv_type_uint16_t=yes |
8275 | else | |
8276 | echo "$as_me: failed program was:" >&5 | |
8277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8278 | ||
631ef239 | 8279 | ac_cv_type_uint16_t=no |
212380e3 | 8280 | fi |
631ef239 AC |
8281 | |
8282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8283 | fi |
631ef239 AC |
8284 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 |
8285 | echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; } | |
212380e3 AC |
8286 | if test $ac_cv_type_uint16_t = yes; then |
8287 | ||
8288 | ||
8289 | cat >>confdefs.h <<\_ACEOF | |
8290 | #define u_int16_t uint16_t | |
8291 | _ACEOF | |
8292 | ||
8293 | ||
8294 | else | |
8295 | ||
8296 | { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 | |
8297 | echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
8298 | ||
8299 | cat >>confdefs.h <<\_ACEOF | |
8300 | #define u_int16_t unsigned short int | |
8301 | _ACEOF | |
8302 | ||
8303 | ||
8304 | fi | |
8305 | ||
8306 | ||
8307 | fi | |
8308 | ||
8309 | ||
631ef239 AC |
8310 | { echo "$as_me:$LINENO: checking for in_port_t" >&5 |
8311 | echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } | |
212380e3 AC |
8312 | if test "${ac_cv_type_in_port_t+set}" = set; then |
8313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8314 | else | |
8315 | cat >conftest.$ac_ext <<_ACEOF | |
8316 | /* confdefs.h. */ | |
8317 | _ACEOF | |
8318 | cat confdefs.h >>conftest.$ac_ext | |
8319 | cat >>conftest.$ac_ext <<_ACEOF | |
8320 | /* end confdefs.h. */ | |
8321 | #include <sys/types.h> | |
8322 | #include <netinet/in.h> | |
8323 | ||
631ef239 | 8324 | typedef in_port_t ac__type_new_; |
212380e3 AC |
8325 | int |
8326 | main () | |
8327 | { | |
631ef239 | 8328 | if ((ac__type_new_ *) 0) |
212380e3 | 8329 | return 0; |
631ef239 | 8330 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8331 | return 0; |
8332 | ; | |
8333 | return 0; | |
8334 | } | |
8335 | _ACEOF | |
8336 | rm -f conftest.$ac_objext | |
631ef239 AC |
8337 | if { (ac_try="$ac_compile" |
8338 | case "(($ac_try" in | |
8339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8340 | *) ac_try_echo=$ac_try;; | |
8341 | esac | |
8342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8343 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8344 | ac_status=$? |
8345 | grep -v '^ *+' conftest.er1 >conftest.err | |
8346 | rm -f conftest.er1 | |
8347 | cat conftest.err >&5 | |
8348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8349 | (exit $ac_status); } && { |
8350 | test -z "$ac_c_werror_flag" || | |
8351 | test ! -s conftest.err | |
8352 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8353 | ac_cv_type_in_port_t=yes |
8354 | else | |
8355 | echo "$as_me: failed program was:" >&5 | |
8356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8357 | ||
631ef239 | 8358 | ac_cv_type_in_port_t=no |
212380e3 | 8359 | fi |
631ef239 AC |
8360 | |
8361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8362 | fi |
631ef239 AC |
8363 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 |
8364 | echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } | |
212380e3 AC |
8365 | if test $ac_cv_type_in_port_t = yes; then |
8366 | : | |
8367 | else | |
8368 | ||
8369 | cat >>confdefs.h <<\_ACEOF | |
8370 | #define in_port_t u_int16_t | |
8371 | _ACEOF | |
8372 | ||
8373 | fi | |
8374 | ||
8375 | ||
631ef239 AC |
8376 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 |
8377 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | |
212380e3 AC |
8378 | if test "${ac_cv_type_sa_family_t+set}" = set; then |
8379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8380 | else | |
8381 | cat >conftest.$ac_ext <<_ACEOF | |
8382 | /* confdefs.h. */ | |
8383 | _ACEOF | |
8384 | cat confdefs.h >>conftest.$ac_ext | |
8385 | cat >>conftest.$ac_ext <<_ACEOF | |
8386 | /* end confdefs.h. */ | |
8387 | #include <sys/types.h> | |
8388 | #include <sys/socket.h> | |
8389 | ||
631ef239 | 8390 | typedef sa_family_t ac__type_new_; |
212380e3 AC |
8391 | int |
8392 | main () | |
8393 | { | |
631ef239 | 8394 | if ((ac__type_new_ *) 0) |
212380e3 | 8395 | return 0; |
631ef239 | 8396 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8397 | return 0; |
8398 | ; | |
8399 | return 0; | |
8400 | } | |
8401 | _ACEOF | |
8402 | rm -f conftest.$ac_objext | |
631ef239 AC |
8403 | if { (ac_try="$ac_compile" |
8404 | case "(($ac_try" in | |
8405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8406 | *) ac_try_echo=$ac_try;; | |
8407 | esac | |
8408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8409 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8410 | ac_status=$? |
8411 | grep -v '^ *+' conftest.er1 >conftest.err | |
8412 | rm -f conftest.er1 | |
8413 | cat conftest.err >&5 | |
8414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8415 | (exit $ac_status); } && { |
8416 | test -z "$ac_c_werror_flag" || | |
8417 | test ! -s conftest.err | |
8418 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8419 | ac_cv_type_sa_family_t=yes |
8420 | else | |
8421 | echo "$as_me: failed program was:" >&5 | |
8422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8423 | ||
631ef239 | 8424 | ac_cv_type_sa_family_t=no |
212380e3 | 8425 | fi |
631ef239 AC |
8426 | |
8427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8428 | fi |
631ef239 AC |
8429 | { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5 |
8430 | echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; } | |
212380e3 AC |
8431 | if test $ac_cv_type_sa_family_t = yes; then |
8432 | : | |
8433 | else | |
8434 | ||
8435 | cat >>confdefs.h <<\_ACEOF | |
8436 | #define sa_family_t u_int16_t | |
8437 | _ACEOF | |
8438 | ||
8439 | fi | |
8440 | ||
8441 | ||
631ef239 AC |
8442 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
8443 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } | |
212380e3 AC |
8444 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
8445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8446 | else | |
8447 | cat >conftest.$ac_ext <<_ACEOF | |
8448 | /* confdefs.h. */ | |
8449 | _ACEOF | |
8450 | cat confdefs.h >>conftest.$ac_ext | |
8451 | cat >>conftest.$ac_ext <<_ACEOF | |
8452 | /* end confdefs.h. */ | |
8453 | $ac_includes_default | |
631ef239 | 8454 | typedef uintptr_t ac__type_new_; |
212380e3 AC |
8455 | int |
8456 | main () | |
8457 | { | |
631ef239 | 8458 | if ((ac__type_new_ *) 0) |
212380e3 | 8459 | return 0; |
631ef239 | 8460 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8461 | return 0; |
8462 | ; | |
8463 | return 0; | |
8464 | } | |
8465 | _ACEOF | |
8466 | rm -f conftest.$ac_objext | |
631ef239 AC |
8467 | if { (ac_try="$ac_compile" |
8468 | case "(($ac_try" in | |
8469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8470 | *) ac_try_echo=$ac_try;; | |
8471 | esac | |
8472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8473 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8474 | ac_status=$? |
8475 | grep -v '^ *+' conftest.er1 >conftest.err | |
8476 | rm -f conftest.er1 | |
8477 | cat conftest.err >&5 | |
8478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8479 | (exit $ac_status); } && { |
8480 | test -z "$ac_c_werror_flag" || | |
8481 | test ! -s conftest.err | |
8482 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8483 | ac_cv_type_uintptr_t=yes |
8484 | else | |
8485 | echo "$as_me: failed program was:" >&5 | |
8486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8487 | ||
631ef239 | 8488 | ac_cv_type_uintptr_t=no |
212380e3 | 8489 | fi |
631ef239 AC |
8490 | |
8491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8492 | fi |
631ef239 AC |
8493 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
8494 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } | |
212380e3 AC |
8495 | if test $ac_cv_type_uintptr_t = yes; then |
8496 | ||
8497 | cat >>confdefs.h <<_ACEOF | |
8498 | #define HAVE_UINTPTR_T 1 | |
8499 | _ACEOF | |
8500 | ||
8501 | ||
8502 | fi | |
8503 | ||
8504 | ||
8505 | ||
8506 | ||
8507 | ||
8508 | ||
8509 | ||
8510 | ||
8511 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
8512 | do | |
8513 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
8514 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8515 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8516 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
8517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8518 | else | |
8519 | cat >conftest.$ac_ext <<_ACEOF | |
8520 | /* confdefs.h. */ | |
8521 | _ACEOF | |
8522 | cat confdefs.h >>conftest.$ac_ext | |
8523 | cat >>conftest.$ac_ext <<_ACEOF | |
8524 | /* end confdefs.h. */ | |
8525 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8526 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8527 | #define $ac_func innocuous_$ac_func | |
8528 | ||
8529 | /* System header to define __stub macros and hopefully few prototypes, | |
8530 | which can conflict with char $ac_func (); below. | |
8531 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8532 | <limits.h> exists even on freestanding compilers. */ | |
8533 | ||
8534 | #ifdef __STDC__ | |
8535 | # include <limits.h> | |
8536 | #else | |
8537 | # include <assert.h> | |
8538 | #endif | |
8539 | ||
8540 | #undef $ac_func | |
8541 | ||
631ef239 AC |
8542 | /* Override any GCC internal prototype to avoid an error. |
8543 | Use char because int might match the return type of a GCC | |
8544 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8545 | #ifdef __cplusplus |
8546 | extern "C" | |
212380e3 | 8547 | #endif |
212380e3 AC |
8548 | char $ac_func (); |
8549 | /* The GNU C library defines this for functions which it implements | |
8550 | to always fail with ENOSYS. Some functions are actually named | |
8551 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8552 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 8553 | choke me |
212380e3 AC |
8554 | #endif |
8555 | ||
8556 | int | |
8557 | main () | |
8558 | { | |
631ef239 | 8559 | return $ac_func (); |
212380e3 AC |
8560 | ; |
8561 | return 0; | |
8562 | } | |
8563 | _ACEOF | |
8564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8565 | if { (ac_try="$ac_link" |
8566 | case "(($ac_try" in | |
8567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8568 | *) ac_try_echo=$ac_try;; | |
8569 | esac | |
8570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8571 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8572 | ac_status=$? |
8573 | grep -v '^ *+' conftest.er1 >conftest.err | |
8574 | rm -f conftest.er1 | |
8575 | cat conftest.err >&5 | |
8576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8577 | (exit $ac_status); } && { |
8578 | test -z "$ac_c_werror_flag" || | |
8579 | test ! -s conftest.err | |
8580 | } && test -s conftest$ac_exeext && | |
8581 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8582 | eval "$as_ac_var=yes" |
8583 | else | |
8584 | echo "$as_me: failed program was:" >&5 | |
8585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8586 | ||
631ef239 | 8587 | eval "$as_ac_var=no" |
212380e3 | 8588 | fi |
631ef239 AC |
8589 | |
8590 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8591 | conftest$ac_exeext conftest.$ac_ext |
8592 | fi | |
631ef239 AC |
8593 | ac_res=`eval echo '${'$as_ac_var'}'` |
8594 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8595 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
8596 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8597 | cat >>confdefs.h <<_ACEOF | |
8598 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8599 | _ACEOF | |
8600 | ||
8601 | fi | |
8602 | done | |
8603 | ||
8604 | ||
8605 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
8606 | # for constant arguments. Useless! | |
631ef239 AC |
8607 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8608 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
212380e3 AC |
8609 | if test "${ac_cv_working_alloca_h+set}" = set; then |
8610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8611 | else | |
8612 | cat >conftest.$ac_ext <<_ACEOF | |
8613 | /* confdefs.h. */ | |
8614 | _ACEOF | |
8615 | cat confdefs.h >>conftest.$ac_ext | |
8616 | cat >>conftest.$ac_ext <<_ACEOF | |
8617 | /* end confdefs.h. */ | |
8618 | #include <alloca.h> | |
8619 | int | |
8620 | main () | |
8621 | { | |
8622 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 8623 | if (p) return 0; |
212380e3 AC |
8624 | ; |
8625 | return 0; | |
8626 | } | |
8627 | _ACEOF | |
8628 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8629 | if { (ac_try="$ac_link" |
8630 | case "(($ac_try" in | |
8631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8632 | *) ac_try_echo=$ac_try;; | |
8633 | esac | |
8634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8635 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8636 | ac_status=$? |
8637 | grep -v '^ *+' conftest.er1 >conftest.err | |
8638 | rm -f conftest.er1 | |
8639 | cat conftest.err >&5 | |
8640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8641 | (exit $ac_status); } && { |
8642 | test -z "$ac_c_werror_flag" || | |
8643 | test ! -s conftest.err | |
8644 | } && test -s conftest$ac_exeext && | |
8645 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8646 | ac_cv_working_alloca_h=yes |
8647 | else | |
8648 | echo "$as_me: failed program was:" >&5 | |
8649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8650 | ||
631ef239 | 8651 | ac_cv_working_alloca_h=no |
212380e3 | 8652 | fi |
631ef239 AC |
8653 | |
8654 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8655 | conftest$ac_exeext conftest.$ac_ext |
8656 | fi | |
631ef239 AC |
8657 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
8658 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
212380e3 AC |
8659 | if test $ac_cv_working_alloca_h = yes; then |
8660 | ||
8661 | cat >>confdefs.h <<\_ACEOF | |
8662 | #define HAVE_ALLOCA_H 1 | |
8663 | _ACEOF | |
8664 | ||
8665 | fi | |
8666 | ||
631ef239 AC |
8667 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
8668 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
212380e3 AC |
8669 | if test "${ac_cv_func_alloca_works+set}" = set; then |
8670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8671 | else | |
8672 | cat >conftest.$ac_ext <<_ACEOF | |
8673 | /* confdefs.h. */ | |
8674 | _ACEOF | |
8675 | cat confdefs.h >>conftest.$ac_ext | |
8676 | cat >>conftest.$ac_ext <<_ACEOF | |
8677 | /* end confdefs.h. */ | |
8678 | #ifdef __GNUC__ | |
8679 | # define alloca __builtin_alloca | |
8680 | #else | |
8681 | # ifdef _MSC_VER | |
8682 | # include <malloc.h> | |
8683 | # define alloca _alloca | |
8684 | # else | |
631ef239 | 8685 | # ifdef HAVE_ALLOCA_H |
212380e3 AC |
8686 | # include <alloca.h> |
8687 | # else | |
8688 | # ifdef _AIX | |
8689 | #pragma alloca | |
8690 | # else | |
8691 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8692 | char *alloca (); | |
8693 | # endif | |
8694 | # endif | |
8695 | # endif | |
8696 | # endif | |
8697 | #endif | |
8698 | ||
8699 | int | |
8700 | main () | |
8701 | { | |
8702 | char *p = (char *) alloca (1); | |
631ef239 | 8703 | if (p) return 0; |
212380e3 AC |
8704 | ; |
8705 | return 0; | |
8706 | } | |
8707 | _ACEOF | |
8708 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8709 | if { (ac_try="$ac_link" |
8710 | case "(($ac_try" in | |
8711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8712 | *) ac_try_echo=$ac_try;; | |
8713 | esac | |
8714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8715 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8716 | ac_status=$? |
8717 | grep -v '^ *+' conftest.er1 >conftest.err | |
8718 | rm -f conftest.er1 | |
8719 | cat conftest.err >&5 | |
8720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8721 | (exit $ac_status); } && { |
8722 | test -z "$ac_c_werror_flag" || | |
8723 | test ! -s conftest.err | |
8724 | } && test -s conftest$ac_exeext && | |
8725 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8726 | ac_cv_func_alloca_works=yes |
8727 | else | |
8728 | echo "$as_me: failed program was:" >&5 | |
8729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8730 | ||
631ef239 | 8731 | ac_cv_func_alloca_works=no |
212380e3 | 8732 | fi |
631ef239 AC |
8733 | |
8734 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8735 | conftest$ac_exeext conftest.$ac_ext |
8736 | fi | |
631ef239 AC |
8737 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8738 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
212380e3 AC |
8739 | |
8740 | if test $ac_cv_func_alloca_works = yes; then | |
8741 | ||
8742 | cat >>confdefs.h <<\_ACEOF | |
8743 | #define HAVE_ALLOCA 1 | |
8744 | _ACEOF | |
8745 | ||
8746 | else | |
8747 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
8748 | # that cause trouble. Some versions do not even contain alloca or | |
8749 | # contain a buggy version. If you still want to use their alloca, | |
8750 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8751 | ||
631ef239 | 8752 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 AC |
8753 | |
8754 | cat >>confdefs.h <<\_ACEOF | |
8755 | #define C_ALLOCA 1 | |
8756 | _ACEOF | |
8757 | ||
8758 | ||
631ef239 AC |
8759 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8760 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
212380e3 AC |
8761 | if test "${ac_cv_os_cray+set}" = set; then |
8762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8763 | else | |
8764 | cat >conftest.$ac_ext <<_ACEOF | |
8765 | /* confdefs.h. */ | |
8766 | _ACEOF | |
8767 | cat confdefs.h >>conftest.$ac_ext | |
8768 | cat >>conftest.$ac_ext <<_ACEOF | |
8769 | /* end confdefs.h. */ | |
631ef239 | 8770 | #if defined CRAY && ! defined CRAY2 |
212380e3 AC |
8771 | webecray |
8772 | #else | |
8773 | wenotbecray | |
8774 | #endif | |
8775 | ||
8776 | _ACEOF | |
8777 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8778 | $EGREP "webecray" >/dev/null 2>&1; then | |
8779 | ac_cv_os_cray=yes | |
8780 | else | |
8781 | ac_cv_os_cray=no | |
8782 | fi | |
8783 | rm -f conftest* | |
8784 | ||
8785 | fi | |
631ef239 AC |
8786 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8787 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
212380e3 AC |
8788 | if test $ac_cv_os_cray = yes; then |
8789 | for ac_func in _getb67 GETB67 getb67; do | |
8790 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
8791 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8792 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8793 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
8794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8795 | else | |
8796 | cat >conftest.$ac_ext <<_ACEOF | |
8797 | /* confdefs.h. */ | |
8798 | _ACEOF | |
8799 | cat confdefs.h >>conftest.$ac_ext | |
8800 | cat >>conftest.$ac_ext <<_ACEOF | |
8801 | /* end confdefs.h. */ | |
8802 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8803 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8804 | #define $ac_func innocuous_$ac_func | |
8805 | ||
8806 | /* System header to define __stub macros and hopefully few prototypes, | |
8807 | which can conflict with char $ac_func (); below. | |
8808 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8809 | <limits.h> exists even on freestanding compilers. */ | |
8810 | ||
8811 | #ifdef __STDC__ | |
8812 | # include <limits.h> | |
8813 | #else | |
8814 | # include <assert.h> | |
8815 | #endif | |
8816 | ||
8817 | #undef $ac_func | |
8818 | ||
631ef239 AC |
8819 | /* Override any GCC internal prototype to avoid an error. |
8820 | Use char because int might match the return type of a GCC | |
8821 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8822 | #ifdef __cplusplus |
8823 | extern "C" | |
212380e3 | 8824 | #endif |
212380e3 AC |
8825 | char $ac_func (); |
8826 | /* The GNU C library defines this for functions which it implements | |
8827 | to always fail with ENOSYS. Some functions are actually named | |
8828 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8829 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 8830 | choke me |
212380e3 AC |
8831 | #endif |
8832 | ||
8833 | int | |
8834 | main () | |
8835 | { | |
631ef239 | 8836 | return $ac_func (); |
212380e3 AC |
8837 | ; |
8838 | return 0; | |
8839 | } | |
8840 | _ACEOF | |
8841 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8842 | if { (ac_try="$ac_link" |
8843 | case "(($ac_try" in | |
8844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8845 | *) ac_try_echo=$ac_try;; | |
8846 | esac | |
8847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8848 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8849 | ac_status=$? |
8850 | grep -v '^ *+' conftest.er1 >conftest.err | |
8851 | rm -f conftest.er1 | |
8852 | cat conftest.err >&5 | |
8853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8854 | (exit $ac_status); } && { |
8855 | test -z "$ac_c_werror_flag" || | |
8856 | test ! -s conftest.err | |
8857 | } && test -s conftest$ac_exeext && | |
8858 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8859 | eval "$as_ac_var=yes" |
8860 | else | |
8861 | echo "$as_me: failed program was:" >&5 | |
8862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8863 | ||
631ef239 | 8864 | eval "$as_ac_var=no" |
212380e3 | 8865 | fi |
631ef239 AC |
8866 | |
8867 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8868 | conftest$ac_exeext conftest.$ac_ext |
8869 | fi | |
631ef239 AC |
8870 | ac_res=`eval echo '${'$as_ac_var'}'` |
8871 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8872 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
8873 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8874 | ||
8875 | cat >>confdefs.h <<_ACEOF | |
8876 | #define CRAY_STACKSEG_END $ac_func | |
8877 | _ACEOF | |
8878 | ||
8879 | break | |
8880 | fi | |
8881 | ||
8882 | done | |
8883 | fi | |
8884 | ||
631ef239 AC |
8885 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
8886 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
212380e3 AC |
8887 | if test "${ac_cv_c_stack_direction+set}" = set; then |
8888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8889 | else | |
8890 | if test "$cross_compiling" = yes; then | |
8891 | ac_cv_c_stack_direction=0 | |
8892 | else | |
8893 | cat >conftest.$ac_ext <<_ACEOF | |
8894 | /* confdefs.h. */ | |
8895 | _ACEOF | |
8896 | cat confdefs.h >>conftest.$ac_ext | |
8897 | cat >>conftest.$ac_ext <<_ACEOF | |
8898 | /* end confdefs.h. */ | |
631ef239 | 8899 | $ac_includes_default |
212380e3 AC |
8900 | int |
8901 | find_stack_direction () | |
8902 | { | |
8903 | static char *addr = 0; | |
8904 | auto char dummy; | |
8905 | if (addr == 0) | |
8906 | { | |
8907 | addr = &dummy; | |
8908 | return find_stack_direction (); | |
8909 | } | |
8910 | else | |
8911 | return (&dummy > addr) ? 1 : -1; | |
8912 | } | |
8913 | ||
8914 | int | |
8915 | main () | |
8916 | { | |
631ef239 | 8917 | return find_stack_direction () < 0; |
212380e3 AC |
8918 | } |
8919 | _ACEOF | |
8920 | rm -f conftest$ac_exeext | |
631ef239 AC |
8921 | if { (ac_try="$ac_link" |
8922 | case "(($ac_try" in | |
8923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8924 | *) ac_try_echo=$ac_try;; | |
8925 | esac | |
8926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8927 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
8928 | ac_status=$? |
8929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8930 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
8931 | { (case "(($ac_try" in |
8932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8933 | *) ac_try_echo=$ac_try;; | |
8934 | esac | |
8935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8936 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
8937 | ac_status=$? |
8938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8939 | (exit $ac_status); }; }; then | |
8940 | ac_cv_c_stack_direction=1 | |
8941 | else | |
8942 | echo "$as_me: program exited with status $ac_status" >&5 | |
8943 | echo "$as_me: failed program was:" >&5 | |
8944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8945 | ||
8946 | ( exit $ac_status ) | |
8947 | ac_cv_c_stack_direction=-1 | |
8948 | fi | |
631ef239 | 8949 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 8950 | fi |
631ef239 AC |
8951 | |
8952 | ||
212380e3 | 8953 | fi |
631ef239 AC |
8954 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
8955 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
212380e3 AC |
8956 | |
8957 | cat >>confdefs.h <<_ACEOF | |
8958 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
8959 | _ACEOF | |
8960 | ||
8961 | ||
8962 | fi | |
8963 | ||
8964 | ||
8965 | ||
631ef239 AC |
8966 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
8967 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } | |
212380e3 AC |
8968 | if test "${ac_cv_func_nanosleep+set}" = set; then |
8969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8970 | else | |
8971 | cat >conftest.$ac_ext <<_ACEOF | |
8972 | /* confdefs.h. */ | |
8973 | _ACEOF | |
8974 | cat confdefs.h >>conftest.$ac_ext | |
8975 | cat >>conftest.$ac_ext <<_ACEOF | |
8976 | /* end confdefs.h. */ | |
8977 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. | |
8978 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8979 | #define nanosleep innocuous_nanosleep | |
8980 | ||
8981 | /* System header to define __stub macros and hopefully few prototypes, | |
8982 | which can conflict with char nanosleep (); below. | |
8983 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8984 | <limits.h> exists even on freestanding compilers. */ | |
8985 | ||
8986 | #ifdef __STDC__ | |
8987 | # include <limits.h> | |
8988 | #else | |
8989 | # include <assert.h> | |
8990 | #endif | |
8991 | ||
8992 | #undef nanosleep | |
8993 | ||
631ef239 AC |
8994 | /* Override any GCC internal prototype to avoid an error. |
8995 | Use char because int might match the return type of a GCC | |
8996 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8997 | #ifdef __cplusplus |
8998 | extern "C" | |
212380e3 | 8999 | #endif |
212380e3 AC |
9000 | char nanosleep (); |
9001 | /* The GNU C library defines this for functions which it implements | |
9002 | to always fail with ENOSYS. Some functions are actually named | |
9003 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 9004 | #if defined __stub_nanosleep || defined __stub___nanosleep |
212380e3 | 9005 | choke me |
212380e3 AC |
9006 | #endif |
9007 | ||
9008 | int | |
9009 | main () | |
9010 | { | |
631ef239 | 9011 | return nanosleep (); |
212380e3 AC |
9012 | ; |
9013 | return 0; | |
9014 | } | |
9015 | _ACEOF | |
9016 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9017 | if { (ac_try="$ac_link" |
9018 | case "(($ac_try" in | |
9019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9020 | *) ac_try_echo=$ac_try;; | |
9021 | esac | |
9022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9023 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9024 | ac_status=$? |
9025 | grep -v '^ *+' conftest.er1 >conftest.err | |
9026 | rm -f conftest.er1 | |
9027 | cat conftest.err >&5 | |
9028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9029 | (exit $ac_status); } && { |
9030 | test -z "$ac_c_werror_flag" || | |
9031 | test ! -s conftest.err | |
9032 | } && test -s conftest$ac_exeext && | |
9033 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9034 | ac_cv_func_nanosleep=yes |
9035 | else | |
9036 | echo "$as_me: failed program was:" >&5 | |
9037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9038 | ||
631ef239 | 9039 | ac_cv_func_nanosleep=no |
212380e3 | 9040 | fi |
631ef239 AC |
9041 | |
9042 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9043 | conftest$ac_exeext conftest.$ac_ext |
9044 | fi | |
631ef239 AC |
9045 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
9046 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } | |
212380e3 AC |
9047 | if test $ac_cv_func_nanosleep = yes; then |
9048 | : | |
9049 | else | |
631ef239 AC |
9050 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
9051 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } | |
212380e3 AC |
9052 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
9053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9054 | else | |
9055 | ac_check_lib_save_LIBS=$LIBS | |
9056 | LIBS="-lrt $LIBS" | |
9057 | cat >conftest.$ac_ext <<_ACEOF | |
9058 | /* confdefs.h. */ | |
9059 | _ACEOF | |
9060 | cat confdefs.h >>conftest.$ac_ext | |
9061 | cat >>conftest.$ac_ext <<_ACEOF | |
9062 | /* end confdefs.h. */ | |
9063 | ||
631ef239 AC |
9064 | /* Override any GCC internal prototype to avoid an error. |
9065 | Use char because int might match the return type of a GCC | |
9066 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9067 | #ifdef __cplusplus |
9068 | extern "C" | |
9069 | #endif | |
212380e3 AC |
9070 | char nanosleep (); |
9071 | int | |
9072 | main () | |
9073 | { | |
631ef239 | 9074 | return nanosleep (); |
212380e3 AC |
9075 | ; |
9076 | return 0; | |
9077 | } | |
9078 | _ACEOF | |
9079 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9080 | if { (ac_try="$ac_link" |
9081 | case "(($ac_try" in | |
9082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9083 | *) ac_try_echo=$ac_try;; | |
9084 | esac | |
9085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9086 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9087 | ac_status=$? |
9088 | grep -v '^ *+' conftest.er1 >conftest.err | |
9089 | rm -f conftest.er1 | |
9090 | cat conftest.err >&5 | |
9091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9092 | (exit $ac_status); } && { |
9093 | test -z "$ac_c_werror_flag" || | |
9094 | test ! -s conftest.err | |
9095 | } && test -s conftest$ac_exeext && | |
9096 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9097 | ac_cv_lib_rt_nanosleep=yes |
9098 | else | |
9099 | echo "$as_me: failed program was:" >&5 | |
9100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9101 | ||
631ef239 | 9102 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 9103 | fi |
631ef239 AC |
9104 | |
9105 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9106 | conftest$ac_exeext conftest.$ac_ext |
9107 | LIBS=$ac_check_lib_save_LIBS | |
9108 | fi | |
631ef239 AC |
9109 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
9110 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } | |
212380e3 AC |
9111 | if test $ac_cv_lib_rt_nanosleep = yes; then |
9112 | LIBS="${LIBS} -lrt" | |
9113 | else | |
631ef239 AC |
9114 | { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 |
9115 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; } | |
212380e3 AC |
9116 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then |
9117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9118 | else | |
9119 | ac_check_lib_save_LIBS=$LIBS | |
9120 | LIBS="-lposix4 $LIBS" | |
9121 | cat >conftest.$ac_ext <<_ACEOF | |
9122 | /* confdefs.h. */ | |
9123 | _ACEOF | |
9124 | cat confdefs.h >>conftest.$ac_ext | |
9125 | cat >>conftest.$ac_ext <<_ACEOF | |
9126 | /* end confdefs.h. */ | |
9127 | ||
631ef239 AC |
9128 | /* Override any GCC internal prototype to avoid an error. |
9129 | Use char because int might match the return type of a GCC | |
9130 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9131 | #ifdef __cplusplus |
9132 | extern "C" | |
9133 | #endif | |
212380e3 AC |
9134 | char nanosleep (); |
9135 | int | |
9136 | main () | |
9137 | { | |
631ef239 | 9138 | return nanosleep (); |
212380e3 AC |
9139 | ; |
9140 | return 0; | |
9141 | } | |
9142 | _ACEOF | |
9143 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9144 | if { (ac_try="$ac_link" |
9145 | case "(($ac_try" in | |
9146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9147 | *) ac_try_echo=$ac_try;; | |
9148 | esac | |
9149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9150 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9151 | ac_status=$? |
9152 | grep -v '^ *+' conftest.er1 >conftest.err | |
9153 | rm -f conftest.er1 | |
9154 | cat conftest.err >&5 | |
9155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9156 | (exit $ac_status); } && { |
9157 | test -z "$ac_c_werror_flag" || | |
9158 | test ! -s conftest.err | |
9159 | } && test -s conftest$ac_exeext && | |
9160 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9161 | ac_cv_lib_posix4_nanosleep=yes |
9162 | else | |
9163 | echo "$as_me: failed program was:" >&5 | |
9164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9165 | ||
631ef239 | 9166 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 9167 | fi |
631ef239 AC |
9168 | |
9169 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9170 | conftest$ac_exeext conftest.$ac_ext |
9171 | LIBS=$ac_check_lib_save_LIBS | |
9172 | fi | |
631ef239 AC |
9173 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 |
9174 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; } | |
212380e3 AC |
9175 | if test $ac_cv_lib_posix4_nanosleep = yes; then |
9176 | LIBS="${LIBS} -lposix4" | |
9177 | ||
9178 | fi | |
9179 | ||
9180 | fi | |
9181 | ||
9182 | fi | |
9183 | ||
9184 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
9185 | then | |
631ef239 AC |
9186 | { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5 |
9187 | echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 AC |
9188 | else |
9189 | ||
9190 | cat >>confdefs.h <<\_ACEOF | |
9191 | #define HAVE_NANOSLEEP 1 | |
9192 | _ACEOF | |
9193 | ||
9194 | fi | |
9195 | ||
631ef239 AC |
9196 | { echo "$as_me:$LINENO: checking for OpenSSL" >&5 |
9197 | echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; } | |
9198 | # Check whether --enable-openssl was given. | |
212380e3 | 9199 | if test "${enable_openssl+set}" = set; then |
631ef239 | 9200 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 AC |
9201 | else |
9202 | cf_enable_openssl="auto" | |
631ef239 AC |
9203 | fi |
9204 | ||
212380e3 AC |
9205 | |
9206 | if test "$cf_enable_openssl" != "no" ; then | |
9207 | cf_openssl_basedir="" | |
9208 | if test "$cf_enable_openssl" != "auto" && | |
9209 | test "$cf_enable_openssl" != "yes" ; then | |
9210 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
9211 | else | |
9212 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
9213 | /usr/local/openssl ; do | |
9214 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
9215 | cf_openssl_basedir="${dirs}" | |
9216 | break | |
9217 | fi | |
9218 | done | |
9219 | unset dirs | |
9220 | fi | |
9221 | if test ! -z "$cf_openssl_basedir"; then | |
9222 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
9223 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
9224 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
9225 | else | |
9226 | cf_openssl_basedir="" | |
9227 | fi | |
9228 | else | |
9229 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
9230 | cf_openssl_basedir="/usr" | |
9231 | fi | |
9232 | fi | |
9233 | ||
9234 | if test ! -z "$cf_openssl_basedir"; then | |
631ef239 AC |
9235 | { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5 |
9236 | echo "${ECHO_T}$cf_openssl_basedir" >&6; } | |
212380e3 AC |
9237 | cf_enable_openssl="yes" |
9238 | else | |
631ef239 AC |
9239 | { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5 |
9240 | echo "${ECHO_T}not found. Specify a correct path?" >&6; } | |
212380e3 AC |
9241 | cf_enable_openssl="no" |
9242 | fi | |
9243 | unset cf_openssl_basedir | |
9244 | else | |
631ef239 AC |
9245 | { echo "$as_me:$LINENO: result: disabled" >&5 |
9246 | echo "${ECHO_T}disabled" >&6; } | |
212380e3 AC |
9247 | fi |
9248 | ||
9249 | save_CPPFLAGS="$CPPFLAGS" | |
9250 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
9251 | save_LIBS="$LIBS" | |
9252 | LIBS="$LIBS $SSL_LIBS" | |
9253 | if test "$cf_enable_openssl" != no; then | |
631ef239 AC |
9254 | { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5 |
9255 | echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; } | |
212380e3 AC |
9256 | if test "$cross_compiling" = yes; then |
9257 | cf_openssl_version_ok=no | |
9258 | else | |
9259 | cat >conftest.$ac_ext <<_ACEOF | |
9260 | /* confdefs.h. */ | |
9261 | _ACEOF | |
9262 | cat confdefs.h >>conftest.$ac_ext | |
9263 | cat >>conftest.$ac_ext <<_ACEOF | |
9264 | /* end confdefs.h. */ | |
9265 | #include <openssl/opensslv.h> | |
9266 | #include <stdlib.h> | |
9267 | int | |
9268 | main () | |
9269 | { | |
9270 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
9271 | exit(0); else exit(1); | |
9272 | ; | |
9273 | return 0; | |
9274 | } | |
9275 | _ACEOF | |
9276 | rm -f conftest$ac_exeext | |
631ef239 AC |
9277 | if { (ac_try="$ac_link" |
9278 | case "(($ac_try" in | |
9279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9280 | *) ac_try_echo=$ac_try;; | |
9281 | esac | |
9282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9283 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
9284 | ac_status=$? |
9285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9286 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
9287 | { (case "(($ac_try" in |
9288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9289 | *) ac_try_echo=$ac_try;; | |
9290 | esac | |
9291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9292 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
9293 | ac_status=$? |
9294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9295 | (exit $ac_status); }; }; then | |
9296 | cf_openssl_version_ok=yes | |
9297 | else | |
9298 | echo "$as_me: program exited with status $ac_status" >&5 | |
9299 | echo "$as_me: failed program was:" >&5 | |
9300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9301 | ||
9302 | ( exit $ac_status ) | |
9303 | cf_openssl_version_ok=no | |
9304 | fi | |
631ef239 | 9305 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9306 | fi |
9307 | ||
631ef239 AC |
9308 | |
9309 | ||
212380e3 | 9310 | if test "$cf_openssl_version_ok" = yes; then |
631ef239 AC |
9311 | { echo "$as_me:$LINENO: result: found" >&5 |
9312 | echo "${ECHO_T}found" >&6; } | |
212380e3 AC |
9313 | |
9314 | ENCSPEED=encspeed | |
9315 | ||
9316 | ||
9317 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
9318 | ||
631ef239 AC |
9319 | { echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5 |
9320 | echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; } | |
212380e3 AC |
9321 | if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then |
9322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9323 | else | |
9324 | ac_check_lib_save_LIBS=$LIBS | |
9325 | LIBS="-lcrypto $LIBS" | |
9326 | cat >conftest.$ac_ext <<_ACEOF | |
9327 | /* confdefs.h. */ | |
9328 | _ACEOF | |
9329 | cat confdefs.h >>conftest.$ac_ext | |
9330 | cat >>conftest.$ac_ext <<_ACEOF | |
9331 | /* end confdefs.h. */ | |
9332 | ||
631ef239 AC |
9333 | /* Override any GCC internal prototype to avoid an error. |
9334 | Use char because int might match the return type of a GCC | |
9335 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9336 | #ifdef __cplusplus |
9337 | extern "C" | |
9338 | #endif | |
212380e3 AC |
9339 | char RSA_free (); |
9340 | int | |
9341 | main () | |
9342 | { | |
631ef239 | 9343 | return RSA_free (); |
212380e3 AC |
9344 | ; |
9345 | return 0; | |
9346 | } | |
9347 | _ACEOF | |
9348 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9349 | if { (ac_try="$ac_link" |
9350 | case "(($ac_try" in | |
9351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9352 | *) ac_try_echo=$ac_try;; | |
9353 | esac | |
9354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9355 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9356 | ac_status=$? |
9357 | grep -v '^ *+' conftest.er1 >conftest.err | |
9358 | rm -f conftest.er1 | |
9359 | cat conftest.err >&5 | |
9360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9361 | (exit $ac_status); } && { |
9362 | test -z "$ac_c_werror_flag" || | |
9363 | test ! -s conftest.err | |
9364 | } && test -s conftest$ac_exeext && | |
9365 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9366 | ac_cv_lib_crypto_RSA_free=yes |
9367 | else | |
9368 | echo "$as_me: failed program was:" >&5 | |
9369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9370 | ||
631ef239 | 9371 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 9372 | fi |
631ef239 AC |
9373 | |
9374 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9375 | conftest$ac_exeext conftest.$ac_ext |
9376 | LIBS=$ac_check_lib_save_LIBS | |
9377 | fi | |
631ef239 AC |
9378 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5 |
9379 | echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; } | |
212380e3 AC |
9380 | if test $ac_cv_lib_crypto_RSA_free = yes; then |
9381 | cat >>confdefs.h <<_ACEOF | |
9382 | #define HAVE_LIBCRYPTO 1 | |
9383 | _ACEOF | |
9384 | ||
9385 | LIBS="-lcrypto $LIBS" | |
9386 | ||
9387 | fi | |
9388 | ||
9389 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
9390 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
9391 | else | |
631ef239 AC |
9392 | { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5 |
9393 | echo "${ECHO_T}no - OpenSSL support disabled" >&6; } | |
212380e3 AC |
9394 | fi |
9395 | fi | |
9396 | ||
9397 | CPPFLAGS="$save_CPPFLAGS" | |
9398 | LIBS="$save_LIBS" | |
9399 | ||
9400 | ||
9401 | ||
9402 | ||
9403 | ||
631ef239 | 9404 | # Check whether --with-zlib-path was given. |
212380e3 | 9405 | if test "${with_zlib_path+set}" = set; then |
631ef239 AC |
9406 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
9407 | fi | |
212380e3 | 9408 | |
631ef239 AC |
9409 | |
9410 | # Check whether --enable-zlib was given. | |
212380e3 | 9411 | if test "${enable_zlib+set}" = set; then |
631ef239 | 9412 | enableval=$enable_zlib; zlib=$enableval |
212380e3 AC |
9413 | else |
9414 | zlib=yes | |
631ef239 AC |
9415 | fi |
9416 | ||
212380e3 AC |
9417 | |
9418 | if test "$zlib" = yes; then | |
9419 | ||
9420 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
631ef239 AC |
9421 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 |
9422 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
212380e3 AC |
9423 | if test "${ac_cv_header_zlib_h+set}" = set; then |
9424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9425 | fi | |
631ef239 AC |
9426 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
9427 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
212380e3 AC |
9428 | else |
9429 | # Is the header compilable? | |
631ef239 AC |
9430 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
9431 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
9432 | cat >conftest.$ac_ext <<_ACEOF |
9433 | /* confdefs.h. */ | |
9434 | _ACEOF | |
9435 | cat confdefs.h >>conftest.$ac_ext | |
9436 | cat >>conftest.$ac_ext <<_ACEOF | |
9437 | /* end confdefs.h. */ | |
9438 | $ac_includes_default | |
9439 | #include <zlib.h> | |
9440 | _ACEOF | |
9441 | rm -f conftest.$ac_objext | |
631ef239 AC |
9442 | if { (ac_try="$ac_compile" |
9443 | case "(($ac_try" in | |
9444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9445 | *) ac_try_echo=$ac_try;; | |
9446 | esac | |
9447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9448 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
9449 | ac_status=$? |
9450 | grep -v '^ *+' conftest.er1 >conftest.err | |
9451 | rm -f conftest.er1 | |
9452 | cat conftest.err >&5 | |
9453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9454 | (exit $ac_status); } && { |
9455 | test -z "$ac_c_werror_flag" || | |
9456 | test ! -s conftest.err | |
9457 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
9458 | ac_header_compiler=yes |
9459 | else | |
9460 | echo "$as_me: failed program was:" >&5 | |
9461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9462 | ||
631ef239 | 9463 | ac_header_compiler=no |
212380e3 | 9464 | fi |
631ef239 AC |
9465 | |
9466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9467 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9468 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
9469 | |
9470 | # Is the header present? | |
631ef239 AC |
9471 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
9472 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
9473 | cat >conftest.$ac_ext <<_ACEOF |
9474 | /* confdefs.h. */ | |
9475 | _ACEOF | |
9476 | cat confdefs.h >>conftest.$ac_ext | |
9477 | cat >>conftest.$ac_ext <<_ACEOF | |
9478 | /* end confdefs.h. */ | |
9479 | #include <zlib.h> | |
9480 | _ACEOF | |
631ef239 AC |
9481 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9482 | case "(($ac_try" in | |
9483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9484 | *) ac_try_echo=$ac_try;; | |
9485 | esac | |
9486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9487 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
9488 | ac_status=$? |
9489 | grep -v '^ *+' conftest.er1 >conftest.err | |
9490 | rm -f conftest.er1 | |
9491 | cat conftest.err >&5 | |
9492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9493 | (exit $ac_status); } >/dev/null && { |
9494 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9495 | test ! -s conftest.err | |
9496 | }; then | |
212380e3 AC |
9497 | ac_header_preproc=yes |
9498 | else | |
9499 | echo "$as_me: failed program was:" >&5 | |
9500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9501 | ||
9502 | ac_header_preproc=no | |
9503 | fi | |
631ef239 | 9504 | |
212380e3 | 9505 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
9506 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9507 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
9508 | |
9509 | # So? What about this header? | |
9510 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9511 | yes:no: ) | |
9512 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9513 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9514 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | |
9515 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
9516 | ac_header_preproc=yes | |
9517 | ;; | |
9518 | no:yes:* ) | |
9519 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
9520 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
9521 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
9522 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
9523 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
9524 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
9525 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9526 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
9527 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
9528 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
9529 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | |
9530 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 9531 | |
212380e3 AC |
9532 | ;; |
9533 | esac | |
631ef239 AC |
9534 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 |
9535 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
212380e3 AC |
9536 | if test "${ac_cv_header_zlib_h+set}" = set; then |
9537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9538 | else | |
9539 | ac_cv_header_zlib_h=$ac_header_preproc | |
9540 | fi | |
631ef239 AC |
9541 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
9542 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
212380e3 AC |
9543 | |
9544 | fi | |
9545 | if test $ac_cv_header_zlib_h = yes; then | |
9546 | ||
631ef239 AC |
9547 | { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5 |
9548 | echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; } | |
212380e3 AC |
9549 | if test "${ac_cv_lib_z_zlibVersion+set}" = set; then |
9550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9551 | else | |
9552 | ac_check_lib_save_LIBS=$LIBS | |
9553 | LIBS="-lz $LIBS" | |
9554 | cat >conftest.$ac_ext <<_ACEOF | |
9555 | /* confdefs.h. */ | |
9556 | _ACEOF | |
9557 | cat confdefs.h >>conftest.$ac_ext | |
9558 | cat >>conftest.$ac_ext <<_ACEOF | |
9559 | /* end confdefs.h. */ | |
9560 | ||
631ef239 AC |
9561 | /* Override any GCC internal prototype to avoid an error. |
9562 | Use char because int might match the return type of a GCC | |
9563 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9564 | #ifdef __cplusplus |
9565 | extern "C" | |
9566 | #endif | |
212380e3 AC |
9567 | char zlibVersion (); |
9568 | int | |
9569 | main () | |
9570 | { | |
631ef239 | 9571 | return zlibVersion (); |
212380e3 AC |
9572 | ; |
9573 | return 0; | |
9574 | } | |
9575 | _ACEOF | |
9576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9577 | if { (ac_try="$ac_link" |
9578 | case "(($ac_try" in | |
9579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9580 | *) ac_try_echo=$ac_try;; | |
9581 | esac | |
9582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9583 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9584 | ac_status=$? |
9585 | grep -v '^ *+' conftest.er1 >conftest.err | |
9586 | rm -f conftest.er1 | |
9587 | cat conftest.err >&5 | |
9588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9589 | (exit $ac_status); } && { |
9590 | test -z "$ac_c_werror_flag" || | |
9591 | test ! -s conftest.err | |
9592 | } && test -s conftest$ac_exeext && | |
9593 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9594 | ac_cv_lib_z_zlibVersion=yes |
9595 | else | |
9596 | echo "$as_me: failed program was:" >&5 | |
9597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9598 | ||
631ef239 | 9599 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 9600 | fi |
631ef239 AC |
9601 | |
9602 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9603 | conftest$ac_exeext conftest.$ac_ext |
9604 | LIBS=$ac_check_lib_save_LIBS | |
9605 | fi | |
631ef239 AC |
9606 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5 |
9607 | echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; } | |
212380e3 AC |
9608 | if test $ac_cv_lib_z_zlibVersion = yes; then |
9609 | ||
9610 | ZLIB_LD=-lz | |
9611 | ||
9612 | ||
9613 | cat >>confdefs.h <<\_ACEOF | |
9614 | #define HAVE_LIBZ 1 | |
9615 | _ACEOF | |
9616 | ||
9617 | ||
9618 | else | |
9619 | zlib=no | |
9620 | fi | |
9621 | ||
9622 | ||
9623 | else | |
9624 | zlib=no | |
9625 | fi | |
9626 | ||
9627 | ||
9628 | ||
9629 | fi | |
9630 | ||
9631 | ||
c1c5fdc4 AC |
9632 | # Check whether --enable-ports was given. |
9633 | if test "${enable_ports+set}" = set; then | |
9634 | enableval=$enable_ports; if test $enableval = yes; then | |
9635 | SELECT_TYPE_EXPLICIT="ports" | |
9636 | else | |
9637 | use_ports=no | |
9638 | fi | |
9639 | ||
9640 | fi | |
9641 | ||
9642 | ||
631ef239 | 9643 | # Check whether --enable-poll was given. |
212380e3 | 9644 | if test "${enable_poll+set}" = set; then |
631ef239 | 9645 | enableval=$enable_poll; if test $enableval = yes; then |
212380e3 AC |
9646 | SELECT_TYPE_EXPLICIT="poll" |
9647 | else | |
9648 | use_poll=no | |
9649 | fi | |
9650 | ||
631ef239 AC |
9651 | fi |
9652 | ||
212380e3 | 9653 | |
631ef239 | 9654 | # Check whether --enable-select was given. |
212380e3 | 9655 | if test "${enable_select+set}" = set; then |
631ef239 | 9656 | enableval=$enable_select; if test $enableval = yes; then |
212380e3 AC |
9657 | SELECT_TYPE_EXPLICIT="select" |
9658 | else | |
9659 | use_select=no | |
9660 | fi | |
9661 | ||
631ef239 AC |
9662 | fi |
9663 | ||
212380e3 | 9664 | |
631ef239 | 9665 | # Check whether --enable-kqueue was given. |
212380e3 | 9666 | if test "${enable_kqueue+set}" = set; then |
631ef239 | 9667 | enableval=$enable_kqueue; if test $enableval = yes; then |
212380e3 AC |
9668 | SELECT_TYPE_EXPLICIT="kqueue" |
9669 | else | |
9670 | use_kqueue=no | |
9671 | fi | |
9672 | ||
631ef239 AC |
9673 | fi |
9674 | ||
212380e3 | 9675 | |
631ef239 | 9676 | # Check whether --enable-epoll was given. |
212380e3 | 9677 | if test "${enable_epoll+set}" = set; then |
631ef239 | 9678 | enableval=$enable_epoll; if test $enableval = yes; then |
212380e3 | 9679 | SELECT_TYPE_EXPLICIT="epoll" |
3ad1a781 JT |
9680 | |
9681 | for ac_func in epoll_ctl | |
9682 | do | |
9683 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
9684 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9685 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
9686 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
3ad1a781 JT |
9687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9688 | else | |
9689 | cat >conftest.$ac_ext <<_ACEOF | |
9690 | /* confdefs.h. */ | |
9691 | _ACEOF | |
9692 | cat confdefs.h >>conftest.$ac_ext | |
9693 | cat >>conftest.$ac_ext <<_ACEOF | |
9694 | /* end confdefs.h. */ | |
9695 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9696 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9697 | #define $ac_func innocuous_$ac_func | |
9698 | ||
9699 | /* System header to define __stub macros and hopefully few prototypes, | |
9700 | which can conflict with char $ac_func (); below. | |
9701 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9702 | <limits.h> exists even on freestanding compilers. */ | |
9703 | ||
9704 | #ifdef __STDC__ | |
9705 | # include <limits.h> | |
9706 | #else | |
9707 | # include <assert.h> | |
9708 | #endif | |
9709 | ||
9710 | #undef $ac_func | |
9711 | ||
631ef239 AC |
9712 | /* Override any GCC internal prototype to avoid an error. |
9713 | Use char because int might match the return type of a GCC | |
9714 | builtin and then its argument prototype would still apply. */ | |
3ad1a781 JT |
9715 | #ifdef __cplusplus |
9716 | extern "C" | |
3ad1a781 | 9717 | #endif |
3ad1a781 JT |
9718 | char $ac_func (); |
9719 | /* The GNU C library defines this for functions which it implements | |
9720 | to always fail with ENOSYS. Some functions are actually named | |
9721 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 9722 | #if defined __stub_$ac_func || defined __stub___$ac_func |
3ad1a781 | 9723 | choke me |
3ad1a781 JT |
9724 | #endif |
9725 | ||
9726 | int | |
9727 | main () | |
9728 | { | |
631ef239 | 9729 | return $ac_func (); |
3ad1a781 JT |
9730 | ; |
9731 | return 0; | |
9732 | } | |
9733 | _ACEOF | |
9734 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9735 | if { (ac_try="$ac_link" |
9736 | case "(($ac_try" in | |
9737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9738 | *) ac_try_echo=$ac_try;; | |
9739 | esac | |
9740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9741 | (eval "$ac_link") 2>conftest.er1 | |
3ad1a781 JT |
9742 | ac_status=$? |
9743 | grep -v '^ *+' conftest.er1 >conftest.err | |
9744 | rm -f conftest.er1 | |
9745 | cat conftest.err >&5 | |
9746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9747 | (exit $ac_status); } && { |
9748 | test -z "$ac_c_werror_flag" || | |
9749 | test ! -s conftest.err | |
9750 | } && test -s conftest$ac_exeext && | |
9751 | $as_test_x conftest$ac_exeext; then | |
3ad1a781 JT |
9752 | eval "$as_ac_var=yes" |
9753 | else | |
9754 | echo "$as_me: failed program was:" >&5 | |
9755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9756 | ||
631ef239 | 9757 | eval "$as_ac_var=no" |
3ad1a781 | 9758 | fi |
631ef239 AC |
9759 | |
9760 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
3ad1a781 JT |
9761 | conftest$ac_exeext conftest.$ac_ext |
9762 | fi | |
631ef239 AC |
9763 | ac_res=`eval echo '${'$as_ac_var'}'` |
9764 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9765 | echo "${ECHO_T}$ac_res" >&6; } | |
3ad1a781 JT |
9766 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9767 | cat >>confdefs.h <<_ACEOF | |
9768 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9769 | _ACEOF | |
9770 | haveepoll=yes | |
9771 | else | |
9772 | haveepoll=no | |
9773 | fi | |
9774 | done | |
9775 | ||
212380e3 AC |
9776 | else |
9777 | use_epoll=no | |
9778 | fi | |
9779 | ||
631ef239 AC |
9780 | fi |
9781 | ||
212380e3 AC |
9782 | |
9783 | ||
631ef239 AC |
9784 | { echo "$as_me:$LINENO: checking whether to modify confdir" >&5 |
9785 | echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; } | |
212380e3 | 9786 | |
631ef239 | 9787 | # Check whether --with-confdir was given. |
212380e3 | 9788 | if test "${with_confdir+set}" = set; then |
631ef239 AC |
9789 | withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'` |
9790 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9791 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
9792 | |
9793 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9794 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9795 | ac_define_dir=`eval echo $confdir` | |
9796 | ac_define_dir=`eval echo $ac_define_dir` | |
9797 | ETC_DIR="$ac_define_dir" | |
9798 | ||
9799 | ||
9800 | cat >>confdefs.h <<_ACEOF | |
9801 | #define ETC_DIR "$ac_define_dir" | |
9802 | _ACEOF | |
9803 | ||
9804 | ||
9805 | ||
9806 | ||
9807 | confdir=`( | |
9808 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9809 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9810 | eval echo \""$confdir"\" | |
9811 | )` | |
9812 | ||
9813 | ||
9814 | else | |
9815 | confdir='${prefix}/etc' | |
631ef239 AC |
9816 | { echo "$as_me:$LINENO: result: no" >&5 |
9817 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
9818 | |
9819 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9820 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9821 | ac_define_dir=`eval echo $confdir` | |
9822 | ac_define_dir=`eval echo $ac_define_dir` | |
9823 | ETC_DIR="$ac_define_dir" | |
9824 | ||
9825 | ||
9826 | cat >>confdefs.h <<_ACEOF | |
9827 | #define ETC_DIR "$ac_define_dir" | |
9828 | _ACEOF | |
9829 | ||
9830 | ||
9831 | ||
9832 | ||
9833 | confdir=`( | |
9834 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9835 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9836 | eval echo \""$confdir"\" | |
9837 | )` | |
9838 | ||
9839 | ||
9840 | ||
631ef239 AC |
9841 | fi |
9842 | ||
212380e3 AC |
9843 | |
9844 | ||
631ef239 AC |
9845 | { echo "$as_me:$LINENO: checking whether to modify logdir" >&5 |
9846 | echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; } | |
212380e3 | 9847 | |
631ef239 | 9848 | # Check whether --with-logdir was given. |
212380e3 | 9849 | if test "${with_logdir+set}" = set; then |
631ef239 AC |
9850 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
9851 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9852 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
9853 | |
9854 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9855 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9856 | ac_define_dir=`eval echo $logdir` | |
9857 | ac_define_dir=`eval echo $ac_define_dir` | |
9858 | LOG_DIR="$ac_define_dir" | |
9859 | ||
9860 | ||
9861 | cat >>confdefs.h <<_ACEOF | |
9862 | #define LOG_DIR "$ac_define_dir" | |
9863 | _ACEOF | |
9864 | ||
9865 | ||
9866 | ||
9867 | ||
9868 | logdir=`( | |
9869 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9870 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9871 | eval echo \""$logdir"\" | |
9872 | )` | |
9873 | ||
9874 | ||
9875 | else | |
9876 | logdir='${prefix}/logs' | |
631ef239 AC |
9877 | { echo "$as_me:$LINENO: result: no" >&5 |
9878 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
9879 | |
9880 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9881 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9882 | ac_define_dir=`eval echo $logdir` | |
9883 | ac_define_dir=`eval echo $ac_define_dir` | |
9884 | LOG_DIR="$ac_define_dir" | |
9885 | ||
9886 | ||
9887 | cat >>confdefs.h <<_ACEOF | |
9888 | #define LOG_DIR "$ac_define_dir" | |
9889 | _ACEOF | |
9890 | ||
9891 | ||
9892 | ||
9893 | ||
9894 | logdir=`( | |
9895 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9896 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9897 | eval echo \""$logdir"\" | |
9898 | )` | |
9899 | ||
9900 | ||
9901 | ||
631ef239 AC |
9902 | fi |
9903 | ||
212380e3 AC |
9904 | |
9905 | ||
631ef239 AC |
9906 | { echo "$as_me:$LINENO: checking whether to modify helpdir" >&5 |
9907 | echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; } | |
212380e3 | 9908 | |
631ef239 | 9909 | # Check whether --with-helpdir was given. |
212380e3 | 9910 | if test "${with_helpdir+set}" = set; then |
631ef239 AC |
9911 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
9912 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9913 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
9914 | |
9915 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9916 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9917 | ac_define_dir=`eval echo $helpdir` | |
9918 | ac_define_dir=`eval echo $ac_define_dir` | |
9919 | HELP_DIR="$ac_define_dir" | |
9920 | ||
9921 | ||
9922 | cat >>confdefs.h <<_ACEOF | |
9923 | #define HELP_DIR "$ac_define_dir" | |
9924 | _ACEOF | |
9925 | ||
9926 | ||
9927 | ||
9928 | ||
9929 | helpdir=`( | |
9930 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9931 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9932 | eval echo \""$helpdir"\" | |
9933 | )` | |
9934 | ||
9935 | ||
9936 | else | |
9937 | helpdir='${prefix}/help' | |
631ef239 AC |
9938 | { echo "$as_me:$LINENO: result: no" >&5 |
9939 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
9940 | |
9941 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9942 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9943 | ac_define_dir=`eval echo $helpdir` | |
9944 | ac_define_dir=`eval echo $ac_define_dir` | |
9945 | HELP_DIR="$ac_define_dir" | |
9946 | ||
9947 | ||
9948 | cat >>confdefs.h <<_ACEOF | |
9949 | #define HELP_DIR "$ac_define_dir" | |
9950 | _ACEOF | |
9951 | ||
9952 | ||
9953 | ||
9954 | ||
9955 | helpdir=`( | |
9956 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9957 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9958 | eval echo \""$helpdir"\" | |
9959 | )` | |
9960 | ||
9961 | ||
9962 | ||
631ef239 AC |
9963 | fi |
9964 | ||
212380e3 AC |
9965 | |
9966 | ||
631ef239 AC |
9967 | { echo "$as_me:$LINENO: checking whether to modify moduledir" >&5 |
9968 | echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; } | |
212380e3 | 9969 | |
631ef239 | 9970 | # Check whether --with-moduledir was given. |
212380e3 | 9971 | if test "${with_moduledir+set}" = set; then |
631ef239 AC |
9972 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
9973 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9974 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
9975 | |
9976 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9977 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9978 | ac_define_dir=`eval echo $moduledir` | |
9979 | ac_define_dir=`eval echo $ac_define_dir` | |
9980 | MODULE_DIR="$ac_define_dir" | |
9981 | ||
9982 | ||
9983 | cat >>confdefs.h <<_ACEOF | |
9984 | #define MODULE_DIR "$ac_define_dir" | |
9985 | _ACEOF | |
9986 | ||
9987 | ||
9988 | ||
9989 | ||
9990 | moduledir=`( | |
9991 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9992 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9993 | eval echo \""$moduledir"\" | |
9994 | )` | |
9995 | ||
9996 | ||
9997 | else | |
9998 | moduledir='${prefix}/modules' | |
631ef239 AC |
9999 | { echo "$as_me:$LINENO: result: no" >&5 |
10000 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10001 | |
10002 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10003 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10004 | ac_define_dir=`eval echo $moduledir` | |
10005 | ac_define_dir=`eval echo $ac_define_dir` | |
10006 | MODULE_DIR="$ac_define_dir" | |
10007 | ||
10008 | ||
10009 | cat >>confdefs.h <<_ACEOF | |
10010 | #define MODULE_DIR "$ac_define_dir" | |
10011 | _ACEOF | |
10012 | ||
10013 | ||
10014 | ||
10015 | ||
10016 | moduledir=`( | |
10017 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10018 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10019 | eval echo \""$moduledir"\" | |
10020 | )` | |
10021 | ||
10022 | ||
10023 | ||
631ef239 AC |
10024 | fi |
10025 | ||
212380e3 AC |
10026 | |
10027 | if test ! -z "$SELECT_TYPE_EXPLICIT"; then | |
10028 | SELECT_TYPE="$SELECT_TYPE_EXPLICIT"; | |
10029 | echo "Forcing $SELECT_TYPE to be enabled" | |
10030 | else | |
10031 | ||
c1c5fdc4 AC |
10032 | if test ! "x$use_ports" = "xno"; then |
10033 | ||
10034 | for ac_func in port_getn | |
10035 | do | |
10036 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10037 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10038 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10039 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
10040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10041 | else | |
10042 | cat >conftest.$ac_ext <<_ACEOF | |
10043 | /* confdefs.h. */ | |
10044 | _ACEOF | |
10045 | cat confdefs.h >>conftest.$ac_ext | |
10046 | cat >>conftest.$ac_ext <<_ACEOF | |
10047 | /* end confdefs.h. */ | |
10048 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10049 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10050 | #define $ac_func innocuous_$ac_func | |
10051 | ||
10052 | /* System header to define __stub macros and hopefully few prototypes, | |
10053 | which can conflict with char $ac_func (); below. | |
10054 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10055 | <limits.h> exists even on freestanding compilers. */ | |
10056 | ||
10057 | #ifdef __STDC__ | |
10058 | # include <limits.h> | |
10059 | #else | |
10060 | # include <assert.h> | |
10061 | #endif | |
10062 | ||
10063 | #undef $ac_func | |
10064 | ||
10065 | /* Override any GCC internal prototype to avoid an error. | |
10066 | Use char because int might match the return type of a GCC | |
10067 | builtin and then its argument prototype would still apply. */ | |
10068 | #ifdef __cplusplus | |
10069 | extern "C" | |
10070 | #endif | |
10071 | char $ac_func (); | |
10072 | /* The GNU C library defines this for functions which it implements | |
10073 | to always fail with ENOSYS. Some functions are actually named | |
10074 | something starting with __ and the normal name is an alias. */ | |
10075 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
10076 | choke me | |
10077 | #endif | |
10078 | ||
10079 | int | |
10080 | main () | |
10081 | { | |
10082 | return $ac_func (); | |
10083 | ; | |
10084 | return 0; | |
10085 | } | |
10086 | _ACEOF | |
10087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10088 | if { (ac_try="$ac_link" | |
10089 | case "(($ac_try" in | |
10090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10091 | *) ac_try_echo=$ac_try;; | |
10092 | esac | |
10093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10094 | (eval "$ac_link") 2>conftest.er1 | |
10095 | ac_status=$? | |
10096 | grep -v '^ *+' conftest.er1 >conftest.err | |
10097 | rm -f conftest.er1 | |
10098 | cat conftest.err >&5 | |
10099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10100 | (exit $ac_status); } && { | |
10101 | test -z "$ac_c_werror_flag" || | |
10102 | test ! -s conftest.err | |
10103 | } && test -s conftest$ac_exeext && | |
10104 | $as_test_x conftest$ac_exeext; then | |
10105 | eval "$as_ac_var=yes" | |
10106 | else | |
10107 | echo "$as_me: failed program was:" >&5 | |
10108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10109 | ||
10110 | eval "$as_ac_var=no" | |
10111 | fi | |
10112 | ||
10113 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10114 | conftest$ac_exeext conftest.$ac_ext | |
10115 | fi | |
10116 | ac_res=`eval echo '${'$as_ac_var'}'` | |
10117 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10118 | echo "${ECHO_T}$ac_res" >&6; } | |
10119 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10120 | cat >>confdefs.h <<_ACEOF | |
10121 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10122 | _ACEOF | |
10123 | haveports=yes | |
10124 | else | |
10125 | haveports=no | |
10126 | fi | |
10127 | done | |
10128 | ||
10129 | if test "x$haveports" = "xyes" ; then | |
10130 | SELECT_TYPE="ports" | |
10131 | fi | |
10132 | fi | |
10133 | ||
212380e3 AC |
10134 | if test ! "x$use_select" = "xno"; then |
10135 | ||
10136 | for ac_func in select | |
10137 | do | |
10138 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10139 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10140 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10141 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10143 | else | |
10144 | cat >conftest.$ac_ext <<_ACEOF | |
10145 | /* confdefs.h. */ | |
10146 | _ACEOF | |
10147 | cat confdefs.h >>conftest.$ac_ext | |
10148 | cat >>conftest.$ac_ext <<_ACEOF | |
10149 | /* end confdefs.h. */ | |
10150 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10151 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10152 | #define $ac_func innocuous_$ac_func | |
10153 | ||
10154 | /* System header to define __stub macros and hopefully few prototypes, | |
10155 | which can conflict with char $ac_func (); below. | |
10156 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10157 | <limits.h> exists even on freestanding compilers. */ | |
10158 | ||
10159 | #ifdef __STDC__ | |
10160 | # include <limits.h> | |
10161 | #else | |
10162 | # include <assert.h> | |
10163 | #endif | |
10164 | ||
10165 | #undef $ac_func | |
10166 | ||
631ef239 AC |
10167 | /* Override any GCC internal prototype to avoid an error. |
10168 | Use char because int might match the return type of a GCC | |
10169 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10170 | #ifdef __cplusplus |
10171 | extern "C" | |
212380e3 | 10172 | #endif |
212380e3 AC |
10173 | char $ac_func (); |
10174 | /* The GNU C library defines this for functions which it implements | |
10175 | to always fail with ENOSYS. Some functions are actually named | |
10176 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10177 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10178 | choke me |
212380e3 AC |
10179 | #endif |
10180 | ||
10181 | int | |
10182 | main () | |
10183 | { | |
631ef239 | 10184 | return $ac_func (); |
212380e3 AC |
10185 | ; |
10186 | return 0; | |
10187 | } | |
10188 | _ACEOF | |
10189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10190 | if { (ac_try="$ac_link" |
10191 | case "(($ac_try" in | |
10192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10193 | *) ac_try_echo=$ac_try;; | |
10194 | esac | |
10195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10196 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10197 | ac_status=$? |
10198 | grep -v '^ *+' conftest.er1 >conftest.err | |
10199 | rm -f conftest.er1 | |
10200 | cat conftest.err >&5 | |
10201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10202 | (exit $ac_status); } && { |
10203 | test -z "$ac_c_werror_flag" || | |
10204 | test ! -s conftest.err | |
10205 | } && test -s conftest$ac_exeext && | |
10206 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10207 | eval "$as_ac_var=yes" |
10208 | else | |
10209 | echo "$as_me: failed program was:" >&5 | |
10210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10211 | ||
631ef239 | 10212 | eval "$as_ac_var=no" |
212380e3 | 10213 | fi |
631ef239 AC |
10214 | |
10215 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10216 | conftest$ac_exeext conftest.$ac_ext |
10217 | fi | |
631ef239 AC |
10218 | ac_res=`eval echo '${'$as_ac_var'}'` |
10219 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10220 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10221 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10222 | cat >>confdefs.h <<_ACEOF | |
10223 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10224 | _ACEOF | |
10225 | haveselect=yes | |
10226 | else | |
10227 | haveselect=no | |
10228 | fi | |
10229 | done | |
10230 | ||
10231 | if test "x$haveselect" = "xyes" ; then | |
10232 | SELECT_TYPE="select" | |
10233 | fi | |
10234 | fi | |
10235 | ||
10236 | if test ! "x$use_poll" = "xno"; then | |
10237 | ||
10238 | for ac_func in poll | |
10239 | do | |
10240 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10241 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10242 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10243 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10245 | else | |
10246 | cat >conftest.$ac_ext <<_ACEOF | |
10247 | /* confdefs.h. */ | |
10248 | _ACEOF | |
10249 | cat confdefs.h >>conftest.$ac_ext | |
10250 | cat >>conftest.$ac_ext <<_ACEOF | |
10251 | /* end confdefs.h. */ | |
10252 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10253 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10254 | #define $ac_func innocuous_$ac_func | |
10255 | ||
10256 | /* System header to define __stub macros and hopefully few prototypes, | |
10257 | which can conflict with char $ac_func (); below. | |
10258 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10259 | <limits.h> exists even on freestanding compilers. */ | |
10260 | ||
10261 | #ifdef __STDC__ | |
10262 | # include <limits.h> | |
10263 | #else | |
10264 | # include <assert.h> | |
10265 | #endif | |
10266 | ||
10267 | #undef $ac_func | |
10268 | ||
631ef239 AC |
10269 | /* Override any GCC internal prototype to avoid an error. |
10270 | Use char because int might match the return type of a GCC | |
10271 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10272 | #ifdef __cplusplus |
10273 | extern "C" | |
212380e3 | 10274 | #endif |
212380e3 AC |
10275 | char $ac_func (); |
10276 | /* The GNU C library defines this for functions which it implements | |
10277 | to always fail with ENOSYS. Some functions are actually named | |
10278 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10279 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10280 | choke me |
212380e3 AC |
10281 | #endif |
10282 | ||
10283 | int | |
10284 | main () | |
10285 | { | |
631ef239 | 10286 | return $ac_func (); |
212380e3 AC |
10287 | ; |
10288 | return 0; | |
10289 | } | |
10290 | _ACEOF | |
10291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10292 | if { (ac_try="$ac_link" |
10293 | case "(($ac_try" in | |
10294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10295 | *) ac_try_echo=$ac_try;; | |
10296 | esac | |
10297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10298 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10299 | ac_status=$? |
10300 | grep -v '^ *+' conftest.er1 >conftest.err | |
10301 | rm -f conftest.er1 | |
10302 | cat conftest.err >&5 | |
10303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10304 | (exit $ac_status); } && { |
10305 | test -z "$ac_c_werror_flag" || | |
10306 | test ! -s conftest.err | |
10307 | } && test -s conftest$ac_exeext && | |
10308 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10309 | eval "$as_ac_var=yes" |
10310 | else | |
10311 | echo "$as_me: failed program was:" >&5 | |
10312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10313 | ||
631ef239 | 10314 | eval "$as_ac_var=no" |
212380e3 | 10315 | fi |
631ef239 AC |
10316 | |
10317 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10318 | conftest$ac_exeext conftest.$ac_ext |
10319 | fi | |
631ef239 AC |
10320 | ac_res=`eval echo '${'$as_ac_var'}'` |
10321 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10322 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10323 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10324 | cat >>confdefs.h <<_ACEOF | |
10325 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10326 | _ACEOF | |
10327 | havepoll=yes | |
10328 | else | |
10329 | havepoll=no | |
10330 | fi | |
10331 | done | |
10332 | ||
10333 | if test "x$havepoll" = "xyes" ; then | |
10334 | SELECT_TYPE="poll" | |
10335 | fi | |
10336 | fi | |
10337 | ||
212380e3 AC |
10338 | if test ! "x$use_kqueue" = "xno"; then |
10339 | ||
10340 | for ac_func in kevent | |
10341 | do | |
10342 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10343 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10344 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10345 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10347 | else | |
10348 | cat >conftest.$ac_ext <<_ACEOF | |
10349 | /* confdefs.h. */ | |
10350 | _ACEOF | |
10351 | cat confdefs.h >>conftest.$ac_ext | |
10352 | cat >>conftest.$ac_ext <<_ACEOF | |
10353 | /* end confdefs.h. */ | |
10354 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10355 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10356 | #define $ac_func innocuous_$ac_func | |
10357 | ||
10358 | /* System header to define __stub macros and hopefully few prototypes, | |
10359 | which can conflict with char $ac_func (); below. | |
10360 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10361 | <limits.h> exists even on freestanding compilers. */ | |
10362 | ||
10363 | #ifdef __STDC__ | |
10364 | # include <limits.h> | |
10365 | #else | |
10366 | # include <assert.h> | |
10367 | #endif | |
10368 | ||
10369 | #undef $ac_func | |
10370 | ||
631ef239 AC |
10371 | /* Override any GCC internal prototype to avoid an error. |
10372 | Use char because int might match the return type of a GCC | |
10373 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10374 | #ifdef __cplusplus |
10375 | extern "C" | |
212380e3 | 10376 | #endif |
212380e3 AC |
10377 | char $ac_func (); |
10378 | /* The GNU C library defines this for functions which it implements | |
10379 | to always fail with ENOSYS. Some functions are actually named | |
10380 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10381 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10382 | choke me |
212380e3 AC |
10383 | #endif |
10384 | ||
10385 | int | |
10386 | main () | |
10387 | { | |
631ef239 | 10388 | return $ac_func (); |
212380e3 AC |
10389 | ; |
10390 | return 0; | |
10391 | } | |
10392 | _ACEOF | |
10393 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10394 | if { (ac_try="$ac_link" |
10395 | case "(($ac_try" in | |
10396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10397 | *) ac_try_echo=$ac_try;; | |
10398 | esac | |
10399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10400 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10401 | ac_status=$? |
10402 | grep -v '^ *+' conftest.er1 >conftest.err | |
10403 | rm -f conftest.er1 | |
10404 | cat conftest.err >&5 | |
10405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10406 | (exit $ac_status); } && { |
10407 | test -z "$ac_c_werror_flag" || | |
10408 | test ! -s conftest.err | |
10409 | } && test -s conftest$ac_exeext && | |
10410 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10411 | eval "$as_ac_var=yes" |
10412 | else | |
10413 | echo "$as_me: failed program was:" >&5 | |
10414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10415 | ||
631ef239 | 10416 | eval "$as_ac_var=no" |
212380e3 | 10417 | fi |
631ef239 AC |
10418 | |
10419 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10420 | conftest$ac_exeext conftest.$ac_ext |
10421 | fi | |
631ef239 AC |
10422 | ac_res=`eval echo '${'$as_ac_var'}'` |
10423 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10424 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10425 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10426 | cat >>confdefs.h <<_ACEOF | |
10427 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10428 | _ACEOF | |
10429 | havekqueue=yes | |
10430 | else | |
10431 | havekqueue=no | |
10432 | fi | |
10433 | done | |
10434 | ||
10435 | if test "x$havekqueue" = "xyes" ; then | |
10436 | SELECT_TYPE="kqueue" | |
10437 | fi | |
10438 | fi | |
10439 | ||
10440 | if test ! "x$use_epoll" = "xno"; then | |
10441 | ||
10442 | for ac_func in epoll_ctl | |
10443 | do | |
10444 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10445 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10446 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10447 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10449 | else | |
10450 | cat >conftest.$ac_ext <<_ACEOF | |
10451 | /* confdefs.h. */ | |
10452 | _ACEOF | |
10453 | cat confdefs.h >>conftest.$ac_ext | |
10454 | cat >>conftest.$ac_ext <<_ACEOF | |
10455 | /* end confdefs.h. */ | |
10456 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10457 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10458 | #define $ac_func innocuous_$ac_func | |
10459 | ||
10460 | /* System header to define __stub macros and hopefully few prototypes, | |
10461 | which can conflict with char $ac_func (); below. | |
10462 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10463 | <limits.h> exists even on freestanding compilers. */ | |
10464 | ||
10465 | #ifdef __STDC__ | |
10466 | # include <limits.h> | |
10467 | #else | |
10468 | # include <assert.h> | |
10469 | #endif | |
10470 | ||
10471 | #undef $ac_func | |
10472 | ||
631ef239 AC |
10473 | /* Override any GCC internal prototype to avoid an error. |
10474 | Use char because int might match the return type of a GCC | |
10475 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10476 | #ifdef __cplusplus |
10477 | extern "C" | |
212380e3 | 10478 | #endif |
212380e3 AC |
10479 | char $ac_func (); |
10480 | /* The GNU C library defines this for functions which it implements | |
10481 | to always fail with ENOSYS. Some functions are actually named | |
10482 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10483 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10484 | choke me |
212380e3 AC |
10485 | #endif |
10486 | ||
10487 | int | |
10488 | main () | |
10489 | { | |
631ef239 | 10490 | return $ac_func (); |
212380e3 AC |
10491 | ; |
10492 | return 0; | |
10493 | } | |
10494 | _ACEOF | |
10495 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10496 | if { (ac_try="$ac_link" |
10497 | case "(($ac_try" in | |
10498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10499 | *) ac_try_echo=$ac_try;; | |
10500 | esac | |
10501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10502 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10503 | ac_status=$? |
10504 | grep -v '^ *+' conftest.er1 >conftest.err | |
10505 | rm -f conftest.er1 | |
10506 | cat conftest.err >&5 | |
10507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10508 | (exit $ac_status); } && { |
10509 | test -z "$ac_c_werror_flag" || | |
10510 | test ! -s conftest.err | |
10511 | } && test -s conftest$ac_exeext && | |
10512 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10513 | eval "$as_ac_var=yes" |
10514 | else | |
10515 | echo "$as_me: failed program was:" >&5 | |
10516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10517 | ||
631ef239 | 10518 | eval "$as_ac_var=no" |
212380e3 | 10519 | fi |
631ef239 AC |
10520 | |
10521 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10522 | conftest$ac_exeext conftest.$ac_ext |
10523 | fi | |
631ef239 AC |
10524 | ac_res=`eval echo '${'$as_ac_var'}'` |
10525 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10526 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10527 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10528 | cat >>confdefs.h <<_ACEOF | |
10529 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10530 | _ACEOF | |
10531 | haveepoll=yes | |
10532 | else | |
10533 | haveepoll=no | |
10534 | fi | |
10535 | done | |
10536 | ||
10537 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
10538 | if test "x$haveepoll" = "xyes" ; then | |
631ef239 AC |
10539 | { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5 |
10540 | echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; } | |
212380e3 | 10541 | if test "$cross_compiling" = yes; then |
631ef239 AC |
10542 | { echo "$as_me:$LINENO: result: no" >&5 |
10543 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10544 | else |
10545 | cat >conftest.$ac_ext <<_ACEOF | |
10546 | /* confdefs.h. */ | |
10547 | _ACEOF | |
10548 | cat confdefs.h >>conftest.$ac_ext | |
10549 | cat >>conftest.$ac_ext <<_ACEOF | |
10550 | /* end confdefs.h. */ | |
10551 | #include <stdint.h> | |
10552 | #include <sys/param.h> | |
10553 | #include <sys/types.h> | |
10554 | #include <sys/epoll.h> | |
10555 | #include <sys/syscall.h> | |
10556 | #include <unistd.h> | |
10557 | ||
10558 | int | |
10559 | main(int argc, char **argv) | |
10560 | { | |
10561 | int epfd; | |
10562 | ||
10563 | epfd = epoll_create(256); | |
b676ea3b | 10564 | return (epfd == -1 ? 1 : 0); |
212380e3 AC |
10565 | } |
10566 | _ACEOF | |
10567 | rm -f conftest$ac_exeext | |
631ef239 AC |
10568 | if { (ac_try="$ac_link" |
10569 | case "(($ac_try" in | |
10570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10571 | *) ac_try_echo=$ac_try;; | |
10572 | esac | |
10573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10574 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
10575 | ac_status=$? |
10576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10577 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
10578 | { (case "(($ac_try" in |
10579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10580 | *) ac_try_echo=$ac_try;; | |
10581 | esac | |
10582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10583 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
10584 | ac_status=$? |
10585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10586 | (exit $ac_status); }; }; then | |
631ef239 AC |
10587 | { echo "$as_me:$LINENO: result: yes" >&5 |
10588 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
10589 | |
10590 | cat >>confdefs.h <<\_ACEOF | |
10591 | #define HAVE_EPOLL 1 | |
10592 | _ACEOF | |
10593 | ||
10594 | SELECT_TYPE="epoll" | |
10595 | else | |
10596 | echo "$as_me: program exited with status $ac_status" >&5 | |
10597 | echo "$as_me: failed program was:" >&5 | |
10598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10599 | ||
10600 | ( exit $ac_status ) | |
631ef239 AC |
10601 | { echo "$as_me:$LINENO: result: no" >&5 |
10602 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10603 | fi |
631ef239 | 10604 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 10605 | fi |
631ef239 AC |
10606 | |
10607 | ||
212380e3 AC |
10608 | fi |
10609 | fi | |
10610 | ||
10611 | haveepollsyscall=no | |
10612 | ||
10613 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
10614 | if test "x$haveepoll" = "xno" ; then | |
631ef239 AC |
10615 | { echo "$as_me:$LINENO: checking for epoll system call" >&5 |
10616 | echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; } | |
212380e3 | 10617 | if test "$cross_compiling" = yes; then |
631ef239 AC |
10618 | { echo "$as_me:$LINENO: result: no" >&5 |
10619 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10620 | else |
10621 | cat >conftest.$ac_ext <<_ACEOF | |
10622 | /* confdefs.h. */ | |
10623 | _ACEOF | |
10624 | cat confdefs.h >>conftest.$ac_ext | |
10625 | cat >>conftest.$ac_ext <<_ACEOF | |
10626 | /* end confdefs.h. */ | |
10627 | #include <stdint.h> | |
10628 | #include <sys/param.h> | |
10629 | #include <sys/types.h> | |
10630 | #include <sys/epoll.h> | |
10631 | #include <sys/syscall.h> | |
10632 | #include <unistd.h> | |
10633 | ||
10634 | int | |
10635 | epoll_create(int size) | |
10636 | { | |
10637 | return (syscall(__NR_epoll_create, size)); | |
10638 | } | |
10639 | ||
10640 | int | |
10641 | main(int argc, char **argv) | |
10642 | { | |
10643 | int epfd; | |
10644 | ||
10645 | epfd = epoll_create(256); | |
10646 | exit (epfd == -1 ? 1 : 0); | |
10647 | } | |
10648 | _ACEOF | |
10649 | rm -f conftest$ac_exeext | |
631ef239 AC |
10650 | if { (ac_try="$ac_link" |
10651 | case "(($ac_try" in | |
10652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10653 | *) ac_try_echo=$ac_try;; | |
10654 | esac | |
10655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10656 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
10657 | ac_status=$? |
10658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10659 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
10660 | { (case "(($ac_try" in |
10661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10662 | *) ac_try_echo=$ac_try;; | |
10663 | esac | |
10664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10665 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
10666 | ac_status=$? |
10667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10668 | (exit $ac_status); }; }; then | |
631ef239 AC |
10669 | { echo "$as_me:$LINENO: result: yes" >&5 |
10670 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
10671 | |
10672 | cat >>confdefs.h <<\_ACEOF | |
10673 | #define HAVE_EPOLL 1 | |
10674 | _ACEOF | |
10675 | ||
10676 | SELECT_TYPE="epoll" | |
10677 | else | |
10678 | echo "$as_me: program exited with status $ac_status" >&5 | |
10679 | echo "$as_me: failed program was:" >&5 | |
10680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10681 | ||
10682 | ( exit $ac_status ) | |
631ef239 AC |
10683 | { echo "$as_me:$LINENO: result: no" >&5 |
10684 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10685 | fi |
631ef239 | 10686 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 10687 | fi |
631ef239 AC |
10688 | |
10689 | ||
212380e3 AC |
10690 | fi |
10691 | fi | |
10692 | ||
10693 | fi | |
10694 | ||
10695 | fi | |
10696 | ||
10697 | if test -z "$SELECT_TYPE"; then | |
10698 | { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5 | |
10699 | echo "$as_me: error: Unable to find a usable IO interface" >&2;} | |
10700 | { (exit 1); exit 1; }; } | |
10701 | fi | |
10702 | ||
10703 | echo "Using $SELECT_TYPE for select loop." | |
10704 | ||
10705 | ||
10706 | cat >>confdefs.h <<_ACEOF | |
10707 | #define SELECT_TYPE "$SELECT_TYPE" | |
10708 | _ACEOF | |
10709 | ||
10710 | ||
10711 | ||
10712 | ||
10713 | ||
631ef239 | 10714 | # Check whether --enable-assert was given. |
212380e3 | 10715 | if test "${enable_assert+set}" = set; then |
631ef239 | 10716 | enableval=$enable_assert; assert=$enableval |
212380e3 AC |
10717 | else |
10718 | assert=no | |
631ef239 AC |
10719 | fi |
10720 | ||
212380e3 AC |
10721 | |
10722 | if test "$assert" = no; then | |
10723 | ||
10724 | cat >>confdefs.h <<\_ACEOF | |
10725 | #define NDEBUG 1 | |
10726 | _ACEOF | |
10727 | ||
10728 | elif test "$assert" = soft; then | |
10729 | ||
10730 | cat >>confdefs.h <<\_ACEOF | |
10731 | #define SOFT_ASSERT 1 | |
10732 | _ACEOF | |
10733 | ||
10734 | ||
10735 | cat >>confdefs.h <<\_ACEOF | |
10736 | #define NDEBUG 1 | |
10737 | _ACEOF | |
10738 | ||
10739 | elif test "$assert" = yes; then | |
10740 | assert = "hard"; | |
10741 | fi | |
10742 | ||
631ef239 AC |
10743 | { echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5 |
10744 | echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; } | |
10745 | # Check whether --enable-iodebug was given. | |
212380e3 | 10746 | if test "${enable_iodebug+set}" = set; then |
631ef239 | 10747 | enableval=$enable_iodebug; iodebug=$enableval |
212380e3 AC |
10748 | else |
10749 | iodebug=no | |
631ef239 AC |
10750 | fi |
10751 | ||
212380e3 AC |
10752 | |
10753 | if test "$iodebug" = yes; then | |
10754 | ||
10755 | cat >>confdefs.h <<\_ACEOF | |
10756 | #define USE_IODEBUG_HOOKS 1 | |
10757 | _ACEOF | |
10758 | ||
631ef239 AC |
10759 | { echo "$as_me:$LINENO: result: yes" >&5 |
10760 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 10761 | else |
631ef239 AC |
10762 | { echo "$as_me:$LINENO: result: no" >&5 |
10763 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10764 | fi |
10765 | ||
10766 | ||
631ef239 AC |
10767 | { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5 |
10768 | echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; } | |
10769 | # Check whether --enable-profile was given. | |
212380e3 | 10770 | if test "${enable_profile+set}" = set; then |
631ef239 | 10771 | enableval=$enable_profile; profile=$enableval |
212380e3 AC |
10772 | else |
10773 | profile=no | |
631ef239 AC |
10774 | fi |
10775 | ||
212380e3 AC |
10776 | |
10777 | if test "$profile" = yes; then | |
10778 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
10779 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
631ef239 AC |
10780 | { echo "$as_me:$LINENO: result: yes, adding -pg" >&5 |
10781 | echo "${ECHO_T}yes, adding -pg" >&6; } | |
212380e3 AC |
10782 | |
10783 | cat >>confdefs.h <<\_ACEOF | |
10784 | #define CHARYBDIS_PROFILE 1 | |
10785 | _ACEOF | |
10786 | ||
10787 | else | |
631ef239 AC |
10788 | { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5 |
10789 | echo "${ECHO_T}no, profile builds only work with gcc" >&6; } | |
212380e3 AC |
10790 | fi |
10791 | else | |
631ef239 AC |
10792 | { echo "$as_me:$LINENO: result: no" >&5 |
10793 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10794 | fi |
10795 | ||
631ef239 | 10796 | # Check whether --enable-balloc was given. |
212380e3 | 10797 | if test "${enable_balloc+set}" = set; then |
631ef239 | 10798 | enableval=$enable_balloc; balloc=$enableval |
212380e3 AC |
10799 | else |
10800 | balloc=yes | |
631ef239 AC |
10801 | fi |
10802 | ||
212380e3 AC |
10803 | |
10804 | if test "$balloc" = no; then | |
10805 | ||
10806 | cat >>confdefs.h <<\_ACEOF | |
10807 | #define NOBALLOC 1 | |
10808 | _ACEOF | |
10809 | ||
10810 | fi | |
10811 | ||
631ef239 | 10812 | # Check whether --enable-small-net was given. |
212380e3 | 10813 | if test "${enable_small_net+set}" = set; then |
631ef239 | 10814 | enableval=$enable_small_net; small_net=$enableval |
212380e3 AC |
10815 | else |
10816 | small_net=no | |
631ef239 AC |
10817 | fi |
10818 | ||
212380e3 AC |
10819 | |
10820 | if test "$small_net" = yes; then | |
10821 | ||
10822 | cat >>confdefs.h <<\_ACEOF | |
10823 | #define NICKNAMEHISTORYLENGTH 1500 | |
10824 | _ACEOF | |
10825 | ||
10826 | ||
10827 | cat >>confdefs.h <<\_ACEOF | |
10828 | #define CHANNEL_HEAP_SIZE 256 | |
10829 | _ACEOF | |
10830 | ||
10831 | ||
10832 | cat >>confdefs.h <<\_ACEOF | |
10833 | #define BAN_HEAP_SIZE 128 | |
10834 | _ACEOF | |
10835 | ||
10836 | ||
10837 | cat >>confdefs.h <<\_ACEOF | |
10838 | #define CLIENT_HEAP_SIZE 256 | |
10839 | _ACEOF | |
10840 | ||
10841 | ||
10842 | cat >>confdefs.h <<\_ACEOF | |
10843 | #define LCLIENT_HEAP_SIZE 128 | |
10844 | _ACEOF | |
10845 | ||
10846 | ||
10847 | cat >>confdefs.h <<\_ACEOF | |
10848 | #define PCLIENT_HEAP_SIZE 32 | |
10849 | _ACEOF | |
10850 | ||
10851 | ||
10852 | cat >>confdefs.h <<\_ACEOF | |
10853 | #define USER_HEAP_SIZE 128 | |
10854 | _ACEOF | |
10855 | ||
10856 | ||
10857 | cat >>confdefs.h <<\_ACEOF | |
10858 | #define DNODE_HEAP_SIZE 256 | |
10859 | _ACEOF | |
10860 | ||
10861 | ||
10862 | cat >>confdefs.h <<\_ACEOF | |
10863 | #define TOPIC_HEAP_SIZE 256 | |
10864 | _ACEOF | |
10865 | ||
10866 | ||
10867 | cat >>confdefs.h <<\_ACEOF | |
10868 | #define LINEBUF_HEAP_SIZE 128 | |
10869 | _ACEOF | |
10870 | ||
10871 | ||
10872 | cat >>confdefs.h <<\_ACEOF | |
10873 | #define MEMBER_HEAP_SIZE 256 | |
10874 | _ACEOF | |
10875 | ||
10876 | ||
10877 | cat >>confdefs.h <<\_ACEOF | |
10878 | #define ND_HEAP_SIZE 128 | |
10879 | _ACEOF | |
10880 | ||
10881 | ||
10882 | cat >>confdefs.h <<\_ACEOF | |
10883 | #define CONFITEM_HEAP_SIZE 128 | |
10884 | _ACEOF | |
10885 | ||
10886 | ||
10887 | cat >>confdefs.h <<\_ACEOF | |
10888 | #define MONITOR_HEAP_SIZE 128 | |
10889 | _ACEOF | |
10890 | ||
f589ec6f | 10891 | |
2b428185 AC |
10892 | cat >>confdefs.h <<\_ACEOF |
10893 | #define FD_HEAP_SIZE 128 | |
10894 | _ACEOF | |
10895 | ||
10896 | ||
f589ec6f AC |
10897 | cat >>confdefs.h <<\_ACEOF |
10898 | #define AWAY_HEAP_SIZE 128 | |
10899 | _ACEOF | |
10900 | ||
212380e3 AC |
10901 | else |
10902 | ||
10903 | cat >>confdefs.h <<\_ACEOF | |
10904 | #define NICKNAMEHISTORYLENGTH 15000 | |
10905 | _ACEOF | |
10906 | ||
10907 | ||
10908 | cat >>confdefs.h <<\_ACEOF | |
10909 | #define CHANNEL_HEAP_SIZE 8192 | |
10910 | _ACEOF | |
10911 | ||
10912 | ||
10913 | cat >>confdefs.h <<\_ACEOF | |
10914 | #define BAN_HEAP_SIZE 4096 | |
10915 | _ACEOF | |
10916 | ||
10917 | ||
10918 | cat >>confdefs.h <<\_ACEOF | |
10919 | #define CLIENT_HEAP_SIZE 8192 | |
10920 | _ACEOF | |
10921 | ||
10922 | ||
10923 | cat >>confdefs.h <<\_ACEOF | |
10924 | #define LCLIENT_HEAP_SIZE 1024 | |
10925 | _ACEOF | |
10926 | ||
10927 | ||
10928 | cat >>confdefs.h <<\_ACEOF | |
10929 | #define PCLIENT_HEAP_SIZE 256 | |
10930 | _ACEOF | |
10931 | ||
10932 | ||
10933 | cat >>confdefs.h <<\_ACEOF | |
10934 | #define USER_HEAP_SIZE 8192 | |
10935 | _ACEOF | |
10936 | ||
10937 | ||
10938 | cat >>confdefs.h <<\_ACEOF | |
10939 | #define DNODE_HEAP_SIZE 8192 | |
10940 | _ACEOF | |
10941 | ||
10942 | ||
10943 | cat >>confdefs.h <<\_ACEOF | |
10944 | #define TOPIC_HEAP_SIZE 4096 | |
10945 | _ACEOF | |
10946 | ||
10947 | ||
10948 | cat >>confdefs.h <<\_ACEOF | |
10949 | #define LINEBUF_HEAP_SIZE 2048 | |
10950 | _ACEOF | |
10951 | ||
10952 | ||
10953 | cat >>confdefs.h <<\_ACEOF | |
10954 | #define MEMBER_HEAP_SIZE 32768 | |
10955 | _ACEOF | |
10956 | ||
10957 | ||
10958 | cat >>confdefs.h <<\_ACEOF | |
10959 | #define ND_HEAP_SIZE 512 | |
10960 | _ACEOF | |
10961 | ||
10962 | ||
10963 | cat >>confdefs.h <<\_ACEOF | |
10964 | #define CONFITEM_HEAP_SIZE 256 | |
10965 | _ACEOF | |
10966 | ||
10967 | ||
10968 | cat >>confdefs.h <<\_ACEOF | |
10969 | #define MONITOR_HEAP_SIZE 1024 | |
10970 | _ACEOF | |
10971 | ||
f589ec6f | 10972 | |
2b428185 AC |
10973 | cat >>confdefs.h <<\_ACEOF |
10974 | #define FD_HEAP_SIZE 1024 | |
10975 | _ACEOF | |
10976 | ||
10977 | ||
f589ec6f AC |
10978 | cat >>confdefs.h <<\_ACEOF |
10979 | #define AWAY_HEAP_SIZE 512 | |
10980 | _ACEOF | |
10981 | ||
212380e3 AC |
10982 | fi |
10983 | ||
10984 | ||
631ef239 | 10985 | # Check whether --with-nicklen was given. |
212380e3 | 10986 | if test "${with_nicklen+set}" = set; then |
631ef239 | 10987 | withval=$with_nicklen; |
212380e3 AC |
10988 | if test $withval -ge 50; then |
10989 | NICKLEN=50 | |
10990 | { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 | |
10991 | echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
10992 | else | |
10993 | NICKLEN="$withval" | |
10994 | fi | |
10995 | ||
10996 | else | |
10997 | NICKLEN=15 | |
631ef239 | 10998 | fi |
212380e3 AC |
10999 | |
11000 | ||
212380e3 | 11001 | |
631ef239 AC |
11002 | # Check whether --with-topiclen was given. |
11003 | if test "${with_topiclen+set}" = set; then | |
11004 | withval=$with_topiclen; | |
212380e3 AC |
11005 | if test $withval -ge 390; then |
11006 | TOPICLEN=390 | |
11007 | { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 | |
11008 | echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
11009 | else | |
11010 | TOPICLEN=$withval | |
11011 | fi | |
11012 | ||
11013 | else | |
11014 | TOPICLEN=390 | |
212380e3 AC |
11015 | fi |
11016 | ||
212380e3 AC |
11017 | |
11018 | ||
11019 | cat >>confdefs.h <<_ACEOF | |
11020 | #define TOPICLEN ${TOPICLEN} | |
11021 | _ACEOF | |
11022 | ||
11023 | ||
11024 | cat >>confdefs.h <<_ACEOF | |
11025 | #define NICKLEN (${NICKLEN}+1) | |
11026 | _ACEOF | |
11027 | ||
11028 | ||
b676ea3b | 11029 | shared_modules="yes" |
212380e3 AC |
11030 | if test "$shared_modules" = yes; then |
11031 | ||
11032 | if test "$CYGWIN" = yes; then | |
11033 | { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5 | |
11034 | echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;} | |
11035 | shared_modules="no" | |
11036 | fi | |
11037 | ||
11038 | if test "$CC" = tcc -a "$TenDRA" = "no"; then | |
11039 | { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5 | |
11040 | echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;} | |
11041 | shared_modules="no" | |
11042 | fi | |
11043 | fi | |
11044 | ||
11045 | if test "$shared_modules" = yes; then | |
11046 | DYNLINK_C=dynlink.c | |
11047 | ||
11048 | for ac_header in dlfcn.h | |
11049 | do | |
11050 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
11051 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11052 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11054 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11056 | fi | |
631ef239 AC |
11057 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11058 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11059 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11060 | else |
11061 | # Is the header compilable? | |
631ef239 AC |
11062 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11063 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 AC |
11064 | cat >conftest.$ac_ext <<_ACEOF |
11065 | /* confdefs.h. */ | |
11066 | _ACEOF | |
11067 | cat confdefs.h >>conftest.$ac_ext | |
11068 | cat >>conftest.$ac_ext <<_ACEOF | |
11069 | /* end confdefs.h. */ | |
11070 | $ac_includes_default | |
11071 | #include <$ac_header> | |
11072 | _ACEOF | |
11073 | rm -f conftest.$ac_objext | |
631ef239 AC |
11074 | if { (ac_try="$ac_compile" |
11075 | case "(($ac_try" in | |
11076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11077 | *) ac_try_echo=$ac_try;; | |
11078 | esac | |
11079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11080 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11081 | ac_status=$? |
11082 | grep -v '^ *+' conftest.er1 >conftest.err | |
11083 | rm -f conftest.er1 | |
11084 | cat conftest.err >&5 | |
11085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11086 | (exit $ac_status); } && { |
11087 | test -z "$ac_c_werror_flag" || | |
11088 | test ! -s conftest.err | |
11089 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11090 | ac_header_compiler=yes |
11091 | else | |
11092 | echo "$as_me: failed program was:" >&5 | |
11093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11094 | ||
631ef239 | 11095 | ac_header_compiler=no |
212380e3 | 11096 | fi |
631ef239 AC |
11097 | |
11098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11099 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11100 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
11101 | |
11102 | # Is the header present? | |
631ef239 AC |
11103 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11104 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 AC |
11105 | cat >conftest.$ac_ext <<_ACEOF |
11106 | /* confdefs.h. */ | |
11107 | _ACEOF | |
11108 | cat confdefs.h >>conftest.$ac_ext | |
11109 | cat >>conftest.$ac_ext <<_ACEOF | |
11110 | /* end confdefs.h. */ | |
11111 | #include <$ac_header> | |
11112 | _ACEOF | |
631ef239 AC |
11113 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11114 | case "(($ac_try" in | |
11115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11116 | *) ac_try_echo=$ac_try;; | |
11117 | esac | |
11118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11119 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
11120 | ac_status=$? |
11121 | grep -v '^ *+' conftest.er1 >conftest.err | |
11122 | rm -f conftest.er1 | |
11123 | cat conftest.err >&5 | |
11124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11125 | (exit $ac_status); } >/dev/null && { |
11126 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11127 | test ! -s conftest.err | |
11128 | }; then | |
212380e3 AC |
11129 | ac_header_preproc=yes |
11130 | else | |
11131 | echo "$as_me: failed program was:" >&5 | |
11132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11133 | ||
11134 | ac_header_preproc=no | |
11135 | fi | |
631ef239 | 11136 | |
212380e3 | 11137 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
11138 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11139 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
11140 | |
11141 | # So? What about this header? | |
11142 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11143 | yes:no: ) | |
11144 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11145 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11146 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11147 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11148 | ac_header_preproc=yes | |
11149 | ;; | |
11150 | no:yes:* ) | |
11151 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11152 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11153 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11154 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11155 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11156 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11157 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11158 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11159 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11160 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11161 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11162 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 11163 | |
212380e3 AC |
11164 | ;; |
11165 | esac | |
631ef239 AC |
11166 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11167 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11168 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11170 | else | |
11171 | eval "$as_ac_Header=\$ac_header_preproc" | |
11172 | fi | |
631ef239 AC |
11173 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11174 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11175 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11176 | |
11177 | fi | |
11178 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11179 | cat >>confdefs.h <<_ACEOF | |
11180 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11181 | _ACEOF | |
11182 | ||
11183 | fi | |
11184 | ||
11185 | done | |
11186 | ||
631ef239 AC |
11187 | { echo "$as_me:$LINENO: checking for library containing shl_load" >&5 |
11188 | echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; } | |
212380e3 AC |
11189 | if test "${ac_cv_search_shl_load+set}" = set; then |
11190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11191 | else | |
11192 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
11193 | cat >conftest.$ac_ext <<_ACEOF |
11194 | /* confdefs.h. */ | |
11195 | _ACEOF | |
11196 | cat confdefs.h >>conftest.$ac_ext | |
11197 | cat >>conftest.$ac_ext <<_ACEOF | |
11198 | /* end confdefs.h. */ | |
11199 | ||
631ef239 AC |
11200 | /* Override any GCC internal prototype to avoid an error. |
11201 | Use char because int might match the return type of a GCC | |
11202 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11203 | #ifdef __cplusplus |
11204 | extern "C" | |
11205 | #endif | |
212380e3 AC |
11206 | char shl_load (); |
11207 | int | |
11208 | main () | |
11209 | { | |
631ef239 | 11210 | return shl_load (); |
212380e3 AC |
11211 | ; |
11212 | return 0; | |
11213 | } | |
11214 | _ACEOF | |
631ef239 AC |
11215 | for ac_lib in '' dld; do |
11216 | if test -z "$ac_lib"; then | |
11217 | ac_res="none required" | |
11218 | else | |
11219 | ac_res=-l$ac_lib | |
11220 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11221 | fi | |
11222 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11223 | if { (ac_try="$ac_link" | |
11224 | case "(($ac_try" in | |
11225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11226 | *) ac_try_echo=$ac_try;; | |
11227 | esac | |
11228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11229 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11230 | ac_status=$? |
11231 | grep -v '^ *+' conftest.er1 >conftest.err | |
11232 | rm -f conftest.er1 | |
11233 | cat conftest.err >&5 | |
11234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11235 | (exit $ac_status); } && { |
11236 | test -z "$ac_c_werror_flag" || | |
11237 | test ! -s conftest.err | |
11238 | } && test -s conftest$ac_exeext && | |
11239 | $as_test_x conftest$ac_exeext; then | |
11240 | ac_cv_search_shl_load=$ac_res | |
212380e3 AC |
11241 | else |
11242 | echo "$as_me: failed program was:" >&5 | |
11243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11244 | ||
212380e3 | 11245 | |
631ef239 | 11246 | fi |
212380e3 | 11247 | |
631ef239 AC |
11248 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11249 | conftest$ac_exeext | |
11250 | if test "${ac_cv_search_shl_load+set}" = set; then | |
11251 | break | |
212380e3 | 11252 | fi |
631ef239 AC |
11253 | done |
11254 | if test "${ac_cv_search_shl_load+set}" = set; then | |
11255 | : | |
11256 | else | |
11257 | ac_cv_search_shl_load=no | |
212380e3 | 11258 | fi |
631ef239 | 11259 | rm conftest.$ac_ext |
212380e3 AC |
11260 | LIBS=$ac_func_search_save_LIBS |
11261 | fi | |
631ef239 AC |
11262 | { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5 |
11263 | echo "${ECHO_T}$ac_cv_search_shl_load" >&6; } | |
11264 | ac_res=$ac_cv_search_shl_load | |
11265 | if test "$ac_res" != no; then | |
11266 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
11267 | |
11268 | ||
11269 | cat >>confdefs.h <<\_ACEOF | |
11270 | #define HAVE_SHL_LOAD 1 | |
11271 | _ACEOF | |
11272 | ||
11273 | SUFFIX=".sl" | |
11274 | MOD_TARGET=hpux_shared | |
11275 | SEDOBJ="s/\.o/.sl/g" | |
11276 | ||
11277 | else | |
11278 | ||
631ef239 AC |
11279 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
11280 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | |
212380e3 AC |
11281 | if test "${ac_cv_search_dlopen+set}" = set; then |
11282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11283 | else | |
11284 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
11285 | cat >conftest.$ac_ext <<_ACEOF |
11286 | /* confdefs.h. */ | |
11287 | _ACEOF | |
11288 | cat confdefs.h >>conftest.$ac_ext | |
11289 | cat >>conftest.$ac_ext <<_ACEOF | |
11290 | /* end confdefs.h. */ | |
11291 | ||
631ef239 AC |
11292 | /* Override any GCC internal prototype to avoid an error. |
11293 | Use char because int might match the return type of a GCC | |
11294 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11295 | #ifdef __cplusplus |
11296 | extern "C" | |
11297 | #endif | |
212380e3 AC |
11298 | char dlopen (); |
11299 | int | |
11300 | main () | |
11301 | { | |
631ef239 | 11302 | return dlopen (); |
212380e3 AC |
11303 | ; |
11304 | return 0; | |
11305 | } | |
11306 | _ACEOF | |
631ef239 AC |
11307 | for ac_lib in '' dl c_r; do |
11308 | if test -z "$ac_lib"; then | |
11309 | ac_res="none required" | |
11310 | else | |
11311 | ac_res=-l$ac_lib | |
11312 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11313 | fi | |
11314 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11315 | if { (ac_try="$ac_link" | |
11316 | case "(($ac_try" in | |
11317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11318 | *) ac_try_echo=$ac_try;; | |
11319 | esac | |
11320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11321 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11322 | ac_status=$? |
11323 | grep -v '^ *+' conftest.er1 >conftest.err | |
11324 | rm -f conftest.er1 | |
11325 | cat conftest.err >&5 | |
11326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11327 | (exit $ac_status); } && { |
11328 | test -z "$ac_c_werror_flag" || | |
11329 | test ! -s conftest.err | |
11330 | } && test -s conftest$ac_exeext && | |
11331 | $as_test_x conftest$ac_exeext; then | |
11332 | ac_cv_search_dlopen=$ac_res | |
212380e3 AC |
11333 | else |
11334 | echo "$as_me: failed program was:" >&5 | |
11335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11336 | ||
212380e3 | 11337 | |
631ef239 | 11338 | fi |
212380e3 | 11339 | |
631ef239 AC |
11340 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11341 | conftest$ac_exeext | |
11342 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11343 | break | |
212380e3 | 11344 | fi |
631ef239 AC |
11345 | done |
11346 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11347 | : | |
11348 | else | |
11349 | ac_cv_search_dlopen=no | |
212380e3 | 11350 | fi |
631ef239 | 11351 | rm conftest.$ac_ext |
212380e3 AC |
11352 | LIBS=$ac_func_search_save_LIBS |
11353 | fi | |
631ef239 AC |
11354 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
11355 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | |
11356 | ac_res=$ac_cv_search_dlopen | |
11357 | if test "$ac_res" != no; then | |
11358 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
11359 | |
11360 | ||
11361 | cat >>confdefs.h <<\_ACEOF | |
11362 | #define HAVE_DLOPEN 1 | |
11363 | _ACEOF | |
11364 | ||
11365 | SUFFIX=".so" | |
11366 | MOD_TARGET=shared_modules | |
11367 | SEDOBJ="s/\.o/.so/g" | |
11368 | if test "$AppleGCC" = yes; then | |
11369 | ||
11370 | for ac_header in mach-o/dyld.h | |
11371 | do | |
11372 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
11373 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11374 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11375 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11376 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11378 | fi | |
631ef239 AC |
11379 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11380 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11381 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11382 | else |
11383 | # Is the header compilable? | |
631ef239 AC |
11384 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11385 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 AC |
11386 | cat >conftest.$ac_ext <<_ACEOF |
11387 | /* confdefs.h. */ | |
11388 | _ACEOF | |
11389 | cat confdefs.h >>conftest.$ac_ext | |
11390 | cat >>conftest.$ac_ext <<_ACEOF | |
11391 | /* end confdefs.h. */ | |
11392 | $ac_includes_default | |
11393 | #include <$ac_header> | |
11394 | _ACEOF | |
11395 | rm -f conftest.$ac_objext | |
631ef239 AC |
11396 | if { (ac_try="$ac_compile" |
11397 | case "(($ac_try" in | |
11398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11399 | *) ac_try_echo=$ac_try;; | |
11400 | esac | |
11401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11402 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11403 | ac_status=$? |
11404 | grep -v '^ *+' conftest.er1 >conftest.err | |
11405 | rm -f conftest.er1 | |
11406 | cat conftest.err >&5 | |
11407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11408 | (exit $ac_status); } && { |
11409 | test -z "$ac_c_werror_flag" || | |
11410 | test ! -s conftest.err | |
11411 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11412 | ac_header_compiler=yes |
11413 | else | |
11414 | echo "$as_me: failed program was:" >&5 | |
11415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11416 | ||
631ef239 | 11417 | ac_header_compiler=no |
212380e3 | 11418 | fi |
631ef239 AC |
11419 | |
11420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11421 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11422 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
11423 | |
11424 | # Is the header present? | |
631ef239 AC |
11425 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11426 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 AC |
11427 | cat >conftest.$ac_ext <<_ACEOF |
11428 | /* confdefs.h. */ | |
11429 | _ACEOF | |
11430 | cat confdefs.h >>conftest.$ac_ext | |
11431 | cat >>conftest.$ac_ext <<_ACEOF | |
11432 | /* end confdefs.h. */ | |
11433 | #include <$ac_header> | |
11434 | _ACEOF | |
631ef239 AC |
11435 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11436 | case "(($ac_try" in | |
11437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11438 | *) ac_try_echo=$ac_try;; | |
11439 | esac | |
11440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11441 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
11442 | ac_status=$? |
11443 | grep -v '^ *+' conftest.er1 >conftest.err | |
11444 | rm -f conftest.er1 | |
11445 | cat conftest.err >&5 | |
11446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11447 | (exit $ac_status); } >/dev/null && { |
11448 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11449 | test ! -s conftest.err | |
11450 | }; then | |
212380e3 AC |
11451 | ac_header_preproc=yes |
11452 | else | |
11453 | echo "$as_me: failed program was:" >&5 | |
11454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11455 | ||
11456 | ac_header_preproc=no | |
11457 | fi | |
631ef239 | 11458 | |
212380e3 | 11459 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
11460 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11461 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
11462 | |
11463 | # So? What about this header? | |
11464 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11465 | yes:no: ) | |
11466 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11467 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11468 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11469 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11470 | ac_header_preproc=yes | |
11471 | ;; | |
11472 | no:yes:* ) | |
11473 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11474 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11475 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11476 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11477 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11478 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11479 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11480 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11481 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11482 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11483 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11484 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 11485 | |
212380e3 AC |
11486 | ;; |
11487 | esac | |
631ef239 AC |
11488 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11489 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11490 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11492 | else | |
11493 | eval "$as_ac_Header=\$ac_header_preproc" | |
11494 | fi | |
631ef239 AC |
11495 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11496 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11497 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11498 | |
11499 | fi | |
11500 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11501 | cat >>confdefs.h <<_ACEOF | |
11502 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11503 | _ACEOF | |
11504 | ||
11505 | fi | |
11506 | ||
11507 | done | |
11508 | ||
11509 | fi | |
631ef239 AC |
11510 | { echo "$as_me:$LINENO: checking for dlsym" >&5 |
11511 | echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; } | |
212380e3 AC |
11512 | if test "${ac_cv_func_dlsym+set}" = set; then |
11513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11514 | else | |
11515 | cat >conftest.$ac_ext <<_ACEOF | |
11516 | /* confdefs.h. */ | |
11517 | _ACEOF | |
11518 | cat confdefs.h >>conftest.$ac_ext | |
11519 | cat >>conftest.$ac_ext <<_ACEOF | |
11520 | /* end confdefs.h. */ | |
11521 | /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym. | |
11522 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11523 | #define dlsym innocuous_dlsym | |
11524 | ||
11525 | /* System header to define __stub macros and hopefully few prototypes, | |
11526 | which can conflict with char dlsym (); below. | |
11527 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11528 | <limits.h> exists even on freestanding compilers. */ | |
11529 | ||
11530 | #ifdef __STDC__ | |
11531 | # include <limits.h> | |
11532 | #else | |
11533 | # include <assert.h> | |
11534 | #endif | |
11535 | ||
11536 | #undef dlsym | |
11537 | ||
631ef239 AC |
11538 | /* Override any GCC internal prototype to avoid an error. |
11539 | Use char because int might match the return type of a GCC | |
11540 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11541 | #ifdef __cplusplus |
11542 | extern "C" | |
212380e3 | 11543 | #endif |
212380e3 AC |
11544 | char dlsym (); |
11545 | /* The GNU C library defines this for functions which it implements | |
11546 | to always fail with ENOSYS. Some functions are actually named | |
11547 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 11548 | #if defined __stub_dlsym || defined __stub___dlsym |
212380e3 | 11549 | choke me |
212380e3 AC |
11550 | #endif |
11551 | ||
11552 | int | |
11553 | main () | |
11554 | { | |
631ef239 | 11555 | return dlsym (); |
212380e3 AC |
11556 | ; |
11557 | return 0; | |
11558 | } | |
11559 | _ACEOF | |
11560 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
11561 | if { (ac_try="$ac_link" |
11562 | case "(($ac_try" in | |
11563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11564 | *) ac_try_echo=$ac_try;; | |
11565 | esac | |
11566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11567 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11568 | ac_status=$? |
11569 | grep -v '^ *+' conftest.er1 >conftest.err | |
11570 | rm -f conftest.er1 | |
11571 | cat conftest.err >&5 | |
11572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11573 | (exit $ac_status); } && { |
11574 | test -z "$ac_c_werror_flag" || | |
11575 | test ! -s conftest.err | |
11576 | } && test -s conftest$ac_exeext && | |
11577 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
11578 | ac_cv_func_dlsym=yes |
11579 | else | |
11580 | echo "$as_me: failed program was:" >&5 | |
11581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11582 | ||
631ef239 | 11583 | ac_cv_func_dlsym=no |
212380e3 | 11584 | fi |
631ef239 AC |
11585 | |
11586 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
11587 | conftest$ac_exeext conftest.$ac_ext |
11588 | fi | |
631ef239 AC |
11589 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5 |
11590 | echo "${ECHO_T}$ac_cv_func_dlsym" >&6; } | |
212380e3 AC |
11591 | if test $ac_cv_func_dlsym = yes; then |
11592 | : | |
11593 | else | |
11594 | ||
11595 | { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5 | |
11596 | echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;} | |
11597 | shared_modules=no | |
11598 | ||
11599 | fi | |
11600 | ||
11601 | ||
11602 | for ac_func in dlfunc | |
11603 | do | |
11604 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
11605 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11606 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11607 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11609 | else | |
11610 | cat >conftest.$ac_ext <<_ACEOF | |
11611 | /* confdefs.h. */ | |
11612 | _ACEOF | |
11613 | cat confdefs.h >>conftest.$ac_ext | |
11614 | cat >>conftest.$ac_ext <<_ACEOF | |
11615 | /* end confdefs.h. */ | |
11616 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11617 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11618 | #define $ac_func innocuous_$ac_func | |
11619 | ||
11620 | /* System header to define __stub macros and hopefully few prototypes, | |
11621 | which can conflict with char $ac_func (); below. | |
11622 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11623 | <limits.h> exists even on freestanding compilers. */ | |
11624 | ||
11625 | #ifdef __STDC__ | |
11626 | # include <limits.h> | |
11627 | #else | |
11628 | # include <assert.h> | |
11629 | #endif | |
11630 | ||
11631 | #undef $ac_func | |
11632 | ||
631ef239 AC |
11633 | /* Override any GCC internal prototype to avoid an error. |
11634 | Use char because int might match the return type of a GCC | |
11635 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11636 | #ifdef __cplusplus |
11637 | extern "C" | |
212380e3 | 11638 | #endif |
212380e3 AC |
11639 | char $ac_func (); |
11640 | /* The GNU C library defines this for functions which it implements | |
11641 | to always fail with ENOSYS. Some functions are actually named | |
11642 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 11643 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 11644 | choke me |
212380e3 AC |
11645 | #endif |
11646 | ||
11647 | int | |
11648 | main () | |
11649 | { | |
631ef239 | 11650 | return $ac_func (); |
212380e3 AC |
11651 | ; |
11652 | return 0; | |
11653 | } | |
11654 | _ACEOF | |
11655 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
11656 | if { (ac_try="$ac_link" |
11657 | case "(($ac_try" in | |
11658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11659 | *) ac_try_echo=$ac_try;; | |
11660 | esac | |
11661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11662 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11663 | ac_status=$? |
11664 | grep -v '^ *+' conftest.er1 >conftest.err | |
11665 | rm -f conftest.er1 | |
11666 | cat conftest.err >&5 | |
11667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11668 | (exit $ac_status); } && { |
11669 | test -z "$ac_c_werror_flag" || | |
11670 | test ! -s conftest.err | |
11671 | } && test -s conftest$ac_exeext && | |
11672 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
11673 | eval "$as_ac_var=yes" |
11674 | else | |
11675 | echo "$as_me: failed program was:" >&5 | |
11676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11677 | ||
631ef239 | 11678 | eval "$as_ac_var=no" |
212380e3 | 11679 | fi |
631ef239 AC |
11680 | |
11681 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
11682 | conftest$ac_exeext conftest.$ac_ext |
11683 | fi | |
631ef239 AC |
11684 | ac_res=`eval echo '${'$as_ac_var'}'` |
11685 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11686 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11687 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11688 | cat >>confdefs.h <<_ACEOF | |
11689 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11690 | _ACEOF | |
11691 | ||
11692 | fi | |
11693 | done | |
11694 | ||
11695 | ||
11696 | else | |
11697 | ||
11698 | shared_modules=no | |
11699 | ||
11700 | fi | |
11701 | ||
11702 | ||
11703 | fi | |
11704 | ||
11705 | fi | |
11706 | ||
11707 | ||
11708 | cat >>confdefs.h <<_ACEOF | |
11709 | #define SHARED_SUFFIX "$SUFFIX" | |
11710 | _ACEOF | |
11711 | ||
11712 | ||
11713 | if test "$shared_modules" = yes; then | |
11714 | # The GNU linker requires the -export-dynamic option to make | |
11715 | # all symbols visible in the dynamic symbol table. | |
11716 | hold_ldflags=$LDFLAGS | |
631ef239 AC |
11717 | { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
11718 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; } | |
212380e3 AC |
11719 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror" |
11720 | cat >conftest.$ac_ext <<_ACEOF | |
11721 | /* confdefs.h. */ | |
11722 | _ACEOF | |
11723 | cat confdefs.h >>conftest.$ac_ext | |
11724 | cat >>conftest.$ac_ext <<_ACEOF | |
11725 | /* end confdefs.h. */ | |
11726 | ||
11727 | int | |
11728 | main () | |
11729 | { | |
11730 | int i; | |
11731 | ; | |
11732 | return 0; | |
11733 | } | |
11734 | _ACEOF | |
11735 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
11736 | if { (ac_try="$ac_link" |
11737 | case "(($ac_try" in | |
11738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11739 | *) ac_try_echo=$ac_try;; | |
11740 | esac | |
11741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11742 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11743 | ac_status=$? |
11744 | grep -v '^ *+' conftest.er1 >conftest.err | |
11745 | rm -f conftest.er1 | |
11746 | cat conftest.err >&5 | |
11747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11748 | (exit $ac_status); } && { |
11749 | test -z "$ac_c_werror_flag" || | |
11750 | test ! -s conftest.err | |
11751 | } && test -s conftest$ac_exeext && | |
11752 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
11753 | found=yes |
11754 | else | |
11755 | echo "$as_me: failed program was:" >&5 | |
11756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11757 | ||
631ef239 | 11758 | found=no |
212380e3 | 11759 | fi |
631ef239 AC |
11760 | |
11761 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
11762 | conftest$ac_exeext conftest.$ac_ext |
11763 | LDFLAGS=$hold_ldflags | |
11764 | ||
11765 | if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then | |
11766 | found="no, IRIX ld uses -B,dynamic" | |
11767 | LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" | |
11768 | fi | |
11769 | ||
11770 | if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then | |
11771 | found="no, AIX ld uses -G -brtl" | |
11772 | LDFLAGS="${LDFLAGS} -Wl,-G,-brtl" | |
11773 | fi | |
11774 | ||
631ef239 AC |
11775 | { echo "$as_me:$LINENO: result: $found" >&5 |
11776 | echo "${ECHO_T}$found" >&6; } | |
212380e3 AC |
11777 | |
11778 | if test "$found" = yes; then | |
11779 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" | |
11780 | fi | |
11781 | ||
631ef239 AC |
11782 | { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5 |
11783 | echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; } | |
212380e3 | 11784 | if test "$SGS" = "yes"; then |
631ef239 AC |
11785 | { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5 |
11786 | echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; } | |
212380e3 AC |
11787 | PICFLAGS="-KPIC -DPIC -G" |
11788 | fi | |
11789 | ||
11790 | if test "$AppleGCC" = "yes"; then | |
631ef239 AC |
11791 | { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5 |
11792 | echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; } | |
212380e3 AC |
11793 | PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" |
11794 | fi | |
11795 | if test "$HPUX" = "yes" -a "$CC" != gcc; then | |
631ef239 AC |
11796 | { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5 |
11797 | echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; } | |
212380e3 | 11798 | PICFLAGS="+z -r -q -n -c" |
631ef239 AC |
11799 | { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5 |
11800 | echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; } | |
212380e3 AC |
11801 | |
11802 | if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then | |
631ef239 AC |
11803 | { echo "$as_me:$LINENO: result: no" >&5 |
11804 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 11805 | else |
631ef239 AC |
11806 | { echo "$as_me:$LINENO: result: yes" >&5 |
11807 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
11808 | PICFLAGS="$PICFLAGS +ESfic" |
11809 | fi | |
11810 | ||
11811 | LDFLAGS="${LDFLAGS} -Wl,-E" | |
11812 | fi | |
11813 | if test "$Tru" = yes -a "$CC" != gcc; then | |
631ef239 AC |
11814 | { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5 |
11815 | echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; } | |
212380e3 AC |
11816 | PICFLAGS="-shared -expect_unresolved '*' " |
11817 | LDFLAGS="-call_shared" | |
11818 | fi | |
11819 | if test -z "$PICFLAGS"; then | |
11820 | if test "$ac_cv_c_compiler_gnu" = "yes"; then | |
631ef239 AC |
11821 | { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5 |
11822 | echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; } | |
212380e3 AC |
11823 | PICFLAGS="-fPIC -DPIC -shared" |
11824 | else | |
631ef239 AC |
11825 | { echo "$as_me:$LINENO: result: no" >&5 |
11826 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11827 | shared_modules=no |
11828 | fi | |
11829 | fi | |
11830 | fi | |
11831 | ||
11832 | # This must be down here, or it will mess up checks like the ones | |
11833 | # for -Wl,-export-dynamic | |
11834 | # -- jilles | |
631ef239 | 11835 | # Check whether --enable-warnings was given. |
212380e3 | 11836 | if test "${enable_warnings+set}" = set; then |
631ef239 | 11837 | enableval=$enable_warnings; |
212380e3 AC |
11838 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
11839 | CFLAGS="$IRC_CFLAGS" | |
11840 | ||
11841 | ||
631ef239 AC |
11842 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5 |
11843 | echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; } | |
212380e3 AC |
11844 | if test "${GCC-no}" = yes |
11845 | then | |
11846 | if test "${charybdis_cv_c_gcc_w_all+set}" = set; then | |
11847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11848 | else | |
11849 | ||
11850 | oldcflags="${CFLAGS-}" | |
11851 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
11852 | cat >conftest.$ac_ext <<_ACEOF | |
11853 | /* confdefs.h. */ | |
11854 | _ACEOF | |
11855 | cat confdefs.h >>conftest.$ac_ext | |
11856 | cat >>conftest.$ac_ext <<_ACEOF | |
11857 | /* end confdefs.h. */ | |
11858 | ||
11859 | #include <string.h> | |
11860 | #include <stdio.h> | |
11861 | int main(void); | |
11862 | ||
11863 | int | |
11864 | main () | |
11865 | { | |
11866 | ||
b1fc1658 | 11867 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
11868 | |
11869 | ; | |
11870 | return 0; | |
11871 | } | |
11872 | _ACEOF | |
11873 | rm -f conftest.$ac_objext | |
631ef239 AC |
11874 | if { (ac_try="$ac_compile" |
11875 | case "(($ac_try" in | |
11876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11877 | *) ac_try_echo=$ac_try;; | |
11878 | esac | |
11879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11880 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11881 | ac_status=$? |
11882 | grep -v '^ *+' conftest.er1 >conftest.err | |
11883 | rm -f conftest.er1 | |
11884 | cat conftest.err >&5 | |
11885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11886 | (exit $ac_status); } && { |
11887 | test -z "$ac_c_werror_flag" || | |
11888 | test ! -s conftest.err | |
11889 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11890 | charybdis_cv_c_gcc_w_all=yes |
11891 | else | |
11892 | echo "$as_me: failed program was:" >&5 | |
11893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11894 | ||
631ef239 | 11895 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 11896 | fi |
631ef239 AC |
11897 | |
11898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
11899 | CFLAGS="${oldcflags}" |
11900 | fi | |
11901 | ||
11902 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
11903 | CWARNS="${CWARNS}-Wall " | |
631ef239 AC |
11904 | { echo "$as_me:$LINENO: result: ok" >&5 |
11905 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
11906 | else |
11907 | charybdis_cv_c_gcc_w_all='' | |
631ef239 AC |
11908 | { echo "$as_me:$LINENO: result: no" >&5 |
11909 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11910 | fi |
11911 | else | |
631ef239 AC |
11912 | { echo "$as_me:$LINENO: result: no" >&5 |
11913 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11914 | fi |
11915 | ||
11916 | ||
631ef239 AC |
11917 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5 |
11918 | echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; } | |
212380e3 AC |
11919 | if test "${GCC-no}" = yes |
11920 | then | |
11921 | if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then | |
11922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11923 | else | |
11924 | ||
11925 | oldcflags="${CFLAGS-}" | |
11926 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
11927 | cat >conftest.$ac_ext <<_ACEOF | |
11928 | /* confdefs.h. */ | |
11929 | _ACEOF | |
11930 | cat confdefs.h >>conftest.$ac_ext | |
11931 | cat >>conftest.$ac_ext <<_ACEOF | |
11932 | /* end confdefs.h. */ | |
11933 | ||
11934 | #include <string.h> | |
11935 | #include <stdio.h> | |
11936 | int main(void); | |
11937 | ||
11938 | int | |
11939 | main () | |
11940 | { | |
11941 | ||
b1fc1658 | 11942 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
11943 | |
11944 | ; | |
11945 | return 0; | |
11946 | } | |
11947 | _ACEOF | |
11948 | rm -f conftest.$ac_objext | |
631ef239 AC |
11949 | if { (ac_try="$ac_compile" |
11950 | case "(($ac_try" in | |
11951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11952 | *) ac_try_echo=$ac_try;; | |
11953 | esac | |
11954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11955 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11956 | ac_status=$? |
11957 | grep -v '^ *+' conftest.er1 >conftest.err | |
11958 | rm -f conftest.er1 | |
11959 | cat conftest.err >&5 | |
11960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11961 | (exit $ac_status); } && { |
11962 | test -z "$ac_c_werror_flag" || | |
11963 | test ! -s conftest.err | |
11964 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11965 | charybdis_cv_c_gcc_w_pointer_arith=yes |
11966 | else | |
11967 | echo "$as_me: failed program was:" >&5 | |
11968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11969 | ||
631ef239 | 11970 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 11971 | fi |
631ef239 AC |
11972 | |
11973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
11974 | CFLAGS="${oldcflags}" |
11975 | fi | |
11976 | ||
11977 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
11978 | CWARNS="${CWARNS}-Wpointer-arith " | |
631ef239 AC |
11979 | { echo "$as_me:$LINENO: result: ok" >&5 |
11980 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
11981 | else |
11982 | charybdis_cv_c_gcc_w_pointer_arith='' | |
631ef239 AC |
11983 | { echo "$as_me:$LINENO: result: no" >&5 |
11984 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11985 | fi |
11986 | else | |
631ef239 AC |
11987 | { echo "$as_me:$LINENO: result: no" >&5 |
11988 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11989 | fi |
11990 | ||
11991 | ||
631ef239 AC |
11992 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
11993 | echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; } | |
212380e3 AC |
11994 | if test "${GCC-no}" = yes |
11995 | then | |
11996 | if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then | |
11997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11998 | else | |
11999 | ||
12000 | oldcflags="${CFLAGS-}" | |
12001 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
12002 | cat >conftest.$ac_ext <<_ACEOF | |
12003 | /* confdefs.h. */ | |
12004 | _ACEOF | |
12005 | cat confdefs.h >>conftest.$ac_ext | |
12006 | cat >>conftest.$ac_ext <<_ACEOF | |
12007 | /* end confdefs.h. */ | |
12008 | ||
12009 | #include <string.h> | |
12010 | #include <stdio.h> | |
12011 | int main(void); | |
12012 | ||
12013 | int | |
12014 | main () | |
12015 | { | |
12016 | ||
b1fc1658 | 12017 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12018 | |
12019 | ; | |
12020 | return 0; | |
12021 | } | |
12022 | _ACEOF | |
12023 | rm -f conftest.$ac_objext | |
631ef239 AC |
12024 | if { (ac_try="$ac_compile" |
12025 | case "(($ac_try" in | |
12026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12027 | *) ac_try_echo=$ac_try;; | |
12028 | esac | |
12029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12030 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12031 | ac_status=$? |
12032 | grep -v '^ *+' conftest.er1 >conftest.err | |
12033 | rm -f conftest.er1 | |
12034 | cat conftest.err >&5 | |
12035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12036 | (exit $ac_status); } && { |
12037 | test -z "$ac_c_werror_flag" || | |
12038 | test ! -s conftest.err | |
12039 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12040 | charybdis_cv_c_gcc_w_implicit=yes |
12041 | else | |
12042 | echo "$as_me: failed program was:" >&5 | |
12043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12044 | ||
631ef239 | 12045 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 12046 | fi |
631ef239 AC |
12047 | |
12048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12049 | CFLAGS="${oldcflags}" |
12050 | fi | |
12051 | ||
12052 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
12053 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
631ef239 AC |
12054 | { echo "$as_me:$LINENO: result: ok" >&5 |
12055 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12056 | else |
12057 | charybdis_cv_c_gcc_w_implicit='' | |
631ef239 AC |
12058 | { echo "$as_me:$LINENO: result: no" >&5 |
12059 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12060 | fi |
12061 | else | |
631ef239 AC |
12062 | { echo "$as_me:$LINENO: result: no" >&5 |
12063 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12064 | fi |
12065 | ||
12066 | ||
631ef239 AC |
12067 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5 |
12068 | echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; } | |
212380e3 AC |
12069 | if test "${GCC-no}" = yes |
12070 | then | |
12071 | if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then | |
12072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12073 | else | |
12074 | ||
12075 | oldcflags="${CFLAGS-}" | |
12076 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
12077 | cat >conftest.$ac_ext <<_ACEOF | |
12078 | /* confdefs.h. */ | |
12079 | _ACEOF | |
12080 | cat confdefs.h >>conftest.$ac_ext | |
12081 | cat >>conftest.$ac_ext <<_ACEOF | |
12082 | /* end confdefs.h. */ | |
12083 | ||
12084 | #include <string.h> | |
12085 | #include <stdio.h> | |
12086 | int main(void); | |
12087 | ||
12088 | int | |
12089 | main () | |
12090 | { | |
12091 | ||
b1fc1658 | 12092 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12093 | |
12094 | ; | |
12095 | return 0; | |
12096 | } | |
12097 | _ACEOF | |
12098 | rm -f conftest.$ac_objext | |
631ef239 AC |
12099 | if { (ac_try="$ac_compile" |
12100 | case "(($ac_try" in | |
12101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12102 | *) ac_try_echo=$ac_try;; | |
12103 | esac | |
12104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12105 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12106 | ac_status=$? |
12107 | grep -v '^ *+' conftest.er1 >conftest.err | |
12108 | rm -f conftest.er1 | |
12109 | cat conftest.err >&5 | |
12110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12111 | (exit $ac_status); } && { |
12112 | test -z "$ac_c_werror_flag" || | |
12113 | test ! -s conftest.err | |
12114 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12115 | charybdis_cv_c_gcc_w_cast_align=yes |
12116 | else | |
12117 | echo "$as_me: failed program was:" >&5 | |
12118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12119 | ||
631ef239 | 12120 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 12121 | fi |
631ef239 AC |
12122 | |
12123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12124 | CFLAGS="${oldcflags}" |
12125 | fi | |
12126 | ||
12127 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
12128 | CWARNS="${CWARNS}-Wcast-align " | |
631ef239 AC |
12129 | { echo "$as_me:$LINENO: result: ok" >&5 |
12130 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12131 | else |
12132 | charybdis_cv_c_gcc_w_cast_align='' | |
631ef239 AC |
12133 | { echo "$as_me:$LINENO: result: no" >&5 |
12134 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12135 | fi |
12136 | else | |
631ef239 AC |
12137 | { echo "$as_me:$LINENO: result: no" >&5 |
12138 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12139 | fi |
12140 | ||
12141 | ||
631ef239 AC |
12142 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5 |
12143 | echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; } | |
212380e3 AC |
12144 | if test "${GCC-no}" = yes |
12145 | then | |
12146 | if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then | |
12147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12148 | else | |
12149 | ||
12150 | oldcflags="${CFLAGS-}" | |
12151 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
12152 | cat >conftest.$ac_ext <<_ACEOF | |
12153 | /* confdefs.h. */ | |
12154 | _ACEOF | |
12155 | cat confdefs.h >>conftest.$ac_ext | |
12156 | cat >>conftest.$ac_ext <<_ACEOF | |
12157 | /* end confdefs.h. */ | |
12158 | ||
12159 | #include <string.h> | |
12160 | #include <stdio.h> | |
12161 | int main(void); | |
12162 | ||
12163 | int | |
12164 | main () | |
12165 | { | |
12166 | ||
b1fc1658 | 12167 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12168 | |
12169 | ; | |
12170 | return 0; | |
12171 | } | |
12172 | _ACEOF | |
12173 | rm -f conftest.$ac_objext | |
631ef239 AC |
12174 | if { (ac_try="$ac_compile" |
12175 | case "(($ac_try" in | |
12176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12177 | *) ac_try_echo=$ac_try;; | |
12178 | esac | |
12179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12180 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12181 | ac_status=$? |
12182 | grep -v '^ *+' conftest.er1 >conftest.err | |
12183 | rm -f conftest.er1 | |
12184 | cat conftest.err >&5 | |
12185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12186 | (exit $ac_status); } && { |
12187 | test -z "$ac_c_werror_flag" || | |
12188 | test ! -s conftest.err | |
12189 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12190 | charybdis_cv_c_gcc_w_cast_qual=yes |
12191 | else | |
12192 | echo "$as_me: failed program was:" >&5 | |
12193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12194 | ||
631ef239 | 12195 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 12196 | fi |
631ef239 AC |
12197 | |
12198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12199 | CFLAGS="${oldcflags}" |
12200 | fi | |
12201 | ||
12202 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
12203 | CWARNS="${CWARNS}-Wcast-qual " | |
631ef239 AC |
12204 | { echo "$as_me:$LINENO: result: ok" >&5 |
12205 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12206 | else |
12207 | charybdis_cv_c_gcc_w_cast_qual='' | |
631ef239 AC |
12208 | { echo "$as_me:$LINENO: result: no" >&5 |
12209 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12210 | fi |
12211 | else | |
631ef239 AC |
12212 | { echo "$as_me:$LINENO: result: no" >&5 |
12213 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12214 | fi |
12215 | ||
12216 | ||
631ef239 AC |
12217 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
12218 | echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; } | |
212380e3 AC |
12219 | if test "${GCC-no}" = yes |
12220 | then | |
12221 | if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then | |
12222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12223 | else | |
12224 | ||
12225 | oldcflags="${CFLAGS-}" | |
12226 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
12227 | cat >conftest.$ac_ext <<_ACEOF | |
12228 | /* confdefs.h. */ | |
12229 | _ACEOF | |
12230 | cat confdefs.h >>conftest.$ac_ext | |
12231 | cat >>conftest.$ac_ext <<_ACEOF | |
12232 | /* end confdefs.h. */ | |
12233 | ||
12234 | #include <string.h> | |
12235 | #include <stdio.h> | |
12236 | int main(void); | |
12237 | ||
12238 | int | |
12239 | main () | |
12240 | { | |
12241 | ||
b1fc1658 | 12242 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12243 | |
12244 | ; | |
12245 | return 0; | |
12246 | } | |
12247 | _ACEOF | |
12248 | rm -f conftest.$ac_objext | |
631ef239 AC |
12249 | if { (ac_try="$ac_compile" |
12250 | case "(($ac_try" in | |
12251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12252 | *) ac_try_echo=$ac_try;; | |
12253 | esac | |
12254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12255 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12256 | ac_status=$? |
12257 | grep -v '^ *+' conftest.er1 >conftest.err | |
12258 | rm -f conftest.er1 | |
12259 | cat conftest.err >&5 | |
12260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12261 | (exit $ac_status); } && { |
12262 | test -z "$ac_c_werror_flag" || | |
12263 | test ! -s conftest.err | |
12264 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12265 | charybdis_cv_c_gcc_prototypes=yes |
12266 | else | |
12267 | echo "$as_me: failed program was:" >&5 | |
12268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12269 | ||
631ef239 | 12270 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 12271 | fi |
631ef239 AC |
12272 | |
12273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12274 | CFLAGS="${oldcflags}" |
12275 | fi | |
12276 | ||
12277 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
12278 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
631ef239 AC |
12279 | { echo "$as_me:$LINENO: result: ok" >&5 |
12280 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12281 | else |
12282 | charybdis_cv_c_gcc_prototypes='' | |
631ef239 AC |
12283 | { echo "$as_me:$LINENO: result: no" >&5 |
12284 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12285 | fi |
12286 | else | |
631ef239 AC |
12287 | { echo "$as_me:$LINENO: result: no" >&5 |
12288 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12289 | fi |
12290 | ||
12291 | ||
631ef239 AC |
12292 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5 |
12293 | echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; } | |
212380e3 AC |
12294 | if test "${GCC-no}" = yes |
12295 | then | |
12296 | if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then | |
12297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12298 | else | |
12299 | ||
12300 | oldcflags="${CFLAGS-}" | |
12301 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
12302 | cat >conftest.$ac_ext <<_ACEOF | |
12303 | /* confdefs.h. */ | |
12304 | _ACEOF | |
12305 | cat confdefs.h >>conftest.$ac_ext | |
12306 | cat >>conftest.$ac_ext <<_ACEOF | |
12307 | /* end confdefs.h. */ | |
12308 | ||
12309 | #include <string.h> | |
12310 | #include <stdio.h> | |
12311 | int main(void); | |
12312 | ||
12313 | int | |
12314 | main () | |
12315 | { | |
12316 | ||
b1fc1658 | 12317 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12318 | |
12319 | ; | |
12320 | return 0; | |
12321 | } | |
12322 | _ACEOF | |
12323 | rm -f conftest.$ac_objext | |
631ef239 AC |
12324 | if { (ac_try="$ac_compile" |
12325 | case "(($ac_try" in | |
12326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12327 | *) ac_try_echo=$ac_try;; | |
12328 | esac | |
12329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12330 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12331 | ac_status=$? |
12332 | grep -v '^ *+' conftest.er1 >conftest.err | |
12333 | rm -f conftest.er1 | |
12334 | cat conftest.err >&5 | |
12335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12336 | (exit $ac_status); } && { |
12337 | test -z "$ac_c_werror_flag" || | |
12338 | test ! -s conftest.err | |
12339 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12340 | charybdis_cv_c_gcc_parenthesis=yes |
12341 | else | |
12342 | echo "$as_me: failed program was:" >&5 | |
12343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12344 | ||
631ef239 | 12345 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 12346 | fi |
631ef239 AC |
12347 | |
12348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12349 | CFLAGS="${oldcflags}" |
12350 | fi | |
12351 | ||
12352 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
12353 | CWARNS="${CWARNS}-Wparenthesis " | |
631ef239 AC |
12354 | { echo "$as_me:$LINENO: result: ok" >&5 |
12355 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12356 | else |
12357 | charybdis_cv_c_gcc_parenthesis='' | |
631ef239 AC |
12358 | { echo "$as_me:$LINENO: result: no" >&5 |
12359 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12360 | fi |
12361 | else | |
631ef239 AC |
12362 | { echo "$as_me:$LINENO: result: no" >&5 |
12363 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12364 | fi |
12365 | ||
12366 | ||
631ef239 AC |
12367 | { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5 |
12368 | echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; } | |
212380e3 AC |
12369 | if test "${GCC-no}" = yes |
12370 | then | |
12371 | if test "${charybdis_cv_c_gcc_w+set}" = set; then | |
12372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12373 | else | |
12374 | ||
12375 | oldcflags="${CFLAGS-}" | |
12376 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
12377 | cat >conftest.$ac_ext <<_ACEOF | |
12378 | /* confdefs.h. */ | |
12379 | _ACEOF | |
12380 | cat confdefs.h >>conftest.$ac_ext | |
12381 | cat >>conftest.$ac_ext <<_ACEOF | |
12382 | /* end confdefs.h. */ | |
12383 | ||
12384 | #include <string.h> | |
12385 | #include <stdio.h> | |
12386 | int main(void); | |
12387 | ||
12388 | int | |
12389 | main () | |
12390 | { | |
12391 | ||
b1fc1658 | 12392 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12393 | |
12394 | ; | |
12395 | return 0; | |
12396 | } | |
12397 | _ACEOF | |
12398 | rm -f conftest.$ac_objext | |
631ef239 AC |
12399 | if { (ac_try="$ac_compile" |
12400 | case "(($ac_try" in | |
12401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12402 | *) ac_try_echo=$ac_try;; | |
12403 | esac | |
12404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12405 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12406 | ac_status=$? |
12407 | grep -v '^ *+' conftest.er1 >conftest.err | |
12408 | rm -f conftest.er1 | |
12409 | cat conftest.err >&5 | |
12410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12411 | (exit $ac_status); } && { |
12412 | test -z "$ac_c_werror_flag" || | |
12413 | test ! -s conftest.err | |
12414 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12415 | charybdis_cv_c_gcc_w=yes |
12416 | else | |
12417 | echo "$as_me: failed program was:" >&5 | |
12418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12419 | ||
631ef239 | 12420 | charybdis_cv_c_gcc_w=no |
212380e3 | 12421 | fi |
631ef239 AC |
12422 | |
12423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12424 | CFLAGS="${oldcflags}" |
12425 | fi | |
12426 | ||
12427 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
12428 | CWARNS="${CWARNS}-W -Wno-unused " | |
631ef239 AC |
12429 | { echo "$as_me:$LINENO: result: ok" >&5 |
12430 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12431 | else |
12432 | charybdis_cv_c_gcc_w='' | |
631ef239 AC |
12433 | { echo "$as_me:$LINENO: result: no" >&5 |
12434 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12435 | fi |
12436 | else | |
631ef239 AC |
12437 | { echo "$as_me:$LINENO: result: no" >&5 |
12438 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12439 | fi |
12440 | ||
12441 | ||
631ef239 AC |
12442 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5 |
12443 | echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; } | |
212380e3 AC |
12444 | if test "${GCC-no}" = yes |
12445 | then | |
12446 | if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then | |
12447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12448 | else | |
12449 | ||
12450 | oldcflags="${CFLAGS-}" | |
12451 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
12452 | cat >conftest.$ac_ext <<_ACEOF | |
12453 | /* confdefs.h. */ | |
12454 | _ACEOF | |
12455 | cat confdefs.h >>conftest.$ac_ext | |
12456 | cat >>conftest.$ac_ext <<_ACEOF | |
12457 | /* end confdefs.h. */ | |
12458 | ||
12459 | #include <string.h> | |
12460 | #include <stdio.h> | |
12461 | int main(void); | |
12462 | ||
12463 | int | |
12464 | main () | |
12465 | { | |
12466 | ||
b1fc1658 | 12467 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12468 | |
12469 | ; | |
12470 | return 0; | |
12471 | } | |
12472 | _ACEOF | |
12473 | rm -f conftest.$ac_objext | |
631ef239 AC |
12474 | if { (ac_try="$ac_compile" |
12475 | case "(($ac_try" in | |
12476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12477 | *) ac_try_echo=$ac_try;; | |
12478 | esac | |
12479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12480 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12481 | ac_status=$? |
12482 | grep -v '^ *+' conftest.er1 >conftest.err | |
12483 | rm -f conftest.er1 | |
12484 | cat conftest.err >&5 | |
12485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12486 | (exit $ac_status); } && { |
12487 | test -z "$ac_c_werror_flag" || | |
12488 | test ! -s conftest.err | |
12489 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12490 | charybdis_cv_c_gcc_w_extra=yes |
12491 | else | |
12492 | echo "$as_me: failed program was:" >&5 | |
12493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12494 | ||
631ef239 | 12495 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 12496 | fi |
631ef239 AC |
12497 | |
12498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12499 | CFLAGS="${oldcflags}" |
12500 | fi | |
12501 | ||
12502 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
12503 | CWARNS="${CWARNS}-Wextra " | |
631ef239 AC |
12504 | { echo "$as_me:$LINENO: result: ok" >&5 |
12505 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12506 | else |
12507 | charybdis_cv_c_gcc_w_extra='' | |
631ef239 AC |
12508 | { echo "$as_me:$LINENO: result: no" >&5 |
12509 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12510 | fi |
12511 | else | |
631ef239 AC |
12512 | { echo "$as_me:$LINENO: result: no" >&5 |
12513 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12514 | fi |
12515 | ||
12516 | ||
631ef239 AC |
12517 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5 |
12518 | echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; } | |
212380e3 AC |
12519 | if test "${GCC-no}" = yes |
12520 | then | |
12521 | if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then | |
12522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12523 | else | |
12524 | ||
12525 | oldcflags="${CFLAGS-}" | |
12526 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
12527 | cat >conftest.$ac_ext <<_ACEOF | |
12528 | /* confdefs.h. */ | |
12529 | _ACEOF | |
12530 | cat confdefs.h >>conftest.$ac_ext | |
12531 | cat >>conftest.$ac_ext <<_ACEOF | |
12532 | /* end confdefs.h. */ | |
12533 | ||
12534 | #include <string.h> | |
12535 | #include <stdio.h> | |
12536 | int main(void); | |
12537 | ||
12538 | int | |
12539 | main () | |
12540 | { | |
12541 | ||
b1fc1658 | 12542 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12543 | |
12544 | ; | |
12545 | return 0; | |
12546 | } | |
12547 | _ACEOF | |
12548 | rm -f conftest.$ac_objext | |
631ef239 AC |
12549 | if { (ac_try="$ac_compile" |
12550 | case "(($ac_try" in | |
12551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12552 | *) ac_try_echo=$ac_try;; | |
12553 | esac | |
12554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12555 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12556 | ac_status=$? |
12557 | grep -v '^ *+' conftest.er1 >conftest.err | |
12558 | rm -f conftest.er1 | |
12559 | cat conftest.err >&5 | |
12560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12561 | (exit $ac_status); } && { |
12562 | test -z "$ac_c_werror_flag" || | |
12563 | test ! -s conftest.err | |
12564 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12565 | charybdis_cv_c_gcc_w_shadow=yes |
12566 | else | |
12567 | echo "$as_me: failed program was:" >&5 | |
12568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12569 | ||
631ef239 | 12570 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 12571 | fi |
631ef239 AC |
12572 | |
12573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12574 | CFLAGS="${oldcflags}" |
12575 | fi | |
12576 | ||
12577 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
12578 | CWARNS="${CWARNS}-Wshadow " | |
631ef239 AC |
12579 | { echo "$as_me:$LINENO: result: ok" >&5 |
12580 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12581 | else |
12582 | charybdis_cv_c_gcc_w_shadow='' | |
631ef239 AC |
12583 | { echo "$as_me:$LINENO: result: no" >&5 |
12584 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12585 | fi |
12586 | else | |
631ef239 AC |
12587 | { echo "$as_me:$LINENO: result: no" >&5 |
12588 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12589 | fi |
12590 | ||
12591 | ||
631ef239 AC |
12592 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5 |
12593 | echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; } | |
212380e3 AC |
12594 | if test "${GCC-no}" = yes |
12595 | then | |
12596 | if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then | |
12597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12598 | else | |
12599 | ||
12600 | oldcflags="${CFLAGS-}" | |
12601 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
12602 | cat >conftest.$ac_ext <<_ACEOF | |
12603 | /* confdefs.h. */ | |
12604 | _ACEOF | |
12605 | cat confdefs.h >>conftest.$ac_ext | |
12606 | cat >>conftest.$ac_ext <<_ACEOF | |
12607 | /* end confdefs.h. */ | |
12608 | ||
12609 | #include <string.h> | |
12610 | #include <stdio.h> | |
12611 | int main(void); | |
12612 | ||
12613 | int | |
12614 | main () | |
12615 | { | |
12616 | ||
b1fc1658 | 12617 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12618 | |
12619 | ; | |
12620 | return 0; | |
12621 | } | |
12622 | _ACEOF | |
12623 | rm -f conftest.$ac_objext | |
631ef239 AC |
12624 | if { (ac_try="$ac_compile" |
12625 | case "(($ac_try" in | |
12626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12627 | *) ac_try_echo=$ac_try;; | |
12628 | esac | |
12629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12630 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12631 | ac_status=$? |
12632 | grep -v '^ *+' conftest.er1 >conftest.err | |
12633 | rm -f conftest.er1 | |
12634 | cat conftest.err >&5 | |
12635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12636 | (exit $ac_status); } && { |
12637 | test -z "$ac_c_werror_flag" || | |
12638 | test ! -s conftest.err | |
12639 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12640 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
12641 | else | |
12642 | echo "$as_me: failed program was:" >&5 | |
12643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12644 | ||
631ef239 | 12645 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 12646 | fi |
631ef239 AC |
12647 | |
12648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12649 | CFLAGS="${oldcflags}" |
12650 | fi | |
12651 | ||
12652 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
12653 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
631ef239 AC |
12654 | { echo "$as_me:$LINENO: result: ok" >&5 |
12655 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12656 | else |
12657 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
631ef239 AC |
12658 | { echo "$as_me:$LINENO: result: no" >&5 |
12659 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12660 | fi |
12661 | else | |
631ef239 AC |
12662 | { echo "$as_me:$LINENO: result: no" >&5 |
12663 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12664 | fi |
12665 | ||
12666 | ||
631ef239 AC |
12667 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5 |
12668 | echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; } | |
212380e3 AC |
12669 | if test "${GCC-no}" = yes |
12670 | then | |
12671 | if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then | |
12672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12673 | else | |
12674 | ||
12675 | oldcflags="${CFLAGS-}" | |
12676 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
12677 | cat >conftest.$ac_ext <<_ACEOF | |
12678 | /* confdefs.h. */ | |
12679 | _ACEOF | |
12680 | cat confdefs.h >>conftest.$ac_ext | |
12681 | cat >>conftest.$ac_ext <<_ACEOF | |
12682 | /* end confdefs.h. */ | |
12683 | ||
12684 | #include <string.h> | |
12685 | #include <stdio.h> | |
12686 | int main(void); | |
12687 | ||
12688 | int | |
12689 | main () | |
12690 | { | |
12691 | ||
b1fc1658 | 12692 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12693 | |
12694 | ; | |
12695 | return 0; | |
12696 | } | |
12697 | _ACEOF | |
12698 | rm -f conftest.$ac_objext | |
631ef239 AC |
12699 | if { (ac_try="$ac_compile" |
12700 | case "(($ac_try" in | |
12701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12702 | *) ac_try_echo=$ac_try;; | |
12703 | esac | |
12704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12705 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12706 | ac_status=$? |
12707 | grep -v '^ *+' conftest.er1 >conftest.err | |
12708 | rm -f conftest.er1 | |
12709 | cat conftest.err >&5 | |
12710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12711 | (exit $ac_status); } && { |
12712 | test -z "$ac_c_werror_flag" || | |
12713 | test ! -s conftest.err | |
12714 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12715 | charybdis_cv_c_gcc_w_undef=yes |
12716 | else | |
12717 | echo "$as_me: failed program was:" >&5 | |
12718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12719 | ||
631ef239 | 12720 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 12721 | fi |
631ef239 AC |
12722 | |
12723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12724 | CFLAGS="${oldcflags}" |
12725 | fi | |
12726 | ||
12727 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
12728 | CWARNS="${CWARNS}-Wundef " | |
631ef239 AC |
12729 | { echo "$as_me:$LINENO: result: ok" >&5 |
12730 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12731 | else |
12732 | charybdis_cv_c_gcc_w_undef='' | |
631ef239 AC |
12733 | { echo "$as_me:$LINENO: result: no" >&5 |
12734 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12735 | fi |
12736 | else | |
631ef239 AC |
12737 | { echo "$as_me:$LINENO: result: no" >&5 |
12738 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12739 | fi |
12740 | ||
12741 | ||
631ef239 AC |
12742 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5 |
12743 | echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; } | |
212380e3 AC |
12744 | if test "${GCC-no}" = yes |
12745 | then | |
12746 | if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then | |
12747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12748 | else | |
12749 | ||
12750 | oldcflags="${CFLAGS-}" | |
12751 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
12752 | cat >conftest.$ac_ext <<_ACEOF | |
12753 | /* confdefs.h. */ | |
12754 | _ACEOF | |
12755 | cat confdefs.h >>conftest.$ac_ext | |
12756 | cat >>conftest.$ac_ext <<_ACEOF | |
12757 | /* end confdefs.h. */ | |
12758 | ||
12759 | #include <string.h> | |
12760 | #include <stdio.h> | |
12761 | int main(void); | |
12762 | ||
12763 | int | |
12764 | main () | |
12765 | { | |
12766 | ||
b1fc1658 | 12767 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12768 | |
12769 | ; | |
12770 | return 0; | |
12771 | } | |
12772 | _ACEOF | |
12773 | rm -f conftest.$ac_objext | |
631ef239 AC |
12774 | if { (ac_try="$ac_compile" |
12775 | case "(($ac_try" in | |
12776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12777 | *) ac_try_echo=$ac_try;; | |
12778 | esac | |
12779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12780 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12781 | ac_status=$? |
12782 | grep -v '^ *+' conftest.er1 >conftest.err | |
12783 | rm -f conftest.er1 | |
12784 | cat conftest.err >&5 | |
12785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12786 | (exit $ac_status); } && { |
12787 | test -z "$ac_c_werror_flag" || | |
12788 | test ! -s conftest.err | |
12789 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12790 | charybdis_cv_c_gcc_w_packed=yes |
12791 | else | |
12792 | echo "$as_me: failed program was:" >&5 | |
12793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12794 | ||
631ef239 | 12795 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 12796 | fi |
631ef239 AC |
12797 | |
12798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12799 | CFLAGS="${oldcflags}" |
12800 | fi | |
12801 | ||
12802 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
12803 | CWARNS="${CWARNS}-Wpacked " | |
631ef239 AC |
12804 | { echo "$as_me:$LINENO: result: ok" >&5 |
12805 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12806 | else |
12807 | charybdis_cv_c_gcc_w_packed='' | |
631ef239 AC |
12808 | { echo "$as_me:$LINENO: result: no" >&5 |
12809 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12810 | fi |
12811 | else | |
631ef239 AC |
12812 | { echo "$as_me:$LINENO: result: no" >&5 |
12813 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12814 | fi |
12815 | ||
12816 | ||
631ef239 AC |
12817 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5 |
12818 | echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; } | |
212380e3 AC |
12819 | if test "${GCC-no}" = yes |
12820 | then | |
12821 | if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then | |
12822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12823 | else | |
12824 | ||
12825 | oldcflags="${CFLAGS-}" | |
12826 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
12827 | cat >conftest.$ac_ext <<_ACEOF | |
12828 | /* confdefs.h. */ | |
12829 | _ACEOF | |
12830 | cat confdefs.h >>conftest.$ac_ext | |
12831 | cat >>conftest.$ac_ext <<_ACEOF | |
12832 | /* end confdefs.h. */ | |
12833 | ||
12834 | #include <string.h> | |
12835 | #include <stdio.h> | |
12836 | int main(void); | |
12837 | ||
12838 | int | |
12839 | main () | |
12840 | { | |
12841 | ||
b1fc1658 | 12842 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12843 | |
12844 | ; | |
12845 | return 0; | |
12846 | } | |
12847 | _ACEOF | |
12848 | rm -f conftest.$ac_objext | |
631ef239 AC |
12849 | if { (ac_try="$ac_compile" |
12850 | case "(($ac_try" in | |
12851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12852 | *) ac_try_echo=$ac_try;; | |
12853 | esac | |
12854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12855 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12856 | ac_status=$? |
12857 | grep -v '^ *+' conftest.er1 >conftest.err | |
12858 | rm -f conftest.er1 | |
12859 | cat conftest.err >&5 | |
12860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12861 | (exit $ac_status); } && { |
12862 | test -z "$ac_c_werror_flag" || | |
12863 | test ! -s conftest.err | |
12864 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12865 | charybdis_cv_c_gcc_w_nested_externs=yes |
12866 | else | |
12867 | echo "$as_me: failed program was:" >&5 | |
12868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12869 | ||
631ef239 | 12870 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 12871 | fi |
631ef239 AC |
12872 | |
12873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12874 | CFLAGS="${oldcflags}" |
12875 | fi | |
12876 | ||
12877 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
12878 | CWARNS="${CWARNS}-Wnested-externs " | |
631ef239 AC |
12879 | { echo "$as_me:$LINENO: result: ok" >&5 |
12880 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12881 | else |
12882 | charybdis_cv_c_gcc_w_nested_externs='' | |
631ef239 AC |
12883 | { echo "$as_me:$LINENO: result: no" >&5 |
12884 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12885 | fi |
12886 | else | |
631ef239 AC |
12887 | { echo "$as_me:$LINENO: result: no" >&5 |
12888 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12889 | fi |
12890 | ||
12891 | ||
631ef239 AC |
12892 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5 |
12893 | echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6; } | |
212380e3 AC |
12894 | if test "${GCC-no}" = yes |
12895 | then | |
12896 | if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then | |
12897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12898 | else | |
12899 | ||
12900 | oldcflags="${CFLAGS-}" | |
12901 | CFLAGS="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror" | |
12902 | cat >conftest.$ac_ext <<_ACEOF | |
12903 | /* confdefs.h. */ | |
12904 | _ACEOF | |
12905 | cat confdefs.h >>conftest.$ac_ext | |
12906 | cat >>conftest.$ac_ext <<_ACEOF | |
12907 | /* end confdefs.h. */ | |
12908 | ||
12909 | #include <string.h> | |
12910 | #include <stdio.h> | |
12911 | int main(void); | |
12912 | ||
12913 | int | |
12914 | main () | |
12915 | { | |
12916 | ||
b1fc1658 | 12917 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12918 | |
12919 | ; | |
12920 | return 0; | |
12921 | } | |
12922 | _ACEOF | |
12923 | rm -f conftest.$ac_objext | |
631ef239 AC |
12924 | if { (ac_try="$ac_compile" |
12925 | case "(($ac_try" in | |
12926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12927 | *) ac_try_echo=$ac_try;; | |
12928 | esac | |
12929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12930 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12931 | ac_status=$? |
12932 | grep -v '^ *+' conftest.er1 >conftest.err | |
12933 | rm -f conftest.er1 | |
12934 | cat conftest.err >&5 | |
12935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12936 | (exit $ac_status); } && { |
12937 | test -z "$ac_c_werror_flag" || | |
12938 | test ! -s conftest.err | |
12939 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12940 | charybdis_cv_c_gcc_w_bad_function_cast=yes |
12941 | else | |
12942 | echo "$as_me: failed program was:" >&5 | |
12943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12944 | ||
631ef239 | 12945 | charybdis_cv_c_gcc_w_bad_function_cast=no |
212380e3 | 12946 | fi |
631ef239 AC |
12947 | |
12948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12949 | CFLAGS="${oldcflags}" |
12950 | fi | |
12951 | ||
12952 | if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes; then | |
12953 | CWARNS="${CWARNS}-Wbad-function-cast " | |
631ef239 AC |
12954 | { echo "$as_me:$LINENO: result: ok" >&5 |
12955 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12956 | else |
12957 | charybdis_cv_c_gcc_w_bad_function_cast='' | |
631ef239 AC |
12958 | { echo "$as_me:$LINENO: result: no" >&5 |
12959 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12960 | fi |
12961 | else | |
631ef239 AC |
12962 | { echo "$as_me:$LINENO: result: no" >&5 |
12963 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12964 | fi |
12965 | ||
12966 | ||
631ef239 AC |
12967 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
12968 | echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; } | |
212380e3 AC |
12969 | if test "${GCC-no}" = yes |
12970 | then | |
12971 | if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then | |
12972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12973 | else | |
12974 | ||
12975 | oldcflags="${CFLAGS-}" | |
12976 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
12977 | cat >conftest.$ac_ext <<_ACEOF | |
12978 | /* confdefs.h. */ | |
12979 | _ACEOF | |
12980 | cat confdefs.h >>conftest.$ac_ext | |
12981 | cat >>conftest.$ac_ext <<_ACEOF | |
12982 | /* end confdefs.h. */ | |
12983 | ||
12984 | #include <string.h> | |
12985 | #include <stdio.h> | |
12986 | int main(void); | |
12987 | ||
12988 | int | |
12989 | main () | |
12990 | { | |
12991 | ||
b1fc1658 | 12992 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12993 | |
12994 | ; | |
12995 | return 0; | |
12996 | } | |
12997 | _ACEOF | |
12998 | rm -f conftest.$ac_objext | |
631ef239 AC |
12999 | if { (ac_try="$ac_compile" |
13000 | case "(($ac_try" in | |
13001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13002 | *) ac_try_echo=$ac_try;; | |
13003 | esac | |
13004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13005 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13006 | ac_status=$? |
13007 | grep -v '^ *+' conftest.er1 >conftest.err | |
13008 | rm -f conftest.er1 | |
13009 | cat conftest.err >&5 | |
13010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13011 | (exit $ac_status); } && { |
13012 | test -z "$ac_c_werror_flag" || | |
13013 | test ! -s conftest.err | |
13014 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13015 | charybdis_cv_c_gcc_w_unused=yes |
13016 | else | |
13017 | echo "$as_me: failed program was:" >&5 | |
13018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13019 | ||
631ef239 | 13020 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 13021 | fi |
631ef239 AC |
13022 | |
13023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13024 | CFLAGS="${oldcflags}" |
13025 | fi | |
13026 | ||
13027 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
13028 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
631ef239 AC |
13029 | { echo "$as_me:$LINENO: result: ok" >&5 |
13030 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13031 | else |
13032 | charybdis_cv_c_gcc_w_unused='' | |
631ef239 AC |
13033 | { echo "$as_me:$LINENO: result: no" >&5 |
13034 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13035 | fi |
13036 | else | |
631ef239 AC |
13037 | { echo "$as_me:$LINENO: result: no" >&5 |
13038 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13039 | fi |
13040 | ||
13041 | ||
631ef239 AC |
13042 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5 |
13043 | echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; } | |
212380e3 AC |
13044 | if test "${GCC-no}" = yes |
13045 | then | |
13046 | if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then | |
13047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13048 | else | |
13049 | ||
13050 | oldcflags="${CFLAGS-}" | |
13051 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
13052 | cat >conftest.$ac_ext <<_ACEOF | |
13053 | /* confdefs.h. */ | |
13054 | _ACEOF | |
13055 | cat confdefs.h >>conftest.$ac_ext | |
13056 | cat >>conftest.$ac_ext <<_ACEOF | |
13057 | /* end confdefs.h. */ | |
13058 | ||
13059 | #include <string.h> | |
13060 | #include <stdio.h> | |
13061 | int main(void); | |
13062 | ||
13063 | int | |
13064 | main () | |
13065 | { | |
13066 | ||
b1fc1658 | 13067 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13068 | |
13069 | ; | |
13070 | return 0; | |
13071 | } | |
13072 | _ACEOF | |
13073 | rm -f conftest.$ac_objext | |
631ef239 AC |
13074 | if { (ac_try="$ac_compile" |
13075 | case "(($ac_try" in | |
13076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13077 | *) ac_try_echo=$ac_try;; | |
13078 | esac | |
13079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13080 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13081 | ac_status=$? |
13082 | grep -v '^ *+' conftest.er1 >conftest.err | |
13083 | rm -f conftest.er1 | |
13084 | cat conftest.err >&5 | |
13085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13086 | (exit $ac_status); } && { |
13087 | test -z "$ac_c_werror_flag" || | |
13088 | test ! -s conftest.err | |
13089 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13090 | charybdis_cv_c_gcc_w_redundant_decls=yes |
13091 | else | |
13092 | echo "$as_me: failed program was:" >&5 | |
13093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13094 | ||
631ef239 | 13095 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 13096 | fi |
631ef239 AC |
13097 | |
13098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13099 | CFLAGS="${oldcflags}" |
13100 | fi | |
13101 | ||
13102 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
13103 | CWARNS="${CWARNS}-Wredundant-decls " | |
631ef239 AC |
13104 | { echo "$as_me:$LINENO: result: ok" >&5 |
13105 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13106 | else |
13107 | charybdis_cv_c_gcc_w_redundant_decls='' | |
631ef239 AC |
13108 | { echo "$as_me:$LINENO: result: no" >&5 |
13109 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13110 | fi |
13111 | else | |
631ef239 AC |
13112 | { echo "$as_me:$LINENO: result: no" >&5 |
13113 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13114 | fi |
13115 | ||
13116 | ||
631ef239 AC |
13117 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5 |
13118 | echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; } | |
212380e3 AC |
13119 | if test "${GCC-no}" = yes |
13120 | then | |
13121 | if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then | |
13122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13123 | else | |
13124 | ||
13125 | oldcflags="${CFLAGS-}" | |
13126 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
13127 | cat >conftest.$ac_ext <<_ACEOF | |
13128 | /* confdefs.h. */ | |
13129 | _ACEOF | |
13130 | cat confdefs.h >>conftest.$ac_ext | |
13131 | cat >>conftest.$ac_ext <<_ACEOF | |
13132 | /* end confdefs.h. */ | |
13133 | ||
13134 | #include <string.h> | |
13135 | #include <stdio.h> | |
13136 | int main(void); | |
13137 | ||
13138 | int | |
13139 | main () | |
13140 | { | |
13141 | ||
b1fc1658 | 13142 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13143 | |
13144 | ; | |
13145 | return 0; | |
13146 | } | |
13147 | _ACEOF | |
13148 | rm -f conftest.$ac_objext | |
631ef239 AC |
13149 | if { (ac_try="$ac_compile" |
13150 | case "(($ac_try" in | |
13151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13152 | *) ac_try_echo=$ac_try;; | |
13153 | esac | |
13154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13155 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13156 | ac_status=$? |
13157 | grep -v '^ *+' conftest.er1 >conftest.err | |
13158 | rm -f conftest.er1 | |
13159 | cat conftest.err >&5 | |
13160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13161 | (exit $ac_status); } && { |
13162 | test -z "$ac_c_werror_flag" || | |
13163 | test ! -s conftest.err | |
13164 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13165 | charybdis_cv_c_gcc_w_float_equal=yes |
13166 | else | |
13167 | echo "$as_me: failed program was:" >&5 | |
13168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13169 | ||
631ef239 | 13170 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 13171 | fi |
631ef239 AC |
13172 | |
13173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13174 | CFLAGS="${oldcflags}" |
13175 | fi | |
13176 | ||
13177 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
13178 | CWARNS="${CWARNS}-Wfloat-equal " | |
631ef239 AC |
13179 | { echo "$as_me:$LINENO: result: ok" >&5 |
13180 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13181 | else |
13182 | charybdis_cv_c_gcc_w_float_equal='' | |
631ef239 AC |
13183 | { echo "$as_me:$LINENO: result: no" >&5 |
13184 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13185 | fi |
13186 | else | |
631ef239 AC |
13187 | { echo "$as_me:$LINENO: result: no" >&5 |
13188 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13189 | fi |
13190 | ||
13191 | ||
631ef239 AC |
13192 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat=2" >&5 |
13193 | echo $ECHO_N "checking GCC flag(s) -Wformat=2... $ECHO_C" >&6; } | |
212380e3 AC |
13194 | if test "${GCC-no}" = yes |
13195 | then | |
13196 | if test "${charybdis_cv_c_gcc_w_format+set}" = set; then | |
13197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13198 | else | |
13199 | ||
13200 | oldcflags="${CFLAGS-}" | |
13201 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat=2 -Werror" | |
13202 | cat >conftest.$ac_ext <<_ACEOF | |
13203 | /* confdefs.h. */ | |
13204 | _ACEOF | |
13205 | cat confdefs.h >>conftest.$ac_ext | |
13206 | cat >>conftest.$ac_ext <<_ACEOF | |
13207 | /* end confdefs.h. */ | |
13208 | ||
13209 | #include <string.h> | |
13210 | #include <stdio.h> | |
13211 | int main(void); | |
13212 | ||
13213 | int | |
13214 | main () | |
13215 | { | |
13216 | ||
b1fc1658 | 13217 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13218 | |
13219 | ; | |
13220 | return 0; | |
13221 | } | |
13222 | _ACEOF | |
13223 | rm -f conftest.$ac_objext | |
631ef239 AC |
13224 | if { (ac_try="$ac_compile" |
13225 | case "(($ac_try" in | |
13226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13227 | *) ac_try_echo=$ac_try;; | |
13228 | esac | |
13229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13230 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13231 | ac_status=$? |
13232 | grep -v '^ *+' conftest.er1 >conftest.err | |
13233 | rm -f conftest.er1 | |
13234 | cat conftest.err >&5 | |
13235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13236 | (exit $ac_status); } && { |
13237 | test -z "$ac_c_werror_flag" || | |
13238 | test ! -s conftest.err | |
13239 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13240 | charybdis_cv_c_gcc_w_format=yes |
13241 | else | |
13242 | echo "$as_me: failed program was:" >&5 | |
13243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13244 | ||
631ef239 | 13245 | charybdis_cv_c_gcc_w_format=no |
212380e3 | 13246 | fi |
631ef239 AC |
13247 | |
13248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13249 | CFLAGS="${oldcflags}" |
13250 | fi | |
13251 | ||
13252 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
13253 | CWARNS="${CWARNS}-Wformat=2 " | |
631ef239 AC |
13254 | { echo "$as_me:$LINENO: result: ok" >&5 |
13255 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13256 | else |
13257 | charybdis_cv_c_gcc_w_format='' | |
631ef239 AC |
13258 | { echo "$as_me:$LINENO: result: no" >&5 |
13259 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13260 | fi |
13261 | else | |
631ef239 AC |
13262 | { echo "$as_me:$LINENO: result: no" >&5 |
13263 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13264 | fi |
13265 | ||
13266 | ||
631ef239 AC |
13267 | { echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5 |
13268 | echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6; } | |
212380e3 AC |
13269 | if test "${GCC-no}" = yes |
13270 | then | |
13271 | if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then | |
13272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13273 | else | |
13274 | ||
13275 | oldcflags="${CFLAGS-}" | |
13276 | CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror" | |
13277 | cat >conftest.$ac_ext <<_ACEOF | |
13278 | /* confdefs.h. */ | |
13279 | _ACEOF | |
13280 | cat confdefs.h >>conftest.$ac_ext | |
13281 | cat >>conftest.$ac_ext <<_ACEOF | |
13282 | /* end confdefs.h. */ | |
13283 | ||
13284 | #include <string.h> | |
13285 | #include <stdio.h> | |
13286 | int main(void); | |
13287 | ||
13288 | int | |
13289 | main () | |
13290 | { | |
13291 | ||
b1fc1658 | 13292 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13293 | |
13294 | ; | |
13295 | return 0; | |
13296 | } | |
13297 | _ACEOF | |
13298 | rm -f conftest.$ac_objext | |
631ef239 AC |
13299 | if { (ac_try="$ac_compile" |
13300 | case "(($ac_try" in | |
13301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13302 | *) ac_try_echo=$ac_try;; | |
13303 | esac | |
13304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13305 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13306 | ac_status=$? |
13307 | grep -v '^ *+' conftest.er1 >conftest.err | |
13308 | rm -f conftest.er1 | |
13309 | cat conftest.err >&5 | |
13310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13311 | (exit $ac_status); } && { |
13312 | test -z "$ac_c_werror_flag" || | |
13313 | test ! -s conftest.err | |
13314 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13315 | charybdis_cv_c_gcc_pedantic=yes |
13316 | else | |
13317 | echo "$as_me: failed program was:" >&5 | |
13318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13319 | ||
631ef239 | 13320 | charybdis_cv_c_gcc_pedantic=no |
212380e3 | 13321 | fi |
631ef239 AC |
13322 | |
13323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13324 | CFLAGS="${oldcflags}" |
13325 | fi | |
13326 | ||
13327 | if test "x$charybdis_cv_c_gcc_pedantic" = xyes; then | |
13328 | CWARNS="${CWARNS}-pedantic " | |
631ef239 AC |
13329 | { echo "$as_me:$LINENO: result: ok" >&5 |
13330 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13331 | else |
13332 | charybdis_cv_c_gcc_pedantic='' | |
631ef239 AC |
13333 | { echo "$as_me:$LINENO: result: no" >&5 |
13334 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13335 | fi |
13336 | else | |
631ef239 AC |
13337 | { echo "$as_me:$LINENO: result: no" >&5 |
13338 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13339 | fi |
13340 | ||
13341 | ||
13342 | IRC_CFLAGS="$CFLAGS" | |
13343 | ||
631ef239 AC |
13344 | fi |
13345 | ||
212380e3 AC |
13346 | |
13347 | if test "$shared_modules" = no; then | |
13348 | DYNLINK_C="" | |
13349 | MOD_TARGET="libmodules.a" | |
13350 | MODULES_LIBS="../modules/libmodules.a" | |
13351 | SEDOBJ="" | |
13352 | ||
13353 | cat >>confdefs.h <<\_ACEOF | |
13354 | #define STATIC_MODULES 1 | |
13355 | _ACEOF | |
13356 | ||
13357 | { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5 | |
13358 | echo "$as_me: WARNING: shared module support has been disabled!" >&2;} | |
13359 | fi | |
13360 | ||
13361 | if test "$shared_modules" = yes; then | |
13362 | ||
631ef239 AC |
13363 | { echo "$as_me:$LINENO: checking for nlist" >&5 |
13364 | echo $ECHO_N "checking for nlist... $ECHO_C" >&6; } | |
212380e3 AC |
13365 | if test "${ac_cv_func_nlist+set}" = set; then |
13366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13367 | else | |
13368 | cat >conftest.$ac_ext <<_ACEOF | |
13369 | /* confdefs.h. */ | |
13370 | _ACEOF | |
13371 | cat confdefs.h >>conftest.$ac_ext | |
13372 | cat >>conftest.$ac_ext <<_ACEOF | |
13373 | /* end confdefs.h. */ | |
13374 | /* Define nlist to an innocuous variant, in case <limits.h> declares nlist. | |
13375 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13376 | #define nlist innocuous_nlist | |
13377 | ||
13378 | /* System header to define __stub macros and hopefully few prototypes, | |
13379 | which can conflict with char nlist (); below. | |
13380 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13381 | <limits.h> exists even on freestanding compilers. */ | |
13382 | ||
13383 | #ifdef __STDC__ | |
13384 | # include <limits.h> | |
13385 | #else | |
13386 | # include <assert.h> | |
13387 | #endif | |
13388 | ||
13389 | #undef nlist | |
13390 | ||
631ef239 AC |
13391 | /* Override any GCC internal prototype to avoid an error. |
13392 | Use char because int might match the return type of a GCC | |
13393 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
13394 | #ifdef __cplusplus |
13395 | extern "C" | |
212380e3 | 13396 | #endif |
212380e3 AC |
13397 | char nlist (); |
13398 | /* The GNU C library defines this for functions which it implements | |
13399 | to always fail with ENOSYS. Some functions are actually named | |
13400 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 13401 | #if defined __stub_nlist || defined __stub___nlist |
212380e3 | 13402 | choke me |
212380e3 AC |
13403 | #endif |
13404 | ||
13405 | int | |
13406 | main () | |
13407 | { | |
631ef239 | 13408 | return nlist (); |
212380e3 AC |
13409 | ; |
13410 | return 0; | |
13411 | } | |
13412 | _ACEOF | |
13413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
13414 | if { (ac_try="$ac_link" |
13415 | case "(($ac_try" in | |
13416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13417 | *) ac_try_echo=$ac_try;; | |
13418 | esac | |
13419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13420 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
13421 | ac_status=$? |
13422 | grep -v '^ *+' conftest.er1 >conftest.err | |
13423 | rm -f conftest.er1 | |
13424 | cat conftest.err >&5 | |
13425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13426 | (exit $ac_status); } && { |
13427 | test -z "$ac_c_werror_flag" || | |
13428 | test ! -s conftest.err | |
13429 | } && test -s conftest$ac_exeext && | |
13430 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
13431 | ac_cv_func_nlist=yes |
13432 | else | |
13433 | echo "$as_me: failed program was:" >&5 | |
13434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13435 | ||
631ef239 | 13436 | ac_cv_func_nlist=no |
212380e3 | 13437 | fi |
631ef239 AC |
13438 | |
13439 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
13440 | conftest$ac_exeext conftest.$ac_ext |
13441 | fi | |
631ef239 AC |
13442 | { echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5 |
13443 | echo "${ECHO_T}$ac_cv_func_nlist" >&6; } | |
212380e3 AC |
13444 | if test $ac_cv_func_nlist = yes; then |
13445 | : | |
13446 | else | |
631ef239 AC |
13447 | { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5 |
13448 | echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; } | |
212380e3 AC |
13449 | if test "${ac_cv_lib_dl_nlist+set}" = set; then |
13450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13451 | else | |
13452 | ac_check_lib_save_LIBS=$LIBS | |
13453 | LIBS="-ldl $LIBS" | |
13454 | cat >conftest.$ac_ext <<_ACEOF | |
13455 | /* confdefs.h. */ | |
13456 | _ACEOF | |
13457 | cat confdefs.h >>conftest.$ac_ext | |
13458 | cat >>conftest.$ac_ext <<_ACEOF | |
13459 | /* end confdefs.h. */ | |
13460 | ||
631ef239 AC |
13461 | /* Override any GCC internal prototype to avoid an error. |
13462 | Use char because int might match the return type of a GCC | |
13463 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
13464 | #ifdef __cplusplus |
13465 | extern "C" | |
13466 | #endif | |
212380e3 AC |
13467 | char nlist (); |
13468 | int | |
13469 | main () | |
13470 | { | |
631ef239 | 13471 | return nlist (); |
212380e3 AC |
13472 | ; |
13473 | return 0; | |
13474 | } | |
13475 | _ACEOF | |
13476 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
13477 | if { (ac_try="$ac_link" |
13478 | case "(($ac_try" in | |
13479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13480 | *) ac_try_echo=$ac_try;; | |
13481 | esac | |
13482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13483 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
13484 | ac_status=$? |
13485 | grep -v '^ *+' conftest.er1 >conftest.err | |
13486 | rm -f conftest.er1 | |
13487 | cat conftest.err >&5 | |
13488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13489 | (exit $ac_status); } && { |
13490 | test -z "$ac_c_werror_flag" || | |
13491 | test ! -s conftest.err | |
13492 | } && test -s conftest$ac_exeext && | |
13493 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
13494 | ac_cv_lib_dl_nlist=yes |
13495 | else | |
13496 | echo "$as_me: failed program was:" >&5 | |
13497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13498 | ||
631ef239 | 13499 | ac_cv_lib_dl_nlist=no |
212380e3 | 13500 | fi |
631ef239 AC |
13501 | |
13502 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
13503 | conftest$ac_exeext conftest.$ac_ext |
13504 | LIBS=$ac_check_lib_save_LIBS | |
13505 | fi | |
631ef239 AC |
13506 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5 |
13507 | echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; } | |
212380e3 AC |
13508 | if test $ac_cv_lib_dl_nlist = yes; then |
13509 | nlist_lib="-ldl" | |
13510 | else | |
631ef239 AC |
13511 | { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5 |
13512 | echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; } | |
212380e3 AC |
13513 | if test "${ac_cv_lib_elf_nlist+set}" = set; then |
13514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13515 | else | |
13516 | ac_check_lib_save_LIBS=$LIBS | |
13517 | LIBS="-lelf $LIBS" | |
13518 | cat >conftest.$ac_ext <<_ACEOF | |
13519 | /* confdefs.h. */ | |
13520 | _ACEOF | |
13521 | cat confdefs.h >>conftest.$ac_ext | |
13522 | cat >>conftest.$ac_ext <<_ACEOF | |
13523 | /* end confdefs.h. */ | |
13524 | ||
631ef239 AC |
13525 | /* Override any GCC internal prototype to avoid an error. |
13526 | Use char because int might match the return type of a GCC | |
13527 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
13528 | #ifdef __cplusplus |
13529 | extern "C" | |
13530 | #endif | |
212380e3 AC |
13531 | char nlist (); |
13532 | int | |
13533 | main () | |
13534 | { | |
631ef239 | 13535 | return nlist (); |
212380e3 AC |
13536 | ; |
13537 | return 0; | |
13538 | } | |
13539 | _ACEOF | |
13540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
13541 | if { (ac_try="$ac_link" |
13542 | case "(($ac_try" in | |
13543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13544 | *) ac_try_echo=$ac_try;; | |
13545 | esac | |
13546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13547 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
13548 | ac_status=$? |
13549 | grep -v '^ *+' conftest.er1 >conftest.err | |
13550 | rm -f conftest.er1 | |
13551 | cat conftest.err >&5 | |
13552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13553 | (exit $ac_status); } && { |
13554 | test -z "$ac_c_werror_flag" || | |
13555 | test ! -s conftest.err | |
13556 | } && test -s conftest$ac_exeext && | |
13557 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
13558 | ac_cv_lib_elf_nlist=yes |
13559 | else | |
13560 | echo "$as_me: failed program was:" >&5 | |
13561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13562 | ||
631ef239 | 13563 | ac_cv_lib_elf_nlist=no |
212380e3 | 13564 | fi |
631ef239 AC |
13565 | |
13566 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
13567 | conftest$ac_exeext conftest.$ac_ext |
13568 | LIBS=$ac_check_lib_save_LIBS | |
13569 | fi | |
631ef239 AC |
13570 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5 |
13571 | echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; } | |
212380e3 AC |
13572 | if test $ac_cv_lib_elf_nlist = yes; then |
13573 | nlist_lib="-lelf" | |
13574 | fi | |
13575 | ||
13576 | ||
13577 | fi | |
13578 | ||
13579 | ||
13580 | fi | |
13581 | ||
13582 | ||
13583 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then | |
631ef239 AC |
13584 | { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5 |
13585 | echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13586 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then |
13587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13588 | fi | |
631ef239 AC |
13589 | { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5 |
13590 | echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; } | |
212380e3 AC |
13591 | else |
13592 | # Is the header compilable? | |
631ef239 AC |
13593 | { echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5 |
13594 | echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
13595 | cat >conftest.$ac_ext <<_ACEOF |
13596 | /* confdefs.h. */ | |
13597 | _ACEOF | |
13598 | cat confdefs.h >>conftest.$ac_ext | |
13599 | cat >>conftest.$ac_ext <<_ACEOF | |
13600 | /* end confdefs.h. */ | |
13601 | $ac_includes_default | |
13602 | #include <libelf/nlist.h> | |
13603 | _ACEOF | |
13604 | rm -f conftest.$ac_objext | |
631ef239 AC |
13605 | if { (ac_try="$ac_compile" |
13606 | case "(($ac_try" in | |
13607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13608 | *) ac_try_echo=$ac_try;; | |
13609 | esac | |
13610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13611 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13612 | ac_status=$? |
13613 | grep -v '^ *+' conftest.er1 >conftest.err | |
13614 | rm -f conftest.er1 | |
13615 | cat conftest.err >&5 | |
13616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13617 | (exit $ac_status); } && { |
13618 | test -z "$ac_c_werror_flag" || | |
13619 | test ! -s conftest.err | |
13620 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13621 | ac_header_compiler=yes |
13622 | else | |
13623 | echo "$as_me: failed program was:" >&5 | |
13624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13625 | ||
631ef239 | 13626 | ac_header_compiler=no |
212380e3 | 13627 | fi |
631ef239 AC |
13628 | |
13629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13630 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13631 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
13632 | |
13633 | # Is the header present? | |
631ef239 AC |
13634 | { echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5 |
13635 | echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
13636 | cat >conftest.$ac_ext <<_ACEOF |
13637 | /* confdefs.h. */ | |
13638 | _ACEOF | |
13639 | cat confdefs.h >>conftest.$ac_ext | |
13640 | cat >>conftest.$ac_ext <<_ACEOF | |
13641 | /* end confdefs.h. */ | |
13642 | #include <libelf/nlist.h> | |
13643 | _ACEOF | |
631ef239 AC |
13644 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13645 | case "(($ac_try" in | |
13646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13647 | *) ac_try_echo=$ac_try;; | |
13648 | esac | |
13649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13650 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
13651 | ac_status=$? |
13652 | grep -v '^ *+' conftest.er1 >conftest.err | |
13653 | rm -f conftest.er1 | |
13654 | cat conftest.err >&5 | |
13655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13656 | (exit $ac_status); } >/dev/null && { |
13657 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13658 | test ! -s conftest.err | |
13659 | }; then | |
212380e3 AC |
13660 | ac_header_preproc=yes |
13661 | else | |
13662 | echo "$as_me: failed program was:" >&5 | |
13663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13664 | ||
13665 | ac_header_preproc=no | |
13666 | fi | |
631ef239 | 13667 | |
212380e3 | 13668 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
13669 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13670 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
13671 | |
13672 | # So? What about this header? | |
13673 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13674 | yes:no: ) | |
13675 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13676 | echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13677 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5 | |
13678 | echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;} | |
13679 | ac_header_preproc=yes | |
13680 | ;; | |
13681 | no:yes:* ) | |
13682 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5 | |
13683 | echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;} | |
13684 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5 | |
13685 | echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;} | |
13686 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5 | |
13687 | echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;} | |
13688 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13689 | echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13690 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5 | |
13691 | echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;} | |
13692 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5 | |
13693 | echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 13694 | |
212380e3 AC |
13695 | ;; |
13696 | esac | |
631ef239 AC |
13697 | { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5 |
13698 | echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13699 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then |
13700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13701 | else | |
13702 | ac_cv_header_libelf_nlist_h=$ac_header_preproc | |
13703 | fi | |
631ef239 AC |
13704 | { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5 |
13705 | echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; } | |
212380e3 AC |
13706 | |
13707 | fi | |
13708 | if test $ac_cv_header_libelf_nlist_h = yes; then | |
13709 | nlist_h="libelf/nlist.h" | |
13710 | fi | |
13711 | ||
13712 | ||
13713 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then | |
631ef239 AC |
13714 | { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5 |
13715 | echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13716 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then |
13717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13718 | fi | |
631ef239 AC |
13719 | { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5 |
13720 | echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; } | |
212380e3 AC |
13721 | else |
13722 | # Is the header compilable? | |
631ef239 AC |
13723 | { echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5 |
13724 | echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
13725 | cat >conftest.$ac_ext <<_ACEOF |
13726 | /* confdefs.h. */ | |
13727 | _ACEOF | |
13728 | cat confdefs.h >>conftest.$ac_ext | |
13729 | cat >>conftest.$ac_ext <<_ACEOF | |
13730 | /* end confdefs.h. */ | |
13731 | $ac_includes_default | |
13732 | #include <elf/nlist.h> | |
13733 | _ACEOF | |
13734 | rm -f conftest.$ac_objext | |
631ef239 AC |
13735 | if { (ac_try="$ac_compile" |
13736 | case "(($ac_try" in | |
13737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13738 | *) ac_try_echo=$ac_try;; | |
13739 | esac | |
13740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13741 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13742 | ac_status=$? |
13743 | grep -v '^ *+' conftest.er1 >conftest.err | |
13744 | rm -f conftest.er1 | |
13745 | cat conftest.err >&5 | |
13746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13747 | (exit $ac_status); } && { |
13748 | test -z "$ac_c_werror_flag" || | |
13749 | test ! -s conftest.err | |
13750 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13751 | ac_header_compiler=yes |
13752 | else | |
13753 | echo "$as_me: failed program was:" >&5 | |
13754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13755 | ||
631ef239 | 13756 | ac_header_compiler=no |
212380e3 | 13757 | fi |
631ef239 AC |
13758 | |
13759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13760 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13761 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
13762 | |
13763 | # Is the header present? | |
631ef239 AC |
13764 | { echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5 |
13765 | echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
13766 | cat >conftest.$ac_ext <<_ACEOF |
13767 | /* confdefs.h. */ | |
13768 | _ACEOF | |
13769 | cat confdefs.h >>conftest.$ac_ext | |
13770 | cat >>conftest.$ac_ext <<_ACEOF | |
13771 | /* end confdefs.h. */ | |
13772 | #include <elf/nlist.h> | |
13773 | _ACEOF | |
631ef239 AC |
13774 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13775 | case "(($ac_try" in | |
13776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13777 | *) ac_try_echo=$ac_try;; | |
13778 | esac | |
13779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13780 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
13781 | ac_status=$? |
13782 | grep -v '^ *+' conftest.er1 >conftest.err | |
13783 | rm -f conftest.er1 | |
13784 | cat conftest.err >&5 | |
13785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13786 | (exit $ac_status); } >/dev/null && { |
13787 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13788 | test ! -s conftest.err | |
13789 | }; then | |
212380e3 AC |
13790 | ac_header_preproc=yes |
13791 | else | |
13792 | echo "$as_me: failed program was:" >&5 | |
13793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13794 | ||
13795 | ac_header_preproc=no | |
13796 | fi | |
631ef239 | 13797 | |
212380e3 | 13798 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
13799 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13800 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
13801 | |
13802 | # So? What about this header? | |
13803 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13804 | yes:no: ) | |
13805 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13806 | echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13807 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5 | |
13808 | echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;} | |
13809 | ac_header_preproc=yes | |
13810 | ;; | |
13811 | no:yes:* ) | |
13812 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5 | |
13813 | echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;} | |
13814 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5 | |
13815 | echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;} | |
13816 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5 | |
13817 | echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;} | |
13818 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13819 | echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13820 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5 | |
13821 | echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;} | |
13822 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5 | |
13823 | echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 13824 | |
212380e3 AC |
13825 | ;; |
13826 | esac | |
631ef239 AC |
13827 | { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5 |
13828 | echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13829 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then |
13830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13831 | else | |
13832 | ac_cv_header_elf_nlist_h=$ac_header_preproc | |
13833 | fi | |
631ef239 AC |
13834 | { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5 |
13835 | echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; } | |
212380e3 AC |
13836 | |
13837 | fi | |
13838 | if test $ac_cv_header_elf_nlist_h = yes; then | |
13839 | nlist_h="elf/nlist.h" | |
13840 | fi | |
13841 | ||
13842 | ||
13843 | if test "${ac_cv_header_nlist_h+set}" = set; then | |
631ef239 AC |
13844 | { echo "$as_me:$LINENO: checking for nlist.h" >&5 |
13845 | echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13846 | if test "${ac_cv_header_nlist_h+set}" = set; then |
13847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13848 | fi | |
631ef239 AC |
13849 | { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5 |
13850 | echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; } | |
212380e3 AC |
13851 | else |
13852 | # Is the header compilable? | |
631ef239 AC |
13853 | { echo "$as_me:$LINENO: checking nlist.h usability" >&5 |
13854 | echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
13855 | cat >conftest.$ac_ext <<_ACEOF |
13856 | /* confdefs.h. */ | |
13857 | _ACEOF | |
13858 | cat confdefs.h >>conftest.$ac_ext | |
13859 | cat >>conftest.$ac_ext <<_ACEOF | |
13860 | /* end confdefs.h. */ | |
13861 | $ac_includes_default | |
13862 | #include <nlist.h> | |
13863 | _ACEOF | |
13864 | rm -f conftest.$ac_objext | |
631ef239 AC |
13865 | if { (ac_try="$ac_compile" |
13866 | case "(($ac_try" in | |
13867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13868 | *) ac_try_echo=$ac_try;; | |
13869 | esac | |
13870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13871 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13872 | ac_status=$? |
13873 | grep -v '^ *+' conftest.er1 >conftest.err | |
13874 | rm -f conftest.er1 | |
13875 | cat conftest.err >&5 | |
13876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13877 | (exit $ac_status); } && { |
13878 | test -z "$ac_c_werror_flag" || | |
13879 | test ! -s conftest.err | |
13880 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13881 | ac_header_compiler=yes |
13882 | else | |
13883 | echo "$as_me: failed program was:" >&5 | |
13884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13885 | ||
631ef239 | 13886 | ac_header_compiler=no |
212380e3 | 13887 | fi |
631ef239 AC |
13888 | |
13889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13890 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13891 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
13892 | |
13893 | # Is the header present? | |
631ef239 AC |
13894 | { echo "$as_me:$LINENO: checking nlist.h presence" >&5 |
13895 | echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
13896 | cat >conftest.$ac_ext <<_ACEOF |
13897 | /* confdefs.h. */ | |
13898 | _ACEOF | |
13899 | cat confdefs.h >>conftest.$ac_ext | |
13900 | cat >>conftest.$ac_ext <<_ACEOF | |
13901 | /* end confdefs.h. */ | |
13902 | #include <nlist.h> | |
13903 | _ACEOF | |
631ef239 AC |
13904 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13905 | case "(($ac_try" in | |
13906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13907 | *) ac_try_echo=$ac_try;; | |
13908 | esac | |
13909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13910 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
13911 | ac_status=$? |
13912 | grep -v '^ *+' conftest.er1 >conftest.err | |
13913 | rm -f conftest.er1 | |
13914 | cat conftest.err >&5 | |
13915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13916 | (exit $ac_status); } >/dev/null && { |
13917 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13918 | test ! -s conftest.err | |
13919 | }; then | |
212380e3 AC |
13920 | ac_header_preproc=yes |
13921 | else | |
13922 | echo "$as_me: failed program was:" >&5 | |
13923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13924 | ||
13925 | ac_header_preproc=no | |
13926 | fi | |
631ef239 | 13927 | |
212380e3 | 13928 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
13929 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13930 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
13931 | |
13932 | # So? What about this header? | |
13933 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13934 | yes:no: ) | |
13935 | { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13936 | echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13937 | { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5 | |
13938 | echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;} | |
13939 | ac_header_preproc=yes | |
13940 | ;; | |
13941 | no:yes:* ) | |
13942 | { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5 | |
13943 | echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;} | |
13944 | { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5 | |
13945 | echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;} | |
13946 | { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5 | |
13947 | echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;} | |
13948 | { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13949 | echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13950 | { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5 | |
13951 | echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;} | |
13952 | { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5 | |
13953 | echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 13954 | |
212380e3 AC |
13955 | ;; |
13956 | esac | |
631ef239 AC |
13957 | { echo "$as_me:$LINENO: checking for nlist.h" >&5 |
13958 | echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13959 | if test "${ac_cv_header_nlist_h+set}" = set; then |
13960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13961 | else | |
13962 | ac_cv_header_nlist_h=$ac_header_preproc | |
13963 | fi | |
631ef239 AC |
13964 | { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5 |
13965 | echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; } | |
212380e3 AC |
13966 | |
13967 | fi | |
13968 | if test $ac_cv_header_nlist_h = yes; then | |
13969 | nlist_h="nlist.h" | |
13970 | fi | |
13971 | ||
13972 | ||
13973 | if test x"$nlist_h" = "x"; then | |
13974 | ||
13975 | cat >>confdefs.h <<_ACEOF | |
13976 | #define SYMBOL_PREFIX "" | |
13977 | _ACEOF | |
13978 | ||
13979 | else | |
631ef239 AC |
13980 | { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5 |
13981 | echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; } | |
212380e3 AC |
13982 | if test "${symbol_underscores+set}" = set; then |
13983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13984 | else | |
13985 | ||
13986 | cat << EOF > conftest.c | |
13987 | #include <$nlist_h> | |
13988 | #include <stdio.h> | |
13989 | #include <stdlib.h> | |
13990 | void _modinit(void); | |
13991 | int main(int argc, char *argv[]) { | |
13992 | int i; | |
13993 | struct nlist nl[5]; | |
13994 | ||
13995 | /* fill the names in this way, so it'll work almost everywhere */ | |
13996 | nl[0].n_name = "_modinit"; | |
13997 | nl[1].n_name = "__modinit"; | |
13998 | nl[2].n_name = "___modinit"; | |
13999 | nl[3].n_name = "____modinit"; | |
14000 | nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL; | |
14001 | ||
14002 | if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1); | |
14003 | for(i = 0; i < 4; i++) { | |
14004 | if(nl[i].n_value != NULL) | |
14005 | { | |
14006 | int j; | |
14007 | for(j = 0; j < i; j++) | |
14008 | printf("_"); | |
14009 | exit(i); | |
14010 | } | |
14011 | } | |
14012 | exit(-1); | |
14013 | } | |
14014 | void _modinit(void) { return; } | |
14015 | EOF | |
14016 | $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1 | |
14017 | symbol_underscores=`./conftest conftest` | |
631ef239 AC |
14018 | { echo "$as_me:$LINENO: result: $symbol_underscores" >&5 |
14019 | echo "${ECHO_T}$symbol_underscores" >&6; } | |
212380e3 AC |
14020 | $RM -f conftest conftest.c |
14021 | ||
14022 | fi | |
14023 | ||
14024 | ||
14025 | cat >>confdefs.h <<_ACEOF | |
14026 | #define SYMBOL_PREFIX "${symbol_underscores}" | |
14027 | _ACEOF | |
14028 | ||
14029 | fi | |
14030 | fi | |
14031 | ||
14032 | ||
14033 | ||
14034 | ||
14035 | ||
14036 | ||
14037 | ||
14038 | ||
14039 | ||
14040 | ||
14041 | ||
14042 | ||
14043 | ||
14044 | ||
14045 | if test "$prefix" = "NONE"; then | |
14046 | ||
14047 | cat >>confdefs.h <<_ACEOF | |
14048 | #define IRCD_PREFIX "$ac_default_prefix" | |
14049 | _ACEOF | |
14050 | ||
14051 | ||
14052 | else | |
14053 | ||
14054 | ||
14055 | prefix=`echo $prefix | sed 's/\/$//'` | |
14056 | ||
14057 | cat >>confdefs.h <<_ACEOF | |
14058 | #define IRCD_PREFIX "$prefix" | |
14059 | _ACEOF | |
14060 | ||
14061 | ||
14062 | fi | |
14063 | ||
34ce42c1 | 14064 | ac_config_files="$ac_config_files Makefile servlink/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile" |
212380e3 AC |
14065 | |
14066 | ||
14067 | cat >confcache <<\_ACEOF | |
14068 | # This file is a shell script that caches the results of configure | |
14069 | # tests run on this system so they can be shared between configure | |
14070 | # scripts and configure runs, see configure's option --config-cache. | |
14071 | # It is not useful on other systems. If it contains results you don't | |
14072 | # want to keep, you may remove or edit it. | |
14073 | # | |
14074 | # config.status only pays attention to the cache file if you give it | |
14075 | # the --recheck option to rerun configure. | |
14076 | # | |
14077 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14078 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14079 | # following values. | |
14080 | ||
14081 | _ACEOF | |
14082 | ||
14083 | # The following way of writing the cache mishandles newlines in values, | |
14084 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 14085 | # So, we kill variables containing newlines. |
212380e3 AC |
14086 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14087 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 AC |
14088 | ( |
14089 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14090 | eval ac_val=\$$ac_var | |
14091 | case $ac_val in #( | |
14092 | *${as_nl}*) | |
14093 | case $ac_var in #( | |
14094 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
14095 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
14096 | esac | |
14097 | case $ac_var in #( | |
14098 | _ | IFS | as_nl) ;; #( | |
14099 | *) $as_unset $ac_var ;; | |
14100 | esac ;; | |
14101 | esac | |
14102 | done | |
14103 | ||
212380e3 | 14104 | (set) 2>&1 | |
631ef239 AC |
14105 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14106 | *${as_nl}ac_space=\ *) | |
212380e3 AC |
14107 | # `set' does not quote correctly, so add quotes (double-quote |
14108 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
14109 | sed -n \ | |
14110 | "s/'/'\\\\''/g; | |
14111 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 14112 | ;; #( |
212380e3 AC |
14113 | *) |
14114 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 14115 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 14116 | ;; |
631ef239 AC |
14117 | esac | |
14118 | sort | |
14119 | ) | | |
212380e3 | 14120 | sed ' |
631ef239 | 14121 | /^ac_cv_env_/b end |
212380e3 | 14122 | t clear |
631ef239 | 14123 | :clear |
212380e3 AC |
14124 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14125 | t end | |
631ef239 AC |
14126 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14127 | :end' >>confcache | |
14128 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14129 | if test -w "$cache_file"; then | |
14130 | test "x$cache_file" != "x/dev/null" && | |
14131 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
14132 | echo "$as_me: updating cache $cache_file" >&6;} | |
212380e3 AC |
14133 | cat confcache >$cache_file |
14134 | else | |
631ef239 AC |
14135 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
14136 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 AC |
14137 | fi |
14138 | fi | |
14139 | rm -f confcache | |
14140 | ||
14141 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14142 | # Let make expand exec_prefix. | |
14143 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14144 | ||
212380e3 AC |
14145 | DEFS=-DHAVE_CONFIG_H |
14146 | ||
14147 | ac_libobjs= | |
14148 | ac_ltlibobjs= | |
14149 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14150 | # 1. Remove the extension, and $U if already installed. | |
631ef239 AC |
14151 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14152 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
14153 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14154 | # will be set to the directory where LIBOBJS objects are built. | |
14155 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14156 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 AC |
14157 | done |
14158 | LIBOBJS=$ac_libobjs | |
14159 | ||
14160 | LTLIBOBJS=$ac_ltlibobjs | |
14161 | ||
14162 | ||
14163 | ||
14164 | : ${CONFIG_STATUS=./config.status} | |
14165 | ac_clean_files_save=$ac_clean_files | |
14166 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
14167 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
14168 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14169 | cat >$CONFIG_STATUS <<_ACEOF | |
14170 | #! $SHELL | |
14171 | # Generated by $as_me. | |
14172 | # Run this file to recreate the current configuration. | |
14173 | # Compiler output produced by configure, useful for debugging | |
14174 | # configure, is in config.log if it exists. | |
14175 | ||
14176 | debug=false | |
14177 | ac_cs_recheck=false | |
14178 | ac_cs_silent=false | |
14179 | SHELL=\${CONFIG_SHELL-$SHELL} | |
14180 | _ACEOF | |
14181 | ||
14182 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14183 | ## --------------------- ## | |
14184 | ## M4sh Initialization. ## | |
14185 | ## --------------------- ## | |
14186 | ||
631ef239 AC |
14187 | # Be more Bourne compatible |
14188 | DUALCASE=1; export DUALCASE # for MKS sh | |
212380e3 AC |
14189 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
14190 | emulate sh | |
14191 | NULLCMD=: | |
14192 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
14193 | # is contrary to our usage. Disable this feature. | |
14194 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 14195 | setopt NO_GLOB_SUBST |
212380e3 | 14196 | else |
631ef239 AC |
14197 | case `(set -o) 2>/dev/null` in |
14198 | *posix*) set -o posix ;; | |
14199 | esac | |
14200 | ||
212380e3 AC |
14201 | fi |
14202 | ||
14203 | ||
631ef239 AC |
14204 | |
14205 | ||
14206 | # PATH needs CR | |
14207 | # Avoid depending upon Character Ranges. | |
14208 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14209 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14210 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14211 | as_cr_digits='0123456789' | |
14212 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14213 | ||
14214 | # The user is always right. | |
14215 | if test "${PATH_SEPARATOR+set}" != set; then | |
14216 | echo "#! /bin/sh" >conf$$.sh | |
14217 | echo "exit 0" >>conf$$.sh | |
14218 | chmod +x conf$$.sh | |
14219 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
14220 | PATH_SEPARATOR=';' | |
14221 | else | |
14222 | PATH_SEPARATOR=: | |
14223 | fi | |
14224 | rm -f conf$$.sh | |
14225 | fi | |
14226 | ||
14227 | # Support unset when possible. | |
14228 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
14229 | as_unset=unset | |
14230 | else | |
14231 | as_unset=false | |
14232 | fi | |
14233 | ||
14234 | ||
14235 | # IFS | |
14236 | # We need space, tab and new line, in precisely that order. Quoting is | |
14237 | # there to prevent editors from complaining about space-tab. | |
14238 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14239 | # splitting by setting IFS to empty value.) | |
14240 | as_nl=' | |
14241 | ' | |
14242 | IFS=" "" $as_nl" | |
14243 | ||
14244 | # Find who we are. Look in the path if we contain no directory separator. | |
14245 | case $0 in | |
14246 | *[\\/]* ) as_myself=$0 ;; | |
14247 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14248 | for as_dir in $PATH | |
14249 | do | |
14250 | IFS=$as_save_IFS | |
14251 | test -z "$as_dir" && as_dir=. | |
14252 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14253 | done | |
14254 | IFS=$as_save_IFS | |
14255 | ||
14256 | ;; | |
14257 | esac | |
14258 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14259 | # in which case we are not to be found in the path. | |
14260 | if test "x$as_myself" = x; then | |
14261 | as_myself=$0 | |
14262 | fi | |
14263 | if test ! -f "$as_myself"; then | |
14264 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14265 | { (exit 1); exit 1; } | |
14266 | fi | |
14267 | ||
212380e3 | 14268 | # Work around bugs in pre-3.0 UWIN ksh. |
631ef239 AC |
14269 | for as_var in ENV MAIL MAILPATH |
14270 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
14271 | done | |
212380e3 AC |
14272 | PS1='$ ' |
14273 | PS2='> ' | |
14274 | PS4='+ ' | |
14275 | ||
14276 | # NLS nuisances. | |
14277 | for as_var in \ | |
14278 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
14279 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
14280 | LC_TELEPHONE LC_TIME | |
14281 | do | |
14282 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
14283 | eval $as_var=C; export $as_var | |
14284 | else | |
631ef239 | 14285 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
212380e3 AC |
14286 | fi |
14287 | done | |
14288 | ||
14289 | # Required to use basename. | |
631ef239 AC |
14290 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14291 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
14292 | as_expr=expr |
14293 | else | |
14294 | as_expr=false | |
14295 | fi | |
14296 | ||
631ef239 | 14297 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
14298 | as_basename=basename |
14299 | else | |
14300 | as_basename=false | |
14301 | fi | |
14302 | ||
14303 | ||
14304 | # Name of the executable. | |
631ef239 | 14305 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
14306 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14307 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 14308 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 14309 | echo X/"$0" | |
631ef239 AC |
14310 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
14311 | s//\1/ | |
14312 | q | |
14313 | } | |
14314 | /^X\/\(\/\/\)$/{ | |
14315 | s//\1/ | |
14316 | q | |
14317 | } | |
14318 | /^X\/\(\/\).*/{ | |
14319 | s//\1/ | |
14320 | q | |
14321 | } | |
14322 | s/.*/./; q'` | |
212380e3 | 14323 | |
631ef239 AC |
14324 | # CDPATH. |
14325 | $as_unset CDPATH | |
212380e3 | 14326 | |
212380e3 AC |
14327 | |
14328 | ||
14329 | as_lineno_1=$LINENO | |
14330 | as_lineno_2=$LINENO | |
212380e3 | 14331 | test "x$as_lineno_1" != "x$as_lineno_2" && |
631ef239 | 14332 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
212380e3 AC |
14333 | |
14334 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
14335 | # uniformly replaced by the line number. The first 'sed' inserts a | |
631ef239 AC |
14336 | # line-number line after each line using $LINENO; the second 'sed' |
14337 | # does the real work. The second script uses 'N' to pair each | |
14338 | # line-number line with the line containing $LINENO, and appends | |
14339 | # trailing '-' during substitution so that $LINENO is not a special | |
14340 | # case at line end. | |
212380e3 | 14341 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
631ef239 AC |
14342 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
14343 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
14344 | sed -n ' | |
14345 | p | |
14346 | /[$]LINENO/= | |
14347 | ' <$as_myself | | |
212380e3 | 14348 | sed ' |
631ef239 AC |
14349 | s/[$]LINENO.*/&-/ |
14350 | t lineno | |
14351 | b | |
14352 | :lineno | |
212380e3 | 14353 | N |
631ef239 AC |
14354 | :loop |
14355 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
212380e3 | 14356 | t loop |
631ef239 | 14357 | s/-\n.*// |
212380e3 | 14358 | ' >$as_me.lineno && |
631ef239 AC |
14359 | chmod +x "$as_me.lineno" || |
14360 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
212380e3 AC |
14361 | { (exit 1); exit 1; }; } |
14362 | ||
14363 | # Don't try to exec as it changes $[0], causing all sort of problems | |
14364 | # (the dirname of $[0] is not the place where we might find the | |
631ef239 AC |
14365 | # original and so on. Autoconf is especially sensitive to this). |
14366 | . "./$as_me.lineno" | |
212380e3 AC |
14367 | # Exit status is that of the last command. |
14368 | exit | |
14369 | } | |
14370 | ||
14371 | ||
631ef239 AC |
14372 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14373 | as_dirname=dirname | |
14374 | else | |
14375 | as_dirname=false | |
14376 | fi | |
14377 | ||
14378 | ECHO_C= ECHO_N= ECHO_T= | |
14379 | case `echo -n x` in | |
14380 | -n*) | |
14381 | case `echo 'x\c'` in | |
14382 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14383 | *) ECHO_C='\c';; | |
14384 | esac;; | |
14385 | *) | |
14386 | ECHO_N='-n';; | |
212380e3 AC |
14387 | esac |
14388 | ||
631ef239 AC |
14389 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14390 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
14391 | as_expr=expr |
14392 | else | |
14393 | as_expr=false | |
14394 | fi | |
14395 | ||
14396 | rm -f conf$$ conf$$.exe conf$$.file | |
631ef239 AC |
14397 | if test -d conf$$.dir; then |
14398 | rm -f conf$$.dir/conf$$.file | |
14399 | else | |
14400 | rm -f conf$$.dir | |
14401 | mkdir conf$$.dir | |
14402 | fi | |
212380e3 AC |
14403 | echo >conf$$.file |
14404 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
631ef239 AC |
14405 | as_ln_s='ln -s' |
14406 | # ... but there are two gotchas: | |
14407 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14408 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14409 | # In both cases, we have to default to `cp -p'. | |
14410 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
212380e3 | 14411 | as_ln_s='cp -p' |
212380e3 AC |
14412 | elif ln conf$$.file conf$$ 2>/dev/null; then |
14413 | as_ln_s=ln | |
14414 | else | |
14415 | as_ln_s='cp -p' | |
14416 | fi | |
631ef239 AC |
14417 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14418 | rmdir conf$$.dir 2>/dev/null | |
212380e3 AC |
14419 | |
14420 | if mkdir -p . 2>/dev/null; then | |
14421 | as_mkdir_p=: | |
14422 | else | |
14423 | test -d ./-p && rmdir ./-p | |
14424 | as_mkdir_p=false | |
14425 | fi | |
14426 | ||
631ef239 AC |
14427 | if test -x / >/dev/null 2>&1; then |
14428 | as_test_x='test -x' | |
14429 | else | |
14430 | if ls -dL / >/dev/null 2>&1; then | |
14431 | as_ls_L_option=L | |
14432 | else | |
14433 | as_ls_L_option= | |
14434 | fi | |
14435 | as_test_x=' | |
14436 | eval sh -c '\'' | |
14437 | if test -d "$1"; then | |
14438 | test -d "$1/."; | |
14439 | else | |
14440 | case $1 in | |
14441 | -*)set "./$1";; | |
14442 | esac; | |
14443 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
14444 | ???[sx]*):;;*)false;;esac;fi | |
14445 | '\'' sh | |
14446 | ' | |
14447 | fi | |
14448 | as_executable_p=$as_test_x | |
212380e3 AC |
14449 | |
14450 | # Sed expression to map a string onto a valid CPP name. | |
14451 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14452 | ||
14453 | # Sed expression to map a string onto a valid variable name. | |
14454 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14455 | ||
14456 | ||
212380e3 AC |
14457 | exec 6>&1 |
14458 | ||
631ef239 | 14459 | # Save the log message, to keep $[0] and so on meaningful, and to |
212380e3 | 14460 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 AC |
14461 | # values after options handling. |
14462 | ac_log=" | |
1d17c179 | 14463 | This file was extended by charybdis $as_me 3.0.0-alpha1, which was |
631ef239 | 14464 | generated by GNU Autoconf 2.61. Invocation command line was |
212380e3 AC |
14465 | |
14466 | CONFIG_FILES = $CONFIG_FILES | |
14467 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14468 | CONFIG_LINKS = $CONFIG_LINKS | |
14469 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14470 | $ $0 $@ | |
14471 | ||
631ef239 AC |
14472 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14473 | " | |
14474 | ||
212380e3 AC |
14475 | _ACEOF |
14476 | ||
631ef239 | 14477 | cat >>$CONFIG_STATUS <<_ACEOF |
212380e3 | 14478 | # Files that config.status was made for. |
631ef239 AC |
14479 | config_files="$ac_config_files" |
14480 | config_headers="$ac_config_headers" | |
212380e3 | 14481 | |
631ef239 | 14482 | _ACEOF |
212380e3 AC |
14483 | |
14484 | cat >>$CONFIG_STATUS <<\_ACEOF | |
212380e3 AC |
14485 | ac_cs_usage="\ |
14486 | \`$as_me' instantiates files from templates according to the | |
14487 | current configuration. | |
14488 | ||
14489 | Usage: $0 [OPTIONS] [FILE]... | |
14490 | ||
14491 | -h, --help print this help, then exit | |
631ef239 | 14492 | -V, --version print version number and configuration settings, then exit |
212380e3 AC |
14493 | -q, --quiet do not print progress messages |
14494 | -d, --debug don't remove temporary files | |
14495 | --recheck update $as_me by reconfiguring in the same conditions | |
14496 | --file=FILE[:TEMPLATE] | |
14497 | instantiate the configuration file FILE | |
14498 | --header=FILE[:TEMPLATE] | |
14499 | instantiate the configuration header FILE | |
14500 | ||
14501 | Configuration files: | |
14502 | $config_files | |
14503 | ||
14504 | Configuration headers: | |
14505 | $config_headers | |
14506 | ||
14507 | Report bugs to <bug-autoconf@gnu.org>." | |
212380e3 | 14508 | |
631ef239 | 14509 | _ACEOF |
212380e3 AC |
14510 | cat >>$CONFIG_STATUS <<_ACEOF |
14511 | ac_cs_version="\\ | |
1d17c179 | 14512 | charybdis config.status 3.0.0-alpha1 |
631ef239 AC |
14513 | configured by $0, generated by GNU Autoconf 2.61, |
14514 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
212380e3 | 14515 | |
631ef239 | 14516 | Copyright (C) 2006 Free Software Foundation, Inc. |
212380e3 AC |
14517 | This config.status script is free software; the Free Software Foundation |
14518 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 AC |
14519 | |
14520 | ac_pwd='$ac_pwd' | |
14521 | srcdir='$srcdir' | |
14522 | INSTALL='$INSTALL' | |
212380e3 AC |
14523 | _ACEOF |
14524 | ||
14525 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14526 | # If no file are specified by the user, then we need to provide default | |
14527 | # value. By we need to know if files were specified by the user. | |
14528 | ac_need_defaults=: | |
14529 | while test $# != 0 | |
14530 | do | |
14531 | case $1 in | |
14532 | --*=*) | |
631ef239 AC |
14533 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14534 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 AC |
14535 | ac_shift=: |
14536 | ;; | |
631ef239 | 14537 | *) |
212380e3 AC |
14538 | ac_option=$1 |
14539 | ac_optarg=$2 | |
14540 | ac_shift=shift | |
14541 | ;; | |
212380e3 AC |
14542 | esac |
14543 | ||
14544 | case $ac_option in | |
14545 | # Handling of the options. | |
212380e3 AC |
14546 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
14547 | ac_cs_recheck=: ;; | |
631ef239 AC |
14548 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14549 | echo "$ac_cs_version"; exit ;; | |
14550 | --debug | --debu | --deb | --de | --d | -d ) | |
212380e3 AC |
14551 | debug=: ;; |
14552 | --file | --fil | --fi | --f ) | |
14553 | $ac_shift | |
14554 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
14555 | ac_need_defaults=false;; | |
14556 | --header | --heade | --head | --hea ) | |
14557 | $ac_shift | |
14558 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
14559 | ac_need_defaults=false;; | |
631ef239 AC |
14560 | --he | --h) |
14561 | # Conflict between --help and --header | |
14562 | { echo "$as_me: error: ambiguous option: $1 | |
14563 | Try \`$0 --help' for more information." >&2 | |
14564 | { (exit 1); exit 1; }; };; | |
14565 | --help | --hel | -h ) | |
14566 | echo "$ac_cs_usage"; exit ;; | |
212380e3 AC |
14567 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14568 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14569 | ac_cs_silent=: ;; | |
14570 | ||
14571 | # This is an error. | |
631ef239 AC |
14572 | -*) { echo "$as_me: error: unrecognized option: $1 |
14573 | Try \`$0 --help' for more information." >&2 | |
212380e3 AC |
14574 | { (exit 1); exit 1; }; } ;; |
14575 | ||
631ef239 AC |
14576 | *) ac_config_targets="$ac_config_targets $1" |
14577 | ac_need_defaults=false ;; | |
212380e3 AC |
14578 | |
14579 | esac | |
14580 | shift | |
14581 | done | |
14582 | ||
14583 | ac_configure_extra_args= | |
14584 | ||
14585 | if $ac_cs_silent; then | |
14586 | exec 6>/dev/null | |
14587 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14588 | fi | |
14589 | ||
14590 | _ACEOF | |
14591 | cat >>$CONFIG_STATUS <<_ACEOF | |
14592 | if \$ac_cs_recheck; then | |
631ef239 AC |
14593 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
14594 | CONFIG_SHELL=$SHELL | |
14595 | export CONFIG_SHELL | |
14596 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
212380e3 AC |
14597 | fi |
14598 | ||
14599 | _ACEOF | |
631ef239 AC |
14600 | cat >>$CONFIG_STATUS <<\_ACEOF |
14601 | exec 5>>config.log | |
14602 | { | |
14603 | echo | |
14604 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14605 | ## Running $as_me. ## | |
14606 | _ASBOX | |
14607 | echo "$ac_log" | |
14608 | } >&5 | |
212380e3 | 14609 | |
631ef239 AC |
14610 | _ACEOF |
14611 | cat >>$CONFIG_STATUS <<_ACEOF | |
14612 | _ACEOF | |
212380e3 AC |
14613 | |
14614 | cat >>$CONFIG_STATUS <<\_ACEOF | |
631ef239 AC |
14615 | |
14616 | # Handling of arguments. | |
212380e3 AC |
14617 | for ac_config_target in $ac_config_targets |
14618 | do | |
631ef239 AC |
14619 | case $ac_config_target in |
14620 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
14621 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
34ce42c1 | 14622 | "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;; |
631ef239 AC |
14623 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; |
14624 | "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;; | |
14625 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
14626 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; | |
14627 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
14628 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
14629 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
14630 | ||
212380e3 AC |
14631 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14632 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
14633 | { (exit 1); exit 1; }; };; | |
14634 | esac | |
14635 | done | |
14636 | ||
631ef239 | 14637 | |
212380e3 AC |
14638 | # If the user did not use the arguments to specify the items to instantiate, |
14639 | # then the envvar interface is used. Set only those that are not. | |
14640 | # We use the long form for the default assignment because of an extremely | |
14641 | # bizarre bug on SunOS 4.1.3. | |
14642 | if $ac_need_defaults; then | |
14643 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14644 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14645 | fi | |
14646 | ||
14647 | # Have a temporary directory for convenience. Make it in the build tree | |
631ef239 | 14648 | # simply because there is no reason against having it here, and in addition, |
212380e3 | 14649 | # creating and moving files from /tmp can sometimes cause problems. |
631ef239 AC |
14650 | # Hook for its removal unless debugging. |
14651 | # Note that there is a small window in which the directory will not be cleaned: | |
14652 | # after its creation but before its name has been assigned to `$tmp'. | |
212380e3 AC |
14653 | $debug || |
14654 | { | |
631ef239 AC |
14655 | tmp= |
14656 | trap 'exit_status=$? | |
14657 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14658 | ' 0 | |
212380e3 AC |
14659 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
14660 | } | |
212380e3 AC |
14661 | # Create a (secure) tmp directory for tmp files. |
14662 | ||
14663 | { | |
631ef239 | 14664 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
212380e3 AC |
14665 | test -n "$tmp" && test -d "$tmp" |
14666 | } || | |
14667 | { | |
631ef239 AC |
14668 | tmp=./conf$$-$RANDOM |
14669 | (umask 077 && mkdir "$tmp") | |
212380e3 AC |
14670 | } || |
14671 | { | |
14672 | echo "$me: cannot create a temporary directory in ." >&2 | |
14673 | { (exit 1); exit 1; } | |
14674 | } | |
14675 | ||
212380e3 | 14676 | # |
631ef239 | 14677 | # Set up the sed scripts for CONFIG_FILES section. |
212380e3 AC |
14678 | # |
14679 | ||
14680 | # No need to generate the scripts if there are no CONFIG_FILES. | |
14681 | # This happens for instance when ./config.status config.h | |
631ef239 AC |
14682 | if test -n "$CONFIG_FILES"; then |
14683 | ||
14684 | _ACEOF | |
14685 | ||
14686 | ||
14687 | ||
14688 | ac_delim='%!_!# ' | |
14689 | for ac_last_try in false false false false false :; do | |
14690 | cat >conf$$subs.sed <<_ACEOF | |
14691 | SHELL!$SHELL$ac_delim | |
14692 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
14693 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
14694 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
14695 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
14696 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
14697 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
14698 | exec_prefix!$exec_prefix$ac_delim | |
14699 | prefix!$prefix$ac_delim | |
14700 | program_transform_name!$program_transform_name$ac_delim | |
14701 | bindir!$bindir$ac_delim | |
14702 | sbindir!$sbindir$ac_delim | |
14703 | libexecdir!$libexecdir$ac_delim | |
14704 | datarootdir!$datarootdir$ac_delim | |
14705 | datadir!$datadir$ac_delim | |
14706 | sysconfdir!$sysconfdir$ac_delim | |
14707 | sharedstatedir!$sharedstatedir$ac_delim | |
14708 | localstatedir!$localstatedir$ac_delim | |
14709 | includedir!$includedir$ac_delim | |
14710 | oldincludedir!$oldincludedir$ac_delim | |
14711 | docdir!$docdir$ac_delim | |
14712 | infodir!$infodir$ac_delim | |
14713 | htmldir!$htmldir$ac_delim | |
14714 | dvidir!$dvidir$ac_delim | |
14715 | pdfdir!$pdfdir$ac_delim | |
14716 | psdir!$psdir$ac_delim | |
14717 | libdir!$libdir$ac_delim | |
14718 | localedir!$localedir$ac_delim | |
14719 | mandir!$mandir$ac_delim | |
14720 | DEFS!$DEFS$ac_delim | |
14721 | ECHO_C!$ECHO_C$ac_delim | |
14722 | ECHO_N!$ECHO_N$ac_delim | |
14723 | ECHO_T!$ECHO_T$ac_delim | |
14724 | LIBS!$LIBS$ac_delim | |
14725 | build_alias!$build_alias$ac_delim | |
14726 | host_alias!$host_alias$ac_delim | |
14727 | target_alias!$target_alias$ac_delim | |
14728 | CC!$CC$ac_delim | |
14729 | CFLAGS!$CFLAGS$ac_delim | |
14730 | LDFLAGS!$LDFLAGS$ac_delim | |
14731 | CPPFLAGS!$CPPFLAGS$ac_delim | |
14732 | ac_ct_CC!$ac_ct_CC$ac_delim | |
14733 | EXEEXT!$EXEEXT$ac_delim | |
14734 | OBJEXT!$OBJEXT$ac_delim | |
b676ea3b | 14735 | subdirs!$subdirs$ac_delim |
631ef239 AC |
14736 | MKDEP!$MKDEP$ac_delim |
14737 | MAKEDEPEND!$MAKEDEPEND$ac_delim | |
14738 | STDOUT!$STDOUT$ac_delim | |
14739 | CPP!$CPP$ac_delim | |
14740 | GREP!$GREP$ac_delim | |
14741 | EGREP!$EGREP$ac_delim | |
14742 | SET_MAKE!$SET_MAKE$ac_delim | |
14743 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
14744 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
14745 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
14746 | RM!$RM$ac_delim | |
14747 | CP!$CP$ac_delim | |
14748 | MV!$MV$ac_delim | |
14749 | LN!$LN$ac_delim | |
14750 | SED!$SED$ac_delim | |
14751 | AR!$AR$ac_delim | |
14752 | LD!$LD$ac_delim | |
14753 | RANLIB!$RANLIB$ac_delim | |
14754 | TOUCH!$TOUCH$ac_delim | |
14755 | YACC!$YACC$ac_delim | |
14756 | YFLAGS!$YFLAGS$ac_delim | |
14757 | LEX!$LEX$ac_delim | |
14758 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim | |
14759 | LEXLIB!$LEXLIB$ac_delim | |
14760 | CRYPT_LIB!$CRYPT_LIB$ac_delim | |
14761 | VICONF!$VICONF$ac_delim | |
14762 | ALLOCA!$ALLOCA$ac_delim | |
14763 | ENCSPEED!$ENCSPEED$ac_delim | |
14764 | ZLIB_LD!$ZLIB_LD$ac_delim | |
14765 | ETC_DIR!$ETC_DIR$ac_delim | |
14766 | confdir!$confdir$ac_delim | |
14767 | LOG_DIR!$LOG_DIR$ac_delim | |
14768 | logdir!$logdir$ac_delim | |
14769 | HELP_DIR!$HELP_DIR$ac_delim | |
14770 | helpdir!$helpdir$ac_delim | |
14771 | MODULE_DIR!$MODULE_DIR$ac_delim | |
14772 | moduledir!$moduledir$ac_delim | |
14773 | SELECT_TYPE!$SELECT_TYPE$ac_delim | |
631ef239 AC |
14774 | MODULES_LIBS!$MODULES_LIBS$ac_delim |
14775 | MOD_TARGET!$MOD_TARGET$ac_delim | |
14776 | SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim | |
14777 | SSL_INCLUDES!$SSL_INCLUDES$ac_delim | |
14778 | SSL_LIBS!$SSL_LIBS$ac_delim | |
14779 | PICFLAGS!$PICFLAGS$ac_delim | |
14780 | IRC_CFLAGS!$IRC_CFLAGS$ac_delim | |
14781 | SEDOBJ!$SEDOBJ$ac_delim | |
14782 | LIBOBJS!$LIBOBJS$ac_delim | |
14783 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
14784 | _ACEOF | |
14785 | ||
b676ea3b | 14786 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then |
631ef239 AC |
14787 | break |
14788 | elif $ac_last_try; then | |
14789 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
14790 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
14791 | { (exit 1); exit 1; }; } | |
14792 | else | |
14793 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 14794 | fi |
631ef239 | 14795 | done |
212380e3 | 14796 | |
631ef239 AC |
14797 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
14798 | if test -n "$ac_eof"; then | |
14799 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
14800 | ac_eof=`expr $ac_eof + 1` | |
14801 | fi | |
14802 | ||
14803 | cat >>$CONFIG_STATUS <<_ACEOF | |
14804 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
14805 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
14806 | _ACEOF | |
14807 | sed ' | |
14808 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
14809 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
14810 | :n | |
14811 | t n | |
14812 | s/'"$ac_delim"'$/,g/; t | |
14813 | s/$/\\/; p | |
14814 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
14815 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
14816 | rm -f conf$$subs.sed | |
14817 | cat >>$CONFIG_STATUS <<_ACEOF | |
14818 | :end | |
14819 | s/|#_!!_#|//g | |
14820 | CEOF$ac_eof | |
212380e3 | 14821 | _ACEOF |
631ef239 AC |
14822 | |
14823 | ||
14824 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
14825 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14826 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14827 | # (actually we leave an empty line to preserve line numbers). | |
14828 | if test "x$srcdir" = x.; then | |
14829 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14830 | s/:*\$(srcdir):*/:/ | |
14831 | s/:*\${srcdir}:*/:/ | |
14832 | s/:*@srcdir@:*/:/ | |
14833 | s/^\([^=]*=[ ]*\):*/\1/ | |
14834 | s/:*$// | |
14835 | s/^[^=]*=[ ]*$// | |
14836 | }' | |
14837 | fi | |
14838 | ||
212380e3 | 14839 | cat >>$CONFIG_STATUS <<\_ACEOF |
631ef239 AC |
14840 | fi # test -n "$CONFIG_FILES" |
14841 | ||
14842 | ||
14843 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
14844 | do | |
14845 | case $ac_tag in | |
14846 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14847 | esac | |
14848 | case $ac_mode$ac_tag in | |
14849 | :[FHL]*:*);; | |
14850 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
14851 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
14852 | { (exit 1); exit 1; }; };; | |
14853 | :[FH]-) ac_tag=-:-;; | |
14854 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 14855 | esac |
631ef239 AC |
14856 | ac_save_IFS=$IFS |
14857 | IFS=: | |
14858 | set x $ac_tag | |
14859 | IFS=$ac_save_IFS | |
14860 | shift | |
14861 | ac_file=$1 | |
14862 | shift | |
212380e3 | 14863 | |
631ef239 AC |
14864 | case $ac_mode in |
14865 | :L) ac_source=$1;; | |
14866 | :[FH]) | |
14867 | ac_file_inputs= | |
14868 | for ac_f | |
14869 | do | |
14870 | case $ac_f in | |
14871 | -) ac_f="$tmp/stdin";; | |
14872 | *) # Look for the file first in the build tree, then in the source tree | |
14873 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14874 | # because $ac_f cannot contain `:'. | |
14875 | test -f "$ac_f" || | |
14876 | case $ac_f in | |
14877 | [\\/$]*) false;; | |
14878 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14879 | esac || | |
14880 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
14881 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
14882 | { (exit 1); exit 1; }; };; | |
14883 | esac | |
14884 | ac_file_inputs="$ac_file_inputs $ac_f" | |
14885 | done | |
14886 | ||
14887 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
14888 | # use $as_me), people would be surprised to read: | |
14889 | # /* config.h. Generated by config.status. */ | |
14890 | configure_input="Generated from "`IFS=: | |
14891 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
14892 | if test x"$ac_file" != x-; then | |
14893 | configure_input="$ac_file. $configure_input" | |
14894 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
14895 | echo "$as_me: creating $ac_file" >&6;} | |
14896 | fi | |
14897 | ||
14898 | case $ac_tag in | |
14899 | *:-:* | *:-) cat >"$tmp/stdin";; | |
14900 | esac | |
14901 | ;; | |
14902 | esac | |
14903 | ||
14904 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 AC |
14905 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14906 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14907 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 14908 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 14909 | echo X"$ac_file" | |
631ef239 AC |
14910 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14911 | s//\1/ | |
14912 | q | |
14913 | } | |
14914 | /^X\(\/\/\)[^/].*/{ | |
14915 | s//\1/ | |
14916 | q | |
14917 | } | |
14918 | /^X\(\/\/\)$/{ | |
14919 | s//\1/ | |
14920 | q | |
14921 | } | |
14922 | /^X\(\/\).*/{ | |
14923 | s//\1/ | |
14924 | q | |
14925 | } | |
14926 | s/.*/./; q'` | |
14927 | { as_dir="$ac_dir" | |
14928 | case $as_dir in #( | |
14929 | -*) as_dir=./$as_dir;; | |
14930 | esac | |
14931 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
212380e3 | 14932 | as_dirs= |
631ef239 AC |
14933 | while :; do |
14934 | case $as_dir in #( | |
14935 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
14936 | *) as_qdir=$as_dir;; | |
14937 | esac | |
14938 | as_dirs="'$as_qdir' $as_dirs" | |
14939 | as_dir=`$as_dirname -- "$as_dir" || | |
212380e3 AC |
14940 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14941 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14942 | X"$as_dir" : 'X\(//\)$' \| \ | |
631ef239 | 14943 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 14944 | echo X"$as_dir" | |
631ef239 AC |
14945 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14946 | s//\1/ | |
14947 | q | |
14948 | } | |
14949 | /^X\(\/\/\)[^/].*/{ | |
14950 | s//\1/ | |
14951 | q | |
14952 | } | |
14953 | /^X\(\/\/\)$/{ | |
14954 | s//\1/ | |
14955 | q | |
14956 | } | |
14957 | /^X\(\/\).*/{ | |
14958 | s//\1/ | |
14959 | q | |
14960 | } | |
14961 | s/.*/./; q'` | |
14962 | test -d "$as_dir" && break | |
212380e3 | 14963 | done |
631ef239 AC |
14964 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
14965 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
14966 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
212380e3 | 14967 | { (exit 1); exit 1; }; }; } |
212380e3 AC |
14968 | ac_builddir=. |
14969 | ||
631ef239 AC |
14970 | case "$ac_dir" in |
14971 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14972 | *) | |
212380e3 | 14973 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
631ef239 AC |
14974 | # A ".." for each directory in $ac_dir_suffix. |
14975 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
14976 | case $ac_top_builddir_sub in | |
14977 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14978 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14979 | esac ;; | |
14980 | esac | |
14981 | ac_abs_top_builddir=$ac_pwd | |
14982 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14983 | # for backward compatibility: | |
14984 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
14985 | |
14986 | case $srcdir in | |
631ef239 | 14987 | .) # We are building in place. |
212380e3 | 14988 | ac_srcdir=. |
631ef239 AC |
14989 | ac_top_srcdir=$ac_top_builddir_sub |
14990 | ac_abs_top_srcdir=$ac_pwd ;; | |
14991 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 14992 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
14993 | ac_top_srcdir=$srcdir |
14994 | ac_abs_top_srcdir=$srcdir ;; | |
14995 | *) # Relative name. | |
14996 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14997 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14998 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 14999 | esac |
631ef239 | 15000 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 15001 | |
212380e3 | 15002 | |
631ef239 AC |
15003 | case $ac_mode in |
15004 | :F) | |
15005 | # | |
15006 | # CONFIG_FILE | |
15007 | # | |
212380e3 AC |
15008 | |
15009 | case $INSTALL in | |
15010 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 15011 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 15012 | esac |
631ef239 | 15013 | _ACEOF |
212380e3 | 15014 | |
631ef239 AC |
15015 | cat >>$CONFIG_STATUS <<\_ACEOF |
15016 | # If the template does not know about datarootdir, expand it. | |
15017 | # FIXME: This hack should be removed a few years after 2.60. | |
15018 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15019 | ||
15020 | case `sed -n '/datarootdir/ { | |
15021 | p | |
15022 | q | |
15023 | } | |
15024 | /@datadir@/p | |
15025 | /@docdir@/p | |
15026 | /@infodir@/p | |
15027 | /@localedir@/p | |
15028 | /@mandir@/p | |
15029 | ' $ac_file_inputs` in | |
15030 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15031 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15032 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15033 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
15034 | _ACEOF | |
15035 | cat >>$CONFIG_STATUS <<_ACEOF | |
15036 | ac_datarootdir_hack=' | |
15037 | s&@datadir@&$datadir&g | |
15038 | s&@docdir@&$docdir&g | |
15039 | s&@infodir@&$infodir&g | |
15040 | s&@localedir@&$localedir&g | |
15041 | s&@mandir@&$mandir&g | |
15042 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15043 | esac | |
212380e3 | 15044 | _ACEOF |
631ef239 AC |
15045 | |
15046 | # Neutralize VPATH when `$srcdir' = `.'. | |
15047 | # Shell code in configure.ac might set extrasub. | |
15048 | # FIXME: do we really want to maintain this feature? | |
212380e3 AC |
15049 | cat >>$CONFIG_STATUS <<_ACEOF |
15050 | sed "$ac_vpsub | |
15051 | $extrasub | |
15052 | _ACEOF | |
15053 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15054 | :t | |
15055 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
631ef239 AC |
15056 | s&@configure_input@&$configure_input&;t t |
15057 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15058 | s&@srcdir@&$ac_srcdir&;t t | |
15059 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15060 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15061 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15062 | s&@builddir@&$ac_builddir&;t t | |
15063 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15064 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15065 | s&@INSTALL@&$ac_INSTALL&;t t | |
15066 | $ac_datarootdir_hack | |
15067 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
15068 | ||
15069 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15070 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15071 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15072 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15073 | which seems to be undefined. Please make sure it is defined." >&5 | |
15074 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15075 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15076 | ||
15077 | rm -f "$tmp/stdin" | |
212380e3 | 15078 | case $ac_file in |
631ef239 AC |
15079 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
15080 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
212380e3 | 15081 | esac |
631ef239 AC |
15082 | ;; |
15083 | :H) | |
15084 | # | |
15085 | # CONFIG_HEADER | |
15086 | # | |
15087 | _ACEOF | |
15088 | ||
15089 | # Transform confdefs.h into a sed script `conftest.defines', that | |
15090 | # substitutes the proper values into config.h.in to produce config.h. | |
15091 | rm -f conftest.defines conftest.tail | |
15092 | # First, append a space to every undef/define line, to ease matching. | |
15093 | echo 's/$/ /' >conftest.defines | |
15094 | # Then, protect against being on the right side of a sed subst, or in | |
15095 | # an unquoted here document, in config.status. If some macros were | |
15096 | # called several times there might be several #defines for the same | |
15097 | # symbol, which is useless. But do not sort them, since the last | |
15098 | # AC_DEFINE must be honored. | |
15099 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
15100 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
15101 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
15102 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
15103 | # just an empty string. | |
15104 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
15105 | ac_dB='\\)[ (].*,\\1define\\2' | |
15106 | ac_dC=' ' | |
15107 | ac_dD=' ,' | |
15108 | ||
15109 | uniq confdefs.h | | |
15110 | sed -n ' | |
15111 | t rset | |
15112 | :rset | |
15113 | s/^[ ]*#[ ]*define[ ][ ]*// | |
15114 | t ok | |
15115 | d | |
15116 | :ok | |
15117 | s/[\\&,]/\\&/g | |
15118 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
15119 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
15120 | ' >>conftest.defines | |
15121 | ||
15122 | # Remove the space that was appended to ease matching. | |
15123 | # Then replace #undef with comments. This is necessary, for | |
212380e3 AC |
15124 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
15125 | # on some systems where configure will not decide to define it. | |
631ef239 AC |
15126 | # (The regexp can be short, since the line contains either #define or #undef.) |
15127 | echo 's/ $// | |
15128 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
15129 | ||
15130 | # Break up conftest.defines: | |
15131 | ac_max_sed_lines=50 | |
15132 | ||
15133 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
15134 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
15135 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
15136 | # et cetera. | |
15137 | ac_in='$ac_file_inputs' | |
15138 | ac_out='"$tmp/out1"' | |
15139 | ac_nxt='"$tmp/out2"' | |
15140 | ||
15141 | while : | |
212380e3 | 15142 | do |
631ef239 AC |
15143 | # Write a here document: |
15144 | cat >>$CONFIG_STATUS <<_ACEOF | |
15145 | # First, check the format of the line: | |
15146 | cat >"\$tmp/defines.sed" <<\\CEOF | |
15147 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
15148 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
15149 | b | |
15150 | :def | |
15151 | _ACEOF | |
15152 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
212380e3 | 15153 | echo 'CEOF |
631ef239 AC |
15154 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
15155 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
15156 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
15157 | grep . conftest.tail >/dev/null || break | |
212380e3 AC |
15158 | rm -f conftest.defines |
15159 | mv conftest.tail conftest.defines | |
15160 | done | |
631ef239 | 15161 | rm -f conftest.defines conftest.tail |
212380e3 | 15162 | |
631ef239 | 15163 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
212380e3 | 15164 | cat >>$CONFIG_STATUS <<\_ACEOF |
212380e3 | 15165 | if test x"$ac_file" != x-; then |
631ef239 AC |
15166 | echo "/* $configure_input */" >"$tmp/config.h" |
15167 | cat "$ac_result" >>"$tmp/config.h" | |
15168 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
212380e3 AC |
15169 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
15170 | echo "$as_me: $ac_file is unchanged" >&6;} | |
15171 | else | |
212380e3 | 15172 | rm -f $ac_file |
631ef239 | 15173 | mv "$tmp/config.h" $ac_file |
212380e3 AC |
15174 | fi |
15175 | else | |
631ef239 AC |
15176 | echo "/* $configure_input */" |
15177 | cat "$ac_result" | |
212380e3 | 15178 | fi |
631ef239 AC |
15179 | rm -f "$tmp/out12" |
15180 | ;; | |
15181 | ||
15182 | ||
15183 | esac | |
15184 | ||
15185 | done # for ac_tag | |
212380e3 | 15186 | |
212380e3 AC |
15187 | |
15188 | { (exit 0); exit 0; } | |
15189 | _ACEOF | |
15190 | chmod +x $CONFIG_STATUS | |
15191 | ac_clean_files=$ac_clean_files_save | |
15192 | ||
15193 | ||
15194 | # configure is writing to config.log, and then calls config.status. | |
15195 | # config.status does its own redirection, appending to config.log. | |
15196 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15197 | # by configure, so config.status won't be able to write to it; its | |
15198 | # output is simply discarded. So we exec the FD to /dev/null, | |
15199 | # effectively closing config.log, so it can be properly (re)opened and | |
15200 | # appended to by config.status. When coming back to configure, we | |
15201 | # need to make the FD available again. | |
15202 | if test "$no_create" != yes; then | |
15203 | ac_cs_success=: | |
15204 | ac_config_status_args= | |
15205 | test "$silent" = yes && | |
15206 | ac_config_status_args="$ac_config_status_args --quiet" | |
15207 | exec 5>/dev/null | |
15208 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15209 | exec 5>>config.log | |
15210 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15211 | # would make configure fail if this is the last instruction. | |
15212 | $ac_cs_success || { (exit 1); exit 1; } | |
15213 | fi | |
15214 | ||
b676ea3b AC |
15215 | # |
15216 | # CONFIG_SUBDIRS section. | |
15217 | # | |
15218 | if test "$no_recursion" != yes; then | |
15219 | ||
15220 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
15221 | ac_sub_configure_args= | |
15222 | ac_prev= | |
15223 | eval "set x $ac_configure_args" | |
15224 | shift | |
15225 | for ac_arg | |
15226 | do | |
15227 | if test -n "$ac_prev"; then | |
15228 | ac_prev= | |
15229 | continue | |
15230 | fi | |
15231 | case $ac_arg in | |
15232 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
15233 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
15234 | ac_prev=cache_file ;; | |
15235 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
15236 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
15237 | | --c=*) | |
15238 | ;; | |
15239 | --config-cache | -C) | |
15240 | ;; | |
15241 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
15242 | ac_prev=srcdir ;; | |
15243 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
15244 | ;; | |
15245 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
15246 | ac_prev=prefix ;; | |
15247 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
15248 | ;; | |
15249 | *) | |
15250 | case $ac_arg in | |
15251 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15252 | esac | |
15253 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | |
15254 | esac | |
15255 | done | |
15256 | ||
15257 | # Always prepend --prefix to ensure using the same prefix | |
15258 | # in subdir configurations. | |
15259 | ac_arg="--prefix=$prefix" | |
15260 | case $ac_arg in | |
15261 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15262 | esac | |
15263 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
15264 | ||
15265 | # Pass --silent | |
15266 | if test "$silent" = yes; then | |
15267 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
15268 | fi | |
15269 | ||
15270 | ac_popdir=`pwd` | |
15271 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
15272 | ||
15273 | # Do not complain, so a configure script can configure whichever | |
15274 | # parts of a large source tree are present. | |
15275 | test -d "$srcdir/$ac_dir" || continue | |
15276 | ||
15277 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
15278 | echo "$as_me:$LINENO: $ac_msg" >&5 | |
15279 | echo "$ac_msg" >&6 | |
15280 | { as_dir="$ac_dir" | |
15281 | case $as_dir in #( | |
15282 | -*) as_dir=./$as_dir;; | |
15283 | esac | |
15284 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
15285 | as_dirs= | |
15286 | while :; do | |
15287 | case $as_dir in #( | |
15288 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
15289 | *) as_qdir=$as_dir;; | |
15290 | esac | |
15291 | as_dirs="'$as_qdir' $as_dirs" | |
15292 | as_dir=`$as_dirname -- "$as_dir" || | |
15293 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15294 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15295 | X"$as_dir" : 'X\(//\)$' \| \ | |
15296 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15297 | echo X"$as_dir" | | |
15298 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15299 | s//\1/ | |
15300 | q | |
15301 | } | |
15302 | /^X\(\/\/\)[^/].*/{ | |
15303 | s//\1/ | |
15304 | q | |
15305 | } | |
15306 | /^X\(\/\/\)$/{ | |
15307 | s//\1/ | |
15308 | q | |
15309 | } | |
15310 | /^X\(\/\).*/{ | |
15311 | s//\1/ | |
15312 | q | |
15313 | } | |
15314 | s/.*/./; q'` | |
15315 | test -d "$as_dir" && break | |
15316 | done | |
15317 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15318 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
15319 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
15320 | { (exit 1); exit 1; }; }; } | |
15321 | ac_builddir=. | |
15322 | ||
15323 | case "$ac_dir" in | |
15324 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15325 | *) | |
15326 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
15327 | # A ".." for each directory in $ac_dir_suffix. | |
15328 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
15329 | case $ac_top_builddir_sub in | |
15330 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15331 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15332 | esac ;; | |
15333 | esac | |
15334 | ac_abs_top_builddir=$ac_pwd | |
15335 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15336 | # for backward compatibility: | |
15337 | ac_top_builddir=$ac_top_build_prefix | |
15338 | ||
15339 | case $srcdir in | |
15340 | .) # We are building in place. | |
15341 | ac_srcdir=. | |
15342 | ac_top_srcdir=$ac_top_builddir_sub | |
15343 | ac_abs_top_srcdir=$ac_pwd ;; | |
15344 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
15345 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15346 | ac_top_srcdir=$srcdir | |
15347 | ac_abs_top_srcdir=$srcdir ;; | |
15348 | *) # Relative name. | |
15349 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15350 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15351 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
15352 | esac | |
15353 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
15354 | ||
15355 | ||
15356 | cd "$ac_dir" | |
15357 | ||
15358 | # Check for guested configure; otherwise get Cygnus style configure. | |
15359 | if test -f "$ac_srcdir/configure.gnu"; then | |
15360 | ac_sub_configure=$ac_srcdir/configure.gnu | |
15361 | elif test -f "$ac_srcdir/configure"; then | |
15362 | ac_sub_configure=$ac_srcdir/configure | |
15363 | elif test -f "$ac_srcdir/configure.in"; then | |
15364 | # This should be Cygnus configure. | |
15365 | ac_sub_configure=$ac_aux_dir/configure | |
15366 | else | |
15367 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
15368 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
15369 | ac_sub_configure= | |
15370 | fi | |
15371 | ||
15372 | # The recursion is here. | |
15373 | if test -n "$ac_sub_configure"; then | |
15374 | # Make the cache file name correct relative to the subdirectory. | |
15375 | case $cache_file in | |
15376 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
15377 | *) # Relative name. | |
15378 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
15379 | esac | |
15380 | ||
15381 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
15382 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
15383 | # The eval makes quoting arguments work. | |
15384 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
15385 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
15386 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
15387 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
15388 | { (exit 1); exit 1; }; } | |
15389 | fi | |
15390 | ||
15391 | cd "$ac_popdir" | |
15392 | done | |
15393 | fi | |
15394 | ||
212380e3 AC |
15395 | |
15396 | if test "$cf_openssl_version_ok" = yes; then | |
15397 | openssl="yes" | |
15398 | else | |
15399 | openssl="no" | |
15400 | fi | |
15401 | ||
15402 | if test "$shared_modules" = yes; then | |
15403 | modules=shared | |
15404 | else | |
15405 | modules=static | |
15406 | fi | |
15407 | ||
15408 | echo " | |
15409 | Configuration: | |
15410 | Install directory : $prefix | |
15411 | ||
15412 | Ziplinks : $zlib | |
15413 | OpenSSL : $openssl | |
212380e3 AC |
15414 | Socket Engine : $SELECT_TYPE |
15415 | Small network : $small_net | |
15416 | Block allocator : $balloc | |
212380e3 AC |
15417 | |
15418 | Nickname length : $NICKLEN | |
15419 | Topic length : $TOPICLEN | |
15420 | ||
15421 | Use make to compile Charybdis, then make install to install it. | |
15422 | " |