]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
631ef239 | 3 | # Generated by GNU Autoconf 2.61 for charybdis 2.2.0. |
212380e3 | 4 | # |
c1c5fdc4 | 5 | # $Id: configure 3442 2007-05-07 02:57:50Z nenolod $ |
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' | |
b1fc1658 JT |
577 | PACKAGE_VERSION='2.2.0' |
578 | PACKAGE_STRING='charybdis 2.2.0' | |
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 | |
662 | MKDEP | |
663 | MAKEDEPEND | |
664 | STDOUT | |
665 | CPP | |
666 | GREP | |
667 | EGREP | |
668 | SET_MAKE | |
669 | INSTALL_PROGRAM | |
670 | INSTALL_SCRIPT | |
671 | INSTALL_DATA | |
672 | RM | |
673 | CP | |
674 | MV | |
675 | LN | |
676 | SED | |
677 | AR | |
678 | LD | |
679 | RANLIB | |
680 | TOUCH | |
681 | YACC | |
682 | YFLAGS | |
683 | LEX | |
684 | LEX_OUTPUT_ROOT | |
685 | LEXLIB | |
686 | CRYPT_LIB | |
687 | VICONF | |
688 | ALLOCA | |
689 | ENCSPEED | |
690 | ZLIB_LD | |
691 | ETC_DIR | |
692 | confdir | |
693 | LOG_DIR | |
694 | logdir | |
695 | HELP_DIR | |
696 | helpdir | |
697 | MODULE_DIR | |
698 | moduledir | |
699 | SELECT_TYPE | |
631ef239 AC |
700 | MODULES_LIBS |
701 | MOD_TARGET | |
702 | SSL_SRCS_ENABLE | |
703 | SSL_INCLUDES | |
704 | SSL_LIBS | |
705 | PICFLAGS | |
706 | IRC_CFLAGS | |
707 | SEDOBJ | |
708 | LIBOBJS | |
709 | LTLIBOBJS' | |
212380e3 | 710 | ac_subst_files='' |
631ef239 AC |
711 | ac_precious_vars='build_alias |
712 | host_alias | |
713 | target_alias | |
714 | CC | |
715 | CFLAGS | |
716 | LDFLAGS | |
717 | LIBS | |
718 | CPPFLAGS | |
719 | CPP | |
720 | YACC | |
721 | YFLAGS' | |
722 | ||
212380e3 AC |
723 | |
724 | # Initialize some variables set by options. | |
725 | ac_init_help= | |
726 | ac_init_version=false | |
727 | # The variables have the same names as the options, with | |
728 | # dashes changed to underlines. | |
729 | cache_file=/dev/null | |
730 | exec_prefix=NONE | |
731 | no_create= | |
732 | no_recursion= | |
733 | prefix=NONE | |
734 | program_prefix=NONE | |
735 | program_suffix=NONE | |
736 | program_transform_name=s,x,x, | |
737 | silent= | |
738 | site= | |
739 | srcdir= | |
740 | verbose= | |
741 | x_includes=NONE | |
742 | x_libraries=NONE | |
743 | ||
744 | # Installation directory options. | |
745 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
746 | # and all the variables that are supposed to be based on exec_prefix | |
747 | # by default will actually change. | |
748 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 749 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 AC |
750 | bindir='${exec_prefix}/bin' |
751 | sbindir='${exec_prefix}/sbin' | |
752 | libexecdir='${exec_prefix}/libexec' | |
631ef239 AC |
753 | datarootdir='${prefix}/share' |
754 | datadir='${datarootdir}' | |
212380e3 AC |
755 | sysconfdir='${prefix}/etc' |
756 | sharedstatedir='${prefix}/com' | |
757 | localstatedir='${prefix}/var' | |
212380e3 AC |
758 | includedir='${prefix}/include' |
759 | oldincludedir='/usr/include' | |
631ef239 AC |
760 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
761 | infodir='${datarootdir}/info' | |
762 | htmldir='${docdir}' | |
763 | dvidir='${docdir}' | |
764 | pdfdir='${docdir}' | |
765 | psdir='${docdir}' | |
766 | libdir='${exec_prefix}/lib' | |
767 | localedir='${datarootdir}/locale' | |
768 | mandir='${datarootdir}/man' | |
212380e3 AC |
769 | |
770 | ac_prev= | |
631ef239 | 771 | ac_dashdash= |
212380e3 AC |
772 | for ac_option |
773 | do | |
774 | # If the previous option needs an argument, assign it. | |
775 | if test -n "$ac_prev"; then | |
631ef239 | 776 | eval $ac_prev=\$ac_option |
212380e3 AC |
777 | ac_prev= |
778 | continue | |
779 | fi | |
780 | ||
631ef239 AC |
781 | case $ac_option in |
782 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
783 | *) ac_optarg=yes ;; | |
784 | esac | |
212380e3 AC |
785 | |
786 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
787 | ||
631ef239 AC |
788 | case $ac_dashdash$ac_option in |
789 | --) | |
790 | ac_dashdash=yes ;; | |
212380e3 AC |
791 | |
792 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
793 | ac_prev=bindir ;; | |
794 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
795 | bindir=$ac_optarg ;; | |
796 | ||
797 | -build | --build | --buil | --bui | --bu) | |
798 | ac_prev=build_alias ;; | |
799 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
800 | build_alias=$ac_optarg ;; | |
801 | ||
802 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
803 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
804 | ac_prev=cache_file ;; | |
805 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
806 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
807 | cache_file=$ac_optarg ;; | |
808 | ||
809 | --config-cache | -C) | |
810 | cache_file=config.cache ;; | |
811 | ||
631ef239 | 812 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 813 | ac_prev=datadir ;; |
631ef239 | 814 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 AC |
815 | datadir=$ac_optarg ;; |
816 | ||
631ef239 AC |
817 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
818 | | --dataroo | --dataro | --datar) | |
819 | ac_prev=datarootdir ;; | |
820 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
821 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
822 | datarootdir=$ac_optarg ;; | |
823 | ||
212380e3 AC |
824 | -disable-* | --disable-*) |
825 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
826 | # Reject names that are not valid shell variable names. | |
631ef239 | 827 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
828 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
829 | { (exit 1); exit 1; }; } | |
631ef239 AC |
830 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
831 | eval enable_$ac_feature=no ;; | |
832 | ||
833 | -docdir | --docdir | --docdi | --doc | --do) | |
834 | ac_prev=docdir ;; | |
835 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
836 | docdir=$ac_optarg ;; | |
837 | ||
838 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
839 | ac_prev=dvidir ;; | |
840 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
841 | dvidir=$ac_optarg ;; | |
212380e3 AC |
842 | |
843 | -enable-* | --enable-*) | |
844 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
845 | # Reject names that are not valid shell variable names. | |
631ef239 | 846 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
847 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
848 | { (exit 1); exit 1; }; } | |
631ef239 AC |
849 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
850 | eval enable_$ac_feature=\$ac_optarg ;; | |
212380e3 AC |
851 | |
852 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
853 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
854 | | --exec | --exe | --ex) | |
855 | ac_prev=exec_prefix ;; | |
856 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
857 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
858 | | --exec=* | --exe=* | --ex=*) | |
859 | exec_prefix=$ac_optarg ;; | |
860 | ||
861 | -gas | --gas | --ga | --g) | |
862 | # Obsolete; use --with-gas. | |
863 | with_gas=yes ;; | |
864 | ||
865 | -help | --help | --hel | --he | -h) | |
866 | ac_init_help=long ;; | |
867 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
868 | ac_init_help=recursive ;; | |
869 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
870 | ac_init_help=short ;; | |
871 | ||
872 | -host | --host | --hos | --ho) | |
873 | ac_prev=host_alias ;; | |
874 | -host=* | --host=* | --hos=* | --ho=*) | |
875 | host_alias=$ac_optarg ;; | |
876 | ||
631ef239 AC |
877 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
878 | ac_prev=htmldir ;; | |
879 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
880 | | --ht=*) | |
881 | htmldir=$ac_optarg ;; | |
882 | ||
212380e3 AC |
883 | -includedir | --includedir | --includedi | --included | --include \ |
884 | | --includ | --inclu | --incl | --inc) | |
885 | ac_prev=includedir ;; | |
886 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
887 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
888 | includedir=$ac_optarg ;; | |
889 | ||
890 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
891 | ac_prev=infodir ;; | |
892 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
893 | infodir=$ac_optarg ;; | |
894 | ||
895 | -libdir | --libdir | --libdi | --libd) | |
896 | ac_prev=libdir ;; | |
897 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
898 | libdir=$ac_optarg ;; | |
899 | ||
900 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
901 | | --libexe | --libex | --libe) | |
902 | ac_prev=libexecdir ;; | |
903 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
904 | | --libexe=* | --libex=* | --libe=*) | |
905 | libexecdir=$ac_optarg ;; | |
906 | ||
631ef239 AC |
907 | -localedir | --localedir | --localedi | --localed | --locale) |
908 | ac_prev=localedir ;; | |
909 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
910 | localedir=$ac_optarg ;; | |
911 | ||
212380e3 | 912 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 913 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 AC |
914 | ac_prev=localstatedir ;; |
915 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 916 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 AC |
917 | localstatedir=$ac_optarg ;; |
918 | ||
919 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
920 | ac_prev=mandir ;; | |
921 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
922 | mandir=$ac_optarg ;; | |
923 | ||
924 | -nfp | --nfp | --nf) | |
925 | # Obsolete; use --without-fp. | |
926 | with_fp=no ;; | |
927 | ||
928 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
929 | | --no-cr | --no-c | -n) | |
930 | no_create=yes ;; | |
931 | ||
932 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
933 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
934 | no_recursion=yes ;; | |
935 | ||
936 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
937 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
938 | | --oldin | --oldi | --old | --ol | --o) | |
939 | ac_prev=oldincludedir ;; | |
940 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
941 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
942 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
943 | oldincludedir=$ac_optarg ;; | |
944 | ||
945 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
946 | ac_prev=prefix ;; | |
947 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
948 | prefix=$ac_optarg ;; | |
949 | ||
950 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
951 | | --program-pre | --program-pr | --program-p) | |
952 | ac_prev=program_prefix ;; | |
953 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
954 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
955 | program_prefix=$ac_optarg ;; | |
956 | ||
957 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
958 | | --program-suf | --program-su | --program-s) | |
959 | ac_prev=program_suffix ;; | |
960 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
961 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
962 | program_suffix=$ac_optarg ;; | |
963 | ||
964 | -program-transform-name | --program-transform-name \ | |
965 | | --program-transform-nam | --program-transform-na \ | |
966 | | --program-transform-n | --program-transform- \ | |
967 | | --program-transform | --program-transfor \ | |
968 | | --program-transfo | --program-transf \ | |
969 | | --program-trans | --program-tran \ | |
970 | | --progr-tra | --program-tr | --program-t) | |
971 | ac_prev=program_transform_name ;; | |
972 | -program-transform-name=* | --program-transform-name=* \ | |
973 | | --program-transform-nam=* | --program-transform-na=* \ | |
974 | | --program-transform-n=* | --program-transform-=* \ | |
975 | | --program-transform=* | --program-transfor=* \ | |
976 | | --program-transfo=* | --program-transf=* \ | |
977 | | --program-trans=* | --program-tran=* \ | |
978 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
979 | program_transform_name=$ac_optarg ;; | |
980 | ||
631ef239 AC |
981 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
982 | ac_prev=pdfdir ;; | |
983 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
984 | pdfdir=$ac_optarg ;; | |
985 | ||
986 | -psdir | --psdir | --psdi | --psd | --ps) | |
987 | ac_prev=psdir ;; | |
988 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
989 | psdir=$ac_optarg ;; | |
990 | ||
212380e3 AC |
991 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
992 | | -silent | --silent | --silen | --sile | --sil) | |
993 | silent=yes ;; | |
994 | ||
995 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
996 | ac_prev=sbindir ;; | |
997 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
998 | | --sbi=* | --sb=*) | |
999 | sbindir=$ac_optarg ;; | |
1000 | ||
1001 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1002 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1003 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1004 | | --sha | --sh) | |
1005 | ac_prev=sharedstatedir ;; | |
1006 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1007 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1008 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1009 | | --sha=* | --sh=*) | |
1010 | sharedstatedir=$ac_optarg ;; | |
1011 | ||
1012 | -site | --site | --sit) | |
1013 | ac_prev=site ;; | |
1014 | -site=* | --site=* | --sit=*) | |
1015 | site=$ac_optarg ;; | |
1016 | ||
1017 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1018 | ac_prev=srcdir ;; | |
1019 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1020 | srcdir=$ac_optarg ;; | |
1021 | ||
1022 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1023 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1024 | ac_prev=sysconfdir ;; | |
1025 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1026 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1027 | sysconfdir=$ac_optarg ;; | |
1028 | ||
1029 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1030 | ac_prev=target_alias ;; | |
1031 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1032 | target_alias=$ac_optarg ;; | |
1033 | ||
1034 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1035 | verbose=yes ;; | |
1036 | ||
1037 | -version | --version | --versio | --versi | --vers | -V) | |
1038 | ac_init_version=: ;; | |
1039 | ||
1040 | -with-* | --with-*) | |
1041 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1042 | # Reject names that are not valid shell variable names. | |
631ef239 | 1043 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
1044 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1045 | { (exit 1); exit 1; }; } | |
631ef239 AC |
1046 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1047 | eval with_$ac_package=\$ac_optarg ;; | |
212380e3 AC |
1048 | |
1049 | -without-* | --without-*) | |
1050 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1051 | # Reject names that are not valid shell variable names. | |
631ef239 | 1052 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
1053 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1054 | { (exit 1); exit 1; }; } | |
631ef239 AC |
1055 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1056 | eval with_$ac_package=no ;; | |
212380e3 AC |
1057 | |
1058 | --x) | |
1059 | # Obsolete; use --with-x. | |
1060 | with_x=yes ;; | |
1061 | ||
1062 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1063 | | --x-incl | --x-inc | --x-in | --x-i) | |
1064 | ac_prev=x_includes ;; | |
1065 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1066 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1067 | x_includes=$ac_optarg ;; | |
1068 | ||
1069 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1070 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1071 | ac_prev=x_libraries ;; | |
1072 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1073 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1074 | x_libraries=$ac_optarg ;; | |
1075 | ||
1076 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1077 | Try \`$0 --help' for more information." >&2 | |
1078 | { (exit 1); exit 1; }; } | |
1079 | ;; | |
1080 | ||
1081 | *=*) | |
1082 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1083 | # Reject names that are not valid shell variable names. | |
1084 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1085 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1086 | { (exit 1); exit 1; }; } | |
631ef239 | 1087 | eval $ac_envvar=\$ac_optarg |
212380e3 AC |
1088 | export $ac_envvar ;; |
1089 | ||
1090 | *) | |
1091 | # FIXME: should be removed in autoconf 3.0. | |
1092 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1093 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1094 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1095 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1096 | ;; | |
1097 | ||
1098 | esac | |
1099 | done | |
1100 | ||
1101 | if test -n "$ac_prev"; then | |
1102 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1103 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1104 | { (exit 1); exit 1; }; } | |
1105 | fi | |
1106 | ||
631ef239 AC |
1107 | # Be sure to have absolute directory names. |
1108 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1109 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1110 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1111 | libdir localedir mandir | |
212380e3 | 1112 | do |
631ef239 | 1113 | eval ac_val=\$$ac_var |
212380e3 | 1114 | case $ac_val in |
631ef239 AC |
1115 | [\\/$]* | ?:[\\/]* ) continue;; |
1116 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1117 | esac |
631ef239 AC |
1118 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1119 | { (exit 1); exit 1; }; } | |
212380e3 AC |
1120 | done |
1121 | ||
1122 | # There might be people who depend on the old broken behavior: `$host' | |
1123 | # used to hold the argument of --host etc. | |
1124 | # FIXME: To remove some day. | |
1125 | build=$build_alias | |
1126 | host=$host_alias | |
1127 | target=$target_alias | |
1128 | ||
1129 | # FIXME: To remove some day. | |
1130 | if test "x$host_alias" != x; then | |
1131 | if test "x$build_alias" = x; then | |
1132 | cross_compiling=maybe | |
1133 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1134 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1135 | elif test "x$build_alias" != "x$host_alias"; then | |
1136 | cross_compiling=yes | |
1137 | fi | |
1138 | fi | |
1139 | ||
1140 | ac_tool_prefix= | |
1141 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1142 | ||
1143 | test "$silent" = yes && exec 6>/dev/null | |
1144 | ||
1145 | ||
631ef239 AC |
1146 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1147 | ac_ls_di=`ls -di .` && | |
1148 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1149 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1150 | { (exit 1); exit 1; }; } | |
1151 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1152 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1153 | { (exit 1); exit 1; }; } | |
1154 | ||
1155 | ||
1156 | # Find the source files, if location was not specified. | |
1157 | if test -z "$srcdir"; then | |
212380e3 | 1158 | ac_srcdir_defaulted=yes |
631ef239 AC |
1159 | # Try the directory containing this script, then the parent directory. |
1160 | ac_confdir=`$as_dirname -- "$0" || | |
212380e3 AC |
1161 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1162 | X"$0" : 'X\(//\)[^/]' \| \ | |
1163 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 1164 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 1165 | echo X"$0" | |
631ef239 AC |
1166 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1167 | s//\1/ | |
1168 | q | |
1169 | } | |
1170 | /^X\(\/\/\)[^/].*/{ | |
1171 | s//\1/ | |
1172 | q | |
1173 | } | |
1174 | /^X\(\/\/\)$/{ | |
1175 | s//\1/ | |
1176 | q | |
1177 | } | |
1178 | /^X\(\/\).*/{ | |
1179 | s//\1/ | |
1180 | q | |
1181 | } | |
1182 | s/.*/./; q'` | |
212380e3 | 1183 | srcdir=$ac_confdir |
631ef239 | 1184 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 AC |
1185 | srcdir=.. |
1186 | fi | |
1187 | else | |
1188 | ac_srcdir_defaulted=no | |
1189 | fi | |
631ef239 AC |
1190 | if test ! -r "$srcdir/$ac_unique_file"; then |
1191 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1192 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
212380e3 | 1193 | { (exit 1); exit 1; }; } |
212380e3 | 1194 | fi |
631ef239 AC |
1195 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1196 | ac_abs_confdir=`( | |
1197 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
212380e3 | 1198 | { (exit 1); exit 1; }; } |
631ef239 AC |
1199 | pwd)` |
1200 | # When building in place, set srcdir=. | |
1201 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1202 | srcdir=. | |
1203 | fi | |
1204 | # Remove unnecessary trailing slashes from srcdir. | |
1205 | # Double slashes in file names in object file debugging info | |
1206 | # mess up M-x gdb in Emacs. | |
1207 | case $srcdir in | |
1208 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1209 | esac | |
1210 | for ac_var in $ac_precious_vars; do | |
1211 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1212 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1213 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1214 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1215 | done | |
212380e3 AC |
1216 | |
1217 | # | |
1218 | # Report the --help message. | |
1219 | # | |
1220 | if test "$ac_init_help" = "long"; then | |
1221 | # Omit some internal or obsolete options to make the list less imposing. | |
1222 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1223 | cat <<_ACEOF | |
b1fc1658 | 1224 | \`configure' configures charybdis 2.2.0 to adapt to many kinds of systems. |
212380e3 AC |
1225 | |
1226 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1227 | ||
1228 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1229 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1230 | ||
1231 | Defaults for the options are specified in brackets. | |
1232 | ||
1233 | Configuration: | |
1234 | -h, --help display this help and exit | |
1235 | --help=short display options specific to this package | |
1236 | --help=recursive display the short help of all the included packages | |
1237 | -V, --version display version information and exit | |
1238 | -q, --quiet, --silent do not print \`checking...' messages | |
1239 | --cache-file=FILE cache test results in FILE [disabled] | |
1240 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1241 | -n, --no-create do not create output files | |
1242 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1243 | ||
212380e3 AC |
1244 | Installation directories: |
1245 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1246 | [$ac_default_prefix] | |
1247 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1248 | [PREFIX] | |
1249 | ||
1250 | By default, \`make install' will install all the files in | |
1251 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1252 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1253 | for instance \`--prefix=\$HOME'. | |
1254 | ||
1255 | For better control, use the options below. | |
1256 | ||
1257 | Fine tuning of the installation directories: | |
1258 | --bindir=DIR user executables [EPREFIX/bin] | |
1259 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1260 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
212380e3 AC |
1261 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1262 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1263 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1264 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1265 | --includedir=DIR C header files [PREFIX/include] | |
1266 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
631ef239 AC |
1267 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1268 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1269 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1270 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1271 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1272 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1273 | --htmldir=DIR html documentation [DOCDIR] | |
1274 | --dvidir=DIR dvi documentation [DOCDIR] | |
1275 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1276 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 AC |
1277 | _ACEOF |
1278 | ||
1279 | cat <<\_ACEOF | |
1280 | _ACEOF | |
1281 | fi | |
1282 | ||
1283 | if test -n "$ac_init_help"; then | |
1284 | case $ac_init_help in | |
b1fc1658 | 1285 | short | recursive ) echo "Configuration of charybdis 2.2.0:";; |
212380e3 AC |
1286 | esac |
1287 | cat <<\_ACEOF | |
1288 | ||
1289 | Optional Features: | |
1290 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1291 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1292 | --enable-ipv6 Enable IPv6 support | |
631ef239 | 1293 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 AC |
1294 | --disable-openssl Disable OpenSSL support. |
1295 | --disable-zlib Disable ziplinks support | |
c1c5fdc4 | 1296 | --enable-ports Force solaris I/O ports subsystem usage. |
212380e3 AC |
1297 | --enable-poll Force poll() usage. |
1298 | --enable-select Force select() usage. | |
1299 | --enable-kqueue Force kqueue() usage. | |
212380e3 AC |
1300 | --enable-epoll Force sys_epoll usage (Linux only). |
1301 | --enable-assert Enable assert(). Choose between soft(warnings) and | |
1302 | hard(aborts the daemon) | |
1303 | --enable-iodebug Enable IO Debugging hooks | |
1304 | --enable-profile Enable profiling | |
1305 | --disable-balloc Disable the block allocator. | |
212380e3 AC |
1306 | --enable-small-net Enable small network support. |
1307 | --disable-shared-modules | |
1308 | Disable shared modules. | |
1309 | --enable-warnings Enable all sorts of warnings for debugging. | |
1310 | ||
1311 | Optional Packages: | |
1312 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1313 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1314 | --with-zlib-path=DIR Path to libz.so for ziplinks support. | |
1315 | --with-confdir=DIR Directory to install config files. | |
1316 | --with-logdir=DIR Directory where to write logfiles. | |
1317 | --with-helpdir=DIR Directory to install help files. | |
1318 | --with-moduledir=DIR Directory to install modules. | |
1319 | --with-nicklen=LENGTH Set the nick length to LENGTH (default 15, max 50) | |
1320 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max | |
1321 | 390) | |
212380e3 AC |
1322 | |
1323 | Some influential environment variables: | |
1324 | CC C compiler command | |
1325 | CFLAGS C compiler flags | |
1326 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1327 | nonstandard directory <lib dir> | |
631ef239 AC |
1328 | LIBS libraries to pass to the linker, e.g. -l<library> |
1329 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1330 | you have headers in a nonstandard directory <include dir> | |
212380e3 | 1331 | CPP C preprocessor |
631ef239 AC |
1332 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1333 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1334 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1335 | This script will default YFLAGS to the empty string to avoid a | |
1336 | default value of `-d' given by some make applications. | |
212380e3 AC |
1337 | |
1338 | Use these variables to override the choices made by `configure' or to help | |
1339 | it to find libraries and programs with nonstandard names/locations. | |
1340 | ||
1341 | _ACEOF | |
631ef239 | 1342 | ac_status=$? |
212380e3 AC |
1343 | fi |
1344 | ||
1345 | if test "$ac_init_help" = "recursive"; then | |
1346 | # If there are subdirs, report their specific --help. | |
212380e3 | 1347 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
631ef239 | 1348 | test -d "$ac_dir" || continue |
212380e3 AC |
1349 | ac_builddir=. |
1350 | ||
631ef239 AC |
1351 | case "$ac_dir" in |
1352 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1353 | *) | |
212380e3 | 1354 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
631ef239 AC |
1355 | # A ".." for each directory in $ac_dir_suffix. |
1356 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1357 | case $ac_top_builddir_sub in | |
1358 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1359 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1360 | esac ;; | |
1361 | esac | |
1362 | ac_abs_top_builddir=$ac_pwd | |
1363 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1364 | # for backward compatibility: | |
1365 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
1366 | |
1367 | case $srcdir in | |
631ef239 | 1368 | .) # We are building in place. |
212380e3 | 1369 | ac_srcdir=. |
631ef239 AC |
1370 | ac_top_srcdir=$ac_top_builddir_sub |
1371 | ac_abs_top_srcdir=$ac_pwd ;; | |
1372 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 1373 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
1374 | ac_top_srcdir=$srcdir |
1375 | ac_abs_top_srcdir=$srcdir ;; | |
1376 | *) # Relative name. | |
1377 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1378 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1379 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 1380 | esac |
631ef239 AC |
1381 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1382 | ||
1383 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1384 | # Check for guested configure. | |
1385 | if test -f "$ac_srcdir/configure.gnu"; then | |
1386 | echo && | |
1387 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1388 | elif test -f "$ac_srcdir/configure"; then | |
1389 | echo && | |
1390 | $SHELL "$ac_srcdir/configure" --help=recursive | |
212380e3 AC |
1391 | else |
1392 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
631ef239 AC |
1393 | fi || ac_status=$? |
1394 | cd "$ac_pwd" || { ac_status=$?; break; } | |
212380e3 AC |
1395 | done |
1396 | fi | |
1397 | ||
631ef239 | 1398 | test -n "$ac_init_help" && exit $ac_status |
212380e3 AC |
1399 | if $ac_init_version; then |
1400 | cat <<\_ACEOF | |
b1fc1658 | 1401 | charybdis configure 2.2.0 |
631ef239 | 1402 | generated by GNU Autoconf 2.61 |
212380e3 | 1403 | |
631ef239 AC |
1404 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1405 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
212380e3 AC |
1406 | This configure script is free software; the Free Software Foundation |
1407 | gives unlimited permission to copy, distribute and modify it. | |
1408 | ||
c1c5fdc4 | 1409 | $Id: configure 3442 2007-05-07 02:57:50Z nenolod $ |
212380e3 | 1410 | _ACEOF |
631ef239 | 1411 | exit |
212380e3 | 1412 | fi |
631ef239 | 1413 | cat >config.log <<_ACEOF |
212380e3 AC |
1414 | This file contains any messages produced by compilers while |
1415 | running configure, to aid debugging if configure makes a mistake. | |
1416 | ||
b1fc1658 | 1417 | It was created by charybdis $as_me 2.2.0, which was |
631ef239 | 1418 | generated by GNU Autoconf 2.61. Invocation command line was |
212380e3 AC |
1419 | |
1420 | $ $0 $@ | |
1421 | ||
1422 | _ACEOF | |
631ef239 | 1423 | exec 5>>config.log |
212380e3 AC |
1424 | { |
1425 | cat <<_ASUNAME | |
1426 | ## --------- ## | |
1427 | ## Platform. ## | |
1428 | ## --------- ## | |
1429 | ||
1430 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1431 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1432 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1433 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1434 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1435 | ||
1436 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1437 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1438 | ||
1439 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1440 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1441 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
631ef239 | 1442 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
212380e3 AC |
1443 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1444 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1445 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1446 | ||
1447 | _ASUNAME | |
1448 | ||
1449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1450 | for as_dir in $PATH | |
1451 | do | |
1452 | IFS=$as_save_IFS | |
1453 | test -z "$as_dir" && as_dir=. | |
1454 | echo "PATH: $as_dir" | |
1455 | done | |
631ef239 | 1456 | IFS=$as_save_IFS |
212380e3 AC |
1457 | |
1458 | } >&5 | |
1459 | ||
1460 | cat >&5 <<_ACEOF | |
1461 | ||
1462 | ||
1463 | ## ----------- ## | |
1464 | ## Core tests. ## | |
1465 | ## ----------- ## | |
1466 | ||
1467 | _ACEOF | |
1468 | ||
1469 | ||
1470 | # Keep a trace of the command line. | |
1471 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1472 | # Strip out --silent because we don't want to record it for future runs. | |
1473 | # Also quote any args containing shell meta-characters. | |
1474 | # Make two passes to allow for proper duplicate-argument suppression. | |
1475 | ac_configure_args= | |
1476 | ac_configure_args0= | |
1477 | ac_configure_args1= | |
212380e3 AC |
1478 | ac_must_keep_next=false |
1479 | for ac_pass in 1 2 | |
1480 | do | |
1481 | for ac_arg | |
1482 | do | |
1483 | case $ac_arg in | |
1484 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1485 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1486 | | -silent | --silent | --silen | --sile | --sil) | |
1487 | continue ;; | |
631ef239 | 1488 | *\'*) |
212380e3 AC |
1489 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1490 | esac | |
1491 | case $ac_pass in | |
1492 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1493 | 2) | |
1494 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1495 | if test $ac_must_keep_next = true; then | |
1496 | ac_must_keep_next=false # Got value, back to normal. | |
1497 | else | |
1498 | case $ac_arg in | |
1499 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1500 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1501 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1502 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1503 | case "$ac_configure_args0 " in | |
1504 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1505 | esac | |
1506 | ;; | |
1507 | -* ) ac_must_keep_next=true ;; | |
1508 | esac | |
1509 | fi | |
631ef239 | 1510 | ac_configure_args="$ac_configure_args '$ac_arg'" |
212380e3 AC |
1511 | ;; |
1512 | esac | |
1513 | done | |
1514 | done | |
1515 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1516 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1517 | ||
1518 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1519 | # config.log. We remove comments because anyway the quotes in there | |
1520 | # would cause problems or look ugly. | |
631ef239 AC |
1521 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1522 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
212380e3 AC |
1523 | trap 'exit_status=$? |
1524 | # Save into config.log some information that might help in debugging. | |
1525 | { | |
1526 | echo | |
1527 | ||
1528 | cat <<\_ASBOX | |
1529 | ## ---------------- ## | |
1530 | ## Cache variables. ## | |
1531 | ## ---------------- ## | |
1532 | _ASBOX | |
1533 | echo | |
1534 | # The following way of writing the cache mishandles newlines in values, | |
631ef239 AC |
1535 | ( |
1536 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1537 | eval ac_val=\$$ac_var | |
1538 | case $ac_val in #( | |
1539 | *${as_nl}*) | |
1540 | case $ac_var in #( | |
1541 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1542 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1543 | esac | |
1544 | case $ac_var in #( | |
1545 | _ | IFS | as_nl) ;; #( | |
1546 | *) $as_unset $ac_var ;; | |
1547 | esac ;; | |
1548 | esac | |
1549 | done | |
212380e3 | 1550 | (set) 2>&1 | |
631ef239 AC |
1551 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1552 | *${as_nl}ac_space=\ *) | |
212380e3 | 1553 | sed -n \ |
631ef239 AC |
1554 | "s/'\''/'\''\\\\'\'''\''/g; |
1555 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1556 | ;; #( | |
212380e3 | 1557 | *) |
631ef239 | 1558 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 1559 | ;; |
631ef239 AC |
1560 | esac | |
1561 | sort | |
1562 | ) | |
212380e3 AC |
1563 | echo |
1564 | ||
1565 | cat <<\_ASBOX | |
1566 | ## ----------------- ## | |
1567 | ## Output variables. ## | |
1568 | ## ----------------- ## | |
1569 | _ASBOX | |
1570 | echo | |
1571 | for ac_var in $ac_subst_vars | |
1572 | do | |
631ef239 AC |
1573 | eval ac_val=\$$ac_var |
1574 | case $ac_val in | |
1575 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1576 | esac | |
1577 | echo "$ac_var='\''$ac_val'\''" | |
212380e3 AC |
1578 | done | sort |
1579 | echo | |
1580 | ||
1581 | if test -n "$ac_subst_files"; then | |
1582 | cat <<\_ASBOX | |
631ef239 AC |
1583 | ## ------------------- ## |
1584 | ## File substitutions. ## | |
1585 | ## ------------------- ## | |
212380e3 AC |
1586 | _ASBOX |
1587 | echo | |
1588 | for ac_var in $ac_subst_files | |
1589 | do | |
631ef239 AC |
1590 | eval ac_val=\$$ac_var |
1591 | case $ac_val in | |
1592 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1593 | esac | |
1594 | echo "$ac_var='\''$ac_val'\''" | |
212380e3 AC |
1595 | done | sort |
1596 | echo | |
1597 | fi | |
1598 | ||
1599 | if test -s confdefs.h; then | |
1600 | cat <<\_ASBOX | |
1601 | ## ----------- ## | |
1602 | ## confdefs.h. ## | |
1603 | ## ----------- ## | |
1604 | _ASBOX | |
1605 | echo | |
631ef239 | 1606 | cat confdefs.h |
212380e3 AC |
1607 | echo |
1608 | fi | |
1609 | test "$ac_signal" != 0 && | |
1610 | echo "$as_me: caught signal $ac_signal" | |
1611 | echo "$as_me: exit $exit_status" | |
1612 | } >&5 | |
631ef239 AC |
1613 | rm -f core *.core core.conftest.* && |
1614 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
212380e3 | 1615 | exit $exit_status |
631ef239 | 1616 | ' 0 |
212380e3 AC |
1617 | for ac_signal in 1 2 13 15; do |
1618 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1619 | done | |
1620 | ac_signal=0 | |
1621 | ||
1622 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
631ef239 | 1623 | rm -f -r conftest* confdefs.h |
212380e3 AC |
1624 | |
1625 | # Predefined preprocessor variables. | |
1626 | ||
1627 | cat >>confdefs.h <<_ACEOF | |
1628 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1629 | _ACEOF | |
1630 | ||
1631 | ||
1632 | cat >>confdefs.h <<_ACEOF | |
1633 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1634 | _ACEOF | |
1635 | ||
1636 | ||
1637 | cat >>confdefs.h <<_ACEOF | |
1638 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1639 | _ACEOF | |
1640 | ||
1641 | ||
1642 | cat >>confdefs.h <<_ACEOF | |
1643 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1644 | _ACEOF | |
1645 | ||
1646 | ||
1647 | cat >>confdefs.h <<_ACEOF | |
1648 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1649 | _ACEOF | |
1650 | ||
1651 | ||
1652 | # Let the site file select an alternate cache file if it wants to. | |
1653 | # Prefer explicitly selected file to automatically selected ones. | |
631ef239 AC |
1654 | if test -n "$CONFIG_SITE"; then |
1655 | set x "$CONFIG_SITE" | |
1656 | elif test "x$prefix" != xNONE; then | |
1657 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1658 | else | |
1659 | set x "$ac_default_prefix/share/config.site" \ | |
1660 | "$ac_default_prefix/etc/config.site" | |
212380e3 | 1661 | fi |
631ef239 AC |
1662 | shift |
1663 | for ac_site_file | |
1664 | do | |
212380e3 AC |
1665 | if test -r "$ac_site_file"; then |
1666 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1667 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1668 | sed 's/^/| /' "$ac_site_file" >&5 | |
1669 | . "$ac_site_file" | |
1670 | fi | |
1671 | done | |
1672 | ||
1673 | if test -r "$cache_file"; then | |
1674 | # Some versions of bash will fail to source /dev/null (special | |
1675 | # files actually), so we avoid doing that. | |
1676 | if test -f "$cache_file"; then | |
1677 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1678 | echo "$as_me: loading cache $cache_file" >&6;} | |
1679 | case $cache_file in | |
631ef239 AC |
1680 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1681 | *) . "./$cache_file";; | |
212380e3 AC |
1682 | esac |
1683 | fi | |
1684 | else | |
1685 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1686 | echo "$as_me: creating cache $cache_file" >&6;} | |
1687 | >$cache_file | |
1688 | fi | |
1689 | ||
1690 | # Check that the precious variables saved in the cache have kept the same | |
1691 | # value. | |
1692 | ac_cache_corrupted=false | |
631ef239 | 1693 | for ac_var in $ac_precious_vars; do |
212380e3 AC |
1694 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1695 | eval ac_new_set=\$ac_env_${ac_var}_set | |
631ef239 AC |
1696 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1697 | eval ac_new_val=\$ac_env_${ac_var}_value | |
212380e3 AC |
1698 | case $ac_old_set,$ac_new_set in |
1699 | set,) | |
1700 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1701 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1702 | ac_cache_corrupted=: ;; | |
1703 | ,set) | |
1704 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1705 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1706 | ac_cache_corrupted=: ;; | |
1707 | ,);; | |
1708 | *) | |
1709 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1710 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1711 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1712 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1713 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1714 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1715 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1716 | ac_cache_corrupted=: | |
1717 | fi;; | |
1718 | esac | |
1719 | # Pass precious variables to config.status. | |
1720 | if test "$ac_new_set" = set; then | |
1721 | case $ac_new_val in | |
631ef239 | 1722 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
212380e3 AC |
1723 | *) ac_arg=$ac_var=$ac_new_val ;; |
1724 | esac | |
1725 | case " $ac_configure_args " in | |
1726 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1727 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1728 | esac | |
1729 | fi | |
1730 | done | |
1731 | if $ac_cache_corrupted; then | |
1732 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1733 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1734 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1735 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1736 | { (exit 1); exit 1; }; } | |
1737 | fi | |
1738 | ||
212380e3 AC |
1739 | |
1740 | ||
1741 | ||
1742 | ||
1743 | ||
1744 | ||
1745 | ||
1746 | ||
1747 | ||
1748 | ||
1749 | ||
1750 | ||
1751 | ||
1752 | ||
1753 | ||
1754 | ||
1755 | ||
1756 | ||
1757 | ||
1758 | ||
1759 | ||
1760 | ||
1761 | ||
1762 | ||
631ef239 AC |
1763 | ac_ext=c |
1764 | ac_cpp='$CPP $CPPFLAGS' | |
1765 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1766 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1767 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
212380e3 AC |
1768 | |
1769 | ||
1770 | ||
631ef239 | 1771 | ac_config_headers="$ac_config_headers include/setup.h" |
212380e3 AC |
1772 | |
1773 | ||
1774 | ||
1775 | ||
1776 | ||
1777 | cat >>confdefs.h <<\_ACEOF | |
1778 | #define _GNU_SOURCE 1 | |
1779 | _ACEOF | |
1780 | ||
1781 | ||
1782 | ||
1783 | OLD_CFLAGS="$CFLAGS" | |
1784 | ac_ext=c | |
1785 | ac_cpp='$CPP $CPPFLAGS' | |
1786 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1787 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1788 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1789 | if test -n "$ac_tool_prefix"; then | |
1790 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1791 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
631ef239 AC |
1792 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
1794 | if test "${ac_cv_prog_CC+set}" = set; then |
1795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1796 | else | |
1797 | if test -n "$CC"; then | |
1798 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1799 | else | |
1800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1801 | for as_dir in $PATH | |
1802 | do | |
1803 | IFS=$as_save_IFS | |
1804 | test -z "$as_dir" && as_dir=. | |
1805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 1806 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
1807 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1809 | break 2 | |
1810 | fi | |
1811 | done | |
1812 | done | |
631ef239 | 1813 | IFS=$as_save_IFS |
212380e3 AC |
1814 | |
1815 | fi | |
1816 | fi | |
1817 | CC=$ac_cv_prog_CC | |
1818 | if test -n "$CC"; then | |
631ef239 AC |
1819 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1820 | echo "${ECHO_T}$CC" >&6; } | |
212380e3 | 1821 | else |
631ef239 AC |
1822 | { echo "$as_me:$LINENO: result: no" >&5 |
1823 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
1824 | fi |
1825 | ||
631ef239 | 1826 | |
212380e3 AC |
1827 | fi |
1828 | if test -z "$ac_cv_prog_CC"; then | |
1829 | ac_ct_CC=$CC | |
1830 | # Extract the first word of "gcc", so it can be a program name with args. | |
1831 | set dummy gcc; ac_word=$2 | |
631ef239 AC |
1832 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
1834 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1836 | else | |
1837 | if test -n "$ac_ct_CC"; then | |
1838 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1839 | else | |
1840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1841 | for as_dir in $PATH | |
1842 | do | |
1843 | IFS=$as_save_IFS | |
1844 | test -z "$as_dir" && as_dir=. | |
1845 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 1846 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
1847 | ac_cv_prog_ac_ct_CC="gcc" |
1848 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1849 | break 2 | |
1850 | fi | |
1851 | done | |
1852 | done | |
631ef239 | 1853 | IFS=$as_save_IFS |
212380e3 AC |
1854 | |
1855 | fi | |
1856 | fi | |
1857 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1858 | if test -n "$ac_ct_CC"; then | |
631ef239 AC |
1859 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1860 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
212380e3 | 1861 | else |
631ef239 AC |
1862 | { echo "$as_me:$LINENO: result: no" >&5 |
1863 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
1864 | fi |
1865 | ||
631ef239 AC |
1866 | if test "x$ac_ct_CC" = x; then |
1867 | CC="" | |
1868 | else | |
1869 | case $cross_compiling:$ac_tool_warned in | |
1870 | yes:) | |
1871 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
1872 | whose name does not start with the host triplet. If you think this | |
1873 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1874 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
1875 | whose name does not start with the host triplet. If you think this | |
1876 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
1877 | ac_tool_warned=yes ;; | |
1878 | esac | |
1879 | CC=$ac_ct_CC | |
1880 | fi | |
212380e3 AC |
1881 | else |
1882 | CC="$ac_cv_prog_CC" | |
1883 | fi | |
1884 | ||
1885 | if test -z "$CC"; then | |
631ef239 AC |
1886 | if test -n "$ac_tool_prefix"; then |
1887 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
212380e3 | 1888 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
631ef239 AC |
1889 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
1891 | if test "${ac_cv_prog_CC+set}" = set; then |
1892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1893 | else | |
1894 | if test -n "$CC"; then | |
1895 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1896 | else | |
1897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1898 | for as_dir in $PATH | |
1899 | do | |
1900 | IFS=$as_save_IFS | |
1901 | test -z "$as_dir" && as_dir=. | |
1902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 1903 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
1904 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1905 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1906 | break 2 | |
1907 | fi | |
1908 | done | |
1909 | done | |
631ef239 | 1910 | IFS=$as_save_IFS |
212380e3 AC |
1911 | |
1912 | fi | |
1913 | fi | |
1914 | CC=$ac_cv_prog_CC | |
1915 | if test -n "$CC"; then | |
631ef239 AC |
1916 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1917 | echo "${ECHO_T}$CC" >&6; } | |
212380e3 | 1918 | else |
631ef239 AC |
1919 | { echo "$as_me:$LINENO: result: no" >&5 |
1920 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
1921 | fi |
1922 | ||
212380e3 | 1923 | |
631ef239 | 1924 | fi |
212380e3 AC |
1925 | fi |
1926 | if test -z "$CC"; then | |
1927 | # Extract the first word of "cc", so it can be a program name with args. | |
1928 | set dummy cc; ac_word=$2 | |
631ef239 AC |
1929 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1930 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
1931 | if test "${ac_cv_prog_CC+set}" = set; then |
1932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1933 | else | |
1934 | if test -n "$CC"; then | |
1935 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1936 | else | |
1937 | ac_prog_rejected=no | |
1938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1939 | for as_dir in $PATH | |
1940 | do | |
1941 | IFS=$as_save_IFS | |
1942 | test -z "$as_dir" && as_dir=. | |
1943 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 1944 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
1945 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1946 | ac_prog_rejected=yes | |
1947 | continue | |
1948 | fi | |
1949 | ac_cv_prog_CC="cc" | |
1950 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1951 | break 2 | |
1952 | fi | |
1953 | done | |
1954 | done | |
631ef239 | 1955 | IFS=$as_save_IFS |
212380e3 AC |
1956 | |
1957 | if test $ac_prog_rejected = yes; then | |
1958 | # We found a bogon in the path, so make sure we never use it. | |
1959 | set dummy $ac_cv_prog_CC | |
1960 | shift | |
1961 | if test $# != 0; then | |
1962 | # We chose a different compiler from the bogus one. | |
1963 | # However, it has the same basename, so the bogon will be chosen | |
1964 | # first if we set CC to just the basename; use the full file name. | |
1965 | shift | |
1966 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1967 | fi | |
1968 | fi | |
1969 | fi | |
1970 | fi | |
1971 | CC=$ac_cv_prog_CC | |
1972 | if test -n "$CC"; then | |
631ef239 AC |
1973 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1974 | echo "${ECHO_T}$CC" >&6; } | |
212380e3 | 1975 | else |
631ef239 AC |
1976 | { echo "$as_me:$LINENO: result: no" >&5 |
1977 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
1978 | fi |
1979 | ||
631ef239 | 1980 | |
212380e3 AC |
1981 | fi |
1982 | if test -z "$CC"; then | |
1983 | if test -n "$ac_tool_prefix"; then | |
631ef239 | 1984 | for ac_prog in cl.exe |
212380e3 AC |
1985 | do |
1986 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1987 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
631ef239 AC |
1988 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1989 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
1990 | if test "${ac_cv_prog_CC+set}" = set; then |
1991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1992 | else | |
1993 | if test -n "$CC"; then | |
1994 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1995 | else | |
1996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1997 | for as_dir in $PATH | |
1998 | do | |
1999 | IFS=$as_save_IFS | |
2000 | test -z "$as_dir" && as_dir=. | |
2001 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2002 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
2003 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2004 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2005 | break 2 | |
2006 | fi | |
2007 | done | |
2008 | done | |
631ef239 | 2009 | IFS=$as_save_IFS |
212380e3 AC |
2010 | |
2011 | fi | |
2012 | fi | |
2013 | CC=$ac_cv_prog_CC | |
2014 | if test -n "$CC"; then | |
631ef239 AC |
2015 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2016 | echo "${ECHO_T}$CC" >&6; } | |
212380e3 | 2017 | else |
631ef239 AC |
2018 | { echo "$as_me:$LINENO: result: no" >&5 |
2019 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2020 | fi |
2021 | ||
631ef239 | 2022 | |
212380e3 AC |
2023 | test -n "$CC" && break |
2024 | done | |
2025 | fi | |
2026 | if test -z "$CC"; then | |
2027 | ac_ct_CC=$CC | |
631ef239 | 2028 | for ac_prog in cl.exe |
212380e3 AC |
2029 | do |
2030 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2031 | set dummy $ac_prog; ac_word=$2 | |
631ef239 AC |
2032 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2033 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
2034 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2036 | else | |
2037 | if test -n "$ac_ct_CC"; then | |
2038 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2039 | else | |
2040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2041 | for as_dir in $PATH | |
2042 | do | |
2043 | IFS=$as_save_IFS | |
2044 | test -z "$as_dir" && as_dir=. | |
2045 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2046 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
2047 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2048 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2049 | break 2 | |
2050 | fi | |
2051 | done | |
2052 | done | |
631ef239 | 2053 | IFS=$as_save_IFS |
212380e3 AC |
2054 | |
2055 | fi | |
2056 | fi | |
2057 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2058 | if test -n "$ac_ct_CC"; then | |
631ef239 AC |
2059 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2060 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
212380e3 | 2061 | else |
631ef239 AC |
2062 | { echo "$as_me:$LINENO: result: no" >&5 |
2063 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2064 | fi |
2065 | ||
631ef239 | 2066 | |
212380e3 AC |
2067 | test -n "$ac_ct_CC" && break |
2068 | done | |
2069 | ||
631ef239 AC |
2070 | if test "x$ac_ct_CC" = x; then |
2071 | CC="" | |
2072 | else | |
2073 | case $cross_compiling:$ac_tool_warned in | |
2074 | yes:) | |
2075 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2076 | whose name does not start with the host triplet. If you think this | |
2077 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2078 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2079 | whose name does not start with the host triplet. If you think this | |
2080 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2081 | ac_tool_warned=yes ;; | |
2082 | esac | |
2083 | CC=$ac_ct_CC | |
2084 | fi | |
212380e3 AC |
2085 | fi |
2086 | ||
2087 | fi | |
2088 | ||
2089 | ||
2090 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2091 | See \`config.log' for more details." >&5 | |
2092 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2093 | See \`config.log' for more details." >&2;} | |
2094 | { (exit 1); exit 1; }; } | |
2095 | ||
2096 | # Provide some information about the compiler. | |
631ef239 | 2097 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
212380e3 | 2098 | ac_compiler=`set X $ac_compile; echo $2` |
631ef239 AC |
2099 | { (ac_try="$ac_compiler --version >&5" |
2100 | case "(($ac_try" in | |
2101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2102 | *) ac_try_echo=$ac_try;; | |
2103 | esac | |
2104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2105 | (eval "$ac_compiler --version >&5") 2>&5 | |
212380e3 AC |
2106 | ac_status=$? |
2107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2108 | (exit $ac_status); } | |
631ef239 AC |
2109 | { (ac_try="$ac_compiler -v >&5" |
2110 | case "(($ac_try" in | |
2111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2112 | *) ac_try_echo=$ac_try;; | |
2113 | esac | |
2114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2115 | (eval "$ac_compiler -v >&5") 2>&5 | |
212380e3 AC |
2116 | ac_status=$? |
2117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2118 | (exit $ac_status); } | |
631ef239 AC |
2119 | { (ac_try="$ac_compiler -V >&5" |
2120 | case "(($ac_try" in | |
2121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2122 | *) ac_try_echo=$ac_try;; | |
2123 | esac | |
2124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2125 | (eval "$ac_compiler -V >&5") 2>&5 | |
212380e3 AC |
2126 | ac_status=$? |
2127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2128 | (exit $ac_status); } | |
2129 | ||
2130 | cat >conftest.$ac_ext <<_ACEOF | |
2131 | /* confdefs.h. */ | |
2132 | _ACEOF | |
2133 | cat confdefs.h >>conftest.$ac_ext | |
2134 | cat >>conftest.$ac_ext <<_ACEOF | |
2135 | /* end confdefs.h. */ | |
2136 | ||
2137 | int | |
2138 | main () | |
2139 | { | |
2140 | ||
2141 | ; | |
2142 | return 0; | |
2143 | } | |
2144 | _ACEOF | |
2145 | ac_clean_files_save=$ac_clean_files | |
2146 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2147 | # Try to create an executable without -o first, disregard a.out. | |
2148 | # It will help us diagnose broken compilers, and finding out an intuition | |
2149 | # of exeext. | |
631ef239 AC |
2150 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2151 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
212380e3 | 2152 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
631ef239 AC |
2153 | # |
2154 | # List of possible output files, starting from the most likely. | |
2155 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2156 | # only as a last resort. b.out is created by i960 compilers. | |
2157 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2158 | # | |
2159 | # The IRIX 6 linker writes into existing files which may not be | |
2160 | # executable, retaining their permissions. Remove them first so a | |
2161 | # subsequent execution test works. | |
2162 | ac_rmfiles= | |
2163 | for ac_file in $ac_files | |
2164 | do | |
2165 | case $ac_file in | |
2166 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2167 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2168 | esac | |
2169 | done | |
2170 | rm -f $ac_rmfiles | |
2171 | ||
2172 | if { (ac_try="$ac_link_default" | |
2173 | case "(($ac_try" in | |
2174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2175 | *) ac_try_echo=$ac_try;; | |
2176 | esac | |
2177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2178 | (eval "$ac_link_default") 2>&5 | |
212380e3 AC |
2179 | ac_status=$? |
2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2181 | (exit $ac_status); }; then | |
631ef239 AC |
2182 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2183 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2184 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2185 | # so that the user can short-circuit this test for compilers unknown to | |
2186 | # Autoconf. | |
2187 | for ac_file in $ac_files '' | |
212380e3 AC |
2188 | do |
2189 | test -f "$ac_file" || continue | |
2190 | case $ac_file in | |
631ef239 | 2191 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
212380e3 AC |
2192 | ;; |
2193 | [ab].out ) | |
2194 | # We found the default executable, but exeext='' is most | |
2195 | # certainly right. | |
2196 | break;; | |
2197 | *.* ) | |
631ef239 AC |
2198 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2199 | then :; else | |
2200 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2201 | fi | |
2202 | # We set ac_cv_exeext here because the later test for it is not | |
2203 | # safe: cross compilers may not add the suffix if given an `-o' | |
2204 | # argument, so we may need to know it at that point already. | |
2205 | # Even if this section looks crufty: it has the advantage of | |
2206 | # actually working. | |
212380e3 AC |
2207 | break;; |
2208 | * ) | |
2209 | break;; | |
2210 | esac | |
2211 | done | |
631ef239 AC |
2212 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2213 | ||
212380e3 | 2214 | else |
631ef239 AC |
2215 | ac_file='' |
2216 | fi | |
2217 | ||
2218 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2219 | echo "${ECHO_T}$ac_file" >&6; } | |
2220 | if test -z "$ac_file"; then | |
212380e3 AC |
2221 | echo "$as_me: failed program was:" >&5 |
2222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2223 | ||
2224 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2225 | See \`config.log' for more details." >&5 | |
2226 | echo "$as_me: error: C compiler cannot create executables | |
2227 | See \`config.log' for more details." >&2;} | |
2228 | { (exit 77); exit 77; }; } | |
2229 | fi | |
2230 | ||
2231 | ac_exeext=$ac_cv_exeext | |
212380e3 | 2232 | |
631ef239 | 2233 | # Check that the compiler produces executables we can run. If not, either |
212380e3 | 2234 | # the compiler is broken, or we cross compile. |
631ef239 AC |
2235 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2236 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
212380e3 AC |
2237 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2238 | # If not cross compiling, check that we can run a simple program. | |
2239 | if test "$cross_compiling" != yes; then | |
2240 | if { ac_try='./$ac_file' | |
631ef239 AC |
2241 | { (case "(($ac_try" in |
2242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2243 | *) ac_try_echo=$ac_try;; | |
2244 | esac | |
2245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2246 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
2247 | ac_status=$? |
2248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2249 | (exit $ac_status); }; }; then | |
2250 | cross_compiling=no | |
2251 | else | |
2252 | if test "$cross_compiling" = maybe; then | |
2253 | cross_compiling=yes | |
2254 | else | |
2255 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2256 | If you meant to cross compile, use \`--host'. | |
2257 | See \`config.log' for more details." >&5 | |
2258 | echo "$as_me: error: cannot run C compiled programs. | |
2259 | If you meant to cross compile, use \`--host'. | |
2260 | See \`config.log' for more details." >&2;} | |
2261 | { (exit 1); exit 1; }; } | |
2262 | fi | |
2263 | fi | |
2264 | fi | |
631ef239 AC |
2265 | { echo "$as_me:$LINENO: result: yes" >&5 |
2266 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
2267 | |
2268 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2269 | ac_clean_files=$ac_clean_files_save | |
631ef239 | 2270 | # Check that the compiler produces executables we can run. If not, either |
212380e3 | 2271 | # the compiler is broken, or we cross compile. |
631ef239 AC |
2272 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2273 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2274 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2275 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2276 | ||
2277 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2278 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2279 | if { (ac_try="$ac_link" | |
2280 | case "(($ac_try" in | |
2281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2282 | *) ac_try_echo=$ac_try;; | |
2283 | esac | |
2284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2285 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
2286 | ac_status=$? |
2287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2288 | (exit $ac_status); }; then | |
2289 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2290 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2291 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2292 | # `rm'. | |
2293 | for ac_file in conftest.exe conftest conftest.*; do | |
2294 | test -f "$ac_file" || continue | |
2295 | case $ac_file in | |
631ef239 | 2296 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
212380e3 | 2297 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
212380e3 AC |
2298 | break;; |
2299 | * ) break;; | |
2300 | esac | |
2301 | done | |
2302 | else | |
2303 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2304 | See \`config.log' for more details." >&5 | |
2305 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2306 | See \`config.log' for more details." >&2;} | |
2307 | { (exit 1); exit 1; }; } | |
2308 | fi | |
2309 | ||
2310 | rm -f conftest$ac_cv_exeext | |
631ef239 AC |
2311 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2312 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
212380e3 AC |
2313 | |
2314 | rm -f conftest.$ac_ext | |
2315 | EXEEXT=$ac_cv_exeext | |
2316 | ac_exeext=$EXEEXT | |
631ef239 AC |
2317 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2318 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
212380e3 AC |
2319 | if test "${ac_cv_objext+set}" = set; then |
2320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2321 | else | |
2322 | cat >conftest.$ac_ext <<_ACEOF | |
2323 | /* confdefs.h. */ | |
2324 | _ACEOF | |
2325 | cat confdefs.h >>conftest.$ac_ext | |
2326 | cat >>conftest.$ac_ext <<_ACEOF | |
2327 | /* end confdefs.h. */ | |
2328 | ||
2329 | int | |
2330 | main () | |
2331 | { | |
2332 | ||
2333 | ; | |
2334 | return 0; | |
2335 | } | |
2336 | _ACEOF | |
2337 | rm -f conftest.o conftest.obj | |
631ef239 AC |
2338 | if { (ac_try="$ac_compile" |
2339 | case "(($ac_try" in | |
2340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2341 | *) ac_try_echo=$ac_try;; | |
2342 | esac | |
2343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2344 | (eval "$ac_compile") 2>&5 | |
212380e3 AC |
2345 | ac_status=$? |
2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2347 | (exit $ac_status); }; then | |
631ef239 AC |
2348 | for ac_file in conftest.o conftest.obj conftest.*; do |
2349 | test -f "$ac_file" || continue; | |
212380e3 | 2350 | case $ac_file in |
631ef239 | 2351 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
212380e3 AC |
2352 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2353 | break;; | |
2354 | esac | |
2355 | done | |
2356 | else | |
2357 | echo "$as_me: failed program was:" >&5 | |
2358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2359 | ||
2360 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2361 | See \`config.log' for more details." >&5 | |
2362 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2363 | See \`config.log' for more details." >&2;} | |
2364 | { (exit 1); exit 1; }; } | |
2365 | fi | |
2366 | ||
2367 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2368 | fi | |
631ef239 AC |
2369 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2370 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
212380e3 AC |
2371 | OBJEXT=$ac_cv_objext |
2372 | ac_objext=$OBJEXT | |
631ef239 AC |
2373 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2374 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
212380e3 AC |
2375 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2377 | else | |
2378 | cat >conftest.$ac_ext <<_ACEOF | |
2379 | /* confdefs.h. */ | |
2380 | _ACEOF | |
2381 | cat confdefs.h >>conftest.$ac_ext | |
2382 | cat >>conftest.$ac_ext <<_ACEOF | |
2383 | /* end confdefs.h. */ | |
2384 | ||
2385 | int | |
2386 | main () | |
2387 | { | |
2388 | #ifndef __GNUC__ | |
2389 | choke me | |
2390 | #endif | |
2391 | ||
2392 | ; | |
2393 | return 0; | |
2394 | } | |
2395 | _ACEOF | |
2396 | rm -f conftest.$ac_objext | |
631ef239 AC |
2397 | if { (ac_try="$ac_compile" |
2398 | case "(($ac_try" in | |
2399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2400 | *) ac_try_echo=$ac_try;; | |
2401 | esac | |
2402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2403 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
2404 | ac_status=$? |
2405 | grep -v '^ *+' conftest.er1 >conftest.err | |
2406 | rm -f conftest.er1 | |
2407 | cat conftest.err >&5 | |
2408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
2409 | (exit $ac_status); } && { |
2410 | test -z "$ac_c_werror_flag" || | |
2411 | test ! -s conftest.err | |
2412 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
2413 | ac_compiler_gnu=yes |
2414 | else | |
2415 | echo "$as_me: failed program was:" >&5 | |
2416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2417 | ||
631ef239 | 2418 | ac_compiler_gnu=no |
212380e3 | 2419 | fi |
631ef239 AC |
2420 | |
2421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
2422 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2423 | ||
2424 | fi | |
631ef239 AC |
2425 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2426 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
212380e3 AC |
2427 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2428 | ac_test_CFLAGS=${CFLAGS+set} | |
2429 | ac_save_CFLAGS=$CFLAGS | |
631ef239 AC |
2430 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2431 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
212380e3 AC |
2432 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2434 | else | |
631ef239 AC |
2435 | ac_save_c_werror_flag=$ac_c_werror_flag |
2436 | ac_c_werror_flag=yes | |
2437 | ac_cv_prog_cc_g=no | |
2438 | CFLAGS="-g" | |
2439 | cat >conftest.$ac_ext <<_ACEOF | |
212380e3 AC |
2440 | /* confdefs.h. */ |
2441 | _ACEOF | |
2442 | cat confdefs.h >>conftest.$ac_ext | |
2443 | cat >>conftest.$ac_ext <<_ACEOF | |
2444 | /* end confdefs.h. */ | |
2445 | ||
2446 | int | |
2447 | main () | |
2448 | { | |
2449 | ||
2450 | ; | |
2451 | return 0; | |
2452 | } | |
2453 | _ACEOF | |
2454 | rm -f conftest.$ac_objext | |
631ef239 AC |
2455 | if { (ac_try="$ac_compile" |
2456 | case "(($ac_try" in | |
2457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2458 | *) ac_try_echo=$ac_try;; | |
2459 | esac | |
2460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2461 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
2462 | ac_status=$? |
2463 | grep -v '^ *+' conftest.er1 >conftest.err | |
2464 | rm -f conftest.er1 | |
2465 | cat conftest.err >&5 | |
2466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
2467 | (exit $ac_status); } && { |
2468 | test -z "$ac_c_werror_flag" || | |
2469 | test ! -s conftest.err | |
2470 | } && test -s conftest.$ac_objext; then | |
2471 | ac_cv_prog_cc_g=yes | |
2472 | else | |
2473 | echo "$as_me: failed program was:" >&5 | |
2474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2475 | ||
2476 | CFLAGS="" | |
2477 | cat >conftest.$ac_ext <<_ACEOF | |
2478 | /* confdefs.h. */ | |
2479 | _ACEOF | |
2480 | cat confdefs.h >>conftest.$ac_ext | |
2481 | cat >>conftest.$ac_ext <<_ACEOF | |
2482 | /* end confdefs.h. */ | |
2483 | ||
2484 | int | |
2485 | main () | |
2486 | { | |
2487 | ||
2488 | ; | |
2489 | return 0; | |
2490 | } | |
2491 | _ACEOF | |
2492 | rm -f conftest.$ac_objext | |
2493 | if { (ac_try="$ac_compile" | |
2494 | case "(($ac_try" in | |
2495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2496 | *) ac_try_echo=$ac_try;; | |
2497 | esac | |
2498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2499 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 2500 | ac_status=$? |
631ef239 AC |
2501 | grep -v '^ *+' conftest.er1 >conftest.err |
2502 | rm -f conftest.er1 | |
2503 | cat conftest.err >&5 | |
212380e3 | 2504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
631ef239 AC |
2505 | (exit $ac_status); } && { |
2506 | test -z "$ac_c_werror_flag" || | |
2507 | test ! -s conftest.err | |
2508 | } && test -s conftest.$ac_objext; then | |
2509 | : | |
2510 | else | |
2511 | echo "$as_me: failed program was:" >&5 | |
2512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2513 | ||
2514 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2515 | CFLAGS="-g" | |
2516 | cat >conftest.$ac_ext <<_ACEOF | |
2517 | /* confdefs.h. */ | |
2518 | _ACEOF | |
2519 | cat confdefs.h >>conftest.$ac_ext | |
2520 | cat >>conftest.$ac_ext <<_ACEOF | |
2521 | /* end confdefs.h. */ | |
2522 | ||
2523 | int | |
2524 | main () | |
2525 | { | |
2526 | ||
2527 | ; | |
2528 | return 0; | |
2529 | } | |
2530 | _ACEOF | |
2531 | rm -f conftest.$ac_objext | |
2532 | if { (ac_try="$ac_compile" | |
2533 | case "(($ac_try" in | |
2534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2535 | *) ac_try_echo=$ac_try;; | |
2536 | esac | |
2537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2538 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 2539 | ac_status=$? |
631ef239 AC |
2540 | grep -v '^ *+' conftest.er1 >conftest.err |
2541 | rm -f conftest.er1 | |
2542 | cat conftest.err >&5 | |
212380e3 | 2543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
631ef239 AC |
2544 | (exit $ac_status); } && { |
2545 | test -z "$ac_c_werror_flag" || | |
2546 | test ! -s conftest.err | |
2547 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
2548 | ac_cv_prog_cc_g=yes |
2549 | else | |
2550 | echo "$as_me: failed program was:" >&5 | |
2551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2552 | ||
631ef239 AC |
2553 | |
2554 | fi | |
2555 | ||
2556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 2557 | fi |
631ef239 AC |
2558 | |
2559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2560 | fi | |
2561 | ||
2562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2563 | ac_c_werror_flag=$ac_save_c_werror_flag | |
212380e3 | 2564 | fi |
631ef239 AC |
2565 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2566 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
212380e3 AC |
2567 | if test "$ac_test_CFLAGS" = set; then |
2568 | CFLAGS=$ac_save_CFLAGS | |
2569 | elif test $ac_cv_prog_cc_g = yes; then | |
2570 | if test "$GCC" = yes; then | |
2571 | CFLAGS="-g -O2" | |
2572 | else | |
2573 | CFLAGS="-g" | |
2574 | fi | |
2575 | else | |
2576 | if test "$GCC" = yes; then | |
2577 | CFLAGS="-O2" | |
2578 | else | |
2579 | CFLAGS= | |
2580 | fi | |
2581 | fi | |
631ef239 AC |
2582 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2583 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2584 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
212380e3 AC |
2585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2586 | else | |
631ef239 | 2587 | ac_cv_prog_cc_c89=no |
212380e3 AC |
2588 | ac_save_CC=$CC |
2589 | cat >conftest.$ac_ext <<_ACEOF | |
2590 | /* confdefs.h. */ | |
2591 | _ACEOF | |
2592 | cat confdefs.h >>conftest.$ac_ext | |
2593 | cat >>conftest.$ac_ext <<_ACEOF | |
2594 | /* end confdefs.h. */ | |
2595 | #include <stdarg.h> | |
2596 | #include <stdio.h> | |
2597 | #include <sys/types.h> | |
2598 | #include <sys/stat.h> | |
2599 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2600 | struct buf { int x; }; | |
2601 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2602 | static char *e (p, i) | |
2603 | char **p; | |
2604 | int i; | |
2605 | { | |
2606 | return p[i]; | |
2607 | } | |
2608 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2609 | { | |
2610 | char *s; | |
2611 | va_list v; | |
2612 | va_start (v,p); | |
2613 | s = g (p, va_arg (v,int)); | |
2614 | va_end (v); | |
2615 | return s; | |
2616 | } | |
2617 | ||
2618 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2619 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2620 | These don't provoke an error unfortunately, instead are silently treated | |
631ef239 | 2621 | as 'x'. The following induces an error, until -std is added to get |
212380e3 AC |
2622 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2623 | array size at least. It's necessary to write '\x00'==0 to get something | |
631ef239 | 2624 | that's true only with -std. */ |
212380e3 AC |
2625 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2626 | ||
631ef239 AC |
2627 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2628 | inside strings and character constants. */ | |
2629 | #define FOO(x) 'x' | |
2630 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2631 | ||
212380e3 AC |
2632 | int test (int i, double x); |
2633 | struct s1 {int (*f) (int a);}; | |
2634 | struct s2 {int (*f) (double a);}; | |
2635 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2636 | int argc; | |
2637 | char **argv; | |
2638 | int | |
2639 | main () | |
2640 | { | |
2641 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2642 | ; | |
2643 | return 0; | |
2644 | } | |
2645 | _ACEOF | |
631ef239 AC |
2646 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2647 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
212380e3 AC |
2648 | do |
2649 | CC="$ac_save_CC $ac_arg" | |
2650 | rm -f conftest.$ac_objext | |
631ef239 AC |
2651 | if { (ac_try="$ac_compile" |
2652 | case "(($ac_try" in | |
2653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2654 | *) ac_try_echo=$ac_try;; | |
2655 | esac | |
2656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2657 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
2658 | ac_status=$? |
2659 | grep -v '^ *+' conftest.er1 >conftest.err | |
2660 | rm -f conftest.er1 | |
2661 | cat conftest.err >&5 | |
2662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
2663 | (exit $ac_status); } && { |
2664 | test -z "$ac_c_werror_flag" || | |
2665 | test ! -s conftest.err | |
2666 | } && test -s conftest.$ac_objext; then | |
2667 | ac_cv_prog_cc_c89=$ac_arg | |
212380e3 AC |
2668 | else |
2669 | echo "$as_me: failed program was:" >&5 | |
2670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2671 | ||
631ef239 | 2672 | |
212380e3 | 2673 | fi |
631ef239 AC |
2674 | |
2675 | rm -f core conftest.err conftest.$ac_objext | |
2676 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
212380e3 | 2677 | done |
631ef239 | 2678 | rm -f conftest.$ac_ext |
212380e3 AC |
2679 | CC=$ac_save_CC |
2680 | ||
2681 | fi | |
631ef239 AC |
2682 | # AC_CACHE_VAL |
2683 | case "x$ac_cv_prog_cc_c89" in | |
2684 | x) | |
2685 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
2686 | echo "${ECHO_T}none needed" >&6; } ;; | |
2687 | xno) | |
2688 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
2689 | echo "${ECHO_T}unsupported" >&6; } ;; | |
212380e3 | 2690 | *) |
631ef239 AC |
2691 | CC="$CC $ac_cv_prog_cc_c89" |
2692 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
2693 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
212380e3 AC |
2694 | esac |
2695 | ||
212380e3 | 2696 | |
212380e3 AC |
2697 | ac_ext=c |
2698 | ac_cpp='$CPP $CPPFLAGS' | |
2699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2702 | ||
2703 | ac_ext=c | |
2704 | ac_cpp='$CPP $CPPFLAGS' | |
2705 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2706 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2707 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2708 | ||
2709 | ||
2710 | CFLAGS="$OLD_CFLAGS" | |
2711 | ||
2712 | ||
2713 | if test "$ac_cv_c_compiler_gnu" != yes; then | |
2714 | ||
2715 | SGS=no | |
631ef239 AC |
2716 | { echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5 |
2717 | echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6; } | |
212380e3 AC |
2718 | case `$CC -version 2>&1` in |
2719 | *TenDRA*) | |
631ef239 AC |
2720 | { echo "$as_me:$LINENO: result: yes, TenDRA" >&5 |
2721 | echo "${ECHO_T}yes, TenDRA" >&6; } | |
212380e3 AC |
2722 | IRC_CFLAGS="" |
2723 | CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include" | |
2724 | SGS=yes | |
2725 | TenDRA=yes | |
2726 | ;; | |
2727 | *MIPSpro*) | |
631ef239 AC |
2728 | { echo "$as_me:$LINENO: result: yes, MIPSpro" >&5 |
2729 | echo "${ECHO_T}yes, MIPSpro" >&6; } | |
212380e3 AC |
2730 | MIPSpro=yes |
2731 | SGS=yes | |
2732 | ;; | |
2733 | *) | |
631ef239 AC |
2734 | { echo "$as_me:$LINENO: result: no" >&5 |
2735 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2736 | TenDRA=no |
2737 | MIPSpro=no | |
2738 | ;; | |
2739 | esac | |
2740 | ||
631ef239 AC |
2741 | { echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 |
2742 | echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6; } | |
212380e3 AC |
2743 | case `$CC -V 2>&1` in |
2744 | *Sun*WorkShop* | *Forte*Developer*) | |
631ef239 AC |
2745 | { echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5 |
2746 | echo "${ECHO_T}Sun Workshop/Forte" >&6; } | |
212380e3 AC |
2747 | IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" |
2748 | SunWorkShop=yes | |
2749 | SGS=yes | |
2750 | ;; | |
2751 | *Tru64*) | |
631ef239 AC |
2752 | { echo "$as_me:$LINENO: result: Tru64 cc" >&5 |
2753 | echo "${ECHO_T}Tru64 cc" >&6; } | |
212380e3 AC |
2754 | IRC_CFLAGS="-O2" |
2755 | CPPFLAGS="-I/usr/local/include" | |
2756 | Tru=yes | |
2757 | ;; | |
2758 | *HP*ANSI*) | |
631ef239 AC |
2759 | { echo "$as_me:$LINENO: result: HPUX cc" >&5 |
2760 | echo "${ECHO_T}HPUX cc" >&6; } | |
212380e3 AC |
2761 | HPUX=yes |
2762 | IRC_CFLAGS="+e" | |
2763 | ;; | |
2764 | *) | |
631ef239 AC |
2765 | { echo "$as_me:$LINENO: result: no" >&5 |
2766 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2767 | ;; |
2768 | esac | |
2769 | ||
2770 | fi | |
2771 | ||
631ef239 AC |
2772 | { echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris, AIX or HPUX" >&5 |
2773 | echo $ECHO_N "checking uname -s for Cygwin, Solaris, AIX or HPUX... $ECHO_C" >&6; } | |
212380e3 AC |
2774 | OSNAME=`uname -s` |
2775 | case "$OSNAME" in | |
2776 | HP-UX*) | |
2777 | ||
2778 | if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then | |
631ef239 AC |
2779 | { echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5 |
2780 | echo "${ECHO_T}assuming old HPUX with its own cc" >&6; } | |
212380e3 AC |
2781 | IRC_CFLAGS="$IRC_CFLAGS +e" |
2782 | HPUX=yes | |
2783 | else | |
631ef239 AC |
2784 | { echo "$as_me:$LINENO: result: already using newer HPUX" >&5 |
2785 | echo "${ECHO_T}already using newer HPUX" >&6; } | |
212380e3 AC |
2786 | fi |
2787 | ;; | |
2788 | CYGWIN*) | |
631ef239 AC |
2789 | { echo "$as_me:$LINENO: result: Cygwin" >&5 |
2790 | echo "${ECHO_T}Cygwin" >&6; } | |
212380e3 AC |
2791 | CYGWIN=yes |
2792 | ;; | |
2793 | SunOS*) | |
631ef239 AC |
2794 | { echo "$as_me:$LINENO: result: SunOS or Solaris" >&5 |
2795 | echo "${ECHO_T}SunOS or Solaris" >&6; } | |
212380e3 AC |
2796 | |
2797 | cat >>confdefs.h <<\_ACEOF | |
2798 | #define __EXTENSIONS__ 1 | |
2799 | _ACEOF | |
2800 | ||
2801 | SUN=yes | |
2802 | ;; | |
2803 | AIX*) | |
631ef239 AC |
2804 | { echo "$as_me:$LINENO: result: AIX - Sorry you poor bastard..really we are" >&5 |
2805 | echo "${ECHO_T}AIX - Sorry you poor bastard..really we are" >&6; } | |
212380e3 AC |
2806 | IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G" |
2807 | ;; | |
2808 | *) | |
631ef239 AC |
2809 | { echo "$as_me:$LINENO: result: no" >&5 |
2810 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2811 | ;; |
2812 | esac | |
2813 | ||
2814 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
631ef239 AC |
2815 | { echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5 |
2816 | echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; } | |
212380e3 AC |
2817 | |
2818 | case `$CC -v 2>&1 | tail -n 1` in | |
2819 | *Apple*) | |
631ef239 AC |
2820 | { echo "$as_me:$LINENO: result: yes" >&5 |
2821 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
2822 | AppleGCC=yes |
2823 | ;; | |
2824 | *) | |
631ef239 AC |
2825 | { echo "$as_me:$LINENO: result: no" >&5 |
2826 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2827 | AppleGCC=no |
2828 | ;; | |
2829 | esac | |
2830 | ||
2831 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall" | |
2832 | fi | |
2833 | ||
2834 | if test "$ac_cv_prog_cc_g" = yes; then | |
2835 | if test "$Tru" = yes; then | |
2836 | IRC_CFLAGS="$IRC_CFLAGS -g3" | |
2837 | else | |
2838 | IRC_CFLAGS="$IRC_CFLAGS -g" | |
2839 | fi | |
2840 | fi | |
2841 | ||
631ef239 AC |
2842 | { echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5 |
2843 | echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; } | |
212380e3 | 2844 | if test "$SGS" = "yes"; then |
631ef239 AC |
2845 | { echo "$as_me:$LINENO: result: yes" >&5 |
2846 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 2847 | else |
631ef239 AC |
2848 | { echo "$as_me:$LINENO: result: no" >&5 |
2849 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2850 | fi |
2851 | ||
2852 | # Extract the first word of "mkdep", so it can be a program name with args. | |
2853 | set dummy mkdep; ac_word=$2 | |
631ef239 AC |
2854 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
2856 | if test "${ac_cv_path_MKDEP+set}" = set; then |
2857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2858 | else | |
2859 | case $MKDEP in | |
2860 | [\\/]* | ?:[\\/]*) | |
2861 | ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. | |
2862 | ;; | |
2863 | *) | |
2864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2865 | for as_dir in $PATH | |
2866 | do | |
2867 | IFS=$as_save_IFS | |
2868 | test -z "$as_dir" && as_dir=. | |
2869 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2870 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
2871 | ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" |
2872 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2873 | break 2 | |
2874 | fi | |
2875 | done | |
2876 | done | |
631ef239 | 2877 | IFS=$as_save_IFS |
212380e3 AC |
2878 | |
2879 | ;; | |
2880 | esac | |
2881 | fi | |
2882 | MKDEP=$ac_cv_path_MKDEP | |
212380e3 | 2883 | if test -n "$MKDEP"; then |
631ef239 AC |
2884 | { echo "$as_me:$LINENO: result: $MKDEP" >&5 |
2885 | echo "${ECHO_T}$MKDEP" >&6; } | |
212380e3 | 2886 | else |
631ef239 AC |
2887 | { echo "$as_me:$LINENO: result: no" >&5 |
2888 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2889 | fi |
2890 | ||
631ef239 | 2891 | |
212380e3 AC |
2892 | # Extract the first word of "makedepend", so it can be a program name with args. |
2893 | set dummy makedepend; ac_word=$2 | |
631ef239 AC |
2894 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
2896 | if test "${ac_cv_path_MAKEDEPEND+set}" = set; then |
2897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2898 | else | |
2899 | case $MAKEDEPEND in | |
2900 | [\\/]* | ?:[\\/]*) | |
2901 | ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. | |
2902 | ;; | |
2903 | *) | |
2904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2905 | for as_dir in $PATH | |
2906 | do | |
2907 | IFS=$as_save_IFS | |
2908 | test -z "$as_dir" && as_dir=. | |
2909 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2910 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
2911 | ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" |
2912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2913 | break 2 | |
2914 | fi | |
2915 | done | |
2916 | done | |
631ef239 | 2917 | IFS=$as_save_IFS |
212380e3 AC |
2918 | |
2919 | ;; | |
2920 | esac | |
2921 | fi | |
2922 | MAKEDEPEND=$ac_cv_path_MAKEDEPEND | |
212380e3 | 2923 | if test -n "$MAKEDEPEND"; then |
631ef239 AC |
2924 | { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5 |
2925 | echo "${ECHO_T}$MAKEDEPEND" >&6; } | |
212380e3 | 2926 | else |
631ef239 AC |
2927 | { echo "$as_me:$LINENO: result: no" >&5 |
2928 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2929 | fi |
2930 | ||
2931 | ||
631ef239 AC |
2932 | |
2933 | { echo "$as_me:$LINENO: checking how to generate dependency info" >&5 | |
2934 | echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; } | |
212380e3 AC |
2935 | |
2936 | STDOUT="> .depend" | |
2937 | ||
2938 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
631ef239 AC |
2939 | { echo "$as_me:$LINENO: result: gcc -MM" >&5 |
2940 | echo "${ECHO_T}gcc -MM" >&6; } | |
212380e3 AC |
2941 | MKDEP="$CC -MM" |
2942 | elif test ! -z "$MKDEP"; then | |
631ef239 AC |
2943 | { echo "$as_me:$LINENO: result: mkdep" >&5 |
2944 | echo "${ECHO_T}mkdep" >&6; } | |
212380e3 AC |
2945 | |
2946 | if test -z "$Tru"; then | |
2947 | STDOUT="" | |
2948 | else | |
2949 | STDOUT=" 2> /dev/null" | |
2950 | fi | |
2951 | elif test "$SunWorkShop" = yes; then | |
631ef239 AC |
2952 | { echo "$as_me:$LINENO: result: $CC -xM" >&5 |
2953 | echo "${ECHO_T}$CC -xM" >&6; } | |
212380e3 AC |
2954 | MKDEP="$CC -xM" |
2955 | STDOUT="> .depend 2> /dev/null" | |
2956 | elif test ! -z "$MAKEDEPEND"; then | |
631ef239 AC |
2957 | { echo "$as_me:$LINENO: result: makedepend" >&5 |
2958 | echo "${ECHO_T}makedepend" >&6; } | |
212380e3 AC |
2959 | MKDEP="$MAKEDEPEND -f-" |
2960 | else | |
631ef239 AC |
2961 | { echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5 |
2962 | echo "${ECHO_T}nothing suitable.. forget it!" >&6; } | |
212380e3 AC |
2963 | MKDEP=":" |
2964 | fi | |
2965 | ||
2966 | ||
2967 | ||
2968 | ||
631ef239 AC |
2969 | { echo "$as_me:$LINENO: checking for /dev/null" >&5 |
2970 | echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; } | |
212380e3 AC |
2971 | if test -c /dev/null ; then |
2972 | ||
2973 | cat >>confdefs.h <<\_ACEOF | |
2974 | #define PATH_DEVNULL "/dev/null" | |
2975 | _ACEOF | |
2976 | ||
631ef239 AC |
2977 | { echo "$as_me:$LINENO: result: yes" >&5 |
2978 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
2979 | else |
2980 | ||
2981 | cat >>confdefs.h <<\_ACEOF | |
2982 | #define PATH_DEVNULL "devnull.log" | |
2983 | _ACEOF | |
2984 | ||
631ef239 AC |
2985 | { echo "$as_me:$LINENO: result: no - using devnull.log" >&5 |
2986 | echo "${ECHO_T}no - using devnull.log" >&6; } | |
212380e3 AC |
2987 | fi |
2988 | ||
2989 | if test ! -z "$CFLAGS"; then | |
2990 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
2991 | fi | |
2992 | ||
2993 | ||
631ef239 AC |
2994 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2995 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } | |
212380e3 AC |
2996 | if test "${ac_cv_search_strerror+set}" = set; then |
2997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2998 | else | |
2999 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
3000 | cat >conftest.$ac_ext <<_ACEOF |
3001 | /* confdefs.h. */ | |
3002 | _ACEOF | |
3003 | cat confdefs.h >>conftest.$ac_ext | |
3004 | cat >>conftest.$ac_ext <<_ACEOF | |
3005 | /* end confdefs.h. */ | |
3006 | ||
631ef239 AC |
3007 | /* Override any GCC internal prototype to avoid an error. |
3008 | Use char because int might match the return type of a GCC | |
3009 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
3010 | #ifdef __cplusplus |
3011 | extern "C" | |
3012 | #endif | |
212380e3 AC |
3013 | char strerror (); |
3014 | int | |
3015 | main () | |
3016 | { | |
631ef239 | 3017 | return strerror (); |
212380e3 AC |
3018 | ; |
3019 | return 0; | |
3020 | } | |
3021 | _ACEOF | |
631ef239 AC |
3022 | for ac_lib in '' cposix; do |
3023 | if test -z "$ac_lib"; then | |
3024 | ac_res="none required" | |
3025 | else | |
3026 | ac_res=-l$ac_lib | |
3027 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3028 | fi | |
3029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3030 | if { (ac_try="$ac_link" | |
3031 | case "(($ac_try" in | |
3032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3033 | *) ac_try_echo=$ac_try;; | |
3034 | esac | |
3035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3036 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
3037 | ac_status=$? |
3038 | grep -v '^ *+' conftest.er1 >conftest.err | |
3039 | rm -f conftest.er1 | |
3040 | cat conftest.err >&5 | |
3041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3042 | (exit $ac_status); } && { |
3043 | test -z "$ac_c_werror_flag" || | |
3044 | test ! -s conftest.err | |
3045 | } && test -s conftest$ac_exeext && | |
3046 | $as_test_x conftest$ac_exeext; then | |
3047 | ac_cv_search_strerror=$ac_res | |
212380e3 AC |
3048 | else |
3049 | echo "$as_me: failed program was:" >&5 | |
3050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3051 | ||
212380e3 | 3052 | |
631ef239 | 3053 | fi |
212380e3 | 3054 | |
631ef239 AC |
3055 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3056 | conftest$ac_exeext | |
3057 | if test "${ac_cv_search_strerror+set}" = set; then | |
3058 | break | |
212380e3 | 3059 | fi |
631ef239 AC |
3060 | done |
3061 | if test "${ac_cv_search_strerror+set}" = set; then | |
3062 | : | |
3063 | else | |
3064 | ac_cv_search_strerror=no | |
212380e3 | 3065 | fi |
631ef239 | 3066 | rm conftest.$ac_ext |
212380e3 AC |
3067 | LIBS=$ac_func_search_save_LIBS |
3068 | fi | |
631ef239 AC |
3069 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
3070 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } | |
3071 | ac_res=$ac_cv_search_strerror | |
3072 | if test "$ac_res" != no; then | |
3073 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
3074 | |
3075 | fi | |
3076 | ||
631ef239 AC |
3077 | { echo "$as_me:$LINENO: checking for inline" >&5 |
3078 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
212380e3 AC |
3079 | if test "${ac_cv_c_inline+set}" = set; then |
3080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3081 | else | |
3082 | ac_cv_c_inline=no | |
3083 | for ac_kw in inline __inline__ __inline; do | |
3084 | cat >conftest.$ac_ext <<_ACEOF | |
3085 | /* confdefs.h. */ | |
3086 | _ACEOF | |
3087 | cat confdefs.h >>conftest.$ac_ext | |
3088 | cat >>conftest.$ac_ext <<_ACEOF | |
3089 | /* end confdefs.h. */ | |
3090 | #ifndef __cplusplus | |
3091 | typedef int foo_t; | |
3092 | static $ac_kw foo_t static_foo () {return 0; } | |
3093 | $ac_kw foo_t foo () {return 0; } | |
3094 | #endif | |
3095 | ||
3096 | _ACEOF | |
3097 | rm -f conftest.$ac_objext | |
631ef239 AC |
3098 | if { (ac_try="$ac_compile" |
3099 | case "(($ac_try" in | |
3100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3101 | *) ac_try_echo=$ac_try;; | |
3102 | esac | |
3103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3104 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
3105 | ac_status=$? |
3106 | grep -v '^ *+' conftest.er1 >conftest.err | |
3107 | rm -f conftest.er1 | |
3108 | cat conftest.err >&5 | |
3109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3110 | (exit $ac_status); } && { |
3111 | test -z "$ac_c_werror_flag" || | |
3112 | test ! -s conftest.err | |
3113 | } && test -s conftest.$ac_objext; then | |
3114 | ac_cv_c_inline=$ac_kw | |
212380e3 AC |
3115 | else |
3116 | echo "$as_me: failed program was:" >&5 | |
3117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3118 | ||
631ef239 | 3119 | |
212380e3 | 3120 | fi |
631ef239 AC |
3121 | |
3122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3123 | test "$ac_cv_c_inline" != no && break | |
212380e3 AC |
3124 | done |
3125 | ||
3126 | fi | |
631ef239 AC |
3127 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3128 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
212380e3 AC |
3129 | |
3130 | ||
3131 | case $ac_cv_c_inline in | |
3132 | inline | yes) ;; | |
3133 | *) | |
3134 | case $ac_cv_c_inline in | |
3135 | no) ac_val=;; | |
3136 | *) ac_val=$ac_cv_c_inline;; | |
3137 | esac | |
3138 | cat >>confdefs.h <<_ACEOF | |
3139 | #ifndef __cplusplus | |
3140 | #define inline $ac_val | |
3141 | #endif | |
3142 | _ACEOF | |
3143 | ;; | |
3144 | esac | |
3145 | ||
3146 | ac_ext=c | |
3147 | ac_cpp='$CPP $CPPFLAGS' | |
3148 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3149 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3150 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 AC |
3151 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3152 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
212380e3 AC |
3153 | # On Suns, sometimes $CPP names a directory. |
3154 | if test -n "$CPP" && test -d "$CPP"; then | |
3155 | CPP= | |
3156 | fi | |
3157 | if test -z "$CPP"; then | |
3158 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3160 | else | |
3161 | # Double quotes because CPP needs to be expanded | |
3162 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3163 | do | |
3164 | ac_preproc_ok=false | |
3165 | for ac_c_preproc_warn_flag in '' yes | |
3166 | do | |
3167 | # Use a header file that comes with gcc, so configuring glibc | |
3168 | # with a fresh cross-compiler works. | |
3169 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3170 | # <limits.h> exists even on freestanding compilers. | |
3171 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3172 | # not just through cpp. "Syntax error" is here to catch this case. | |
3173 | cat >conftest.$ac_ext <<_ACEOF | |
3174 | /* confdefs.h. */ | |
3175 | _ACEOF | |
3176 | cat confdefs.h >>conftest.$ac_ext | |
3177 | cat >>conftest.$ac_ext <<_ACEOF | |
3178 | /* end confdefs.h. */ | |
3179 | #ifdef __STDC__ | |
3180 | # include <limits.h> | |
3181 | #else | |
3182 | # include <assert.h> | |
3183 | #endif | |
3184 | Syntax error | |
3185 | _ACEOF | |
631ef239 AC |
3186 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3187 | case "(($ac_try" in | |
3188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3189 | *) ac_try_echo=$ac_try;; | |
3190 | esac | |
3191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3192 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3193 | ac_status=$? |
3194 | grep -v '^ *+' conftest.er1 >conftest.err | |
3195 | rm -f conftest.er1 | |
3196 | cat conftest.err >&5 | |
3197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3198 | (exit $ac_status); } >/dev/null && { |
3199 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3200 | test ! -s conftest.err | |
3201 | }; then | |
212380e3 AC |
3202 | : |
3203 | else | |
3204 | echo "$as_me: failed program was:" >&5 | |
3205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3206 | ||
3207 | # Broken: fails on valid input. | |
3208 | continue | |
3209 | fi | |
631ef239 | 3210 | |
212380e3 AC |
3211 | rm -f conftest.err conftest.$ac_ext |
3212 | ||
631ef239 | 3213 | # OK, works on sane cases. Now check whether nonexistent headers |
212380e3 AC |
3214 | # can be detected and how. |
3215 | cat >conftest.$ac_ext <<_ACEOF | |
3216 | /* confdefs.h. */ | |
3217 | _ACEOF | |
3218 | cat confdefs.h >>conftest.$ac_ext | |
3219 | cat >>conftest.$ac_ext <<_ACEOF | |
3220 | /* end confdefs.h. */ | |
3221 | #include <ac_nonexistent.h> | |
3222 | _ACEOF | |
631ef239 AC |
3223 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3224 | case "(($ac_try" in | |
3225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3226 | *) ac_try_echo=$ac_try;; | |
3227 | esac | |
3228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3229 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3230 | ac_status=$? |
3231 | grep -v '^ *+' conftest.er1 >conftest.err | |
3232 | rm -f conftest.er1 | |
3233 | cat conftest.err >&5 | |
3234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3235 | (exit $ac_status); } >/dev/null && { |
3236 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3237 | test ! -s conftest.err | |
3238 | }; then | |
212380e3 AC |
3239 | # Broken: success on invalid input. |
3240 | continue | |
3241 | else | |
3242 | echo "$as_me: failed program was:" >&5 | |
3243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3244 | ||
3245 | # Passes both tests. | |
3246 | ac_preproc_ok=: | |
3247 | break | |
3248 | fi | |
631ef239 | 3249 | |
212380e3 AC |
3250 | rm -f conftest.err conftest.$ac_ext |
3251 | ||
3252 | done | |
3253 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3254 | rm -f conftest.err conftest.$ac_ext | |
3255 | if $ac_preproc_ok; then | |
3256 | break | |
3257 | fi | |
3258 | ||
3259 | done | |
3260 | ac_cv_prog_CPP=$CPP | |
3261 | ||
3262 | fi | |
3263 | CPP=$ac_cv_prog_CPP | |
3264 | else | |
3265 | ac_cv_prog_CPP=$CPP | |
3266 | fi | |
631ef239 AC |
3267 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3268 | echo "${ECHO_T}$CPP" >&6; } | |
212380e3 AC |
3269 | ac_preproc_ok=false |
3270 | for ac_c_preproc_warn_flag in '' yes | |
3271 | do | |
3272 | # Use a header file that comes with gcc, so configuring glibc | |
3273 | # with a fresh cross-compiler works. | |
3274 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3275 | # <limits.h> exists even on freestanding compilers. | |
3276 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3277 | # not just through cpp. "Syntax error" is here to catch this case. | |
3278 | cat >conftest.$ac_ext <<_ACEOF | |
3279 | /* confdefs.h. */ | |
3280 | _ACEOF | |
3281 | cat confdefs.h >>conftest.$ac_ext | |
3282 | cat >>conftest.$ac_ext <<_ACEOF | |
3283 | /* end confdefs.h. */ | |
3284 | #ifdef __STDC__ | |
3285 | # include <limits.h> | |
3286 | #else | |
3287 | # include <assert.h> | |
3288 | #endif | |
3289 | Syntax error | |
3290 | _ACEOF | |
631ef239 AC |
3291 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3292 | case "(($ac_try" in | |
3293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3294 | *) ac_try_echo=$ac_try;; | |
3295 | esac | |
3296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3297 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3298 | ac_status=$? |
3299 | grep -v '^ *+' conftest.er1 >conftest.err | |
3300 | rm -f conftest.er1 | |
3301 | cat conftest.err >&5 | |
3302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3303 | (exit $ac_status); } >/dev/null && { |
3304 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3305 | test ! -s conftest.err | |
3306 | }; then | |
212380e3 AC |
3307 | : |
3308 | else | |
3309 | echo "$as_me: failed program was:" >&5 | |
3310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3311 | ||
3312 | # Broken: fails on valid input. | |
3313 | continue | |
3314 | fi | |
631ef239 | 3315 | |
212380e3 AC |
3316 | rm -f conftest.err conftest.$ac_ext |
3317 | ||
631ef239 | 3318 | # OK, works on sane cases. Now check whether nonexistent headers |
212380e3 AC |
3319 | # can be detected and how. |
3320 | cat >conftest.$ac_ext <<_ACEOF | |
3321 | /* confdefs.h. */ | |
3322 | _ACEOF | |
3323 | cat confdefs.h >>conftest.$ac_ext | |
3324 | cat >>conftest.$ac_ext <<_ACEOF | |
3325 | /* end confdefs.h. */ | |
3326 | #include <ac_nonexistent.h> | |
3327 | _ACEOF | |
631ef239 AC |
3328 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3329 | case "(($ac_try" in | |
3330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3331 | *) ac_try_echo=$ac_try;; | |
3332 | esac | |
3333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3334 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3335 | ac_status=$? |
3336 | grep -v '^ *+' conftest.er1 >conftest.err | |
3337 | rm -f conftest.er1 | |
3338 | cat conftest.err >&5 | |
3339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3340 | (exit $ac_status); } >/dev/null && { |
3341 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3342 | test ! -s conftest.err | |
3343 | }; then | |
212380e3 AC |
3344 | # Broken: success on invalid input. |
3345 | continue | |
3346 | else | |
3347 | echo "$as_me: failed program was:" >&5 | |
3348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3349 | ||
3350 | # Passes both tests. | |
3351 | ac_preproc_ok=: | |
3352 | break | |
3353 | fi | |
631ef239 | 3354 | |
212380e3 AC |
3355 | rm -f conftest.err conftest.$ac_ext |
3356 | ||
3357 | done | |
3358 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3359 | rm -f conftest.err conftest.$ac_ext | |
3360 | if $ac_preproc_ok; then | |
3361 | : | |
3362 | else | |
3363 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3364 | See \`config.log' for more details." >&5 | |
3365 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3366 | See \`config.log' for more details." >&2;} | |
3367 | { (exit 1); exit 1; }; } | |
3368 | fi | |
3369 | ||
3370 | ac_ext=c | |
3371 | ac_cpp='$CPP $CPPFLAGS' | |
3372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3375 | ||
3376 | ||
631ef239 AC |
3377 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3378 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3379 | if test "${ac_cv_path_GREP+set}" = set; then | |
3380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3381 | else | |
3382 | # Extract the first word of "grep ggrep" to use in msg output | |
3383 | if test -z "$GREP"; then | |
3384 | set dummy grep ggrep; ac_prog_name=$2 | |
3385 | if test "${ac_cv_path_GREP+set}" = set; then | |
3386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3387 | else | |
3388 | ac_path_GREP_found=false | |
3389 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3391 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3392 | do | |
3393 | IFS=$as_save_IFS | |
3394 | test -z "$as_dir" && as_dir=. | |
3395 | for ac_prog in grep ggrep; do | |
3396 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3397 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3398 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3399 | # Check for GNU ac_path_GREP and select it if it is found. | |
3400 | # Check for GNU $ac_path_GREP | |
3401 | case `"$ac_path_GREP" --version 2>&1` in | |
3402 | *GNU*) | |
3403 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3404 | *) | |
3405 | ac_count=0 | |
3406 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3407 | while : | |
3408 | do | |
3409 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3410 | mv "conftest.tmp" "conftest.in" | |
3411 | cp "conftest.in" "conftest.nl" | |
3412 | echo 'GREP' >> "conftest.nl" | |
3413 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3414 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3415 | ac_count=`expr $ac_count + 1` | |
3416 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3417 | # Best one so far, save it but keep looking for a better one | |
3418 | ac_cv_path_GREP="$ac_path_GREP" | |
3419 | ac_path_GREP_max=$ac_count | |
3420 | fi | |
3421 | # 10*(2^10) chars as input seems more than enough | |
3422 | test $ac_count -gt 10 && break | |
3423 | done | |
3424 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3425 | esac | |
3426 | ||
3427 | ||
3428 | $ac_path_GREP_found && break 3 | |
3429 | done | |
3430 | done | |
3431 | ||
3432 | done | |
3433 | IFS=$as_save_IFS | |
3434 | ||
3435 | ||
3436 | fi | |
3437 | ||
3438 | GREP="$ac_cv_path_GREP" | |
3439 | if test -z "$GREP"; then | |
3440 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3441 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3442 | { (exit 1); exit 1; }; } | |
3443 | fi | |
3444 | ||
3445 | else | |
3446 | ac_cv_path_GREP=$GREP | |
3447 | fi | |
3448 | ||
3449 | ||
3450 | fi | |
3451 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3452 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3453 | GREP="$ac_cv_path_GREP" | |
3454 | ||
3455 | ||
3456 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3457 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3458 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3460 | else | |
3461 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3462 | then ac_cv_path_EGREP="$GREP -E" | |
3463 | else | |
3464 | # Extract the first word of "egrep" to use in msg output | |
3465 | if test -z "$EGREP"; then | |
3466 | set dummy egrep; ac_prog_name=$2 | |
3467 | if test "${ac_cv_path_EGREP+set}" = set; then | |
212380e3 AC |
3468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3469 | else | |
631ef239 AC |
3470 | ac_path_EGREP_found=false |
3471 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3473 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3474 | do | |
3475 | IFS=$as_save_IFS | |
3476 | test -z "$as_dir" && as_dir=. | |
3477 | for ac_prog in egrep; do | |
3478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3479 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3480 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3481 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3482 | # Check for GNU $ac_path_EGREP | |
3483 | case `"$ac_path_EGREP" --version 2>&1` in | |
3484 | *GNU*) | |
3485 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3486 | *) | |
3487 | ac_count=0 | |
3488 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3489 | while : | |
3490 | do | |
3491 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3492 | mv "conftest.tmp" "conftest.in" | |
3493 | cp "conftest.in" "conftest.nl" | |
3494 | echo 'EGREP' >> "conftest.nl" | |
3495 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3496 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3497 | ac_count=`expr $ac_count + 1` | |
3498 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3499 | # Best one so far, save it but keep looking for a better one | |
3500 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3501 | ac_path_EGREP_max=$ac_count | |
212380e3 | 3502 | fi |
631ef239 AC |
3503 | # 10*(2^10) chars as input seems more than enough |
3504 | test $ac_count -gt 10 && break | |
3505 | done | |
3506 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3507 | esac | |
3508 | ||
3509 | ||
3510 | $ac_path_EGREP_found && break 3 | |
3511 | done | |
3512 | done | |
3513 | ||
3514 | done | |
3515 | IFS=$as_save_IFS | |
3516 | ||
3517 | ||
3518 | fi | |
3519 | ||
3520 | EGREP="$ac_cv_path_EGREP" | |
3521 | if test -z "$EGREP"; then | |
3522 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3523 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3524 | { (exit 1); exit 1; }; } | |
3525 | fi | |
3526 | ||
3527 | else | |
3528 | ac_cv_path_EGREP=$EGREP | |
212380e3 | 3529 | fi |
631ef239 AC |
3530 | |
3531 | ||
3532 | fi | |
3533 | fi | |
3534 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3535 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3536 | EGREP="$ac_cv_path_EGREP" | |
212380e3 AC |
3537 | |
3538 | ||
3539 | if test $ac_cv_c_compiler_gnu = yes; then | |
631ef239 AC |
3540 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3541 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
212380e3 AC |
3542 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
3543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3544 | else | |
3545 | ac_pattern="Autoconf.*'x'" | |
3546 | cat >conftest.$ac_ext <<_ACEOF | |
3547 | /* confdefs.h. */ | |
3548 | _ACEOF | |
3549 | cat confdefs.h >>conftest.$ac_ext | |
3550 | cat >>conftest.$ac_ext <<_ACEOF | |
3551 | /* end confdefs.h. */ | |
3552 | #include <sgtty.h> | |
3553 | Autoconf TIOCGETP | |
3554 | _ACEOF | |
3555 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3556 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3557 | ac_cv_prog_gcc_traditional=yes | |
3558 | else | |
3559 | ac_cv_prog_gcc_traditional=no | |
3560 | fi | |
3561 | rm -f conftest* | |
3562 | ||
3563 | ||
3564 | if test $ac_cv_prog_gcc_traditional = no; then | |
3565 | cat >conftest.$ac_ext <<_ACEOF | |
3566 | /* confdefs.h. */ | |
3567 | _ACEOF | |
3568 | cat confdefs.h >>conftest.$ac_ext | |
3569 | cat >>conftest.$ac_ext <<_ACEOF | |
3570 | /* end confdefs.h. */ | |
3571 | #include <termio.h> | |
3572 | Autoconf TCGETA | |
3573 | _ACEOF | |
3574 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3575 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3576 | ac_cv_prog_gcc_traditional=yes | |
3577 | fi | |
3578 | rm -f conftest* | |
3579 | ||
3580 | fi | |
3581 | fi | |
631ef239 AC |
3582 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3583 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
212380e3 AC |
3584 | if test $ac_cv_prog_gcc_traditional = yes; then |
3585 | CC="$CC -traditional" | |
3586 | fi | |
3587 | fi | |
3588 | ||
631ef239 AC |
3589 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3590 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3591 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3592 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
3593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3594 | else | |
3595 | cat >conftest.make <<\_ACEOF | |
631ef239 | 3596 | SHELL = /bin/sh |
212380e3 | 3597 | all: |
631ef239 | 3598 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
212380e3 AC |
3599 | _ACEOF |
3600 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
631ef239 AC |
3601 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3602 | *@@@%%%=?*=@@@%%%*) | |
3603 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3604 | *) | |
3605 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3606 | esac | |
212380e3 AC |
3607 | rm -f conftest.make |
3608 | fi | |
631ef239 AC |
3609 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3610 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3611 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
3612 | SET_MAKE= |
3613 | else | |
631ef239 AC |
3614 | { echo "$as_me:$LINENO: result: no" >&5 |
3615 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3616 | SET_MAKE="MAKE=${MAKE-make}" |
3617 | fi | |
3618 | ||
3619 | ac_aux_dir= | |
631ef239 AC |
3620 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
3621 | if test -f "$ac_dir/install-sh"; then | |
212380e3 AC |
3622 | ac_aux_dir=$ac_dir |
3623 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3624 | break | |
631ef239 | 3625 | elif test -f "$ac_dir/install.sh"; then |
212380e3 AC |
3626 | ac_aux_dir=$ac_dir |
3627 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3628 | break | |
631ef239 | 3629 | elif test -f "$ac_dir/shtool"; then |
212380e3 AC |
3630 | ac_aux_dir=$ac_dir |
3631 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3632 | break | |
3633 | fi | |
3634 | done | |
3635 | if test -z "$ac_aux_dir"; then | |
631ef239 AC |
3636 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
3637 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
212380e3 AC |
3638 | { (exit 1); exit 1; }; } |
3639 | fi | |
631ef239 AC |
3640 | |
3641 | # These three variables are undocumented and unsupported, | |
3642 | # and are intended to be withdrawn in a future Autoconf release. | |
3643 | # They can cause serious problems if a builder's source tree is in a directory | |
3644 | # whose full name contains unusual characters. | |
3645 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3646 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3647 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3648 | ||
212380e3 AC |
3649 | |
3650 | # Find a good install program. We prefer a C program (faster), | |
3651 | # so one script is as good as another. But avoid the broken or | |
3652 | # incompatible versions: | |
3653 | # SysV /etc/install, /usr/sbin/install | |
3654 | # SunOS /usr/etc/install | |
3655 | # IRIX /sbin/install | |
3656 | # AIX /bin/install | |
3657 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3658 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3659 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3660 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3661 | # OS/2's system install, which has a completely different semantic | |
3662 | # ./install, which can be erroneously created by make from ./install.sh. | |
631ef239 AC |
3663 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3664 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
212380e3 AC |
3665 | if test -z "$INSTALL"; then |
3666 | if test "${ac_cv_path_install+set}" = set; then | |
3667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3668 | else | |
3669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3670 | for as_dir in $PATH | |
3671 | do | |
3672 | IFS=$as_save_IFS | |
3673 | test -z "$as_dir" && as_dir=. | |
3674 | # Account for people who put trailing slashes in PATH elements. | |
3675 | case $as_dir/ in | |
3676 | ./ | .// | /cC/* | \ | |
3677 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3678 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3679 | /usr/ucb/* ) ;; | |
3680 | *) | |
3681 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3682 | # Don't use installbsd from OSF since it installs stuff as root | |
3683 | # by default. | |
3684 | for ac_prog in ginstall scoinst install; do | |
3685 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3686 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
212380e3 AC |
3687 | if test $ac_prog = install && |
3688 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3689 | # AIX install. It has an incompatible calling convention. | |
3690 | : | |
3691 | elif test $ac_prog = install && | |
3692 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3693 | # program-specific install script used by HP pwplus--don't use. | |
3694 | : | |
3695 | else | |
3696 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3697 | break 3 | |
3698 | fi | |
3699 | fi | |
3700 | done | |
3701 | done | |
3702 | ;; | |
3703 | esac | |
3704 | done | |
631ef239 | 3705 | IFS=$as_save_IFS |
212380e3 AC |
3706 | |
3707 | ||
3708 | fi | |
3709 | if test "${ac_cv_path_install+set}" = set; then | |
3710 | INSTALL=$ac_cv_path_install | |
3711 | else | |
631ef239 AC |
3712 | # As a last resort, use the slow shell script. Don't cache a |
3713 | # value for INSTALL within a source directory, because that will | |
212380e3 | 3714 | # break other packages using the cache if that directory is |
631ef239 | 3715 | # removed, or if the value is a relative name. |
212380e3 AC |
3716 | INSTALL=$ac_install_sh |
3717 | fi | |
3718 | fi | |
631ef239 AC |
3719 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3720 | echo "${ECHO_T}$INSTALL" >&6; } | |
212380e3 AC |
3721 | |
3722 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3723 | # It thinks the first close brace ends the variable substitution. | |
3724 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3725 | ||
3726 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3727 | ||
3728 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3729 | ||
3730 | # Extract the first word of "rm", so it can be a program name with args. | |
3731 | set dummy rm; ac_word=$2 | |
631ef239 AC |
3732 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3734 | if test "${ac_cv_path_RM+set}" = set; then |
3735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3736 | else | |
3737 | case $RM in | |
3738 | [\\/]* | ?:[\\/]*) | |
3739 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
3740 | ;; | |
3741 | *) | |
3742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3743 | for as_dir in $PATH | |
3744 | do | |
3745 | IFS=$as_save_IFS | |
3746 | test -z "$as_dir" && as_dir=. | |
3747 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3749 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
3750 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3751 | break 2 | |
3752 | fi | |
3753 | done | |
3754 | done | |
631ef239 | 3755 | IFS=$as_save_IFS |
212380e3 AC |
3756 | |
3757 | ;; | |
3758 | esac | |
3759 | fi | |
3760 | RM=$ac_cv_path_RM | |
212380e3 | 3761 | if test -n "$RM"; then |
631ef239 AC |
3762 | { echo "$as_me:$LINENO: result: $RM" >&5 |
3763 | echo "${ECHO_T}$RM" >&6; } | |
212380e3 | 3764 | else |
631ef239 AC |
3765 | { echo "$as_me:$LINENO: result: no" >&5 |
3766 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3767 | fi |
3768 | ||
631ef239 | 3769 | |
212380e3 AC |
3770 | # Extract the first word of "cp", so it can be a program name with args. |
3771 | set dummy cp; ac_word=$2 | |
631ef239 AC |
3772 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3774 | if test "${ac_cv_path_CP+set}" = set; then |
3775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3776 | else | |
3777 | case $CP in | |
3778 | [\\/]* | ?:[\\/]*) | |
3779 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
3780 | ;; | |
3781 | *) | |
3782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3783 | for as_dir in $PATH | |
3784 | do | |
3785 | IFS=$as_save_IFS | |
3786 | test -z "$as_dir" && as_dir=. | |
3787 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3788 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3789 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
3790 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3791 | break 2 | |
3792 | fi | |
3793 | done | |
3794 | done | |
631ef239 | 3795 | IFS=$as_save_IFS |
212380e3 AC |
3796 | |
3797 | ;; | |
3798 | esac | |
3799 | fi | |
3800 | CP=$ac_cv_path_CP | |
212380e3 | 3801 | if test -n "$CP"; then |
631ef239 AC |
3802 | { echo "$as_me:$LINENO: result: $CP" >&5 |
3803 | echo "${ECHO_T}$CP" >&6; } | |
212380e3 | 3804 | else |
631ef239 AC |
3805 | { echo "$as_me:$LINENO: result: no" >&5 |
3806 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3807 | fi |
3808 | ||
631ef239 | 3809 | |
212380e3 AC |
3810 | # Extract the first word of "mv", so it can be a program name with args. |
3811 | set dummy mv; ac_word=$2 | |
631ef239 AC |
3812 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3813 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3814 | if test "${ac_cv_path_MV+set}" = set; then |
3815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3816 | else | |
3817 | case $MV in | |
3818 | [\\/]* | ?:[\\/]*) | |
3819 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
3820 | ;; | |
3821 | *) | |
3822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3823 | for as_dir in $PATH | |
3824 | do | |
3825 | IFS=$as_save_IFS | |
3826 | test -z "$as_dir" && as_dir=. | |
3827 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3828 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3829 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
3830 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3831 | break 2 | |
3832 | fi | |
3833 | done | |
3834 | done | |
631ef239 | 3835 | IFS=$as_save_IFS |
212380e3 AC |
3836 | |
3837 | ;; | |
3838 | esac | |
3839 | fi | |
3840 | MV=$ac_cv_path_MV | |
212380e3 | 3841 | if test -n "$MV"; then |
631ef239 AC |
3842 | { echo "$as_me:$LINENO: result: $MV" >&5 |
3843 | echo "${ECHO_T}$MV" >&6; } | |
212380e3 | 3844 | else |
631ef239 AC |
3845 | { echo "$as_me:$LINENO: result: no" >&5 |
3846 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3847 | fi |
3848 | ||
631ef239 | 3849 | |
212380e3 AC |
3850 | # Extract the first word of "ln", so it can be a program name with args. |
3851 | set dummy ln; ac_word=$2 | |
631ef239 AC |
3852 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3854 | if test "${ac_cv_path_LN+set}" = set; then |
3855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3856 | else | |
3857 | case $LN in | |
3858 | [\\/]* | ?:[\\/]*) | |
3859 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
3860 | ;; | |
3861 | *) | |
3862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3863 | for as_dir in $PATH | |
3864 | do | |
3865 | IFS=$as_save_IFS | |
3866 | test -z "$as_dir" && as_dir=. | |
3867 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3868 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3869 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
3870 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3871 | break 2 | |
3872 | fi | |
3873 | done | |
3874 | done | |
631ef239 | 3875 | IFS=$as_save_IFS |
212380e3 AC |
3876 | |
3877 | ;; | |
3878 | esac | |
3879 | fi | |
3880 | LN=$ac_cv_path_LN | |
212380e3 | 3881 | if test -n "$LN"; then |
631ef239 AC |
3882 | { echo "$as_me:$LINENO: result: $LN" >&5 |
3883 | echo "${ECHO_T}$LN" >&6; } | |
212380e3 | 3884 | else |
631ef239 AC |
3885 | { echo "$as_me:$LINENO: result: no" >&5 |
3886 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3887 | fi |
3888 | ||
631ef239 | 3889 | |
212380e3 AC |
3890 | # Extract the first word of "sed", so it can be a program name with args. |
3891 | set dummy sed; ac_word=$2 | |
631ef239 AC |
3892 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3893 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3894 | if test "${ac_cv_path_SED+set}" = set; then |
3895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3896 | else | |
3897 | case $SED in | |
3898 | [\\/]* | ?:[\\/]*) | |
3899 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
3900 | ;; | |
3901 | *) | |
3902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3903 | for as_dir in $PATH | |
3904 | do | |
3905 | IFS=$as_save_IFS | |
3906 | test -z "$as_dir" && as_dir=. | |
3907 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3908 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3909 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
3910 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3911 | break 2 | |
3912 | fi | |
3913 | done | |
3914 | done | |
631ef239 | 3915 | IFS=$as_save_IFS |
212380e3 AC |
3916 | |
3917 | ;; | |
3918 | esac | |
3919 | fi | |
3920 | SED=$ac_cv_path_SED | |
212380e3 | 3921 | if test -n "$SED"; then |
631ef239 AC |
3922 | { echo "$as_me:$LINENO: result: $SED" >&5 |
3923 | echo "${ECHO_T}$SED" >&6; } | |
212380e3 | 3924 | else |
631ef239 AC |
3925 | { echo "$as_me:$LINENO: result: no" >&5 |
3926 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3927 | fi |
3928 | ||
631ef239 | 3929 | |
212380e3 AC |
3930 | # Extract the first word of "ar", so it can be a program name with args. |
3931 | set dummy ar; ac_word=$2 | |
631ef239 AC |
3932 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3933 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3934 | if test "${ac_cv_path_AR+set}" = set; then |
3935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3936 | else | |
3937 | case $AR in | |
3938 | [\\/]* | ?:[\\/]*) | |
3939 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
3940 | ;; | |
3941 | *) | |
3942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3943 | for as_dir in $PATH | |
3944 | do | |
3945 | IFS=$as_save_IFS | |
3946 | test -z "$as_dir" && as_dir=. | |
3947 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3948 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3949 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
3950 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3951 | break 2 | |
3952 | fi | |
3953 | done | |
3954 | done | |
631ef239 | 3955 | IFS=$as_save_IFS |
212380e3 AC |
3956 | |
3957 | ;; | |
3958 | esac | |
3959 | fi | |
3960 | AR=$ac_cv_path_AR | |
212380e3 | 3961 | if test -n "$AR"; then |
631ef239 AC |
3962 | { echo "$as_me:$LINENO: result: $AR" >&5 |
3963 | echo "${ECHO_T}$AR" >&6; } | |
212380e3 | 3964 | else |
631ef239 AC |
3965 | { echo "$as_me:$LINENO: result: no" >&5 |
3966 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3967 | fi |
3968 | ||
631ef239 | 3969 | |
212380e3 AC |
3970 | # Extract the first word of "ld", so it can be a program name with args. |
3971 | set dummy ld; ac_word=$2 | |
631ef239 AC |
3972 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3973 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3974 | if test "${ac_cv_path_LD+set}" = set; then |
3975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3976 | else | |
3977 | case $LD in | |
3978 | [\\/]* | ?:[\\/]*) | |
3979 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
3980 | ;; | |
3981 | *) | |
3982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3983 | for as_dir in $PATH | |
3984 | do | |
3985 | IFS=$as_save_IFS | |
3986 | test -z "$as_dir" && as_dir=. | |
3987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3988 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3989 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
3990 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3991 | break 2 | |
3992 | fi | |
3993 | done | |
3994 | done | |
631ef239 | 3995 | IFS=$as_save_IFS |
212380e3 AC |
3996 | |
3997 | ;; | |
3998 | esac | |
3999 | fi | |
4000 | LD=$ac_cv_path_LD | |
212380e3 | 4001 | if test -n "$LD"; then |
631ef239 AC |
4002 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4003 | echo "${ECHO_T}$LD" >&6; } | |
212380e3 | 4004 | else |
631ef239 AC |
4005 | { echo "$as_me:$LINENO: result: no" >&5 |
4006 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4007 | fi |
4008 | ||
631ef239 | 4009 | |
212380e3 AC |
4010 | # Extract the first word of "ranlib", so it can be a program name with args. |
4011 | set dummy ranlib; ac_word=$2 | |
631ef239 AC |
4012 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4013 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4014 | if test "${ac_cv_path_RANLIB+set}" = set; then |
4015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4016 | else | |
4017 | case $RANLIB in | |
4018 | [\\/]* | ?:[\\/]*) | |
4019 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
4020 | ;; | |
4021 | *) | |
4022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4023 | for as_dir in $PATH | |
4024 | do | |
4025 | IFS=$as_save_IFS | |
4026 | test -z "$as_dir" && as_dir=. | |
4027 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4028 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4029 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" |
4030 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4031 | break 2 | |
4032 | fi | |
4033 | done | |
4034 | done | |
631ef239 | 4035 | IFS=$as_save_IFS |
212380e3 AC |
4036 | |
4037 | ;; | |
4038 | esac | |
4039 | fi | |
4040 | RANLIB=$ac_cv_path_RANLIB | |
212380e3 | 4041 | if test -n "$RANLIB"; then |
631ef239 AC |
4042 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4043 | echo "${ECHO_T}$RANLIB" >&6; } | |
212380e3 | 4044 | else |
631ef239 AC |
4045 | { echo "$as_me:$LINENO: result: no" >&5 |
4046 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4047 | fi |
4048 | ||
631ef239 | 4049 | |
212380e3 AC |
4050 | # Extract the first word of "touch", so it can be a program name with args. |
4051 | set dummy touch; ac_word=$2 | |
631ef239 AC |
4052 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4053 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4054 | if test "${ac_cv_path_TOUCH+set}" = set; then |
4055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4056 | else | |
4057 | case $TOUCH in | |
4058 | [\\/]* | ?:[\\/]*) | |
4059 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
4060 | ;; | |
4061 | *) | |
4062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4063 | for as_dir in $PATH | |
4064 | do | |
4065 | IFS=$as_save_IFS | |
4066 | test -z "$as_dir" && as_dir=. | |
4067 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4068 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4069 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
4070 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4071 | break 2 | |
4072 | fi | |
4073 | done | |
4074 | done | |
631ef239 | 4075 | IFS=$as_save_IFS |
212380e3 AC |
4076 | |
4077 | ;; | |
4078 | esac | |
4079 | fi | |
4080 | TOUCH=$ac_cv_path_TOUCH | |
212380e3 | 4081 | if test -n "$TOUCH"; then |
631ef239 AC |
4082 | { echo "$as_me:$LINENO: result: $TOUCH" >&5 |
4083 | echo "${ECHO_T}$TOUCH" >&6; } | |
212380e3 | 4084 | else |
631ef239 AC |
4085 | { echo "$as_me:$LINENO: result: no" >&5 |
4086 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4087 | fi |
4088 | ||
4089 | ||
631ef239 | 4090 | |
212380e3 AC |
4091 | for ac_prog in 'bison -y' byacc |
4092 | do | |
4093 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4094 | set dummy $ac_prog; ac_word=$2 | |
631ef239 AC |
4095 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4096 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4097 | if test "${ac_cv_prog_YACC+set}" = set; then |
4098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4099 | else | |
4100 | if test -n "$YACC"; then | |
4101 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4102 | else | |
4103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4104 | for as_dir in $PATH | |
4105 | do | |
4106 | IFS=$as_save_IFS | |
4107 | test -z "$as_dir" && as_dir=. | |
4108 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4109 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4110 | ac_cv_prog_YACC="$ac_prog" |
4111 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4112 | break 2 | |
4113 | fi | |
4114 | done | |
4115 | done | |
631ef239 | 4116 | IFS=$as_save_IFS |
212380e3 AC |
4117 | |
4118 | fi | |
4119 | fi | |
4120 | YACC=$ac_cv_prog_YACC | |
4121 | if test -n "$YACC"; then | |
631ef239 AC |
4122 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
4123 | echo "${ECHO_T}$YACC" >&6; } | |
212380e3 | 4124 | else |
631ef239 AC |
4125 | { echo "$as_me:$LINENO: result: no" >&5 |
4126 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4127 | fi |
4128 | ||
631ef239 | 4129 | |
212380e3 AC |
4130 | test -n "$YACC" && break |
4131 | done | |
4132 | test -n "$YACC" || YACC="yacc" | |
4133 | ||
4134 | ||
4135 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then | |
4136 | { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5 | |
4137 | echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;} | |
4138 | { (exit 1); exit 1; }; } | |
4139 | fi | |
4140 | ||
4141 | for ac_prog in flex lex | |
4142 | do | |
4143 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4144 | set dummy $ac_prog; ac_word=$2 | |
631ef239 AC |
4145 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4147 | if test "${ac_cv_prog_LEX+set}" = set; then |
4148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4149 | else | |
4150 | if test -n "$LEX"; then | |
4151 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
4152 | else | |
4153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4154 | for as_dir in $PATH | |
4155 | do | |
4156 | IFS=$as_save_IFS | |
4157 | test -z "$as_dir" && as_dir=. | |
4158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4159 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4160 | ac_cv_prog_LEX="$ac_prog" |
4161 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4162 | break 2 | |
4163 | fi | |
4164 | done | |
4165 | done | |
631ef239 | 4166 | IFS=$as_save_IFS |
212380e3 AC |
4167 | |
4168 | fi | |
4169 | fi | |
4170 | LEX=$ac_cv_prog_LEX | |
4171 | if test -n "$LEX"; then | |
631ef239 AC |
4172 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
4173 | echo "${ECHO_T}$LEX" >&6; } | |
212380e3 | 4174 | else |
631ef239 AC |
4175 | { echo "$as_me:$LINENO: result: no" >&5 |
4176 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4177 | fi |
4178 | ||
631ef239 | 4179 | |
212380e3 AC |
4180 | test -n "$LEX" && break |
4181 | done | |
4182 | test -n "$LEX" || LEX=":" | |
4183 | ||
631ef239 AC |
4184 | if test "x$LEX" != "x:"; then |
4185 | cat >conftest.l <<_ACEOF | |
4186 | %% | |
4187 | a { ECHO; } | |
4188 | b { REJECT; } | |
4189 | c { yymore (); } | |
4190 | d { yyless (1); } | |
4191 | e { yyless (input () != 0); } | |
4192 | f { unput (yytext[0]); } | |
4193 | . { BEGIN INITIAL; } | |
4194 | %% | |
4195 | #ifdef YYTEXT_POINTER | |
4196 | extern char *yytext; | |
212380e3 | 4197 | #endif |
212380e3 | 4198 | int |
631ef239 | 4199 | main (void) |
212380e3 | 4200 | { |
631ef239 | 4201 | return ! yylex () + ! yywrap (); |
212380e3 AC |
4202 | } |
4203 | _ACEOF | |
631ef239 AC |
4204 | { (ac_try="$LEX conftest.l" |
4205 | case "(($ac_try" in | |
4206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4207 | *) ac_try_echo=$ac_try;; | |
4208 | esac | |
4209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4210 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 AC |
4211 | ac_status=$? |
4212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4213 | (exit $ac_status); } |
4214 | { echo "$as_me:$LINENO: checking lex output file root" >&5 | |
4215 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } | |
4216 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
4217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
212380e3 | 4218 | else |
212380e3 | 4219 | |
631ef239 AC |
4220 | if test -f lex.yy.c; then |
4221 | ac_cv_prog_lex_root=lex.yy | |
4222 | elif test -f lexyy.c; then | |
4223 | ac_cv_prog_lex_root=lexyy | |
212380e3 | 4224 | else |
631ef239 AC |
4225 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
4226 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
4227 | { (exit 1); exit 1; }; } | |
4228 | fi | |
4229 | fi | |
4230 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | |
4231 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } | |
4232 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
4233 | ||
4234 | if test -z "${LEXLIB+set}"; then | |
4235 | { echo "$as_me:$LINENO: checking lex library" >&5 | |
4236 | echo $ECHO_N "checking lex library... $ECHO_C" >&6; } | |
4237 | if test "${ac_cv_lib_lex+set}" = set; then | |
212380e3 AC |
4238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4239 | else | |
212380e3 | 4240 | |
631ef239 AC |
4241 | ac_save_LIBS=$LIBS |
4242 | ac_cv_lib_lex='none needed' | |
4243 | for ac_lib in '' -lfl -ll; do | |
4244 | LIBS="$ac_lib $ac_save_LIBS" | |
4245 | cat >conftest.$ac_ext <<_ACEOF | |
4246 | `cat $LEX_OUTPUT_ROOT.c` | |
212380e3 AC |
4247 | _ACEOF |
4248 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
4249 | if { (ac_try="$ac_link" |
4250 | case "(($ac_try" in | |
4251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4252 | *) ac_try_echo=$ac_try;; | |
4253 | esac | |
4254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4255 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
4256 | ac_status=$? |
4257 | grep -v '^ *+' conftest.er1 >conftest.err | |
4258 | rm -f conftest.er1 | |
4259 | cat conftest.err >&5 | |
4260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4261 | (exit $ac_status); } && { |
4262 | test -z "$ac_c_werror_flag" || | |
4263 | test ! -s conftest.err | |
4264 | } && test -s conftest$ac_exeext && | |
4265 | $as_test_x conftest$ac_exeext; then | |
4266 | ac_cv_lib_lex=$ac_lib | |
212380e3 AC |
4267 | else |
4268 | echo "$as_me: failed program was:" >&5 | |
4269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4270 | ||
212380e3 AC |
4271 | |
4272 | fi | |
4273 | ||
631ef239 AC |
4274 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4275 | conftest$ac_exeext conftest.$ac_ext | |
4276 | test "$ac_cv_lib_lex" != 'none needed' && break | |
4277 | done | |
4278 | LIBS=$ac_save_LIBS | |
212380e3 | 4279 | |
212380e3 | 4280 | fi |
631ef239 AC |
4281 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 |
4282 | echo "${ECHO_T}$ac_cv_lib_lex" >&6; } | |
4283 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
212380e3 | 4284 | fi |
212380e3 | 4285 | |
631ef239 AC |
4286 | |
4287 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | |
4288 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } | |
212380e3 AC |
4289 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
4290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4291 | else | |
4292 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
631ef239 | 4293 | # default is implementation-dependent. Figure out which it is, since |
212380e3 AC |
4294 | # not all implementations provide the %pointer and %array declarations. |
4295 | ac_cv_prog_lex_yytext_pointer=no | |
212380e3 | 4296 | ac_save_LIBS=$LIBS |
631ef239 | 4297 | LIBS="$LEXLIB $ac_save_LIBS" |
212380e3 | 4298 | cat >conftest.$ac_ext <<_ACEOF |
631ef239 | 4299 | #define YYTEXT_POINTER 1 |
212380e3 AC |
4300 | `cat $LEX_OUTPUT_ROOT.c` |
4301 | _ACEOF | |
4302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
4303 | if { (ac_try="$ac_link" |
4304 | case "(($ac_try" in | |
4305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4306 | *) ac_try_echo=$ac_try;; | |
4307 | esac | |
4308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4309 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
4310 | ac_status=$? |
4311 | grep -v '^ *+' conftest.er1 >conftest.err | |
4312 | rm -f conftest.er1 | |
4313 | cat conftest.err >&5 | |
4314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4315 | (exit $ac_status); } && { |
4316 | test -z "$ac_c_werror_flag" || | |
4317 | test ! -s conftest.err | |
4318 | } && test -s conftest$ac_exeext && | |
4319 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
4320 | ac_cv_prog_lex_yytext_pointer=yes |
4321 | else | |
4322 | echo "$as_me: failed program was:" >&5 | |
4323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4324 | ||
631ef239 | 4325 | |
212380e3 | 4326 | fi |
631ef239 AC |
4327 | |
4328 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
4329 | conftest$ac_exeext conftest.$ac_ext |
4330 | LIBS=$ac_save_LIBS | |
212380e3 AC |
4331 | |
4332 | fi | |
631ef239 AC |
4333 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
4334 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } | |
212380e3 AC |
4335 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
4336 | ||
4337 | cat >>confdefs.h <<\_ACEOF | |
4338 | #define YYTEXT_POINTER 1 | |
4339 | _ACEOF | |
4340 | ||
4341 | fi | |
631ef239 | 4342 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
212380e3 AC |
4343 | |
4344 | fi | |
4345 | ||
4346 | if test "$LEX" = ":"; then | |
4347 | { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5 | |
4348 | echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;} | |
4349 | { (exit 1); exit 1; }; } | |
4350 | fi | |
4351 | ||
4352 | if test "$libexecdir" = '${exec_prefix}/libexec' && | |
4353 | test "$localstatedir" = '${prefix}/var'; then | |
4354 | libexecdir='${bindir}' | |
4355 | localstatedir='${prefix}' | |
4356 | fi | |
4357 | ||
631ef239 AC |
4358 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4359 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
212380e3 AC |
4360 | if test "${ac_cv_header_stdc+set}" = set; then |
4361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4362 | else | |
4363 | cat >conftest.$ac_ext <<_ACEOF | |
4364 | /* confdefs.h. */ | |
4365 | _ACEOF | |
4366 | cat confdefs.h >>conftest.$ac_ext | |
4367 | cat >>conftest.$ac_ext <<_ACEOF | |
4368 | /* end confdefs.h. */ | |
4369 | #include <stdlib.h> | |
4370 | #include <stdarg.h> | |
4371 | #include <string.h> | |
4372 | #include <float.h> | |
4373 | ||
4374 | int | |
4375 | main () | |
4376 | { | |
4377 | ||
4378 | ; | |
4379 | return 0; | |
4380 | } | |
4381 | _ACEOF | |
4382 | rm -f conftest.$ac_objext | |
631ef239 AC |
4383 | if { (ac_try="$ac_compile" |
4384 | case "(($ac_try" in | |
4385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4386 | *) ac_try_echo=$ac_try;; | |
4387 | esac | |
4388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4389 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4390 | ac_status=$? |
4391 | grep -v '^ *+' conftest.er1 >conftest.err | |
4392 | rm -f conftest.er1 | |
4393 | cat conftest.err >&5 | |
4394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4395 | (exit $ac_status); } && { |
4396 | test -z "$ac_c_werror_flag" || | |
4397 | test ! -s conftest.err | |
4398 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4399 | ac_cv_header_stdc=yes |
4400 | else | |
4401 | echo "$as_me: failed program was:" >&5 | |
4402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4403 | ||
631ef239 | 4404 | ac_cv_header_stdc=no |
212380e3 | 4405 | fi |
631ef239 AC |
4406 | |
4407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
4408 | |
4409 | if test $ac_cv_header_stdc = yes; then | |
4410 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4411 | cat >conftest.$ac_ext <<_ACEOF | |
4412 | /* confdefs.h. */ | |
4413 | _ACEOF | |
4414 | cat confdefs.h >>conftest.$ac_ext | |
4415 | cat >>conftest.$ac_ext <<_ACEOF | |
4416 | /* end confdefs.h. */ | |
4417 | #include <string.h> | |
4418 | ||
4419 | _ACEOF | |
4420 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4421 | $EGREP "memchr" >/dev/null 2>&1; then | |
4422 | : | |
4423 | else | |
4424 | ac_cv_header_stdc=no | |
4425 | fi | |
4426 | rm -f conftest* | |
4427 | ||
4428 | fi | |
4429 | ||
4430 | if test $ac_cv_header_stdc = yes; then | |
4431 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4432 | cat >conftest.$ac_ext <<_ACEOF | |
4433 | /* confdefs.h. */ | |
4434 | _ACEOF | |
4435 | cat confdefs.h >>conftest.$ac_ext | |
4436 | cat >>conftest.$ac_ext <<_ACEOF | |
4437 | /* end confdefs.h. */ | |
4438 | #include <stdlib.h> | |
4439 | ||
4440 | _ACEOF | |
4441 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4442 | $EGREP "free" >/dev/null 2>&1; then | |
4443 | : | |
4444 | else | |
4445 | ac_cv_header_stdc=no | |
4446 | fi | |
4447 | rm -f conftest* | |
4448 | ||
4449 | fi | |
4450 | ||
4451 | if test $ac_cv_header_stdc = yes; then | |
4452 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4453 | if test "$cross_compiling" = yes; then | |
4454 | : | |
4455 | else | |
4456 | cat >conftest.$ac_ext <<_ACEOF | |
4457 | /* confdefs.h. */ | |
4458 | _ACEOF | |
4459 | cat confdefs.h >>conftest.$ac_ext | |
4460 | cat >>conftest.$ac_ext <<_ACEOF | |
4461 | /* end confdefs.h. */ | |
4462 | #include <ctype.h> | |
631ef239 | 4463 | #include <stdlib.h> |
212380e3 AC |
4464 | #if ((' ' & 0x0FF) == 0x020) |
4465 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4466 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4467 | #else | |
4468 | # define ISLOWER(c) \ | |
4469 | (('a' <= (c) && (c) <= 'i') \ | |
4470 | || ('j' <= (c) && (c) <= 'r') \ | |
4471 | || ('s' <= (c) && (c) <= 'z')) | |
4472 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4473 | #endif | |
4474 | ||
4475 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4476 | int | |
4477 | main () | |
4478 | { | |
4479 | int i; | |
4480 | for (i = 0; i < 256; i++) | |
4481 | if (XOR (islower (i), ISLOWER (i)) | |
4482 | || toupper (i) != TOUPPER (i)) | |
631ef239 AC |
4483 | return 2; |
4484 | return 0; | |
212380e3 AC |
4485 | } |
4486 | _ACEOF | |
4487 | rm -f conftest$ac_exeext | |
631ef239 AC |
4488 | if { (ac_try="$ac_link" |
4489 | case "(($ac_try" in | |
4490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4491 | *) ac_try_echo=$ac_try;; | |
4492 | esac | |
4493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4494 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
4495 | ac_status=$? |
4496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4497 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
4498 | { (case "(($ac_try" in |
4499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4500 | *) ac_try_echo=$ac_try;; | |
4501 | esac | |
4502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4503 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
4504 | ac_status=$? |
4505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4506 | (exit $ac_status); }; }; then | |
4507 | : | |
4508 | else | |
4509 | echo "$as_me: program exited with status $ac_status" >&5 | |
4510 | echo "$as_me: failed program was:" >&5 | |
4511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4512 | ||
4513 | ( exit $ac_status ) | |
4514 | ac_cv_header_stdc=no | |
4515 | fi | |
631ef239 | 4516 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 4517 | fi |
631ef239 AC |
4518 | |
4519 | ||
212380e3 AC |
4520 | fi |
4521 | fi | |
631ef239 AC |
4522 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4523 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
212380e3 AC |
4524 | if test $ac_cv_header_stdc = yes; then |
4525 | ||
4526 | cat >>confdefs.h <<\_ACEOF | |
4527 | #define STDC_HEADERS 1 | |
4528 | _ACEOF | |
4529 | ||
4530 | fi | |
4531 | ||
4532 | ||
4533 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4534 | ||
4535 | ||
4536 | ||
4537 | ||
4538 | ||
4539 | ||
4540 | ||
4541 | ||
4542 | ||
4543 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4544 | inttypes.h stdint.h unistd.h | |
4545 | do | |
4546 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
4547 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4548 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4549 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
4550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4551 | else | |
4552 | cat >conftest.$ac_ext <<_ACEOF | |
4553 | /* confdefs.h. */ | |
4554 | _ACEOF | |
4555 | cat confdefs.h >>conftest.$ac_ext | |
4556 | cat >>conftest.$ac_ext <<_ACEOF | |
4557 | /* end confdefs.h. */ | |
4558 | $ac_includes_default | |
4559 | ||
4560 | #include <$ac_header> | |
4561 | _ACEOF | |
4562 | rm -f conftest.$ac_objext | |
631ef239 AC |
4563 | if { (ac_try="$ac_compile" |
4564 | case "(($ac_try" in | |
4565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4566 | *) ac_try_echo=$ac_try;; | |
4567 | esac | |
4568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4569 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4570 | ac_status=$? |
4571 | grep -v '^ *+' conftest.er1 >conftest.err | |
4572 | rm -f conftest.er1 | |
4573 | cat conftest.err >&5 | |
4574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4575 | (exit $ac_status); } && { |
4576 | test -z "$ac_c_werror_flag" || | |
4577 | test ! -s conftest.err | |
4578 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4579 | eval "$as_ac_Header=yes" |
4580 | else | |
4581 | echo "$as_me: failed program was:" >&5 | |
4582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4583 | ||
631ef239 | 4584 | eval "$as_ac_Header=no" |
212380e3 | 4585 | fi |
631ef239 AC |
4586 | |
4587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 4588 | fi |
631ef239 AC |
4589 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4590 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4591 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
4592 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4593 | cat >>confdefs.h <<_ACEOF | |
4594 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4595 | _ACEOF | |
4596 | ||
4597 | fi | |
4598 | ||
4599 | done | |
4600 | ||
4601 | ||
4602 | ||
4603 | ||
4604 | ||
4605 | ||
4606 | ||
4607 | ||
4608 | ||
4609 | ||
4610 | ||
4611 | ||
4612 | ||
4613 | 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 | |
4614 | do | |
4615 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
4616 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4617 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4619 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
4620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4621 | fi | |
631ef239 AC |
4622 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4623 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4624 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
4625 | else |
4626 | # Is the header compilable? | |
631ef239 AC |
4627 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4628 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 AC |
4629 | cat >conftest.$ac_ext <<_ACEOF |
4630 | /* confdefs.h. */ | |
4631 | _ACEOF | |
4632 | cat confdefs.h >>conftest.$ac_ext | |
4633 | cat >>conftest.$ac_ext <<_ACEOF | |
4634 | /* end confdefs.h. */ | |
4635 | $ac_includes_default | |
4636 | #include <$ac_header> | |
4637 | _ACEOF | |
4638 | rm -f conftest.$ac_objext | |
631ef239 AC |
4639 | if { (ac_try="$ac_compile" |
4640 | case "(($ac_try" in | |
4641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4642 | *) ac_try_echo=$ac_try;; | |
4643 | esac | |
4644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4645 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4646 | ac_status=$? |
4647 | grep -v '^ *+' conftest.er1 >conftest.err | |
4648 | rm -f conftest.er1 | |
4649 | cat conftest.err >&5 | |
4650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4651 | (exit $ac_status); } && { |
4652 | test -z "$ac_c_werror_flag" || | |
4653 | test ! -s conftest.err | |
4654 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4655 | ac_header_compiler=yes |
4656 | else | |
4657 | echo "$as_me: failed program was:" >&5 | |
4658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4659 | ||
631ef239 | 4660 | ac_header_compiler=no |
212380e3 | 4661 | fi |
631ef239 AC |
4662 | |
4663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4664 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4665 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
4666 | |
4667 | # Is the header present? | |
631ef239 AC |
4668 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4669 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 AC |
4670 | cat >conftest.$ac_ext <<_ACEOF |
4671 | /* confdefs.h. */ | |
4672 | _ACEOF | |
4673 | cat confdefs.h >>conftest.$ac_ext | |
4674 | cat >>conftest.$ac_ext <<_ACEOF | |
4675 | /* end confdefs.h. */ | |
4676 | #include <$ac_header> | |
4677 | _ACEOF | |
631ef239 AC |
4678 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4679 | case "(($ac_try" in | |
4680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4681 | *) ac_try_echo=$ac_try;; | |
4682 | esac | |
4683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4684 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
4685 | ac_status=$? |
4686 | grep -v '^ *+' conftest.er1 >conftest.err | |
4687 | rm -f conftest.er1 | |
4688 | cat conftest.err >&5 | |
4689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4690 | (exit $ac_status); } >/dev/null && { |
4691 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4692 | test ! -s conftest.err | |
4693 | }; then | |
212380e3 AC |
4694 | ac_header_preproc=yes |
4695 | else | |
4696 | echo "$as_me: failed program was:" >&5 | |
4697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4698 | ||
4699 | ac_header_preproc=no | |
4700 | fi | |
631ef239 | 4701 | |
212380e3 | 4702 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
4703 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4704 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
4705 | |
4706 | # So? What about this header? | |
4707 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4708 | yes:no: ) | |
4709 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4710 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4711 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4712 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4713 | ac_header_preproc=yes | |
4714 | ;; | |
4715 | no:yes:* ) | |
4716 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4717 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4718 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4719 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4720 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4721 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4722 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4723 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4724 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4725 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4726 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4727 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 4728 | |
212380e3 AC |
4729 | ;; |
4730 | esac | |
631ef239 AC |
4731 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4732 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4733 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
4734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4735 | else | |
4736 | eval "$as_ac_Header=\$ac_header_preproc" | |
4737 | fi | |
631ef239 AC |
4738 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4739 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4740 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
4741 | |
4742 | fi | |
4743 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4744 | cat >>confdefs.h <<_ACEOF | |
4745 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4746 | _ACEOF | |
4747 | ||
4748 | fi | |
4749 | ||
4750 | done | |
4751 | ||
4752 | ||
4753 | ||
631ef239 AC |
4754 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4755 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
212380e3 AC |
4756 | if test "${ac_cv_c_const+set}" = set; then |
4757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4758 | else | |
4759 | cat >conftest.$ac_ext <<_ACEOF | |
4760 | /* confdefs.h. */ | |
4761 | _ACEOF | |
4762 | cat confdefs.h >>conftest.$ac_ext | |
4763 | cat >>conftest.$ac_ext <<_ACEOF | |
4764 | /* end confdefs.h. */ | |
4765 | ||
4766 | int | |
4767 | main () | |
4768 | { | |
4769 | /* FIXME: Include the comments suggested by Paul. */ | |
4770 | #ifndef __cplusplus | |
4771 | /* Ultrix mips cc rejects this. */ | |
4772 | typedef int charset[2]; | |
631ef239 | 4773 | const charset cs; |
212380e3 | 4774 | /* SunOS 4.1.1 cc rejects this. */ |
631ef239 AC |
4775 | char const *const *pcpcc; |
4776 | char **ppc; | |
212380e3 AC |
4777 | /* NEC SVR4.0.2 mips cc rejects this. */ |
4778 | struct point {int x, y;}; | |
4779 | static struct point const zero = {0,0}; | |
4780 | /* AIX XL C 1.02.0.0 rejects this. | |
4781 | It does not let you subtract one const X* pointer from another in | |
4782 | an arm of an if-expression whose if-part is not a constant | |
4783 | expression */ | |
4784 | const char *g = "string"; | |
631ef239 | 4785 | pcpcc = &g + (g ? g-g : 0); |
212380e3 | 4786 | /* HPUX 7.0 cc rejects these. */ |
631ef239 AC |
4787 | ++pcpcc; |
4788 | ppc = (char**) pcpcc; | |
4789 | pcpcc = (char const *const *) ppc; | |
212380e3 AC |
4790 | { /* SCO 3.2v4 cc rejects this. */ |
4791 | char *t; | |
4792 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4793 | ||
4794 | *t++ = 0; | |
631ef239 | 4795 | if (s) return 0; |
212380e3 AC |
4796 | } |
4797 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4798 | int x[] = {25, 17}; | |
4799 | const int *foo = &x[0]; | |
4800 | ++foo; | |
4801 | } | |
4802 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4803 | typedef const int *iptr; | |
4804 | iptr p = 0; | |
4805 | ++p; | |
4806 | } | |
4807 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4808 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4809 | struct s { int j; const int *ap[3]; }; | |
4810 | struct s *b; b->j = 5; | |
4811 | } | |
4812 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4813 | const int foo = 10; | |
631ef239 | 4814 | if (!foo) return 0; |
212380e3 | 4815 | } |
631ef239 | 4816 | return !cs[0] && !zero.x; |
212380e3 AC |
4817 | #endif |
4818 | ||
4819 | ; | |
4820 | return 0; | |
4821 | } | |
4822 | _ACEOF | |
4823 | rm -f conftest.$ac_objext | |
631ef239 AC |
4824 | if { (ac_try="$ac_compile" |
4825 | case "(($ac_try" in | |
4826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4827 | *) ac_try_echo=$ac_try;; | |
4828 | esac | |
4829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4830 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4831 | ac_status=$? |
4832 | grep -v '^ *+' conftest.er1 >conftest.err | |
4833 | rm -f conftest.er1 | |
4834 | cat conftest.err >&5 | |
4835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4836 | (exit $ac_status); } && { |
4837 | test -z "$ac_c_werror_flag" || | |
4838 | test ! -s conftest.err | |
4839 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4840 | ac_cv_c_const=yes |
4841 | else | |
4842 | echo "$as_me: failed program was:" >&5 | |
4843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4844 | ||
631ef239 | 4845 | ac_cv_c_const=no |
212380e3 | 4846 | fi |
631ef239 AC |
4847 | |
4848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 4849 | fi |
631ef239 AC |
4850 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4851 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
212380e3 AC |
4852 | if test $ac_cv_c_const = no; then |
4853 | ||
4854 | cat >>confdefs.h <<\_ACEOF | |
4855 | #define const | |
4856 | _ACEOF | |
4857 | ||
4858 | fi | |
4859 | ||
4860 | if test "$ac_cv_header_machine_endian_h" = "no" ; then | |
631ef239 AC |
4861 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
4862 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
212380e3 AC |
4863 | if test "${ac_cv_c_bigendian+set}" = set; then |
4864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4865 | else | |
4866 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4867 | cat >conftest.$ac_ext <<_ACEOF | |
4868 | /* confdefs.h. */ | |
4869 | _ACEOF | |
4870 | cat confdefs.h >>conftest.$ac_ext | |
4871 | cat >>conftest.$ac_ext <<_ACEOF | |
4872 | /* end confdefs.h. */ | |
4873 | #include <sys/types.h> | |
4874 | #include <sys/param.h> | |
4875 | ||
4876 | int | |
4877 | main () | |
4878 | { | |
631ef239 AC |
4879 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
4880 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
212380e3 AC |
4881 | bogus endian macros |
4882 | #endif | |
4883 | ||
4884 | ; | |
4885 | return 0; | |
4886 | } | |
4887 | _ACEOF | |
4888 | rm -f conftest.$ac_objext | |
631ef239 AC |
4889 | if { (ac_try="$ac_compile" |
4890 | case "(($ac_try" in | |
4891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4892 | *) ac_try_echo=$ac_try;; | |
4893 | esac | |
4894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4895 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4896 | ac_status=$? |
4897 | grep -v '^ *+' conftest.er1 >conftest.err | |
4898 | rm -f conftest.er1 | |
4899 | cat conftest.err >&5 | |
4900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4901 | (exit $ac_status); } && { |
4902 | test -z "$ac_c_werror_flag" || | |
4903 | test ! -s conftest.err | |
4904 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4905 | # It does; now see whether it defined to BIG_ENDIAN or not. |
4906 | cat >conftest.$ac_ext <<_ACEOF | |
4907 | /* confdefs.h. */ | |
4908 | _ACEOF | |
4909 | cat confdefs.h >>conftest.$ac_ext | |
4910 | cat >>conftest.$ac_ext <<_ACEOF | |
4911 | /* end confdefs.h. */ | |
4912 | #include <sys/types.h> | |
4913 | #include <sys/param.h> | |
4914 | ||
4915 | int | |
4916 | main () | |
4917 | { | |
4918 | #if BYTE_ORDER != BIG_ENDIAN | |
4919 | not big endian | |
4920 | #endif | |
4921 | ||
4922 | ; | |
4923 | return 0; | |
4924 | } | |
4925 | _ACEOF | |
4926 | rm -f conftest.$ac_objext | |
631ef239 AC |
4927 | if { (ac_try="$ac_compile" |
4928 | case "(($ac_try" in | |
4929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4930 | *) ac_try_echo=$ac_try;; | |
4931 | esac | |
4932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4933 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4934 | ac_status=$? |
4935 | grep -v '^ *+' conftest.er1 >conftest.err | |
4936 | rm -f conftest.er1 | |
4937 | cat conftest.err >&5 | |
4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4939 | (exit $ac_status); } && { |
4940 | test -z "$ac_c_werror_flag" || | |
4941 | test ! -s conftest.err | |
4942 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4943 | ac_cv_c_bigendian=yes |
4944 | else | |
4945 | echo "$as_me: failed program was:" >&5 | |
4946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4947 | ||
631ef239 | 4948 | ac_cv_c_bigendian=no |
212380e3 | 4949 | fi |
631ef239 AC |
4950 | |
4951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
4952 | else |
4953 | echo "$as_me: failed program was:" >&5 | |
4954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4955 | ||
631ef239 | 4956 | # It does not; compile a test program. |
212380e3 AC |
4957 | if test "$cross_compiling" = yes; then |
4958 | # try to guess the endianness by grepping values into an object file | |
4959 | ac_cv_c_bigendian=unknown | |
4960 | cat >conftest.$ac_ext <<_ACEOF | |
4961 | /* confdefs.h. */ | |
4962 | _ACEOF | |
4963 | cat confdefs.h >>conftest.$ac_ext | |
4964 | cat >>conftest.$ac_ext <<_ACEOF | |
4965 | /* end confdefs.h. */ | |
631ef239 AC |
4966 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
4967 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
212380e3 | 4968 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
631ef239 AC |
4969 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
4970 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
212380e3 AC |
4971 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
4972 | int | |
4973 | main () | |
4974 | { | |
4975 | _ascii (); _ebcdic (); | |
4976 | ; | |
4977 | return 0; | |
4978 | } | |
4979 | _ACEOF | |
4980 | rm -f conftest.$ac_objext | |
631ef239 AC |
4981 | if { (ac_try="$ac_compile" |
4982 | case "(($ac_try" in | |
4983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4984 | *) ac_try_echo=$ac_try;; | |
4985 | esac | |
4986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4987 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4988 | ac_status=$? |
4989 | grep -v '^ *+' conftest.er1 >conftest.err | |
4990 | rm -f conftest.er1 | |
4991 | cat conftest.err >&5 | |
4992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4993 | (exit $ac_status); } && { |
4994 | test -z "$ac_c_werror_flag" || | |
4995 | test ! -s conftest.err | |
4996 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4997 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
4998 | ac_cv_c_bigendian=yes | |
4999 | fi | |
5000 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5001 | if test "$ac_cv_c_bigendian" = unknown; then | |
5002 | ac_cv_c_bigendian=no | |
5003 | else | |
5004 | # finding both strings is unlikely to happen, but who knows? | |
5005 | ac_cv_c_bigendian=unknown | |
5006 | fi | |
5007 | fi | |
5008 | else | |
5009 | echo "$as_me: failed program was:" >&5 | |
5010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5011 | ||
631ef239 | 5012 | |
212380e3 | 5013 | fi |
631ef239 AC |
5014 | |
5015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5016 | else |
5017 | cat >conftest.$ac_ext <<_ACEOF | |
5018 | /* confdefs.h. */ | |
5019 | _ACEOF | |
5020 | cat confdefs.h >>conftest.$ac_ext | |
5021 | cat >>conftest.$ac_ext <<_ACEOF | |
5022 | /* end confdefs.h. */ | |
631ef239 | 5023 | $ac_includes_default |
212380e3 AC |
5024 | int |
5025 | main () | |
5026 | { | |
631ef239 | 5027 | |
212380e3 AC |
5028 | /* Are we little or big endian? From Harbison&Steele. */ |
5029 | union | |
5030 | { | |
631ef239 AC |
5031 | long int l; |
5032 | char c[sizeof (long int)]; | |
212380e3 AC |
5033 | } u; |
5034 | u.l = 1; | |
631ef239 AC |
5035 | return u.c[sizeof (long int) - 1] == 1; |
5036 | ||
5037 | ; | |
5038 | return 0; | |
212380e3 AC |
5039 | } |
5040 | _ACEOF | |
5041 | rm -f conftest$ac_exeext | |
631ef239 AC |
5042 | if { (ac_try="$ac_link" |
5043 | case "(($ac_try" in | |
5044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5045 | *) ac_try_echo=$ac_try;; | |
5046 | esac | |
5047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5048 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
5049 | ac_status=$? |
5050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5051 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
5052 | { (case "(($ac_try" in |
5053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5054 | *) ac_try_echo=$ac_try;; | |
5055 | esac | |
5056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5057 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
5058 | ac_status=$? |
5059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5060 | (exit $ac_status); }; }; then | |
5061 | ac_cv_c_bigendian=no | |
5062 | else | |
5063 | echo "$as_me: program exited with status $ac_status" >&5 | |
5064 | echo "$as_me: failed program was:" >&5 | |
5065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5066 | ||
5067 | ( exit $ac_status ) | |
5068 | ac_cv_c_bigendian=yes | |
5069 | fi | |
631ef239 | 5070 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5071 | fi |
631ef239 AC |
5072 | |
5073 | ||
212380e3 | 5074 | fi |
631ef239 AC |
5075 | |
5076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5077 | fi |
631ef239 AC |
5078 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
5079 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
212380e3 AC |
5080 | case $ac_cv_c_bigendian in |
5081 | yes) | |
5082 | ||
5083 | cat >>confdefs.h <<\_ACEOF | |
5084 | #define WORDS_BIGENDIAN 1 | |
5085 | _ACEOF | |
5086 | ;; | |
5087 | no) | |
5088 | ;; | |
5089 | *) | |
5090 | { { echo "$as_me:$LINENO: error: unknown endianness | |
5091 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
5092 | echo "$as_me: error: unknown endianness | |
5093 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
5094 | { (exit 1); exit 1; }; } ;; | |
5095 | esac | |
5096 | ||
5097 | fi | |
631ef239 AC |
5098 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5099 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
212380e3 AC |
5100 | if test "${ac_cv_type_pid_t+set}" = set; then |
5101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5102 | else | |
5103 | cat >conftest.$ac_ext <<_ACEOF | |
5104 | /* confdefs.h. */ | |
5105 | _ACEOF | |
5106 | cat confdefs.h >>conftest.$ac_ext | |
5107 | cat >>conftest.$ac_ext <<_ACEOF | |
5108 | /* end confdefs.h. */ | |
5109 | $ac_includes_default | |
631ef239 | 5110 | typedef pid_t ac__type_new_; |
212380e3 AC |
5111 | int |
5112 | main () | |
5113 | { | |
631ef239 | 5114 | if ((ac__type_new_ *) 0) |
212380e3 | 5115 | return 0; |
631ef239 | 5116 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5117 | return 0; |
5118 | ; | |
5119 | return 0; | |
5120 | } | |
5121 | _ACEOF | |
5122 | rm -f conftest.$ac_objext | |
631ef239 AC |
5123 | if { (ac_try="$ac_compile" |
5124 | case "(($ac_try" in | |
5125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5126 | *) ac_try_echo=$ac_try;; | |
5127 | esac | |
5128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5129 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5130 | ac_status=$? |
5131 | grep -v '^ *+' conftest.er1 >conftest.err | |
5132 | rm -f conftest.er1 | |
5133 | cat conftest.err >&5 | |
5134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5135 | (exit $ac_status); } && { |
5136 | test -z "$ac_c_werror_flag" || | |
5137 | test ! -s conftest.err | |
5138 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5139 | ac_cv_type_pid_t=yes |
5140 | else | |
5141 | echo "$as_me: failed program was:" >&5 | |
5142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5143 | ||
631ef239 | 5144 | ac_cv_type_pid_t=no |
212380e3 | 5145 | fi |
631ef239 AC |
5146 | |
5147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5148 | fi |
631ef239 AC |
5149 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5150 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
212380e3 AC |
5151 | if test $ac_cv_type_pid_t = yes; then |
5152 | : | |
5153 | else | |
5154 | ||
5155 | cat >>confdefs.h <<_ACEOF | |
5156 | #define pid_t int | |
5157 | _ACEOF | |
5158 | ||
5159 | fi | |
5160 | ||
631ef239 AC |
5161 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5162 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
212380e3 AC |
5163 | if test "${ac_cv_type_size_t+set}" = set; then |
5164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5165 | else | |
5166 | cat >conftest.$ac_ext <<_ACEOF | |
5167 | /* confdefs.h. */ | |
5168 | _ACEOF | |
5169 | cat confdefs.h >>conftest.$ac_ext | |
5170 | cat >>conftest.$ac_ext <<_ACEOF | |
5171 | /* end confdefs.h. */ | |
5172 | $ac_includes_default | |
631ef239 | 5173 | typedef size_t ac__type_new_; |
212380e3 AC |
5174 | int |
5175 | main () | |
5176 | { | |
631ef239 | 5177 | if ((ac__type_new_ *) 0) |
212380e3 | 5178 | return 0; |
631ef239 | 5179 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5180 | return 0; |
5181 | ; | |
5182 | return 0; | |
5183 | } | |
5184 | _ACEOF | |
5185 | rm -f conftest.$ac_objext | |
631ef239 AC |
5186 | if { (ac_try="$ac_compile" |
5187 | case "(($ac_try" in | |
5188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5189 | *) ac_try_echo=$ac_try;; | |
5190 | esac | |
5191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5192 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5193 | ac_status=$? |
5194 | grep -v '^ *+' conftest.er1 >conftest.err | |
5195 | rm -f conftest.er1 | |
5196 | cat conftest.err >&5 | |
5197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5198 | (exit $ac_status); } && { |
5199 | test -z "$ac_c_werror_flag" || | |
5200 | test ! -s conftest.err | |
5201 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5202 | ac_cv_type_size_t=yes |
5203 | else | |
5204 | echo "$as_me: failed program was:" >&5 | |
5205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5206 | ||
631ef239 | 5207 | ac_cv_type_size_t=no |
212380e3 | 5208 | fi |
631ef239 AC |
5209 | |
5210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5211 | fi |
631ef239 AC |
5212 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5213 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
212380e3 AC |
5214 | if test $ac_cv_type_size_t = yes; then |
5215 | : | |
5216 | else | |
5217 | ||
5218 | cat >>confdefs.h <<_ACEOF | |
631ef239 | 5219 | #define size_t unsigned int |
212380e3 AC |
5220 | _ACEOF |
5221 | ||
5222 | fi | |
5223 | ||
631ef239 AC |
5224 | { echo "$as_me:$LINENO: checking for short" >&5 |
5225 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } | |
212380e3 AC |
5226 | if test "${ac_cv_type_short+set}" = set; then |
5227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5228 | else | |
5229 | cat >conftest.$ac_ext <<_ACEOF | |
5230 | /* confdefs.h. */ | |
5231 | _ACEOF | |
5232 | cat confdefs.h >>conftest.$ac_ext | |
5233 | cat >>conftest.$ac_ext <<_ACEOF | |
5234 | /* end confdefs.h. */ | |
5235 | $ac_includes_default | |
631ef239 | 5236 | typedef short ac__type_new_; |
212380e3 AC |
5237 | int |
5238 | main () | |
5239 | { | |
631ef239 | 5240 | if ((ac__type_new_ *) 0) |
212380e3 | 5241 | return 0; |
631ef239 | 5242 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5243 | return 0; |
5244 | ; | |
5245 | return 0; | |
5246 | } | |
5247 | _ACEOF | |
5248 | rm -f conftest.$ac_objext | |
631ef239 AC |
5249 | if { (ac_try="$ac_compile" |
5250 | case "(($ac_try" in | |
5251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5252 | *) ac_try_echo=$ac_try;; | |
5253 | esac | |
5254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5255 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5256 | ac_status=$? |
5257 | grep -v '^ *+' conftest.er1 >conftest.err | |
5258 | rm -f conftest.er1 | |
5259 | cat conftest.err >&5 | |
5260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5261 | (exit $ac_status); } && { |
5262 | test -z "$ac_c_werror_flag" || | |
5263 | test ! -s conftest.err | |
5264 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5265 | ac_cv_type_short=yes |
5266 | else | |
5267 | echo "$as_me: failed program was:" >&5 | |
5268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5269 | ||
631ef239 | 5270 | ac_cv_type_short=no |
212380e3 | 5271 | fi |
631ef239 AC |
5272 | |
5273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5274 | fi |
631ef239 AC |
5275 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
5276 | echo "${ECHO_T}$ac_cv_type_short" >&6; } | |
212380e3 | 5277 | |
631ef239 AC |
5278 | # The cast to long int works around a bug in the HP C Compiler |
5279 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5280 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5281 | # This bug is HP SR number 8606223364. | |
5282 | { echo "$as_me:$LINENO: checking size of short" >&5 | |
5283 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } | |
212380e3 AC |
5284 | if test "${ac_cv_sizeof_short+set}" = set; then |
5285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5286 | else | |
212380e3 AC |
5287 | if test "$cross_compiling" = yes; then |
5288 | # Depending upon the size, compute the lo and hi bounds. | |
5289 | cat >conftest.$ac_ext <<_ACEOF | |
5290 | /* confdefs.h. */ | |
5291 | _ACEOF | |
5292 | cat confdefs.h >>conftest.$ac_ext | |
5293 | cat >>conftest.$ac_ext <<_ACEOF | |
5294 | /* end confdefs.h. */ | |
5295 | $ac_includes_default | |
631ef239 | 5296 | typedef short ac__type_sizeof_; |
212380e3 AC |
5297 | int |
5298 | main () | |
5299 | { | |
631ef239 | 5300 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
5301 | test_array [0] = 0 |
5302 | ||
5303 | ; | |
5304 | return 0; | |
5305 | } | |
5306 | _ACEOF | |
5307 | rm -f conftest.$ac_objext | |
631ef239 AC |
5308 | if { (ac_try="$ac_compile" |
5309 | case "(($ac_try" in | |
5310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5311 | *) ac_try_echo=$ac_try;; | |
5312 | esac | |
5313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5314 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5315 | ac_status=$? |
5316 | grep -v '^ *+' conftest.er1 >conftest.err | |
5317 | rm -f conftest.er1 | |
5318 | cat conftest.err >&5 | |
5319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5320 | (exit $ac_status); } && { |
5321 | test -z "$ac_c_werror_flag" || | |
5322 | test ! -s conftest.err | |
5323 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5324 | ac_lo=0 ac_mid=0 |
5325 | while :; do | |
5326 | cat >conftest.$ac_ext <<_ACEOF | |
5327 | /* confdefs.h. */ | |
5328 | _ACEOF | |
5329 | cat confdefs.h >>conftest.$ac_ext | |
5330 | cat >>conftest.$ac_ext <<_ACEOF | |
5331 | /* end confdefs.h. */ | |
5332 | $ac_includes_default | |
631ef239 | 5333 | typedef short ac__type_sizeof_; |
212380e3 AC |
5334 | int |
5335 | main () | |
5336 | { | |
631ef239 | 5337 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5338 | test_array [0] = 0 |
5339 | ||
5340 | ; | |
5341 | return 0; | |
5342 | } | |
5343 | _ACEOF | |
5344 | rm -f conftest.$ac_objext | |
631ef239 AC |
5345 | if { (ac_try="$ac_compile" |
5346 | case "(($ac_try" in | |
5347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5348 | *) ac_try_echo=$ac_try;; | |
5349 | esac | |
5350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5351 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5352 | ac_status=$? |
5353 | grep -v '^ *+' conftest.er1 >conftest.err | |
5354 | rm -f conftest.er1 | |
5355 | cat conftest.err >&5 | |
5356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5357 | (exit $ac_status); } && { |
5358 | test -z "$ac_c_werror_flag" || | |
5359 | test ! -s conftest.err | |
5360 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5361 | ac_hi=$ac_mid; break |
5362 | else | |
5363 | echo "$as_me: failed program was:" >&5 | |
5364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5365 | ||
631ef239 AC |
5366 | ac_lo=`expr $ac_mid + 1` |
5367 | if test $ac_lo -le $ac_mid; then | |
5368 | ac_lo= ac_hi= | |
5369 | break | |
5370 | fi | |
5371 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 5372 | fi |
631ef239 AC |
5373 | |
5374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5375 | done |
5376 | else | |
5377 | echo "$as_me: failed program was:" >&5 | |
5378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5379 | ||
631ef239 | 5380 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
5381 | /* confdefs.h. */ |
5382 | _ACEOF | |
5383 | cat confdefs.h >>conftest.$ac_ext | |
5384 | cat >>conftest.$ac_ext <<_ACEOF | |
5385 | /* end confdefs.h. */ | |
5386 | $ac_includes_default | |
631ef239 | 5387 | typedef short ac__type_sizeof_; |
212380e3 AC |
5388 | int |
5389 | main () | |
5390 | { | |
631ef239 | 5391 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
5392 | test_array [0] = 0 |
5393 | ||
5394 | ; | |
5395 | return 0; | |
5396 | } | |
5397 | _ACEOF | |
5398 | rm -f conftest.$ac_objext | |
631ef239 AC |
5399 | if { (ac_try="$ac_compile" |
5400 | case "(($ac_try" in | |
5401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5402 | *) ac_try_echo=$ac_try;; | |
5403 | esac | |
5404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5405 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5406 | ac_status=$? |
5407 | grep -v '^ *+' conftest.er1 >conftest.err | |
5408 | rm -f conftest.er1 | |
5409 | cat conftest.err >&5 | |
5410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5411 | (exit $ac_status); } && { |
5412 | test -z "$ac_c_werror_flag" || | |
5413 | test ! -s conftest.err | |
5414 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5415 | ac_hi=-1 ac_mid=-1 |
5416 | while :; do | |
5417 | cat >conftest.$ac_ext <<_ACEOF | |
5418 | /* confdefs.h. */ | |
5419 | _ACEOF | |
5420 | cat confdefs.h >>conftest.$ac_ext | |
5421 | cat >>conftest.$ac_ext <<_ACEOF | |
5422 | /* end confdefs.h. */ | |
5423 | $ac_includes_default | |
631ef239 | 5424 | typedef short ac__type_sizeof_; |
212380e3 AC |
5425 | int |
5426 | main () | |
5427 | { | |
631ef239 | 5428 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
5429 | test_array [0] = 0 |
5430 | ||
5431 | ; | |
5432 | return 0; | |
5433 | } | |
5434 | _ACEOF | |
5435 | rm -f conftest.$ac_objext | |
631ef239 AC |
5436 | if { (ac_try="$ac_compile" |
5437 | case "(($ac_try" in | |
5438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5439 | *) ac_try_echo=$ac_try;; | |
5440 | esac | |
5441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5442 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5443 | ac_status=$? |
5444 | grep -v '^ *+' conftest.er1 >conftest.err | |
5445 | rm -f conftest.er1 | |
5446 | cat conftest.err >&5 | |
5447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5448 | (exit $ac_status); } && { |
5449 | test -z "$ac_c_werror_flag" || | |
5450 | test ! -s conftest.err | |
5451 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5452 | ac_lo=$ac_mid; break |
5453 | else | |
5454 | echo "$as_me: failed program was:" >&5 | |
5455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5456 | ||
631ef239 AC |
5457 | ac_hi=`expr '(' $ac_mid ')' - 1` |
5458 | if test $ac_mid -le $ac_hi; then | |
5459 | ac_lo= ac_hi= | |
5460 | break | |
5461 | fi | |
5462 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 5463 | fi |
631ef239 AC |
5464 | |
5465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5466 | done |
5467 | else | |
5468 | echo "$as_me: failed program was:" >&5 | |
5469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5470 | ||
631ef239 | 5471 | ac_lo= ac_hi= |
212380e3 | 5472 | fi |
631ef239 AC |
5473 | |
5474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5475 | fi |
631ef239 AC |
5476 | |
5477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5478 | # Binary search between lo and hi bounds. |
5479 | while test "x$ac_lo" != "x$ac_hi"; do | |
5480 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5481 | cat >conftest.$ac_ext <<_ACEOF | |
5482 | /* confdefs.h. */ | |
5483 | _ACEOF | |
5484 | cat confdefs.h >>conftest.$ac_ext | |
5485 | cat >>conftest.$ac_ext <<_ACEOF | |
5486 | /* end confdefs.h. */ | |
5487 | $ac_includes_default | |
631ef239 | 5488 | typedef short ac__type_sizeof_; |
212380e3 AC |
5489 | int |
5490 | main () | |
5491 | { | |
631ef239 | 5492 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5493 | test_array [0] = 0 |
5494 | ||
5495 | ; | |
5496 | return 0; | |
5497 | } | |
5498 | _ACEOF | |
5499 | rm -f conftest.$ac_objext | |
631ef239 AC |
5500 | if { (ac_try="$ac_compile" |
5501 | case "(($ac_try" in | |
5502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5503 | *) ac_try_echo=$ac_try;; | |
5504 | esac | |
5505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5506 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5507 | ac_status=$? |
5508 | grep -v '^ *+' conftest.er1 >conftest.err | |
5509 | rm -f conftest.er1 | |
5510 | cat conftest.err >&5 | |
5511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5512 | (exit $ac_status); } && { |
5513 | test -z "$ac_c_werror_flag" || | |
5514 | test ! -s conftest.err | |
5515 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5516 | ac_hi=$ac_mid |
5517 | else | |
5518 | echo "$as_me: failed program was:" >&5 | |
5519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5520 | ||
631ef239 | 5521 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 5522 | fi |
631ef239 AC |
5523 | |
5524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5525 | done |
5526 | case $ac_lo in | |
5527 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
631ef239 AC |
5528 | '') if test "$ac_cv_type_short" = yes; then |
5529 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
212380e3 | 5530 | See \`config.log' for more details." >&5 |
631ef239 | 5531 | echo "$as_me: error: cannot compute sizeof (short) |
212380e3 | 5532 | See \`config.log' for more details." >&2;} |
631ef239 AC |
5533 | { (exit 77); exit 77; }; } |
5534 | else | |
5535 | ac_cv_sizeof_short=0 | |
5536 | fi ;; | |
212380e3 | 5537 | esac |
212380e3 AC |
5538 | else |
5539 | cat >conftest.$ac_ext <<_ACEOF | |
5540 | /* confdefs.h. */ | |
5541 | _ACEOF | |
5542 | cat confdefs.h >>conftest.$ac_ext | |
5543 | cat >>conftest.$ac_ext <<_ACEOF | |
5544 | /* end confdefs.h. */ | |
5545 | $ac_includes_default | |
631ef239 AC |
5546 | typedef short ac__type_sizeof_; |
5547 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5548 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
5549 | #include <stdio.h> |
5550 | #include <stdlib.h> | |
5551 | int | |
5552 | main () | |
5553 | { | |
5554 | ||
5555 | FILE *f = fopen ("conftest.val", "w"); | |
5556 | if (! f) | |
631ef239 AC |
5557 | return 1; |
5558 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 5559 | { |
631ef239 AC |
5560 | long int i = longval (); |
5561 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5562 | return 1; | |
212380e3 AC |
5563 | fprintf (f, "%ld\n", i); |
5564 | } | |
5565 | else | |
5566 | { | |
631ef239 AC |
5567 | unsigned long int i = ulongval (); |
5568 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5569 | return 1; | |
212380e3 AC |
5570 | fprintf (f, "%lu\n", i); |
5571 | } | |
631ef239 | 5572 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
5573 | |
5574 | ; | |
5575 | return 0; | |
5576 | } | |
5577 | _ACEOF | |
5578 | rm -f conftest$ac_exeext | |
631ef239 AC |
5579 | if { (ac_try="$ac_link" |
5580 | case "(($ac_try" in | |
5581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5582 | *) ac_try_echo=$ac_try;; | |
5583 | esac | |
5584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5585 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
5586 | ac_status=$? |
5587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5588 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
5589 | { (case "(($ac_try" in |
5590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5591 | *) ac_try_echo=$ac_try;; | |
5592 | esac | |
5593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5594 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
5595 | ac_status=$? |
5596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5597 | (exit $ac_status); }; }; then | |
5598 | ac_cv_sizeof_short=`cat conftest.val` | |
5599 | else | |
5600 | echo "$as_me: program exited with status $ac_status" >&5 | |
5601 | echo "$as_me: failed program was:" >&5 | |
5602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5603 | ||
5604 | ( exit $ac_status ) | |
631ef239 AC |
5605 | if test "$ac_cv_type_short" = yes; then |
5606 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
212380e3 | 5607 | See \`config.log' for more details." >&5 |
631ef239 | 5608 | echo "$as_me: error: cannot compute sizeof (short) |
212380e3 | 5609 | See \`config.log' for more details." >&2;} |
631ef239 AC |
5610 | { (exit 77); exit 77; }; } |
5611 | else | |
5612 | ac_cv_sizeof_short=0 | |
5613 | fi | |
212380e3 | 5614 | fi |
631ef239 | 5615 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
5616 | fi |
5617 | rm -f conftest.val | |
212380e3 | 5618 | fi |
631ef239 AC |
5619 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
5620 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } | |
5621 | ||
5622 | ||
5623 | ||
212380e3 AC |
5624 | cat >>confdefs.h <<_ACEOF |
5625 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
5626 | _ACEOF | |
5627 | ||
5628 | ||
631ef239 AC |
5629 | { echo "$as_me:$LINENO: checking for int" >&5 |
5630 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | |
212380e3 AC |
5631 | if test "${ac_cv_type_int+set}" = set; then |
5632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5633 | else | |
5634 | cat >conftest.$ac_ext <<_ACEOF | |
5635 | /* confdefs.h. */ | |
5636 | _ACEOF | |
5637 | cat confdefs.h >>conftest.$ac_ext | |
5638 | cat >>conftest.$ac_ext <<_ACEOF | |
5639 | /* end confdefs.h. */ | |
5640 | $ac_includes_default | |
631ef239 | 5641 | typedef int ac__type_new_; |
212380e3 AC |
5642 | int |
5643 | main () | |
5644 | { | |
631ef239 | 5645 | if ((ac__type_new_ *) 0) |
212380e3 | 5646 | return 0; |
631ef239 | 5647 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5648 | return 0; |
5649 | ; | |
5650 | return 0; | |
5651 | } | |
5652 | _ACEOF | |
5653 | rm -f conftest.$ac_objext | |
631ef239 AC |
5654 | if { (ac_try="$ac_compile" |
5655 | case "(($ac_try" in | |
5656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5657 | *) ac_try_echo=$ac_try;; | |
5658 | esac | |
5659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5660 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5661 | ac_status=$? |
5662 | grep -v '^ *+' conftest.er1 >conftest.err | |
5663 | rm -f conftest.er1 | |
5664 | cat conftest.err >&5 | |
5665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5666 | (exit $ac_status); } && { |
5667 | test -z "$ac_c_werror_flag" || | |
5668 | test ! -s conftest.err | |
5669 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5670 | ac_cv_type_int=yes |
5671 | else | |
5672 | echo "$as_me: failed program was:" >&5 | |
5673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5674 | ||
631ef239 | 5675 | ac_cv_type_int=no |
212380e3 | 5676 | fi |
631ef239 AC |
5677 | |
5678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5679 | fi |
631ef239 AC |
5680 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
5681 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | |
212380e3 | 5682 | |
631ef239 AC |
5683 | # The cast to long int works around a bug in the HP C Compiler |
5684 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5685 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5686 | # This bug is HP SR number 8606223364. | |
5687 | { echo "$as_me:$LINENO: checking size of int" >&5 | |
5688 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | |
212380e3 AC |
5689 | if test "${ac_cv_sizeof_int+set}" = set; then |
5690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5691 | else | |
212380e3 AC |
5692 | if test "$cross_compiling" = yes; then |
5693 | # Depending upon the size, compute the lo and hi bounds. | |
5694 | cat >conftest.$ac_ext <<_ACEOF | |
5695 | /* confdefs.h. */ | |
5696 | _ACEOF | |
5697 | cat confdefs.h >>conftest.$ac_ext | |
5698 | cat >>conftest.$ac_ext <<_ACEOF | |
5699 | /* end confdefs.h. */ | |
5700 | $ac_includes_default | |
631ef239 | 5701 | typedef int ac__type_sizeof_; |
212380e3 AC |
5702 | int |
5703 | main () | |
5704 | { | |
631ef239 | 5705 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
5706 | test_array [0] = 0 |
5707 | ||
5708 | ; | |
5709 | return 0; | |
5710 | } | |
5711 | _ACEOF | |
5712 | rm -f conftest.$ac_objext | |
631ef239 AC |
5713 | if { (ac_try="$ac_compile" |
5714 | case "(($ac_try" in | |
5715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5716 | *) ac_try_echo=$ac_try;; | |
5717 | esac | |
5718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5719 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5720 | ac_status=$? |
5721 | grep -v '^ *+' conftest.er1 >conftest.err | |
5722 | rm -f conftest.er1 | |
5723 | cat conftest.err >&5 | |
5724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5725 | (exit $ac_status); } && { |
5726 | test -z "$ac_c_werror_flag" || | |
5727 | test ! -s conftest.err | |
5728 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5729 | ac_lo=0 ac_mid=0 |
5730 | while :; do | |
5731 | cat >conftest.$ac_ext <<_ACEOF | |
5732 | /* confdefs.h. */ | |
5733 | _ACEOF | |
5734 | cat confdefs.h >>conftest.$ac_ext | |
5735 | cat >>conftest.$ac_ext <<_ACEOF | |
5736 | /* end confdefs.h. */ | |
5737 | $ac_includes_default | |
631ef239 | 5738 | typedef int ac__type_sizeof_; |
212380e3 AC |
5739 | int |
5740 | main () | |
5741 | { | |
631ef239 | 5742 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5743 | test_array [0] = 0 |
5744 | ||
5745 | ; | |
5746 | return 0; | |
5747 | } | |
5748 | _ACEOF | |
5749 | rm -f conftest.$ac_objext | |
631ef239 AC |
5750 | if { (ac_try="$ac_compile" |
5751 | case "(($ac_try" in | |
5752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5753 | *) ac_try_echo=$ac_try;; | |
5754 | esac | |
5755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5756 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5757 | ac_status=$? |
5758 | grep -v '^ *+' conftest.er1 >conftest.err | |
5759 | rm -f conftest.er1 | |
5760 | cat conftest.err >&5 | |
5761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5762 | (exit $ac_status); } && { |
5763 | test -z "$ac_c_werror_flag" || | |
5764 | test ! -s conftest.err | |
5765 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5766 | ac_hi=$ac_mid; break |
5767 | else | |
5768 | echo "$as_me: failed program was:" >&5 | |
5769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5770 | ||
631ef239 AC |
5771 | ac_lo=`expr $ac_mid + 1` |
5772 | if test $ac_lo -le $ac_mid; then | |
5773 | ac_lo= ac_hi= | |
5774 | break | |
5775 | fi | |
5776 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 5777 | fi |
631ef239 AC |
5778 | |
5779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5780 | done |
5781 | else | |
5782 | echo "$as_me: failed program was:" >&5 | |
5783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5784 | ||
631ef239 | 5785 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
5786 | /* confdefs.h. */ |
5787 | _ACEOF | |
5788 | cat confdefs.h >>conftest.$ac_ext | |
5789 | cat >>conftest.$ac_ext <<_ACEOF | |
5790 | /* end confdefs.h. */ | |
5791 | $ac_includes_default | |
631ef239 | 5792 | typedef int ac__type_sizeof_; |
212380e3 AC |
5793 | int |
5794 | main () | |
5795 | { | |
631ef239 | 5796 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
5797 | test_array [0] = 0 |
5798 | ||
5799 | ; | |
5800 | return 0; | |
5801 | } | |
5802 | _ACEOF | |
5803 | rm -f conftest.$ac_objext | |
631ef239 AC |
5804 | if { (ac_try="$ac_compile" |
5805 | case "(($ac_try" in | |
5806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5807 | *) ac_try_echo=$ac_try;; | |
5808 | esac | |
5809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5810 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5811 | ac_status=$? |
5812 | grep -v '^ *+' conftest.er1 >conftest.err | |
5813 | rm -f conftest.er1 | |
5814 | cat conftest.err >&5 | |
5815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5816 | (exit $ac_status); } && { |
5817 | test -z "$ac_c_werror_flag" || | |
5818 | test ! -s conftest.err | |
5819 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5820 | ac_hi=-1 ac_mid=-1 |
5821 | while :; do | |
5822 | cat >conftest.$ac_ext <<_ACEOF | |
5823 | /* confdefs.h. */ | |
5824 | _ACEOF | |
5825 | cat confdefs.h >>conftest.$ac_ext | |
5826 | cat >>conftest.$ac_ext <<_ACEOF | |
5827 | /* end confdefs.h. */ | |
5828 | $ac_includes_default | |
631ef239 | 5829 | typedef int ac__type_sizeof_; |
212380e3 AC |
5830 | int |
5831 | main () | |
5832 | { | |
631ef239 | 5833 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
5834 | test_array [0] = 0 |
5835 | ||
5836 | ; | |
5837 | return 0; | |
5838 | } | |
5839 | _ACEOF | |
5840 | rm -f conftest.$ac_objext | |
631ef239 AC |
5841 | if { (ac_try="$ac_compile" |
5842 | case "(($ac_try" in | |
5843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5844 | *) ac_try_echo=$ac_try;; | |
5845 | esac | |
5846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5847 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5848 | ac_status=$? |
5849 | grep -v '^ *+' conftest.er1 >conftest.err | |
5850 | rm -f conftest.er1 | |
5851 | cat conftest.err >&5 | |
5852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5853 | (exit $ac_status); } && { |
5854 | test -z "$ac_c_werror_flag" || | |
5855 | test ! -s conftest.err | |
5856 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5857 | ac_lo=$ac_mid; break |
5858 | else | |
5859 | echo "$as_me: failed program was:" >&5 | |
5860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5861 | ||
631ef239 AC |
5862 | ac_hi=`expr '(' $ac_mid ')' - 1` |
5863 | if test $ac_mid -le $ac_hi; then | |
5864 | ac_lo= ac_hi= | |
5865 | break | |
5866 | fi | |
5867 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 5868 | fi |
631ef239 AC |
5869 | |
5870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5871 | done |
5872 | else | |
5873 | echo "$as_me: failed program was:" >&5 | |
5874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5875 | ||
631ef239 | 5876 | ac_lo= ac_hi= |
212380e3 | 5877 | fi |
631ef239 AC |
5878 | |
5879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5880 | fi |
631ef239 AC |
5881 | |
5882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5883 | # Binary search between lo and hi bounds. |
5884 | while test "x$ac_lo" != "x$ac_hi"; do | |
5885 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5886 | cat >conftest.$ac_ext <<_ACEOF | |
5887 | /* confdefs.h. */ | |
5888 | _ACEOF | |
5889 | cat confdefs.h >>conftest.$ac_ext | |
5890 | cat >>conftest.$ac_ext <<_ACEOF | |
5891 | /* end confdefs.h. */ | |
5892 | $ac_includes_default | |
631ef239 | 5893 | typedef int ac__type_sizeof_; |
212380e3 AC |
5894 | int |
5895 | main () | |
5896 | { | |
631ef239 | 5897 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5898 | test_array [0] = 0 |
5899 | ||
5900 | ; | |
5901 | return 0; | |
5902 | } | |
5903 | _ACEOF | |
5904 | rm -f conftest.$ac_objext | |
631ef239 AC |
5905 | if { (ac_try="$ac_compile" |
5906 | case "(($ac_try" in | |
5907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5908 | *) ac_try_echo=$ac_try;; | |
5909 | esac | |
5910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5911 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5912 | ac_status=$? |
5913 | grep -v '^ *+' conftest.er1 >conftest.err | |
5914 | rm -f conftest.er1 | |
5915 | cat conftest.err >&5 | |
5916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5917 | (exit $ac_status); } && { |
5918 | test -z "$ac_c_werror_flag" || | |
5919 | test ! -s conftest.err | |
5920 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5921 | ac_hi=$ac_mid |
5922 | else | |
5923 | echo "$as_me: failed program was:" >&5 | |
5924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5925 | ||
631ef239 | 5926 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 5927 | fi |
631ef239 AC |
5928 | |
5929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5930 | done |
5931 | case $ac_lo in | |
5932 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
631ef239 AC |
5933 | '') if test "$ac_cv_type_int" = yes; then |
5934 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
212380e3 | 5935 | See \`config.log' for more details." >&5 |
631ef239 | 5936 | echo "$as_me: error: cannot compute sizeof (int) |
212380e3 | 5937 | See \`config.log' for more details." >&2;} |
631ef239 AC |
5938 | { (exit 77); exit 77; }; } |
5939 | else | |
5940 | ac_cv_sizeof_int=0 | |
5941 | fi ;; | |
212380e3 | 5942 | esac |
212380e3 AC |
5943 | else |
5944 | cat >conftest.$ac_ext <<_ACEOF | |
5945 | /* confdefs.h. */ | |
5946 | _ACEOF | |
5947 | cat confdefs.h >>conftest.$ac_ext | |
5948 | cat >>conftest.$ac_ext <<_ACEOF | |
5949 | /* end confdefs.h. */ | |
5950 | $ac_includes_default | |
631ef239 AC |
5951 | typedef int ac__type_sizeof_; |
5952 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5953 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
5954 | #include <stdio.h> |
5955 | #include <stdlib.h> | |
5956 | int | |
5957 | main () | |
5958 | { | |
5959 | ||
5960 | FILE *f = fopen ("conftest.val", "w"); | |
5961 | if (! f) | |
631ef239 AC |
5962 | return 1; |
5963 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 5964 | { |
631ef239 AC |
5965 | long int i = longval (); |
5966 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5967 | return 1; | |
212380e3 AC |
5968 | fprintf (f, "%ld\n", i); |
5969 | } | |
5970 | else | |
5971 | { | |
631ef239 AC |
5972 | unsigned long int i = ulongval (); |
5973 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5974 | return 1; | |
212380e3 AC |
5975 | fprintf (f, "%lu\n", i); |
5976 | } | |
631ef239 | 5977 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
5978 | |
5979 | ; | |
5980 | return 0; | |
5981 | } | |
5982 | _ACEOF | |
5983 | rm -f conftest$ac_exeext | |
631ef239 AC |
5984 | if { (ac_try="$ac_link" |
5985 | case "(($ac_try" in | |
5986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5987 | *) ac_try_echo=$ac_try;; | |
5988 | esac | |
5989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5990 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
5991 | ac_status=$? |
5992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5993 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
5994 | { (case "(($ac_try" in |
5995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5996 | *) ac_try_echo=$ac_try;; | |
5997 | esac | |
5998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5999 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
6000 | ac_status=$? |
6001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6002 | (exit $ac_status); }; }; then | |
6003 | ac_cv_sizeof_int=`cat conftest.val` | |
6004 | else | |
6005 | echo "$as_me: program exited with status $ac_status" >&5 | |
6006 | echo "$as_me: failed program was:" >&5 | |
6007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6008 | ||
6009 | ( exit $ac_status ) | |
631ef239 AC |
6010 | if test "$ac_cv_type_int" = yes; then |
6011 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
212380e3 | 6012 | See \`config.log' for more details." >&5 |
631ef239 | 6013 | echo "$as_me: error: cannot compute sizeof (int) |
212380e3 | 6014 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6015 | { (exit 77); exit 77; }; } |
6016 | else | |
6017 | ac_cv_sizeof_int=0 | |
6018 | fi | |
212380e3 | 6019 | fi |
631ef239 | 6020 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
6021 | fi |
6022 | rm -f conftest.val | |
212380e3 | 6023 | fi |
631ef239 AC |
6024 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
6025 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | |
6026 | ||
6027 | ||
6028 | ||
212380e3 AC |
6029 | cat >>confdefs.h <<_ACEOF |
6030 | #define SIZEOF_INT $ac_cv_sizeof_int | |
6031 | _ACEOF | |
6032 | ||
6033 | ||
631ef239 AC |
6034 | { echo "$as_me:$LINENO: checking for long" >&5 |
6035 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } | |
212380e3 AC |
6036 | if test "${ac_cv_type_long+set}" = set; then |
6037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6038 | else | |
6039 | cat >conftest.$ac_ext <<_ACEOF | |
6040 | /* confdefs.h. */ | |
6041 | _ACEOF | |
6042 | cat confdefs.h >>conftest.$ac_ext | |
6043 | cat >>conftest.$ac_ext <<_ACEOF | |
6044 | /* end confdefs.h. */ | |
6045 | $ac_includes_default | |
631ef239 | 6046 | typedef long ac__type_new_; |
212380e3 AC |
6047 | int |
6048 | main () | |
6049 | { | |
631ef239 | 6050 | if ((ac__type_new_ *) 0) |
212380e3 | 6051 | return 0; |
631ef239 | 6052 | if (sizeof (ac__type_new_)) |
212380e3 AC |
6053 | return 0; |
6054 | ; | |
6055 | return 0; | |
6056 | } | |
6057 | _ACEOF | |
6058 | rm -f conftest.$ac_objext | |
631ef239 AC |
6059 | if { (ac_try="$ac_compile" |
6060 | case "(($ac_try" in | |
6061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6062 | *) ac_try_echo=$ac_try;; | |
6063 | esac | |
6064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6065 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6066 | ac_status=$? |
6067 | grep -v '^ *+' conftest.er1 >conftest.err | |
6068 | rm -f conftest.er1 | |
6069 | cat conftest.err >&5 | |
6070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6071 | (exit $ac_status); } && { |
6072 | test -z "$ac_c_werror_flag" || | |
6073 | test ! -s conftest.err | |
6074 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6075 | ac_cv_type_long=yes |
6076 | else | |
6077 | echo "$as_me: failed program was:" >&5 | |
6078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6079 | ||
631ef239 | 6080 | ac_cv_type_long=no |
212380e3 | 6081 | fi |
631ef239 AC |
6082 | |
6083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6084 | fi |
631ef239 AC |
6085 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
6086 | echo "${ECHO_T}$ac_cv_type_long" >&6; } | |
212380e3 | 6087 | |
631ef239 AC |
6088 | # The cast to long int works around a bug in the HP C Compiler |
6089 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6090 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6091 | # This bug is HP SR number 8606223364. | |
6092 | { echo "$as_me:$LINENO: checking size of long" >&5 | |
6093 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } | |
212380e3 AC |
6094 | if test "${ac_cv_sizeof_long+set}" = set; then |
6095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6096 | else | |
212380e3 AC |
6097 | if test "$cross_compiling" = yes; then |
6098 | # Depending upon the size, compute the lo and hi bounds. | |
6099 | cat >conftest.$ac_ext <<_ACEOF | |
6100 | /* confdefs.h. */ | |
6101 | _ACEOF | |
6102 | cat confdefs.h >>conftest.$ac_ext | |
6103 | cat >>conftest.$ac_ext <<_ACEOF | |
6104 | /* end confdefs.h. */ | |
6105 | $ac_includes_default | |
631ef239 | 6106 | typedef long ac__type_sizeof_; |
212380e3 AC |
6107 | int |
6108 | main () | |
6109 | { | |
631ef239 | 6110 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
6111 | test_array [0] = 0 |
6112 | ||
6113 | ; | |
6114 | return 0; | |
6115 | } | |
6116 | _ACEOF | |
6117 | rm -f conftest.$ac_objext | |
631ef239 AC |
6118 | if { (ac_try="$ac_compile" |
6119 | case "(($ac_try" in | |
6120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6121 | *) ac_try_echo=$ac_try;; | |
6122 | esac | |
6123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6124 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6125 | ac_status=$? |
6126 | grep -v '^ *+' conftest.er1 >conftest.err | |
6127 | rm -f conftest.er1 | |
6128 | cat conftest.err >&5 | |
6129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6130 | (exit $ac_status); } && { |
6131 | test -z "$ac_c_werror_flag" || | |
6132 | test ! -s conftest.err | |
6133 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6134 | ac_lo=0 ac_mid=0 |
6135 | while :; do | |
6136 | cat >conftest.$ac_ext <<_ACEOF | |
6137 | /* confdefs.h. */ | |
6138 | _ACEOF | |
6139 | cat confdefs.h >>conftest.$ac_ext | |
6140 | cat >>conftest.$ac_ext <<_ACEOF | |
6141 | /* end confdefs.h. */ | |
6142 | $ac_includes_default | |
631ef239 | 6143 | typedef long ac__type_sizeof_; |
212380e3 AC |
6144 | int |
6145 | main () | |
6146 | { | |
631ef239 | 6147 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6148 | test_array [0] = 0 |
6149 | ||
6150 | ; | |
6151 | return 0; | |
6152 | } | |
6153 | _ACEOF | |
6154 | rm -f conftest.$ac_objext | |
631ef239 AC |
6155 | if { (ac_try="$ac_compile" |
6156 | case "(($ac_try" in | |
6157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6158 | *) ac_try_echo=$ac_try;; | |
6159 | esac | |
6160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6161 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6162 | ac_status=$? |
6163 | grep -v '^ *+' conftest.er1 >conftest.err | |
6164 | rm -f conftest.er1 | |
6165 | cat conftest.err >&5 | |
6166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6167 | (exit $ac_status); } && { |
6168 | test -z "$ac_c_werror_flag" || | |
6169 | test ! -s conftest.err | |
6170 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6171 | ac_hi=$ac_mid; break |
6172 | else | |
6173 | echo "$as_me: failed program was:" >&5 | |
6174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6175 | ||
631ef239 AC |
6176 | ac_lo=`expr $ac_mid + 1` |
6177 | if test $ac_lo -le $ac_mid; then | |
6178 | ac_lo= ac_hi= | |
6179 | break | |
6180 | fi | |
6181 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 6182 | fi |
631ef239 AC |
6183 | |
6184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6185 | done |
6186 | else | |
6187 | echo "$as_me: failed program was:" >&5 | |
6188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6189 | ||
631ef239 | 6190 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
6191 | /* confdefs.h. */ |
6192 | _ACEOF | |
6193 | cat confdefs.h >>conftest.$ac_ext | |
6194 | cat >>conftest.$ac_ext <<_ACEOF | |
6195 | /* end confdefs.h. */ | |
6196 | $ac_includes_default | |
631ef239 | 6197 | typedef long ac__type_sizeof_; |
212380e3 AC |
6198 | int |
6199 | main () | |
6200 | { | |
631ef239 | 6201 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
6202 | test_array [0] = 0 |
6203 | ||
6204 | ; | |
6205 | return 0; | |
6206 | } | |
6207 | _ACEOF | |
6208 | rm -f conftest.$ac_objext | |
631ef239 AC |
6209 | if { (ac_try="$ac_compile" |
6210 | case "(($ac_try" in | |
6211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6212 | *) ac_try_echo=$ac_try;; | |
6213 | esac | |
6214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6215 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6216 | ac_status=$? |
6217 | grep -v '^ *+' conftest.er1 >conftest.err | |
6218 | rm -f conftest.er1 | |
6219 | cat conftest.err >&5 | |
6220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6221 | (exit $ac_status); } && { |
6222 | test -z "$ac_c_werror_flag" || | |
6223 | test ! -s conftest.err | |
6224 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6225 | ac_hi=-1 ac_mid=-1 |
6226 | while :; do | |
6227 | cat >conftest.$ac_ext <<_ACEOF | |
6228 | /* confdefs.h. */ | |
6229 | _ACEOF | |
6230 | cat confdefs.h >>conftest.$ac_ext | |
6231 | cat >>conftest.$ac_ext <<_ACEOF | |
6232 | /* end confdefs.h. */ | |
6233 | $ac_includes_default | |
631ef239 | 6234 | typedef long ac__type_sizeof_; |
212380e3 AC |
6235 | int |
6236 | main () | |
6237 | { | |
631ef239 | 6238 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
6239 | test_array [0] = 0 |
6240 | ||
6241 | ; | |
6242 | return 0; | |
6243 | } | |
6244 | _ACEOF | |
6245 | rm -f conftest.$ac_objext | |
631ef239 AC |
6246 | if { (ac_try="$ac_compile" |
6247 | case "(($ac_try" in | |
6248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6249 | *) ac_try_echo=$ac_try;; | |
6250 | esac | |
6251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6252 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6253 | ac_status=$? |
6254 | grep -v '^ *+' conftest.er1 >conftest.err | |
6255 | rm -f conftest.er1 | |
6256 | cat conftest.err >&5 | |
6257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6258 | (exit $ac_status); } && { |
6259 | test -z "$ac_c_werror_flag" || | |
6260 | test ! -s conftest.err | |
6261 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6262 | ac_lo=$ac_mid; break |
6263 | else | |
6264 | echo "$as_me: failed program was:" >&5 | |
6265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6266 | ||
631ef239 AC |
6267 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6268 | if test $ac_mid -le $ac_hi; then | |
6269 | ac_lo= ac_hi= | |
6270 | break | |
6271 | fi | |
6272 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 6273 | fi |
631ef239 AC |
6274 | |
6275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6276 | done |
6277 | else | |
6278 | echo "$as_me: failed program was:" >&5 | |
6279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6280 | ||
631ef239 | 6281 | ac_lo= ac_hi= |
212380e3 | 6282 | fi |
631ef239 AC |
6283 | |
6284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6285 | fi |
631ef239 AC |
6286 | |
6287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6288 | # Binary search between lo and hi bounds. |
6289 | while test "x$ac_lo" != "x$ac_hi"; do | |
6290 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6291 | cat >conftest.$ac_ext <<_ACEOF | |
6292 | /* confdefs.h. */ | |
6293 | _ACEOF | |
6294 | cat confdefs.h >>conftest.$ac_ext | |
6295 | cat >>conftest.$ac_ext <<_ACEOF | |
6296 | /* end confdefs.h. */ | |
6297 | $ac_includes_default | |
631ef239 | 6298 | typedef long ac__type_sizeof_; |
212380e3 AC |
6299 | int |
6300 | main () | |
6301 | { | |
631ef239 | 6302 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6303 | test_array [0] = 0 |
6304 | ||
6305 | ; | |
6306 | return 0; | |
6307 | } | |
6308 | _ACEOF | |
6309 | rm -f conftest.$ac_objext | |
631ef239 AC |
6310 | if { (ac_try="$ac_compile" |
6311 | case "(($ac_try" in | |
6312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6313 | *) ac_try_echo=$ac_try;; | |
6314 | esac | |
6315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6316 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6317 | ac_status=$? |
6318 | grep -v '^ *+' conftest.er1 >conftest.err | |
6319 | rm -f conftest.er1 | |
6320 | cat conftest.err >&5 | |
6321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6322 | (exit $ac_status); } && { |
6323 | test -z "$ac_c_werror_flag" || | |
6324 | test ! -s conftest.err | |
6325 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6326 | ac_hi=$ac_mid |
6327 | else | |
6328 | echo "$as_me: failed program was:" >&5 | |
6329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6330 | ||
631ef239 | 6331 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 6332 | fi |
631ef239 AC |
6333 | |
6334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6335 | done |
6336 | case $ac_lo in | |
6337 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
631ef239 AC |
6338 | '') if test "$ac_cv_type_long" = yes; then |
6339 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
212380e3 | 6340 | See \`config.log' for more details." >&5 |
631ef239 | 6341 | echo "$as_me: error: cannot compute sizeof (long) |
212380e3 | 6342 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6343 | { (exit 77); exit 77; }; } |
6344 | else | |
6345 | ac_cv_sizeof_long=0 | |
6346 | fi ;; | |
212380e3 | 6347 | esac |
212380e3 AC |
6348 | else |
6349 | cat >conftest.$ac_ext <<_ACEOF | |
6350 | /* confdefs.h. */ | |
6351 | _ACEOF | |
6352 | cat confdefs.h >>conftest.$ac_ext | |
6353 | cat >>conftest.$ac_ext <<_ACEOF | |
6354 | /* end confdefs.h. */ | |
6355 | $ac_includes_default | |
631ef239 AC |
6356 | typedef long ac__type_sizeof_; |
6357 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6358 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
6359 | #include <stdio.h> |
6360 | #include <stdlib.h> | |
6361 | int | |
6362 | main () | |
6363 | { | |
6364 | ||
6365 | FILE *f = fopen ("conftest.val", "w"); | |
6366 | if (! f) | |
631ef239 AC |
6367 | return 1; |
6368 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 6369 | { |
631ef239 AC |
6370 | long int i = longval (); |
6371 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6372 | return 1; | |
212380e3 AC |
6373 | fprintf (f, "%ld\n", i); |
6374 | } | |
6375 | else | |
6376 | { | |
631ef239 AC |
6377 | unsigned long int i = ulongval (); |
6378 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6379 | return 1; | |
212380e3 AC |
6380 | fprintf (f, "%lu\n", i); |
6381 | } | |
631ef239 | 6382 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
6383 | |
6384 | ; | |
6385 | return 0; | |
6386 | } | |
6387 | _ACEOF | |
6388 | rm -f conftest$ac_exeext | |
631ef239 AC |
6389 | if { (ac_try="$ac_link" |
6390 | case "(($ac_try" in | |
6391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6392 | *) ac_try_echo=$ac_try;; | |
6393 | esac | |
6394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6395 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
6396 | ac_status=$? |
6397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6398 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
6399 | { (case "(($ac_try" in |
6400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6401 | *) ac_try_echo=$ac_try;; | |
6402 | esac | |
6403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6404 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
6405 | ac_status=$? |
6406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6407 | (exit $ac_status); }; }; then | |
6408 | ac_cv_sizeof_long=`cat conftest.val` | |
6409 | else | |
6410 | echo "$as_me: program exited with status $ac_status" >&5 | |
6411 | echo "$as_me: failed program was:" >&5 | |
6412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6413 | ||
6414 | ( exit $ac_status ) | |
631ef239 AC |
6415 | if test "$ac_cv_type_long" = yes; then |
6416 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
212380e3 | 6417 | See \`config.log' for more details." >&5 |
631ef239 | 6418 | echo "$as_me: error: cannot compute sizeof (long) |
212380e3 | 6419 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6420 | { (exit 77); exit 77; }; } |
6421 | else | |
6422 | ac_cv_sizeof_long=0 | |
6423 | fi | |
212380e3 | 6424 | fi |
631ef239 | 6425 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
6426 | fi |
6427 | rm -f conftest.val | |
212380e3 | 6428 | fi |
631ef239 AC |
6429 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
6430 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } | |
6431 | ||
6432 | ||
6433 | ||
212380e3 AC |
6434 | cat >>confdefs.h <<_ACEOF |
6435 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
6436 | _ACEOF | |
6437 | ||
6438 | ||
631ef239 AC |
6439 | { echo "$as_me:$LINENO: checking for long long" >&5 |
6440 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | |
212380e3 AC |
6441 | if test "${ac_cv_type_long_long+set}" = set; then |
6442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6443 | else | |
6444 | cat >conftest.$ac_ext <<_ACEOF | |
6445 | /* confdefs.h. */ | |
6446 | _ACEOF | |
6447 | cat confdefs.h >>conftest.$ac_ext | |
6448 | cat >>conftest.$ac_ext <<_ACEOF | |
6449 | /* end confdefs.h. */ | |
6450 | $ac_includes_default | |
631ef239 | 6451 | typedef long long ac__type_new_; |
212380e3 AC |
6452 | int |
6453 | main () | |
6454 | { | |
631ef239 | 6455 | if ((ac__type_new_ *) 0) |
212380e3 | 6456 | return 0; |
631ef239 | 6457 | if (sizeof (ac__type_new_)) |
212380e3 AC |
6458 | return 0; |
6459 | ; | |
6460 | return 0; | |
6461 | } | |
6462 | _ACEOF | |
6463 | rm -f conftest.$ac_objext | |
631ef239 AC |
6464 | if { (ac_try="$ac_compile" |
6465 | case "(($ac_try" in | |
6466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6467 | *) ac_try_echo=$ac_try;; | |
6468 | esac | |
6469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6470 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6471 | ac_status=$? |
6472 | grep -v '^ *+' conftest.er1 >conftest.err | |
6473 | rm -f conftest.er1 | |
6474 | cat conftest.err >&5 | |
6475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6476 | (exit $ac_status); } && { |
6477 | test -z "$ac_c_werror_flag" || | |
6478 | test ! -s conftest.err | |
6479 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6480 | ac_cv_type_long_long=yes |
6481 | else | |
6482 | echo "$as_me: failed program was:" >&5 | |
6483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6484 | ||
631ef239 | 6485 | ac_cv_type_long_long=no |
212380e3 | 6486 | fi |
631ef239 AC |
6487 | |
6488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6489 | fi |
631ef239 AC |
6490 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
6491 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | |
212380e3 | 6492 | |
631ef239 AC |
6493 | # The cast to long int works around a bug in the HP C Compiler |
6494 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6495 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6496 | # This bug is HP SR number 8606223364. | |
6497 | { echo "$as_me:$LINENO: checking size of long long" >&5 | |
6498 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } | |
212380e3 AC |
6499 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
6500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6501 | else | |
212380e3 AC |
6502 | if test "$cross_compiling" = yes; then |
6503 | # Depending upon the size, compute the lo and hi bounds. | |
6504 | cat >conftest.$ac_ext <<_ACEOF | |
6505 | /* confdefs.h. */ | |
6506 | _ACEOF | |
6507 | cat confdefs.h >>conftest.$ac_ext | |
6508 | cat >>conftest.$ac_ext <<_ACEOF | |
6509 | /* end confdefs.h. */ | |
6510 | $ac_includes_default | |
631ef239 | 6511 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6512 | int |
6513 | main () | |
6514 | { | |
631ef239 | 6515 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
6516 | test_array [0] = 0 |
6517 | ||
6518 | ; | |
6519 | return 0; | |
6520 | } | |
6521 | _ACEOF | |
6522 | rm -f conftest.$ac_objext | |
631ef239 AC |
6523 | if { (ac_try="$ac_compile" |
6524 | case "(($ac_try" in | |
6525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6526 | *) ac_try_echo=$ac_try;; | |
6527 | esac | |
6528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6529 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6530 | ac_status=$? |
6531 | grep -v '^ *+' conftest.er1 >conftest.err | |
6532 | rm -f conftest.er1 | |
6533 | cat conftest.err >&5 | |
6534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6535 | (exit $ac_status); } && { |
6536 | test -z "$ac_c_werror_flag" || | |
6537 | test ! -s conftest.err | |
6538 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6539 | ac_lo=0 ac_mid=0 |
6540 | while :; do | |
6541 | cat >conftest.$ac_ext <<_ACEOF | |
6542 | /* confdefs.h. */ | |
6543 | _ACEOF | |
6544 | cat confdefs.h >>conftest.$ac_ext | |
6545 | cat >>conftest.$ac_ext <<_ACEOF | |
6546 | /* end confdefs.h. */ | |
6547 | $ac_includes_default | |
631ef239 | 6548 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6549 | int |
6550 | main () | |
6551 | { | |
631ef239 | 6552 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6553 | test_array [0] = 0 |
6554 | ||
6555 | ; | |
6556 | return 0; | |
6557 | } | |
6558 | _ACEOF | |
6559 | rm -f conftest.$ac_objext | |
631ef239 AC |
6560 | if { (ac_try="$ac_compile" |
6561 | case "(($ac_try" in | |
6562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6563 | *) ac_try_echo=$ac_try;; | |
6564 | esac | |
6565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6566 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6567 | ac_status=$? |
6568 | grep -v '^ *+' conftest.er1 >conftest.err | |
6569 | rm -f conftest.er1 | |
6570 | cat conftest.err >&5 | |
6571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6572 | (exit $ac_status); } && { |
6573 | test -z "$ac_c_werror_flag" || | |
6574 | test ! -s conftest.err | |
6575 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6576 | ac_hi=$ac_mid; break |
6577 | else | |
6578 | echo "$as_me: failed program was:" >&5 | |
6579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6580 | ||
631ef239 AC |
6581 | ac_lo=`expr $ac_mid + 1` |
6582 | if test $ac_lo -le $ac_mid; then | |
6583 | ac_lo= ac_hi= | |
6584 | break | |
6585 | fi | |
6586 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 6587 | fi |
631ef239 AC |
6588 | |
6589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6590 | done |
6591 | else | |
6592 | echo "$as_me: failed program was:" >&5 | |
6593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6594 | ||
631ef239 | 6595 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
6596 | /* confdefs.h. */ |
6597 | _ACEOF | |
6598 | cat confdefs.h >>conftest.$ac_ext | |
6599 | cat >>conftest.$ac_ext <<_ACEOF | |
6600 | /* end confdefs.h. */ | |
6601 | $ac_includes_default | |
631ef239 | 6602 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6603 | int |
6604 | main () | |
6605 | { | |
631ef239 | 6606 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
6607 | test_array [0] = 0 |
6608 | ||
6609 | ; | |
6610 | return 0; | |
6611 | } | |
6612 | _ACEOF | |
6613 | rm -f conftest.$ac_objext | |
631ef239 AC |
6614 | if { (ac_try="$ac_compile" |
6615 | case "(($ac_try" in | |
6616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6617 | *) ac_try_echo=$ac_try;; | |
6618 | esac | |
6619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6620 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6621 | ac_status=$? |
6622 | grep -v '^ *+' conftest.er1 >conftest.err | |
6623 | rm -f conftest.er1 | |
6624 | cat conftest.err >&5 | |
6625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6626 | (exit $ac_status); } && { |
6627 | test -z "$ac_c_werror_flag" || | |
6628 | test ! -s conftest.err | |
6629 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6630 | ac_hi=-1 ac_mid=-1 |
6631 | while :; do | |
6632 | cat >conftest.$ac_ext <<_ACEOF | |
6633 | /* confdefs.h. */ | |
6634 | _ACEOF | |
6635 | cat confdefs.h >>conftest.$ac_ext | |
6636 | cat >>conftest.$ac_ext <<_ACEOF | |
6637 | /* end confdefs.h. */ | |
6638 | $ac_includes_default | |
631ef239 | 6639 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6640 | int |
6641 | main () | |
6642 | { | |
631ef239 | 6643 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
6644 | test_array [0] = 0 |
6645 | ||
6646 | ; | |
6647 | return 0; | |
6648 | } | |
6649 | _ACEOF | |
6650 | rm -f conftest.$ac_objext | |
631ef239 AC |
6651 | if { (ac_try="$ac_compile" |
6652 | case "(($ac_try" in | |
6653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6654 | *) ac_try_echo=$ac_try;; | |
6655 | esac | |
6656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6657 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6658 | ac_status=$? |
6659 | grep -v '^ *+' conftest.er1 >conftest.err | |
6660 | rm -f conftest.er1 | |
6661 | cat conftest.err >&5 | |
6662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6663 | (exit $ac_status); } && { |
6664 | test -z "$ac_c_werror_flag" || | |
6665 | test ! -s conftest.err | |
6666 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6667 | ac_lo=$ac_mid; break |
6668 | else | |
6669 | echo "$as_me: failed program was:" >&5 | |
6670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6671 | ||
631ef239 AC |
6672 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6673 | if test $ac_mid -le $ac_hi; then | |
6674 | ac_lo= ac_hi= | |
6675 | break | |
6676 | fi | |
6677 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 6678 | fi |
631ef239 AC |
6679 | |
6680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6681 | done |
6682 | else | |
6683 | echo "$as_me: failed program was:" >&5 | |
6684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6685 | ||
631ef239 | 6686 | ac_lo= ac_hi= |
212380e3 | 6687 | fi |
631ef239 AC |
6688 | |
6689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6690 | fi |
631ef239 AC |
6691 | |
6692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6693 | # Binary search between lo and hi bounds. |
6694 | while test "x$ac_lo" != "x$ac_hi"; do | |
6695 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6696 | cat >conftest.$ac_ext <<_ACEOF | |
6697 | /* confdefs.h. */ | |
6698 | _ACEOF | |
6699 | cat confdefs.h >>conftest.$ac_ext | |
6700 | cat >>conftest.$ac_ext <<_ACEOF | |
6701 | /* end confdefs.h. */ | |
6702 | $ac_includes_default | |
631ef239 | 6703 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6704 | int |
6705 | main () | |
6706 | { | |
631ef239 | 6707 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6708 | test_array [0] = 0 |
6709 | ||
6710 | ; | |
6711 | return 0; | |
6712 | } | |
6713 | _ACEOF | |
6714 | rm -f conftest.$ac_objext | |
631ef239 AC |
6715 | if { (ac_try="$ac_compile" |
6716 | case "(($ac_try" in | |
6717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6718 | *) ac_try_echo=$ac_try;; | |
6719 | esac | |
6720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6721 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6722 | ac_status=$? |
6723 | grep -v '^ *+' conftest.er1 >conftest.err | |
6724 | rm -f conftest.er1 | |
6725 | cat conftest.err >&5 | |
6726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6727 | (exit $ac_status); } && { |
6728 | test -z "$ac_c_werror_flag" || | |
6729 | test ! -s conftest.err | |
6730 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6731 | ac_hi=$ac_mid |
6732 | else | |
6733 | echo "$as_me: failed program was:" >&5 | |
6734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6735 | ||
631ef239 | 6736 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 6737 | fi |
631ef239 AC |
6738 | |
6739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6740 | done |
6741 | case $ac_lo in | |
6742 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
631ef239 AC |
6743 | '') if test "$ac_cv_type_long_long" = yes; then |
6744 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
212380e3 | 6745 | See \`config.log' for more details." >&5 |
631ef239 | 6746 | echo "$as_me: error: cannot compute sizeof (long long) |
212380e3 | 6747 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6748 | { (exit 77); exit 77; }; } |
6749 | else | |
6750 | ac_cv_sizeof_long_long=0 | |
6751 | fi ;; | |
212380e3 | 6752 | esac |
212380e3 AC |
6753 | else |
6754 | cat >conftest.$ac_ext <<_ACEOF | |
6755 | /* confdefs.h. */ | |
6756 | _ACEOF | |
6757 | cat confdefs.h >>conftest.$ac_ext | |
6758 | cat >>conftest.$ac_ext <<_ACEOF | |
6759 | /* end confdefs.h. */ | |
6760 | $ac_includes_default | |
631ef239 AC |
6761 | typedef long long ac__type_sizeof_; |
6762 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6763 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
6764 | #include <stdio.h> |
6765 | #include <stdlib.h> | |
6766 | int | |
6767 | main () | |
6768 | { | |
6769 | ||
6770 | FILE *f = fopen ("conftest.val", "w"); | |
6771 | if (! f) | |
631ef239 AC |
6772 | return 1; |
6773 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 6774 | { |
631ef239 AC |
6775 | long int i = longval (); |
6776 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6777 | return 1; | |
212380e3 AC |
6778 | fprintf (f, "%ld\n", i); |
6779 | } | |
6780 | else | |
6781 | { | |
631ef239 AC |
6782 | unsigned long int i = ulongval (); |
6783 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6784 | return 1; | |
212380e3 AC |
6785 | fprintf (f, "%lu\n", i); |
6786 | } | |
631ef239 | 6787 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
6788 | |
6789 | ; | |
6790 | return 0; | |
6791 | } | |
6792 | _ACEOF | |
6793 | rm -f conftest$ac_exeext | |
631ef239 AC |
6794 | if { (ac_try="$ac_link" |
6795 | case "(($ac_try" in | |
6796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6797 | *) ac_try_echo=$ac_try;; | |
6798 | esac | |
6799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6800 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
6801 | ac_status=$? |
6802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6803 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
6804 | { (case "(($ac_try" in |
6805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6806 | *) ac_try_echo=$ac_try;; | |
6807 | esac | |
6808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6809 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
6810 | ac_status=$? |
6811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6812 | (exit $ac_status); }; }; then | |
6813 | ac_cv_sizeof_long_long=`cat conftest.val` | |
6814 | else | |
6815 | echo "$as_me: program exited with status $ac_status" >&5 | |
6816 | echo "$as_me: failed program was:" >&5 | |
6817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6818 | ||
6819 | ( exit $ac_status ) | |
631ef239 AC |
6820 | if test "$ac_cv_type_long_long" = yes; then |
6821 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
212380e3 | 6822 | See \`config.log' for more details." >&5 |
631ef239 | 6823 | echo "$as_me: error: cannot compute sizeof (long long) |
212380e3 | 6824 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6825 | { (exit 77); exit 77; }; } |
6826 | else | |
6827 | ac_cv_sizeof_long_long=0 | |
6828 | fi | |
212380e3 | 6829 | fi |
631ef239 | 6830 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
6831 | fi |
6832 | rm -f conftest.val | |
212380e3 | 6833 | fi |
631ef239 AC |
6834 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
6835 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } | |
6836 | ||
6837 | ||
6838 | ||
212380e3 AC |
6839 | cat >>confdefs.h <<_ACEOF |
6840 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
6841 | _ACEOF | |
6842 | ||
6843 | ||
6844 | ||
6845 | ||
631ef239 AC |
6846 | { echo "$as_me:$LINENO: checking the system's memory page size" >&5 |
6847 | echo $ECHO_N "checking the system's memory page size... $ECHO_C" >&6; } | |
212380e3 AC |
6848 | pagesize="no" |
6849 | if test "$cross_compiling" = yes; then | |
6850 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
6851 | See \`config.log' for more details." >&5 | |
6852 | echo "$as_me: error: cannot run test program while cross compiling | |
6853 | See \`config.log' for more details." >&2;} | |
6854 | { (exit 1); exit 1; }; } | |
6855 | else | |
6856 | cat >conftest.$ac_ext <<_ACEOF | |
6857 | /* confdefs.h. */ | |
6858 | _ACEOF | |
6859 | cat confdefs.h >>conftest.$ac_ext | |
6860 | cat >>conftest.$ac_ext <<_ACEOF | |
6861 | /* end confdefs.h. */ | |
6862 | ||
6863 | #include <stdio.h> | |
6864 | #if HAVE_UNISTD_H | |
6865 | # include <unistd.h> | |
6866 | #endif | |
6867 | ||
6868 | int main(void) { | |
6869 | FILE *fp = fopen("conftest.malloc", "w"); | |
6870 | ||
6871 | if (fp != NULL) { | |
6872 | fprintf(fp, "%d\n", getpagesize()); | |
6873 | fclose(fp); | |
6874 | } else | |
6875 | exit(1); | |
6876 | exit(0); | |
6877 | } | |
6878 | _ACEOF | |
6879 | rm -f conftest$ac_exeext | |
631ef239 AC |
6880 | if { (ac_try="$ac_link" |
6881 | case "(($ac_try" in | |
6882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6883 | *) ac_try_echo=$ac_try;; | |
6884 | esac | |
6885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6886 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
6887 | ac_status=$? |
6888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6889 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
6890 | { (case "(($ac_try" in |
6891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6892 | *) ac_try_echo=$ac_try;; | |
6893 | esac | |
6894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6895 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
6896 | ac_status=$? |
6897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6898 | (exit $ac_status); }; }; then | |
6899 | ||
6900 | if test -f "conftest.malloc" ; then | |
6901 | pagesize=`cat conftest.malloc` | |
6902 | fi | |
6903 | ||
6904 | else | |
6905 | echo "$as_me: program exited with status $ac_status" >&5 | |
6906 | echo "$as_me: failed program was:" >&5 | |
6907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6908 | ||
6909 | fi | |
631ef239 | 6910 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 6911 | fi |
631ef239 AC |
6912 | |
6913 | ||
212380e3 | 6914 | if test "$pagesize" != "no" ; then |
631ef239 AC |
6915 | { echo "$as_me:$LINENO: result: $pagesize" >&5 |
6916 | echo "${ECHO_T}$pagesize" >&6; } | |
212380e3 AC |
6917 | else |
6918 | if test "$ac_cv_sizeof_int" = "4" ; then | |
6919 | pagesize=4096 | |
6920 | else | |
6921 | pagesize=8192 | |
6922 | fi | |
631ef239 AC |
6923 | { echo "$as_me:$LINENO: result: $pagesize (guessing)" >&5 |
6924 | echo "${ECHO_T}$pagesize (guessing)" >&6; } | |
212380e3 AC |
6925 | fi |
6926 | ||
6927 | cat >>confdefs.h <<_ACEOF | |
6928 | #define MALLOC_PAGESIZE $pagesize | |
6929 | _ACEOF | |
6930 | ||
6931 | ||
6932 | ||
631ef239 AC |
6933 | { echo "$as_me:$LINENO: checking for library containing socket" >&5 |
6934 | echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } | |
212380e3 AC |
6935 | if test "${ac_cv_search_socket+set}" = set; then |
6936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6937 | else | |
6938 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
6939 | cat >conftest.$ac_ext <<_ACEOF |
6940 | /* confdefs.h. */ | |
6941 | _ACEOF | |
6942 | cat confdefs.h >>conftest.$ac_ext | |
6943 | cat >>conftest.$ac_ext <<_ACEOF | |
6944 | /* end confdefs.h. */ | |
6945 | ||
631ef239 AC |
6946 | /* Override any GCC internal prototype to avoid an error. |
6947 | Use char because int might match the return type of a GCC | |
6948 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6949 | #ifdef __cplusplus |
6950 | extern "C" | |
6951 | #endif | |
212380e3 AC |
6952 | char socket (); |
6953 | int | |
6954 | main () | |
6955 | { | |
631ef239 | 6956 | return socket (); |
212380e3 AC |
6957 | ; |
6958 | return 0; | |
6959 | } | |
6960 | _ACEOF | |
631ef239 AC |
6961 | for ac_lib in '' socket; do |
6962 | if test -z "$ac_lib"; then | |
6963 | ac_res="none required" | |
6964 | else | |
6965 | ac_res=-l$ac_lib | |
6966 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6967 | fi | |
6968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6969 | if { (ac_try="$ac_link" | |
6970 | case "(($ac_try" in | |
6971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6972 | *) ac_try_echo=$ac_try;; | |
6973 | esac | |
6974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6975 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
6976 | ac_status=$? |
6977 | grep -v '^ *+' conftest.er1 >conftest.err | |
6978 | rm -f conftest.er1 | |
6979 | cat conftest.err >&5 | |
6980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6981 | (exit $ac_status); } && { |
6982 | test -z "$ac_c_werror_flag" || | |
6983 | test ! -s conftest.err | |
6984 | } && test -s conftest$ac_exeext && | |
6985 | $as_test_x conftest$ac_exeext; then | |
6986 | ac_cv_search_socket=$ac_res | |
212380e3 AC |
6987 | else |
6988 | echo "$as_me: failed program was:" >&5 | |
6989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6990 | ||
631ef239 | 6991 | |
212380e3 | 6992 | fi |
631ef239 AC |
6993 | |
6994 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6995 | conftest$ac_exeext | |
6996 | if test "${ac_cv_search_socket+set}" = set; then | |
6997 | break | |
6998 | fi | |
6999 | done | |
7000 | if test "${ac_cv_search_socket+set}" = set; then | |
7001 | : | |
7002 | else | |
7003 | ac_cv_search_socket=no | |
7004 | fi | |
7005 | rm conftest.$ac_ext | |
7006 | LIBS=$ac_func_search_save_LIBS | |
7007 | fi | |
7008 | { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 | |
7009 | echo "${ECHO_T}$ac_cv_search_socket" >&6; } | |
7010 | ac_res=$ac_cv_search_socket | |
7011 | if test "$ac_res" != no; then | |
7012 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7013 | ||
7014 | else | |
7015 | { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5 | |
7016 | echo "$as_me: error: You have no socket()! Aborting." >&2;} | |
7017 | { (exit 1); exit 1; }; } | |
7018 | fi | |
7019 | ||
7020 | ||
7021 | if test x"$SUN" = xyes; then | |
7022 | { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5 | |
7023 | echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; } | |
7024 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
7025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7026 | else | |
7027 | ac_func_search_save_LIBS=$LIBS | |
7028 | cat >conftest.$ac_ext <<_ACEOF | |
212380e3 AC |
7029 | /* confdefs.h. */ |
7030 | _ACEOF | |
7031 | cat confdefs.h >>conftest.$ac_ext | |
7032 | cat >>conftest.$ac_ext <<_ACEOF | |
7033 | /* end confdefs.h. */ | |
7034 | ||
631ef239 AC |
7035 | /* Override any GCC internal prototype to avoid an error. |
7036 | Use char because int might match the return type of a GCC | |
7037 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7038 | #ifdef __cplusplus |
7039 | extern "C" | |
7040 | #endif | |
631ef239 | 7041 | char inet_ntoa (); |
212380e3 AC |
7042 | int |
7043 | main () | |
7044 | { | |
631ef239 | 7045 | return inet_ntoa (); |
212380e3 AC |
7046 | ; |
7047 | return 0; | |
7048 | } | |
7049 | _ACEOF | |
631ef239 AC |
7050 | for ac_lib in '' nsl; do |
7051 | if test -z "$ac_lib"; then | |
7052 | ac_res="none required" | |
7053 | else | |
7054 | ac_res=-l$ac_lib | |
7055 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7056 | fi | |
7057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7058 | if { (ac_try="$ac_link" | |
7059 | case "(($ac_try" in | |
7060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7061 | *) ac_try_echo=$ac_try;; | |
7062 | esac | |
7063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7064 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7065 | ac_status=$? |
7066 | grep -v '^ *+' conftest.er1 >conftest.err | |
7067 | rm -f conftest.er1 | |
7068 | cat conftest.err >&5 | |
7069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7070 | (exit $ac_status); } && { |
7071 | test -z "$ac_c_werror_flag" || | |
7072 | test ! -s conftest.err | |
7073 | } && test -s conftest$ac_exeext && | |
7074 | $as_test_x conftest$ac_exeext; then | |
7075 | ac_cv_search_inet_ntoa=$ac_res | |
212380e3 AC |
7076 | else |
7077 | echo "$as_me: failed program was:" >&5 | |
7078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7079 | ||
631ef239 | 7080 | |
212380e3 | 7081 | fi |
631ef239 AC |
7082 | |
7083 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7084 | conftest$ac_exeext | |
7085 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
7086 | break | |
7087 | fi | |
7088 | done | |
7089 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
7090 | : | |
7091 | else | |
7092 | ac_cv_search_inet_ntoa=no | |
212380e3 | 7093 | fi |
631ef239 | 7094 | rm conftest.$ac_ext |
212380e3 AC |
7095 | LIBS=$ac_func_search_save_LIBS |
7096 | fi | |
631ef239 AC |
7097 | { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5 |
7098 | echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; } | |
7099 | ac_res=$ac_cv_search_inet_ntoa | |
7100 | if test "$ac_res" != no; then | |
7101 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
7102 | |
7103 | else | |
631ef239 AC |
7104 | { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5 |
7105 | echo "$as_me: error: libnsl not found! Aborting." >&2;} | |
212380e3 AC |
7106 | { (exit 1); exit 1; }; } |
7107 | fi | |
7108 | ||
631ef239 | 7109 | fi |
212380e3 | 7110 | |
631ef239 AC |
7111 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
7112 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } | |
7113 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then | |
212380e3 AC |
7114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7115 | else | |
631ef239 | 7116 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
7117 | /* confdefs.h. */ |
7118 | _ACEOF | |
7119 | cat confdefs.h >>conftest.$ac_ext | |
7120 | cat >>conftest.$ac_ext <<_ACEOF | |
7121 | /* end confdefs.h. */ | |
631ef239 AC |
7122 | #include <sys/types.h> |
7123 | #include <sys/socket.h> | |
7124 | ||
212380e3 | 7125 | |
212380e3 AC |
7126 | int |
7127 | main () | |
7128 | { | |
631ef239 AC |
7129 | static struct sockaddr ac_aggr; |
7130 | if (ac_aggr.sa_len) | |
7131 | return 0; | |
212380e3 AC |
7132 | ; |
7133 | return 0; | |
7134 | } | |
7135 | _ACEOF | |
7136 | rm -f conftest.$ac_objext | |
631ef239 AC |
7137 | if { (ac_try="$ac_compile" |
7138 | case "(($ac_try" in | |
7139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7140 | *) ac_try_echo=$ac_try;; | |
7141 | esac | |
7142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7143 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7144 | ac_status=$? |
7145 | grep -v '^ *+' conftest.er1 >conftest.err | |
7146 | rm -f conftest.er1 | |
7147 | cat conftest.err >&5 | |
7148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7149 | (exit $ac_status); } && { |
7150 | test -z "$ac_c_werror_flag" || | |
7151 | test ! -s conftest.err | |
7152 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7153 | ac_cv_member_struct_sockaddr_sa_len=yes |
7154 | else | |
7155 | echo "$as_me: failed program was:" >&5 | |
7156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7157 | ||
631ef239 | 7158 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
7159 | /* confdefs.h. */ |
7160 | _ACEOF | |
7161 | cat confdefs.h >>conftest.$ac_ext | |
7162 | cat >>conftest.$ac_ext <<_ACEOF | |
7163 | /* end confdefs.h. */ | |
7164 | #include <sys/types.h> | |
7165 | #include <sys/socket.h> | |
7166 | ||
7167 | ||
7168 | int | |
7169 | main () | |
7170 | { | |
7171 | static struct sockaddr ac_aggr; | |
7172 | if (sizeof ac_aggr.sa_len) | |
7173 | return 0; | |
7174 | ; | |
7175 | return 0; | |
7176 | } | |
7177 | _ACEOF | |
7178 | rm -f conftest.$ac_objext | |
631ef239 AC |
7179 | if { (ac_try="$ac_compile" |
7180 | case "(($ac_try" in | |
7181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7182 | *) ac_try_echo=$ac_try;; | |
7183 | esac | |
7184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7185 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7186 | ac_status=$? |
7187 | grep -v '^ *+' conftest.er1 >conftest.err | |
7188 | rm -f conftest.er1 | |
7189 | cat conftest.err >&5 | |
7190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7191 | (exit $ac_status); } && { |
7192 | test -z "$ac_c_werror_flag" || | |
7193 | test ! -s conftest.err | |
7194 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7195 | ac_cv_member_struct_sockaddr_sa_len=yes |
7196 | else | |
7197 | echo "$as_me: failed program was:" >&5 | |
7198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7199 | ||
631ef239 | 7200 | ac_cv_member_struct_sockaddr_sa_len=no |
212380e3 | 7201 | fi |
631ef239 AC |
7202 | |
7203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7204 | fi |
631ef239 AC |
7205 | |
7206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7207 | fi |
631ef239 AC |
7208 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
7209 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } | |
212380e3 AC |
7210 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
7211 | ||
7212 | cat >>confdefs.h <<\_ACEOF | |
7213 | #define SOCKADDR_IN_HAS_LEN 1 | |
7214 | _ACEOF | |
7215 | ||
7216 | fi | |
7217 | ||
7218 | ||
631ef239 AC |
7219 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
7220 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | |
212380e3 AC |
7221 | if test "${ac_cv_type_socklen_t+set}" = set; then |
7222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7223 | else | |
7224 | cat >conftest.$ac_ext <<_ACEOF | |
7225 | /* confdefs.h. */ | |
7226 | _ACEOF | |
7227 | cat confdefs.h >>conftest.$ac_ext | |
7228 | cat >>conftest.$ac_ext <<_ACEOF | |
7229 | /* end confdefs.h. */ | |
7230 | #include <sys/types.h> | |
7231 | #include <sys/socket.h> | |
7232 | ||
631ef239 | 7233 | typedef socklen_t ac__type_new_; |
212380e3 AC |
7234 | int |
7235 | main () | |
7236 | { | |
631ef239 | 7237 | if ((ac__type_new_ *) 0) |
212380e3 | 7238 | return 0; |
631ef239 | 7239 | if (sizeof (ac__type_new_)) |
212380e3 AC |
7240 | return 0; |
7241 | ; | |
7242 | return 0; | |
7243 | } | |
7244 | _ACEOF | |
7245 | rm -f conftest.$ac_objext | |
631ef239 AC |
7246 | if { (ac_try="$ac_compile" |
7247 | case "(($ac_try" in | |
7248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7249 | *) ac_try_echo=$ac_try;; | |
7250 | esac | |
7251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7252 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7253 | ac_status=$? |
7254 | grep -v '^ *+' conftest.er1 >conftest.err | |
7255 | rm -f conftest.er1 | |
7256 | cat conftest.err >&5 | |
7257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7258 | (exit $ac_status); } && { |
7259 | test -z "$ac_c_werror_flag" || | |
7260 | test ! -s conftest.err | |
7261 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7262 | ac_cv_type_socklen_t=yes |
7263 | else | |
7264 | echo "$as_me: failed program was:" >&5 | |
7265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7266 | ||
631ef239 | 7267 | ac_cv_type_socklen_t=no |
212380e3 | 7268 | fi |
631ef239 AC |
7269 | |
7270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7271 | fi |
631ef239 AC |
7272 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
7273 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | |
212380e3 AC |
7274 | if test $ac_cv_type_socklen_t = yes; then |
7275 | : | |
7276 | else | |
7277 | ||
7278 | cat >>confdefs.h <<\_ACEOF | |
7279 | #define socklen_t unsigned int | |
7280 | _ACEOF | |
7281 | ||
7282 | fi | |
7283 | ||
7284 | ||
631ef239 | 7285 | # Check whether --enable-ipv6 was given. |
212380e3 | 7286 | if test "${enable_ipv6+set}" = set; then |
631ef239 | 7287 | enableval=$enable_ipv6; ipv6=$enableval |
212380e3 AC |
7288 | else |
7289 | ipv6=no | |
631ef239 AC |
7290 | fi |
7291 | ||
212380e3 AC |
7292 | |
7293 | if test $ipv6 != yes; then | |
7294 | have_v6="no" | |
7295 | else | |
631ef239 AC |
7296 | { echo "$as_me:$LINENO: checking for core IPv6 support" >&5 |
7297 | echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6; } | |
212380e3 AC |
7298 | |
7299 | cat >conftest.$ac_ext <<_ACEOF | |
7300 | /* confdefs.h. */ | |
7301 | _ACEOF | |
7302 | cat confdefs.h >>conftest.$ac_ext | |
7303 | cat >>conftest.$ac_ext <<_ACEOF | |
7304 | /* end confdefs.h. */ | |
7305 | #define IN_AUTOCONF | |
7306 | #include <sys/types.h> | |
7307 | #include <sys/socket.h> | |
7308 | #include <netinet/in.h> | |
7309 | int | |
7310 | main () | |
7311 | { | |
7312 | struct sockaddr_in6 s; | |
7313 | s.sin6_family = 0; | |
7314 | ||
7315 | ; | |
7316 | return 0; | |
7317 | } | |
7318 | _ACEOF | |
7319 | rm -f conftest.$ac_objext | |
631ef239 AC |
7320 | if { (ac_try="$ac_compile" |
7321 | case "(($ac_try" in | |
7322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7323 | *) ac_try_echo=$ac_try;; | |
7324 | esac | |
7325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7326 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7327 | ac_status=$? |
7328 | grep -v '^ *+' conftest.er1 >conftest.err | |
7329 | rm -f conftest.er1 | |
7330 | cat conftest.err >&5 | |
7331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7332 | (exit $ac_status); } && { |
7333 | test -z "$ac_c_werror_flag" || | |
7334 | test ! -s conftest.err | |
7335 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7336 | |
7337 | if test "$CYGWIN" = "yes"; then | |
631ef239 AC |
7338 | { echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5 |
7339 | echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6; } | |
212380e3 AC |
7340 | have_v6=no |
7341 | else | |
7342 | have_v6=yes | |
7343 | ||
7344 | cat >>confdefs.h <<\_ACEOF | |
7345 | #define IPV6 1 | |
7346 | _ACEOF | |
7347 | ||
631ef239 AC |
7348 | { echo "$as_me:$LINENO: result: yes" >&5 |
7349 | echo "${ECHO_T}yes" >&6; } | |
7350 | { echo "$as_me:$LINENO: checking for struct in6addr_any" >&5 | |
7351 | echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6; } | |
212380e3 AC |
7352 | cat >conftest.$ac_ext <<_ACEOF |
7353 | /* confdefs.h. */ | |
7354 | _ACEOF | |
7355 | cat confdefs.h >>conftest.$ac_ext | |
7356 | cat >>conftest.$ac_ext <<_ACEOF | |
7357 | /* end confdefs.h. */ | |
7358 | #define IN_AUTOCONF | |
7359 | #include <sys/types.h> | |
7360 | #include <sys/socket.h> | |
7361 | #include <netinet/in.h> | |
7362 | int | |
7363 | main () | |
7364 | { | |
7365 | struct in6_addr a = in6addr_any; | |
7366 | ||
7367 | ; | |
7368 | return 0; | |
7369 | } | |
7370 | _ACEOF | |
7371 | rm -f conftest.$ac_objext | |
631ef239 AC |
7372 | if { (ac_try="$ac_compile" |
7373 | case "(($ac_try" in | |
7374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7375 | *) ac_try_echo=$ac_try;; | |
7376 | esac | |
7377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7378 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7379 | ac_status=$? |
7380 | grep -v '^ *+' conftest.er1 >conftest.err | |
7381 | rm -f conftest.er1 | |
7382 | cat conftest.err >&5 | |
7383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7384 | (exit $ac_status); } && { |
7385 | test -z "$ac_c_werror_flag" || | |
7386 | test ! -s conftest.err | |
7387 | } && test -s conftest.$ac_objext; then | |
7388 | { echo "$as_me:$LINENO: result: yes" >&5 | |
7389 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
7390 | else |
7391 | echo "$as_me: failed program was:" >&5 | |
7392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7393 | ||
7394 | ||
631ef239 AC |
7395 | { echo "$as_me:$LINENO: result: no" >&5 |
7396 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
7397 | |
7398 | cat >>confdefs.h <<\_ACEOF | |
7399 | #define NO_IN6ADDR_ANY 1 | |
7400 | _ACEOF | |
7401 | ||
7402 | inet_misc=1 | |
7403 | ||
7404 | ||
7405 | fi | |
631ef239 AC |
7406 | |
7407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7408 | fi |
7409 | ||
7410 | else | |
7411 | echo "$as_me: failed program was:" >&5 | |
7412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7413 | ||
631ef239 AC |
7414 | { echo "$as_me:$LINENO: result: no" >&5 |
7415 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
7416 | have_v6="no" |
7417 | fi | |
631ef239 AC |
7418 | |
7419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7420 | fi |
7421 | ||
631ef239 AC |
7422 | { echo "$as_me:$LINENO: checking for library containing crypt" >&5 |
7423 | echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; } | |
212380e3 AC |
7424 | if test "${ac_cv_search_crypt+set}" = set; then |
7425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7426 | else | |
7427 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
7428 | cat >conftest.$ac_ext <<_ACEOF |
7429 | /* confdefs.h. */ | |
7430 | _ACEOF | |
7431 | cat confdefs.h >>conftest.$ac_ext | |
7432 | cat >>conftest.$ac_ext <<_ACEOF | |
7433 | /* end confdefs.h. */ | |
7434 | ||
631ef239 AC |
7435 | /* Override any GCC internal prototype to avoid an error. |
7436 | Use char because int might match the return type of a GCC | |
7437 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7438 | #ifdef __cplusplus |
7439 | extern "C" | |
7440 | #endif | |
212380e3 AC |
7441 | char crypt (); |
7442 | int | |
7443 | main () | |
7444 | { | |
631ef239 | 7445 | return crypt (); |
212380e3 AC |
7446 | ; |
7447 | return 0; | |
7448 | } | |
7449 | _ACEOF | |
631ef239 AC |
7450 | for ac_lib in '' crypt descrypt; do |
7451 | if test -z "$ac_lib"; then | |
7452 | ac_res="none required" | |
7453 | else | |
7454 | ac_res=-l$ac_lib | |
7455 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7456 | fi | |
7457 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7458 | if { (ac_try="$ac_link" | |
7459 | case "(($ac_try" in | |
7460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7461 | *) ac_try_echo=$ac_try;; | |
7462 | esac | |
7463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7464 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7465 | ac_status=$? |
7466 | grep -v '^ *+' conftest.er1 >conftest.err | |
7467 | rm -f conftest.er1 | |
7468 | cat conftest.err >&5 | |
7469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7470 | (exit $ac_status); } && { |
7471 | test -z "$ac_c_werror_flag" || | |
7472 | test ! -s conftest.err | |
7473 | } && test -s conftest$ac_exeext && | |
7474 | $as_test_x conftest$ac_exeext; then | |
7475 | ac_cv_search_crypt=$ac_res | |
212380e3 AC |
7476 | else |
7477 | echo "$as_me: failed program was:" >&5 | |
7478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7479 | ||
212380e3 | 7480 | |
631ef239 | 7481 | fi |
212380e3 | 7482 | |
631ef239 AC |
7483 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7484 | conftest$ac_exeext | |
7485 | if test "${ac_cv_search_crypt+set}" = set; then | |
7486 | break | |
212380e3 | 7487 | fi |
631ef239 AC |
7488 | done |
7489 | if test "${ac_cv_search_crypt+set}" = set; then | |
7490 | : | |
7491 | else | |
7492 | ac_cv_search_crypt=no | |
212380e3 | 7493 | fi |
631ef239 | 7494 | rm conftest.$ac_ext |
212380e3 AC |
7495 | LIBS=$ac_func_search_save_LIBS |
7496 | fi | |
631ef239 AC |
7497 | { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5 |
7498 | echo "${ECHO_T}$ac_cv_search_crypt" >&6; } | |
7499 | ac_res=$ac_cv_search_crypt | |
7500 | if test "$ac_res" != no; then | |
7501 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
7502 | |
7503 | fi | |
7504 | ||
7505 | ||
7506 | CRYPT_LIB=$ac_cv_search_crypt | |
7507 | ||
7508 | if test "$CRYPT_LIB" = "none required"; then | |
7509 | unset CRYPT_LIB | |
7510 | elif test "$CRYPT_LIB" = no; then | |
7511 | unset CRYPT_LIB | |
7512 | fi | |
7513 | ||
7514 | ||
7515 | ||
7516 | if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then | |
7517 | VICONF=viconf | |
7518 | else | |
7519 | VICONF="" | |
7520 | fi | |
7521 | ||
7522 | ||
7523 | ||
631ef239 AC |
7524 | { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 |
7525 | echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; } | |
212380e3 AC |
7526 | if test "${gcc_cv_header_string+set}" = set; then |
7527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7528 | else | |
7529 | ||
7530 | cat >conftest.$ac_ext <<_ACEOF | |
7531 | #include <string.h> | |
7532 | #include <strings.h> | |
7533 | _ACEOF | |
7534 | rm -f conftest.$ac_objext | |
631ef239 AC |
7535 | if { (ac_try="$ac_compile" |
7536 | case "(($ac_try" in | |
7537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7538 | *) ac_try_echo=$ac_try;; | |
7539 | esac | |
7540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7541 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7542 | ac_status=$? |
7543 | grep -v '^ *+' conftest.er1 >conftest.err | |
7544 | rm -f conftest.er1 | |
7545 | cat conftest.err >&5 | |
7546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7547 | (exit $ac_status); } && { |
7548 | test -z "$ac_c_werror_flag" || | |
7549 | test ! -s conftest.err | |
7550 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7551 | gcc_cv_header_string=yes |
7552 | else | |
7553 | echo "$as_me: failed program was:" >&5 | |
7554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7555 | ||
631ef239 | 7556 | gcc_cv_header_string=no |
212380e3 | 7557 | fi |
631ef239 AC |
7558 | |
7559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7560 | |
7561 | fi | |
631ef239 AC |
7562 | { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 |
7563 | echo "${ECHO_T}$gcc_cv_header_string" >&6; } | |
212380e3 AC |
7564 | |
7565 | if test "$gcc_cv_header_string" = "yes"; then | |
7566 | ||
7567 | cat >>confdefs.h <<\_ACEOF | |
7568 | #define STRING_WITH_STRINGS 1 | |
7569 | _ACEOF | |
7570 | ||
7571 | fi | |
7572 | ||
631ef239 AC |
7573 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
7574 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
212380e3 AC |
7575 | if test "${ac_cv_c_bigendian+set}" = set; then |
7576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7577 | else | |
7578 | # See if sys/param.h defines the BYTE_ORDER macro. | |
7579 | cat >conftest.$ac_ext <<_ACEOF | |
7580 | /* confdefs.h. */ | |
7581 | _ACEOF | |
7582 | cat confdefs.h >>conftest.$ac_ext | |
7583 | cat >>conftest.$ac_ext <<_ACEOF | |
7584 | /* end confdefs.h. */ | |
7585 | #include <sys/types.h> | |
7586 | #include <sys/param.h> | |
7587 | ||
7588 | int | |
7589 | main () | |
7590 | { | |
631ef239 AC |
7591 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
7592 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
212380e3 AC |
7593 | bogus endian macros |
7594 | #endif | |
7595 | ||
7596 | ; | |
7597 | return 0; | |
7598 | } | |
7599 | _ACEOF | |
7600 | rm -f conftest.$ac_objext | |
631ef239 AC |
7601 | if { (ac_try="$ac_compile" |
7602 | case "(($ac_try" in | |
7603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7604 | *) ac_try_echo=$ac_try;; | |
7605 | esac | |
7606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7607 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7608 | ac_status=$? |
7609 | grep -v '^ *+' conftest.er1 >conftest.err | |
7610 | rm -f conftest.er1 | |
7611 | cat conftest.err >&5 | |
7612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7613 | (exit $ac_status); } && { |
7614 | test -z "$ac_c_werror_flag" || | |
7615 | test ! -s conftest.err | |
7616 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7617 | # It does; now see whether it defined to BIG_ENDIAN or not. |
7618 | cat >conftest.$ac_ext <<_ACEOF | |
7619 | /* confdefs.h. */ | |
7620 | _ACEOF | |
7621 | cat confdefs.h >>conftest.$ac_ext | |
7622 | cat >>conftest.$ac_ext <<_ACEOF | |
7623 | /* end confdefs.h. */ | |
7624 | #include <sys/types.h> | |
7625 | #include <sys/param.h> | |
7626 | ||
7627 | int | |
7628 | main () | |
7629 | { | |
7630 | #if BYTE_ORDER != BIG_ENDIAN | |
7631 | not big endian | |
7632 | #endif | |
7633 | ||
7634 | ; | |
7635 | return 0; | |
7636 | } | |
7637 | _ACEOF | |
7638 | rm -f conftest.$ac_objext | |
631ef239 AC |
7639 | if { (ac_try="$ac_compile" |
7640 | case "(($ac_try" in | |
7641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7642 | *) ac_try_echo=$ac_try;; | |
7643 | esac | |
7644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7645 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7646 | ac_status=$? |
7647 | grep -v '^ *+' conftest.er1 >conftest.err | |
7648 | rm -f conftest.er1 | |
7649 | cat conftest.err >&5 | |
7650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7651 | (exit $ac_status); } && { |
7652 | test -z "$ac_c_werror_flag" || | |
7653 | test ! -s conftest.err | |
7654 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7655 | ac_cv_c_bigendian=yes |
7656 | else | |
7657 | echo "$as_me: failed program was:" >&5 | |
7658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7659 | ||
631ef239 | 7660 | ac_cv_c_bigendian=no |
212380e3 | 7661 | fi |
631ef239 AC |
7662 | |
7663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7664 | else |
7665 | echo "$as_me: failed program was:" >&5 | |
7666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7667 | ||
631ef239 | 7668 | # It does not; compile a test program. |
212380e3 AC |
7669 | if test "$cross_compiling" = yes; then |
7670 | # try to guess the endianness by grepping values into an object file | |
7671 | ac_cv_c_bigendian=unknown | |
7672 | cat >conftest.$ac_ext <<_ACEOF | |
7673 | /* confdefs.h. */ | |
7674 | _ACEOF | |
7675 | cat confdefs.h >>conftest.$ac_ext | |
7676 | cat >>conftest.$ac_ext <<_ACEOF | |
7677 | /* end confdefs.h. */ | |
631ef239 AC |
7678 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
7679 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
212380e3 | 7680 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
631ef239 AC |
7681 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
7682 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
212380e3 AC |
7683 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
7684 | int | |
7685 | main () | |
7686 | { | |
7687 | _ascii (); _ebcdic (); | |
7688 | ; | |
7689 | return 0; | |
7690 | } | |
7691 | _ACEOF | |
7692 | rm -f conftest.$ac_objext | |
631ef239 AC |
7693 | if { (ac_try="$ac_compile" |
7694 | case "(($ac_try" in | |
7695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7696 | *) ac_try_echo=$ac_try;; | |
7697 | esac | |
7698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7699 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7700 | ac_status=$? |
7701 | grep -v '^ *+' conftest.er1 >conftest.err | |
7702 | rm -f conftest.er1 | |
7703 | cat conftest.err >&5 | |
7704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7705 | (exit $ac_status); } && { |
7706 | test -z "$ac_c_werror_flag" || | |
7707 | test ! -s conftest.err | |
7708 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7709 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
7710 | ac_cv_c_bigendian=yes | |
7711 | fi | |
7712 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
7713 | if test "$ac_cv_c_bigendian" = unknown; then | |
7714 | ac_cv_c_bigendian=no | |
7715 | else | |
7716 | # finding both strings is unlikely to happen, but who knows? | |
7717 | ac_cv_c_bigendian=unknown | |
7718 | fi | |
7719 | fi | |
7720 | else | |
7721 | echo "$as_me: failed program was:" >&5 | |
7722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7723 | ||
631ef239 | 7724 | |
212380e3 | 7725 | fi |
631ef239 AC |
7726 | |
7727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7728 | else |
7729 | cat >conftest.$ac_ext <<_ACEOF | |
7730 | /* confdefs.h. */ | |
7731 | _ACEOF | |
7732 | cat confdefs.h >>conftest.$ac_ext | |
7733 | cat >>conftest.$ac_ext <<_ACEOF | |
7734 | /* end confdefs.h. */ | |
631ef239 | 7735 | $ac_includes_default |
212380e3 AC |
7736 | int |
7737 | main () | |
7738 | { | |
631ef239 | 7739 | |
212380e3 AC |
7740 | /* Are we little or big endian? From Harbison&Steele. */ |
7741 | union | |
7742 | { | |
631ef239 AC |
7743 | long int l; |
7744 | char c[sizeof (long int)]; | |
212380e3 AC |
7745 | } u; |
7746 | u.l = 1; | |
631ef239 AC |
7747 | return u.c[sizeof (long int) - 1] == 1; |
7748 | ||
7749 | ; | |
7750 | return 0; | |
212380e3 AC |
7751 | } |
7752 | _ACEOF | |
7753 | rm -f conftest$ac_exeext | |
631ef239 AC |
7754 | if { (ac_try="$ac_link" |
7755 | case "(($ac_try" in | |
7756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7757 | *) ac_try_echo=$ac_try;; | |
7758 | esac | |
7759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7760 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
7761 | ac_status=$? |
7762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7763 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
7764 | { (case "(($ac_try" in |
7765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7766 | *) ac_try_echo=$ac_try;; | |
7767 | esac | |
7768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7769 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
7770 | ac_status=$? |
7771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7772 | (exit $ac_status); }; }; then | |
7773 | ac_cv_c_bigendian=no | |
7774 | else | |
7775 | echo "$as_me: program exited with status $ac_status" >&5 | |
7776 | echo "$as_me: failed program was:" >&5 | |
7777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7778 | ||
7779 | ( exit $ac_status ) | |
7780 | ac_cv_c_bigendian=yes | |
7781 | fi | |
631ef239 | 7782 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 7783 | fi |
631ef239 AC |
7784 | |
7785 | ||
212380e3 | 7786 | fi |
631ef239 AC |
7787 | |
7788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7789 | fi |
631ef239 AC |
7790 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
7791 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
212380e3 AC |
7792 | case $ac_cv_c_bigendian in |
7793 | yes) | |
7794 | ||
7795 | cat >>confdefs.h <<\_ACEOF | |
7796 | #define WORDS_BIGENDIAN 1 | |
7797 | _ACEOF | |
7798 | ;; | |
7799 | no) | |
7800 | ;; | |
7801 | *) | |
7802 | { { echo "$as_me:$LINENO: error: unknown endianness | |
7803 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
7804 | echo "$as_me: error: unknown endianness | |
7805 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
7806 | { (exit 1); exit 1; }; } ;; | |
7807 | esac | |
7808 | ||
7809 | ||
7810 | if test "${ac_cv_header_stdarg_h+set}" = set; then | |
631ef239 AC |
7811 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
7812 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } | |
212380e3 AC |
7813 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
7814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7815 | fi | |
631ef239 AC |
7816 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
7817 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } | |
212380e3 AC |
7818 | else |
7819 | # Is the header compilable? | |
631ef239 AC |
7820 | { echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
7821 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
7822 | cat >conftest.$ac_ext <<_ACEOF |
7823 | /* confdefs.h. */ | |
7824 | _ACEOF | |
7825 | cat confdefs.h >>conftest.$ac_ext | |
7826 | cat >>conftest.$ac_ext <<_ACEOF | |
7827 | /* end confdefs.h. */ | |
7828 | $ac_includes_default | |
7829 | #include <stdarg.h> | |
7830 | _ACEOF | |
7831 | rm -f conftest.$ac_objext | |
631ef239 AC |
7832 | if { (ac_try="$ac_compile" |
7833 | case "(($ac_try" in | |
7834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7835 | *) ac_try_echo=$ac_try;; | |
7836 | esac | |
7837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7838 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7839 | ac_status=$? |
7840 | grep -v '^ *+' conftest.er1 >conftest.err | |
7841 | rm -f conftest.er1 | |
7842 | cat conftest.err >&5 | |
7843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7844 | (exit $ac_status); } && { |
7845 | test -z "$ac_c_werror_flag" || | |
7846 | test ! -s conftest.err | |
7847 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7848 | ac_header_compiler=yes |
7849 | else | |
7850 | echo "$as_me: failed program was:" >&5 | |
7851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7852 | ||
631ef239 | 7853 | ac_header_compiler=no |
212380e3 | 7854 | fi |
631ef239 AC |
7855 | |
7856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7857 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7858 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
7859 | |
7860 | # Is the header present? | |
631ef239 AC |
7861 | { echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
7862 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
7863 | cat >conftest.$ac_ext <<_ACEOF |
7864 | /* confdefs.h. */ | |
7865 | _ACEOF | |
7866 | cat confdefs.h >>conftest.$ac_ext | |
7867 | cat >>conftest.$ac_ext <<_ACEOF | |
7868 | /* end confdefs.h. */ | |
7869 | #include <stdarg.h> | |
7870 | _ACEOF | |
631ef239 AC |
7871 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7872 | case "(($ac_try" in | |
7873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7874 | *) ac_try_echo=$ac_try;; | |
7875 | esac | |
7876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7877 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
7878 | ac_status=$? |
7879 | grep -v '^ *+' conftest.er1 >conftest.err | |
7880 | rm -f conftest.er1 | |
7881 | cat conftest.err >&5 | |
7882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7883 | (exit $ac_status); } >/dev/null && { |
7884 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7885 | test ! -s conftest.err | |
7886 | }; then | |
212380e3 AC |
7887 | ac_header_preproc=yes |
7888 | else | |
7889 | echo "$as_me: failed program was:" >&5 | |
7890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7891 | ||
7892 | ac_header_preproc=no | |
7893 | fi | |
631ef239 | 7894 | |
212380e3 | 7895 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
7896 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7897 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
7898 | |
7899 | # So? What about this header? | |
7900 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7901 | yes:no: ) | |
7902 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7903 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7904 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 | |
7905 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} | |
7906 | ac_header_preproc=yes | |
7907 | ;; | |
7908 | no:yes:* ) | |
7909 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 | |
7910 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} | |
7911 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 | |
7912 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} | |
7913 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 | |
7914 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} | |
7915 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7916 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7917 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 | |
7918 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} | |
7919 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 | |
7920 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 7921 | |
212380e3 AC |
7922 | ;; |
7923 | esac | |
631ef239 AC |
7924 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
7925 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } | |
212380e3 AC |
7926 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
7927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7928 | else | |
7929 | ac_cv_header_stdarg_h=$ac_header_preproc | |
7930 | fi | |
631ef239 AC |
7931 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
7932 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } | |
212380e3 AC |
7933 | |
7934 | fi | |
7935 | if test $ac_cv_header_stdarg_h = yes; then | |
7936 | : | |
7937 | else | |
7938 | { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&5 | |
7939 | echo "$as_me: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&2;} | |
7940 | { (exit 1); exit 1; }; } | |
7941 | fi | |
7942 | ||
7943 | ||
7944 | ||
7945 | ||
7946 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
7947 | ||
631ef239 AC |
7948 | { echo "$as_me:$LINENO: checking for strlcpy" >&5 |
7949 | echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; } | |
212380e3 AC |
7950 | save_CFLAGS=$CFLAGS |
7951 | CFLAGS="$CFLAGS -Wimplicit -Werror" | |
7952 | ||
7953 | cat >conftest.$ac_ext <<_ACEOF | |
7954 | /* confdefs.h. */ | |
7955 | _ACEOF | |
7956 | cat confdefs.h >>conftest.$ac_ext | |
7957 | cat >>conftest.$ac_ext <<_ACEOF | |
7958 | /* end confdefs.h. */ | |
7959 | #include <string.h> | |
7960 | #include <stdlib.h> | |
7961 | int | |
7962 | main () | |
7963 | { | |
7964 | char *a = malloc(6); | |
7965 | strlcpy(a, "hello", 6); | |
7966 | ||
7967 | ; | |
7968 | return 0; | |
7969 | } | |
7970 | _ACEOF | |
7971 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
7972 | if { (ac_try="$ac_link" |
7973 | case "(($ac_try" in | |
7974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7975 | *) ac_try_echo=$ac_try;; | |
7976 | esac | |
7977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7978 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7979 | ac_status=$? |
7980 | grep -v '^ *+' conftest.er1 >conftest.err | |
7981 | rm -f conftest.er1 | |
7982 | cat conftest.err >&5 | |
7983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7984 | (exit $ac_status); } && { |
7985 | test -z "$ac_c_werror_flag" || | |
7986 | test ! -s conftest.err | |
7987 | } && test -s conftest$ac_exeext && | |
7988 | $as_test_x conftest$ac_exeext; then | |
7989 | { echo "$as_me:$LINENO: result: yes" >&5 | |
7990 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
7991 | |
7992 | cat >>confdefs.h <<\_ACEOF | |
7993 | #define HAVE_STRLCPY 1 | |
7994 | _ACEOF | |
7995 | ||
7996 | else | |
7997 | echo "$as_me: failed program was:" >&5 | |
7998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7999 | ||
631ef239 AC |
8000 | { echo "$as_me:$LINENO: result: no" >&5 |
8001 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
8002 | |
8003 | fi | |
631ef239 AC |
8004 | |
8005 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8006 | conftest$ac_exeext conftest.$ac_ext |
8007 | ||
631ef239 AC |
8008 | { echo "$as_me:$LINENO: checking for strlcat" >&5 |
8009 | echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; } | |
212380e3 AC |
8010 | cat >conftest.$ac_ext <<_ACEOF |
8011 | /* confdefs.h. */ | |
8012 | _ACEOF | |
8013 | cat confdefs.h >>conftest.$ac_ext | |
8014 | cat >>conftest.$ac_ext <<_ACEOF | |
8015 | /* end confdefs.h. */ | |
8016 | #include <string.h> | |
8017 | #include <stdlib.h> | |
8018 | int | |
8019 | main () | |
8020 | { | |
8021 | char *a = malloc(6); | |
8022 | a[0] = '\0'; | |
8023 | strlcat(a, "hello", 6); | |
8024 | ||
8025 | ; | |
8026 | return 0; | |
8027 | } | |
8028 | _ACEOF | |
8029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8030 | if { (ac_try="$ac_link" |
8031 | case "(($ac_try" in | |
8032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8033 | *) ac_try_echo=$ac_try;; | |
8034 | esac | |
8035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8036 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8037 | ac_status=$? |
8038 | grep -v '^ *+' conftest.er1 >conftest.err | |
8039 | rm -f conftest.er1 | |
8040 | cat conftest.err >&5 | |
8041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8042 | (exit $ac_status); } && { |
8043 | test -z "$ac_c_werror_flag" || | |
8044 | test ! -s conftest.err | |
8045 | } && test -s conftest$ac_exeext && | |
8046 | $as_test_x conftest$ac_exeext; then | |
8047 | { echo "$as_me:$LINENO: result: yes" >&5 | |
8048 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
8049 | |
8050 | cat >>confdefs.h <<\_ACEOF | |
8051 | #define HAVE_STRLCAT 1 | |
8052 | _ACEOF | |
8053 | ||
8054 | else | |
8055 | echo "$as_me: failed program was:" >&5 | |
8056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8057 | ||
631ef239 AC |
8058 | { echo "$as_me:$LINENO: result: no" >&5 |
8059 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
8060 | |
8061 | fi | |
631ef239 AC |
8062 | |
8063 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8064 | conftest$ac_exeext conftest.$ac_ext |
8065 | ||
8066 | CFLAGS=$save_CFLAGS | |
8067 | ||
8068 | else | |
8069 | ||
8070 | ||
8071 | ||
8072 | ||
8073 | for ac_func in strlcat strlcpy | |
8074 | do | |
8075 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
8076 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8077 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8078 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
8079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8080 | else | |
8081 | cat >conftest.$ac_ext <<_ACEOF | |
8082 | /* confdefs.h. */ | |
8083 | _ACEOF | |
8084 | cat confdefs.h >>conftest.$ac_ext | |
8085 | cat >>conftest.$ac_ext <<_ACEOF | |
8086 | /* end confdefs.h. */ | |
8087 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8088 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8089 | #define $ac_func innocuous_$ac_func | |
8090 | ||
8091 | /* System header to define __stub macros and hopefully few prototypes, | |
8092 | which can conflict with char $ac_func (); below. | |
8093 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8094 | <limits.h> exists even on freestanding compilers. */ | |
8095 | ||
8096 | #ifdef __STDC__ | |
8097 | # include <limits.h> | |
8098 | #else | |
8099 | # include <assert.h> | |
8100 | #endif | |
8101 | ||
8102 | #undef $ac_func | |
8103 | ||
631ef239 AC |
8104 | /* Override any GCC internal prototype to avoid an error. |
8105 | Use char because int might match the return type of a GCC | |
8106 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8107 | #ifdef __cplusplus |
8108 | extern "C" | |
212380e3 | 8109 | #endif |
212380e3 AC |
8110 | char $ac_func (); |
8111 | /* The GNU C library defines this for functions which it implements | |
8112 | to always fail with ENOSYS. Some functions are actually named | |
8113 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8114 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 8115 | choke me |
212380e3 AC |
8116 | #endif |
8117 | ||
8118 | int | |
8119 | main () | |
8120 | { | |
631ef239 | 8121 | return $ac_func (); |
212380e3 AC |
8122 | ; |
8123 | return 0; | |
8124 | } | |
8125 | _ACEOF | |
8126 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8127 | if { (ac_try="$ac_link" |
8128 | case "(($ac_try" in | |
8129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8130 | *) ac_try_echo=$ac_try;; | |
8131 | esac | |
8132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8133 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8134 | ac_status=$? |
8135 | grep -v '^ *+' conftest.er1 >conftest.err | |
8136 | rm -f conftest.er1 | |
8137 | cat conftest.err >&5 | |
8138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8139 | (exit $ac_status); } && { |
8140 | test -z "$ac_c_werror_flag" || | |
8141 | test ! -s conftest.err | |
8142 | } && test -s conftest$ac_exeext && | |
8143 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8144 | eval "$as_ac_var=yes" |
8145 | else | |
8146 | echo "$as_me: failed program was:" >&5 | |
8147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8148 | ||
631ef239 | 8149 | eval "$as_ac_var=no" |
212380e3 | 8150 | fi |
631ef239 AC |
8151 | |
8152 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8153 | conftest$ac_exeext conftest.$ac_ext |
8154 | fi | |
631ef239 AC |
8155 | ac_res=`eval echo '${'$as_ac_var'}'` |
8156 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8157 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
8158 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8159 | cat >>confdefs.h <<_ACEOF | |
8160 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8161 | _ACEOF | |
8162 | ||
8163 | fi | |
8164 | done | |
8165 | ||
8166 | ||
8167 | fi | |
8168 | ||
631ef239 AC |
8169 | { echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
8170 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } | |
212380e3 AC |
8171 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
8172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8173 | else | |
8174 | cat >conftest.$ac_ext <<_ACEOF | |
8175 | /* confdefs.h. */ | |
8176 | _ACEOF | |
8177 | cat confdefs.h >>conftest.$ac_ext | |
8178 | cat >>conftest.$ac_ext <<_ACEOF | |
8179 | /* end confdefs.h. */ | |
8180 | $ac_includes_default | |
631ef239 | 8181 | typedef u_int32_t ac__type_new_; |
212380e3 AC |
8182 | int |
8183 | main () | |
8184 | { | |
631ef239 | 8185 | if ((ac__type_new_ *) 0) |
212380e3 | 8186 | return 0; |
631ef239 | 8187 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8188 | return 0; |
8189 | ; | |
8190 | return 0; | |
8191 | } | |
8192 | _ACEOF | |
8193 | rm -f conftest.$ac_objext | |
631ef239 AC |
8194 | if { (ac_try="$ac_compile" |
8195 | case "(($ac_try" in | |
8196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8197 | *) ac_try_echo=$ac_try;; | |
8198 | esac | |
8199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8200 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8201 | ac_status=$? |
8202 | grep -v '^ *+' conftest.er1 >conftest.err | |
8203 | rm -f conftest.er1 | |
8204 | cat conftest.err >&5 | |
8205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8206 | (exit $ac_status); } && { |
8207 | test -z "$ac_c_werror_flag" || | |
8208 | test ! -s conftest.err | |
8209 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8210 | ac_cv_type_u_int32_t=yes |
8211 | else | |
8212 | echo "$as_me: failed program was:" >&5 | |
8213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8214 | ||
631ef239 | 8215 | ac_cv_type_u_int32_t=no |
212380e3 | 8216 | fi |
631ef239 AC |
8217 | |
8218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8219 | fi |
631ef239 AC |
8220 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
8221 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } | |
212380e3 AC |
8222 | if test $ac_cv_type_u_int32_t = yes; then |
8223 | : | |
8224 | else | |
8225 | ||
631ef239 AC |
8226 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
8227 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } | |
212380e3 AC |
8228 | if test "${ac_cv_type_uint32_t+set}" = set; then |
8229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8230 | else | |
8231 | cat >conftest.$ac_ext <<_ACEOF | |
8232 | /* confdefs.h. */ | |
8233 | _ACEOF | |
8234 | cat confdefs.h >>conftest.$ac_ext | |
8235 | cat >>conftest.$ac_ext <<_ACEOF | |
8236 | /* end confdefs.h. */ | |
8237 | $ac_includes_default | |
631ef239 | 8238 | typedef uint32_t ac__type_new_; |
212380e3 AC |
8239 | int |
8240 | main () | |
8241 | { | |
631ef239 | 8242 | if ((ac__type_new_ *) 0) |
212380e3 | 8243 | return 0; |
631ef239 | 8244 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8245 | return 0; |
8246 | ; | |
8247 | return 0; | |
8248 | } | |
8249 | _ACEOF | |
8250 | rm -f conftest.$ac_objext | |
631ef239 AC |
8251 | if { (ac_try="$ac_compile" |
8252 | case "(($ac_try" in | |
8253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8254 | *) ac_try_echo=$ac_try;; | |
8255 | esac | |
8256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8257 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8258 | ac_status=$? |
8259 | grep -v '^ *+' conftest.er1 >conftest.err | |
8260 | rm -f conftest.er1 | |
8261 | cat conftest.err >&5 | |
8262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8263 | (exit $ac_status); } && { |
8264 | test -z "$ac_c_werror_flag" || | |
8265 | test ! -s conftest.err | |
8266 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8267 | ac_cv_type_uint32_t=yes |
8268 | else | |
8269 | echo "$as_me: failed program was:" >&5 | |
8270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8271 | ||
631ef239 | 8272 | ac_cv_type_uint32_t=no |
212380e3 | 8273 | fi |
631ef239 AC |
8274 | |
8275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8276 | fi |
631ef239 AC |
8277 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
8278 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } | |
212380e3 AC |
8279 | if test $ac_cv_type_uint32_t = yes; then |
8280 | ||
8281 | ||
8282 | cat >>confdefs.h <<\_ACEOF | |
8283 | #define u_int32_t uint32_t | |
8284 | _ACEOF | |
8285 | ||
8286 | ||
8287 | else | |
8288 | ||
8289 | { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 | |
8290 | echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
8291 | ||
8292 | cat >>confdefs.h <<\_ACEOF | |
8293 | #define u_int32_t unsigned long int | |
8294 | _ACEOF | |
8295 | ||
8296 | ||
8297 | fi | |
8298 | ||
8299 | ||
8300 | fi | |
8301 | ||
8302 | ||
631ef239 AC |
8303 | { echo "$as_me:$LINENO: checking for u_int16_t" >&5 |
8304 | echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } | |
212380e3 AC |
8305 | if test "${ac_cv_type_u_int16_t+set}" = set; then |
8306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8307 | else | |
8308 | cat >conftest.$ac_ext <<_ACEOF | |
8309 | /* confdefs.h. */ | |
8310 | _ACEOF | |
8311 | cat confdefs.h >>conftest.$ac_ext | |
8312 | cat >>conftest.$ac_ext <<_ACEOF | |
8313 | /* end confdefs.h. */ | |
8314 | $ac_includes_default | |
631ef239 | 8315 | typedef u_int16_t ac__type_new_; |
212380e3 AC |
8316 | int |
8317 | main () | |
8318 | { | |
631ef239 | 8319 | if ((ac__type_new_ *) 0) |
212380e3 | 8320 | return 0; |
631ef239 | 8321 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8322 | return 0; |
8323 | ; | |
8324 | return 0; | |
8325 | } | |
8326 | _ACEOF | |
8327 | rm -f conftest.$ac_objext | |
631ef239 AC |
8328 | if { (ac_try="$ac_compile" |
8329 | case "(($ac_try" in | |
8330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8331 | *) ac_try_echo=$ac_try;; | |
8332 | esac | |
8333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8334 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8335 | ac_status=$? |
8336 | grep -v '^ *+' conftest.er1 >conftest.err | |
8337 | rm -f conftest.er1 | |
8338 | cat conftest.err >&5 | |
8339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8340 | (exit $ac_status); } && { |
8341 | test -z "$ac_c_werror_flag" || | |
8342 | test ! -s conftest.err | |
8343 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8344 | ac_cv_type_u_int16_t=yes |
8345 | else | |
8346 | echo "$as_me: failed program was:" >&5 | |
8347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8348 | ||
631ef239 | 8349 | ac_cv_type_u_int16_t=no |
212380e3 | 8350 | fi |
631ef239 AC |
8351 | |
8352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8353 | fi |
631ef239 AC |
8354 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 |
8355 | echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; } | |
212380e3 AC |
8356 | if test $ac_cv_type_u_int16_t = yes; then |
8357 | : | |
8358 | else | |
8359 | ||
631ef239 AC |
8360 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
8361 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } | |
212380e3 AC |
8362 | if test "${ac_cv_type_uint16_t+set}" = set; then |
8363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8364 | else | |
8365 | cat >conftest.$ac_ext <<_ACEOF | |
8366 | /* confdefs.h. */ | |
8367 | _ACEOF | |
8368 | cat confdefs.h >>conftest.$ac_ext | |
8369 | cat >>conftest.$ac_ext <<_ACEOF | |
8370 | /* end confdefs.h. */ | |
8371 | $ac_includes_default | |
631ef239 | 8372 | typedef uint16_t ac__type_new_; |
212380e3 AC |
8373 | int |
8374 | main () | |
8375 | { | |
631ef239 | 8376 | if ((ac__type_new_ *) 0) |
212380e3 | 8377 | return 0; |
631ef239 | 8378 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8379 | return 0; |
8380 | ; | |
8381 | return 0; | |
8382 | } | |
8383 | _ACEOF | |
8384 | rm -f conftest.$ac_objext | |
631ef239 AC |
8385 | if { (ac_try="$ac_compile" |
8386 | case "(($ac_try" in | |
8387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8388 | *) ac_try_echo=$ac_try;; | |
8389 | esac | |
8390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8391 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8392 | ac_status=$? |
8393 | grep -v '^ *+' conftest.er1 >conftest.err | |
8394 | rm -f conftest.er1 | |
8395 | cat conftest.err >&5 | |
8396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8397 | (exit $ac_status); } && { |
8398 | test -z "$ac_c_werror_flag" || | |
8399 | test ! -s conftest.err | |
8400 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8401 | ac_cv_type_uint16_t=yes |
8402 | else | |
8403 | echo "$as_me: failed program was:" >&5 | |
8404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8405 | ||
631ef239 | 8406 | ac_cv_type_uint16_t=no |
212380e3 | 8407 | fi |
631ef239 AC |
8408 | |
8409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8410 | fi |
631ef239 AC |
8411 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 |
8412 | echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; } | |
212380e3 AC |
8413 | if test $ac_cv_type_uint16_t = yes; then |
8414 | ||
8415 | ||
8416 | cat >>confdefs.h <<\_ACEOF | |
8417 | #define u_int16_t uint16_t | |
8418 | _ACEOF | |
8419 | ||
8420 | ||
8421 | else | |
8422 | ||
8423 | { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 | |
8424 | echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
8425 | ||
8426 | cat >>confdefs.h <<\_ACEOF | |
8427 | #define u_int16_t unsigned short int | |
8428 | _ACEOF | |
8429 | ||
8430 | ||
8431 | fi | |
8432 | ||
8433 | ||
8434 | fi | |
8435 | ||
8436 | ||
631ef239 AC |
8437 | { echo "$as_me:$LINENO: checking for in_port_t" >&5 |
8438 | echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } | |
212380e3 AC |
8439 | if test "${ac_cv_type_in_port_t+set}" = set; then |
8440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8441 | else | |
8442 | cat >conftest.$ac_ext <<_ACEOF | |
8443 | /* confdefs.h. */ | |
8444 | _ACEOF | |
8445 | cat confdefs.h >>conftest.$ac_ext | |
8446 | cat >>conftest.$ac_ext <<_ACEOF | |
8447 | /* end confdefs.h. */ | |
8448 | #include <sys/types.h> | |
8449 | #include <netinet/in.h> | |
8450 | ||
631ef239 | 8451 | typedef in_port_t ac__type_new_; |
212380e3 AC |
8452 | int |
8453 | main () | |
8454 | { | |
631ef239 | 8455 | if ((ac__type_new_ *) 0) |
212380e3 | 8456 | return 0; |
631ef239 | 8457 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8458 | return 0; |
8459 | ; | |
8460 | return 0; | |
8461 | } | |
8462 | _ACEOF | |
8463 | rm -f conftest.$ac_objext | |
631ef239 AC |
8464 | if { (ac_try="$ac_compile" |
8465 | case "(($ac_try" in | |
8466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8467 | *) ac_try_echo=$ac_try;; | |
8468 | esac | |
8469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8470 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8471 | ac_status=$? |
8472 | grep -v '^ *+' conftest.er1 >conftest.err | |
8473 | rm -f conftest.er1 | |
8474 | cat conftest.err >&5 | |
8475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8476 | (exit $ac_status); } && { |
8477 | test -z "$ac_c_werror_flag" || | |
8478 | test ! -s conftest.err | |
8479 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8480 | ac_cv_type_in_port_t=yes |
8481 | else | |
8482 | echo "$as_me: failed program was:" >&5 | |
8483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8484 | ||
631ef239 | 8485 | ac_cv_type_in_port_t=no |
212380e3 | 8486 | fi |
631ef239 AC |
8487 | |
8488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8489 | fi |
631ef239 AC |
8490 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 |
8491 | echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } | |
212380e3 AC |
8492 | if test $ac_cv_type_in_port_t = yes; then |
8493 | : | |
8494 | else | |
8495 | ||
8496 | cat >>confdefs.h <<\_ACEOF | |
8497 | #define in_port_t u_int16_t | |
8498 | _ACEOF | |
8499 | ||
8500 | fi | |
8501 | ||
8502 | ||
631ef239 AC |
8503 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 |
8504 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | |
212380e3 AC |
8505 | if test "${ac_cv_type_sa_family_t+set}" = set; then |
8506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8507 | else | |
8508 | cat >conftest.$ac_ext <<_ACEOF | |
8509 | /* confdefs.h. */ | |
8510 | _ACEOF | |
8511 | cat confdefs.h >>conftest.$ac_ext | |
8512 | cat >>conftest.$ac_ext <<_ACEOF | |
8513 | /* end confdefs.h. */ | |
8514 | #include <sys/types.h> | |
8515 | #include <sys/socket.h> | |
8516 | ||
631ef239 | 8517 | typedef sa_family_t ac__type_new_; |
212380e3 AC |
8518 | int |
8519 | main () | |
8520 | { | |
631ef239 | 8521 | if ((ac__type_new_ *) 0) |
212380e3 | 8522 | return 0; |
631ef239 | 8523 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8524 | return 0; |
8525 | ; | |
8526 | return 0; | |
8527 | } | |
8528 | _ACEOF | |
8529 | rm -f conftest.$ac_objext | |
631ef239 AC |
8530 | if { (ac_try="$ac_compile" |
8531 | case "(($ac_try" in | |
8532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8533 | *) ac_try_echo=$ac_try;; | |
8534 | esac | |
8535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8536 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8537 | ac_status=$? |
8538 | grep -v '^ *+' conftest.er1 >conftest.err | |
8539 | rm -f conftest.er1 | |
8540 | cat conftest.err >&5 | |
8541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8542 | (exit $ac_status); } && { |
8543 | test -z "$ac_c_werror_flag" || | |
8544 | test ! -s conftest.err | |
8545 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8546 | ac_cv_type_sa_family_t=yes |
8547 | else | |
8548 | echo "$as_me: failed program was:" >&5 | |
8549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8550 | ||
631ef239 | 8551 | ac_cv_type_sa_family_t=no |
212380e3 | 8552 | fi |
631ef239 AC |
8553 | |
8554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8555 | fi |
631ef239 AC |
8556 | { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5 |
8557 | echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; } | |
212380e3 AC |
8558 | if test $ac_cv_type_sa_family_t = yes; then |
8559 | : | |
8560 | else | |
8561 | ||
8562 | cat >>confdefs.h <<\_ACEOF | |
8563 | #define sa_family_t u_int16_t | |
8564 | _ACEOF | |
8565 | ||
8566 | fi | |
8567 | ||
8568 | ||
631ef239 AC |
8569 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
8570 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } | |
212380e3 AC |
8571 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
8572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8573 | else | |
8574 | cat >conftest.$ac_ext <<_ACEOF | |
8575 | /* confdefs.h. */ | |
8576 | _ACEOF | |
8577 | cat confdefs.h >>conftest.$ac_ext | |
8578 | cat >>conftest.$ac_ext <<_ACEOF | |
8579 | /* end confdefs.h. */ | |
8580 | $ac_includes_default | |
631ef239 | 8581 | typedef uintptr_t ac__type_new_; |
212380e3 AC |
8582 | int |
8583 | main () | |
8584 | { | |
631ef239 | 8585 | if ((ac__type_new_ *) 0) |
212380e3 | 8586 | return 0; |
631ef239 | 8587 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8588 | return 0; |
8589 | ; | |
8590 | return 0; | |
8591 | } | |
8592 | _ACEOF | |
8593 | rm -f conftest.$ac_objext | |
631ef239 AC |
8594 | if { (ac_try="$ac_compile" |
8595 | case "(($ac_try" in | |
8596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8597 | *) ac_try_echo=$ac_try;; | |
8598 | esac | |
8599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8600 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8601 | ac_status=$? |
8602 | grep -v '^ *+' conftest.er1 >conftest.err | |
8603 | rm -f conftest.er1 | |
8604 | cat conftest.err >&5 | |
8605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8606 | (exit $ac_status); } && { |
8607 | test -z "$ac_c_werror_flag" || | |
8608 | test ! -s conftest.err | |
8609 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8610 | ac_cv_type_uintptr_t=yes |
8611 | else | |
8612 | echo "$as_me: failed program was:" >&5 | |
8613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8614 | ||
631ef239 | 8615 | ac_cv_type_uintptr_t=no |
212380e3 | 8616 | fi |
631ef239 AC |
8617 | |
8618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8619 | fi |
631ef239 AC |
8620 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
8621 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } | |
212380e3 AC |
8622 | if test $ac_cv_type_uintptr_t = yes; then |
8623 | ||
8624 | cat >>confdefs.h <<_ACEOF | |
8625 | #define HAVE_UINTPTR_T 1 | |
8626 | _ACEOF | |
8627 | ||
8628 | ||
8629 | fi | |
8630 | ||
8631 | ||
8632 | ||
8633 | ||
8634 | ||
8635 | ||
8636 | ||
8637 | ||
8638 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
8639 | do | |
8640 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
8641 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8642 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8643 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
8644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8645 | else | |
8646 | cat >conftest.$ac_ext <<_ACEOF | |
8647 | /* confdefs.h. */ | |
8648 | _ACEOF | |
8649 | cat confdefs.h >>conftest.$ac_ext | |
8650 | cat >>conftest.$ac_ext <<_ACEOF | |
8651 | /* end confdefs.h. */ | |
8652 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8653 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8654 | #define $ac_func innocuous_$ac_func | |
8655 | ||
8656 | /* System header to define __stub macros and hopefully few prototypes, | |
8657 | which can conflict with char $ac_func (); below. | |
8658 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8659 | <limits.h> exists even on freestanding compilers. */ | |
8660 | ||
8661 | #ifdef __STDC__ | |
8662 | # include <limits.h> | |
8663 | #else | |
8664 | # include <assert.h> | |
8665 | #endif | |
8666 | ||
8667 | #undef $ac_func | |
8668 | ||
631ef239 AC |
8669 | /* Override any GCC internal prototype to avoid an error. |
8670 | Use char because int might match the return type of a GCC | |
8671 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8672 | #ifdef __cplusplus |
8673 | extern "C" | |
212380e3 | 8674 | #endif |
212380e3 AC |
8675 | char $ac_func (); |
8676 | /* The GNU C library defines this for functions which it implements | |
8677 | to always fail with ENOSYS. Some functions are actually named | |
8678 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8679 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 8680 | choke me |
212380e3 AC |
8681 | #endif |
8682 | ||
8683 | int | |
8684 | main () | |
8685 | { | |
631ef239 | 8686 | return $ac_func (); |
212380e3 AC |
8687 | ; |
8688 | return 0; | |
8689 | } | |
8690 | _ACEOF | |
8691 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8692 | if { (ac_try="$ac_link" |
8693 | case "(($ac_try" in | |
8694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8695 | *) ac_try_echo=$ac_try;; | |
8696 | esac | |
8697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8698 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8699 | ac_status=$? |
8700 | grep -v '^ *+' conftest.er1 >conftest.err | |
8701 | rm -f conftest.er1 | |
8702 | cat conftest.err >&5 | |
8703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8704 | (exit $ac_status); } && { |
8705 | test -z "$ac_c_werror_flag" || | |
8706 | test ! -s conftest.err | |
8707 | } && test -s conftest$ac_exeext && | |
8708 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8709 | eval "$as_ac_var=yes" |
8710 | else | |
8711 | echo "$as_me: failed program was:" >&5 | |
8712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8713 | ||
631ef239 | 8714 | eval "$as_ac_var=no" |
212380e3 | 8715 | fi |
631ef239 AC |
8716 | |
8717 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8718 | conftest$ac_exeext conftest.$ac_ext |
8719 | fi | |
631ef239 AC |
8720 | ac_res=`eval echo '${'$as_ac_var'}'` |
8721 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8722 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
8723 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8724 | cat >>confdefs.h <<_ACEOF | |
8725 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8726 | _ACEOF | |
8727 | ||
8728 | fi | |
8729 | done | |
8730 | ||
8731 | ||
8732 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
8733 | # for constant arguments. Useless! | |
631ef239 AC |
8734 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8735 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
212380e3 AC |
8736 | if test "${ac_cv_working_alloca_h+set}" = set; then |
8737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8738 | else | |
8739 | cat >conftest.$ac_ext <<_ACEOF | |
8740 | /* confdefs.h. */ | |
8741 | _ACEOF | |
8742 | cat confdefs.h >>conftest.$ac_ext | |
8743 | cat >>conftest.$ac_ext <<_ACEOF | |
8744 | /* end confdefs.h. */ | |
8745 | #include <alloca.h> | |
8746 | int | |
8747 | main () | |
8748 | { | |
8749 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 8750 | if (p) return 0; |
212380e3 AC |
8751 | ; |
8752 | return 0; | |
8753 | } | |
8754 | _ACEOF | |
8755 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8756 | if { (ac_try="$ac_link" |
8757 | case "(($ac_try" in | |
8758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8759 | *) ac_try_echo=$ac_try;; | |
8760 | esac | |
8761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8762 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8763 | ac_status=$? |
8764 | grep -v '^ *+' conftest.er1 >conftest.err | |
8765 | rm -f conftest.er1 | |
8766 | cat conftest.err >&5 | |
8767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8768 | (exit $ac_status); } && { |
8769 | test -z "$ac_c_werror_flag" || | |
8770 | test ! -s conftest.err | |
8771 | } && test -s conftest$ac_exeext && | |
8772 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8773 | ac_cv_working_alloca_h=yes |
8774 | else | |
8775 | echo "$as_me: failed program was:" >&5 | |
8776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8777 | ||
631ef239 | 8778 | ac_cv_working_alloca_h=no |
212380e3 | 8779 | fi |
631ef239 AC |
8780 | |
8781 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8782 | conftest$ac_exeext conftest.$ac_ext |
8783 | fi | |
631ef239 AC |
8784 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
8785 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
212380e3 AC |
8786 | if test $ac_cv_working_alloca_h = yes; then |
8787 | ||
8788 | cat >>confdefs.h <<\_ACEOF | |
8789 | #define HAVE_ALLOCA_H 1 | |
8790 | _ACEOF | |
8791 | ||
8792 | fi | |
8793 | ||
631ef239 AC |
8794 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
8795 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
212380e3 AC |
8796 | if test "${ac_cv_func_alloca_works+set}" = set; then |
8797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8798 | else | |
8799 | cat >conftest.$ac_ext <<_ACEOF | |
8800 | /* confdefs.h. */ | |
8801 | _ACEOF | |
8802 | cat confdefs.h >>conftest.$ac_ext | |
8803 | cat >>conftest.$ac_ext <<_ACEOF | |
8804 | /* end confdefs.h. */ | |
8805 | #ifdef __GNUC__ | |
8806 | # define alloca __builtin_alloca | |
8807 | #else | |
8808 | # ifdef _MSC_VER | |
8809 | # include <malloc.h> | |
8810 | # define alloca _alloca | |
8811 | # else | |
631ef239 | 8812 | # ifdef HAVE_ALLOCA_H |
212380e3 AC |
8813 | # include <alloca.h> |
8814 | # else | |
8815 | # ifdef _AIX | |
8816 | #pragma alloca | |
8817 | # else | |
8818 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8819 | char *alloca (); | |
8820 | # endif | |
8821 | # endif | |
8822 | # endif | |
8823 | # endif | |
8824 | #endif | |
8825 | ||
8826 | int | |
8827 | main () | |
8828 | { | |
8829 | char *p = (char *) alloca (1); | |
631ef239 | 8830 | if (p) return 0; |
212380e3 AC |
8831 | ; |
8832 | return 0; | |
8833 | } | |
8834 | _ACEOF | |
8835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8836 | if { (ac_try="$ac_link" |
8837 | case "(($ac_try" in | |
8838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8839 | *) ac_try_echo=$ac_try;; | |
8840 | esac | |
8841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8842 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8843 | ac_status=$? |
8844 | grep -v '^ *+' conftest.er1 >conftest.err | |
8845 | rm -f conftest.er1 | |
8846 | cat conftest.err >&5 | |
8847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8848 | (exit $ac_status); } && { |
8849 | test -z "$ac_c_werror_flag" || | |
8850 | test ! -s conftest.err | |
8851 | } && test -s conftest$ac_exeext && | |
8852 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8853 | ac_cv_func_alloca_works=yes |
8854 | else | |
8855 | echo "$as_me: failed program was:" >&5 | |
8856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8857 | ||
631ef239 | 8858 | ac_cv_func_alloca_works=no |
212380e3 | 8859 | fi |
631ef239 AC |
8860 | |
8861 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8862 | conftest$ac_exeext conftest.$ac_ext |
8863 | fi | |
631ef239 AC |
8864 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8865 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
212380e3 AC |
8866 | |
8867 | if test $ac_cv_func_alloca_works = yes; then | |
8868 | ||
8869 | cat >>confdefs.h <<\_ACEOF | |
8870 | #define HAVE_ALLOCA 1 | |
8871 | _ACEOF | |
8872 | ||
8873 | else | |
8874 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
8875 | # that cause trouble. Some versions do not even contain alloca or | |
8876 | # contain a buggy version. If you still want to use their alloca, | |
8877 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8878 | ||
631ef239 | 8879 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 AC |
8880 | |
8881 | cat >>confdefs.h <<\_ACEOF | |
8882 | #define C_ALLOCA 1 | |
8883 | _ACEOF | |
8884 | ||
8885 | ||
631ef239 AC |
8886 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8887 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
212380e3 AC |
8888 | if test "${ac_cv_os_cray+set}" = set; then |
8889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8890 | else | |
8891 | cat >conftest.$ac_ext <<_ACEOF | |
8892 | /* confdefs.h. */ | |
8893 | _ACEOF | |
8894 | cat confdefs.h >>conftest.$ac_ext | |
8895 | cat >>conftest.$ac_ext <<_ACEOF | |
8896 | /* end confdefs.h. */ | |
631ef239 | 8897 | #if defined CRAY && ! defined CRAY2 |
212380e3 AC |
8898 | webecray |
8899 | #else | |
8900 | wenotbecray | |
8901 | #endif | |
8902 | ||
8903 | _ACEOF | |
8904 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8905 | $EGREP "webecray" >/dev/null 2>&1; then | |
8906 | ac_cv_os_cray=yes | |
8907 | else | |
8908 | ac_cv_os_cray=no | |
8909 | fi | |
8910 | rm -f conftest* | |
8911 | ||
8912 | fi | |
631ef239 AC |
8913 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8914 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
212380e3 AC |
8915 | if test $ac_cv_os_cray = yes; then |
8916 | for ac_func in _getb67 GETB67 getb67; do | |
8917 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
8918 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8919 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8920 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
8921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8922 | else | |
8923 | cat >conftest.$ac_ext <<_ACEOF | |
8924 | /* confdefs.h. */ | |
8925 | _ACEOF | |
8926 | cat confdefs.h >>conftest.$ac_ext | |
8927 | cat >>conftest.$ac_ext <<_ACEOF | |
8928 | /* end confdefs.h. */ | |
8929 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8930 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8931 | #define $ac_func innocuous_$ac_func | |
8932 | ||
8933 | /* System header to define __stub macros and hopefully few prototypes, | |
8934 | which can conflict with char $ac_func (); below. | |
8935 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8936 | <limits.h> exists even on freestanding compilers. */ | |
8937 | ||
8938 | #ifdef __STDC__ | |
8939 | # include <limits.h> | |
8940 | #else | |
8941 | # include <assert.h> | |
8942 | #endif | |
8943 | ||
8944 | #undef $ac_func | |
8945 | ||
631ef239 AC |
8946 | /* Override any GCC internal prototype to avoid an error. |
8947 | Use char because int might match the return type of a GCC | |
8948 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8949 | #ifdef __cplusplus |
8950 | extern "C" | |
212380e3 | 8951 | #endif |
212380e3 AC |
8952 | char $ac_func (); |
8953 | /* The GNU C library defines this for functions which it implements | |
8954 | to always fail with ENOSYS. Some functions are actually named | |
8955 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8956 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 8957 | choke me |
212380e3 AC |
8958 | #endif |
8959 | ||
8960 | int | |
8961 | main () | |
8962 | { | |
631ef239 | 8963 | return $ac_func (); |
212380e3 AC |
8964 | ; |
8965 | return 0; | |
8966 | } | |
8967 | _ACEOF | |
8968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8969 | if { (ac_try="$ac_link" |
8970 | case "(($ac_try" in | |
8971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8972 | *) ac_try_echo=$ac_try;; | |
8973 | esac | |
8974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8975 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8976 | ac_status=$? |
8977 | grep -v '^ *+' conftest.er1 >conftest.err | |
8978 | rm -f conftest.er1 | |
8979 | cat conftest.err >&5 | |
8980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8981 | (exit $ac_status); } && { |
8982 | test -z "$ac_c_werror_flag" || | |
8983 | test ! -s conftest.err | |
8984 | } && test -s conftest$ac_exeext && | |
8985 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8986 | eval "$as_ac_var=yes" |
8987 | else | |
8988 | echo "$as_me: failed program was:" >&5 | |
8989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8990 | ||
631ef239 | 8991 | eval "$as_ac_var=no" |
212380e3 | 8992 | fi |
631ef239 AC |
8993 | |
8994 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8995 | conftest$ac_exeext conftest.$ac_ext |
8996 | fi | |
631ef239 AC |
8997 | ac_res=`eval echo '${'$as_ac_var'}'` |
8998 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8999 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
9000 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9001 | ||
9002 | cat >>confdefs.h <<_ACEOF | |
9003 | #define CRAY_STACKSEG_END $ac_func | |
9004 | _ACEOF | |
9005 | ||
9006 | break | |
9007 | fi | |
9008 | ||
9009 | done | |
9010 | fi | |
9011 | ||
631ef239 AC |
9012 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
9013 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
212380e3 AC |
9014 | if test "${ac_cv_c_stack_direction+set}" = set; then |
9015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9016 | else | |
9017 | if test "$cross_compiling" = yes; then | |
9018 | ac_cv_c_stack_direction=0 | |
9019 | else | |
9020 | cat >conftest.$ac_ext <<_ACEOF | |
9021 | /* confdefs.h. */ | |
9022 | _ACEOF | |
9023 | cat confdefs.h >>conftest.$ac_ext | |
9024 | cat >>conftest.$ac_ext <<_ACEOF | |
9025 | /* end confdefs.h. */ | |
631ef239 | 9026 | $ac_includes_default |
212380e3 AC |
9027 | int |
9028 | find_stack_direction () | |
9029 | { | |
9030 | static char *addr = 0; | |
9031 | auto char dummy; | |
9032 | if (addr == 0) | |
9033 | { | |
9034 | addr = &dummy; | |
9035 | return find_stack_direction (); | |
9036 | } | |
9037 | else | |
9038 | return (&dummy > addr) ? 1 : -1; | |
9039 | } | |
9040 | ||
9041 | int | |
9042 | main () | |
9043 | { | |
631ef239 | 9044 | return find_stack_direction () < 0; |
212380e3 AC |
9045 | } |
9046 | _ACEOF | |
9047 | rm -f conftest$ac_exeext | |
631ef239 AC |
9048 | if { (ac_try="$ac_link" |
9049 | case "(($ac_try" in | |
9050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9051 | *) ac_try_echo=$ac_try;; | |
9052 | esac | |
9053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9054 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
9055 | ac_status=$? |
9056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9057 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
9058 | { (case "(($ac_try" in |
9059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9060 | *) ac_try_echo=$ac_try;; | |
9061 | esac | |
9062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9063 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
9064 | ac_status=$? |
9065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9066 | (exit $ac_status); }; }; then | |
9067 | ac_cv_c_stack_direction=1 | |
9068 | else | |
9069 | echo "$as_me: program exited with status $ac_status" >&5 | |
9070 | echo "$as_me: failed program was:" >&5 | |
9071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9072 | ||
9073 | ( exit $ac_status ) | |
9074 | ac_cv_c_stack_direction=-1 | |
9075 | fi | |
631ef239 | 9076 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 9077 | fi |
631ef239 AC |
9078 | |
9079 | ||
212380e3 | 9080 | fi |
631ef239 AC |
9081 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
9082 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
212380e3 AC |
9083 | |
9084 | cat >>confdefs.h <<_ACEOF | |
9085 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
9086 | _ACEOF | |
9087 | ||
9088 | ||
9089 | fi | |
9090 | ||
9091 | ||
9092 | ||
631ef239 AC |
9093 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
9094 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } | |
212380e3 AC |
9095 | if test "${ac_cv_func_nanosleep+set}" = set; then |
9096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9097 | else | |
9098 | cat >conftest.$ac_ext <<_ACEOF | |
9099 | /* confdefs.h. */ | |
9100 | _ACEOF | |
9101 | cat confdefs.h >>conftest.$ac_ext | |
9102 | cat >>conftest.$ac_ext <<_ACEOF | |
9103 | /* end confdefs.h. */ | |
9104 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. | |
9105 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9106 | #define nanosleep innocuous_nanosleep | |
9107 | ||
9108 | /* System header to define __stub macros and hopefully few prototypes, | |
9109 | which can conflict with char nanosleep (); below. | |
9110 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9111 | <limits.h> exists even on freestanding compilers. */ | |
9112 | ||
9113 | #ifdef __STDC__ | |
9114 | # include <limits.h> | |
9115 | #else | |
9116 | # include <assert.h> | |
9117 | #endif | |
9118 | ||
9119 | #undef nanosleep | |
9120 | ||
631ef239 AC |
9121 | /* Override any GCC internal prototype to avoid an error. |
9122 | Use char because int might match the return type of a GCC | |
9123 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9124 | #ifdef __cplusplus |
9125 | extern "C" | |
212380e3 | 9126 | #endif |
212380e3 AC |
9127 | char nanosleep (); |
9128 | /* The GNU C library defines this for functions which it implements | |
9129 | to always fail with ENOSYS. Some functions are actually named | |
9130 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 9131 | #if defined __stub_nanosleep || defined __stub___nanosleep |
212380e3 | 9132 | choke me |
212380e3 AC |
9133 | #endif |
9134 | ||
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_func_nanosleep=yes |
9162 | else | |
9163 | echo "$as_me: failed program was:" >&5 | |
9164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9165 | ||
631ef239 | 9166 | ac_cv_func_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 | fi | |
631ef239 AC |
9172 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
9173 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } | |
212380e3 AC |
9174 | if test $ac_cv_func_nanosleep = yes; then |
9175 | : | |
9176 | else | |
631ef239 AC |
9177 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
9178 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } | |
212380e3 AC |
9179 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
9180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9181 | else | |
9182 | ac_check_lib_save_LIBS=$LIBS | |
9183 | LIBS="-lrt $LIBS" | |
9184 | cat >conftest.$ac_ext <<_ACEOF | |
9185 | /* confdefs.h. */ | |
9186 | _ACEOF | |
9187 | cat confdefs.h >>conftest.$ac_ext | |
9188 | cat >>conftest.$ac_ext <<_ACEOF | |
9189 | /* end confdefs.h. */ | |
9190 | ||
631ef239 AC |
9191 | /* Override any GCC internal prototype to avoid an error. |
9192 | Use char because int might match the return type of a GCC | |
9193 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9194 | #ifdef __cplusplus |
9195 | extern "C" | |
9196 | #endif | |
212380e3 AC |
9197 | char nanosleep (); |
9198 | int | |
9199 | main () | |
9200 | { | |
631ef239 | 9201 | return nanosleep (); |
212380e3 AC |
9202 | ; |
9203 | return 0; | |
9204 | } | |
9205 | _ACEOF | |
9206 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9207 | if { (ac_try="$ac_link" |
9208 | case "(($ac_try" in | |
9209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9210 | *) ac_try_echo=$ac_try;; | |
9211 | esac | |
9212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9213 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9214 | ac_status=$? |
9215 | grep -v '^ *+' conftest.er1 >conftest.err | |
9216 | rm -f conftest.er1 | |
9217 | cat conftest.err >&5 | |
9218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9219 | (exit $ac_status); } && { |
9220 | test -z "$ac_c_werror_flag" || | |
9221 | test ! -s conftest.err | |
9222 | } && test -s conftest$ac_exeext && | |
9223 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9224 | ac_cv_lib_rt_nanosleep=yes |
9225 | else | |
9226 | echo "$as_me: failed program was:" >&5 | |
9227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9228 | ||
631ef239 | 9229 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 9230 | fi |
631ef239 AC |
9231 | |
9232 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9233 | conftest$ac_exeext conftest.$ac_ext |
9234 | LIBS=$ac_check_lib_save_LIBS | |
9235 | fi | |
631ef239 AC |
9236 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
9237 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } | |
212380e3 AC |
9238 | if test $ac_cv_lib_rt_nanosleep = yes; then |
9239 | LIBS="${LIBS} -lrt" | |
9240 | else | |
631ef239 AC |
9241 | { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 |
9242 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; } | |
212380e3 AC |
9243 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then |
9244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9245 | else | |
9246 | ac_check_lib_save_LIBS=$LIBS | |
9247 | LIBS="-lposix4 $LIBS" | |
9248 | cat >conftest.$ac_ext <<_ACEOF | |
9249 | /* confdefs.h. */ | |
9250 | _ACEOF | |
9251 | cat confdefs.h >>conftest.$ac_ext | |
9252 | cat >>conftest.$ac_ext <<_ACEOF | |
9253 | /* end confdefs.h. */ | |
9254 | ||
631ef239 AC |
9255 | /* Override any GCC internal prototype to avoid an error. |
9256 | Use char because int might match the return type of a GCC | |
9257 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9258 | #ifdef __cplusplus |
9259 | extern "C" | |
9260 | #endif | |
212380e3 AC |
9261 | char nanosleep (); |
9262 | int | |
9263 | main () | |
9264 | { | |
631ef239 | 9265 | return nanosleep (); |
212380e3 AC |
9266 | ; |
9267 | return 0; | |
9268 | } | |
9269 | _ACEOF | |
9270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9271 | if { (ac_try="$ac_link" |
9272 | case "(($ac_try" in | |
9273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9274 | *) ac_try_echo=$ac_try;; | |
9275 | esac | |
9276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9277 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9278 | ac_status=$? |
9279 | grep -v '^ *+' conftest.er1 >conftest.err | |
9280 | rm -f conftest.er1 | |
9281 | cat conftest.err >&5 | |
9282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9283 | (exit $ac_status); } && { |
9284 | test -z "$ac_c_werror_flag" || | |
9285 | test ! -s conftest.err | |
9286 | } && test -s conftest$ac_exeext && | |
9287 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9288 | ac_cv_lib_posix4_nanosleep=yes |
9289 | else | |
9290 | echo "$as_me: failed program was:" >&5 | |
9291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9292 | ||
631ef239 | 9293 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 9294 | fi |
631ef239 AC |
9295 | |
9296 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9297 | conftest$ac_exeext conftest.$ac_ext |
9298 | LIBS=$ac_check_lib_save_LIBS | |
9299 | fi | |
631ef239 AC |
9300 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 |
9301 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; } | |
212380e3 AC |
9302 | if test $ac_cv_lib_posix4_nanosleep = yes; then |
9303 | LIBS="${LIBS} -lposix4" | |
9304 | ||
9305 | fi | |
9306 | ||
9307 | fi | |
9308 | ||
9309 | fi | |
9310 | ||
9311 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
9312 | then | |
631ef239 AC |
9313 | { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5 |
9314 | echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 AC |
9315 | else |
9316 | ||
9317 | cat >>confdefs.h <<\_ACEOF | |
9318 | #define HAVE_NANOSLEEP 1 | |
9319 | _ACEOF | |
9320 | ||
9321 | fi | |
9322 | ||
631ef239 AC |
9323 | { echo "$as_me:$LINENO: checking for OpenSSL" >&5 |
9324 | echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; } | |
9325 | # Check whether --enable-openssl was given. | |
212380e3 | 9326 | if test "${enable_openssl+set}" = set; then |
631ef239 | 9327 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 AC |
9328 | else |
9329 | cf_enable_openssl="auto" | |
631ef239 AC |
9330 | fi |
9331 | ||
212380e3 AC |
9332 | |
9333 | if test "$cf_enable_openssl" != "no" ; then | |
9334 | cf_openssl_basedir="" | |
9335 | if test "$cf_enable_openssl" != "auto" && | |
9336 | test "$cf_enable_openssl" != "yes" ; then | |
9337 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
9338 | else | |
9339 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
9340 | /usr/local/openssl ; do | |
9341 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
9342 | cf_openssl_basedir="${dirs}" | |
9343 | break | |
9344 | fi | |
9345 | done | |
9346 | unset dirs | |
9347 | fi | |
9348 | if test ! -z "$cf_openssl_basedir"; then | |
9349 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
9350 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
9351 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
9352 | else | |
9353 | cf_openssl_basedir="" | |
9354 | fi | |
9355 | else | |
9356 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
9357 | cf_openssl_basedir="/usr" | |
9358 | fi | |
9359 | fi | |
9360 | ||
9361 | if test ! -z "$cf_openssl_basedir"; then | |
631ef239 AC |
9362 | { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5 |
9363 | echo "${ECHO_T}$cf_openssl_basedir" >&6; } | |
212380e3 AC |
9364 | cf_enable_openssl="yes" |
9365 | else | |
631ef239 AC |
9366 | { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5 |
9367 | echo "${ECHO_T}not found. Specify a correct path?" >&6; } | |
212380e3 AC |
9368 | cf_enable_openssl="no" |
9369 | fi | |
9370 | unset cf_openssl_basedir | |
9371 | else | |
631ef239 AC |
9372 | { echo "$as_me:$LINENO: result: disabled" >&5 |
9373 | echo "${ECHO_T}disabled" >&6; } | |
212380e3 AC |
9374 | fi |
9375 | ||
9376 | save_CPPFLAGS="$CPPFLAGS" | |
9377 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
9378 | save_LIBS="$LIBS" | |
9379 | LIBS="$LIBS $SSL_LIBS" | |
9380 | if test "$cf_enable_openssl" != no; then | |
631ef239 AC |
9381 | { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5 |
9382 | echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; } | |
212380e3 AC |
9383 | if test "$cross_compiling" = yes; then |
9384 | cf_openssl_version_ok=no | |
9385 | else | |
9386 | cat >conftest.$ac_ext <<_ACEOF | |
9387 | /* confdefs.h. */ | |
9388 | _ACEOF | |
9389 | cat confdefs.h >>conftest.$ac_ext | |
9390 | cat >>conftest.$ac_ext <<_ACEOF | |
9391 | /* end confdefs.h. */ | |
9392 | #include <openssl/opensslv.h> | |
9393 | #include <stdlib.h> | |
9394 | int | |
9395 | main () | |
9396 | { | |
9397 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
9398 | exit(0); else exit(1); | |
9399 | ; | |
9400 | return 0; | |
9401 | } | |
9402 | _ACEOF | |
9403 | rm -f conftest$ac_exeext | |
631ef239 AC |
9404 | if { (ac_try="$ac_link" |
9405 | case "(($ac_try" in | |
9406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9407 | *) ac_try_echo=$ac_try;; | |
9408 | esac | |
9409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9410 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
9411 | ac_status=$? |
9412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9413 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
9414 | { (case "(($ac_try" in |
9415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9416 | *) ac_try_echo=$ac_try;; | |
9417 | esac | |
9418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9419 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
9420 | ac_status=$? |
9421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9422 | (exit $ac_status); }; }; then | |
9423 | cf_openssl_version_ok=yes | |
9424 | else | |
9425 | echo "$as_me: program exited with status $ac_status" >&5 | |
9426 | echo "$as_me: failed program was:" >&5 | |
9427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9428 | ||
9429 | ( exit $ac_status ) | |
9430 | cf_openssl_version_ok=no | |
9431 | fi | |
631ef239 | 9432 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9433 | fi |
9434 | ||
631ef239 AC |
9435 | |
9436 | ||
212380e3 | 9437 | if test "$cf_openssl_version_ok" = yes; then |
631ef239 AC |
9438 | { echo "$as_me:$LINENO: result: found" >&5 |
9439 | echo "${ECHO_T}found" >&6; } | |
212380e3 AC |
9440 | |
9441 | ENCSPEED=encspeed | |
9442 | ||
9443 | ||
9444 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
9445 | ||
631ef239 AC |
9446 | { echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5 |
9447 | echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; } | |
212380e3 AC |
9448 | if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then |
9449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9450 | else | |
9451 | ac_check_lib_save_LIBS=$LIBS | |
9452 | LIBS="-lcrypto $LIBS" | |
9453 | cat >conftest.$ac_ext <<_ACEOF | |
9454 | /* confdefs.h. */ | |
9455 | _ACEOF | |
9456 | cat confdefs.h >>conftest.$ac_ext | |
9457 | cat >>conftest.$ac_ext <<_ACEOF | |
9458 | /* end confdefs.h. */ | |
9459 | ||
631ef239 AC |
9460 | /* Override any GCC internal prototype to avoid an error. |
9461 | Use char because int might match the return type of a GCC | |
9462 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9463 | #ifdef __cplusplus |
9464 | extern "C" | |
9465 | #endif | |
212380e3 AC |
9466 | char RSA_free (); |
9467 | int | |
9468 | main () | |
9469 | { | |
631ef239 | 9470 | return RSA_free (); |
212380e3 AC |
9471 | ; |
9472 | return 0; | |
9473 | } | |
9474 | _ACEOF | |
9475 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9476 | if { (ac_try="$ac_link" |
9477 | case "(($ac_try" in | |
9478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9479 | *) ac_try_echo=$ac_try;; | |
9480 | esac | |
9481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9482 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9483 | ac_status=$? |
9484 | grep -v '^ *+' conftest.er1 >conftest.err | |
9485 | rm -f conftest.er1 | |
9486 | cat conftest.err >&5 | |
9487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9488 | (exit $ac_status); } && { |
9489 | test -z "$ac_c_werror_flag" || | |
9490 | test ! -s conftest.err | |
9491 | } && test -s conftest$ac_exeext && | |
9492 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9493 | ac_cv_lib_crypto_RSA_free=yes |
9494 | else | |
9495 | echo "$as_me: failed program was:" >&5 | |
9496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9497 | ||
631ef239 | 9498 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 9499 | fi |
631ef239 AC |
9500 | |
9501 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9502 | conftest$ac_exeext conftest.$ac_ext |
9503 | LIBS=$ac_check_lib_save_LIBS | |
9504 | fi | |
631ef239 AC |
9505 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5 |
9506 | echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; } | |
212380e3 AC |
9507 | if test $ac_cv_lib_crypto_RSA_free = yes; then |
9508 | cat >>confdefs.h <<_ACEOF | |
9509 | #define HAVE_LIBCRYPTO 1 | |
9510 | _ACEOF | |
9511 | ||
9512 | LIBS="-lcrypto $LIBS" | |
9513 | ||
9514 | fi | |
9515 | ||
9516 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
9517 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
9518 | else | |
631ef239 AC |
9519 | { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5 |
9520 | echo "${ECHO_T}no - OpenSSL support disabled" >&6; } | |
212380e3 AC |
9521 | fi |
9522 | fi | |
9523 | ||
9524 | CPPFLAGS="$save_CPPFLAGS" | |
9525 | LIBS="$save_LIBS" | |
9526 | ||
9527 | ||
9528 | ||
9529 | ||
9530 | ||
631ef239 | 9531 | # Check whether --with-zlib-path was given. |
212380e3 | 9532 | if test "${with_zlib_path+set}" = set; then |
631ef239 AC |
9533 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
9534 | fi | |
212380e3 | 9535 | |
631ef239 AC |
9536 | |
9537 | # Check whether --enable-zlib was given. | |
212380e3 | 9538 | if test "${enable_zlib+set}" = set; then |
631ef239 | 9539 | enableval=$enable_zlib; zlib=$enableval |
212380e3 AC |
9540 | else |
9541 | zlib=yes | |
631ef239 AC |
9542 | fi |
9543 | ||
212380e3 AC |
9544 | |
9545 | if test "$zlib" = yes; then | |
9546 | ||
9547 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
631ef239 AC |
9548 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 |
9549 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
212380e3 AC |
9550 | if test "${ac_cv_header_zlib_h+set}" = set; then |
9551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9552 | fi | |
631ef239 AC |
9553 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
9554 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
212380e3 AC |
9555 | else |
9556 | # Is the header compilable? | |
631ef239 AC |
9557 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
9558 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
9559 | cat >conftest.$ac_ext <<_ACEOF |
9560 | /* confdefs.h. */ | |
9561 | _ACEOF | |
9562 | cat confdefs.h >>conftest.$ac_ext | |
9563 | cat >>conftest.$ac_ext <<_ACEOF | |
9564 | /* end confdefs.h. */ | |
9565 | $ac_includes_default | |
9566 | #include <zlib.h> | |
9567 | _ACEOF | |
9568 | rm -f conftest.$ac_objext | |
631ef239 AC |
9569 | if { (ac_try="$ac_compile" |
9570 | case "(($ac_try" in | |
9571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9572 | *) ac_try_echo=$ac_try;; | |
9573 | esac | |
9574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9575 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
9576 | ac_status=$? |
9577 | grep -v '^ *+' conftest.er1 >conftest.err | |
9578 | rm -f conftest.er1 | |
9579 | cat conftest.err >&5 | |
9580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9581 | (exit $ac_status); } && { |
9582 | test -z "$ac_c_werror_flag" || | |
9583 | test ! -s conftest.err | |
9584 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
9585 | ac_header_compiler=yes |
9586 | else | |
9587 | echo "$as_me: failed program was:" >&5 | |
9588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9589 | ||
631ef239 | 9590 | ac_header_compiler=no |
212380e3 | 9591 | fi |
631ef239 AC |
9592 | |
9593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9594 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9595 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
9596 | |
9597 | # Is the header present? | |
631ef239 AC |
9598 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
9599 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
9600 | cat >conftest.$ac_ext <<_ACEOF |
9601 | /* confdefs.h. */ | |
9602 | _ACEOF | |
9603 | cat confdefs.h >>conftest.$ac_ext | |
9604 | cat >>conftest.$ac_ext <<_ACEOF | |
9605 | /* end confdefs.h. */ | |
9606 | #include <zlib.h> | |
9607 | _ACEOF | |
631ef239 AC |
9608 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9609 | case "(($ac_try" in | |
9610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9611 | *) ac_try_echo=$ac_try;; | |
9612 | esac | |
9613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9614 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
9615 | ac_status=$? |
9616 | grep -v '^ *+' conftest.er1 >conftest.err | |
9617 | rm -f conftest.er1 | |
9618 | cat conftest.err >&5 | |
9619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9620 | (exit $ac_status); } >/dev/null && { |
9621 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9622 | test ! -s conftest.err | |
9623 | }; then | |
212380e3 AC |
9624 | ac_header_preproc=yes |
9625 | else | |
9626 | echo "$as_me: failed program was:" >&5 | |
9627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9628 | ||
9629 | ac_header_preproc=no | |
9630 | fi | |
631ef239 | 9631 | |
212380e3 | 9632 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
9633 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9634 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
9635 | |
9636 | # So? What about this header? | |
9637 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9638 | yes:no: ) | |
9639 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9640 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9641 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | |
9642 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
9643 | ac_header_preproc=yes | |
9644 | ;; | |
9645 | no:yes:* ) | |
9646 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
9647 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
9648 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
9649 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
9650 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
9651 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
9652 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9653 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
9654 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
9655 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
9656 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | |
9657 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 9658 | |
212380e3 AC |
9659 | ;; |
9660 | esac | |
631ef239 AC |
9661 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 |
9662 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
212380e3 AC |
9663 | if test "${ac_cv_header_zlib_h+set}" = set; then |
9664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9665 | else | |
9666 | ac_cv_header_zlib_h=$ac_header_preproc | |
9667 | fi | |
631ef239 AC |
9668 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
9669 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
212380e3 AC |
9670 | |
9671 | fi | |
9672 | if test $ac_cv_header_zlib_h = yes; then | |
9673 | ||
631ef239 AC |
9674 | { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5 |
9675 | echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; } | |
212380e3 AC |
9676 | if test "${ac_cv_lib_z_zlibVersion+set}" = set; then |
9677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9678 | else | |
9679 | ac_check_lib_save_LIBS=$LIBS | |
9680 | LIBS="-lz $LIBS" | |
9681 | cat >conftest.$ac_ext <<_ACEOF | |
9682 | /* confdefs.h. */ | |
9683 | _ACEOF | |
9684 | cat confdefs.h >>conftest.$ac_ext | |
9685 | cat >>conftest.$ac_ext <<_ACEOF | |
9686 | /* end confdefs.h. */ | |
9687 | ||
631ef239 AC |
9688 | /* Override any GCC internal prototype to avoid an error. |
9689 | Use char because int might match the return type of a GCC | |
9690 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9691 | #ifdef __cplusplus |
9692 | extern "C" | |
9693 | #endif | |
212380e3 AC |
9694 | char zlibVersion (); |
9695 | int | |
9696 | main () | |
9697 | { | |
631ef239 | 9698 | return zlibVersion (); |
212380e3 AC |
9699 | ; |
9700 | return 0; | |
9701 | } | |
9702 | _ACEOF | |
9703 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9704 | if { (ac_try="$ac_link" |
9705 | case "(($ac_try" in | |
9706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9707 | *) ac_try_echo=$ac_try;; | |
9708 | esac | |
9709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9710 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9711 | ac_status=$? |
9712 | grep -v '^ *+' conftest.er1 >conftest.err | |
9713 | rm -f conftest.er1 | |
9714 | cat conftest.err >&5 | |
9715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9716 | (exit $ac_status); } && { |
9717 | test -z "$ac_c_werror_flag" || | |
9718 | test ! -s conftest.err | |
9719 | } && test -s conftest$ac_exeext && | |
9720 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9721 | ac_cv_lib_z_zlibVersion=yes |
9722 | else | |
9723 | echo "$as_me: failed program was:" >&5 | |
9724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9725 | ||
631ef239 | 9726 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 9727 | fi |
631ef239 AC |
9728 | |
9729 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9730 | conftest$ac_exeext conftest.$ac_ext |
9731 | LIBS=$ac_check_lib_save_LIBS | |
9732 | fi | |
631ef239 AC |
9733 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5 |
9734 | echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; } | |
212380e3 AC |
9735 | if test $ac_cv_lib_z_zlibVersion = yes; then |
9736 | ||
9737 | ZLIB_LD=-lz | |
9738 | ||
9739 | ||
9740 | cat >>confdefs.h <<\_ACEOF | |
9741 | #define HAVE_LIBZ 1 | |
9742 | _ACEOF | |
9743 | ||
9744 | ||
9745 | else | |
9746 | zlib=no | |
9747 | fi | |
9748 | ||
9749 | ||
9750 | else | |
9751 | zlib=no | |
9752 | fi | |
9753 | ||
9754 | ||
9755 | ||
9756 | fi | |
9757 | ||
9758 | ||
c1c5fdc4 AC |
9759 | # Check whether --enable-ports was given. |
9760 | if test "${enable_ports+set}" = set; then | |
9761 | enableval=$enable_ports; if test $enableval = yes; then | |
9762 | SELECT_TYPE_EXPLICIT="ports" | |
9763 | else | |
9764 | use_ports=no | |
9765 | fi | |
9766 | ||
9767 | fi | |
9768 | ||
9769 | ||
631ef239 | 9770 | # Check whether --enable-poll was given. |
212380e3 | 9771 | if test "${enable_poll+set}" = set; then |
631ef239 | 9772 | enableval=$enable_poll; if test $enableval = yes; then |
212380e3 AC |
9773 | SELECT_TYPE_EXPLICIT="poll" |
9774 | else | |
9775 | use_poll=no | |
9776 | fi | |
9777 | ||
631ef239 AC |
9778 | fi |
9779 | ||
212380e3 | 9780 | |
631ef239 | 9781 | # Check whether --enable-select was given. |
212380e3 | 9782 | if test "${enable_select+set}" = set; then |
631ef239 | 9783 | enableval=$enable_select; if test $enableval = yes; then |
212380e3 AC |
9784 | SELECT_TYPE_EXPLICIT="select" |
9785 | else | |
9786 | use_select=no | |
9787 | fi | |
9788 | ||
631ef239 AC |
9789 | fi |
9790 | ||
212380e3 | 9791 | |
631ef239 | 9792 | # Check whether --enable-kqueue was given. |
212380e3 | 9793 | if test "${enable_kqueue+set}" = set; then |
631ef239 | 9794 | enableval=$enable_kqueue; if test $enableval = yes; then |
212380e3 AC |
9795 | SELECT_TYPE_EXPLICIT="kqueue" |
9796 | else | |
9797 | use_kqueue=no | |
9798 | fi | |
9799 | ||
631ef239 AC |
9800 | fi |
9801 | ||
212380e3 | 9802 | |
631ef239 | 9803 | # Check whether --enable-epoll was given. |
212380e3 | 9804 | if test "${enable_epoll+set}" = set; then |
631ef239 | 9805 | enableval=$enable_epoll; if test $enableval = yes; then |
212380e3 | 9806 | SELECT_TYPE_EXPLICIT="epoll" |
3ad1a781 JT |
9807 | |
9808 | for ac_func in epoll_ctl | |
9809 | do | |
9810 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
9811 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9812 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
9813 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
3ad1a781 JT |
9814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9815 | else | |
9816 | cat >conftest.$ac_ext <<_ACEOF | |
9817 | /* confdefs.h. */ | |
9818 | _ACEOF | |
9819 | cat confdefs.h >>conftest.$ac_ext | |
9820 | cat >>conftest.$ac_ext <<_ACEOF | |
9821 | /* end confdefs.h. */ | |
9822 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9823 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9824 | #define $ac_func innocuous_$ac_func | |
9825 | ||
9826 | /* System header to define __stub macros and hopefully few prototypes, | |
9827 | which can conflict with char $ac_func (); below. | |
9828 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9829 | <limits.h> exists even on freestanding compilers. */ | |
9830 | ||
9831 | #ifdef __STDC__ | |
9832 | # include <limits.h> | |
9833 | #else | |
9834 | # include <assert.h> | |
9835 | #endif | |
9836 | ||
9837 | #undef $ac_func | |
9838 | ||
631ef239 AC |
9839 | /* Override any GCC internal prototype to avoid an error. |
9840 | Use char because int might match the return type of a GCC | |
9841 | builtin and then its argument prototype would still apply. */ | |
3ad1a781 JT |
9842 | #ifdef __cplusplus |
9843 | extern "C" | |
3ad1a781 | 9844 | #endif |
3ad1a781 JT |
9845 | char $ac_func (); |
9846 | /* The GNU C library defines this for functions which it implements | |
9847 | to always fail with ENOSYS. Some functions are actually named | |
9848 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 9849 | #if defined __stub_$ac_func || defined __stub___$ac_func |
3ad1a781 | 9850 | choke me |
3ad1a781 JT |
9851 | #endif |
9852 | ||
9853 | int | |
9854 | main () | |
9855 | { | |
631ef239 | 9856 | return $ac_func (); |
3ad1a781 JT |
9857 | ; |
9858 | return 0; | |
9859 | } | |
9860 | _ACEOF | |
9861 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9862 | if { (ac_try="$ac_link" |
9863 | case "(($ac_try" in | |
9864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9865 | *) ac_try_echo=$ac_try;; | |
9866 | esac | |
9867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9868 | (eval "$ac_link") 2>conftest.er1 | |
3ad1a781 JT |
9869 | ac_status=$? |
9870 | grep -v '^ *+' conftest.er1 >conftest.err | |
9871 | rm -f conftest.er1 | |
9872 | cat conftest.err >&5 | |
9873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9874 | (exit $ac_status); } && { |
9875 | test -z "$ac_c_werror_flag" || | |
9876 | test ! -s conftest.err | |
9877 | } && test -s conftest$ac_exeext && | |
9878 | $as_test_x conftest$ac_exeext; then | |
3ad1a781 JT |
9879 | eval "$as_ac_var=yes" |
9880 | else | |
9881 | echo "$as_me: failed program was:" >&5 | |
9882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9883 | ||
631ef239 | 9884 | eval "$as_ac_var=no" |
3ad1a781 | 9885 | fi |
631ef239 AC |
9886 | |
9887 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
3ad1a781 JT |
9888 | conftest$ac_exeext conftest.$ac_ext |
9889 | fi | |
631ef239 AC |
9890 | ac_res=`eval echo '${'$as_ac_var'}'` |
9891 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9892 | echo "${ECHO_T}$ac_res" >&6; } | |
3ad1a781 JT |
9893 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9894 | cat >>confdefs.h <<_ACEOF | |
9895 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9896 | _ACEOF | |
9897 | haveepoll=yes | |
9898 | else | |
9899 | haveepoll=no | |
9900 | fi | |
9901 | done | |
9902 | ||
212380e3 AC |
9903 | else |
9904 | use_epoll=no | |
9905 | fi | |
9906 | ||
631ef239 AC |
9907 | fi |
9908 | ||
212380e3 AC |
9909 | |
9910 | ||
631ef239 AC |
9911 | { echo "$as_me:$LINENO: checking whether to modify confdir" >&5 |
9912 | echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; } | |
212380e3 | 9913 | |
631ef239 | 9914 | # Check whether --with-confdir was given. |
212380e3 | 9915 | if test "${with_confdir+set}" = set; then |
631ef239 AC |
9916 | withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'` |
9917 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9918 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
9919 | |
9920 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9921 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9922 | ac_define_dir=`eval echo $confdir` | |
9923 | ac_define_dir=`eval echo $ac_define_dir` | |
9924 | ETC_DIR="$ac_define_dir" | |
9925 | ||
9926 | ||
9927 | cat >>confdefs.h <<_ACEOF | |
9928 | #define ETC_DIR "$ac_define_dir" | |
9929 | _ACEOF | |
9930 | ||
9931 | ||
9932 | ||
9933 | ||
9934 | confdir=`( | |
9935 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9936 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9937 | eval echo \""$confdir"\" | |
9938 | )` | |
9939 | ||
9940 | ||
9941 | else | |
9942 | confdir='${prefix}/etc' | |
631ef239 AC |
9943 | { echo "$as_me:$LINENO: result: no" >&5 |
9944 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
9945 | |
9946 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9947 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9948 | ac_define_dir=`eval echo $confdir` | |
9949 | ac_define_dir=`eval echo $ac_define_dir` | |
9950 | ETC_DIR="$ac_define_dir" | |
9951 | ||
9952 | ||
9953 | cat >>confdefs.h <<_ACEOF | |
9954 | #define ETC_DIR "$ac_define_dir" | |
9955 | _ACEOF | |
9956 | ||
9957 | ||
9958 | ||
9959 | ||
9960 | confdir=`( | |
9961 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9962 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9963 | eval echo \""$confdir"\" | |
9964 | )` | |
9965 | ||
9966 | ||
9967 | ||
631ef239 AC |
9968 | fi |
9969 | ||
212380e3 AC |
9970 | |
9971 | ||
631ef239 AC |
9972 | { echo "$as_me:$LINENO: checking whether to modify logdir" >&5 |
9973 | echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; } | |
212380e3 | 9974 | |
631ef239 | 9975 | # Check whether --with-logdir was given. |
212380e3 | 9976 | if test "${with_logdir+set}" = set; then |
631ef239 AC |
9977 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
9978 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9979 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
9980 | |
9981 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9982 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9983 | ac_define_dir=`eval echo $logdir` | |
9984 | ac_define_dir=`eval echo $ac_define_dir` | |
9985 | LOG_DIR="$ac_define_dir" | |
9986 | ||
9987 | ||
9988 | cat >>confdefs.h <<_ACEOF | |
9989 | #define LOG_DIR "$ac_define_dir" | |
9990 | _ACEOF | |
9991 | ||
9992 | ||
9993 | ||
9994 | ||
9995 | logdir=`( | |
9996 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9997 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9998 | eval echo \""$logdir"\" | |
9999 | )` | |
10000 | ||
10001 | ||
10002 | else | |
10003 | logdir='${prefix}/logs' | |
631ef239 AC |
10004 | { echo "$as_me:$LINENO: result: no" >&5 |
10005 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10006 | |
10007 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10008 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10009 | ac_define_dir=`eval echo $logdir` | |
10010 | ac_define_dir=`eval echo $ac_define_dir` | |
10011 | LOG_DIR="$ac_define_dir" | |
10012 | ||
10013 | ||
10014 | cat >>confdefs.h <<_ACEOF | |
10015 | #define LOG_DIR "$ac_define_dir" | |
10016 | _ACEOF | |
10017 | ||
10018 | ||
10019 | ||
10020 | ||
10021 | logdir=`( | |
10022 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10023 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10024 | eval echo \""$logdir"\" | |
10025 | )` | |
10026 | ||
10027 | ||
10028 | ||
631ef239 AC |
10029 | fi |
10030 | ||
212380e3 AC |
10031 | |
10032 | ||
631ef239 AC |
10033 | { echo "$as_me:$LINENO: checking whether to modify helpdir" >&5 |
10034 | echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; } | |
212380e3 | 10035 | |
631ef239 | 10036 | # Check whether --with-helpdir was given. |
212380e3 | 10037 | if test "${with_helpdir+set}" = set; then |
631ef239 AC |
10038 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
10039 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10040 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
10041 | |
10042 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10043 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10044 | ac_define_dir=`eval echo $helpdir` | |
10045 | ac_define_dir=`eval echo $ac_define_dir` | |
10046 | HELP_DIR="$ac_define_dir" | |
10047 | ||
10048 | ||
10049 | cat >>confdefs.h <<_ACEOF | |
10050 | #define HELP_DIR "$ac_define_dir" | |
10051 | _ACEOF | |
10052 | ||
10053 | ||
10054 | ||
10055 | ||
10056 | helpdir=`( | |
10057 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10058 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10059 | eval echo \""$helpdir"\" | |
10060 | )` | |
10061 | ||
10062 | ||
10063 | else | |
10064 | helpdir='${prefix}/help' | |
631ef239 AC |
10065 | { echo "$as_me:$LINENO: result: no" >&5 |
10066 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10067 | |
10068 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10069 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10070 | ac_define_dir=`eval echo $helpdir` | |
10071 | ac_define_dir=`eval echo $ac_define_dir` | |
10072 | HELP_DIR="$ac_define_dir" | |
10073 | ||
10074 | ||
10075 | cat >>confdefs.h <<_ACEOF | |
10076 | #define HELP_DIR "$ac_define_dir" | |
10077 | _ACEOF | |
10078 | ||
10079 | ||
10080 | ||
10081 | ||
10082 | helpdir=`( | |
10083 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10084 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10085 | eval echo \""$helpdir"\" | |
10086 | )` | |
10087 | ||
10088 | ||
10089 | ||
631ef239 AC |
10090 | fi |
10091 | ||
212380e3 AC |
10092 | |
10093 | ||
631ef239 AC |
10094 | { echo "$as_me:$LINENO: checking whether to modify moduledir" >&5 |
10095 | echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; } | |
212380e3 | 10096 | |
631ef239 | 10097 | # Check whether --with-moduledir was given. |
212380e3 | 10098 | if test "${with_moduledir+set}" = set; then |
631ef239 AC |
10099 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
10100 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10101 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
10102 | |
10103 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10104 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10105 | ac_define_dir=`eval echo $moduledir` | |
10106 | ac_define_dir=`eval echo $ac_define_dir` | |
10107 | MODULE_DIR="$ac_define_dir" | |
10108 | ||
10109 | ||
10110 | cat >>confdefs.h <<_ACEOF | |
10111 | #define MODULE_DIR "$ac_define_dir" | |
10112 | _ACEOF | |
10113 | ||
10114 | ||
10115 | ||
10116 | ||
10117 | moduledir=`( | |
10118 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10119 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10120 | eval echo \""$moduledir"\" | |
10121 | )` | |
10122 | ||
10123 | ||
10124 | else | |
10125 | moduledir='${prefix}/modules' | |
631ef239 AC |
10126 | { echo "$as_me:$LINENO: result: no" >&5 |
10127 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10128 | |
10129 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10130 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10131 | ac_define_dir=`eval echo $moduledir` | |
10132 | ac_define_dir=`eval echo $ac_define_dir` | |
10133 | MODULE_DIR="$ac_define_dir" | |
10134 | ||
10135 | ||
10136 | cat >>confdefs.h <<_ACEOF | |
10137 | #define MODULE_DIR "$ac_define_dir" | |
10138 | _ACEOF | |
10139 | ||
10140 | ||
10141 | ||
10142 | ||
10143 | moduledir=`( | |
10144 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10145 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10146 | eval echo \""$moduledir"\" | |
10147 | )` | |
10148 | ||
10149 | ||
10150 | ||
631ef239 AC |
10151 | fi |
10152 | ||
212380e3 AC |
10153 | |
10154 | if test ! -z "$SELECT_TYPE_EXPLICIT"; then | |
10155 | SELECT_TYPE="$SELECT_TYPE_EXPLICIT"; | |
10156 | echo "Forcing $SELECT_TYPE to be enabled" | |
10157 | else | |
10158 | ||
c1c5fdc4 AC |
10159 | if test ! "x$use_ports" = "xno"; then |
10160 | ||
10161 | for ac_func in port_getn | |
10162 | do | |
10163 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10164 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10165 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10166 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
10167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10168 | else | |
10169 | cat >conftest.$ac_ext <<_ACEOF | |
10170 | /* confdefs.h. */ | |
10171 | _ACEOF | |
10172 | cat confdefs.h >>conftest.$ac_ext | |
10173 | cat >>conftest.$ac_ext <<_ACEOF | |
10174 | /* end confdefs.h. */ | |
10175 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10176 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10177 | #define $ac_func innocuous_$ac_func | |
10178 | ||
10179 | /* System header to define __stub macros and hopefully few prototypes, | |
10180 | which can conflict with char $ac_func (); below. | |
10181 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10182 | <limits.h> exists even on freestanding compilers. */ | |
10183 | ||
10184 | #ifdef __STDC__ | |
10185 | # include <limits.h> | |
10186 | #else | |
10187 | # include <assert.h> | |
10188 | #endif | |
10189 | ||
10190 | #undef $ac_func | |
10191 | ||
10192 | /* Override any GCC internal prototype to avoid an error. | |
10193 | Use char because int might match the return type of a GCC | |
10194 | builtin and then its argument prototype would still apply. */ | |
10195 | #ifdef __cplusplus | |
10196 | extern "C" | |
10197 | #endif | |
10198 | char $ac_func (); | |
10199 | /* The GNU C library defines this for functions which it implements | |
10200 | to always fail with ENOSYS. Some functions are actually named | |
10201 | something starting with __ and the normal name is an alias. */ | |
10202 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
10203 | choke me | |
10204 | #endif | |
10205 | ||
10206 | int | |
10207 | main () | |
10208 | { | |
10209 | return $ac_func (); | |
10210 | ; | |
10211 | return 0; | |
10212 | } | |
10213 | _ACEOF | |
10214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10215 | if { (ac_try="$ac_link" | |
10216 | case "(($ac_try" in | |
10217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10218 | *) ac_try_echo=$ac_try;; | |
10219 | esac | |
10220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10221 | (eval "$ac_link") 2>conftest.er1 | |
10222 | ac_status=$? | |
10223 | grep -v '^ *+' conftest.er1 >conftest.err | |
10224 | rm -f conftest.er1 | |
10225 | cat conftest.err >&5 | |
10226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10227 | (exit $ac_status); } && { | |
10228 | test -z "$ac_c_werror_flag" || | |
10229 | test ! -s conftest.err | |
10230 | } && test -s conftest$ac_exeext && | |
10231 | $as_test_x conftest$ac_exeext; then | |
10232 | eval "$as_ac_var=yes" | |
10233 | else | |
10234 | echo "$as_me: failed program was:" >&5 | |
10235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10236 | ||
10237 | eval "$as_ac_var=no" | |
10238 | fi | |
10239 | ||
10240 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10241 | conftest$ac_exeext conftest.$ac_ext | |
10242 | fi | |
10243 | ac_res=`eval echo '${'$as_ac_var'}'` | |
10244 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10245 | echo "${ECHO_T}$ac_res" >&6; } | |
10246 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10247 | cat >>confdefs.h <<_ACEOF | |
10248 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10249 | _ACEOF | |
10250 | haveports=yes | |
10251 | else | |
10252 | haveports=no | |
10253 | fi | |
10254 | done | |
10255 | ||
10256 | if test "x$haveports" = "xyes" ; then | |
10257 | SELECT_TYPE="ports" | |
10258 | fi | |
10259 | fi | |
10260 | ||
212380e3 AC |
10261 | if test ! "x$use_select" = "xno"; then |
10262 | ||
10263 | for ac_func in select | |
10264 | do | |
10265 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10266 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10267 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10268 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10270 | else | |
10271 | cat >conftest.$ac_ext <<_ACEOF | |
10272 | /* confdefs.h. */ | |
10273 | _ACEOF | |
10274 | cat confdefs.h >>conftest.$ac_ext | |
10275 | cat >>conftest.$ac_ext <<_ACEOF | |
10276 | /* end confdefs.h. */ | |
10277 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10278 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10279 | #define $ac_func innocuous_$ac_func | |
10280 | ||
10281 | /* System header to define __stub macros and hopefully few prototypes, | |
10282 | which can conflict with char $ac_func (); below. | |
10283 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10284 | <limits.h> exists even on freestanding compilers. */ | |
10285 | ||
10286 | #ifdef __STDC__ | |
10287 | # include <limits.h> | |
10288 | #else | |
10289 | # include <assert.h> | |
10290 | #endif | |
10291 | ||
10292 | #undef $ac_func | |
10293 | ||
631ef239 AC |
10294 | /* Override any GCC internal prototype to avoid an error. |
10295 | Use char because int might match the return type of a GCC | |
10296 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10297 | #ifdef __cplusplus |
10298 | extern "C" | |
212380e3 | 10299 | #endif |
212380e3 AC |
10300 | char $ac_func (); |
10301 | /* The GNU C library defines this for functions which it implements | |
10302 | to always fail with ENOSYS. Some functions are actually named | |
10303 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10304 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10305 | choke me |
212380e3 AC |
10306 | #endif |
10307 | ||
10308 | int | |
10309 | main () | |
10310 | { | |
631ef239 | 10311 | return $ac_func (); |
212380e3 AC |
10312 | ; |
10313 | return 0; | |
10314 | } | |
10315 | _ACEOF | |
10316 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10317 | if { (ac_try="$ac_link" |
10318 | case "(($ac_try" in | |
10319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10320 | *) ac_try_echo=$ac_try;; | |
10321 | esac | |
10322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10323 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10324 | ac_status=$? |
10325 | grep -v '^ *+' conftest.er1 >conftest.err | |
10326 | rm -f conftest.er1 | |
10327 | cat conftest.err >&5 | |
10328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10329 | (exit $ac_status); } && { |
10330 | test -z "$ac_c_werror_flag" || | |
10331 | test ! -s conftest.err | |
10332 | } && test -s conftest$ac_exeext && | |
10333 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10334 | eval "$as_ac_var=yes" |
10335 | else | |
10336 | echo "$as_me: failed program was:" >&5 | |
10337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10338 | ||
631ef239 | 10339 | eval "$as_ac_var=no" |
212380e3 | 10340 | fi |
631ef239 AC |
10341 | |
10342 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10343 | conftest$ac_exeext conftest.$ac_ext |
10344 | fi | |
631ef239 AC |
10345 | ac_res=`eval echo '${'$as_ac_var'}'` |
10346 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10347 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10348 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10349 | cat >>confdefs.h <<_ACEOF | |
10350 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10351 | _ACEOF | |
10352 | haveselect=yes | |
10353 | else | |
10354 | haveselect=no | |
10355 | fi | |
10356 | done | |
10357 | ||
10358 | if test "x$haveselect" = "xyes" ; then | |
10359 | SELECT_TYPE="select" | |
10360 | fi | |
10361 | fi | |
10362 | ||
10363 | if test ! "x$use_poll" = "xno"; then | |
10364 | ||
10365 | for ac_func in poll | |
10366 | do | |
10367 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10368 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10369 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10370 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10372 | else | |
10373 | cat >conftest.$ac_ext <<_ACEOF | |
10374 | /* confdefs.h. */ | |
10375 | _ACEOF | |
10376 | cat confdefs.h >>conftest.$ac_ext | |
10377 | cat >>conftest.$ac_ext <<_ACEOF | |
10378 | /* end confdefs.h. */ | |
10379 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10380 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10381 | #define $ac_func innocuous_$ac_func | |
10382 | ||
10383 | /* System header to define __stub macros and hopefully few prototypes, | |
10384 | which can conflict with char $ac_func (); below. | |
10385 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10386 | <limits.h> exists even on freestanding compilers. */ | |
10387 | ||
10388 | #ifdef __STDC__ | |
10389 | # include <limits.h> | |
10390 | #else | |
10391 | # include <assert.h> | |
10392 | #endif | |
10393 | ||
10394 | #undef $ac_func | |
10395 | ||
631ef239 AC |
10396 | /* Override any GCC internal prototype to avoid an error. |
10397 | Use char because int might match the return type of a GCC | |
10398 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10399 | #ifdef __cplusplus |
10400 | extern "C" | |
212380e3 | 10401 | #endif |
212380e3 AC |
10402 | char $ac_func (); |
10403 | /* The GNU C library defines this for functions which it implements | |
10404 | to always fail with ENOSYS. Some functions are actually named | |
10405 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10406 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10407 | choke me |
212380e3 AC |
10408 | #endif |
10409 | ||
10410 | int | |
10411 | main () | |
10412 | { | |
631ef239 | 10413 | return $ac_func (); |
212380e3 AC |
10414 | ; |
10415 | return 0; | |
10416 | } | |
10417 | _ACEOF | |
10418 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10419 | if { (ac_try="$ac_link" |
10420 | case "(($ac_try" in | |
10421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10422 | *) ac_try_echo=$ac_try;; | |
10423 | esac | |
10424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10425 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10426 | ac_status=$? |
10427 | grep -v '^ *+' conftest.er1 >conftest.err | |
10428 | rm -f conftest.er1 | |
10429 | cat conftest.err >&5 | |
10430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10431 | (exit $ac_status); } && { |
10432 | test -z "$ac_c_werror_flag" || | |
10433 | test ! -s conftest.err | |
10434 | } && test -s conftest$ac_exeext && | |
10435 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10436 | eval "$as_ac_var=yes" |
10437 | else | |
10438 | echo "$as_me: failed program was:" >&5 | |
10439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10440 | ||
631ef239 | 10441 | eval "$as_ac_var=no" |
212380e3 | 10442 | fi |
631ef239 AC |
10443 | |
10444 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10445 | conftest$ac_exeext conftest.$ac_ext |
10446 | fi | |
631ef239 AC |
10447 | ac_res=`eval echo '${'$as_ac_var'}'` |
10448 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10449 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10450 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10451 | cat >>confdefs.h <<_ACEOF | |
10452 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10453 | _ACEOF | |
10454 | havepoll=yes | |
10455 | else | |
10456 | havepoll=no | |
10457 | fi | |
10458 | done | |
10459 | ||
10460 | if test "x$havepoll" = "xyes" ; then | |
10461 | SELECT_TYPE="poll" | |
10462 | fi | |
10463 | fi | |
10464 | ||
212380e3 AC |
10465 | if test ! "x$use_kqueue" = "xno"; then |
10466 | ||
10467 | for ac_func in kevent | |
10468 | do | |
10469 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10470 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10471 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10472 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10474 | else | |
10475 | cat >conftest.$ac_ext <<_ACEOF | |
10476 | /* confdefs.h. */ | |
10477 | _ACEOF | |
10478 | cat confdefs.h >>conftest.$ac_ext | |
10479 | cat >>conftest.$ac_ext <<_ACEOF | |
10480 | /* end confdefs.h. */ | |
10481 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10482 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10483 | #define $ac_func innocuous_$ac_func | |
10484 | ||
10485 | /* System header to define __stub macros and hopefully few prototypes, | |
10486 | which can conflict with char $ac_func (); below. | |
10487 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10488 | <limits.h> exists even on freestanding compilers. */ | |
10489 | ||
10490 | #ifdef __STDC__ | |
10491 | # include <limits.h> | |
10492 | #else | |
10493 | # include <assert.h> | |
10494 | #endif | |
10495 | ||
10496 | #undef $ac_func | |
10497 | ||
631ef239 AC |
10498 | /* Override any GCC internal prototype to avoid an error. |
10499 | Use char because int might match the return type of a GCC | |
10500 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10501 | #ifdef __cplusplus |
10502 | extern "C" | |
212380e3 | 10503 | #endif |
212380e3 AC |
10504 | char $ac_func (); |
10505 | /* The GNU C library defines this for functions which it implements | |
10506 | to always fail with ENOSYS. Some functions are actually named | |
10507 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10508 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10509 | choke me |
212380e3 AC |
10510 | #endif |
10511 | ||
10512 | int | |
10513 | main () | |
10514 | { | |
631ef239 | 10515 | return $ac_func (); |
212380e3 AC |
10516 | ; |
10517 | return 0; | |
10518 | } | |
10519 | _ACEOF | |
10520 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10521 | if { (ac_try="$ac_link" |
10522 | case "(($ac_try" in | |
10523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10524 | *) ac_try_echo=$ac_try;; | |
10525 | esac | |
10526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10527 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10528 | ac_status=$? |
10529 | grep -v '^ *+' conftest.er1 >conftest.err | |
10530 | rm -f conftest.er1 | |
10531 | cat conftest.err >&5 | |
10532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10533 | (exit $ac_status); } && { |
10534 | test -z "$ac_c_werror_flag" || | |
10535 | test ! -s conftest.err | |
10536 | } && test -s conftest$ac_exeext && | |
10537 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10538 | eval "$as_ac_var=yes" |
10539 | else | |
10540 | echo "$as_me: failed program was:" >&5 | |
10541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10542 | ||
631ef239 | 10543 | eval "$as_ac_var=no" |
212380e3 | 10544 | fi |
631ef239 AC |
10545 | |
10546 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10547 | conftest$ac_exeext conftest.$ac_ext |
10548 | fi | |
631ef239 AC |
10549 | ac_res=`eval echo '${'$as_ac_var'}'` |
10550 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10551 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10552 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10553 | cat >>confdefs.h <<_ACEOF | |
10554 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10555 | _ACEOF | |
10556 | havekqueue=yes | |
10557 | else | |
10558 | havekqueue=no | |
10559 | fi | |
10560 | done | |
10561 | ||
10562 | if test "x$havekqueue" = "xyes" ; then | |
10563 | SELECT_TYPE="kqueue" | |
10564 | fi | |
10565 | fi | |
10566 | ||
10567 | if test ! "x$use_epoll" = "xno"; then | |
10568 | ||
10569 | for ac_func in epoll_ctl | |
10570 | do | |
10571 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10572 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10573 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10574 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10576 | else | |
10577 | cat >conftest.$ac_ext <<_ACEOF | |
10578 | /* confdefs.h. */ | |
10579 | _ACEOF | |
10580 | cat confdefs.h >>conftest.$ac_ext | |
10581 | cat >>conftest.$ac_ext <<_ACEOF | |
10582 | /* end confdefs.h. */ | |
10583 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10584 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10585 | #define $ac_func innocuous_$ac_func | |
10586 | ||
10587 | /* System header to define __stub macros and hopefully few prototypes, | |
10588 | which can conflict with char $ac_func (); below. | |
10589 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10590 | <limits.h> exists even on freestanding compilers. */ | |
10591 | ||
10592 | #ifdef __STDC__ | |
10593 | # include <limits.h> | |
10594 | #else | |
10595 | # include <assert.h> | |
10596 | #endif | |
10597 | ||
10598 | #undef $ac_func | |
10599 | ||
631ef239 AC |
10600 | /* Override any GCC internal prototype to avoid an error. |
10601 | Use char because int might match the return type of a GCC | |
10602 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10603 | #ifdef __cplusplus |
10604 | extern "C" | |
212380e3 | 10605 | #endif |
212380e3 AC |
10606 | char $ac_func (); |
10607 | /* The GNU C library defines this for functions which it implements | |
10608 | to always fail with ENOSYS. Some functions are actually named | |
10609 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10610 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10611 | choke me |
212380e3 AC |
10612 | #endif |
10613 | ||
10614 | int | |
10615 | main () | |
10616 | { | |
631ef239 | 10617 | return $ac_func (); |
212380e3 AC |
10618 | ; |
10619 | return 0; | |
10620 | } | |
10621 | _ACEOF | |
10622 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10623 | if { (ac_try="$ac_link" |
10624 | case "(($ac_try" in | |
10625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10626 | *) ac_try_echo=$ac_try;; | |
10627 | esac | |
10628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10629 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10630 | ac_status=$? |
10631 | grep -v '^ *+' conftest.er1 >conftest.err | |
10632 | rm -f conftest.er1 | |
10633 | cat conftest.err >&5 | |
10634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10635 | (exit $ac_status); } && { |
10636 | test -z "$ac_c_werror_flag" || | |
10637 | test ! -s conftest.err | |
10638 | } && test -s conftest$ac_exeext && | |
10639 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10640 | eval "$as_ac_var=yes" |
10641 | else | |
10642 | echo "$as_me: failed program was:" >&5 | |
10643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10644 | ||
631ef239 | 10645 | eval "$as_ac_var=no" |
212380e3 | 10646 | fi |
631ef239 AC |
10647 | |
10648 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10649 | conftest$ac_exeext conftest.$ac_ext |
10650 | fi | |
631ef239 AC |
10651 | ac_res=`eval echo '${'$as_ac_var'}'` |
10652 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10653 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10654 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10655 | cat >>confdefs.h <<_ACEOF | |
10656 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10657 | _ACEOF | |
10658 | haveepoll=yes | |
10659 | else | |
10660 | haveepoll=no | |
10661 | fi | |
10662 | done | |
10663 | ||
10664 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
10665 | if test "x$haveepoll" = "xyes" ; then | |
631ef239 AC |
10666 | { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5 |
10667 | echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; } | |
212380e3 | 10668 | if test "$cross_compiling" = yes; then |
631ef239 AC |
10669 | { echo "$as_me:$LINENO: result: no" >&5 |
10670 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10671 | else |
10672 | cat >conftest.$ac_ext <<_ACEOF | |
10673 | /* confdefs.h. */ | |
10674 | _ACEOF | |
10675 | cat confdefs.h >>conftest.$ac_ext | |
10676 | cat >>conftest.$ac_ext <<_ACEOF | |
10677 | /* end confdefs.h. */ | |
10678 | #include <stdint.h> | |
10679 | #include <sys/param.h> | |
10680 | #include <sys/types.h> | |
10681 | #include <sys/epoll.h> | |
10682 | #include <sys/syscall.h> | |
10683 | #include <unistd.h> | |
10684 | ||
10685 | int | |
10686 | main(int argc, char **argv) | |
10687 | { | |
10688 | int epfd; | |
10689 | ||
10690 | epfd = epoll_create(256); | |
10691 | exit (epfd == -1 ? 1 : 0); | |
10692 | } | |
10693 | _ACEOF | |
10694 | rm -f conftest$ac_exeext | |
631ef239 AC |
10695 | if { (ac_try="$ac_link" |
10696 | case "(($ac_try" in | |
10697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10698 | *) ac_try_echo=$ac_try;; | |
10699 | esac | |
10700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10701 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
10702 | ac_status=$? |
10703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10704 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
10705 | { (case "(($ac_try" in |
10706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10707 | *) ac_try_echo=$ac_try;; | |
10708 | esac | |
10709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10710 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
10711 | ac_status=$? |
10712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10713 | (exit $ac_status); }; }; then | |
631ef239 AC |
10714 | { echo "$as_me:$LINENO: result: yes" >&5 |
10715 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
10716 | |
10717 | cat >>confdefs.h <<\_ACEOF | |
10718 | #define HAVE_EPOLL 1 | |
10719 | _ACEOF | |
10720 | ||
10721 | SELECT_TYPE="epoll" | |
10722 | else | |
10723 | echo "$as_me: program exited with status $ac_status" >&5 | |
10724 | echo "$as_me: failed program was:" >&5 | |
10725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10726 | ||
10727 | ( exit $ac_status ) | |
631ef239 AC |
10728 | { echo "$as_me:$LINENO: result: no" >&5 |
10729 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10730 | fi |
631ef239 | 10731 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 10732 | fi |
631ef239 AC |
10733 | |
10734 | ||
212380e3 AC |
10735 | fi |
10736 | fi | |
10737 | ||
10738 | haveepollsyscall=no | |
10739 | ||
10740 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
10741 | if test "x$haveepoll" = "xno" ; then | |
631ef239 AC |
10742 | { echo "$as_me:$LINENO: checking for epoll system call" >&5 |
10743 | echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; } | |
212380e3 | 10744 | if test "$cross_compiling" = yes; then |
631ef239 AC |
10745 | { echo "$as_me:$LINENO: result: no" >&5 |
10746 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10747 | else |
10748 | cat >conftest.$ac_ext <<_ACEOF | |
10749 | /* confdefs.h. */ | |
10750 | _ACEOF | |
10751 | cat confdefs.h >>conftest.$ac_ext | |
10752 | cat >>conftest.$ac_ext <<_ACEOF | |
10753 | /* end confdefs.h. */ | |
10754 | #include <stdint.h> | |
10755 | #include <sys/param.h> | |
10756 | #include <sys/types.h> | |
10757 | #include <sys/epoll.h> | |
10758 | #include <sys/syscall.h> | |
10759 | #include <unistd.h> | |
10760 | ||
10761 | int | |
10762 | epoll_create(int size) | |
10763 | { | |
10764 | return (syscall(__NR_epoll_create, size)); | |
10765 | } | |
10766 | ||
10767 | int | |
10768 | main(int argc, char **argv) | |
10769 | { | |
10770 | int epfd; | |
10771 | ||
10772 | epfd = epoll_create(256); | |
10773 | exit (epfd == -1 ? 1 : 0); | |
10774 | } | |
10775 | _ACEOF | |
10776 | rm -f conftest$ac_exeext | |
631ef239 AC |
10777 | if { (ac_try="$ac_link" |
10778 | case "(($ac_try" in | |
10779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10780 | *) ac_try_echo=$ac_try;; | |
10781 | esac | |
10782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10783 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
10784 | ac_status=$? |
10785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10786 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
10787 | { (case "(($ac_try" in |
10788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10789 | *) ac_try_echo=$ac_try;; | |
10790 | esac | |
10791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10792 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
10793 | ac_status=$? |
10794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10795 | (exit $ac_status); }; }; then | |
631ef239 AC |
10796 | { echo "$as_me:$LINENO: result: yes" >&5 |
10797 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
10798 | |
10799 | cat >>confdefs.h <<\_ACEOF | |
10800 | #define HAVE_EPOLL 1 | |
10801 | _ACEOF | |
10802 | ||
10803 | SELECT_TYPE="epoll" | |
10804 | else | |
10805 | echo "$as_me: program exited with status $ac_status" >&5 | |
10806 | echo "$as_me: failed program was:" >&5 | |
10807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10808 | ||
10809 | ( exit $ac_status ) | |
631ef239 AC |
10810 | { echo "$as_me:$LINENO: result: no" >&5 |
10811 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10812 | fi |
631ef239 | 10813 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 10814 | fi |
631ef239 AC |
10815 | |
10816 | ||
212380e3 AC |
10817 | fi |
10818 | fi | |
10819 | ||
10820 | fi | |
10821 | ||
10822 | fi | |
10823 | ||
10824 | if test -z "$SELECT_TYPE"; then | |
10825 | { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5 | |
10826 | echo "$as_me: error: Unable to find a usable IO interface" >&2;} | |
10827 | { (exit 1); exit 1; }; } | |
10828 | fi | |
10829 | ||
10830 | echo "Using $SELECT_TYPE for select loop." | |
10831 | ||
10832 | ||
10833 | cat >>confdefs.h <<_ACEOF | |
10834 | #define SELECT_TYPE "$SELECT_TYPE" | |
10835 | _ACEOF | |
10836 | ||
10837 | ||
10838 | ||
10839 | ||
10840 | ||
631ef239 | 10841 | # Check whether --enable-assert was given. |
212380e3 | 10842 | if test "${enable_assert+set}" = set; then |
631ef239 | 10843 | enableval=$enable_assert; assert=$enableval |
212380e3 AC |
10844 | else |
10845 | assert=no | |
631ef239 AC |
10846 | fi |
10847 | ||
212380e3 AC |
10848 | |
10849 | if test "$assert" = no; then | |
10850 | ||
10851 | cat >>confdefs.h <<\_ACEOF | |
10852 | #define NDEBUG 1 | |
10853 | _ACEOF | |
10854 | ||
10855 | elif test "$assert" = soft; then | |
10856 | ||
10857 | cat >>confdefs.h <<\_ACEOF | |
10858 | #define SOFT_ASSERT 1 | |
10859 | _ACEOF | |
10860 | ||
10861 | ||
10862 | cat >>confdefs.h <<\_ACEOF | |
10863 | #define NDEBUG 1 | |
10864 | _ACEOF | |
10865 | ||
10866 | elif test "$assert" = yes; then | |
10867 | assert = "hard"; | |
10868 | fi | |
10869 | ||
631ef239 AC |
10870 | { echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5 |
10871 | echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; } | |
10872 | # Check whether --enable-iodebug was given. | |
212380e3 | 10873 | if test "${enable_iodebug+set}" = set; then |
631ef239 | 10874 | enableval=$enable_iodebug; iodebug=$enableval |
212380e3 AC |
10875 | else |
10876 | iodebug=no | |
631ef239 AC |
10877 | fi |
10878 | ||
212380e3 AC |
10879 | |
10880 | if test "$iodebug" = yes; then | |
10881 | ||
10882 | cat >>confdefs.h <<\_ACEOF | |
10883 | #define USE_IODEBUG_HOOKS 1 | |
10884 | _ACEOF | |
10885 | ||
631ef239 AC |
10886 | { echo "$as_me:$LINENO: result: yes" >&5 |
10887 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 10888 | else |
631ef239 AC |
10889 | { echo "$as_me:$LINENO: result: no" >&5 |
10890 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10891 | fi |
10892 | ||
10893 | ||
631ef239 AC |
10894 | { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5 |
10895 | echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; } | |
10896 | # Check whether --enable-profile was given. | |
212380e3 | 10897 | if test "${enable_profile+set}" = set; then |
631ef239 | 10898 | enableval=$enable_profile; profile=$enableval |
212380e3 AC |
10899 | else |
10900 | profile=no | |
631ef239 AC |
10901 | fi |
10902 | ||
212380e3 AC |
10903 | |
10904 | if test "$profile" = yes; then | |
10905 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
10906 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
631ef239 AC |
10907 | { echo "$as_me:$LINENO: result: yes, adding -pg" >&5 |
10908 | echo "${ECHO_T}yes, adding -pg" >&6; } | |
212380e3 AC |
10909 | |
10910 | cat >>confdefs.h <<\_ACEOF | |
10911 | #define CHARYBDIS_PROFILE 1 | |
10912 | _ACEOF | |
10913 | ||
10914 | else | |
631ef239 AC |
10915 | { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5 |
10916 | echo "${ECHO_T}no, profile builds only work with gcc" >&6; } | |
212380e3 AC |
10917 | fi |
10918 | else | |
631ef239 AC |
10919 | { echo "$as_me:$LINENO: result: no" >&5 |
10920 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10921 | fi |
10922 | ||
631ef239 | 10923 | # Check whether --enable-balloc was given. |
212380e3 | 10924 | if test "${enable_balloc+set}" = set; then |
631ef239 | 10925 | enableval=$enable_balloc; balloc=$enableval |
212380e3 AC |
10926 | else |
10927 | balloc=yes | |
631ef239 AC |
10928 | fi |
10929 | ||
212380e3 AC |
10930 | |
10931 | if test "$balloc" = no; then | |
10932 | ||
10933 | cat >>confdefs.h <<\_ACEOF | |
10934 | #define NOBALLOC 1 | |
10935 | _ACEOF | |
10936 | ||
10937 | fi | |
10938 | ||
631ef239 | 10939 | # Check whether --enable-small-net was given. |
212380e3 | 10940 | if test "${enable_small_net+set}" = set; then |
631ef239 | 10941 | enableval=$enable_small_net; small_net=$enableval |
212380e3 AC |
10942 | else |
10943 | small_net=no | |
631ef239 AC |
10944 | fi |
10945 | ||
212380e3 AC |
10946 | |
10947 | if test "$small_net" = yes; then | |
10948 | ||
10949 | cat >>confdefs.h <<\_ACEOF | |
10950 | #define NICKNAMEHISTORYLENGTH 1500 | |
10951 | _ACEOF | |
10952 | ||
10953 | ||
10954 | cat >>confdefs.h <<\_ACEOF | |
10955 | #define CHANNEL_HEAP_SIZE 256 | |
10956 | _ACEOF | |
10957 | ||
10958 | ||
10959 | cat >>confdefs.h <<\_ACEOF | |
10960 | #define BAN_HEAP_SIZE 128 | |
10961 | _ACEOF | |
10962 | ||
10963 | ||
10964 | cat >>confdefs.h <<\_ACEOF | |
10965 | #define CLIENT_HEAP_SIZE 256 | |
10966 | _ACEOF | |
10967 | ||
10968 | ||
10969 | cat >>confdefs.h <<\_ACEOF | |
10970 | #define LCLIENT_HEAP_SIZE 128 | |
10971 | _ACEOF | |
10972 | ||
10973 | ||
10974 | cat >>confdefs.h <<\_ACEOF | |
10975 | #define PCLIENT_HEAP_SIZE 32 | |
10976 | _ACEOF | |
10977 | ||
10978 | ||
10979 | cat >>confdefs.h <<\_ACEOF | |
10980 | #define USER_HEAP_SIZE 128 | |
10981 | _ACEOF | |
10982 | ||
10983 | ||
10984 | cat >>confdefs.h <<\_ACEOF | |
10985 | #define DNODE_HEAP_SIZE 256 | |
10986 | _ACEOF | |
10987 | ||
10988 | ||
10989 | cat >>confdefs.h <<\_ACEOF | |
10990 | #define TOPIC_HEAP_SIZE 256 | |
10991 | _ACEOF | |
10992 | ||
10993 | ||
10994 | cat >>confdefs.h <<\_ACEOF | |
10995 | #define LINEBUF_HEAP_SIZE 128 | |
10996 | _ACEOF | |
10997 | ||
10998 | ||
10999 | cat >>confdefs.h <<\_ACEOF | |
11000 | #define MEMBER_HEAP_SIZE 256 | |
11001 | _ACEOF | |
11002 | ||
11003 | ||
11004 | cat >>confdefs.h <<\_ACEOF | |
11005 | #define ND_HEAP_SIZE 128 | |
11006 | _ACEOF | |
11007 | ||
11008 | ||
11009 | cat >>confdefs.h <<\_ACEOF | |
11010 | #define CONFITEM_HEAP_SIZE 128 | |
11011 | _ACEOF | |
11012 | ||
11013 | ||
11014 | cat >>confdefs.h <<\_ACEOF | |
11015 | #define MONITOR_HEAP_SIZE 128 | |
11016 | _ACEOF | |
11017 | ||
11018 | else | |
11019 | ||
11020 | cat >>confdefs.h <<\_ACEOF | |
11021 | #define NICKNAMEHISTORYLENGTH 15000 | |
11022 | _ACEOF | |
11023 | ||
11024 | ||
11025 | cat >>confdefs.h <<\_ACEOF | |
11026 | #define CHANNEL_HEAP_SIZE 8192 | |
11027 | _ACEOF | |
11028 | ||
11029 | ||
11030 | cat >>confdefs.h <<\_ACEOF | |
11031 | #define BAN_HEAP_SIZE 4096 | |
11032 | _ACEOF | |
11033 | ||
11034 | ||
11035 | cat >>confdefs.h <<\_ACEOF | |
11036 | #define CLIENT_HEAP_SIZE 8192 | |
11037 | _ACEOF | |
11038 | ||
11039 | ||
11040 | cat >>confdefs.h <<\_ACEOF | |
11041 | #define LCLIENT_HEAP_SIZE 1024 | |
11042 | _ACEOF | |
11043 | ||
11044 | ||
11045 | cat >>confdefs.h <<\_ACEOF | |
11046 | #define PCLIENT_HEAP_SIZE 256 | |
11047 | _ACEOF | |
11048 | ||
11049 | ||
11050 | cat >>confdefs.h <<\_ACEOF | |
11051 | #define USER_HEAP_SIZE 8192 | |
11052 | _ACEOF | |
11053 | ||
11054 | ||
11055 | cat >>confdefs.h <<\_ACEOF | |
11056 | #define DNODE_HEAP_SIZE 8192 | |
11057 | _ACEOF | |
11058 | ||
11059 | ||
11060 | cat >>confdefs.h <<\_ACEOF | |
11061 | #define TOPIC_HEAP_SIZE 4096 | |
11062 | _ACEOF | |
11063 | ||
11064 | ||
11065 | cat >>confdefs.h <<\_ACEOF | |
11066 | #define LINEBUF_HEAP_SIZE 2048 | |
11067 | _ACEOF | |
11068 | ||
11069 | ||
11070 | cat >>confdefs.h <<\_ACEOF | |
11071 | #define MEMBER_HEAP_SIZE 32768 | |
11072 | _ACEOF | |
11073 | ||
11074 | ||
11075 | cat >>confdefs.h <<\_ACEOF | |
11076 | #define ND_HEAP_SIZE 512 | |
11077 | _ACEOF | |
11078 | ||
11079 | ||
11080 | cat >>confdefs.h <<\_ACEOF | |
11081 | #define CONFITEM_HEAP_SIZE 256 | |
11082 | _ACEOF | |
11083 | ||
11084 | ||
11085 | cat >>confdefs.h <<\_ACEOF | |
11086 | #define MONITOR_HEAP_SIZE 1024 | |
11087 | _ACEOF | |
11088 | ||
11089 | fi | |
11090 | ||
11091 | ||
631ef239 | 11092 | # Check whether --with-nicklen was given. |
212380e3 | 11093 | if test "${with_nicklen+set}" = set; then |
631ef239 | 11094 | withval=$with_nicklen; |
212380e3 AC |
11095 | if test $withval -ge 50; then |
11096 | NICKLEN=50 | |
11097 | { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 | |
11098 | echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
11099 | else | |
11100 | NICKLEN="$withval" | |
11101 | fi | |
11102 | ||
11103 | else | |
11104 | NICKLEN=15 | |
631ef239 | 11105 | fi |
212380e3 AC |
11106 | |
11107 | ||
212380e3 | 11108 | |
631ef239 AC |
11109 | # Check whether --with-topiclen was given. |
11110 | if test "${with_topiclen+set}" = set; then | |
11111 | withval=$with_topiclen; | |
212380e3 AC |
11112 | if test $withval -ge 390; then |
11113 | TOPICLEN=390 | |
11114 | { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 | |
11115 | echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
11116 | else | |
11117 | TOPICLEN=$withval | |
11118 | fi | |
11119 | ||
11120 | else | |
11121 | TOPICLEN=390 | |
212380e3 AC |
11122 | fi |
11123 | ||
212380e3 AC |
11124 | |
11125 | ||
11126 | cat >>confdefs.h <<_ACEOF | |
11127 | #define TOPICLEN ${TOPICLEN} | |
11128 | _ACEOF | |
11129 | ||
11130 | ||
11131 | cat >>confdefs.h <<_ACEOF | |
11132 | #define NICKLEN (${NICKLEN}+1) | |
11133 | _ACEOF | |
11134 | ||
11135 | ||
631ef239 | 11136 | # Check whether --enable-shared-modules was given. |
212380e3 | 11137 | if test "${enable_shared_modules+set}" = set; then |
631ef239 | 11138 | enableval=$enable_shared_modules; shared_modules=$enableval |
212380e3 AC |
11139 | else |
11140 | shared_modules="yes" | |
631ef239 AC |
11141 | fi |
11142 | ||
212380e3 AC |
11143 | |
11144 | if test "$shared_modules" = yes; then | |
11145 | ||
11146 | if test "$CYGWIN" = yes; then | |
11147 | { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5 | |
11148 | echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;} | |
11149 | shared_modules="no" | |
11150 | fi | |
11151 | ||
11152 | if test "$CC" = tcc -a "$TenDRA" = "no"; then | |
11153 | { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5 | |
11154 | echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;} | |
11155 | shared_modules="no" | |
11156 | fi | |
11157 | fi | |
11158 | ||
11159 | if test "$shared_modules" = yes; then | |
11160 | DYNLINK_C=dynlink.c | |
11161 | ||
11162 | for ac_header in dlfcn.h | |
11163 | do | |
11164 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
11165 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
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 | fi | |
631ef239 AC |
11171 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11172 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11173 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11174 | else |
11175 | # Is the header compilable? | |
631ef239 AC |
11176 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11177 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 AC |
11178 | cat >conftest.$ac_ext <<_ACEOF |
11179 | /* confdefs.h. */ | |
11180 | _ACEOF | |
11181 | cat confdefs.h >>conftest.$ac_ext | |
11182 | cat >>conftest.$ac_ext <<_ACEOF | |
11183 | /* end confdefs.h. */ | |
11184 | $ac_includes_default | |
11185 | #include <$ac_header> | |
11186 | _ACEOF | |
11187 | rm -f conftest.$ac_objext | |
631ef239 AC |
11188 | if { (ac_try="$ac_compile" |
11189 | case "(($ac_try" in | |
11190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11191 | *) ac_try_echo=$ac_try;; | |
11192 | esac | |
11193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11194 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11195 | ac_status=$? |
11196 | grep -v '^ *+' conftest.er1 >conftest.err | |
11197 | rm -f conftest.er1 | |
11198 | cat conftest.err >&5 | |
11199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11200 | (exit $ac_status); } && { |
11201 | test -z "$ac_c_werror_flag" || | |
11202 | test ! -s conftest.err | |
11203 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11204 | ac_header_compiler=yes |
11205 | else | |
11206 | echo "$as_me: failed program was:" >&5 | |
11207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11208 | ||
631ef239 | 11209 | ac_header_compiler=no |
212380e3 | 11210 | fi |
631ef239 AC |
11211 | |
11212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11213 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11214 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
11215 | |
11216 | # Is the header present? | |
631ef239 AC |
11217 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11218 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 AC |
11219 | cat >conftest.$ac_ext <<_ACEOF |
11220 | /* confdefs.h. */ | |
11221 | _ACEOF | |
11222 | cat confdefs.h >>conftest.$ac_ext | |
11223 | cat >>conftest.$ac_ext <<_ACEOF | |
11224 | /* end confdefs.h. */ | |
11225 | #include <$ac_header> | |
11226 | _ACEOF | |
631ef239 AC |
11227 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11228 | case "(($ac_try" in | |
11229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11230 | *) ac_try_echo=$ac_try;; | |
11231 | esac | |
11232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11233 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
11234 | ac_status=$? |
11235 | grep -v '^ *+' conftest.er1 >conftest.err | |
11236 | rm -f conftest.er1 | |
11237 | cat conftest.err >&5 | |
11238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11239 | (exit $ac_status); } >/dev/null && { |
11240 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11241 | test ! -s conftest.err | |
11242 | }; then | |
212380e3 AC |
11243 | ac_header_preproc=yes |
11244 | else | |
11245 | echo "$as_me: failed program was:" >&5 | |
11246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11247 | ||
11248 | ac_header_preproc=no | |
11249 | fi | |
631ef239 | 11250 | |
212380e3 | 11251 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
11252 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11253 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
11254 | |
11255 | # So? What about this header? | |
11256 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11257 | yes:no: ) | |
11258 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11259 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11260 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11261 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11262 | ac_header_preproc=yes | |
11263 | ;; | |
11264 | no:yes:* ) | |
11265 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11266 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11267 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11268 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11269 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11270 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11271 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11272 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11273 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11274 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11275 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11276 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 11277 | |
212380e3 AC |
11278 | ;; |
11279 | esac | |
631ef239 AC |
11280 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11281 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11282 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11284 | else | |
11285 | eval "$as_ac_Header=\$ac_header_preproc" | |
11286 | fi | |
631ef239 AC |
11287 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11288 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11289 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11290 | |
11291 | fi | |
11292 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11293 | cat >>confdefs.h <<_ACEOF | |
11294 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11295 | _ACEOF | |
11296 | ||
11297 | fi | |
11298 | ||
11299 | done | |
11300 | ||
631ef239 AC |
11301 | { echo "$as_me:$LINENO: checking for library containing shl_load" >&5 |
11302 | echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; } | |
212380e3 AC |
11303 | if test "${ac_cv_search_shl_load+set}" = set; then |
11304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11305 | else | |
11306 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
11307 | cat >conftest.$ac_ext <<_ACEOF |
11308 | /* confdefs.h. */ | |
11309 | _ACEOF | |
11310 | cat confdefs.h >>conftest.$ac_ext | |
11311 | cat >>conftest.$ac_ext <<_ACEOF | |
11312 | /* end confdefs.h. */ | |
11313 | ||
631ef239 AC |
11314 | /* Override any GCC internal prototype to avoid an error. |
11315 | Use char because int might match the return type of a GCC | |
11316 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11317 | #ifdef __cplusplus |
11318 | extern "C" | |
11319 | #endif | |
212380e3 AC |
11320 | char shl_load (); |
11321 | int | |
11322 | main () | |
11323 | { | |
631ef239 | 11324 | return shl_load (); |
212380e3 AC |
11325 | ; |
11326 | return 0; | |
11327 | } | |
11328 | _ACEOF | |
631ef239 AC |
11329 | for ac_lib in '' dld; do |
11330 | if test -z "$ac_lib"; then | |
11331 | ac_res="none required" | |
11332 | else | |
11333 | ac_res=-l$ac_lib | |
11334 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11335 | fi | |
11336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11337 | if { (ac_try="$ac_link" | |
11338 | case "(($ac_try" in | |
11339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11340 | *) ac_try_echo=$ac_try;; | |
11341 | esac | |
11342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11343 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11344 | ac_status=$? |
11345 | grep -v '^ *+' conftest.er1 >conftest.err | |
11346 | rm -f conftest.er1 | |
11347 | cat conftest.err >&5 | |
11348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11349 | (exit $ac_status); } && { |
11350 | test -z "$ac_c_werror_flag" || | |
11351 | test ! -s conftest.err | |
11352 | } && test -s conftest$ac_exeext && | |
11353 | $as_test_x conftest$ac_exeext; then | |
11354 | ac_cv_search_shl_load=$ac_res | |
212380e3 AC |
11355 | else |
11356 | echo "$as_me: failed program was:" >&5 | |
11357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11358 | ||
212380e3 | 11359 | |
631ef239 | 11360 | fi |
212380e3 | 11361 | |
631ef239 AC |
11362 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11363 | conftest$ac_exeext | |
11364 | if test "${ac_cv_search_shl_load+set}" = set; then | |
11365 | break | |
212380e3 | 11366 | fi |
631ef239 AC |
11367 | done |
11368 | if test "${ac_cv_search_shl_load+set}" = set; then | |
11369 | : | |
11370 | else | |
11371 | ac_cv_search_shl_load=no | |
212380e3 | 11372 | fi |
631ef239 | 11373 | rm conftest.$ac_ext |
212380e3 AC |
11374 | LIBS=$ac_func_search_save_LIBS |
11375 | fi | |
631ef239 AC |
11376 | { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5 |
11377 | echo "${ECHO_T}$ac_cv_search_shl_load" >&6; } | |
11378 | ac_res=$ac_cv_search_shl_load | |
11379 | if test "$ac_res" != no; then | |
11380 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
11381 | |
11382 | ||
11383 | cat >>confdefs.h <<\_ACEOF | |
11384 | #define HAVE_SHL_LOAD 1 | |
11385 | _ACEOF | |
11386 | ||
11387 | SUFFIX=".sl" | |
11388 | MOD_TARGET=hpux_shared | |
11389 | SEDOBJ="s/\.o/.sl/g" | |
11390 | ||
11391 | else | |
11392 | ||
631ef239 AC |
11393 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
11394 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | |
212380e3 AC |
11395 | if test "${ac_cv_search_dlopen+set}" = set; then |
11396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11397 | else | |
11398 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
11399 | cat >conftest.$ac_ext <<_ACEOF |
11400 | /* confdefs.h. */ | |
11401 | _ACEOF | |
11402 | cat confdefs.h >>conftest.$ac_ext | |
11403 | cat >>conftest.$ac_ext <<_ACEOF | |
11404 | /* end confdefs.h. */ | |
11405 | ||
631ef239 AC |
11406 | /* Override any GCC internal prototype to avoid an error. |
11407 | Use char because int might match the return type of a GCC | |
11408 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11409 | #ifdef __cplusplus |
11410 | extern "C" | |
11411 | #endif | |
212380e3 AC |
11412 | char dlopen (); |
11413 | int | |
11414 | main () | |
11415 | { | |
631ef239 | 11416 | return dlopen (); |
212380e3 AC |
11417 | ; |
11418 | return 0; | |
11419 | } | |
11420 | _ACEOF | |
631ef239 AC |
11421 | for ac_lib in '' dl c_r; do |
11422 | if test -z "$ac_lib"; then | |
11423 | ac_res="none required" | |
11424 | else | |
11425 | ac_res=-l$ac_lib | |
11426 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11427 | fi | |
11428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11429 | if { (ac_try="$ac_link" | |
11430 | case "(($ac_try" in | |
11431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11432 | *) ac_try_echo=$ac_try;; | |
11433 | esac | |
11434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11435 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11436 | ac_status=$? |
11437 | grep -v '^ *+' conftest.er1 >conftest.err | |
11438 | rm -f conftest.er1 | |
11439 | cat conftest.err >&5 | |
11440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11441 | (exit $ac_status); } && { |
11442 | test -z "$ac_c_werror_flag" || | |
11443 | test ! -s conftest.err | |
11444 | } && test -s conftest$ac_exeext && | |
11445 | $as_test_x conftest$ac_exeext; then | |
11446 | ac_cv_search_dlopen=$ac_res | |
212380e3 AC |
11447 | else |
11448 | echo "$as_me: failed program was:" >&5 | |
11449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11450 | ||
212380e3 | 11451 | |
631ef239 | 11452 | fi |
212380e3 | 11453 | |
631ef239 AC |
11454 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11455 | conftest$ac_exeext | |
11456 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11457 | break | |
212380e3 | 11458 | fi |
631ef239 AC |
11459 | done |
11460 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11461 | : | |
11462 | else | |
11463 | ac_cv_search_dlopen=no | |
212380e3 | 11464 | fi |
631ef239 | 11465 | rm conftest.$ac_ext |
212380e3 AC |
11466 | LIBS=$ac_func_search_save_LIBS |
11467 | fi | |
631ef239 AC |
11468 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
11469 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | |
11470 | ac_res=$ac_cv_search_dlopen | |
11471 | if test "$ac_res" != no; then | |
11472 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
11473 | |
11474 | ||
11475 | cat >>confdefs.h <<\_ACEOF | |
11476 | #define HAVE_DLOPEN 1 | |
11477 | _ACEOF | |
11478 | ||
11479 | SUFFIX=".so" | |
11480 | MOD_TARGET=shared_modules | |
11481 | SEDOBJ="s/\.o/.so/g" | |
11482 | if test "$AppleGCC" = yes; then | |
11483 | ||
11484 | for ac_header in mach-o/dyld.h | |
11485 | do | |
11486 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
11487 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
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 | fi | |
631ef239 AC |
11493 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11494 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11495 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11496 | else |
11497 | # Is the header compilable? | |
631ef239 AC |
11498 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11499 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 AC |
11500 | cat >conftest.$ac_ext <<_ACEOF |
11501 | /* confdefs.h. */ | |
11502 | _ACEOF | |
11503 | cat confdefs.h >>conftest.$ac_ext | |
11504 | cat >>conftest.$ac_ext <<_ACEOF | |
11505 | /* end confdefs.h. */ | |
11506 | $ac_includes_default | |
11507 | #include <$ac_header> | |
11508 | _ACEOF | |
11509 | rm -f conftest.$ac_objext | |
631ef239 AC |
11510 | if { (ac_try="$ac_compile" |
11511 | case "(($ac_try" in | |
11512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11513 | *) ac_try_echo=$ac_try;; | |
11514 | esac | |
11515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11516 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11517 | ac_status=$? |
11518 | grep -v '^ *+' conftest.er1 >conftest.err | |
11519 | rm -f conftest.er1 | |
11520 | cat conftest.err >&5 | |
11521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11522 | (exit $ac_status); } && { |
11523 | test -z "$ac_c_werror_flag" || | |
11524 | test ! -s conftest.err | |
11525 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11526 | ac_header_compiler=yes |
11527 | else | |
11528 | echo "$as_me: failed program was:" >&5 | |
11529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11530 | ||
631ef239 | 11531 | ac_header_compiler=no |
212380e3 | 11532 | fi |
631ef239 AC |
11533 | |
11534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11535 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11536 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
11537 | |
11538 | # Is the header present? | |
631ef239 AC |
11539 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11540 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 AC |
11541 | cat >conftest.$ac_ext <<_ACEOF |
11542 | /* confdefs.h. */ | |
11543 | _ACEOF | |
11544 | cat confdefs.h >>conftest.$ac_ext | |
11545 | cat >>conftest.$ac_ext <<_ACEOF | |
11546 | /* end confdefs.h. */ | |
11547 | #include <$ac_header> | |
11548 | _ACEOF | |
631ef239 AC |
11549 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11550 | case "(($ac_try" in | |
11551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11552 | *) ac_try_echo=$ac_try;; | |
11553 | esac | |
11554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11555 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
11556 | ac_status=$? |
11557 | grep -v '^ *+' conftest.er1 >conftest.err | |
11558 | rm -f conftest.er1 | |
11559 | cat conftest.err >&5 | |
11560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11561 | (exit $ac_status); } >/dev/null && { |
11562 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11563 | test ! -s conftest.err | |
11564 | }; then | |
212380e3 AC |
11565 | ac_header_preproc=yes |
11566 | else | |
11567 | echo "$as_me: failed program was:" >&5 | |
11568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11569 | ||
11570 | ac_header_preproc=no | |
11571 | fi | |
631ef239 | 11572 | |
212380e3 | 11573 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
11574 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11575 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
11576 | |
11577 | # So? What about this header? | |
11578 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11579 | yes:no: ) | |
11580 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11581 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11582 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11583 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11584 | ac_header_preproc=yes | |
11585 | ;; | |
11586 | no:yes:* ) | |
11587 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11588 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11589 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11590 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11591 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11592 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11593 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11594 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11595 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11596 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11597 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11598 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 11599 | |
212380e3 AC |
11600 | ;; |
11601 | esac | |
631ef239 AC |
11602 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11603 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11604 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11606 | else | |
11607 | eval "$as_ac_Header=\$ac_header_preproc" | |
11608 | fi | |
631ef239 AC |
11609 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11610 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11611 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11612 | |
11613 | fi | |
11614 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11615 | cat >>confdefs.h <<_ACEOF | |
11616 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11617 | _ACEOF | |
11618 | ||
11619 | fi | |
11620 | ||
11621 | done | |
11622 | ||
11623 | fi | |
631ef239 AC |
11624 | { echo "$as_me:$LINENO: checking for dlsym" >&5 |
11625 | echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; } | |
212380e3 AC |
11626 | if test "${ac_cv_func_dlsym+set}" = set; then |
11627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11628 | else | |
11629 | cat >conftest.$ac_ext <<_ACEOF | |
11630 | /* confdefs.h. */ | |
11631 | _ACEOF | |
11632 | cat confdefs.h >>conftest.$ac_ext | |
11633 | cat >>conftest.$ac_ext <<_ACEOF | |
11634 | /* end confdefs.h. */ | |
11635 | /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym. | |
11636 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11637 | #define dlsym innocuous_dlsym | |
11638 | ||
11639 | /* System header to define __stub macros and hopefully few prototypes, | |
11640 | which can conflict with char dlsym (); below. | |
11641 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11642 | <limits.h> exists even on freestanding compilers. */ | |
11643 | ||
11644 | #ifdef __STDC__ | |
11645 | # include <limits.h> | |
11646 | #else | |
11647 | # include <assert.h> | |
11648 | #endif | |
11649 | ||
11650 | #undef dlsym | |
11651 | ||
631ef239 AC |
11652 | /* Override any GCC internal prototype to avoid an error. |
11653 | Use char because int might match the return type of a GCC | |
11654 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11655 | #ifdef __cplusplus |
11656 | extern "C" | |
212380e3 | 11657 | #endif |
212380e3 AC |
11658 | char dlsym (); |
11659 | /* The GNU C library defines this for functions which it implements | |
11660 | to always fail with ENOSYS. Some functions are actually named | |
11661 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 11662 | #if defined __stub_dlsym || defined __stub___dlsym |
212380e3 | 11663 | choke me |
212380e3 AC |
11664 | #endif |
11665 | ||
11666 | int | |
11667 | main () | |
11668 | { | |
631ef239 | 11669 | return dlsym (); |
212380e3 AC |
11670 | ; |
11671 | return 0; | |
11672 | } | |
11673 | _ACEOF | |
11674 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
11675 | if { (ac_try="$ac_link" |
11676 | case "(($ac_try" in | |
11677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11678 | *) ac_try_echo=$ac_try;; | |
11679 | esac | |
11680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11681 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11682 | ac_status=$? |
11683 | grep -v '^ *+' conftest.er1 >conftest.err | |
11684 | rm -f conftest.er1 | |
11685 | cat conftest.err >&5 | |
11686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11687 | (exit $ac_status); } && { |
11688 | test -z "$ac_c_werror_flag" || | |
11689 | test ! -s conftest.err | |
11690 | } && test -s conftest$ac_exeext && | |
11691 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
11692 | ac_cv_func_dlsym=yes |
11693 | else | |
11694 | echo "$as_me: failed program was:" >&5 | |
11695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11696 | ||
631ef239 | 11697 | ac_cv_func_dlsym=no |
212380e3 | 11698 | fi |
631ef239 AC |
11699 | |
11700 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
11701 | conftest$ac_exeext conftest.$ac_ext |
11702 | fi | |
631ef239 AC |
11703 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5 |
11704 | echo "${ECHO_T}$ac_cv_func_dlsym" >&6; } | |
212380e3 AC |
11705 | if test $ac_cv_func_dlsym = yes; then |
11706 | : | |
11707 | else | |
11708 | ||
11709 | { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5 | |
11710 | echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;} | |
11711 | shared_modules=no | |
11712 | ||
11713 | fi | |
11714 | ||
11715 | ||
11716 | for ac_func in dlfunc | |
11717 | do | |
11718 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
11719 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11720 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11721 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11723 | else | |
11724 | cat >conftest.$ac_ext <<_ACEOF | |
11725 | /* confdefs.h. */ | |
11726 | _ACEOF | |
11727 | cat confdefs.h >>conftest.$ac_ext | |
11728 | cat >>conftest.$ac_ext <<_ACEOF | |
11729 | /* end confdefs.h. */ | |
11730 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11731 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11732 | #define $ac_func innocuous_$ac_func | |
11733 | ||
11734 | /* System header to define __stub macros and hopefully few prototypes, | |
11735 | which can conflict with char $ac_func (); below. | |
11736 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11737 | <limits.h> exists even on freestanding compilers. */ | |
11738 | ||
11739 | #ifdef __STDC__ | |
11740 | # include <limits.h> | |
11741 | #else | |
11742 | # include <assert.h> | |
11743 | #endif | |
11744 | ||
11745 | #undef $ac_func | |
11746 | ||
631ef239 AC |
11747 | /* Override any GCC internal prototype to avoid an error. |
11748 | Use char because int might match the return type of a GCC | |
11749 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11750 | #ifdef __cplusplus |
11751 | extern "C" | |
212380e3 | 11752 | #endif |
212380e3 AC |
11753 | char $ac_func (); |
11754 | /* The GNU C library defines this for functions which it implements | |
11755 | to always fail with ENOSYS. Some functions are actually named | |
11756 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 11757 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 11758 | choke me |
212380e3 AC |
11759 | #endif |
11760 | ||
11761 | int | |
11762 | main () | |
11763 | { | |
631ef239 | 11764 | return $ac_func (); |
212380e3 AC |
11765 | ; |
11766 | return 0; | |
11767 | } | |
11768 | _ACEOF | |
11769 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
11770 | if { (ac_try="$ac_link" |
11771 | case "(($ac_try" in | |
11772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11773 | *) ac_try_echo=$ac_try;; | |
11774 | esac | |
11775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11776 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11777 | ac_status=$? |
11778 | grep -v '^ *+' conftest.er1 >conftest.err | |
11779 | rm -f conftest.er1 | |
11780 | cat conftest.err >&5 | |
11781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11782 | (exit $ac_status); } && { |
11783 | test -z "$ac_c_werror_flag" || | |
11784 | test ! -s conftest.err | |
11785 | } && test -s conftest$ac_exeext && | |
11786 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
11787 | eval "$as_ac_var=yes" |
11788 | else | |
11789 | echo "$as_me: failed program was:" >&5 | |
11790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11791 | ||
631ef239 | 11792 | eval "$as_ac_var=no" |
212380e3 | 11793 | fi |
631ef239 AC |
11794 | |
11795 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
11796 | conftest$ac_exeext conftest.$ac_ext |
11797 | fi | |
631ef239 AC |
11798 | ac_res=`eval echo '${'$as_ac_var'}'` |
11799 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11800 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11801 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11802 | cat >>confdefs.h <<_ACEOF | |
11803 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11804 | _ACEOF | |
11805 | ||
11806 | fi | |
11807 | done | |
11808 | ||
11809 | ||
11810 | else | |
11811 | ||
11812 | shared_modules=no | |
11813 | ||
11814 | fi | |
11815 | ||
11816 | ||
11817 | fi | |
11818 | ||
11819 | fi | |
11820 | ||
11821 | ||
11822 | cat >>confdefs.h <<_ACEOF | |
11823 | #define SHARED_SUFFIX "$SUFFIX" | |
11824 | _ACEOF | |
11825 | ||
11826 | ||
11827 | if test "$shared_modules" = yes; then | |
11828 | # The GNU linker requires the -export-dynamic option to make | |
11829 | # all symbols visible in the dynamic symbol table. | |
11830 | hold_ldflags=$LDFLAGS | |
631ef239 AC |
11831 | { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
11832 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; } | |
212380e3 AC |
11833 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror" |
11834 | cat >conftest.$ac_ext <<_ACEOF | |
11835 | /* confdefs.h. */ | |
11836 | _ACEOF | |
11837 | cat confdefs.h >>conftest.$ac_ext | |
11838 | cat >>conftest.$ac_ext <<_ACEOF | |
11839 | /* end confdefs.h. */ | |
11840 | ||
11841 | int | |
11842 | main () | |
11843 | { | |
11844 | int i; | |
11845 | ; | |
11846 | return 0; | |
11847 | } | |
11848 | _ACEOF | |
11849 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
11850 | if { (ac_try="$ac_link" |
11851 | case "(($ac_try" in | |
11852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11853 | *) ac_try_echo=$ac_try;; | |
11854 | esac | |
11855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11856 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11857 | ac_status=$? |
11858 | grep -v '^ *+' conftest.er1 >conftest.err | |
11859 | rm -f conftest.er1 | |
11860 | cat conftest.err >&5 | |
11861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11862 | (exit $ac_status); } && { |
11863 | test -z "$ac_c_werror_flag" || | |
11864 | test ! -s conftest.err | |
11865 | } && test -s conftest$ac_exeext && | |
11866 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
11867 | found=yes |
11868 | else | |
11869 | echo "$as_me: failed program was:" >&5 | |
11870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11871 | ||
631ef239 | 11872 | found=no |
212380e3 | 11873 | fi |
631ef239 AC |
11874 | |
11875 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
11876 | conftest$ac_exeext conftest.$ac_ext |
11877 | LDFLAGS=$hold_ldflags | |
11878 | ||
11879 | if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then | |
11880 | found="no, IRIX ld uses -B,dynamic" | |
11881 | LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" | |
11882 | fi | |
11883 | ||
11884 | if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then | |
11885 | found="no, AIX ld uses -G -brtl" | |
11886 | LDFLAGS="${LDFLAGS} -Wl,-G,-brtl" | |
11887 | fi | |
11888 | ||
631ef239 AC |
11889 | { echo "$as_me:$LINENO: result: $found" >&5 |
11890 | echo "${ECHO_T}$found" >&6; } | |
212380e3 AC |
11891 | |
11892 | if test "$found" = yes; then | |
11893 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" | |
11894 | fi | |
11895 | ||
631ef239 AC |
11896 | { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5 |
11897 | echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; } | |
212380e3 | 11898 | if test "$SGS" = "yes"; then |
631ef239 AC |
11899 | { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5 |
11900 | echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; } | |
212380e3 AC |
11901 | PICFLAGS="-KPIC -DPIC -G" |
11902 | fi | |
11903 | ||
11904 | if test "$AppleGCC" = "yes"; then | |
631ef239 AC |
11905 | { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5 |
11906 | echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; } | |
212380e3 AC |
11907 | PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" |
11908 | fi | |
11909 | if test "$HPUX" = "yes" -a "$CC" != gcc; then | |
631ef239 AC |
11910 | { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5 |
11911 | echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; } | |
212380e3 | 11912 | PICFLAGS="+z -r -q -n -c" |
631ef239 AC |
11913 | { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5 |
11914 | echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; } | |
212380e3 AC |
11915 | |
11916 | if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then | |
631ef239 AC |
11917 | { echo "$as_me:$LINENO: result: no" >&5 |
11918 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 11919 | else |
631ef239 AC |
11920 | { echo "$as_me:$LINENO: result: yes" >&5 |
11921 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
11922 | PICFLAGS="$PICFLAGS +ESfic" |
11923 | fi | |
11924 | ||
11925 | LDFLAGS="${LDFLAGS} -Wl,-E" | |
11926 | fi | |
11927 | if test "$Tru" = yes -a "$CC" != gcc; then | |
631ef239 AC |
11928 | { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5 |
11929 | echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; } | |
212380e3 AC |
11930 | PICFLAGS="-shared -expect_unresolved '*' " |
11931 | LDFLAGS="-call_shared" | |
11932 | fi | |
11933 | if test -z "$PICFLAGS"; then | |
11934 | if test "$ac_cv_c_compiler_gnu" = "yes"; then | |
631ef239 AC |
11935 | { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5 |
11936 | echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; } | |
212380e3 AC |
11937 | PICFLAGS="-fPIC -DPIC -shared" |
11938 | else | |
631ef239 AC |
11939 | { echo "$as_me:$LINENO: result: no" >&5 |
11940 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11941 | shared_modules=no |
11942 | fi | |
11943 | fi | |
11944 | fi | |
11945 | ||
11946 | # This must be down here, or it will mess up checks like the ones | |
11947 | # for -Wl,-export-dynamic | |
11948 | # -- jilles | |
631ef239 | 11949 | # Check whether --enable-warnings was given. |
212380e3 | 11950 | if test "${enable_warnings+set}" = set; then |
631ef239 | 11951 | enableval=$enable_warnings; |
212380e3 AC |
11952 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
11953 | CFLAGS="$IRC_CFLAGS" | |
11954 | ||
11955 | ||
631ef239 AC |
11956 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5 |
11957 | echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; } | |
212380e3 AC |
11958 | if test "${GCC-no}" = yes |
11959 | then | |
11960 | if test "${charybdis_cv_c_gcc_w_all+set}" = set; then | |
11961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11962 | else | |
11963 | ||
11964 | oldcflags="${CFLAGS-}" | |
11965 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
11966 | cat >conftest.$ac_ext <<_ACEOF | |
11967 | /* confdefs.h. */ | |
11968 | _ACEOF | |
11969 | cat confdefs.h >>conftest.$ac_ext | |
11970 | cat >>conftest.$ac_ext <<_ACEOF | |
11971 | /* end confdefs.h. */ | |
11972 | ||
11973 | #include <string.h> | |
11974 | #include <stdio.h> | |
11975 | int main(void); | |
11976 | ||
11977 | int | |
11978 | main () | |
11979 | { | |
11980 | ||
b1fc1658 | 11981 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
11982 | |
11983 | ; | |
11984 | return 0; | |
11985 | } | |
11986 | _ACEOF | |
11987 | rm -f conftest.$ac_objext | |
631ef239 AC |
11988 | if { (ac_try="$ac_compile" |
11989 | case "(($ac_try" in | |
11990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11991 | *) ac_try_echo=$ac_try;; | |
11992 | esac | |
11993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11994 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11995 | ac_status=$? |
11996 | grep -v '^ *+' conftest.er1 >conftest.err | |
11997 | rm -f conftest.er1 | |
11998 | cat conftest.err >&5 | |
11999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12000 | (exit $ac_status); } && { |
12001 | test -z "$ac_c_werror_flag" || | |
12002 | test ! -s conftest.err | |
12003 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12004 | charybdis_cv_c_gcc_w_all=yes |
12005 | else | |
12006 | echo "$as_me: failed program was:" >&5 | |
12007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12008 | ||
631ef239 | 12009 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 12010 | fi |
631ef239 AC |
12011 | |
12012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12013 | CFLAGS="${oldcflags}" |
12014 | fi | |
12015 | ||
12016 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
12017 | CWARNS="${CWARNS}-Wall " | |
631ef239 AC |
12018 | { echo "$as_me:$LINENO: result: ok" >&5 |
12019 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12020 | else |
12021 | charybdis_cv_c_gcc_w_all='' | |
631ef239 AC |
12022 | { echo "$as_me:$LINENO: result: no" >&5 |
12023 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12024 | fi |
12025 | else | |
631ef239 AC |
12026 | { echo "$as_me:$LINENO: result: no" >&5 |
12027 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12028 | fi |
12029 | ||
12030 | ||
631ef239 AC |
12031 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5 |
12032 | echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; } | |
212380e3 AC |
12033 | if test "${GCC-no}" = yes |
12034 | then | |
12035 | if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then | |
12036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12037 | else | |
12038 | ||
12039 | oldcflags="${CFLAGS-}" | |
12040 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
12041 | cat >conftest.$ac_ext <<_ACEOF | |
12042 | /* confdefs.h. */ | |
12043 | _ACEOF | |
12044 | cat confdefs.h >>conftest.$ac_ext | |
12045 | cat >>conftest.$ac_ext <<_ACEOF | |
12046 | /* end confdefs.h. */ | |
12047 | ||
12048 | #include <string.h> | |
12049 | #include <stdio.h> | |
12050 | int main(void); | |
12051 | ||
12052 | int | |
12053 | main () | |
12054 | { | |
12055 | ||
b1fc1658 | 12056 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12057 | |
12058 | ; | |
12059 | return 0; | |
12060 | } | |
12061 | _ACEOF | |
12062 | rm -f conftest.$ac_objext | |
631ef239 AC |
12063 | if { (ac_try="$ac_compile" |
12064 | case "(($ac_try" in | |
12065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12066 | *) ac_try_echo=$ac_try;; | |
12067 | esac | |
12068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12069 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12070 | ac_status=$? |
12071 | grep -v '^ *+' conftest.er1 >conftest.err | |
12072 | rm -f conftest.er1 | |
12073 | cat conftest.err >&5 | |
12074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12075 | (exit $ac_status); } && { |
12076 | test -z "$ac_c_werror_flag" || | |
12077 | test ! -s conftest.err | |
12078 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12079 | charybdis_cv_c_gcc_w_pointer_arith=yes |
12080 | else | |
12081 | echo "$as_me: failed program was:" >&5 | |
12082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12083 | ||
631ef239 | 12084 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 12085 | fi |
631ef239 AC |
12086 | |
12087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12088 | CFLAGS="${oldcflags}" |
12089 | fi | |
12090 | ||
12091 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
12092 | CWARNS="${CWARNS}-Wpointer-arith " | |
631ef239 AC |
12093 | { echo "$as_me:$LINENO: result: ok" >&5 |
12094 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12095 | else |
12096 | charybdis_cv_c_gcc_w_pointer_arith='' | |
631ef239 AC |
12097 | { echo "$as_me:$LINENO: result: no" >&5 |
12098 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12099 | fi |
12100 | else | |
631ef239 AC |
12101 | { echo "$as_me:$LINENO: result: no" >&5 |
12102 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12103 | fi |
12104 | ||
12105 | ||
631ef239 AC |
12106 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
12107 | echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; } | |
212380e3 AC |
12108 | if test "${GCC-no}" = yes |
12109 | then | |
12110 | if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then | |
12111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12112 | else | |
12113 | ||
12114 | oldcflags="${CFLAGS-}" | |
12115 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
12116 | cat >conftest.$ac_ext <<_ACEOF | |
12117 | /* confdefs.h. */ | |
12118 | _ACEOF | |
12119 | cat confdefs.h >>conftest.$ac_ext | |
12120 | cat >>conftest.$ac_ext <<_ACEOF | |
12121 | /* end confdefs.h. */ | |
12122 | ||
12123 | #include <string.h> | |
12124 | #include <stdio.h> | |
12125 | int main(void); | |
12126 | ||
12127 | int | |
12128 | main () | |
12129 | { | |
12130 | ||
b1fc1658 | 12131 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12132 | |
12133 | ; | |
12134 | return 0; | |
12135 | } | |
12136 | _ACEOF | |
12137 | rm -f conftest.$ac_objext | |
631ef239 AC |
12138 | if { (ac_try="$ac_compile" |
12139 | case "(($ac_try" in | |
12140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12141 | *) ac_try_echo=$ac_try;; | |
12142 | esac | |
12143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12144 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12145 | ac_status=$? |
12146 | grep -v '^ *+' conftest.er1 >conftest.err | |
12147 | rm -f conftest.er1 | |
12148 | cat conftest.err >&5 | |
12149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12150 | (exit $ac_status); } && { |
12151 | test -z "$ac_c_werror_flag" || | |
12152 | test ! -s conftest.err | |
12153 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12154 | charybdis_cv_c_gcc_w_implicit=yes |
12155 | else | |
12156 | echo "$as_me: failed program was:" >&5 | |
12157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12158 | ||
631ef239 | 12159 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 12160 | fi |
631ef239 AC |
12161 | |
12162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12163 | CFLAGS="${oldcflags}" |
12164 | fi | |
12165 | ||
12166 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
12167 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
631ef239 AC |
12168 | { echo "$as_me:$LINENO: result: ok" >&5 |
12169 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12170 | else |
12171 | charybdis_cv_c_gcc_w_implicit='' | |
631ef239 AC |
12172 | { echo "$as_me:$LINENO: result: no" >&5 |
12173 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12174 | fi |
12175 | else | |
631ef239 AC |
12176 | { echo "$as_me:$LINENO: result: no" >&5 |
12177 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12178 | fi |
12179 | ||
12180 | ||
631ef239 AC |
12181 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5 |
12182 | echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; } | |
212380e3 AC |
12183 | if test "${GCC-no}" = yes |
12184 | then | |
12185 | if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then | |
12186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12187 | else | |
12188 | ||
12189 | oldcflags="${CFLAGS-}" | |
12190 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
12191 | cat >conftest.$ac_ext <<_ACEOF | |
12192 | /* confdefs.h. */ | |
12193 | _ACEOF | |
12194 | cat confdefs.h >>conftest.$ac_ext | |
12195 | cat >>conftest.$ac_ext <<_ACEOF | |
12196 | /* end confdefs.h. */ | |
12197 | ||
12198 | #include <string.h> | |
12199 | #include <stdio.h> | |
12200 | int main(void); | |
12201 | ||
12202 | int | |
12203 | main () | |
12204 | { | |
12205 | ||
b1fc1658 | 12206 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12207 | |
12208 | ; | |
12209 | return 0; | |
12210 | } | |
12211 | _ACEOF | |
12212 | rm -f conftest.$ac_objext | |
631ef239 AC |
12213 | if { (ac_try="$ac_compile" |
12214 | case "(($ac_try" in | |
12215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12216 | *) ac_try_echo=$ac_try;; | |
12217 | esac | |
12218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12219 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12220 | ac_status=$? |
12221 | grep -v '^ *+' conftest.er1 >conftest.err | |
12222 | rm -f conftest.er1 | |
12223 | cat conftest.err >&5 | |
12224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12225 | (exit $ac_status); } && { |
12226 | test -z "$ac_c_werror_flag" || | |
12227 | test ! -s conftest.err | |
12228 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12229 | charybdis_cv_c_gcc_w_cast_align=yes |
12230 | else | |
12231 | echo "$as_me: failed program was:" >&5 | |
12232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12233 | ||
631ef239 | 12234 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 12235 | fi |
631ef239 AC |
12236 | |
12237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12238 | CFLAGS="${oldcflags}" |
12239 | fi | |
12240 | ||
12241 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
12242 | CWARNS="${CWARNS}-Wcast-align " | |
631ef239 AC |
12243 | { echo "$as_me:$LINENO: result: ok" >&5 |
12244 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12245 | else |
12246 | charybdis_cv_c_gcc_w_cast_align='' | |
631ef239 AC |
12247 | { echo "$as_me:$LINENO: result: no" >&5 |
12248 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12249 | fi |
12250 | else | |
631ef239 AC |
12251 | { echo "$as_me:$LINENO: result: no" >&5 |
12252 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12253 | fi |
12254 | ||
12255 | ||
631ef239 AC |
12256 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5 |
12257 | echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; } | |
212380e3 AC |
12258 | if test "${GCC-no}" = yes |
12259 | then | |
12260 | if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then | |
12261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12262 | else | |
12263 | ||
12264 | oldcflags="${CFLAGS-}" | |
12265 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
12266 | cat >conftest.$ac_ext <<_ACEOF | |
12267 | /* confdefs.h. */ | |
12268 | _ACEOF | |
12269 | cat confdefs.h >>conftest.$ac_ext | |
12270 | cat >>conftest.$ac_ext <<_ACEOF | |
12271 | /* end confdefs.h. */ | |
12272 | ||
12273 | #include <string.h> | |
12274 | #include <stdio.h> | |
12275 | int main(void); | |
12276 | ||
12277 | int | |
12278 | main () | |
12279 | { | |
12280 | ||
b1fc1658 | 12281 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12282 | |
12283 | ; | |
12284 | return 0; | |
12285 | } | |
12286 | _ACEOF | |
12287 | rm -f conftest.$ac_objext | |
631ef239 AC |
12288 | if { (ac_try="$ac_compile" |
12289 | case "(($ac_try" in | |
12290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12291 | *) ac_try_echo=$ac_try;; | |
12292 | esac | |
12293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12294 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12295 | ac_status=$? |
12296 | grep -v '^ *+' conftest.er1 >conftest.err | |
12297 | rm -f conftest.er1 | |
12298 | cat conftest.err >&5 | |
12299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12300 | (exit $ac_status); } && { |
12301 | test -z "$ac_c_werror_flag" || | |
12302 | test ! -s conftest.err | |
12303 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12304 | charybdis_cv_c_gcc_w_cast_qual=yes |
12305 | else | |
12306 | echo "$as_me: failed program was:" >&5 | |
12307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12308 | ||
631ef239 | 12309 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 12310 | fi |
631ef239 AC |
12311 | |
12312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12313 | CFLAGS="${oldcflags}" |
12314 | fi | |
12315 | ||
12316 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
12317 | CWARNS="${CWARNS}-Wcast-qual " | |
631ef239 AC |
12318 | { echo "$as_me:$LINENO: result: ok" >&5 |
12319 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12320 | else |
12321 | charybdis_cv_c_gcc_w_cast_qual='' | |
631ef239 AC |
12322 | { echo "$as_me:$LINENO: result: no" >&5 |
12323 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12324 | fi |
12325 | else | |
631ef239 AC |
12326 | { echo "$as_me:$LINENO: result: no" >&5 |
12327 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12328 | fi |
12329 | ||
12330 | ||
631ef239 AC |
12331 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
12332 | echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; } | |
212380e3 AC |
12333 | if test "${GCC-no}" = yes |
12334 | then | |
12335 | if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then | |
12336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12337 | else | |
12338 | ||
12339 | oldcflags="${CFLAGS-}" | |
12340 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
12341 | cat >conftest.$ac_ext <<_ACEOF | |
12342 | /* confdefs.h. */ | |
12343 | _ACEOF | |
12344 | cat confdefs.h >>conftest.$ac_ext | |
12345 | cat >>conftest.$ac_ext <<_ACEOF | |
12346 | /* end confdefs.h. */ | |
12347 | ||
12348 | #include <string.h> | |
12349 | #include <stdio.h> | |
12350 | int main(void); | |
12351 | ||
12352 | int | |
12353 | main () | |
12354 | { | |
12355 | ||
b1fc1658 | 12356 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12357 | |
12358 | ; | |
12359 | return 0; | |
12360 | } | |
12361 | _ACEOF | |
12362 | rm -f conftest.$ac_objext | |
631ef239 AC |
12363 | if { (ac_try="$ac_compile" |
12364 | case "(($ac_try" in | |
12365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12366 | *) ac_try_echo=$ac_try;; | |
12367 | esac | |
12368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12369 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12370 | ac_status=$? |
12371 | grep -v '^ *+' conftest.er1 >conftest.err | |
12372 | rm -f conftest.er1 | |
12373 | cat conftest.err >&5 | |
12374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12375 | (exit $ac_status); } && { |
12376 | test -z "$ac_c_werror_flag" || | |
12377 | test ! -s conftest.err | |
12378 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12379 | charybdis_cv_c_gcc_prototypes=yes |
12380 | else | |
12381 | echo "$as_me: failed program was:" >&5 | |
12382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12383 | ||
631ef239 | 12384 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 12385 | fi |
631ef239 AC |
12386 | |
12387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12388 | CFLAGS="${oldcflags}" |
12389 | fi | |
12390 | ||
12391 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
12392 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
631ef239 AC |
12393 | { echo "$as_me:$LINENO: result: ok" >&5 |
12394 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12395 | else |
12396 | charybdis_cv_c_gcc_prototypes='' | |
631ef239 AC |
12397 | { echo "$as_me:$LINENO: result: no" >&5 |
12398 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12399 | fi |
12400 | else | |
631ef239 AC |
12401 | { echo "$as_me:$LINENO: result: no" >&5 |
12402 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12403 | fi |
12404 | ||
12405 | ||
631ef239 AC |
12406 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5 |
12407 | echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; } | |
212380e3 AC |
12408 | if test "${GCC-no}" = yes |
12409 | then | |
12410 | if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then | |
12411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12412 | else | |
12413 | ||
12414 | oldcflags="${CFLAGS-}" | |
12415 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
12416 | cat >conftest.$ac_ext <<_ACEOF | |
12417 | /* confdefs.h. */ | |
12418 | _ACEOF | |
12419 | cat confdefs.h >>conftest.$ac_ext | |
12420 | cat >>conftest.$ac_ext <<_ACEOF | |
12421 | /* end confdefs.h. */ | |
12422 | ||
12423 | #include <string.h> | |
12424 | #include <stdio.h> | |
12425 | int main(void); | |
12426 | ||
12427 | int | |
12428 | main () | |
12429 | { | |
12430 | ||
b1fc1658 | 12431 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12432 | |
12433 | ; | |
12434 | return 0; | |
12435 | } | |
12436 | _ACEOF | |
12437 | rm -f conftest.$ac_objext | |
631ef239 AC |
12438 | if { (ac_try="$ac_compile" |
12439 | case "(($ac_try" in | |
12440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12441 | *) ac_try_echo=$ac_try;; | |
12442 | esac | |
12443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12444 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12445 | ac_status=$? |
12446 | grep -v '^ *+' conftest.er1 >conftest.err | |
12447 | rm -f conftest.er1 | |
12448 | cat conftest.err >&5 | |
12449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12450 | (exit $ac_status); } && { |
12451 | test -z "$ac_c_werror_flag" || | |
12452 | test ! -s conftest.err | |
12453 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12454 | charybdis_cv_c_gcc_parenthesis=yes |
12455 | else | |
12456 | echo "$as_me: failed program was:" >&5 | |
12457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12458 | ||
631ef239 | 12459 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 12460 | fi |
631ef239 AC |
12461 | |
12462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12463 | CFLAGS="${oldcflags}" |
12464 | fi | |
12465 | ||
12466 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
12467 | CWARNS="${CWARNS}-Wparenthesis " | |
631ef239 AC |
12468 | { echo "$as_me:$LINENO: result: ok" >&5 |
12469 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12470 | else |
12471 | charybdis_cv_c_gcc_parenthesis='' | |
631ef239 AC |
12472 | { echo "$as_me:$LINENO: result: no" >&5 |
12473 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12474 | fi |
12475 | else | |
631ef239 AC |
12476 | { echo "$as_me:$LINENO: result: no" >&5 |
12477 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12478 | fi |
12479 | ||
12480 | ||
631ef239 AC |
12481 | { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5 |
12482 | echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; } | |
212380e3 AC |
12483 | if test "${GCC-no}" = yes |
12484 | then | |
12485 | if test "${charybdis_cv_c_gcc_w+set}" = set; then | |
12486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12487 | else | |
12488 | ||
12489 | oldcflags="${CFLAGS-}" | |
12490 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
12491 | cat >conftest.$ac_ext <<_ACEOF | |
12492 | /* confdefs.h. */ | |
12493 | _ACEOF | |
12494 | cat confdefs.h >>conftest.$ac_ext | |
12495 | cat >>conftest.$ac_ext <<_ACEOF | |
12496 | /* end confdefs.h. */ | |
12497 | ||
12498 | #include <string.h> | |
12499 | #include <stdio.h> | |
12500 | int main(void); | |
12501 | ||
12502 | int | |
12503 | main () | |
12504 | { | |
12505 | ||
b1fc1658 | 12506 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12507 | |
12508 | ; | |
12509 | return 0; | |
12510 | } | |
12511 | _ACEOF | |
12512 | rm -f conftest.$ac_objext | |
631ef239 AC |
12513 | if { (ac_try="$ac_compile" |
12514 | case "(($ac_try" in | |
12515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12516 | *) ac_try_echo=$ac_try;; | |
12517 | esac | |
12518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12519 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12520 | ac_status=$? |
12521 | grep -v '^ *+' conftest.er1 >conftest.err | |
12522 | rm -f conftest.er1 | |
12523 | cat conftest.err >&5 | |
12524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12525 | (exit $ac_status); } && { |
12526 | test -z "$ac_c_werror_flag" || | |
12527 | test ! -s conftest.err | |
12528 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12529 | charybdis_cv_c_gcc_w=yes |
12530 | else | |
12531 | echo "$as_me: failed program was:" >&5 | |
12532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12533 | ||
631ef239 | 12534 | charybdis_cv_c_gcc_w=no |
212380e3 | 12535 | fi |
631ef239 AC |
12536 | |
12537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12538 | CFLAGS="${oldcflags}" |
12539 | fi | |
12540 | ||
12541 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
12542 | CWARNS="${CWARNS}-W -Wno-unused " | |
631ef239 AC |
12543 | { echo "$as_me:$LINENO: result: ok" >&5 |
12544 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12545 | else |
12546 | charybdis_cv_c_gcc_w='' | |
631ef239 AC |
12547 | { echo "$as_me:$LINENO: result: no" >&5 |
12548 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12549 | fi |
12550 | else | |
631ef239 AC |
12551 | { echo "$as_me:$LINENO: result: no" >&5 |
12552 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12553 | fi |
12554 | ||
12555 | ||
631ef239 AC |
12556 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5 |
12557 | echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; } | |
212380e3 AC |
12558 | if test "${GCC-no}" = yes |
12559 | then | |
12560 | if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then | |
12561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12562 | else | |
12563 | ||
12564 | oldcflags="${CFLAGS-}" | |
12565 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
12566 | cat >conftest.$ac_ext <<_ACEOF | |
12567 | /* confdefs.h. */ | |
12568 | _ACEOF | |
12569 | cat confdefs.h >>conftest.$ac_ext | |
12570 | cat >>conftest.$ac_ext <<_ACEOF | |
12571 | /* end confdefs.h. */ | |
12572 | ||
12573 | #include <string.h> | |
12574 | #include <stdio.h> | |
12575 | int main(void); | |
12576 | ||
12577 | int | |
12578 | main () | |
12579 | { | |
12580 | ||
b1fc1658 | 12581 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12582 | |
12583 | ; | |
12584 | return 0; | |
12585 | } | |
12586 | _ACEOF | |
12587 | rm -f conftest.$ac_objext | |
631ef239 AC |
12588 | if { (ac_try="$ac_compile" |
12589 | case "(($ac_try" in | |
12590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12591 | *) ac_try_echo=$ac_try;; | |
12592 | esac | |
12593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12594 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12595 | ac_status=$? |
12596 | grep -v '^ *+' conftest.er1 >conftest.err | |
12597 | rm -f conftest.er1 | |
12598 | cat conftest.err >&5 | |
12599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12600 | (exit $ac_status); } && { |
12601 | test -z "$ac_c_werror_flag" || | |
12602 | test ! -s conftest.err | |
12603 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12604 | charybdis_cv_c_gcc_w_extra=yes |
12605 | else | |
12606 | echo "$as_me: failed program was:" >&5 | |
12607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12608 | ||
631ef239 | 12609 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 12610 | fi |
631ef239 AC |
12611 | |
12612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12613 | CFLAGS="${oldcflags}" |
12614 | fi | |
12615 | ||
12616 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
12617 | CWARNS="${CWARNS}-Wextra " | |
631ef239 AC |
12618 | { echo "$as_me:$LINENO: result: ok" >&5 |
12619 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12620 | else |
12621 | charybdis_cv_c_gcc_w_extra='' | |
631ef239 AC |
12622 | { echo "$as_me:$LINENO: result: no" >&5 |
12623 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12624 | fi |
12625 | else | |
631ef239 AC |
12626 | { echo "$as_me:$LINENO: result: no" >&5 |
12627 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12628 | fi |
12629 | ||
12630 | ||
631ef239 AC |
12631 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5 |
12632 | echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; } | |
212380e3 AC |
12633 | if test "${GCC-no}" = yes |
12634 | then | |
12635 | if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then | |
12636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12637 | else | |
12638 | ||
12639 | oldcflags="${CFLAGS-}" | |
12640 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
12641 | cat >conftest.$ac_ext <<_ACEOF | |
12642 | /* confdefs.h. */ | |
12643 | _ACEOF | |
12644 | cat confdefs.h >>conftest.$ac_ext | |
12645 | cat >>conftest.$ac_ext <<_ACEOF | |
12646 | /* end confdefs.h. */ | |
12647 | ||
12648 | #include <string.h> | |
12649 | #include <stdio.h> | |
12650 | int main(void); | |
12651 | ||
12652 | int | |
12653 | main () | |
12654 | { | |
12655 | ||
b1fc1658 | 12656 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12657 | |
12658 | ; | |
12659 | return 0; | |
12660 | } | |
12661 | _ACEOF | |
12662 | rm -f conftest.$ac_objext | |
631ef239 AC |
12663 | if { (ac_try="$ac_compile" |
12664 | case "(($ac_try" in | |
12665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12666 | *) ac_try_echo=$ac_try;; | |
12667 | esac | |
12668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12669 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12670 | ac_status=$? |
12671 | grep -v '^ *+' conftest.er1 >conftest.err | |
12672 | rm -f conftest.er1 | |
12673 | cat conftest.err >&5 | |
12674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12675 | (exit $ac_status); } && { |
12676 | test -z "$ac_c_werror_flag" || | |
12677 | test ! -s conftest.err | |
12678 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12679 | charybdis_cv_c_gcc_w_shadow=yes |
12680 | else | |
12681 | echo "$as_me: failed program was:" >&5 | |
12682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12683 | ||
631ef239 | 12684 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 12685 | fi |
631ef239 AC |
12686 | |
12687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12688 | CFLAGS="${oldcflags}" |
12689 | fi | |
12690 | ||
12691 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
12692 | CWARNS="${CWARNS}-Wshadow " | |
631ef239 AC |
12693 | { echo "$as_me:$LINENO: result: ok" >&5 |
12694 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12695 | else |
12696 | charybdis_cv_c_gcc_w_shadow='' | |
631ef239 AC |
12697 | { echo "$as_me:$LINENO: result: no" >&5 |
12698 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12699 | fi |
12700 | else | |
631ef239 AC |
12701 | { echo "$as_me:$LINENO: result: no" >&5 |
12702 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12703 | fi |
12704 | ||
12705 | ||
631ef239 AC |
12706 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5 |
12707 | echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; } | |
212380e3 AC |
12708 | if test "${GCC-no}" = yes |
12709 | then | |
12710 | if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then | |
12711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12712 | else | |
12713 | ||
12714 | oldcflags="${CFLAGS-}" | |
12715 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
12716 | cat >conftest.$ac_ext <<_ACEOF | |
12717 | /* confdefs.h. */ | |
12718 | _ACEOF | |
12719 | cat confdefs.h >>conftest.$ac_ext | |
12720 | cat >>conftest.$ac_ext <<_ACEOF | |
12721 | /* end confdefs.h. */ | |
12722 | ||
12723 | #include <string.h> | |
12724 | #include <stdio.h> | |
12725 | int main(void); | |
12726 | ||
12727 | int | |
12728 | main () | |
12729 | { | |
12730 | ||
b1fc1658 | 12731 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12732 | |
12733 | ; | |
12734 | return 0; | |
12735 | } | |
12736 | _ACEOF | |
12737 | rm -f conftest.$ac_objext | |
631ef239 AC |
12738 | if { (ac_try="$ac_compile" |
12739 | case "(($ac_try" in | |
12740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12741 | *) ac_try_echo=$ac_try;; | |
12742 | esac | |
12743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12744 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12745 | ac_status=$? |
12746 | grep -v '^ *+' conftest.er1 >conftest.err | |
12747 | rm -f conftest.er1 | |
12748 | cat conftest.err >&5 | |
12749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12750 | (exit $ac_status); } && { |
12751 | test -z "$ac_c_werror_flag" || | |
12752 | test ! -s conftest.err | |
12753 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12754 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
12755 | else | |
12756 | echo "$as_me: failed program was:" >&5 | |
12757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12758 | ||
631ef239 | 12759 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 12760 | fi |
631ef239 AC |
12761 | |
12762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12763 | CFLAGS="${oldcflags}" |
12764 | fi | |
12765 | ||
12766 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
12767 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
631ef239 AC |
12768 | { echo "$as_me:$LINENO: result: ok" >&5 |
12769 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12770 | else |
12771 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
631ef239 AC |
12772 | { echo "$as_me:$LINENO: result: no" >&5 |
12773 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12774 | fi |
12775 | else | |
631ef239 AC |
12776 | { echo "$as_me:$LINENO: result: no" >&5 |
12777 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12778 | fi |
12779 | ||
12780 | ||
631ef239 AC |
12781 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5 |
12782 | echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; } | |
212380e3 AC |
12783 | if test "${GCC-no}" = yes |
12784 | then | |
12785 | if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then | |
12786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12787 | else | |
12788 | ||
12789 | oldcflags="${CFLAGS-}" | |
12790 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
12791 | cat >conftest.$ac_ext <<_ACEOF | |
12792 | /* confdefs.h. */ | |
12793 | _ACEOF | |
12794 | cat confdefs.h >>conftest.$ac_ext | |
12795 | cat >>conftest.$ac_ext <<_ACEOF | |
12796 | /* end confdefs.h. */ | |
12797 | ||
12798 | #include <string.h> | |
12799 | #include <stdio.h> | |
12800 | int main(void); | |
12801 | ||
12802 | int | |
12803 | main () | |
12804 | { | |
12805 | ||
b1fc1658 | 12806 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12807 | |
12808 | ; | |
12809 | return 0; | |
12810 | } | |
12811 | _ACEOF | |
12812 | rm -f conftest.$ac_objext | |
631ef239 AC |
12813 | if { (ac_try="$ac_compile" |
12814 | case "(($ac_try" in | |
12815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12816 | *) ac_try_echo=$ac_try;; | |
12817 | esac | |
12818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12819 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12820 | ac_status=$? |
12821 | grep -v '^ *+' conftest.er1 >conftest.err | |
12822 | rm -f conftest.er1 | |
12823 | cat conftest.err >&5 | |
12824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12825 | (exit $ac_status); } && { |
12826 | test -z "$ac_c_werror_flag" || | |
12827 | test ! -s conftest.err | |
12828 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12829 | charybdis_cv_c_gcc_w_undef=yes |
12830 | else | |
12831 | echo "$as_me: failed program was:" >&5 | |
12832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12833 | ||
631ef239 | 12834 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 12835 | fi |
631ef239 AC |
12836 | |
12837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12838 | CFLAGS="${oldcflags}" |
12839 | fi | |
12840 | ||
12841 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
12842 | CWARNS="${CWARNS}-Wundef " | |
631ef239 AC |
12843 | { echo "$as_me:$LINENO: result: ok" >&5 |
12844 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12845 | else |
12846 | charybdis_cv_c_gcc_w_undef='' | |
631ef239 AC |
12847 | { echo "$as_me:$LINENO: result: no" >&5 |
12848 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12849 | fi |
12850 | else | |
631ef239 AC |
12851 | { echo "$as_me:$LINENO: result: no" >&5 |
12852 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12853 | fi |
12854 | ||
12855 | ||
631ef239 AC |
12856 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5 |
12857 | echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; } | |
212380e3 AC |
12858 | if test "${GCC-no}" = yes |
12859 | then | |
12860 | if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then | |
12861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12862 | else | |
12863 | ||
12864 | oldcflags="${CFLAGS-}" | |
12865 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
12866 | cat >conftest.$ac_ext <<_ACEOF | |
12867 | /* confdefs.h. */ | |
12868 | _ACEOF | |
12869 | cat confdefs.h >>conftest.$ac_ext | |
12870 | cat >>conftest.$ac_ext <<_ACEOF | |
12871 | /* end confdefs.h. */ | |
12872 | ||
12873 | #include <string.h> | |
12874 | #include <stdio.h> | |
12875 | int main(void); | |
12876 | ||
12877 | int | |
12878 | main () | |
12879 | { | |
12880 | ||
b1fc1658 | 12881 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12882 | |
12883 | ; | |
12884 | return 0; | |
12885 | } | |
12886 | _ACEOF | |
12887 | rm -f conftest.$ac_objext | |
631ef239 AC |
12888 | if { (ac_try="$ac_compile" |
12889 | case "(($ac_try" in | |
12890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12891 | *) ac_try_echo=$ac_try;; | |
12892 | esac | |
12893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12894 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12895 | ac_status=$? |
12896 | grep -v '^ *+' conftest.er1 >conftest.err | |
12897 | rm -f conftest.er1 | |
12898 | cat conftest.err >&5 | |
12899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12900 | (exit $ac_status); } && { |
12901 | test -z "$ac_c_werror_flag" || | |
12902 | test ! -s conftest.err | |
12903 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12904 | charybdis_cv_c_gcc_w_packed=yes |
12905 | else | |
12906 | echo "$as_me: failed program was:" >&5 | |
12907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12908 | ||
631ef239 | 12909 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 12910 | fi |
631ef239 AC |
12911 | |
12912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12913 | CFLAGS="${oldcflags}" |
12914 | fi | |
12915 | ||
12916 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
12917 | CWARNS="${CWARNS}-Wpacked " | |
631ef239 AC |
12918 | { echo "$as_me:$LINENO: result: ok" >&5 |
12919 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12920 | else |
12921 | charybdis_cv_c_gcc_w_packed='' | |
631ef239 AC |
12922 | { echo "$as_me:$LINENO: result: no" >&5 |
12923 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12924 | fi |
12925 | else | |
631ef239 AC |
12926 | { echo "$as_me:$LINENO: result: no" >&5 |
12927 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12928 | fi |
12929 | ||
12930 | ||
631ef239 AC |
12931 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5 |
12932 | echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; } | |
212380e3 AC |
12933 | if test "${GCC-no}" = yes |
12934 | then | |
12935 | if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then | |
12936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12937 | else | |
12938 | ||
12939 | oldcflags="${CFLAGS-}" | |
12940 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
12941 | cat >conftest.$ac_ext <<_ACEOF | |
12942 | /* confdefs.h. */ | |
12943 | _ACEOF | |
12944 | cat confdefs.h >>conftest.$ac_ext | |
12945 | cat >>conftest.$ac_ext <<_ACEOF | |
12946 | /* end confdefs.h. */ | |
12947 | ||
12948 | #include <string.h> | |
12949 | #include <stdio.h> | |
12950 | int main(void); | |
12951 | ||
12952 | int | |
12953 | main () | |
12954 | { | |
12955 | ||
b1fc1658 | 12956 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12957 | |
12958 | ; | |
12959 | return 0; | |
12960 | } | |
12961 | _ACEOF | |
12962 | rm -f conftest.$ac_objext | |
631ef239 AC |
12963 | if { (ac_try="$ac_compile" |
12964 | case "(($ac_try" in | |
12965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12966 | *) ac_try_echo=$ac_try;; | |
12967 | esac | |
12968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12969 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12970 | ac_status=$? |
12971 | grep -v '^ *+' conftest.er1 >conftest.err | |
12972 | rm -f conftest.er1 | |
12973 | cat conftest.err >&5 | |
12974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12975 | (exit $ac_status); } && { |
12976 | test -z "$ac_c_werror_flag" || | |
12977 | test ! -s conftest.err | |
12978 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12979 | charybdis_cv_c_gcc_w_nested_externs=yes |
12980 | else | |
12981 | echo "$as_me: failed program was:" >&5 | |
12982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12983 | ||
631ef239 | 12984 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 12985 | fi |
631ef239 AC |
12986 | |
12987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12988 | CFLAGS="${oldcflags}" |
12989 | fi | |
12990 | ||
12991 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
12992 | CWARNS="${CWARNS}-Wnested-externs " | |
631ef239 AC |
12993 | { echo "$as_me:$LINENO: result: ok" >&5 |
12994 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12995 | else |
12996 | charybdis_cv_c_gcc_w_nested_externs='' | |
631ef239 AC |
12997 | { echo "$as_me:$LINENO: result: no" >&5 |
12998 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12999 | fi |
13000 | else | |
631ef239 AC |
13001 | { echo "$as_me:$LINENO: result: no" >&5 |
13002 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13003 | fi |
13004 | ||
13005 | ||
631ef239 AC |
13006 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5 |
13007 | echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6; } | |
212380e3 AC |
13008 | if test "${GCC-no}" = yes |
13009 | then | |
13010 | if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then | |
13011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13012 | else | |
13013 | ||
13014 | oldcflags="${CFLAGS-}" | |
13015 | CFLAGS="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror" | |
13016 | cat >conftest.$ac_ext <<_ACEOF | |
13017 | /* confdefs.h. */ | |
13018 | _ACEOF | |
13019 | cat confdefs.h >>conftest.$ac_ext | |
13020 | cat >>conftest.$ac_ext <<_ACEOF | |
13021 | /* end confdefs.h. */ | |
13022 | ||
13023 | #include <string.h> | |
13024 | #include <stdio.h> | |
13025 | int main(void); | |
13026 | ||
13027 | int | |
13028 | main () | |
13029 | { | |
13030 | ||
b1fc1658 | 13031 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13032 | |
13033 | ; | |
13034 | return 0; | |
13035 | } | |
13036 | _ACEOF | |
13037 | rm -f conftest.$ac_objext | |
631ef239 AC |
13038 | if { (ac_try="$ac_compile" |
13039 | case "(($ac_try" in | |
13040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13041 | *) ac_try_echo=$ac_try;; | |
13042 | esac | |
13043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13044 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13045 | ac_status=$? |
13046 | grep -v '^ *+' conftest.er1 >conftest.err | |
13047 | rm -f conftest.er1 | |
13048 | cat conftest.err >&5 | |
13049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13050 | (exit $ac_status); } && { |
13051 | test -z "$ac_c_werror_flag" || | |
13052 | test ! -s conftest.err | |
13053 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13054 | charybdis_cv_c_gcc_w_bad_function_cast=yes |
13055 | else | |
13056 | echo "$as_me: failed program was:" >&5 | |
13057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13058 | ||
631ef239 | 13059 | charybdis_cv_c_gcc_w_bad_function_cast=no |
212380e3 | 13060 | fi |
631ef239 AC |
13061 | |
13062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13063 | CFLAGS="${oldcflags}" |
13064 | fi | |
13065 | ||
13066 | if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes; then | |
13067 | CWARNS="${CWARNS}-Wbad-function-cast " | |
631ef239 AC |
13068 | { echo "$as_me:$LINENO: result: ok" >&5 |
13069 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13070 | else |
13071 | charybdis_cv_c_gcc_w_bad_function_cast='' | |
631ef239 AC |
13072 | { echo "$as_me:$LINENO: result: no" >&5 |
13073 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13074 | fi |
13075 | else | |
631ef239 AC |
13076 | { echo "$as_me:$LINENO: result: no" >&5 |
13077 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13078 | fi |
13079 | ||
13080 | ||
631ef239 AC |
13081 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
13082 | echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; } | |
212380e3 AC |
13083 | if test "${GCC-no}" = yes |
13084 | then | |
13085 | if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then | |
13086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13087 | else | |
13088 | ||
13089 | oldcflags="${CFLAGS-}" | |
13090 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
13091 | cat >conftest.$ac_ext <<_ACEOF | |
13092 | /* confdefs.h. */ | |
13093 | _ACEOF | |
13094 | cat confdefs.h >>conftest.$ac_ext | |
13095 | cat >>conftest.$ac_ext <<_ACEOF | |
13096 | /* end confdefs.h. */ | |
13097 | ||
13098 | #include <string.h> | |
13099 | #include <stdio.h> | |
13100 | int main(void); | |
13101 | ||
13102 | int | |
13103 | main () | |
13104 | { | |
13105 | ||
b1fc1658 | 13106 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13107 | |
13108 | ; | |
13109 | return 0; | |
13110 | } | |
13111 | _ACEOF | |
13112 | rm -f conftest.$ac_objext | |
631ef239 AC |
13113 | if { (ac_try="$ac_compile" |
13114 | case "(($ac_try" in | |
13115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13116 | *) ac_try_echo=$ac_try;; | |
13117 | esac | |
13118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13119 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13120 | ac_status=$? |
13121 | grep -v '^ *+' conftest.er1 >conftest.err | |
13122 | rm -f conftest.er1 | |
13123 | cat conftest.err >&5 | |
13124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13125 | (exit $ac_status); } && { |
13126 | test -z "$ac_c_werror_flag" || | |
13127 | test ! -s conftest.err | |
13128 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13129 | charybdis_cv_c_gcc_w_unused=yes |
13130 | else | |
13131 | echo "$as_me: failed program was:" >&5 | |
13132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13133 | ||
631ef239 | 13134 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 13135 | fi |
631ef239 AC |
13136 | |
13137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13138 | CFLAGS="${oldcflags}" |
13139 | fi | |
13140 | ||
13141 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
13142 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
631ef239 AC |
13143 | { echo "$as_me:$LINENO: result: ok" >&5 |
13144 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13145 | else |
13146 | charybdis_cv_c_gcc_w_unused='' | |
631ef239 AC |
13147 | { echo "$as_me:$LINENO: result: no" >&5 |
13148 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13149 | fi |
13150 | else | |
631ef239 AC |
13151 | { echo "$as_me:$LINENO: result: no" >&5 |
13152 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13153 | fi |
13154 | ||
13155 | ||
631ef239 AC |
13156 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5 |
13157 | echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; } | |
212380e3 AC |
13158 | if test "${GCC-no}" = yes |
13159 | then | |
13160 | if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then | |
13161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13162 | else | |
13163 | ||
13164 | oldcflags="${CFLAGS-}" | |
13165 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
13166 | cat >conftest.$ac_ext <<_ACEOF | |
13167 | /* confdefs.h. */ | |
13168 | _ACEOF | |
13169 | cat confdefs.h >>conftest.$ac_ext | |
13170 | cat >>conftest.$ac_ext <<_ACEOF | |
13171 | /* end confdefs.h. */ | |
13172 | ||
13173 | #include <string.h> | |
13174 | #include <stdio.h> | |
13175 | int main(void); | |
13176 | ||
13177 | int | |
13178 | main () | |
13179 | { | |
13180 | ||
b1fc1658 | 13181 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13182 | |
13183 | ; | |
13184 | return 0; | |
13185 | } | |
13186 | _ACEOF | |
13187 | rm -f conftest.$ac_objext | |
631ef239 AC |
13188 | if { (ac_try="$ac_compile" |
13189 | case "(($ac_try" in | |
13190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13191 | *) ac_try_echo=$ac_try;; | |
13192 | esac | |
13193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13194 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13195 | ac_status=$? |
13196 | grep -v '^ *+' conftest.er1 >conftest.err | |
13197 | rm -f conftest.er1 | |
13198 | cat conftest.err >&5 | |
13199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13200 | (exit $ac_status); } && { |
13201 | test -z "$ac_c_werror_flag" || | |
13202 | test ! -s conftest.err | |
13203 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13204 | charybdis_cv_c_gcc_w_redundant_decls=yes |
13205 | else | |
13206 | echo "$as_me: failed program was:" >&5 | |
13207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13208 | ||
631ef239 | 13209 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 13210 | fi |
631ef239 AC |
13211 | |
13212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13213 | CFLAGS="${oldcflags}" |
13214 | fi | |
13215 | ||
13216 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
13217 | CWARNS="${CWARNS}-Wredundant-decls " | |
631ef239 AC |
13218 | { echo "$as_me:$LINENO: result: ok" >&5 |
13219 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13220 | else |
13221 | charybdis_cv_c_gcc_w_redundant_decls='' | |
631ef239 AC |
13222 | { echo "$as_me:$LINENO: result: no" >&5 |
13223 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13224 | fi |
13225 | else | |
631ef239 AC |
13226 | { echo "$as_me:$LINENO: result: no" >&5 |
13227 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13228 | fi |
13229 | ||
13230 | ||
631ef239 AC |
13231 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5 |
13232 | echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; } | |
212380e3 AC |
13233 | if test "${GCC-no}" = yes |
13234 | then | |
13235 | if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then | |
13236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13237 | else | |
13238 | ||
13239 | oldcflags="${CFLAGS-}" | |
13240 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
13241 | cat >conftest.$ac_ext <<_ACEOF | |
13242 | /* confdefs.h. */ | |
13243 | _ACEOF | |
13244 | cat confdefs.h >>conftest.$ac_ext | |
13245 | cat >>conftest.$ac_ext <<_ACEOF | |
13246 | /* end confdefs.h. */ | |
13247 | ||
13248 | #include <string.h> | |
13249 | #include <stdio.h> | |
13250 | int main(void); | |
13251 | ||
13252 | int | |
13253 | main () | |
13254 | { | |
13255 | ||
b1fc1658 | 13256 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13257 | |
13258 | ; | |
13259 | return 0; | |
13260 | } | |
13261 | _ACEOF | |
13262 | rm -f conftest.$ac_objext | |
631ef239 AC |
13263 | if { (ac_try="$ac_compile" |
13264 | case "(($ac_try" in | |
13265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13266 | *) ac_try_echo=$ac_try;; | |
13267 | esac | |
13268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13269 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13270 | ac_status=$? |
13271 | grep -v '^ *+' conftest.er1 >conftest.err | |
13272 | rm -f conftest.er1 | |
13273 | cat conftest.err >&5 | |
13274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13275 | (exit $ac_status); } && { |
13276 | test -z "$ac_c_werror_flag" || | |
13277 | test ! -s conftest.err | |
13278 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13279 | charybdis_cv_c_gcc_w_float_equal=yes |
13280 | else | |
13281 | echo "$as_me: failed program was:" >&5 | |
13282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13283 | ||
631ef239 | 13284 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 13285 | fi |
631ef239 AC |
13286 | |
13287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13288 | CFLAGS="${oldcflags}" |
13289 | fi | |
13290 | ||
13291 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
13292 | CWARNS="${CWARNS}-Wfloat-equal " | |
631ef239 AC |
13293 | { echo "$as_me:$LINENO: result: ok" >&5 |
13294 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13295 | else |
13296 | charybdis_cv_c_gcc_w_float_equal='' | |
631ef239 AC |
13297 | { echo "$as_me:$LINENO: result: no" >&5 |
13298 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13299 | fi |
13300 | else | |
631ef239 AC |
13301 | { echo "$as_me:$LINENO: result: no" >&5 |
13302 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13303 | fi |
13304 | ||
13305 | ||
631ef239 AC |
13306 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat=2" >&5 |
13307 | echo $ECHO_N "checking GCC flag(s) -Wformat=2... $ECHO_C" >&6; } | |
212380e3 AC |
13308 | if test "${GCC-no}" = yes |
13309 | then | |
13310 | if test "${charybdis_cv_c_gcc_w_format+set}" = set; then | |
13311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13312 | else | |
13313 | ||
13314 | oldcflags="${CFLAGS-}" | |
13315 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat=2 -Werror" | |
13316 | cat >conftest.$ac_ext <<_ACEOF | |
13317 | /* confdefs.h. */ | |
13318 | _ACEOF | |
13319 | cat confdefs.h >>conftest.$ac_ext | |
13320 | cat >>conftest.$ac_ext <<_ACEOF | |
13321 | /* end confdefs.h. */ | |
13322 | ||
13323 | #include <string.h> | |
13324 | #include <stdio.h> | |
13325 | int main(void); | |
13326 | ||
13327 | int | |
13328 | main () | |
13329 | { | |
13330 | ||
b1fc1658 | 13331 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13332 | |
13333 | ; | |
13334 | return 0; | |
13335 | } | |
13336 | _ACEOF | |
13337 | rm -f conftest.$ac_objext | |
631ef239 AC |
13338 | if { (ac_try="$ac_compile" |
13339 | case "(($ac_try" in | |
13340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13341 | *) ac_try_echo=$ac_try;; | |
13342 | esac | |
13343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13344 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13345 | ac_status=$? |
13346 | grep -v '^ *+' conftest.er1 >conftest.err | |
13347 | rm -f conftest.er1 | |
13348 | cat conftest.err >&5 | |
13349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13350 | (exit $ac_status); } && { |
13351 | test -z "$ac_c_werror_flag" || | |
13352 | test ! -s conftest.err | |
13353 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13354 | charybdis_cv_c_gcc_w_format=yes |
13355 | else | |
13356 | echo "$as_me: failed program was:" >&5 | |
13357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13358 | ||
631ef239 | 13359 | charybdis_cv_c_gcc_w_format=no |
212380e3 | 13360 | fi |
631ef239 AC |
13361 | |
13362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13363 | CFLAGS="${oldcflags}" |
13364 | fi | |
13365 | ||
13366 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
13367 | CWARNS="${CWARNS}-Wformat=2 " | |
631ef239 AC |
13368 | { echo "$as_me:$LINENO: result: ok" >&5 |
13369 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13370 | else |
13371 | charybdis_cv_c_gcc_w_format='' | |
631ef239 AC |
13372 | { echo "$as_me:$LINENO: result: no" >&5 |
13373 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13374 | fi |
13375 | else | |
631ef239 AC |
13376 | { echo "$as_me:$LINENO: result: no" >&5 |
13377 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13378 | fi |
13379 | ||
13380 | ||
631ef239 AC |
13381 | { echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5 |
13382 | echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6; } | |
212380e3 AC |
13383 | if test "${GCC-no}" = yes |
13384 | then | |
13385 | if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then | |
13386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13387 | else | |
13388 | ||
13389 | oldcflags="${CFLAGS-}" | |
13390 | CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror" | |
13391 | cat >conftest.$ac_ext <<_ACEOF | |
13392 | /* confdefs.h. */ | |
13393 | _ACEOF | |
13394 | cat confdefs.h >>conftest.$ac_ext | |
13395 | cat >>conftest.$ac_ext <<_ACEOF | |
13396 | /* end confdefs.h. */ | |
13397 | ||
13398 | #include <string.h> | |
13399 | #include <stdio.h> | |
13400 | int main(void); | |
13401 | ||
13402 | int | |
13403 | main () | |
13404 | { | |
13405 | ||
b1fc1658 | 13406 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13407 | |
13408 | ; | |
13409 | return 0; | |
13410 | } | |
13411 | _ACEOF | |
13412 | rm -f conftest.$ac_objext | |
631ef239 AC |
13413 | if { (ac_try="$ac_compile" |
13414 | case "(($ac_try" in | |
13415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13416 | *) ac_try_echo=$ac_try;; | |
13417 | esac | |
13418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13419 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13420 | ac_status=$? |
13421 | grep -v '^ *+' conftest.er1 >conftest.err | |
13422 | rm -f conftest.er1 | |
13423 | cat conftest.err >&5 | |
13424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13425 | (exit $ac_status); } && { |
13426 | test -z "$ac_c_werror_flag" || | |
13427 | test ! -s conftest.err | |
13428 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13429 | charybdis_cv_c_gcc_pedantic=yes |
13430 | else | |
13431 | echo "$as_me: failed program was:" >&5 | |
13432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13433 | ||
631ef239 | 13434 | charybdis_cv_c_gcc_pedantic=no |
212380e3 | 13435 | fi |
631ef239 AC |
13436 | |
13437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13438 | CFLAGS="${oldcflags}" |
13439 | fi | |
13440 | ||
13441 | if test "x$charybdis_cv_c_gcc_pedantic" = xyes; then | |
13442 | CWARNS="${CWARNS}-pedantic " | |
631ef239 AC |
13443 | { echo "$as_me:$LINENO: result: ok" >&5 |
13444 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13445 | else |
13446 | charybdis_cv_c_gcc_pedantic='' | |
631ef239 AC |
13447 | { echo "$as_me:$LINENO: result: no" >&5 |
13448 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13449 | fi |
13450 | else | |
631ef239 AC |
13451 | { echo "$as_me:$LINENO: result: no" >&5 |
13452 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13453 | fi |
13454 | ||
13455 | ||
13456 | IRC_CFLAGS="$CFLAGS" | |
13457 | ||
631ef239 AC |
13458 | fi |
13459 | ||
212380e3 AC |
13460 | |
13461 | if test "$shared_modules" = no; then | |
13462 | DYNLINK_C="" | |
13463 | MOD_TARGET="libmodules.a" | |
13464 | MODULES_LIBS="../modules/libmodules.a" | |
13465 | SEDOBJ="" | |
13466 | ||
13467 | cat >>confdefs.h <<\_ACEOF | |
13468 | #define STATIC_MODULES 1 | |
13469 | _ACEOF | |
13470 | ||
13471 | { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5 | |
13472 | echo "$as_me: WARNING: shared module support has been disabled!" >&2;} | |
13473 | fi | |
13474 | ||
13475 | if test "$shared_modules" = yes; then | |
13476 | ||
631ef239 AC |
13477 | { echo "$as_me:$LINENO: checking for nlist" >&5 |
13478 | echo $ECHO_N "checking for nlist... $ECHO_C" >&6; } | |
212380e3 AC |
13479 | if test "${ac_cv_func_nlist+set}" = set; then |
13480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13481 | else | |
13482 | cat >conftest.$ac_ext <<_ACEOF | |
13483 | /* confdefs.h. */ | |
13484 | _ACEOF | |
13485 | cat confdefs.h >>conftest.$ac_ext | |
13486 | cat >>conftest.$ac_ext <<_ACEOF | |
13487 | /* end confdefs.h. */ | |
13488 | /* Define nlist to an innocuous variant, in case <limits.h> declares nlist. | |
13489 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13490 | #define nlist innocuous_nlist | |
13491 | ||
13492 | /* System header to define __stub macros and hopefully few prototypes, | |
13493 | which can conflict with char nlist (); below. | |
13494 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13495 | <limits.h> exists even on freestanding compilers. */ | |
13496 | ||
13497 | #ifdef __STDC__ | |
13498 | # include <limits.h> | |
13499 | #else | |
13500 | # include <assert.h> | |
13501 | #endif | |
13502 | ||
13503 | #undef nlist | |
13504 | ||
631ef239 AC |
13505 | /* Override any GCC internal prototype to avoid an error. |
13506 | Use char because int might match the return type of a GCC | |
13507 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
13508 | #ifdef __cplusplus |
13509 | extern "C" | |
212380e3 | 13510 | #endif |
212380e3 AC |
13511 | char nlist (); |
13512 | /* The GNU C library defines this for functions which it implements | |
13513 | to always fail with ENOSYS. Some functions are actually named | |
13514 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 13515 | #if defined __stub_nlist || defined __stub___nlist |
212380e3 | 13516 | choke me |
212380e3 AC |
13517 | #endif |
13518 | ||
13519 | int | |
13520 | main () | |
13521 | { | |
631ef239 | 13522 | return nlist (); |
212380e3 AC |
13523 | ; |
13524 | return 0; | |
13525 | } | |
13526 | _ACEOF | |
13527 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
13528 | if { (ac_try="$ac_link" |
13529 | case "(($ac_try" in | |
13530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13531 | *) ac_try_echo=$ac_try;; | |
13532 | esac | |
13533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13534 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
13535 | ac_status=$? |
13536 | grep -v '^ *+' conftest.er1 >conftest.err | |
13537 | rm -f conftest.er1 | |
13538 | cat conftest.err >&5 | |
13539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13540 | (exit $ac_status); } && { |
13541 | test -z "$ac_c_werror_flag" || | |
13542 | test ! -s conftest.err | |
13543 | } && test -s conftest$ac_exeext && | |
13544 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
13545 | ac_cv_func_nlist=yes |
13546 | else | |
13547 | echo "$as_me: failed program was:" >&5 | |
13548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13549 | ||
631ef239 | 13550 | ac_cv_func_nlist=no |
212380e3 | 13551 | fi |
631ef239 AC |
13552 | |
13553 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
13554 | conftest$ac_exeext conftest.$ac_ext |
13555 | fi | |
631ef239 AC |
13556 | { echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5 |
13557 | echo "${ECHO_T}$ac_cv_func_nlist" >&6; } | |
212380e3 AC |
13558 | if test $ac_cv_func_nlist = yes; then |
13559 | : | |
13560 | else | |
631ef239 AC |
13561 | { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5 |
13562 | echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; } | |
212380e3 AC |
13563 | if test "${ac_cv_lib_dl_nlist+set}" = set; then |
13564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13565 | else | |
13566 | ac_check_lib_save_LIBS=$LIBS | |
13567 | LIBS="-ldl $LIBS" | |
13568 | cat >conftest.$ac_ext <<_ACEOF | |
13569 | /* confdefs.h. */ | |
13570 | _ACEOF | |
13571 | cat confdefs.h >>conftest.$ac_ext | |
13572 | cat >>conftest.$ac_ext <<_ACEOF | |
13573 | /* end confdefs.h. */ | |
13574 | ||
631ef239 AC |
13575 | /* Override any GCC internal prototype to avoid an error. |
13576 | Use char because int might match the return type of a GCC | |
13577 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
13578 | #ifdef __cplusplus |
13579 | extern "C" | |
13580 | #endif | |
212380e3 AC |
13581 | char nlist (); |
13582 | int | |
13583 | main () | |
13584 | { | |
631ef239 | 13585 | return nlist (); |
212380e3 AC |
13586 | ; |
13587 | return 0; | |
13588 | } | |
13589 | _ACEOF | |
13590 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
13591 | if { (ac_try="$ac_link" |
13592 | case "(($ac_try" in | |
13593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13594 | *) ac_try_echo=$ac_try;; | |
13595 | esac | |
13596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13597 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
13598 | ac_status=$? |
13599 | grep -v '^ *+' conftest.er1 >conftest.err | |
13600 | rm -f conftest.er1 | |
13601 | cat conftest.err >&5 | |
13602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13603 | (exit $ac_status); } && { |
13604 | test -z "$ac_c_werror_flag" || | |
13605 | test ! -s conftest.err | |
13606 | } && test -s conftest$ac_exeext && | |
13607 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
13608 | ac_cv_lib_dl_nlist=yes |
13609 | else | |
13610 | echo "$as_me: failed program was:" >&5 | |
13611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13612 | ||
631ef239 | 13613 | ac_cv_lib_dl_nlist=no |
212380e3 | 13614 | fi |
631ef239 AC |
13615 | |
13616 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
13617 | conftest$ac_exeext conftest.$ac_ext |
13618 | LIBS=$ac_check_lib_save_LIBS | |
13619 | fi | |
631ef239 AC |
13620 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5 |
13621 | echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; } | |
212380e3 AC |
13622 | if test $ac_cv_lib_dl_nlist = yes; then |
13623 | nlist_lib="-ldl" | |
13624 | else | |
631ef239 AC |
13625 | { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5 |
13626 | echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; } | |
212380e3 AC |
13627 | if test "${ac_cv_lib_elf_nlist+set}" = set; then |
13628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13629 | else | |
13630 | ac_check_lib_save_LIBS=$LIBS | |
13631 | LIBS="-lelf $LIBS" | |
13632 | cat >conftest.$ac_ext <<_ACEOF | |
13633 | /* confdefs.h. */ | |
13634 | _ACEOF | |
13635 | cat confdefs.h >>conftest.$ac_ext | |
13636 | cat >>conftest.$ac_ext <<_ACEOF | |
13637 | /* end confdefs.h. */ | |
13638 | ||
631ef239 AC |
13639 | /* Override any GCC internal prototype to avoid an error. |
13640 | Use char because int might match the return type of a GCC | |
13641 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
13642 | #ifdef __cplusplus |
13643 | extern "C" | |
13644 | #endif | |
212380e3 AC |
13645 | char nlist (); |
13646 | int | |
13647 | main () | |
13648 | { | |
631ef239 | 13649 | return nlist (); |
212380e3 AC |
13650 | ; |
13651 | return 0; | |
13652 | } | |
13653 | _ACEOF | |
13654 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
13655 | if { (ac_try="$ac_link" |
13656 | case "(($ac_try" in | |
13657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13658 | *) ac_try_echo=$ac_try;; | |
13659 | esac | |
13660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13661 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
13662 | ac_status=$? |
13663 | grep -v '^ *+' conftest.er1 >conftest.err | |
13664 | rm -f conftest.er1 | |
13665 | cat conftest.err >&5 | |
13666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13667 | (exit $ac_status); } && { |
13668 | test -z "$ac_c_werror_flag" || | |
13669 | test ! -s conftest.err | |
13670 | } && test -s conftest$ac_exeext && | |
13671 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
13672 | ac_cv_lib_elf_nlist=yes |
13673 | else | |
13674 | echo "$as_me: failed program was:" >&5 | |
13675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13676 | ||
631ef239 | 13677 | ac_cv_lib_elf_nlist=no |
212380e3 | 13678 | fi |
631ef239 AC |
13679 | |
13680 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
13681 | conftest$ac_exeext conftest.$ac_ext |
13682 | LIBS=$ac_check_lib_save_LIBS | |
13683 | fi | |
631ef239 AC |
13684 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5 |
13685 | echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; } | |
212380e3 AC |
13686 | if test $ac_cv_lib_elf_nlist = yes; then |
13687 | nlist_lib="-lelf" | |
13688 | fi | |
13689 | ||
13690 | ||
13691 | fi | |
13692 | ||
13693 | ||
13694 | fi | |
13695 | ||
13696 | ||
13697 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then | |
631ef239 AC |
13698 | { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5 |
13699 | echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13700 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then |
13701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13702 | fi | |
631ef239 AC |
13703 | { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5 |
13704 | echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; } | |
212380e3 AC |
13705 | else |
13706 | # Is the header compilable? | |
631ef239 AC |
13707 | { echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5 |
13708 | echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
13709 | cat >conftest.$ac_ext <<_ACEOF |
13710 | /* confdefs.h. */ | |
13711 | _ACEOF | |
13712 | cat confdefs.h >>conftest.$ac_ext | |
13713 | cat >>conftest.$ac_ext <<_ACEOF | |
13714 | /* end confdefs.h. */ | |
13715 | $ac_includes_default | |
13716 | #include <libelf/nlist.h> | |
13717 | _ACEOF | |
13718 | rm -f conftest.$ac_objext | |
631ef239 AC |
13719 | if { (ac_try="$ac_compile" |
13720 | case "(($ac_try" in | |
13721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13722 | *) ac_try_echo=$ac_try;; | |
13723 | esac | |
13724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13725 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13726 | ac_status=$? |
13727 | grep -v '^ *+' conftest.er1 >conftest.err | |
13728 | rm -f conftest.er1 | |
13729 | cat conftest.err >&5 | |
13730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13731 | (exit $ac_status); } && { |
13732 | test -z "$ac_c_werror_flag" || | |
13733 | test ! -s conftest.err | |
13734 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13735 | ac_header_compiler=yes |
13736 | else | |
13737 | echo "$as_me: failed program was:" >&5 | |
13738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13739 | ||
631ef239 | 13740 | ac_header_compiler=no |
212380e3 | 13741 | fi |
631ef239 AC |
13742 | |
13743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13744 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13745 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
13746 | |
13747 | # Is the header present? | |
631ef239 AC |
13748 | { echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5 |
13749 | echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
13750 | cat >conftest.$ac_ext <<_ACEOF |
13751 | /* confdefs.h. */ | |
13752 | _ACEOF | |
13753 | cat confdefs.h >>conftest.$ac_ext | |
13754 | cat >>conftest.$ac_ext <<_ACEOF | |
13755 | /* end confdefs.h. */ | |
13756 | #include <libelf/nlist.h> | |
13757 | _ACEOF | |
631ef239 AC |
13758 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13759 | case "(($ac_try" in | |
13760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13761 | *) ac_try_echo=$ac_try;; | |
13762 | esac | |
13763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13764 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
13765 | ac_status=$? |
13766 | grep -v '^ *+' conftest.er1 >conftest.err | |
13767 | rm -f conftest.er1 | |
13768 | cat conftest.err >&5 | |
13769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13770 | (exit $ac_status); } >/dev/null && { |
13771 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13772 | test ! -s conftest.err | |
13773 | }; then | |
212380e3 AC |
13774 | ac_header_preproc=yes |
13775 | else | |
13776 | echo "$as_me: failed program was:" >&5 | |
13777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13778 | ||
13779 | ac_header_preproc=no | |
13780 | fi | |
631ef239 | 13781 | |
212380e3 | 13782 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
13783 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13784 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
13785 | |
13786 | # So? What about this header? | |
13787 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13788 | yes:no: ) | |
13789 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13790 | echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13791 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5 | |
13792 | echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;} | |
13793 | ac_header_preproc=yes | |
13794 | ;; | |
13795 | no:yes:* ) | |
13796 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5 | |
13797 | echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;} | |
13798 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5 | |
13799 | echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;} | |
13800 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5 | |
13801 | echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;} | |
13802 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13803 | echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13804 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5 | |
13805 | echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;} | |
13806 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5 | |
13807 | echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 13808 | |
212380e3 AC |
13809 | ;; |
13810 | esac | |
631ef239 AC |
13811 | { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5 |
13812 | echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13813 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then |
13814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13815 | else | |
13816 | ac_cv_header_libelf_nlist_h=$ac_header_preproc | |
13817 | fi | |
631ef239 AC |
13818 | { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5 |
13819 | echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; } | |
212380e3 AC |
13820 | |
13821 | fi | |
13822 | if test $ac_cv_header_libelf_nlist_h = yes; then | |
13823 | nlist_h="libelf/nlist.h" | |
13824 | fi | |
13825 | ||
13826 | ||
13827 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then | |
631ef239 AC |
13828 | { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5 |
13829 | echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13830 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then |
13831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13832 | fi | |
631ef239 AC |
13833 | { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5 |
13834 | echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; } | |
212380e3 AC |
13835 | else |
13836 | # Is the header compilable? | |
631ef239 AC |
13837 | { echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5 |
13838 | echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
13839 | cat >conftest.$ac_ext <<_ACEOF |
13840 | /* confdefs.h. */ | |
13841 | _ACEOF | |
13842 | cat confdefs.h >>conftest.$ac_ext | |
13843 | cat >>conftest.$ac_ext <<_ACEOF | |
13844 | /* end confdefs.h. */ | |
13845 | $ac_includes_default | |
13846 | #include <elf/nlist.h> | |
13847 | _ACEOF | |
13848 | rm -f conftest.$ac_objext | |
631ef239 AC |
13849 | if { (ac_try="$ac_compile" |
13850 | case "(($ac_try" in | |
13851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13852 | *) ac_try_echo=$ac_try;; | |
13853 | esac | |
13854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13855 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13856 | ac_status=$? |
13857 | grep -v '^ *+' conftest.er1 >conftest.err | |
13858 | rm -f conftest.er1 | |
13859 | cat conftest.err >&5 | |
13860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13861 | (exit $ac_status); } && { |
13862 | test -z "$ac_c_werror_flag" || | |
13863 | test ! -s conftest.err | |
13864 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13865 | ac_header_compiler=yes |
13866 | else | |
13867 | echo "$as_me: failed program was:" >&5 | |
13868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13869 | ||
631ef239 | 13870 | ac_header_compiler=no |
212380e3 | 13871 | fi |
631ef239 AC |
13872 | |
13873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13874 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13875 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
13876 | |
13877 | # Is the header present? | |
631ef239 AC |
13878 | { echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5 |
13879 | echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
13880 | cat >conftest.$ac_ext <<_ACEOF |
13881 | /* confdefs.h. */ | |
13882 | _ACEOF | |
13883 | cat confdefs.h >>conftest.$ac_ext | |
13884 | cat >>conftest.$ac_ext <<_ACEOF | |
13885 | /* end confdefs.h. */ | |
13886 | #include <elf/nlist.h> | |
13887 | _ACEOF | |
631ef239 AC |
13888 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13889 | case "(($ac_try" in | |
13890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13891 | *) ac_try_echo=$ac_try;; | |
13892 | esac | |
13893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13894 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
13895 | ac_status=$? |
13896 | grep -v '^ *+' conftest.er1 >conftest.err | |
13897 | rm -f conftest.er1 | |
13898 | cat conftest.err >&5 | |
13899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13900 | (exit $ac_status); } >/dev/null && { |
13901 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13902 | test ! -s conftest.err | |
13903 | }; then | |
212380e3 AC |
13904 | ac_header_preproc=yes |
13905 | else | |
13906 | echo "$as_me: failed program was:" >&5 | |
13907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13908 | ||
13909 | ac_header_preproc=no | |
13910 | fi | |
631ef239 | 13911 | |
212380e3 | 13912 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
13913 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13914 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
13915 | |
13916 | # So? What about this header? | |
13917 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13918 | yes:no: ) | |
13919 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13920 | echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13921 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5 | |
13922 | echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;} | |
13923 | ac_header_preproc=yes | |
13924 | ;; | |
13925 | no:yes:* ) | |
13926 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5 | |
13927 | echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;} | |
13928 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5 | |
13929 | echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;} | |
13930 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5 | |
13931 | echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;} | |
13932 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13933 | echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13934 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5 | |
13935 | echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;} | |
13936 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5 | |
13937 | echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 13938 | |
212380e3 AC |
13939 | ;; |
13940 | esac | |
631ef239 AC |
13941 | { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5 |
13942 | echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13943 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then |
13944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13945 | else | |
13946 | ac_cv_header_elf_nlist_h=$ac_header_preproc | |
13947 | fi | |
631ef239 AC |
13948 | { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5 |
13949 | echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; } | |
212380e3 AC |
13950 | |
13951 | fi | |
13952 | if test $ac_cv_header_elf_nlist_h = yes; then | |
13953 | nlist_h="elf/nlist.h" | |
13954 | fi | |
13955 | ||
13956 | ||
13957 | if test "${ac_cv_header_nlist_h+set}" = set; then | |
631ef239 AC |
13958 | { echo "$as_me:$LINENO: checking for nlist.h" >&5 |
13959 | echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13960 | if test "${ac_cv_header_nlist_h+set}" = set; then |
13961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13962 | fi | |
631ef239 AC |
13963 | { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5 |
13964 | echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; } | |
212380e3 AC |
13965 | else |
13966 | # Is the header compilable? | |
631ef239 AC |
13967 | { echo "$as_me:$LINENO: checking nlist.h usability" >&5 |
13968 | echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
13969 | cat >conftest.$ac_ext <<_ACEOF |
13970 | /* confdefs.h. */ | |
13971 | _ACEOF | |
13972 | cat confdefs.h >>conftest.$ac_ext | |
13973 | cat >>conftest.$ac_ext <<_ACEOF | |
13974 | /* end confdefs.h. */ | |
13975 | $ac_includes_default | |
13976 | #include <nlist.h> | |
13977 | _ACEOF | |
13978 | rm -f conftest.$ac_objext | |
631ef239 AC |
13979 | if { (ac_try="$ac_compile" |
13980 | case "(($ac_try" in | |
13981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13982 | *) ac_try_echo=$ac_try;; | |
13983 | esac | |
13984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13985 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13986 | ac_status=$? |
13987 | grep -v '^ *+' conftest.er1 >conftest.err | |
13988 | rm -f conftest.er1 | |
13989 | cat conftest.err >&5 | |
13990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13991 | (exit $ac_status); } && { |
13992 | test -z "$ac_c_werror_flag" || | |
13993 | test ! -s conftest.err | |
13994 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13995 | ac_header_compiler=yes |
13996 | else | |
13997 | echo "$as_me: failed program was:" >&5 | |
13998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13999 | ||
631ef239 | 14000 | ac_header_compiler=no |
212380e3 | 14001 | fi |
631ef239 AC |
14002 | |
14003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14004 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14005 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
14006 | |
14007 | # Is the header present? | |
631ef239 AC |
14008 | { echo "$as_me:$LINENO: checking nlist.h presence" >&5 |
14009 | echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
14010 | cat >conftest.$ac_ext <<_ACEOF |
14011 | /* confdefs.h. */ | |
14012 | _ACEOF | |
14013 | cat confdefs.h >>conftest.$ac_ext | |
14014 | cat >>conftest.$ac_ext <<_ACEOF | |
14015 | /* end confdefs.h. */ | |
14016 | #include <nlist.h> | |
14017 | _ACEOF | |
631ef239 AC |
14018 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14019 | case "(($ac_try" in | |
14020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14021 | *) ac_try_echo=$ac_try;; | |
14022 | esac | |
14023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14024 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
14025 | ac_status=$? |
14026 | grep -v '^ *+' conftest.er1 >conftest.err | |
14027 | rm -f conftest.er1 | |
14028 | cat conftest.err >&5 | |
14029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
14030 | (exit $ac_status); } >/dev/null && { |
14031 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14032 | test ! -s conftest.err | |
14033 | }; then | |
212380e3 AC |
14034 | ac_header_preproc=yes |
14035 | else | |
14036 | echo "$as_me: failed program was:" >&5 | |
14037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14038 | ||
14039 | ac_header_preproc=no | |
14040 | fi | |
631ef239 | 14041 | |
212380e3 | 14042 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
14043 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14044 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
14045 | |
14046 | # So? What about this header? | |
14047 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14048 | yes:no: ) | |
14049 | { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14050 | echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14051 | { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5 | |
14052 | echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;} | |
14053 | ac_header_preproc=yes | |
14054 | ;; | |
14055 | no:yes:* ) | |
14056 | { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5 | |
14057 | echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;} | |
14058 | { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5 | |
14059 | echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;} | |
14060 | { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5 | |
14061 | echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;} | |
14062 | { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14063 | echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14064 | { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5 | |
14065 | echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;} | |
14066 | { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5 | |
14067 | echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 14068 | |
212380e3 AC |
14069 | ;; |
14070 | esac | |
631ef239 AC |
14071 | { echo "$as_me:$LINENO: checking for nlist.h" >&5 |
14072 | echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
14073 | if test "${ac_cv_header_nlist_h+set}" = set; then |
14074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14075 | else | |
14076 | ac_cv_header_nlist_h=$ac_header_preproc | |
14077 | fi | |
631ef239 AC |
14078 | { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5 |
14079 | echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; } | |
212380e3 AC |
14080 | |
14081 | fi | |
14082 | if test $ac_cv_header_nlist_h = yes; then | |
14083 | nlist_h="nlist.h" | |
14084 | fi | |
14085 | ||
14086 | ||
14087 | if test x"$nlist_h" = "x"; then | |
14088 | ||
14089 | cat >>confdefs.h <<_ACEOF | |
14090 | #define SYMBOL_PREFIX "" | |
14091 | _ACEOF | |
14092 | ||
14093 | else | |
631ef239 AC |
14094 | { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5 |
14095 | echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; } | |
212380e3 AC |
14096 | if test "${symbol_underscores+set}" = set; then |
14097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14098 | else | |
14099 | ||
14100 | cat << EOF > conftest.c | |
14101 | #include <$nlist_h> | |
14102 | #include <stdio.h> | |
14103 | #include <stdlib.h> | |
14104 | void _modinit(void); | |
14105 | int main(int argc, char *argv[]) { | |
14106 | int i; | |
14107 | struct nlist nl[5]; | |
14108 | ||
14109 | /* fill the names in this way, so it'll work almost everywhere */ | |
14110 | nl[0].n_name = "_modinit"; | |
14111 | nl[1].n_name = "__modinit"; | |
14112 | nl[2].n_name = "___modinit"; | |
14113 | nl[3].n_name = "____modinit"; | |
14114 | nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL; | |
14115 | ||
14116 | if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1); | |
14117 | for(i = 0; i < 4; i++) { | |
14118 | if(nl[i].n_value != NULL) | |
14119 | { | |
14120 | int j; | |
14121 | for(j = 0; j < i; j++) | |
14122 | printf("_"); | |
14123 | exit(i); | |
14124 | } | |
14125 | } | |
14126 | exit(-1); | |
14127 | } | |
14128 | void _modinit(void) { return; } | |
14129 | EOF | |
14130 | $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1 | |
14131 | symbol_underscores=`./conftest conftest` | |
631ef239 AC |
14132 | { echo "$as_me:$LINENO: result: $symbol_underscores" >&5 |
14133 | echo "${ECHO_T}$symbol_underscores" >&6; } | |
212380e3 AC |
14134 | $RM -f conftest conftest.c |
14135 | ||
14136 | fi | |
14137 | ||
14138 | ||
14139 | cat >>confdefs.h <<_ACEOF | |
14140 | #define SYMBOL_PREFIX "${symbol_underscores}" | |
14141 | _ACEOF | |
14142 | ||
14143 | fi | |
14144 | fi | |
14145 | ||
14146 | ||
14147 | ||
14148 | ||
14149 | ||
14150 | ||
14151 | ||
14152 | ||
14153 | ||
14154 | ||
14155 | ||
14156 | ||
14157 | ||
14158 | ||
14159 | if test "$prefix" = "NONE"; then | |
14160 | ||
14161 | cat >>confdefs.h <<_ACEOF | |
14162 | #define IRCD_PREFIX "$ac_default_prefix" | |
14163 | _ACEOF | |
14164 | ||
14165 | ||
14166 | else | |
14167 | ||
14168 | ||
14169 | prefix=`echo $prefix | sed 's/\/$//'` | |
14170 | ||
14171 | cat >>confdefs.h <<_ACEOF | |
14172 | #define IRCD_PREFIX "$prefix" | |
14173 | _ACEOF | |
14174 | ||
14175 | ||
14176 | fi | |
14177 | ||
631ef239 | 14178 | ac_config_files="$ac_config_files Makefile libcharybdis/Makefile servlink/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile" |
212380e3 AC |
14179 | |
14180 | ||
14181 | cat >confcache <<\_ACEOF | |
14182 | # This file is a shell script that caches the results of configure | |
14183 | # tests run on this system so they can be shared between configure | |
14184 | # scripts and configure runs, see configure's option --config-cache. | |
14185 | # It is not useful on other systems. If it contains results you don't | |
14186 | # want to keep, you may remove or edit it. | |
14187 | # | |
14188 | # config.status only pays attention to the cache file if you give it | |
14189 | # the --recheck option to rerun configure. | |
14190 | # | |
14191 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14192 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14193 | # following values. | |
14194 | ||
14195 | _ACEOF | |
14196 | ||
14197 | # The following way of writing the cache mishandles newlines in values, | |
14198 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 14199 | # So, we kill variables containing newlines. |
212380e3 AC |
14200 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14201 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 AC |
14202 | ( |
14203 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14204 | eval ac_val=\$$ac_var | |
14205 | case $ac_val in #( | |
14206 | *${as_nl}*) | |
14207 | case $ac_var in #( | |
14208 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
14209 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
14210 | esac | |
14211 | case $ac_var in #( | |
14212 | _ | IFS | as_nl) ;; #( | |
14213 | *) $as_unset $ac_var ;; | |
14214 | esac ;; | |
14215 | esac | |
14216 | done | |
14217 | ||
212380e3 | 14218 | (set) 2>&1 | |
631ef239 AC |
14219 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14220 | *${as_nl}ac_space=\ *) | |
212380e3 AC |
14221 | # `set' does not quote correctly, so add quotes (double-quote |
14222 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
14223 | sed -n \ | |
14224 | "s/'/'\\\\''/g; | |
14225 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 14226 | ;; #( |
212380e3 AC |
14227 | *) |
14228 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 14229 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 14230 | ;; |
631ef239 AC |
14231 | esac | |
14232 | sort | |
14233 | ) | | |
212380e3 | 14234 | sed ' |
631ef239 | 14235 | /^ac_cv_env_/b end |
212380e3 | 14236 | t clear |
631ef239 | 14237 | :clear |
212380e3 AC |
14238 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14239 | t end | |
631ef239 AC |
14240 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14241 | :end' >>confcache | |
14242 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14243 | if test -w "$cache_file"; then | |
14244 | test "x$cache_file" != "x/dev/null" && | |
14245 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
14246 | echo "$as_me: updating cache $cache_file" >&6;} | |
212380e3 AC |
14247 | cat confcache >$cache_file |
14248 | else | |
631ef239 AC |
14249 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
14250 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 AC |
14251 | fi |
14252 | fi | |
14253 | rm -f confcache | |
14254 | ||
14255 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14256 | # Let make expand exec_prefix. | |
14257 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14258 | ||
212380e3 AC |
14259 | DEFS=-DHAVE_CONFIG_H |
14260 | ||
14261 | ac_libobjs= | |
14262 | ac_ltlibobjs= | |
14263 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14264 | # 1. Remove the extension, and $U if already installed. | |
631ef239 AC |
14265 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14266 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
14267 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14268 | # will be set to the directory where LIBOBJS objects are built. | |
14269 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14270 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 AC |
14271 | done |
14272 | LIBOBJS=$ac_libobjs | |
14273 | ||
14274 | LTLIBOBJS=$ac_ltlibobjs | |
14275 | ||
14276 | ||
14277 | ||
14278 | : ${CONFIG_STATUS=./config.status} | |
14279 | ac_clean_files_save=$ac_clean_files | |
14280 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
14281 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
14282 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14283 | cat >$CONFIG_STATUS <<_ACEOF | |
14284 | #! $SHELL | |
14285 | # Generated by $as_me. | |
14286 | # Run this file to recreate the current configuration. | |
14287 | # Compiler output produced by configure, useful for debugging | |
14288 | # configure, is in config.log if it exists. | |
14289 | ||
14290 | debug=false | |
14291 | ac_cs_recheck=false | |
14292 | ac_cs_silent=false | |
14293 | SHELL=\${CONFIG_SHELL-$SHELL} | |
14294 | _ACEOF | |
14295 | ||
14296 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14297 | ## --------------------- ## | |
14298 | ## M4sh Initialization. ## | |
14299 | ## --------------------- ## | |
14300 | ||
631ef239 AC |
14301 | # Be more Bourne compatible |
14302 | DUALCASE=1; export DUALCASE # for MKS sh | |
212380e3 AC |
14303 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
14304 | emulate sh | |
14305 | NULLCMD=: | |
14306 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
14307 | # is contrary to our usage. Disable this feature. | |
14308 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 14309 | setopt NO_GLOB_SUBST |
212380e3 | 14310 | else |
631ef239 AC |
14311 | case `(set -o) 2>/dev/null` in |
14312 | *posix*) set -o posix ;; | |
14313 | esac | |
14314 | ||
212380e3 AC |
14315 | fi |
14316 | ||
14317 | ||
631ef239 AC |
14318 | |
14319 | ||
14320 | # PATH needs CR | |
14321 | # Avoid depending upon Character Ranges. | |
14322 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14323 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14324 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14325 | as_cr_digits='0123456789' | |
14326 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14327 | ||
14328 | # The user is always right. | |
14329 | if test "${PATH_SEPARATOR+set}" != set; then | |
14330 | echo "#! /bin/sh" >conf$$.sh | |
14331 | echo "exit 0" >>conf$$.sh | |
14332 | chmod +x conf$$.sh | |
14333 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
14334 | PATH_SEPARATOR=';' | |
14335 | else | |
14336 | PATH_SEPARATOR=: | |
14337 | fi | |
14338 | rm -f conf$$.sh | |
14339 | fi | |
14340 | ||
14341 | # Support unset when possible. | |
14342 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
14343 | as_unset=unset | |
14344 | else | |
14345 | as_unset=false | |
14346 | fi | |
14347 | ||
14348 | ||
14349 | # IFS | |
14350 | # We need space, tab and new line, in precisely that order. Quoting is | |
14351 | # there to prevent editors from complaining about space-tab. | |
14352 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14353 | # splitting by setting IFS to empty value.) | |
14354 | as_nl=' | |
14355 | ' | |
14356 | IFS=" "" $as_nl" | |
14357 | ||
14358 | # Find who we are. Look in the path if we contain no directory separator. | |
14359 | case $0 in | |
14360 | *[\\/]* ) as_myself=$0 ;; | |
14361 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14362 | for as_dir in $PATH | |
14363 | do | |
14364 | IFS=$as_save_IFS | |
14365 | test -z "$as_dir" && as_dir=. | |
14366 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14367 | done | |
14368 | IFS=$as_save_IFS | |
14369 | ||
14370 | ;; | |
14371 | esac | |
14372 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14373 | # in which case we are not to be found in the path. | |
14374 | if test "x$as_myself" = x; then | |
14375 | as_myself=$0 | |
14376 | fi | |
14377 | if test ! -f "$as_myself"; then | |
14378 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14379 | { (exit 1); exit 1; } | |
14380 | fi | |
14381 | ||
212380e3 | 14382 | # Work around bugs in pre-3.0 UWIN ksh. |
631ef239 AC |
14383 | for as_var in ENV MAIL MAILPATH |
14384 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
14385 | done | |
212380e3 AC |
14386 | PS1='$ ' |
14387 | PS2='> ' | |
14388 | PS4='+ ' | |
14389 | ||
14390 | # NLS nuisances. | |
14391 | for as_var in \ | |
14392 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
14393 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
14394 | LC_TELEPHONE LC_TIME | |
14395 | do | |
14396 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
14397 | eval $as_var=C; export $as_var | |
14398 | else | |
631ef239 | 14399 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
212380e3 AC |
14400 | fi |
14401 | done | |
14402 | ||
14403 | # Required to use basename. | |
631ef239 AC |
14404 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14405 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
14406 | as_expr=expr |
14407 | else | |
14408 | as_expr=false | |
14409 | fi | |
14410 | ||
631ef239 | 14411 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
14412 | as_basename=basename |
14413 | else | |
14414 | as_basename=false | |
14415 | fi | |
14416 | ||
14417 | ||
14418 | # Name of the executable. | |
631ef239 | 14419 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
14420 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14421 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 14422 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 14423 | echo X/"$0" | |
631ef239 AC |
14424 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
14425 | s//\1/ | |
14426 | q | |
14427 | } | |
14428 | /^X\/\(\/\/\)$/{ | |
14429 | s//\1/ | |
14430 | q | |
14431 | } | |
14432 | /^X\/\(\/\).*/{ | |
14433 | s//\1/ | |
14434 | q | |
14435 | } | |
14436 | s/.*/./; q'` | |
212380e3 | 14437 | |
631ef239 AC |
14438 | # CDPATH. |
14439 | $as_unset CDPATH | |
212380e3 | 14440 | |
212380e3 AC |
14441 | |
14442 | ||
14443 | as_lineno_1=$LINENO | |
14444 | as_lineno_2=$LINENO | |
212380e3 | 14445 | test "x$as_lineno_1" != "x$as_lineno_2" && |
631ef239 | 14446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
212380e3 AC |
14447 | |
14448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
14449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
631ef239 AC |
14450 | # line-number line after each line using $LINENO; the second 'sed' |
14451 | # does the real work. The second script uses 'N' to pair each | |
14452 | # line-number line with the line containing $LINENO, and appends | |
14453 | # trailing '-' during substitution so that $LINENO is not a special | |
14454 | # case at line end. | |
212380e3 | 14455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
631ef239 AC |
14456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
14457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
14458 | sed -n ' | |
14459 | p | |
14460 | /[$]LINENO/= | |
14461 | ' <$as_myself | | |
212380e3 | 14462 | sed ' |
631ef239 AC |
14463 | s/[$]LINENO.*/&-/ |
14464 | t lineno | |
14465 | b | |
14466 | :lineno | |
212380e3 | 14467 | N |
631ef239 AC |
14468 | :loop |
14469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
212380e3 | 14470 | t loop |
631ef239 | 14471 | s/-\n.*// |
212380e3 | 14472 | ' >$as_me.lineno && |
631ef239 AC |
14473 | chmod +x "$as_me.lineno" || |
14474 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
212380e3 AC |
14475 | { (exit 1); exit 1; }; } |
14476 | ||
14477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
14478 | # (the dirname of $[0] is not the place where we might find the | |
631ef239 AC |
14479 | # original and so on. Autoconf is especially sensitive to this). |
14480 | . "./$as_me.lineno" | |
212380e3 AC |
14481 | # Exit status is that of the last command. |
14482 | exit | |
14483 | } | |
14484 | ||
14485 | ||
631ef239 AC |
14486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14487 | as_dirname=dirname | |
14488 | else | |
14489 | as_dirname=false | |
14490 | fi | |
14491 | ||
14492 | ECHO_C= ECHO_N= ECHO_T= | |
14493 | case `echo -n x` in | |
14494 | -n*) | |
14495 | case `echo 'x\c'` in | |
14496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14497 | *) ECHO_C='\c';; | |
14498 | esac;; | |
14499 | *) | |
14500 | ECHO_N='-n';; | |
212380e3 AC |
14501 | esac |
14502 | ||
631ef239 AC |
14503 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14504 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
14505 | as_expr=expr |
14506 | else | |
14507 | as_expr=false | |
14508 | fi | |
14509 | ||
14510 | rm -f conf$$ conf$$.exe conf$$.file | |
631ef239 AC |
14511 | if test -d conf$$.dir; then |
14512 | rm -f conf$$.dir/conf$$.file | |
14513 | else | |
14514 | rm -f conf$$.dir | |
14515 | mkdir conf$$.dir | |
14516 | fi | |
212380e3 AC |
14517 | echo >conf$$.file |
14518 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
631ef239 AC |
14519 | as_ln_s='ln -s' |
14520 | # ... but there are two gotchas: | |
14521 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14522 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14523 | # In both cases, we have to default to `cp -p'. | |
14524 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
212380e3 | 14525 | as_ln_s='cp -p' |
212380e3 AC |
14526 | elif ln conf$$.file conf$$ 2>/dev/null; then |
14527 | as_ln_s=ln | |
14528 | else | |
14529 | as_ln_s='cp -p' | |
14530 | fi | |
631ef239 AC |
14531 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14532 | rmdir conf$$.dir 2>/dev/null | |
212380e3 AC |
14533 | |
14534 | if mkdir -p . 2>/dev/null; then | |
14535 | as_mkdir_p=: | |
14536 | else | |
14537 | test -d ./-p && rmdir ./-p | |
14538 | as_mkdir_p=false | |
14539 | fi | |
14540 | ||
631ef239 AC |
14541 | if test -x / >/dev/null 2>&1; then |
14542 | as_test_x='test -x' | |
14543 | else | |
14544 | if ls -dL / >/dev/null 2>&1; then | |
14545 | as_ls_L_option=L | |
14546 | else | |
14547 | as_ls_L_option= | |
14548 | fi | |
14549 | as_test_x=' | |
14550 | eval sh -c '\'' | |
14551 | if test -d "$1"; then | |
14552 | test -d "$1/."; | |
14553 | else | |
14554 | case $1 in | |
14555 | -*)set "./$1";; | |
14556 | esac; | |
14557 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
14558 | ???[sx]*):;;*)false;;esac;fi | |
14559 | '\'' sh | |
14560 | ' | |
14561 | fi | |
14562 | as_executable_p=$as_test_x | |
212380e3 AC |
14563 | |
14564 | # Sed expression to map a string onto a valid CPP name. | |
14565 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14566 | ||
14567 | # Sed expression to map a string onto a valid variable name. | |
14568 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14569 | ||
14570 | ||
212380e3 AC |
14571 | exec 6>&1 |
14572 | ||
631ef239 | 14573 | # Save the log message, to keep $[0] and so on meaningful, and to |
212380e3 | 14574 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 AC |
14575 | # values after options handling. |
14576 | ac_log=" | |
b1fc1658 | 14577 | This file was extended by charybdis $as_me 2.2.0, which was |
631ef239 | 14578 | generated by GNU Autoconf 2.61. Invocation command line was |
212380e3 AC |
14579 | |
14580 | CONFIG_FILES = $CONFIG_FILES | |
14581 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14582 | CONFIG_LINKS = $CONFIG_LINKS | |
14583 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14584 | $ $0 $@ | |
14585 | ||
631ef239 AC |
14586 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14587 | " | |
14588 | ||
212380e3 AC |
14589 | _ACEOF |
14590 | ||
631ef239 | 14591 | cat >>$CONFIG_STATUS <<_ACEOF |
212380e3 | 14592 | # Files that config.status was made for. |
631ef239 AC |
14593 | config_files="$ac_config_files" |
14594 | config_headers="$ac_config_headers" | |
212380e3 | 14595 | |
631ef239 | 14596 | _ACEOF |
212380e3 AC |
14597 | |
14598 | cat >>$CONFIG_STATUS <<\_ACEOF | |
212380e3 AC |
14599 | ac_cs_usage="\ |
14600 | \`$as_me' instantiates files from templates according to the | |
14601 | current configuration. | |
14602 | ||
14603 | Usage: $0 [OPTIONS] [FILE]... | |
14604 | ||
14605 | -h, --help print this help, then exit | |
631ef239 | 14606 | -V, --version print version number and configuration settings, then exit |
212380e3 AC |
14607 | -q, --quiet do not print progress messages |
14608 | -d, --debug don't remove temporary files | |
14609 | --recheck update $as_me by reconfiguring in the same conditions | |
14610 | --file=FILE[:TEMPLATE] | |
14611 | instantiate the configuration file FILE | |
14612 | --header=FILE[:TEMPLATE] | |
14613 | instantiate the configuration header FILE | |
14614 | ||
14615 | Configuration files: | |
14616 | $config_files | |
14617 | ||
14618 | Configuration headers: | |
14619 | $config_headers | |
14620 | ||
14621 | Report bugs to <bug-autoconf@gnu.org>." | |
212380e3 | 14622 | |
631ef239 | 14623 | _ACEOF |
212380e3 AC |
14624 | cat >>$CONFIG_STATUS <<_ACEOF |
14625 | ac_cs_version="\\ | |
b1fc1658 | 14626 | charybdis config.status 2.2.0 |
631ef239 AC |
14627 | configured by $0, generated by GNU Autoconf 2.61, |
14628 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
212380e3 | 14629 | |
631ef239 | 14630 | Copyright (C) 2006 Free Software Foundation, Inc. |
212380e3 AC |
14631 | This config.status script is free software; the Free Software Foundation |
14632 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 AC |
14633 | |
14634 | ac_pwd='$ac_pwd' | |
14635 | srcdir='$srcdir' | |
14636 | INSTALL='$INSTALL' | |
212380e3 AC |
14637 | _ACEOF |
14638 | ||
14639 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14640 | # If no file are specified by the user, then we need to provide default | |
14641 | # value. By we need to know if files were specified by the user. | |
14642 | ac_need_defaults=: | |
14643 | while test $# != 0 | |
14644 | do | |
14645 | case $1 in | |
14646 | --*=*) | |
631ef239 AC |
14647 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14648 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 AC |
14649 | ac_shift=: |
14650 | ;; | |
631ef239 | 14651 | *) |
212380e3 AC |
14652 | ac_option=$1 |
14653 | ac_optarg=$2 | |
14654 | ac_shift=shift | |
14655 | ;; | |
212380e3 AC |
14656 | esac |
14657 | ||
14658 | case $ac_option in | |
14659 | # Handling of the options. | |
212380e3 AC |
14660 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
14661 | ac_cs_recheck=: ;; | |
631ef239 AC |
14662 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14663 | echo "$ac_cs_version"; exit ;; | |
14664 | --debug | --debu | --deb | --de | --d | -d ) | |
212380e3 AC |
14665 | debug=: ;; |
14666 | --file | --fil | --fi | --f ) | |
14667 | $ac_shift | |
14668 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
14669 | ac_need_defaults=false;; | |
14670 | --header | --heade | --head | --hea ) | |
14671 | $ac_shift | |
14672 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
14673 | ac_need_defaults=false;; | |
631ef239 AC |
14674 | --he | --h) |
14675 | # Conflict between --help and --header | |
14676 | { echo "$as_me: error: ambiguous option: $1 | |
14677 | Try \`$0 --help' for more information." >&2 | |
14678 | { (exit 1); exit 1; }; };; | |
14679 | --help | --hel | -h ) | |
14680 | echo "$ac_cs_usage"; exit ;; | |
212380e3 AC |
14681 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14682 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14683 | ac_cs_silent=: ;; | |
14684 | ||
14685 | # This is an error. | |
631ef239 AC |
14686 | -*) { echo "$as_me: error: unrecognized option: $1 |
14687 | Try \`$0 --help' for more information." >&2 | |
212380e3 AC |
14688 | { (exit 1); exit 1; }; } ;; |
14689 | ||
631ef239 AC |
14690 | *) ac_config_targets="$ac_config_targets $1" |
14691 | ac_need_defaults=false ;; | |
212380e3 AC |
14692 | |
14693 | esac | |
14694 | shift | |
14695 | done | |
14696 | ||
14697 | ac_configure_extra_args= | |
14698 | ||
14699 | if $ac_cs_silent; then | |
14700 | exec 6>/dev/null | |
14701 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14702 | fi | |
14703 | ||
14704 | _ACEOF | |
14705 | cat >>$CONFIG_STATUS <<_ACEOF | |
14706 | if \$ac_cs_recheck; then | |
631ef239 AC |
14707 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
14708 | CONFIG_SHELL=$SHELL | |
14709 | export CONFIG_SHELL | |
14710 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
212380e3 AC |
14711 | fi |
14712 | ||
14713 | _ACEOF | |
631ef239 AC |
14714 | cat >>$CONFIG_STATUS <<\_ACEOF |
14715 | exec 5>>config.log | |
14716 | { | |
14717 | echo | |
14718 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14719 | ## Running $as_me. ## | |
14720 | _ASBOX | |
14721 | echo "$ac_log" | |
14722 | } >&5 | |
212380e3 | 14723 | |
631ef239 AC |
14724 | _ACEOF |
14725 | cat >>$CONFIG_STATUS <<_ACEOF | |
14726 | _ACEOF | |
212380e3 AC |
14727 | |
14728 | cat >>$CONFIG_STATUS <<\_ACEOF | |
631ef239 AC |
14729 | |
14730 | # Handling of arguments. | |
212380e3 AC |
14731 | for ac_config_target in $ac_config_targets |
14732 | do | |
631ef239 AC |
14733 | case $ac_config_target in |
14734 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
14735 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14736 | "libcharybdis/Makefile") CONFIG_FILES="$CONFIG_FILES libcharybdis/Makefile" ;; | |
14737 | "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;; | |
14738 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; | |
14739 | "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;; | |
14740 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
14741 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; | |
14742 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
14743 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
14744 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
14745 | ||
212380e3 AC |
14746 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14747 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
14748 | { (exit 1); exit 1; }; };; | |
14749 | esac | |
14750 | done | |
14751 | ||
631ef239 | 14752 | |
212380e3 AC |
14753 | # If the user did not use the arguments to specify the items to instantiate, |
14754 | # then the envvar interface is used. Set only those that are not. | |
14755 | # We use the long form for the default assignment because of an extremely | |
14756 | # bizarre bug on SunOS 4.1.3. | |
14757 | if $ac_need_defaults; then | |
14758 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14759 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14760 | fi | |
14761 | ||
14762 | # Have a temporary directory for convenience. Make it in the build tree | |
631ef239 | 14763 | # simply because there is no reason against having it here, and in addition, |
212380e3 | 14764 | # creating and moving files from /tmp can sometimes cause problems. |
631ef239 AC |
14765 | # Hook for its removal unless debugging. |
14766 | # Note that there is a small window in which the directory will not be cleaned: | |
14767 | # after its creation but before its name has been assigned to `$tmp'. | |
212380e3 AC |
14768 | $debug || |
14769 | { | |
631ef239 AC |
14770 | tmp= |
14771 | trap 'exit_status=$? | |
14772 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14773 | ' 0 | |
212380e3 AC |
14774 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
14775 | } | |
212380e3 AC |
14776 | # Create a (secure) tmp directory for tmp files. |
14777 | ||
14778 | { | |
631ef239 | 14779 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
212380e3 AC |
14780 | test -n "$tmp" && test -d "$tmp" |
14781 | } || | |
14782 | { | |
631ef239 AC |
14783 | tmp=./conf$$-$RANDOM |
14784 | (umask 077 && mkdir "$tmp") | |
212380e3 AC |
14785 | } || |
14786 | { | |
14787 | echo "$me: cannot create a temporary directory in ." >&2 | |
14788 | { (exit 1); exit 1; } | |
14789 | } | |
14790 | ||
212380e3 | 14791 | # |
631ef239 | 14792 | # Set up the sed scripts for CONFIG_FILES section. |
212380e3 AC |
14793 | # |
14794 | ||
14795 | # No need to generate the scripts if there are no CONFIG_FILES. | |
14796 | # This happens for instance when ./config.status config.h | |
631ef239 AC |
14797 | if test -n "$CONFIG_FILES"; then |
14798 | ||
14799 | _ACEOF | |
14800 | ||
14801 | ||
14802 | ||
14803 | ac_delim='%!_!# ' | |
14804 | for ac_last_try in false false false false false :; do | |
14805 | cat >conf$$subs.sed <<_ACEOF | |
14806 | SHELL!$SHELL$ac_delim | |
14807 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
14808 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
14809 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
14810 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
14811 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
14812 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
14813 | exec_prefix!$exec_prefix$ac_delim | |
14814 | prefix!$prefix$ac_delim | |
14815 | program_transform_name!$program_transform_name$ac_delim | |
14816 | bindir!$bindir$ac_delim | |
14817 | sbindir!$sbindir$ac_delim | |
14818 | libexecdir!$libexecdir$ac_delim | |
14819 | datarootdir!$datarootdir$ac_delim | |
14820 | datadir!$datadir$ac_delim | |
14821 | sysconfdir!$sysconfdir$ac_delim | |
14822 | sharedstatedir!$sharedstatedir$ac_delim | |
14823 | localstatedir!$localstatedir$ac_delim | |
14824 | includedir!$includedir$ac_delim | |
14825 | oldincludedir!$oldincludedir$ac_delim | |
14826 | docdir!$docdir$ac_delim | |
14827 | infodir!$infodir$ac_delim | |
14828 | htmldir!$htmldir$ac_delim | |
14829 | dvidir!$dvidir$ac_delim | |
14830 | pdfdir!$pdfdir$ac_delim | |
14831 | psdir!$psdir$ac_delim | |
14832 | libdir!$libdir$ac_delim | |
14833 | localedir!$localedir$ac_delim | |
14834 | mandir!$mandir$ac_delim | |
14835 | DEFS!$DEFS$ac_delim | |
14836 | ECHO_C!$ECHO_C$ac_delim | |
14837 | ECHO_N!$ECHO_N$ac_delim | |
14838 | ECHO_T!$ECHO_T$ac_delim | |
14839 | LIBS!$LIBS$ac_delim | |
14840 | build_alias!$build_alias$ac_delim | |
14841 | host_alias!$host_alias$ac_delim | |
14842 | target_alias!$target_alias$ac_delim | |
14843 | CC!$CC$ac_delim | |
14844 | CFLAGS!$CFLAGS$ac_delim | |
14845 | LDFLAGS!$LDFLAGS$ac_delim | |
14846 | CPPFLAGS!$CPPFLAGS$ac_delim | |
14847 | ac_ct_CC!$ac_ct_CC$ac_delim | |
14848 | EXEEXT!$EXEEXT$ac_delim | |
14849 | OBJEXT!$OBJEXT$ac_delim | |
14850 | MKDEP!$MKDEP$ac_delim | |
14851 | MAKEDEPEND!$MAKEDEPEND$ac_delim | |
14852 | STDOUT!$STDOUT$ac_delim | |
14853 | CPP!$CPP$ac_delim | |
14854 | GREP!$GREP$ac_delim | |
14855 | EGREP!$EGREP$ac_delim | |
14856 | SET_MAKE!$SET_MAKE$ac_delim | |
14857 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
14858 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
14859 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
14860 | RM!$RM$ac_delim | |
14861 | CP!$CP$ac_delim | |
14862 | MV!$MV$ac_delim | |
14863 | LN!$LN$ac_delim | |
14864 | SED!$SED$ac_delim | |
14865 | AR!$AR$ac_delim | |
14866 | LD!$LD$ac_delim | |
14867 | RANLIB!$RANLIB$ac_delim | |
14868 | TOUCH!$TOUCH$ac_delim | |
14869 | YACC!$YACC$ac_delim | |
14870 | YFLAGS!$YFLAGS$ac_delim | |
14871 | LEX!$LEX$ac_delim | |
14872 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim | |
14873 | LEXLIB!$LEXLIB$ac_delim | |
14874 | CRYPT_LIB!$CRYPT_LIB$ac_delim | |
14875 | VICONF!$VICONF$ac_delim | |
14876 | ALLOCA!$ALLOCA$ac_delim | |
14877 | ENCSPEED!$ENCSPEED$ac_delim | |
14878 | ZLIB_LD!$ZLIB_LD$ac_delim | |
14879 | ETC_DIR!$ETC_DIR$ac_delim | |
14880 | confdir!$confdir$ac_delim | |
14881 | LOG_DIR!$LOG_DIR$ac_delim | |
14882 | logdir!$logdir$ac_delim | |
14883 | HELP_DIR!$HELP_DIR$ac_delim | |
14884 | helpdir!$helpdir$ac_delim | |
14885 | MODULE_DIR!$MODULE_DIR$ac_delim | |
14886 | moduledir!$moduledir$ac_delim | |
14887 | SELECT_TYPE!$SELECT_TYPE$ac_delim | |
631ef239 AC |
14888 | MODULES_LIBS!$MODULES_LIBS$ac_delim |
14889 | MOD_TARGET!$MOD_TARGET$ac_delim | |
14890 | SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim | |
14891 | SSL_INCLUDES!$SSL_INCLUDES$ac_delim | |
14892 | SSL_LIBS!$SSL_LIBS$ac_delim | |
14893 | PICFLAGS!$PICFLAGS$ac_delim | |
14894 | IRC_CFLAGS!$IRC_CFLAGS$ac_delim | |
14895 | SEDOBJ!$SEDOBJ$ac_delim | |
14896 | LIBOBJS!$LIBOBJS$ac_delim | |
14897 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
14898 | _ACEOF | |
14899 | ||
4536ee25 | 14900 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then |
631ef239 AC |
14901 | break |
14902 | elif $ac_last_try; then | |
14903 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
14904 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
14905 | { (exit 1); exit 1; }; } | |
14906 | else | |
14907 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 14908 | fi |
631ef239 | 14909 | done |
212380e3 | 14910 | |
631ef239 AC |
14911 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
14912 | if test -n "$ac_eof"; then | |
14913 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
14914 | ac_eof=`expr $ac_eof + 1` | |
14915 | fi | |
14916 | ||
14917 | cat >>$CONFIG_STATUS <<_ACEOF | |
14918 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
14919 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
14920 | _ACEOF | |
14921 | sed ' | |
14922 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
14923 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
14924 | :n | |
14925 | t n | |
14926 | s/'"$ac_delim"'$/,g/; t | |
14927 | s/$/\\/; p | |
14928 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
14929 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
14930 | rm -f conf$$subs.sed | |
14931 | cat >>$CONFIG_STATUS <<_ACEOF | |
14932 | :end | |
14933 | s/|#_!!_#|//g | |
14934 | CEOF$ac_eof | |
212380e3 | 14935 | _ACEOF |
631ef239 AC |
14936 | |
14937 | ||
14938 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
14939 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14940 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14941 | # (actually we leave an empty line to preserve line numbers). | |
14942 | if test "x$srcdir" = x.; then | |
14943 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14944 | s/:*\$(srcdir):*/:/ | |
14945 | s/:*\${srcdir}:*/:/ | |
14946 | s/:*@srcdir@:*/:/ | |
14947 | s/^\([^=]*=[ ]*\):*/\1/ | |
14948 | s/:*$// | |
14949 | s/^[^=]*=[ ]*$// | |
14950 | }' | |
14951 | fi | |
14952 | ||
212380e3 | 14953 | cat >>$CONFIG_STATUS <<\_ACEOF |
631ef239 AC |
14954 | fi # test -n "$CONFIG_FILES" |
14955 | ||
14956 | ||
14957 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
14958 | do | |
14959 | case $ac_tag in | |
14960 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14961 | esac | |
14962 | case $ac_mode$ac_tag in | |
14963 | :[FHL]*:*);; | |
14964 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
14965 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
14966 | { (exit 1); exit 1; }; };; | |
14967 | :[FH]-) ac_tag=-:-;; | |
14968 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 14969 | esac |
631ef239 AC |
14970 | ac_save_IFS=$IFS |
14971 | IFS=: | |
14972 | set x $ac_tag | |
14973 | IFS=$ac_save_IFS | |
14974 | shift | |
14975 | ac_file=$1 | |
14976 | shift | |
212380e3 | 14977 | |
631ef239 AC |
14978 | case $ac_mode in |
14979 | :L) ac_source=$1;; | |
14980 | :[FH]) | |
14981 | ac_file_inputs= | |
14982 | for ac_f | |
14983 | do | |
14984 | case $ac_f in | |
14985 | -) ac_f="$tmp/stdin";; | |
14986 | *) # Look for the file first in the build tree, then in the source tree | |
14987 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14988 | # because $ac_f cannot contain `:'. | |
14989 | test -f "$ac_f" || | |
14990 | case $ac_f in | |
14991 | [\\/$]*) false;; | |
14992 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14993 | esac || | |
14994 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
14995 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
14996 | { (exit 1); exit 1; }; };; | |
14997 | esac | |
14998 | ac_file_inputs="$ac_file_inputs $ac_f" | |
14999 | done | |
15000 | ||
15001 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15002 | # use $as_me), people would be surprised to read: | |
15003 | # /* config.h. Generated by config.status. */ | |
15004 | configure_input="Generated from "`IFS=: | |
15005 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
15006 | if test x"$ac_file" != x-; then | |
15007 | configure_input="$ac_file. $configure_input" | |
15008 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
15009 | echo "$as_me: creating $ac_file" >&6;} | |
15010 | fi | |
15011 | ||
15012 | case $ac_tag in | |
15013 | *:-:* | *:-) cat >"$tmp/stdin";; | |
15014 | esac | |
15015 | ;; | |
15016 | esac | |
15017 | ||
15018 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 AC |
15019 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15020 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15021 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 15022 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 15023 | echo X"$ac_file" | |
631ef239 AC |
15024 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
15025 | s//\1/ | |
15026 | q | |
15027 | } | |
15028 | /^X\(\/\/\)[^/].*/{ | |
15029 | s//\1/ | |
15030 | q | |
15031 | } | |
15032 | /^X\(\/\/\)$/{ | |
15033 | s//\1/ | |
15034 | q | |
15035 | } | |
15036 | /^X\(\/\).*/{ | |
15037 | s//\1/ | |
15038 | q | |
15039 | } | |
15040 | s/.*/./; q'` | |
15041 | { as_dir="$ac_dir" | |
15042 | case $as_dir in #( | |
15043 | -*) as_dir=./$as_dir;; | |
15044 | esac | |
15045 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
212380e3 | 15046 | as_dirs= |
631ef239 AC |
15047 | while :; do |
15048 | case $as_dir in #( | |
15049 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
15050 | *) as_qdir=$as_dir;; | |
15051 | esac | |
15052 | as_dirs="'$as_qdir' $as_dirs" | |
15053 | as_dir=`$as_dirname -- "$as_dir" || | |
212380e3 AC |
15054 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15055 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15056 | X"$as_dir" : 'X\(//\)$' \| \ | |
631ef239 | 15057 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 15058 | echo X"$as_dir" | |
631ef239 AC |
15059 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
15060 | s//\1/ | |
15061 | q | |
15062 | } | |
15063 | /^X\(\/\/\)[^/].*/{ | |
15064 | s//\1/ | |
15065 | q | |
15066 | } | |
15067 | /^X\(\/\/\)$/{ | |
15068 | s//\1/ | |
15069 | q | |
15070 | } | |
15071 | /^X\(\/\).*/{ | |
15072 | s//\1/ | |
15073 | q | |
15074 | } | |
15075 | s/.*/./; q'` | |
15076 | test -d "$as_dir" && break | |
212380e3 | 15077 | done |
631ef239 AC |
15078 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
15079 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
15080 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
212380e3 | 15081 | { (exit 1); exit 1; }; }; } |
212380e3 AC |
15082 | ac_builddir=. |
15083 | ||
631ef239 AC |
15084 | case "$ac_dir" in |
15085 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15086 | *) | |
212380e3 | 15087 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
631ef239 AC |
15088 | # A ".." for each directory in $ac_dir_suffix. |
15089 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
15090 | case $ac_top_builddir_sub in | |
15091 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15092 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15093 | esac ;; | |
15094 | esac | |
15095 | ac_abs_top_builddir=$ac_pwd | |
15096 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15097 | # for backward compatibility: | |
15098 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
15099 | |
15100 | case $srcdir in | |
631ef239 | 15101 | .) # We are building in place. |
212380e3 | 15102 | ac_srcdir=. |
631ef239 AC |
15103 | ac_top_srcdir=$ac_top_builddir_sub |
15104 | ac_abs_top_srcdir=$ac_pwd ;; | |
15105 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 15106 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
15107 | ac_top_srcdir=$srcdir |
15108 | ac_abs_top_srcdir=$srcdir ;; | |
15109 | *) # Relative name. | |
15110 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15111 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15112 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 15113 | esac |
631ef239 | 15114 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 15115 | |
212380e3 | 15116 | |
631ef239 AC |
15117 | case $ac_mode in |
15118 | :F) | |
15119 | # | |
15120 | # CONFIG_FILE | |
15121 | # | |
212380e3 AC |
15122 | |
15123 | case $INSTALL in | |
15124 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 15125 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 15126 | esac |
631ef239 | 15127 | _ACEOF |
212380e3 | 15128 | |
631ef239 AC |
15129 | cat >>$CONFIG_STATUS <<\_ACEOF |
15130 | # If the template does not know about datarootdir, expand it. | |
15131 | # FIXME: This hack should be removed a few years after 2.60. | |
15132 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15133 | ||
15134 | case `sed -n '/datarootdir/ { | |
15135 | p | |
15136 | q | |
15137 | } | |
15138 | /@datadir@/p | |
15139 | /@docdir@/p | |
15140 | /@infodir@/p | |
15141 | /@localedir@/p | |
15142 | /@mandir@/p | |
15143 | ' $ac_file_inputs` in | |
15144 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15145 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15146 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15147 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
15148 | _ACEOF | |
15149 | cat >>$CONFIG_STATUS <<_ACEOF | |
15150 | ac_datarootdir_hack=' | |
15151 | s&@datadir@&$datadir&g | |
15152 | s&@docdir@&$docdir&g | |
15153 | s&@infodir@&$infodir&g | |
15154 | s&@localedir@&$localedir&g | |
15155 | s&@mandir@&$mandir&g | |
15156 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15157 | esac | |
212380e3 | 15158 | _ACEOF |
631ef239 AC |
15159 | |
15160 | # Neutralize VPATH when `$srcdir' = `.'. | |
15161 | # Shell code in configure.ac might set extrasub. | |
15162 | # FIXME: do we really want to maintain this feature? | |
212380e3 AC |
15163 | cat >>$CONFIG_STATUS <<_ACEOF |
15164 | sed "$ac_vpsub | |
15165 | $extrasub | |
15166 | _ACEOF | |
15167 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15168 | :t | |
15169 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
631ef239 AC |
15170 | s&@configure_input@&$configure_input&;t t |
15171 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15172 | s&@srcdir@&$ac_srcdir&;t t | |
15173 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15174 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15175 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15176 | s&@builddir@&$ac_builddir&;t t | |
15177 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15178 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15179 | s&@INSTALL@&$ac_INSTALL&;t t | |
15180 | $ac_datarootdir_hack | |
15181 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
15182 | ||
15183 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15184 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15185 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15186 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15187 | which seems to be undefined. Please make sure it is defined." >&5 | |
15188 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15189 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15190 | ||
15191 | rm -f "$tmp/stdin" | |
212380e3 | 15192 | case $ac_file in |
631ef239 AC |
15193 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
15194 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
212380e3 | 15195 | esac |
631ef239 AC |
15196 | ;; |
15197 | :H) | |
15198 | # | |
15199 | # CONFIG_HEADER | |
15200 | # | |
15201 | _ACEOF | |
15202 | ||
15203 | # Transform confdefs.h into a sed script `conftest.defines', that | |
15204 | # substitutes the proper values into config.h.in to produce config.h. | |
15205 | rm -f conftest.defines conftest.tail | |
15206 | # First, append a space to every undef/define line, to ease matching. | |
15207 | echo 's/$/ /' >conftest.defines | |
15208 | # Then, protect against being on the right side of a sed subst, or in | |
15209 | # an unquoted here document, in config.status. If some macros were | |
15210 | # called several times there might be several #defines for the same | |
15211 | # symbol, which is useless. But do not sort them, since the last | |
15212 | # AC_DEFINE must be honored. | |
15213 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
15214 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
15215 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
15216 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
15217 | # just an empty string. | |
15218 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
15219 | ac_dB='\\)[ (].*,\\1define\\2' | |
15220 | ac_dC=' ' | |
15221 | ac_dD=' ,' | |
15222 | ||
15223 | uniq confdefs.h | | |
15224 | sed -n ' | |
15225 | t rset | |
15226 | :rset | |
15227 | s/^[ ]*#[ ]*define[ ][ ]*// | |
15228 | t ok | |
15229 | d | |
15230 | :ok | |
15231 | s/[\\&,]/\\&/g | |
15232 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
15233 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
15234 | ' >>conftest.defines | |
15235 | ||
15236 | # Remove the space that was appended to ease matching. | |
15237 | # Then replace #undef with comments. This is necessary, for | |
212380e3 AC |
15238 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
15239 | # on some systems where configure will not decide to define it. | |
631ef239 AC |
15240 | # (The regexp can be short, since the line contains either #define or #undef.) |
15241 | echo 's/ $// | |
15242 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
15243 | ||
15244 | # Break up conftest.defines: | |
15245 | ac_max_sed_lines=50 | |
15246 | ||
15247 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
15248 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
15249 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
15250 | # et cetera. | |
15251 | ac_in='$ac_file_inputs' | |
15252 | ac_out='"$tmp/out1"' | |
15253 | ac_nxt='"$tmp/out2"' | |
15254 | ||
15255 | while : | |
212380e3 | 15256 | do |
631ef239 AC |
15257 | # Write a here document: |
15258 | cat >>$CONFIG_STATUS <<_ACEOF | |
15259 | # First, check the format of the line: | |
15260 | cat >"\$tmp/defines.sed" <<\\CEOF | |
15261 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
15262 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
15263 | b | |
15264 | :def | |
15265 | _ACEOF | |
15266 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
212380e3 | 15267 | echo 'CEOF |
631ef239 AC |
15268 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
15269 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
15270 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
15271 | grep . conftest.tail >/dev/null || break | |
212380e3 AC |
15272 | rm -f conftest.defines |
15273 | mv conftest.tail conftest.defines | |
15274 | done | |
631ef239 | 15275 | rm -f conftest.defines conftest.tail |
212380e3 | 15276 | |
631ef239 | 15277 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
212380e3 | 15278 | cat >>$CONFIG_STATUS <<\_ACEOF |
212380e3 | 15279 | if test x"$ac_file" != x-; then |
631ef239 AC |
15280 | echo "/* $configure_input */" >"$tmp/config.h" |
15281 | cat "$ac_result" >>"$tmp/config.h" | |
15282 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
212380e3 AC |
15283 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
15284 | echo "$as_me: $ac_file is unchanged" >&6;} | |
15285 | else | |
212380e3 | 15286 | rm -f $ac_file |
631ef239 | 15287 | mv "$tmp/config.h" $ac_file |
212380e3 AC |
15288 | fi |
15289 | else | |
631ef239 AC |
15290 | echo "/* $configure_input */" |
15291 | cat "$ac_result" | |
212380e3 | 15292 | fi |
631ef239 AC |
15293 | rm -f "$tmp/out12" |
15294 | ;; | |
15295 | ||
15296 | ||
15297 | esac | |
15298 | ||
15299 | done # for ac_tag | |
212380e3 | 15300 | |
212380e3 AC |
15301 | |
15302 | { (exit 0); exit 0; } | |
15303 | _ACEOF | |
15304 | chmod +x $CONFIG_STATUS | |
15305 | ac_clean_files=$ac_clean_files_save | |
15306 | ||
15307 | ||
15308 | # configure is writing to config.log, and then calls config.status. | |
15309 | # config.status does its own redirection, appending to config.log. | |
15310 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15311 | # by configure, so config.status won't be able to write to it; its | |
15312 | # output is simply discarded. So we exec the FD to /dev/null, | |
15313 | # effectively closing config.log, so it can be properly (re)opened and | |
15314 | # appended to by config.status. When coming back to configure, we | |
15315 | # need to make the FD available again. | |
15316 | if test "$no_create" != yes; then | |
15317 | ac_cs_success=: | |
15318 | ac_config_status_args= | |
15319 | test "$silent" = yes && | |
15320 | ac_config_status_args="$ac_config_status_args --quiet" | |
15321 | exec 5>/dev/null | |
15322 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15323 | exec 5>>config.log | |
15324 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15325 | # would make configure fail if this is the last instruction. | |
15326 | $ac_cs_success || { (exit 1); exit 1; } | |
15327 | fi | |
15328 | ||
15329 | ||
15330 | if test "$cf_openssl_version_ok" = yes; then | |
15331 | openssl="yes" | |
15332 | else | |
15333 | openssl="no" | |
15334 | fi | |
15335 | ||
15336 | if test "$shared_modules" = yes; then | |
15337 | modules=shared | |
15338 | else | |
15339 | modules=static | |
15340 | fi | |
15341 | ||
15342 | echo " | |
15343 | Configuration: | |
15344 | Install directory : $prefix | |
15345 | ||
15346 | Ziplinks : $zlib | |
15347 | OpenSSL : $openssl | |
15348 | Modules : $modules | |
15349 | IPv6 support : $have_v6 | |
15350 | Socket Engine : $SELECT_TYPE | |
15351 | Small network : $small_net | |
15352 | Block allocator : $balloc | |
212380e3 AC |
15353 | |
15354 | Nickname length : $NICKLEN | |
15355 | Topic length : $TOPICLEN | |
15356 | ||
15357 | Use make to compile Charybdis, then make install to install it. | |
15358 | " |