]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.61 for charybdis 3.1. | |
4 | # | |
5 | # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ | |
6 | # | |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
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 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
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+"$@"}'='"$@"' | |
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 | |
53 | fi | |
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 | ||
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 | ||
96 | # Work around bugs in pre-3.0 UWIN ksh. | |
97 | for as_var in ENV MAIL MAILPATH | |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
99 | done | |
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 | |
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
114 | fi | |
115 | done | |
116 | ||
117 | # Required to use basename. | |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
120 | as_expr=expr | |
121 | else | |
122 | as_expr=false | |
123 | fi | |
124 | ||
125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
126 | as_basename=basename | |
127 | else | |
128 | as_basename=false | |
129 | fi | |
130 | ||
131 | ||
132 | # Name of the executable. | |
133 | as_me=`$as_basename -- "$0" || | |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
135 | X"$0" : 'X\(//\)$' \| \ | |
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
137 | echo X/"$0" | | |
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'` | |
151 | ||
152 | # CDPATH. | |
153 | $as_unset CDPATH | |
154 | ||
155 | ||
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 | |
161 | fi | |
162 | ||
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 | } | |
179 | ||
180 | exitcode=0 | |
181 | if as_func_success; then | |
182 | : | |
183 | else | |
184 | exitcode=1 | |
185 | echo as_func_success failed. | |
186 | fi | |
187 | ||
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= | |
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=. | |
228 | case $as_dir in | |
229 | /*) | |
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 | ( | |
330 | as_lineno_1=$LINENO | |
331 | as_lineno_2=$LINENO | |
332 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
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" || { | |
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 | |
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. | |
437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
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 | | |
444 | sed ' | |
445 | s/[$]LINENO.*/&-/ | |
446 | t lineno | |
447 | b | |
448 | :lineno | |
449 | N | |
450 | :loop | |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
452 | t loop | |
453 | s/-\n.*// | |
454 | ' >$as_me.lineno && | |
455 | chmod +x "$as_me.lineno" || | |
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 | |
461 | # original and so on. Autoconf is especially sensitive to this). | |
462 | . "./$as_me.lineno" | |
463 | # Exit status is that of the last command. | |
464 | exit | |
465 | } | |
466 | ||
467 | ||
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';; | |
483 | esac | |
484 | ||
485 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
487 | as_expr=expr | |
488 | else | |
489 | as_expr=false | |
490 | fi | |
491 | ||
492 | rm -f conf$$ conf$$.exe conf$$.file | |
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 | |
499 | echo >conf$$.file | |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
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 || | |
507 | as_ln_s='cp -p' | |
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 | |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
514 | rmdir conf$$.dir 2>/dev/null | |
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 | ||
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 | |
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 | ||
553 | ||
554 | exec 7<&0 </dev/null 6>&1 | |
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 | ||
561 | # | |
562 | # Initializations. | |
563 | # | |
564 | ac_default_prefix=/usr/local | |
565 | ac_clean_files= | |
566 | ac_config_libobj_dir=. | |
567 | LIBOBJS= | |
568 | cross_compiling=no | |
569 | subdirs= | |
570 | MFLAGS= | |
571 | MAKEFLAGS= | |
572 | SHELL=${CONFIG_SHELL-/bin/sh} | |
573 | ||
574 | # Identity of this package. | |
575 | PACKAGE_NAME='charybdis' | |
576 | PACKAGE_TARNAME='charybdis' | |
577 | PACKAGE_VERSION='3.1' | |
578 | PACKAGE_STRING='charybdis 3.1' | |
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> | |
585 | #ifdef HAVE_SYS_TYPES_H | |
586 | # include <sys/types.h> | |
587 | #endif | |
588 | #ifdef HAVE_SYS_STAT_H | |
589 | # include <sys/stat.h> | |
590 | #endif | |
591 | #ifdef STDC_HEADERS | |
592 | # include <stdlib.h> | |
593 | # include <stddef.h> | |
594 | #else | |
595 | # ifdef HAVE_STDLIB_H | |
596 | # include <stdlib.h> | |
597 | # endif | |
598 | #endif | |
599 | #ifdef HAVE_STRING_H | |
600 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
601 | # include <memory.h> | |
602 | # endif | |
603 | # include <string.h> | |
604 | #endif | |
605 | #ifdef HAVE_STRINGS_H | |
606 | # include <strings.h> | |
607 | #endif | |
608 | #ifdef HAVE_INTTYPES_H | |
609 | # include <inttypes.h> | |
610 | #endif | |
611 | #ifdef HAVE_STDINT_H | |
612 | # include <stdint.h> | |
613 | #endif | |
614 | #ifdef HAVE_UNISTD_H | |
615 | # include <unistd.h> | |
616 | #endif" | |
617 | ||
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 | subdirs | |
663 | MKDEP | |
664 | MAKEDEPEND | |
665 | STDOUT | |
666 | CPP | |
667 | GREP | |
668 | EGREP | |
669 | SET_MAKE | |
670 | INSTALL_PROGRAM | |
671 | INSTALL_SCRIPT | |
672 | INSTALL_DATA | |
673 | RM | |
674 | CP | |
675 | MV | |
676 | LN | |
677 | SED | |
678 | AR | |
679 | LD | |
680 | RANLIB | |
681 | TOUCH | |
682 | YACC | |
683 | YFLAGS | |
684 | LEX | |
685 | LEX_OUTPUT_ROOT | |
686 | LEXLIB | |
687 | CRYPT_LIB | |
688 | VICONF | |
689 | ALLOCA | |
690 | ENCSPEED | |
691 | ZLIB_LD | |
692 | ETC_DIR | |
693 | confdir | |
694 | LOG_DIR | |
695 | logdir | |
696 | HELP_DIR | |
697 | helpdir | |
698 | MODULE_DIR | |
699 | moduledir | |
700 | SELECT_TYPE | |
701 | MODULES_LIBS | |
702 | MOD_TARGET | |
703 | SSL_SRCS_ENABLE | |
704 | SSL_INCLUDES | |
705 | SSL_LIBS | |
706 | PICFLAGS | |
707 | IRC_CFLAGS | |
708 | SEDOBJ | |
709 | LIBOBJS | |
710 | LTLIBOBJS' | |
711 | ac_subst_files='' | |
712 | ac_precious_vars='build_alias | |
713 | host_alias | |
714 | target_alias | |
715 | CC | |
716 | CFLAGS | |
717 | LDFLAGS | |
718 | LIBS | |
719 | CPPFLAGS | |
720 | CPP | |
721 | YACC | |
722 | YFLAGS' | |
723 | ac_subdirs_all='libratbox' | |
724 | ||
725 | # Initialize some variables set by options. | |
726 | ac_init_help= | |
727 | ac_init_version=false | |
728 | # The variables have the same names as the options, with | |
729 | # dashes changed to underlines. | |
730 | cache_file=/dev/null | |
731 | exec_prefix=NONE | |
732 | no_create= | |
733 | no_recursion= | |
734 | prefix=NONE | |
735 | program_prefix=NONE | |
736 | program_suffix=NONE | |
737 | program_transform_name=s,x,x, | |
738 | silent= | |
739 | site= | |
740 | srcdir= | |
741 | verbose= | |
742 | x_includes=NONE | |
743 | x_libraries=NONE | |
744 | ||
745 | # Installation directory options. | |
746 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
747 | # and all the variables that are supposed to be based on exec_prefix | |
748 | # by default will actually change. | |
749 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
750 | # (The list follows the same order as the GNU Coding Standards.) | |
751 | bindir='${exec_prefix}/bin' | |
752 | sbindir='${exec_prefix}/sbin' | |
753 | libexecdir='${exec_prefix}/libexec' | |
754 | datarootdir='${prefix}/share' | |
755 | datadir='${datarootdir}' | |
756 | sysconfdir='${prefix}/etc' | |
757 | sharedstatedir='${prefix}/com' | |
758 | localstatedir='${prefix}/var' | |
759 | includedir='${prefix}/include' | |
760 | oldincludedir='/usr/include' | |
761 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
762 | infodir='${datarootdir}/info' | |
763 | htmldir='${docdir}' | |
764 | dvidir='${docdir}' | |
765 | pdfdir='${docdir}' | |
766 | psdir='${docdir}' | |
767 | libdir='${exec_prefix}/lib' | |
768 | localedir='${datarootdir}/locale' | |
769 | mandir='${datarootdir}/man' | |
770 | ||
771 | ac_prev= | |
772 | ac_dashdash= | |
773 | for ac_option | |
774 | do | |
775 | # If the previous option needs an argument, assign it. | |
776 | if test -n "$ac_prev"; then | |
777 | eval $ac_prev=\$ac_option | |
778 | ac_prev= | |
779 | continue | |
780 | fi | |
781 | ||
782 | case $ac_option in | |
783 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
784 | *) ac_optarg=yes ;; | |
785 | esac | |
786 | ||
787 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
788 | ||
789 | case $ac_dashdash$ac_option in | |
790 | --) | |
791 | ac_dashdash=yes ;; | |
792 | ||
793 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
794 | ac_prev=bindir ;; | |
795 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
796 | bindir=$ac_optarg ;; | |
797 | ||
798 | -build | --build | --buil | --bui | --bu) | |
799 | ac_prev=build_alias ;; | |
800 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
801 | build_alias=$ac_optarg ;; | |
802 | ||
803 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
804 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
805 | ac_prev=cache_file ;; | |
806 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
807 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
808 | cache_file=$ac_optarg ;; | |
809 | ||
810 | --config-cache | -C) | |
811 | cache_file=config.cache ;; | |
812 | ||
813 | -datadir | --datadir | --datadi | --datad) | |
814 | ac_prev=datadir ;; | |
815 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
816 | datadir=$ac_optarg ;; | |
817 | ||
818 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
819 | | --dataroo | --dataro | --datar) | |
820 | ac_prev=datarootdir ;; | |
821 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
822 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
823 | datarootdir=$ac_optarg ;; | |
824 | ||
825 | -disable-* | --disable-*) | |
826 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
827 | # Reject names that are not valid shell variable names. | |
828 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
829 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
830 | { (exit 1); exit 1; }; } | |
831 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
832 | eval enable_$ac_feature=no ;; | |
833 | ||
834 | -docdir | --docdir | --docdi | --doc | --do) | |
835 | ac_prev=docdir ;; | |
836 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
837 | docdir=$ac_optarg ;; | |
838 | ||
839 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
840 | ac_prev=dvidir ;; | |
841 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
842 | dvidir=$ac_optarg ;; | |
843 | ||
844 | -enable-* | --enable-*) | |
845 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
846 | # Reject names that are not valid shell variable names. | |
847 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
848 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
849 | { (exit 1); exit 1; }; } | |
850 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
851 | eval enable_$ac_feature=\$ac_optarg ;; | |
852 | ||
853 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
854 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
855 | | --exec | --exe | --ex) | |
856 | ac_prev=exec_prefix ;; | |
857 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
858 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
859 | | --exec=* | --exe=* | --ex=*) | |
860 | exec_prefix=$ac_optarg ;; | |
861 | ||
862 | -gas | --gas | --ga | --g) | |
863 | # Obsolete; use --with-gas. | |
864 | with_gas=yes ;; | |
865 | ||
866 | -help | --help | --hel | --he | -h) | |
867 | ac_init_help=long ;; | |
868 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
869 | ac_init_help=recursive ;; | |
870 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
871 | ac_init_help=short ;; | |
872 | ||
873 | -host | --host | --hos | --ho) | |
874 | ac_prev=host_alias ;; | |
875 | -host=* | --host=* | --hos=* | --ho=*) | |
876 | host_alias=$ac_optarg ;; | |
877 | ||
878 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
879 | ac_prev=htmldir ;; | |
880 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
881 | | --ht=*) | |
882 | htmldir=$ac_optarg ;; | |
883 | ||
884 | -includedir | --includedir | --includedi | --included | --include \ | |
885 | | --includ | --inclu | --incl | --inc) | |
886 | ac_prev=includedir ;; | |
887 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
888 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
889 | includedir=$ac_optarg ;; | |
890 | ||
891 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
892 | ac_prev=infodir ;; | |
893 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
894 | infodir=$ac_optarg ;; | |
895 | ||
896 | -libdir | --libdir | --libdi | --libd) | |
897 | ac_prev=libdir ;; | |
898 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
899 | libdir=$ac_optarg ;; | |
900 | ||
901 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
902 | | --libexe | --libex | --libe) | |
903 | ac_prev=libexecdir ;; | |
904 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
905 | | --libexe=* | --libex=* | --libe=*) | |
906 | libexecdir=$ac_optarg ;; | |
907 | ||
908 | -localedir | --localedir | --localedi | --localed | --locale) | |
909 | ac_prev=localedir ;; | |
910 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
911 | localedir=$ac_optarg ;; | |
912 | ||
913 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
914 | | --localstate | --localstat | --localsta | --localst | --locals) | |
915 | ac_prev=localstatedir ;; | |
916 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
917 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
918 | localstatedir=$ac_optarg ;; | |
919 | ||
920 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
921 | ac_prev=mandir ;; | |
922 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
923 | mandir=$ac_optarg ;; | |
924 | ||
925 | -nfp | --nfp | --nf) | |
926 | # Obsolete; use --without-fp. | |
927 | with_fp=no ;; | |
928 | ||
929 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
930 | | --no-cr | --no-c | -n) | |
931 | no_create=yes ;; | |
932 | ||
933 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
934 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
935 | no_recursion=yes ;; | |
936 | ||
937 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
938 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
939 | | --oldin | --oldi | --old | --ol | --o) | |
940 | ac_prev=oldincludedir ;; | |
941 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
942 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
943 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
944 | oldincludedir=$ac_optarg ;; | |
945 | ||
946 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
947 | ac_prev=prefix ;; | |
948 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
949 | prefix=$ac_optarg ;; | |
950 | ||
951 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
952 | | --program-pre | --program-pr | --program-p) | |
953 | ac_prev=program_prefix ;; | |
954 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
955 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
956 | program_prefix=$ac_optarg ;; | |
957 | ||
958 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
959 | | --program-suf | --program-su | --program-s) | |
960 | ac_prev=program_suffix ;; | |
961 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
962 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
963 | program_suffix=$ac_optarg ;; | |
964 | ||
965 | -program-transform-name | --program-transform-name \ | |
966 | | --program-transform-nam | --program-transform-na \ | |
967 | | --program-transform-n | --program-transform- \ | |
968 | | --program-transform | --program-transfor \ | |
969 | | --program-transfo | --program-transf \ | |
970 | | --program-trans | --program-tran \ | |
971 | | --progr-tra | --program-tr | --program-t) | |
972 | ac_prev=program_transform_name ;; | |
973 | -program-transform-name=* | --program-transform-name=* \ | |
974 | | --program-transform-nam=* | --program-transform-na=* \ | |
975 | | --program-transform-n=* | --program-transform-=* \ | |
976 | | --program-transform=* | --program-transfor=* \ | |
977 | | --program-transfo=* | --program-transf=* \ | |
978 | | --program-trans=* | --program-tran=* \ | |
979 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
980 | program_transform_name=$ac_optarg ;; | |
981 | ||
982 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
983 | ac_prev=pdfdir ;; | |
984 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
985 | pdfdir=$ac_optarg ;; | |
986 | ||
987 | -psdir | --psdir | --psdi | --psd | --ps) | |
988 | ac_prev=psdir ;; | |
989 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
990 | psdir=$ac_optarg ;; | |
991 | ||
992 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
993 | | -silent | --silent | --silen | --sile | --sil) | |
994 | silent=yes ;; | |
995 | ||
996 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
997 | ac_prev=sbindir ;; | |
998 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
999 | | --sbi=* | --sb=*) | |
1000 | sbindir=$ac_optarg ;; | |
1001 | ||
1002 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1003 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1004 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1005 | | --sha | --sh) | |
1006 | ac_prev=sharedstatedir ;; | |
1007 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1008 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1009 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1010 | | --sha=* | --sh=*) | |
1011 | sharedstatedir=$ac_optarg ;; | |
1012 | ||
1013 | -site | --site | --sit) | |
1014 | ac_prev=site ;; | |
1015 | -site=* | --site=* | --sit=*) | |
1016 | site=$ac_optarg ;; | |
1017 | ||
1018 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1019 | ac_prev=srcdir ;; | |
1020 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1021 | srcdir=$ac_optarg ;; | |
1022 | ||
1023 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1024 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1025 | ac_prev=sysconfdir ;; | |
1026 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1027 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1028 | sysconfdir=$ac_optarg ;; | |
1029 | ||
1030 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1031 | ac_prev=target_alias ;; | |
1032 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1033 | target_alias=$ac_optarg ;; | |
1034 | ||
1035 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1036 | verbose=yes ;; | |
1037 | ||
1038 | -version | --version | --versio | --versi | --vers | -V) | |
1039 | ac_init_version=: ;; | |
1040 | ||
1041 | -with-* | --with-*) | |
1042 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1043 | # Reject names that are not valid shell variable names. | |
1044 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1045 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1046 | { (exit 1); exit 1; }; } | |
1047 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1048 | eval with_$ac_package=\$ac_optarg ;; | |
1049 | ||
1050 | -without-* | --without-*) | |
1051 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1052 | # Reject names that are not valid shell variable names. | |
1053 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1054 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1055 | { (exit 1); exit 1; }; } | |
1056 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1057 | eval with_$ac_package=no ;; | |
1058 | ||
1059 | --x) | |
1060 | # Obsolete; use --with-x. | |
1061 | with_x=yes ;; | |
1062 | ||
1063 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1064 | | --x-incl | --x-inc | --x-in | --x-i) | |
1065 | ac_prev=x_includes ;; | |
1066 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1067 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1068 | x_includes=$ac_optarg ;; | |
1069 | ||
1070 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1071 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1072 | ac_prev=x_libraries ;; | |
1073 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1074 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1075 | x_libraries=$ac_optarg ;; | |
1076 | ||
1077 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1078 | Try \`$0 --help' for more information." >&2 | |
1079 | { (exit 1); exit 1; }; } | |
1080 | ;; | |
1081 | ||
1082 | *=*) | |
1083 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1084 | # Reject names that are not valid shell variable names. | |
1085 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1086 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1087 | { (exit 1); exit 1; }; } | |
1088 | eval $ac_envvar=\$ac_optarg | |
1089 | export $ac_envvar ;; | |
1090 | ||
1091 | *) | |
1092 | # FIXME: should be removed in autoconf 3.0. | |
1093 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1094 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1095 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1096 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1097 | ;; | |
1098 | ||
1099 | esac | |
1100 | done | |
1101 | ||
1102 | if test -n "$ac_prev"; then | |
1103 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1104 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1105 | { (exit 1); exit 1; }; } | |
1106 | fi | |
1107 | ||
1108 | # Be sure to have absolute directory names. | |
1109 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1110 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1111 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1112 | libdir localedir mandir | |
1113 | do | |
1114 | eval ac_val=\$$ac_var | |
1115 | case $ac_val in | |
1116 | [\\/$]* | ?:[\\/]* ) continue;; | |
1117 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1118 | esac | |
1119 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1120 | { (exit 1); exit 1; }; } | |
1121 | done | |
1122 | ||
1123 | # There might be people who depend on the old broken behavior: `$host' | |
1124 | # used to hold the argument of --host etc. | |
1125 | # FIXME: To remove some day. | |
1126 | build=$build_alias | |
1127 | host=$host_alias | |
1128 | target=$target_alias | |
1129 | ||
1130 | # FIXME: To remove some day. | |
1131 | if test "x$host_alias" != x; then | |
1132 | if test "x$build_alias" = x; then | |
1133 | cross_compiling=maybe | |
1134 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1135 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1136 | elif test "x$build_alias" != "x$host_alias"; then | |
1137 | cross_compiling=yes | |
1138 | fi | |
1139 | fi | |
1140 | ||
1141 | ac_tool_prefix= | |
1142 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1143 | ||
1144 | test "$silent" = yes && exec 6>/dev/null | |
1145 | ||
1146 | ||
1147 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1148 | ac_ls_di=`ls -di .` && | |
1149 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1150 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1151 | { (exit 1); exit 1; }; } | |
1152 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1153 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1154 | { (exit 1); exit 1; }; } | |
1155 | ||
1156 | ||
1157 | # Find the source files, if location was not specified. | |
1158 | if test -z "$srcdir"; then | |
1159 | ac_srcdir_defaulted=yes | |
1160 | # Try the directory containing this script, then the parent directory. | |
1161 | ac_confdir=`$as_dirname -- "$0" || | |
1162 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1163 | X"$0" : 'X\(//\)[^/]' \| \ | |
1164 | X"$0" : 'X\(//\)$' \| \ | |
1165 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1166 | echo X"$0" | | |
1167 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1168 | s//\1/ | |
1169 | q | |
1170 | } | |
1171 | /^X\(\/\/\)[^/].*/{ | |
1172 | s//\1/ | |
1173 | q | |
1174 | } | |
1175 | /^X\(\/\/\)$/{ | |
1176 | s//\1/ | |
1177 | q | |
1178 | } | |
1179 | /^X\(\/\).*/{ | |
1180 | s//\1/ | |
1181 | q | |
1182 | } | |
1183 | s/.*/./; q'` | |
1184 | srcdir=$ac_confdir | |
1185 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1186 | srcdir=.. | |
1187 | fi | |
1188 | else | |
1189 | ac_srcdir_defaulted=no | |
1190 | fi | |
1191 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1192 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1193 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1194 | { (exit 1); exit 1; }; } | |
1195 | fi | |
1196 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1197 | ac_abs_confdir=`( | |
1198 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
1199 | { (exit 1); exit 1; }; } | |
1200 | pwd)` | |
1201 | # When building in place, set srcdir=. | |
1202 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1203 | srcdir=. | |
1204 | fi | |
1205 | # Remove unnecessary trailing slashes from srcdir. | |
1206 | # Double slashes in file names in object file debugging info | |
1207 | # mess up M-x gdb in Emacs. | |
1208 | case $srcdir in | |
1209 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1210 | esac | |
1211 | for ac_var in $ac_precious_vars; do | |
1212 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1213 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1214 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1215 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1216 | done | |
1217 | ||
1218 | # | |
1219 | # Report the --help message. | |
1220 | # | |
1221 | if test "$ac_init_help" = "long"; then | |
1222 | # Omit some internal or obsolete options to make the list less imposing. | |
1223 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1224 | cat <<_ACEOF | |
1225 | \`configure' configures charybdis 3.1 to adapt to many kinds of systems. | |
1226 | ||
1227 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1228 | ||
1229 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1230 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1231 | ||
1232 | Defaults for the options are specified in brackets. | |
1233 | ||
1234 | Configuration: | |
1235 | -h, --help display this help and exit | |
1236 | --help=short display options specific to this package | |
1237 | --help=recursive display the short help of all the included packages | |
1238 | -V, --version display version information and exit | |
1239 | -q, --quiet, --silent do not print \`checking...' messages | |
1240 | --cache-file=FILE cache test results in FILE [disabled] | |
1241 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1242 | -n, --no-create do not create output files | |
1243 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1244 | ||
1245 | Installation directories: | |
1246 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1247 | [$ac_default_prefix] | |
1248 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1249 | [PREFIX] | |
1250 | ||
1251 | By default, \`make install' will install all the files in | |
1252 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1253 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1254 | for instance \`--prefix=\$HOME'. | |
1255 | ||
1256 | For better control, use the options below. | |
1257 | ||
1258 | Fine tuning of the installation directories: | |
1259 | --bindir=DIR user executables [EPREFIX/bin] | |
1260 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1261 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1262 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1263 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1264 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1265 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1266 | --includedir=DIR C header files [PREFIX/include] | |
1267 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1268 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1269 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1270 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1271 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1272 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1273 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1274 | --htmldir=DIR html documentation [DOCDIR] | |
1275 | --dvidir=DIR dvi documentation [DOCDIR] | |
1276 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1277 | --psdir=DIR ps documentation [DOCDIR] | |
1278 | _ACEOF | |
1279 | ||
1280 | cat <<\_ACEOF | |
1281 | _ACEOF | |
1282 | fi | |
1283 | ||
1284 | if test -n "$ac_init_help"; then | |
1285 | case $ac_init_help in | |
1286 | short | recursive ) echo "Configuration of charybdis 3.1:";; | |
1287 | esac | |
1288 | cat <<\_ACEOF | |
1289 | ||
1290 | Optional Features: | |
1291 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1292 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1293 | --enable-ipv6 Enable IPv6 support | |
1294 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). | |
1295 | --disable-openssl Disable OpenSSL support. | |
1296 | --disable-zlib Disable ziplinks support | |
1297 | --enable-ports Force solaris I/O ports subsystem usage. | |
1298 | --enable-poll Force poll() usage. | |
1299 | --enable-select Force select() usage. | |
1300 | --enable-kqueue Force kqueue() usage. | |
1301 | --enable-epoll Force sys_epoll usage (Linux only). | |
1302 | --enable-assert Enable assert(). Choose between soft(warnings) and | |
1303 | hard(aborts the daemon) | |
1304 | --enable-iodebug Enable IO Debugging hooks | |
1305 | --enable-profile Enable profiling | |
1306 | --disable-balloc Disable the block allocator. | |
1307 | --enable-small-net Enable small network support. | |
1308 | --enable-warnings Enable all sorts of warnings for debugging. | |
1309 | ||
1310 | Optional Packages: | |
1311 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1312 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1313 | --with-zlib-path=DIR Path to libz.so for ziplinks support. | |
1314 | --with-confdir=DIR Directory to install config files. | |
1315 | --with-logdir=DIR Directory where to write logfiles. | |
1316 | --with-helpdir=DIR Directory to install help files. | |
1317 | --with-moduledir=DIR Directory to install modules. | |
1318 | --with-nicklen=LENGTH Set the nick length to LENGTH (default 15, max 50) | |
1319 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max | |
1320 | 390) | |
1321 | ||
1322 | Some influential environment variables: | |
1323 | CC C compiler command | |
1324 | CFLAGS C compiler flags | |
1325 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1326 | nonstandard directory <lib dir> | |
1327 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1328 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1329 | you have headers in a nonstandard directory <include dir> | |
1330 | CPP C preprocessor | |
1331 | YACC The `Yet Another C Compiler' implementation to use. Defaults to | |
1332 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1333 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1334 | This script will default YFLAGS to the empty string to avoid a | |
1335 | default value of `-d' given by some make applications. | |
1336 | ||
1337 | Use these variables to override the choices made by `configure' or to help | |
1338 | it to find libraries and programs with nonstandard names/locations. | |
1339 | ||
1340 | _ACEOF | |
1341 | ac_status=$? | |
1342 | fi | |
1343 | ||
1344 | if test "$ac_init_help" = "recursive"; then | |
1345 | # If there are subdirs, report their specific --help. | |
1346 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1347 | test -d "$ac_dir" || continue | |
1348 | ac_builddir=. | |
1349 | ||
1350 | case "$ac_dir" in | |
1351 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1352 | *) | |
1353 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1354 | # A ".." for each directory in $ac_dir_suffix. | |
1355 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1356 | case $ac_top_builddir_sub in | |
1357 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1358 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1359 | esac ;; | |
1360 | esac | |
1361 | ac_abs_top_builddir=$ac_pwd | |
1362 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1363 | # for backward compatibility: | |
1364 | ac_top_builddir=$ac_top_build_prefix | |
1365 | ||
1366 | case $srcdir in | |
1367 | .) # We are building in place. | |
1368 | ac_srcdir=. | |
1369 | ac_top_srcdir=$ac_top_builddir_sub | |
1370 | ac_abs_top_srcdir=$ac_pwd ;; | |
1371 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1372 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1373 | ac_top_srcdir=$srcdir | |
1374 | ac_abs_top_srcdir=$srcdir ;; | |
1375 | *) # Relative name. | |
1376 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1377 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1378 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1379 | esac | |
1380 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1381 | ||
1382 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1383 | # Check for guested configure. | |
1384 | if test -f "$ac_srcdir/configure.gnu"; then | |
1385 | echo && | |
1386 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1387 | elif test -f "$ac_srcdir/configure"; then | |
1388 | echo && | |
1389 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1390 | else | |
1391 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1392 | fi || ac_status=$? | |
1393 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1394 | done | |
1395 | fi | |
1396 | ||
1397 | test -n "$ac_init_help" && exit $ac_status | |
1398 | if $ac_init_version; then | |
1399 | cat <<\_ACEOF | |
1400 | charybdis configure 3.1 | |
1401 | generated by GNU Autoconf 2.61 | |
1402 | ||
1403 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1404 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1405 | This configure script is free software; the Free Software Foundation | |
1406 | gives unlimited permission to copy, distribute and modify it. | |
1407 | ||
1408 | $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ | |
1409 | _ACEOF | |
1410 | exit | |
1411 | fi | |
1412 | cat >config.log <<_ACEOF | |
1413 | This file contains any messages produced by compilers while | |
1414 | running configure, to aid debugging if configure makes a mistake. | |
1415 | ||
1416 | It was created by charybdis $as_me 3.1, which was | |
1417 | generated by GNU Autoconf 2.61. Invocation command line was | |
1418 | ||
1419 | $ $0 $@ | |
1420 | ||
1421 | _ACEOF | |
1422 | exec 5>>config.log | |
1423 | { | |
1424 | cat <<_ASUNAME | |
1425 | ## --------- ## | |
1426 | ## Platform. ## | |
1427 | ## --------- ## | |
1428 | ||
1429 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1430 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1431 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1432 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1433 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1434 | ||
1435 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1436 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1437 | ||
1438 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1439 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1440 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1441 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1442 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1443 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1444 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1445 | ||
1446 | _ASUNAME | |
1447 | ||
1448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1449 | for as_dir in $PATH | |
1450 | do | |
1451 | IFS=$as_save_IFS | |
1452 | test -z "$as_dir" && as_dir=. | |
1453 | echo "PATH: $as_dir" | |
1454 | done | |
1455 | IFS=$as_save_IFS | |
1456 | ||
1457 | } >&5 | |
1458 | ||
1459 | cat >&5 <<_ACEOF | |
1460 | ||
1461 | ||
1462 | ## ----------- ## | |
1463 | ## Core tests. ## | |
1464 | ## ----------- ## | |
1465 | ||
1466 | _ACEOF | |
1467 | ||
1468 | ||
1469 | # Keep a trace of the command line. | |
1470 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1471 | # Strip out --silent because we don't want to record it for future runs. | |
1472 | # Also quote any args containing shell meta-characters. | |
1473 | # Make two passes to allow for proper duplicate-argument suppression. | |
1474 | ac_configure_args= | |
1475 | ac_configure_args0= | |
1476 | ac_configure_args1= | |
1477 | ac_must_keep_next=false | |
1478 | for ac_pass in 1 2 | |
1479 | do | |
1480 | for ac_arg | |
1481 | do | |
1482 | case $ac_arg in | |
1483 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1484 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1485 | | -silent | --silent | --silen | --sile | --sil) | |
1486 | continue ;; | |
1487 | *\'*) | |
1488 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1489 | esac | |
1490 | case $ac_pass in | |
1491 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1492 | 2) | |
1493 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1494 | if test $ac_must_keep_next = true; then | |
1495 | ac_must_keep_next=false # Got value, back to normal. | |
1496 | else | |
1497 | case $ac_arg in | |
1498 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1499 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1500 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1501 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1502 | case "$ac_configure_args0 " in | |
1503 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1504 | esac | |
1505 | ;; | |
1506 | -* ) ac_must_keep_next=true ;; | |
1507 | esac | |
1508 | fi | |
1509 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
1510 | ;; | |
1511 | esac | |
1512 | done | |
1513 | done | |
1514 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1515 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1516 | ||
1517 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1518 | # config.log. We remove comments because anyway the quotes in there | |
1519 | # would cause problems or look ugly. | |
1520 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1521 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1522 | trap 'exit_status=$? | |
1523 | # Save into config.log some information that might help in debugging. | |
1524 | { | |
1525 | echo | |
1526 | ||
1527 | cat <<\_ASBOX | |
1528 | ## ---------------- ## | |
1529 | ## Cache variables. ## | |
1530 | ## ---------------- ## | |
1531 | _ASBOX | |
1532 | echo | |
1533 | # The following way of writing the cache mishandles newlines in values, | |
1534 | ( | |
1535 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1536 | eval ac_val=\$$ac_var | |
1537 | case $ac_val in #( | |
1538 | *${as_nl}*) | |
1539 | case $ac_var in #( | |
1540 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1541 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1542 | esac | |
1543 | case $ac_var in #( | |
1544 | _ | IFS | as_nl) ;; #( | |
1545 | *) $as_unset $ac_var ;; | |
1546 | esac ;; | |
1547 | esac | |
1548 | done | |
1549 | (set) 2>&1 | | |
1550 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1551 | *${as_nl}ac_space=\ *) | |
1552 | sed -n \ | |
1553 | "s/'\''/'\''\\\\'\'''\''/g; | |
1554 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1555 | ;; #( | |
1556 | *) | |
1557 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1558 | ;; | |
1559 | esac | | |
1560 | sort | |
1561 | ) | |
1562 | echo | |
1563 | ||
1564 | cat <<\_ASBOX | |
1565 | ## ----------------- ## | |
1566 | ## Output variables. ## | |
1567 | ## ----------------- ## | |
1568 | _ASBOX | |
1569 | echo | |
1570 | for ac_var in $ac_subst_vars | |
1571 | do | |
1572 | eval ac_val=\$$ac_var | |
1573 | case $ac_val in | |
1574 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1575 | esac | |
1576 | echo "$ac_var='\''$ac_val'\''" | |
1577 | done | sort | |
1578 | echo | |
1579 | ||
1580 | if test -n "$ac_subst_files"; then | |
1581 | cat <<\_ASBOX | |
1582 | ## ------------------- ## | |
1583 | ## File substitutions. ## | |
1584 | ## ------------------- ## | |
1585 | _ASBOX | |
1586 | echo | |
1587 | for ac_var in $ac_subst_files | |
1588 | do | |
1589 | eval ac_val=\$$ac_var | |
1590 | case $ac_val in | |
1591 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1592 | esac | |
1593 | echo "$ac_var='\''$ac_val'\''" | |
1594 | done | sort | |
1595 | echo | |
1596 | fi | |
1597 | ||
1598 | if test -s confdefs.h; then | |
1599 | cat <<\_ASBOX | |
1600 | ## ----------- ## | |
1601 | ## confdefs.h. ## | |
1602 | ## ----------- ## | |
1603 | _ASBOX | |
1604 | echo | |
1605 | cat confdefs.h | |
1606 | echo | |
1607 | fi | |
1608 | test "$ac_signal" != 0 && | |
1609 | echo "$as_me: caught signal $ac_signal" | |
1610 | echo "$as_me: exit $exit_status" | |
1611 | } >&5 | |
1612 | rm -f core *.core core.conftest.* && | |
1613 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1614 | exit $exit_status | |
1615 | ' 0 | |
1616 | for ac_signal in 1 2 13 15; do | |
1617 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1618 | done | |
1619 | ac_signal=0 | |
1620 | ||
1621 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1622 | rm -f -r conftest* confdefs.h | |
1623 | ||
1624 | # Predefined preprocessor variables. | |
1625 | ||
1626 | cat >>confdefs.h <<_ACEOF | |
1627 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1628 | _ACEOF | |
1629 | ||
1630 | ||
1631 | cat >>confdefs.h <<_ACEOF | |
1632 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1633 | _ACEOF | |
1634 | ||
1635 | ||
1636 | cat >>confdefs.h <<_ACEOF | |
1637 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1638 | _ACEOF | |
1639 | ||
1640 | ||
1641 | cat >>confdefs.h <<_ACEOF | |
1642 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1643 | _ACEOF | |
1644 | ||
1645 | ||
1646 | cat >>confdefs.h <<_ACEOF | |
1647 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1648 | _ACEOF | |
1649 | ||
1650 | ||
1651 | # Let the site file select an alternate cache file if it wants to. | |
1652 | # Prefer explicitly selected file to automatically selected ones. | |
1653 | if test -n "$CONFIG_SITE"; then | |
1654 | set x "$CONFIG_SITE" | |
1655 | elif test "x$prefix" != xNONE; then | |
1656 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1657 | else | |
1658 | set x "$ac_default_prefix/share/config.site" \ | |
1659 | "$ac_default_prefix/etc/config.site" | |
1660 | fi | |
1661 | shift | |
1662 | for ac_site_file | |
1663 | do | |
1664 | if test -r "$ac_site_file"; then | |
1665 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1666 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1667 | sed 's/^/| /' "$ac_site_file" >&5 | |
1668 | . "$ac_site_file" | |
1669 | fi | |
1670 | done | |
1671 | ||
1672 | if test -r "$cache_file"; then | |
1673 | # Some versions of bash will fail to source /dev/null (special | |
1674 | # files actually), so we avoid doing that. | |
1675 | if test -f "$cache_file"; then | |
1676 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1677 | echo "$as_me: loading cache $cache_file" >&6;} | |
1678 | case $cache_file in | |
1679 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1680 | *) . "./$cache_file";; | |
1681 | esac | |
1682 | fi | |
1683 | else | |
1684 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1685 | echo "$as_me: creating cache $cache_file" >&6;} | |
1686 | >$cache_file | |
1687 | fi | |
1688 | ||
1689 | # Check that the precious variables saved in the cache have kept the same | |
1690 | # value. | |
1691 | ac_cache_corrupted=false | |
1692 | for ac_var in $ac_precious_vars; do | |
1693 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1694 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1695 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1696 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1697 | case $ac_old_set,$ac_new_set in | |
1698 | set,) | |
1699 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1700 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1701 | ac_cache_corrupted=: ;; | |
1702 | ,set) | |
1703 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1704 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1705 | ac_cache_corrupted=: ;; | |
1706 | ,);; | |
1707 | *) | |
1708 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1709 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1710 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1711 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1712 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1713 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1714 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1715 | ac_cache_corrupted=: | |
1716 | fi;; | |
1717 | esac | |
1718 | # Pass precious variables to config.status. | |
1719 | if test "$ac_new_set" = set; then | |
1720 | case $ac_new_val in | |
1721 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1722 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1723 | esac | |
1724 | case " $ac_configure_args " in | |
1725 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1726 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1727 | esac | |
1728 | fi | |
1729 | done | |
1730 | if $ac_cache_corrupted; then | |
1731 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1732 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1733 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1734 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1735 | { (exit 1); exit 1; }; } | |
1736 | fi | |
1737 | ||
1738 | ||
1739 | ||
1740 | ||
1741 | ||
1742 | ||
1743 | ||
1744 | ||
1745 | ||
1746 | ||
1747 | ||
1748 | ||
1749 | ||
1750 | ||
1751 | ||
1752 | ||
1753 | ||
1754 | ||
1755 | ||
1756 | ||
1757 | ||
1758 | ||
1759 | ||
1760 | ||
1761 | ||
1762 | ac_ext=c | |
1763 | ac_cpp='$CPP $CPPFLAGS' | |
1764 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1765 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1766 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1767 | ||
1768 | ||
1769 | ||
1770 | ac_config_headers="$ac_config_headers include/setup.h" | |
1771 | ||
1772 | ||
1773 | ||
1774 | ||
1775 | ||
1776 | cat >>confdefs.h <<\_ACEOF | |
1777 | #define _GNU_SOURCE 1 | |
1778 | _ACEOF | |
1779 | ||
1780 | ||
1781 | ||
1782 | OLD_CFLAGS="$CFLAGS" | |
1783 | ac_ext=c | |
1784 | ac_cpp='$CPP $CPPFLAGS' | |
1785 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1786 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1787 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1788 | if test -n "$ac_tool_prefix"; then | |
1789 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1790 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1791 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1792 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1793 | if test "${ac_cv_prog_CC+set}" = set; then | |
1794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1795 | else | |
1796 | if test -n "$CC"; then | |
1797 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1798 | else | |
1799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1800 | for as_dir in $PATH | |
1801 | do | |
1802 | IFS=$as_save_IFS | |
1803 | test -z "$as_dir" && as_dir=. | |
1804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1805 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1806 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1807 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1808 | break 2 | |
1809 | fi | |
1810 | done | |
1811 | done | |
1812 | IFS=$as_save_IFS | |
1813 | ||
1814 | fi | |
1815 | fi | |
1816 | CC=$ac_cv_prog_CC | |
1817 | if test -n "$CC"; then | |
1818 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
1819 | echo "${ECHO_T}$CC" >&6; } | |
1820 | else | |
1821 | { echo "$as_me:$LINENO: result: no" >&5 | |
1822 | echo "${ECHO_T}no" >&6; } | |
1823 | fi | |
1824 | ||
1825 | ||
1826 | fi | |
1827 | if test -z "$ac_cv_prog_CC"; then | |
1828 | ac_ct_CC=$CC | |
1829 | # Extract the first word of "gcc", so it can be a program name with args. | |
1830 | set dummy gcc; ac_word=$2 | |
1831 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1832 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1833 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1835 | else | |
1836 | if test -n "$ac_ct_CC"; then | |
1837 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1838 | else | |
1839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1840 | for as_dir in $PATH | |
1841 | do | |
1842 | IFS=$as_save_IFS | |
1843 | test -z "$as_dir" && as_dir=. | |
1844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1845 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1846 | ac_cv_prog_ac_ct_CC="gcc" | |
1847 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1848 | break 2 | |
1849 | fi | |
1850 | done | |
1851 | done | |
1852 | IFS=$as_save_IFS | |
1853 | ||
1854 | fi | |
1855 | fi | |
1856 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1857 | if test -n "$ac_ct_CC"; then | |
1858 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1859 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
1860 | else | |
1861 | { echo "$as_me:$LINENO: result: no" >&5 | |
1862 | echo "${ECHO_T}no" >&6; } | |
1863 | fi | |
1864 | ||
1865 | if test "x$ac_ct_CC" = x; then | |
1866 | CC="" | |
1867 | else | |
1868 | case $cross_compiling:$ac_tool_warned in | |
1869 | yes:) | |
1870 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
1871 | whose name does not start with the host triplet. If you think this | |
1872 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1873 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
1874 | whose name does not start with the host triplet. If you think this | |
1875 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
1876 | ac_tool_warned=yes ;; | |
1877 | esac | |
1878 | CC=$ac_ct_CC | |
1879 | fi | |
1880 | else | |
1881 | CC="$ac_cv_prog_CC" | |
1882 | fi | |
1883 | ||
1884 | if test -z "$CC"; then | |
1885 | if test -n "$ac_tool_prefix"; then | |
1886 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1887 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1888 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1889 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1890 | if test "${ac_cv_prog_CC+set}" = set; then | |
1891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1892 | else | |
1893 | if test -n "$CC"; then | |
1894 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1895 | else | |
1896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1897 | for as_dir in $PATH | |
1898 | do | |
1899 | IFS=$as_save_IFS | |
1900 | test -z "$as_dir" && as_dir=. | |
1901 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1902 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1903 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1904 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1905 | break 2 | |
1906 | fi | |
1907 | done | |
1908 | done | |
1909 | IFS=$as_save_IFS | |
1910 | ||
1911 | fi | |
1912 | fi | |
1913 | CC=$ac_cv_prog_CC | |
1914 | if test -n "$CC"; then | |
1915 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
1916 | echo "${ECHO_T}$CC" >&6; } | |
1917 | else | |
1918 | { echo "$as_me:$LINENO: result: no" >&5 | |
1919 | echo "${ECHO_T}no" >&6; } | |
1920 | fi | |
1921 | ||
1922 | ||
1923 | fi | |
1924 | fi | |
1925 | if test -z "$CC"; then | |
1926 | # Extract the first word of "cc", so it can be a program name with args. | |
1927 | set dummy cc; ac_word=$2 | |
1928 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1930 | if test "${ac_cv_prog_CC+set}" = set; then | |
1931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1932 | else | |
1933 | if test -n "$CC"; then | |
1934 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1935 | else | |
1936 | ac_prog_rejected=no | |
1937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1938 | for as_dir in $PATH | |
1939 | do | |
1940 | IFS=$as_save_IFS | |
1941 | test -z "$as_dir" && as_dir=. | |
1942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1943 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1944 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1945 | ac_prog_rejected=yes | |
1946 | continue | |
1947 | fi | |
1948 | ac_cv_prog_CC="cc" | |
1949 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1950 | break 2 | |
1951 | fi | |
1952 | done | |
1953 | done | |
1954 | IFS=$as_save_IFS | |
1955 | ||
1956 | if test $ac_prog_rejected = yes; then | |
1957 | # We found a bogon in the path, so make sure we never use it. | |
1958 | set dummy $ac_cv_prog_CC | |
1959 | shift | |
1960 | if test $# != 0; then | |
1961 | # We chose a different compiler from the bogus one. | |
1962 | # However, it has the same basename, so the bogon will be chosen | |
1963 | # first if we set CC to just the basename; use the full file name. | |
1964 | shift | |
1965 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1966 | fi | |
1967 | fi | |
1968 | fi | |
1969 | fi | |
1970 | CC=$ac_cv_prog_CC | |
1971 | if test -n "$CC"; then | |
1972 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
1973 | echo "${ECHO_T}$CC" >&6; } | |
1974 | else | |
1975 | { echo "$as_me:$LINENO: result: no" >&5 | |
1976 | echo "${ECHO_T}no" >&6; } | |
1977 | fi | |
1978 | ||
1979 | ||
1980 | fi | |
1981 | if test -z "$CC"; then | |
1982 | if test -n "$ac_tool_prefix"; then | |
1983 | for ac_prog in cl.exe | |
1984 | do | |
1985 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1986 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1987 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1989 | if test "${ac_cv_prog_CC+set}" = set; then | |
1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1991 | else | |
1992 | if test -n "$CC"; then | |
1993 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1994 | else | |
1995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1996 | for as_dir in $PATH | |
1997 | do | |
1998 | IFS=$as_save_IFS | |
1999 | test -z "$as_dir" && as_dir=. | |
2000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2002 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2004 | break 2 | |
2005 | fi | |
2006 | done | |
2007 | done | |
2008 | IFS=$as_save_IFS | |
2009 | ||
2010 | fi | |
2011 | fi | |
2012 | CC=$ac_cv_prog_CC | |
2013 | if test -n "$CC"; then | |
2014 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2015 | echo "${ECHO_T}$CC" >&6; } | |
2016 | else | |
2017 | { echo "$as_me:$LINENO: result: no" >&5 | |
2018 | echo "${ECHO_T}no" >&6; } | |
2019 | fi | |
2020 | ||
2021 | ||
2022 | test -n "$CC" && break | |
2023 | done | |
2024 | fi | |
2025 | if test -z "$CC"; then | |
2026 | ac_ct_CC=$CC | |
2027 | for ac_prog in cl.exe | |
2028 | do | |
2029 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2030 | set dummy $ac_prog; ac_word=$2 | |
2031 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2033 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2035 | else | |
2036 | if test -n "$ac_ct_CC"; then | |
2037 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2038 | else | |
2039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2040 | for as_dir in $PATH | |
2041 | do | |
2042 | IFS=$as_save_IFS | |
2043 | test -z "$as_dir" && as_dir=. | |
2044 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2045 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2046 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2048 | break 2 | |
2049 | fi | |
2050 | done | |
2051 | done | |
2052 | IFS=$as_save_IFS | |
2053 | ||
2054 | fi | |
2055 | fi | |
2056 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2057 | if test -n "$ac_ct_CC"; then | |
2058 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2059 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2060 | else | |
2061 | { echo "$as_me:$LINENO: result: no" >&5 | |
2062 | echo "${ECHO_T}no" >&6; } | |
2063 | fi | |
2064 | ||
2065 | ||
2066 | test -n "$ac_ct_CC" && break | |
2067 | done | |
2068 | ||
2069 | if test "x$ac_ct_CC" = x; then | |
2070 | CC="" | |
2071 | else | |
2072 | case $cross_compiling:$ac_tool_warned in | |
2073 | yes:) | |
2074 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2075 | whose name does not start with the host triplet. If you think this | |
2076 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2077 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2078 | whose name does not start with the host triplet. If you think this | |
2079 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2080 | ac_tool_warned=yes ;; | |
2081 | esac | |
2082 | CC=$ac_ct_CC | |
2083 | fi | |
2084 | fi | |
2085 | ||
2086 | fi | |
2087 | ||
2088 | ||
2089 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2090 | See \`config.log' for more details." >&5 | |
2091 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2092 | See \`config.log' for more details." >&2;} | |
2093 | { (exit 1); exit 1; }; } | |
2094 | ||
2095 | # Provide some information about the compiler. | |
2096 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
2097 | ac_compiler=`set X $ac_compile; echo $2` | |
2098 | { (ac_try="$ac_compiler --version >&5" | |
2099 | case "(($ac_try" in | |
2100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2101 | *) ac_try_echo=$ac_try;; | |
2102 | esac | |
2103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2104 | (eval "$ac_compiler --version >&5") 2>&5 | |
2105 | ac_status=$? | |
2106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2107 | (exit $ac_status); } | |
2108 | { (ac_try="$ac_compiler -v >&5" | |
2109 | case "(($ac_try" in | |
2110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2111 | *) ac_try_echo=$ac_try;; | |
2112 | esac | |
2113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2114 | (eval "$ac_compiler -v >&5") 2>&5 | |
2115 | ac_status=$? | |
2116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2117 | (exit $ac_status); } | |
2118 | { (ac_try="$ac_compiler -V >&5" | |
2119 | case "(($ac_try" in | |
2120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2121 | *) ac_try_echo=$ac_try;; | |
2122 | esac | |
2123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2124 | (eval "$ac_compiler -V >&5") 2>&5 | |
2125 | ac_status=$? | |
2126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2127 | (exit $ac_status); } | |
2128 | ||
2129 | cat >conftest.$ac_ext <<_ACEOF | |
2130 | /* confdefs.h. */ | |
2131 | _ACEOF | |
2132 | cat confdefs.h >>conftest.$ac_ext | |
2133 | cat >>conftest.$ac_ext <<_ACEOF | |
2134 | /* end confdefs.h. */ | |
2135 | ||
2136 | int | |
2137 | main () | |
2138 | { | |
2139 | ||
2140 | ; | |
2141 | return 0; | |
2142 | } | |
2143 | _ACEOF | |
2144 | ac_clean_files_save=$ac_clean_files | |
2145 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2146 | # Try to create an executable without -o first, disregard a.out. | |
2147 | # It will help us diagnose broken compilers, and finding out an intuition | |
2148 | # of exeext. | |
2149 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2150 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2151 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2152 | # | |
2153 | # List of possible output files, starting from the most likely. | |
2154 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2155 | # only as a last resort. b.out is created by i960 compilers. | |
2156 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2157 | # | |
2158 | # The IRIX 6 linker writes into existing files which may not be | |
2159 | # executable, retaining their permissions. Remove them first so a | |
2160 | # subsequent execution test works. | |
2161 | ac_rmfiles= | |
2162 | for ac_file in $ac_files | |
2163 | do | |
2164 | case $ac_file in | |
2165 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2166 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2167 | esac | |
2168 | done | |
2169 | rm -f $ac_rmfiles | |
2170 | ||
2171 | if { (ac_try="$ac_link_default" | |
2172 | case "(($ac_try" in | |
2173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2174 | *) ac_try_echo=$ac_try;; | |
2175 | esac | |
2176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2177 | (eval "$ac_link_default") 2>&5 | |
2178 | ac_status=$? | |
2179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2180 | (exit $ac_status); }; then | |
2181 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2182 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2183 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2184 | # so that the user can short-circuit this test for compilers unknown to | |
2185 | # Autoconf. | |
2186 | for ac_file in $ac_files '' | |
2187 | do | |
2188 | test -f "$ac_file" || continue | |
2189 | case $ac_file in | |
2190 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | |
2191 | ;; | |
2192 | [ab].out ) | |
2193 | # We found the default executable, but exeext='' is most | |
2194 | # certainly right. | |
2195 | break;; | |
2196 | *.* ) | |
2197 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2198 | then :; else | |
2199 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2200 | fi | |
2201 | # We set ac_cv_exeext here because the later test for it is not | |
2202 | # safe: cross compilers may not add the suffix if given an `-o' | |
2203 | # argument, so we may need to know it at that point already. | |
2204 | # Even if this section looks crufty: it has the advantage of | |
2205 | # actually working. | |
2206 | break;; | |
2207 | * ) | |
2208 | break;; | |
2209 | esac | |
2210 | done | |
2211 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2212 | ||
2213 | else | |
2214 | ac_file='' | |
2215 | fi | |
2216 | ||
2217 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2218 | echo "${ECHO_T}$ac_file" >&6; } | |
2219 | if test -z "$ac_file"; then | |
2220 | echo "$as_me: failed program was:" >&5 | |
2221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2222 | ||
2223 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2224 | See \`config.log' for more details." >&5 | |
2225 | echo "$as_me: error: C compiler cannot create executables | |
2226 | See \`config.log' for more details." >&2;} | |
2227 | { (exit 77); exit 77; }; } | |
2228 | fi | |
2229 | ||
2230 | ac_exeext=$ac_cv_exeext | |
2231 | ||
2232 | # Check that the compiler produces executables we can run. If not, either | |
2233 | # the compiler is broken, or we cross compile. | |
2234 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2235 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
2236 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2237 | # If not cross compiling, check that we can run a simple program. | |
2238 | if test "$cross_compiling" != yes; then | |
2239 | if { ac_try='./$ac_file' | |
2240 | { (case "(($ac_try" in | |
2241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2242 | *) ac_try_echo=$ac_try;; | |
2243 | esac | |
2244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2245 | (eval "$ac_try") 2>&5 | |
2246 | ac_status=$? | |
2247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2248 | (exit $ac_status); }; }; then | |
2249 | cross_compiling=no | |
2250 | else | |
2251 | if test "$cross_compiling" = maybe; then | |
2252 | cross_compiling=yes | |
2253 | else | |
2254 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2255 | If you meant to cross compile, use \`--host'. | |
2256 | See \`config.log' for more details." >&5 | |
2257 | echo "$as_me: error: cannot run C compiled programs. | |
2258 | If you meant to cross compile, use \`--host'. | |
2259 | See \`config.log' for more details." >&2;} | |
2260 | { (exit 1); exit 1; }; } | |
2261 | fi | |
2262 | fi | |
2263 | fi | |
2264 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2265 | echo "${ECHO_T}yes" >&6; } | |
2266 | ||
2267 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2268 | ac_clean_files=$ac_clean_files_save | |
2269 | # Check that the compiler produces executables we can run. If not, either | |
2270 | # the compiler is broken, or we cross compile. | |
2271 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2272 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2273 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2274 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2275 | ||
2276 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2277 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2278 | if { (ac_try="$ac_link" | |
2279 | case "(($ac_try" in | |
2280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2281 | *) ac_try_echo=$ac_try;; | |
2282 | esac | |
2283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2284 | (eval "$ac_link") 2>&5 | |
2285 | ac_status=$? | |
2286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2287 | (exit $ac_status); }; then | |
2288 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2289 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2290 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2291 | # `rm'. | |
2292 | for ac_file in conftest.exe conftest conftest.*; do | |
2293 | test -f "$ac_file" || continue | |
2294 | case $ac_file in | |
2295 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2296 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2297 | break;; | |
2298 | * ) break;; | |
2299 | esac | |
2300 | done | |
2301 | else | |
2302 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2303 | See \`config.log' for more details." >&5 | |
2304 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2305 | See \`config.log' for more details." >&2;} | |
2306 | { (exit 1); exit 1; }; } | |
2307 | fi | |
2308 | ||
2309 | rm -f conftest$ac_cv_exeext | |
2310 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2311 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
2312 | ||
2313 | rm -f conftest.$ac_ext | |
2314 | EXEEXT=$ac_cv_exeext | |
2315 | ac_exeext=$EXEEXT | |
2316 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2317 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
2318 | if test "${ac_cv_objext+set}" = set; then | |
2319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2320 | else | |
2321 | cat >conftest.$ac_ext <<_ACEOF | |
2322 | /* confdefs.h. */ | |
2323 | _ACEOF | |
2324 | cat confdefs.h >>conftest.$ac_ext | |
2325 | cat >>conftest.$ac_ext <<_ACEOF | |
2326 | /* end confdefs.h. */ | |
2327 | ||
2328 | int | |
2329 | main () | |
2330 | { | |
2331 | ||
2332 | ; | |
2333 | return 0; | |
2334 | } | |
2335 | _ACEOF | |
2336 | rm -f conftest.o conftest.obj | |
2337 | if { (ac_try="$ac_compile" | |
2338 | case "(($ac_try" in | |
2339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2340 | *) ac_try_echo=$ac_try;; | |
2341 | esac | |
2342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2343 | (eval "$ac_compile") 2>&5 | |
2344 | ac_status=$? | |
2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2346 | (exit $ac_status); }; then | |
2347 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2348 | test -f "$ac_file" || continue; | |
2349 | case $ac_file in | |
2350 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | |
2351 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2352 | break;; | |
2353 | esac | |
2354 | done | |
2355 | else | |
2356 | echo "$as_me: failed program was:" >&5 | |
2357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2358 | ||
2359 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2360 | See \`config.log' for more details." >&5 | |
2361 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2362 | See \`config.log' for more details." >&2;} | |
2363 | { (exit 1); exit 1; }; } | |
2364 | fi | |
2365 | ||
2366 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2367 | fi | |
2368 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2369 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
2370 | OBJEXT=$ac_cv_objext | |
2371 | ac_objext=$OBJEXT | |
2372 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2373 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
2374 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2376 | else | |
2377 | cat >conftest.$ac_ext <<_ACEOF | |
2378 | /* confdefs.h. */ | |
2379 | _ACEOF | |
2380 | cat confdefs.h >>conftest.$ac_ext | |
2381 | cat >>conftest.$ac_ext <<_ACEOF | |
2382 | /* end confdefs.h. */ | |
2383 | ||
2384 | int | |
2385 | main () | |
2386 | { | |
2387 | #ifndef __GNUC__ | |
2388 | choke me | |
2389 | #endif | |
2390 | ||
2391 | ; | |
2392 | return 0; | |
2393 | } | |
2394 | _ACEOF | |
2395 | rm -f conftest.$ac_objext | |
2396 | if { (ac_try="$ac_compile" | |
2397 | case "(($ac_try" in | |
2398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2399 | *) ac_try_echo=$ac_try;; | |
2400 | esac | |
2401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2402 | (eval "$ac_compile") 2>conftest.er1 | |
2403 | ac_status=$? | |
2404 | grep -v '^ *+' conftest.er1 >conftest.err | |
2405 | rm -f conftest.er1 | |
2406 | cat conftest.err >&5 | |
2407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2408 | (exit $ac_status); } && { | |
2409 | test -z "$ac_c_werror_flag" || | |
2410 | test ! -s conftest.err | |
2411 | } && test -s conftest.$ac_objext; then | |
2412 | ac_compiler_gnu=yes | |
2413 | else | |
2414 | echo "$as_me: failed program was:" >&5 | |
2415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2416 | ||
2417 | ac_compiler_gnu=no | |
2418 | fi | |
2419 | ||
2420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2421 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2422 | ||
2423 | fi | |
2424 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2425 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
2426 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2427 | ac_test_CFLAGS=${CFLAGS+set} | |
2428 | ac_save_CFLAGS=$CFLAGS | |
2429 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2430 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
2431 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2433 | else | |
2434 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2435 | ac_c_werror_flag=yes | |
2436 | ac_cv_prog_cc_g=no | |
2437 | CFLAGS="-g" | |
2438 | cat >conftest.$ac_ext <<_ACEOF | |
2439 | /* confdefs.h. */ | |
2440 | _ACEOF | |
2441 | cat confdefs.h >>conftest.$ac_ext | |
2442 | cat >>conftest.$ac_ext <<_ACEOF | |
2443 | /* end confdefs.h. */ | |
2444 | ||
2445 | int | |
2446 | main () | |
2447 | { | |
2448 | ||
2449 | ; | |
2450 | return 0; | |
2451 | } | |
2452 | _ACEOF | |
2453 | rm -f conftest.$ac_objext | |
2454 | if { (ac_try="$ac_compile" | |
2455 | case "(($ac_try" in | |
2456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2457 | *) ac_try_echo=$ac_try;; | |
2458 | esac | |
2459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2460 | (eval "$ac_compile") 2>conftest.er1 | |
2461 | ac_status=$? | |
2462 | grep -v '^ *+' conftest.er1 >conftest.err | |
2463 | rm -f conftest.er1 | |
2464 | cat conftest.err >&5 | |
2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2466 | (exit $ac_status); } && { | |
2467 | test -z "$ac_c_werror_flag" || | |
2468 | test ! -s conftest.err | |
2469 | } && test -s conftest.$ac_objext; then | |
2470 | ac_cv_prog_cc_g=yes | |
2471 | else | |
2472 | echo "$as_me: failed program was:" >&5 | |
2473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2474 | ||
2475 | CFLAGS="" | |
2476 | cat >conftest.$ac_ext <<_ACEOF | |
2477 | /* confdefs.h. */ | |
2478 | _ACEOF | |
2479 | cat confdefs.h >>conftest.$ac_ext | |
2480 | cat >>conftest.$ac_ext <<_ACEOF | |
2481 | /* end confdefs.h. */ | |
2482 | ||
2483 | int | |
2484 | main () | |
2485 | { | |
2486 | ||
2487 | ; | |
2488 | return 0; | |
2489 | } | |
2490 | _ACEOF | |
2491 | rm -f conftest.$ac_objext | |
2492 | if { (ac_try="$ac_compile" | |
2493 | case "(($ac_try" in | |
2494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2495 | *) ac_try_echo=$ac_try;; | |
2496 | esac | |
2497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2498 | (eval "$ac_compile") 2>conftest.er1 | |
2499 | ac_status=$? | |
2500 | grep -v '^ *+' conftest.er1 >conftest.err | |
2501 | rm -f conftest.er1 | |
2502 | cat conftest.err >&5 | |
2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2504 | (exit $ac_status); } && { | |
2505 | test -z "$ac_c_werror_flag" || | |
2506 | test ! -s conftest.err | |
2507 | } && test -s conftest.$ac_objext; then | |
2508 | : | |
2509 | else | |
2510 | echo "$as_me: failed program was:" >&5 | |
2511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2512 | ||
2513 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2514 | CFLAGS="-g" | |
2515 | cat >conftest.$ac_ext <<_ACEOF | |
2516 | /* confdefs.h. */ | |
2517 | _ACEOF | |
2518 | cat confdefs.h >>conftest.$ac_ext | |
2519 | cat >>conftest.$ac_ext <<_ACEOF | |
2520 | /* end confdefs.h. */ | |
2521 | ||
2522 | int | |
2523 | main () | |
2524 | { | |
2525 | ||
2526 | ; | |
2527 | return 0; | |
2528 | } | |
2529 | _ACEOF | |
2530 | rm -f conftest.$ac_objext | |
2531 | if { (ac_try="$ac_compile" | |
2532 | case "(($ac_try" in | |
2533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2534 | *) ac_try_echo=$ac_try;; | |
2535 | esac | |
2536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2537 | (eval "$ac_compile") 2>conftest.er1 | |
2538 | ac_status=$? | |
2539 | grep -v '^ *+' conftest.er1 >conftest.err | |
2540 | rm -f conftest.er1 | |
2541 | cat conftest.err >&5 | |
2542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2543 | (exit $ac_status); } && { | |
2544 | test -z "$ac_c_werror_flag" || | |
2545 | test ! -s conftest.err | |
2546 | } && test -s conftest.$ac_objext; then | |
2547 | ac_cv_prog_cc_g=yes | |
2548 | else | |
2549 | echo "$as_me: failed program was:" >&5 | |
2550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2551 | ||
2552 | ||
2553 | fi | |
2554 | ||
2555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2556 | fi | |
2557 | ||
2558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2559 | fi | |
2560 | ||
2561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2562 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2563 | fi | |
2564 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2565 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
2566 | if test "$ac_test_CFLAGS" = set; then | |
2567 | CFLAGS=$ac_save_CFLAGS | |
2568 | elif test $ac_cv_prog_cc_g = yes; then | |
2569 | if test "$GCC" = yes; then | |
2570 | CFLAGS="-g -O2" | |
2571 | else | |
2572 | CFLAGS="-g" | |
2573 | fi | |
2574 | else | |
2575 | if test "$GCC" = yes; then | |
2576 | CFLAGS="-O2" | |
2577 | else | |
2578 | CFLAGS= | |
2579 | fi | |
2580 | fi | |
2581 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
2582 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2583 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
2584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2585 | else | |
2586 | ac_cv_prog_cc_c89=no | |
2587 | ac_save_CC=$CC | |
2588 | cat >conftest.$ac_ext <<_ACEOF | |
2589 | /* confdefs.h. */ | |
2590 | _ACEOF | |
2591 | cat confdefs.h >>conftest.$ac_ext | |
2592 | cat >>conftest.$ac_ext <<_ACEOF | |
2593 | /* end confdefs.h. */ | |
2594 | #include <stdarg.h> | |
2595 | #include <stdio.h> | |
2596 | #include <sys/types.h> | |
2597 | #include <sys/stat.h> | |
2598 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2599 | struct buf { int x; }; | |
2600 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2601 | static char *e (p, i) | |
2602 | char **p; | |
2603 | int i; | |
2604 | { | |
2605 | return p[i]; | |
2606 | } | |
2607 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2608 | { | |
2609 | char *s; | |
2610 | va_list v; | |
2611 | va_start (v,p); | |
2612 | s = g (p, va_arg (v,int)); | |
2613 | va_end (v); | |
2614 | return s; | |
2615 | } | |
2616 | ||
2617 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2618 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2619 | These don't provoke an error unfortunately, instead are silently treated | |
2620 | as 'x'. The following induces an error, until -std is added to get | |
2621 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2622 | array size at least. It's necessary to write '\x00'==0 to get something | |
2623 | that's true only with -std. */ | |
2624 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2625 | ||
2626 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2627 | inside strings and character constants. */ | |
2628 | #define FOO(x) 'x' | |
2629 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2630 | ||
2631 | int test (int i, double x); | |
2632 | struct s1 {int (*f) (int a);}; | |
2633 | struct s2 {int (*f) (double a);}; | |
2634 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2635 | int argc; | |
2636 | char **argv; | |
2637 | int | |
2638 | main () | |
2639 | { | |
2640 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2641 | ; | |
2642 | return 0; | |
2643 | } | |
2644 | _ACEOF | |
2645 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
2646 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2647 | do | |
2648 | CC="$ac_save_CC $ac_arg" | |
2649 | rm -f conftest.$ac_objext | |
2650 | if { (ac_try="$ac_compile" | |
2651 | case "(($ac_try" in | |
2652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2653 | *) ac_try_echo=$ac_try;; | |
2654 | esac | |
2655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2656 | (eval "$ac_compile") 2>conftest.er1 | |
2657 | ac_status=$? | |
2658 | grep -v '^ *+' conftest.er1 >conftest.err | |
2659 | rm -f conftest.er1 | |
2660 | cat conftest.err >&5 | |
2661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2662 | (exit $ac_status); } && { | |
2663 | test -z "$ac_c_werror_flag" || | |
2664 | test ! -s conftest.err | |
2665 | } && test -s conftest.$ac_objext; then | |
2666 | ac_cv_prog_cc_c89=$ac_arg | |
2667 | else | |
2668 | echo "$as_me: failed program was:" >&5 | |
2669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2670 | ||
2671 | ||
2672 | fi | |
2673 | ||
2674 | rm -f core conftest.err conftest.$ac_objext | |
2675 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2676 | done | |
2677 | rm -f conftest.$ac_ext | |
2678 | CC=$ac_save_CC | |
2679 | ||
2680 | fi | |
2681 | # AC_CACHE_VAL | |
2682 | case "x$ac_cv_prog_cc_c89" in | |
2683 | x) | |
2684 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
2685 | echo "${ECHO_T}none needed" >&6; } ;; | |
2686 | xno) | |
2687 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
2688 | echo "${ECHO_T}unsupported" >&6; } ;; | |
2689 | *) | |
2690 | CC="$CC $ac_cv_prog_cc_c89" | |
2691 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
2692 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
2693 | esac | |
2694 | ||
2695 | ||
2696 | ac_ext=c | |
2697 | ac_cpp='$CPP $CPPFLAGS' | |
2698 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2699 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2700 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2701 | ||
2702 | ac_ext=c | |
2703 | ac_cpp='$CPP $CPPFLAGS' | |
2704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2707 | ||
2708 | ||
2709 | CFLAGS="$OLD_CFLAGS" | |
2710 | ||
2711 | ac_aux_dir= | |
2712 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2713 | if test -f "$ac_dir/install-sh"; then | |
2714 | ac_aux_dir=$ac_dir | |
2715 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2716 | break | |
2717 | elif test -f "$ac_dir/install.sh"; then | |
2718 | ac_aux_dir=$ac_dir | |
2719 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2720 | break | |
2721 | elif test -f "$ac_dir/shtool"; then | |
2722 | ac_aux_dir=$ac_dir | |
2723 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2724 | break | |
2725 | fi | |
2726 | done | |
2727 | if test -z "$ac_aux_dir"; then | |
2728 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
2729 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
2730 | { (exit 1); exit 1; }; } | |
2731 | fi | |
2732 | ||
2733 | # These three variables are undocumented and unsupported, | |
2734 | # and are intended to be withdrawn in a future Autoconf release. | |
2735 | # They can cause serious problems if a builder's source tree is in a directory | |
2736 | # whose full name contains unusual characters. | |
2737 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2738 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2739 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2740 | ||
2741 | ||
2742 | subdirs="$subdirs libratbox" | |
2743 | ||
2744 | ||
2745 | ||
2746 | if test "$ac_cv_c_compiler_gnu" != yes; then | |
2747 | ||
2748 | SGS=no | |
2749 | { echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5 | |
2750 | echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6; } | |
2751 | case `$CC -version 2>&1` in | |
2752 | *TenDRA*) | |
2753 | { echo "$as_me:$LINENO: result: yes, TenDRA" >&5 | |
2754 | echo "${ECHO_T}yes, TenDRA" >&6; } | |
2755 | IRC_CFLAGS="" | |
2756 | CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include" | |
2757 | SGS=yes | |
2758 | TenDRA=yes | |
2759 | ;; | |
2760 | *MIPSpro*) | |
2761 | { echo "$as_me:$LINENO: result: yes, MIPSpro" >&5 | |
2762 | echo "${ECHO_T}yes, MIPSpro" >&6; } | |
2763 | MIPSpro=yes | |
2764 | SGS=yes | |
2765 | ;; | |
2766 | *) | |
2767 | { echo "$as_me:$LINENO: result: no" >&5 | |
2768 | echo "${ECHO_T}no" >&6; } | |
2769 | TenDRA=no | |
2770 | MIPSpro=no | |
2771 | ;; | |
2772 | esac | |
2773 | ||
2774 | { echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 | |
2775 | echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6; } | |
2776 | case `$CC -V 2>&1` in | |
2777 | *Sun*WorkShop* | *Forte*Developer*) | |
2778 | { echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5 | |
2779 | echo "${ECHO_T}Sun Workshop/Forte" >&6; } | |
2780 | IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" | |
2781 | SunWorkShop=yes | |
2782 | SGS=yes | |
2783 | ;; | |
2784 | *Tru64*) | |
2785 | { echo "$as_me:$LINENO: result: Tru64 cc" >&5 | |
2786 | echo "${ECHO_T}Tru64 cc" >&6; } | |
2787 | IRC_CFLAGS="-O2" | |
2788 | CPPFLAGS="-I/usr/local/include" | |
2789 | Tru=yes | |
2790 | ;; | |
2791 | *HP*ANSI*) | |
2792 | { echo "$as_me:$LINENO: result: HPUX cc" >&5 | |
2793 | echo "${ECHO_T}HPUX cc" >&6; } | |
2794 | HPUX=yes | |
2795 | IRC_CFLAGS="+e" | |
2796 | ;; | |
2797 | *) | |
2798 | { echo "$as_me:$LINENO: result: no" >&5 | |
2799 | echo "${ECHO_T}no" >&6; } | |
2800 | ;; | |
2801 | esac | |
2802 | ||
2803 | fi | |
2804 | ||
2805 | { echo "$as_me:$LINENO: checking uname -s for Solaris, AIX or HPUX" >&5 | |
2806 | echo $ECHO_N "checking uname -s for Solaris, AIX or HPUX... $ECHO_C" >&6; } | |
2807 | OSNAME=`uname -s` | |
2808 | case "$OSNAME" in | |
2809 | HP-UX*) | |
2810 | ||
2811 | if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then | |
2812 | { echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5 | |
2813 | echo "${ECHO_T}assuming old HPUX with its own cc" >&6; } | |
2814 | IRC_CFLAGS="$IRC_CFLAGS +e" | |
2815 | HPUX=yes | |
2816 | else | |
2817 | { echo "$as_me:$LINENO: result: already using newer HPUX" >&5 | |
2818 | echo "${ECHO_T}already using newer HPUX" >&6; } | |
2819 | fi | |
2820 | ;; | |
2821 | SunOS*) | |
2822 | { echo "$as_me:$LINENO: result: SunOS or Solaris" >&5 | |
2823 | echo "${ECHO_T}SunOS or Solaris" >&6; } | |
2824 | ||
2825 | cat >>confdefs.h <<\_ACEOF | |
2826 | #define __EXTENSIONS__ 1 | |
2827 | _ACEOF | |
2828 | ||
2829 | SUN=yes | |
2830 | ;; | |
2831 | AIX*) | |
2832 | { echo "$as_me:$LINENO: result: AIX - Sorry you poor bastard..really we are" >&5 | |
2833 | echo "${ECHO_T}AIX - Sorry you poor bastard..really we are" >&6; } | |
2834 | IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G" | |
2835 | ;; | |
2836 | *) | |
2837 | { echo "$as_me:$LINENO: result: no" >&5 | |
2838 | echo "${ECHO_T}no" >&6; } | |
2839 | ;; | |
2840 | esac | |
2841 | ||
2842 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
2843 | { echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5 | |
2844 | echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; } | |
2845 | ||
2846 | case `$CC -v 2>&1 | tail -n 1` in | |
2847 | *Apple*) | |
2848 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2849 | echo "${ECHO_T}yes" >&6; } | |
2850 | AppleGCC=yes | |
2851 | ;; | |
2852 | *) | |
2853 | { echo "$as_me:$LINENO: result: no" >&5 | |
2854 | echo "${ECHO_T}no" >&6; } | |
2855 | AppleGCC=no | |
2856 | ;; | |
2857 | esac | |
2858 | ||
2859 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99" | |
2860 | fi | |
2861 | ||
2862 | if test "$ac_cv_prog_cc_g" = yes; then | |
2863 | if test "$Tru" = yes; then | |
2864 | IRC_CFLAGS="$IRC_CFLAGS -g3" | |
2865 | else | |
2866 | IRC_CFLAGS="$IRC_CFLAGS -g" | |
2867 | fi | |
2868 | fi | |
2869 | ||
2870 | { echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5 | |
2871 | echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; } | |
2872 | if test "$SGS" = "yes"; then | |
2873 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2874 | echo "${ECHO_T}yes" >&6; } | |
2875 | else | |
2876 | { echo "$as_me:$LINENO: result: no" >&5 | |
2877 | echo "${ECHO_T}no" >&6; } | |
2878 | fi | |
2879 | ||
2880 | # Extract the first word of "mkdep", so it can be a program name with args. | |
2881 | set dummy mkdep; ac_word=$2 | |
2882 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2883 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2884 | if test "${ac_cv_path_MKDEP+set}" = set; then | |
2885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2886 | else | |
2887 | case $MKDEP in | |
2888 | [\\/]* | ?:[\\/]*) | |
2889 | ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. | |
2890 | ;; | |
2891 | *) | |
2892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2893 | for as_dir in $PATH | |
2894 | do | |
2895 | IFS=$as_save_IFS | |
2896 | test -z "$as_dir" && as_dir=. | |
2897 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2899 | ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" | |
2900 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2901 | break 2 | |
2902 | fi | |
2903 | done | |
2904 | done | |
2905 | IFS=$as_save_IFS | |
2906 | ||
2907 | ;; | |
2908 | esac | |
2909 | fi | |
2910 | MKDEP=$ac_cv_path_MKDEP | |
2911 | if test -n "$MKDEP"; then | |
2912 | { echo "$as_me:$LINENO: result: $MKDEP" >&5 | |
2913 | echo "${ECHO_T}$MKDEP" >&6; } | |
2914 | else | |
2915 | { echo "$as_me:$LINENO: result: no" >&5 | |
2916 | echo "${ECHO_T}no" >&6; } | |
2917 | fi | |
2918 | ||
2919 | ||
2920 | # Extract the first word of "makedepend", so it can be a program name with args. | |
2921 | set dummy makedepend; ac_word=$2 | |
2922 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2924 | if test "${ac_cv_path_MAKEDEPEND+set}" = set; then | |
2925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2926 | else | |
2927 | case $MAKEDEPEND in | |
2928 | [\\/]* | ?:[\\/]*) | |
2929 | ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. | |
2930 | ;; | |
2931 | *) | |
2932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2933 | for as_dir in $PATH | |
2934 | do | |
2935 | IFS=$as_save_IFS | |
2936 | test -z "$as_dir" && as_dir=. | |
2937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2938 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2939 | ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" | |
2940 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2941 | break 2 | |
2942 | fi | |
2943 | done | |
2944 | done | |
2945 | IFS=$as_save_IFS | |
2946 | ||
2947 | ;; | |
2948 | esac | |
2949 | fi | |
2950 | MAKEDEPEND=$ac_cv_path_MAKEDEPEND | |
2951 | if test -n "$MAKEDEPEND"; then | |
2952 | { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5 | |
2953 | echo "${ECHO_T}$MAKEDEPEND" >&6; } | |
2954 | else | |
2955 | { echo "$as_me:$LINENO: result: no" >&5 | |
2956 | echo "${ECHO_T}no" >&6; } | |
2957 | fi | |
2958 | ||
2959 | ||
2960 | ||
2961 | { echo "$as_me:$LINENO: checking how to generate dependency info" >&5 | |
2962 | echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; } | |
2963 | ||
2964 | STDOUT="> .depend" | |
2965 | ||
2966 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
2967 | { echo "$as_me:$LINENO: result: gcc -MM" >&5 | |
2968 | echo "${ECHO_T}gcc -MM" >&6; } | |
2969 | MKDEP="$CC -MM" | |
2970 | elif test ! -z "$MKDEP"; then | |
2971 | { echo "$as_me:$LINENO: result: mkdep" >&5 | |
2972 | echo "${ECHO_T}mkdep" >&6; } | |
2973 | ||
2974 | if test -z "$Tru"; then | |
2975 | STDOUT="" | |
2976 | else | |
2977 | STDOUT=" 2> /dev/null" | |
2978 | fi | |
2979 | elif test "$SunWorkShop" = yes; then | |
2980 | { echo "$as_me:$LINENO: result: $CC -xM" >&5 | |
2981 | echo "${ECHO_T}$CC -xM" >&6; } | |
2982 | MKDEP="$CC -xM" | |
2983 | STDOUT="> .depend 2> /dev/null" | |
2984 | elif test ! -z "$MAKEDEPEND"; then | |
2985 | { echo "$as_me:$LINENO: result: makedepend" >&5 | |
2986 | echo "${ECHO_T}makedepend" >&6; } | |
2987 | MKDEP="$MAKEDEPEND -f-" | |
2988 | else | |
2989 | { echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5 | |
2990 | echo "${ECHO_T}nothing suitable.. forget it!" >&6; } | |
2991 | MKDEP=":" | |
2992 | fi | |
2993 | ||
2994 | ||
2995 | ||
2996 | ||
2997 | { echo "$as_me:$LINENO: checking for /dev/null" >&5 | |
2998 | echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; } | |
2999 | if test -c /dev/null ; then | |
3000 | ||
3001 | cat >>confdefs.h <<\_ACEOF | |
3002 | #define PATH_DEVNULL "/dev/null" | |
3003 | _ACEOF | |
3004 | ||
3005 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3006 | echo "${ECHO_T}yes" >&6; } | |
3007 | else | |
3008 | ||
3009 | cat >>confdefs.h <<\_ACEOF | |
3010 | #define PATH_DEVNULL "devnull.log" | |
3011 | _ACEOF | |
3012 | ||
3013 | { echo "$as_me:$LINENO: result: no - using devnull.log" >&5 | |
3014 | echo "${ECHO_T}no - using devnull.log" >&6; } | |
3015 | fi | |
3016 | ||
3017 | if test ! -z "$CFLAGS"; then | |
3018 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
3019 | fi | |
3020 | ||
3021 | ||
3022 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
3023 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } | |
3024 | if test "${ac_cv_search_strerror+set}" = set; then | |
3025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3026 | else | |
3027 | ac_func_search_save_LIBS=$LIBS | |
3028 | cat >conftest.$ac_ext <<_ACEOF | |
3029 | /* confdefs.h. */ | |
3030 | _ACEOF | |
3031 | cat confdefs.h >>conftest.$ac_ext | |
3032 | cat >>conftest.$ac_ext <<_ACEOF | |
3033 | /* end confdefs.h. */ | |
3034 | ||
3035 | /* Override any GCC internal prototype to avoid an error. | |
3036 | Use char because int might match the return type of a GCC | |
3037 | builtin and then its argument prototype would still apply. */ | |
3038 | #ifdef __cplusplus | |
3039 | extern "C" | |
3040 | #endif | |
3041 | char strerror (); | |
3042 | int | |
3043 | main () | |
3044 | { | |
3045 | return strerror (); | |
3046 | ; | |
3047 | return 0; | |
3048 | } | |
3049 | _ACEOF | |
3050 | for ac_lib in '' cposix; do | |
3051 | if test -z "$ac_lib"; then | |
3052 | ac_res="none required" | |
3053 | else | |
3054 | ac_res=-l$ac_lib | |
3055 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3056 | fi | |
3057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3058 | if { (ac_try="$ac_link" | |
3059 | case "(($ac_try" in | |
3060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3061 | *) ac_try_echo=$ac_try;; | |
3062 | esac | |
3063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3064 | (eval "$ac_link") 2>conftest.er1 | |
3065 | ac_status=$? | |
3066 | grep -v '^ *+' conftest.er1 >conftest.err | |
3067 | rm -f conftest.er1 | |
3068 | cat conftest.err >&5 | |
3069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3070 | (exit $ac_status); } && { | |
3071 | test -z "$ac_c_werror_flag" || | |
3072 | test ! -s conftest.err | |
3073 | } && test -s conftest$ac_exeext && | |
3074 | $as_test_x conftest$ac_exeext; then | |
3075 | ac_cv_search_strerror=$ac_res | |
3076 | else | |
3077 | echo "$as_me: failed program was:" >&5 | |
3078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3079 | ||
3080 | ||
3081 | fi | |
3082 | ||
3083 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
3084 | conftest$ac_exeext | |
3085 | if test "${ac_cv_search_strerror+set}" = set; then | |
3086 | break | |
3087 | fi | |
3088 | done | |
3089 | if test "${ac_cv_search_strerror+set}" = set; then | |
3090 | : | |
3091 | else | |
3092 | ac_cv_search_strerror=no | |
3093 | fi | |
3094 | rm conftest.$ac_ext | |
3095 | LIBS=$ac_func_search_save_LIBS | |
3096 | fi | |
3097 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
3098 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } | |
3099 | ac_res=$ac_cv_search_strerror | |
3100 | if test "$ac_res" != no; then | |
3101 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
3102 | ||
3103 | fi | |
3104 | ||
3105 | { echo "$as_me:$LINENO: checking for inline" >&5 | |
3106 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
3107 | if test "${ac_cv_c_inline+set}" = set; then | |
3108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3109 | else | |
3110 | ac_cv_c_inline=no | |
3111 | for ac_kw in inline __inline__ __inline; do | |
3112 | cat >conftest.$ac_ext <<_ACEOF | |
3113 | /* confdefs.h. */ | |
3114 | _ACEOF | |
3115 | cat confdefs.h >>conftest.$ac_ext | |
3116 | cat >>conftest.$ac_ext <<_ACEOF | |
3117 | /* end confdefs.h. */ | |
3118 | #ifndef __cplusplus | |
3119 | typedef int foo_t; | |
3120 | static $ac_kw foo_t static_foo () {return 0; } | |
3121 | $ac_kw foo_t foo () {return 0; } | |
3122 | #endif | |
3123 | ||
3124 | _ACEOF | |
3125 | rm -f conftest.$ac_objext | |
3126 | if { (ac_try="$ac_compile" | |
3127 | case "(($ac_try" in | |
3128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3129 | *) ac_try_echo=$ac_try;; | |
3130 | esac | |
3131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3132 | (eval "$ac_compile") 2>conftest.er1 | |
3133 | ac_status=$? | |
3134 | grep -v '^ *+' conftest.er1 >conftest.err | |
3135 | rm -f conftest.er1 | |
3136 | cat conftest.err >&5 | |
3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3138 | (exit $ac_status); } && { | |
3139 | test -z "$ac_c_werror_flag" || | |
3140 | test ! -s conftest.err | |
3141 | } && test -s conftest.$ac_objext; then | |
3142 | ac_cv_c_inline=$ac_kw | |
3143 | else | |
3144 | echo "$as_me: failed program was:" >&5 | |
3145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3146 | ||
3147 | ||
3148 | fi | |
3149 | ||
3150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3151 | test "$ac_cv_c_inline" != no && break | |
3152 | done | |
3153 | ||
3154 | fi | |
3155 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
3156 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
3157 | ||
3158 | ||
3159 | case $ac_cv_c_inline in | |
3160 | inline | yes) ;; | |
3161 | *) | |
3162 | case $ac_cv_c_inline in | |
3163 | no) ac_val=;; | |
3164 | *) ac_val=$ac_cv_c_inline;; | |
3165 | esac | |
3166 | cat >>confdefs.h <<_ACEOF | |
3167 | #ifndef __cplusplus | |
3168 | #define inline $ac_val | |
3169 | #endif | |
3170 | _ACEOF | |
3171 | ;; | |
3172 | esac | |
3173 | ||
3174 | ac_ext=c | |
3175 | ac_cpp='$CPP $CPPFLAGS' | |
3176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3179 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3180 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
3181 | # On Suns, sometimes $CPP names a directory. | |
3182 | if test -n "$CPP" && test -d "$CPP"; then | |
3183 | CPP= | |
3184 | fi | |
3185 | if test -z "$CPP"; then | |
3186 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3188 | else | |
3189 | # Double quotes because CPP needs to be expanded | |
3190 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3191 | do | |
3192 | ac_preproc_ok=false | |
3193 | for ac_c_preproc_warn_flag in '' yes | |
3194 | do | |
3195 | # Use a header file that comes with gcc, so configuring glibc | |
3196 | # with a fresh cross-compiler works. | |
3197 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3198 | # <limits.h> exists even on freestanding compilers. | |
3199 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3200 | # not just through cpp. "Syntax error" is here to catch this case. | |
3201 | cat >conftest.$ac_ext <<_ACEOF | |
3202 | /* confdefs.h. */ | |
3203 | _ACEOF | |
3204 | cat confdefs.h >>conftest.$ac_ext | |
3205 | cat >>conftest.$ac_ext <<_ACEOF | |
3206 | /* end confdefs.h. */ | |
3207 | #ifdef __STDC__ | |
3208 | # include <limits.h> | |
3209 | #else | |
3210 | # include <assert.h> | |
3211 | #endif | |
3212 | Syntax error | |
3213 | _ACEOF | |
3214 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3215 | case "(($ac_try" in | |
3216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3217 | *) ac_try_echo=$ac_try;; | |
3218 | esac | |
3219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3220 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3221 | ac_status=$? | |
3222 | grep -v '^ *+' conftest.er1 >conftest.err | |
3223 | rm -f conftest.er1 | |
3224 | cat conftest.err >&5 | |
3225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3226 | (exit $ac_status); } >/dev/null && { | |
3227 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3228 | test ! -s conftest.err | |
3229 | }; then | |
3230 | : | |
3231 | else | |
3232 | echo "$as_me: failed program was:" >&5 | |
3233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3234 | ||
3235 | # Broken: fails on valid input. | |
3236 | continue | |
3237 | fi | |
3238 | ||
3239 | rm -f conftest.err conftest.$ac_ext | |
3240 | ||
3241 | # OK, works on sane cases. Now check whether nonexistent headers | |
3242 | # can be detected and how. | |
3243 | cat >conftest.$ac_ext <<_ACEOF | |
3244 | /* confdefs.h. */ | |
3245 | _ACEOF | |
3246 | cat confdefs.h >>conftest.$ac_ext | |
3247 | cat >>conftest.$ac_ext <<_ACEOF | |
3248 | /* end confdefs.h. */ | |
3249 | #include <ac_nonexistent.h> | |
3250 | _ACEOF | |
3251 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3252 | case "(($ac_try" in | |
3253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3254 | *) ac_try_echo=$ac_try;; | |
3255 | esac | |
3256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3257 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3258 | ac_status=$? | |
3259 | grep -v '^ *+' conftest.er1 >conftest.err | |
3260 | rm -f conftest.er1 | |
3261 | cat conftest.err >&5 | |
3262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3263 | (exit $ac_status); } >/dev/null && { | |
3264 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3265 | test ! -s conftest.err | |
3266 | }; then | |
3267 | # Broken: success on invalid input. | |
3268 | continue | |
3269 | else | |
3270 | echo "$as_me: failed program was:" >&5 | |
3271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3272 | ||
3273 | # Passes both tests. | |
3274 | ac_preproc_ok=: | |
3275 | break | |
3276 | fi | |
3277 | ||
3278 | rm -f conftest.err conftest.$ac_ext | |
3279 | ||
3280 | done | |
3281 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3282 | rm -f conftest.err conftest.$ac_ext | |
3283 | if $ac_preproc_ok; then | |
3284 | break | |
3285 | fi | |
3286 | ||
3287 | done | |
3288 | ac_cv_prog_CPP=$CPP | |
3289 | ||
3290 | fi | |
3291 | CPP=$ac_cv_prog_CPP | |
3292 | else | |
3293 | ac_cv_prog_CPP=$CPP | |
3294 | fi | |
3295 | { echo "$as_me:$LINENO: result: $CPP" >&5 | |
3296 | echo "${ECHO_T}$CPP" >&6; } | |
3297 | ac_preproc_ok=false | |
3298 | for ac_c_preproc_warn_flag in '' yes | |
3299 | do | |
3300 | # Use a header file that comes with gcc, so configuring glibc | |
3301 | # with a fresh cross-compiler works. | |
3302 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3303 | # <limits.h> exists even on freestanding compilers. | |
3304 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3305 | # not just through cpp. "Syntax error" is here to catch this case. | |
3306 | cat >conftest.$ac_ext <<_ACEOF | |
3307 | /* confdefs.h. */ | |
3308 | _ACEOF | |
3309 | cat confdefs.h >>conftest.$ac_ext | |
3310 | cat >>conftest.$ac_ext <<_ACEOF | |
3311 | /* end confdefs.h. */ | |
3312 | #ifdef __STDC__ | |
3313 | # include <limits.h> | |
3314 | #else | |
3315 | # include <assert.h> | |
3316 | #endif | |
3317 | Syntax error | |
3318 | _ACEOF | |
3319 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3320 | case "(($ac_try" in | |
3321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3322 | *) ac_try_echo=$ac_try;; | |
3323 | esac | |
3324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3325 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3326 | ac_status=$? | |
3327 | grep -v '^ *+' conftest.er1 >conftest.err | |
3328 | rm -f conftest.er1 | |
3329 | cat conftest.err >&5 | |
3330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3331 | (exit $ac_status); } >/dev/null && { | |
3332 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3333 | test ! -s conftest.err | |
3334 | }; then | |
3335 | : | |
3336 | else | |
3337 | echo "$as_me: failed program was:" >&5 | |
3338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3339 | ||
3340 | # Broken: fails on valid input. | |
3341 | continue | |
3342 | fi | |
3343 | ||
3344 | rm -f conftest.err conftest.$ac_ext | |
3345 | ||
3346 | # OK, works on sane cases. Now check whether nonexistent headers | |
3347 | # can be detected and how. | |
3348 | cat >conftest.$ac_ext <<_ACEOF | |
3349 | /* confdefs.h. */ | |
3350 | _ACEOF | |
3351 | cat confdefs.h >>conftest.$ac_ext | |
3352 | cat >>conftest.$ac_ext <<_ACEOF | |
3353 | /* end confdefs.h. */ | |
3354 | #include <ac_nonexistent.h> | |
3355 | _ACEOF | |
3356 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3357 | case "(($ac_try" in | |
3358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3359 | *) ac_try_echo=$ac_try;; | |
3360 | esac | |
3361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3362 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3363 | ac_status=$? | |
3364 | grep -v '^ *+' conftest.er1 >conftest.err | |
3365 | rm -f conftest.er1 | |
3366 | cat conftest.err >&5 | |
3367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3368 | (exit $ac_status); } >/dev/null && { | |
3369 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3370 | test ! -s conftest.err | |
3371 | }; then | |
3372 | # Broken: success on invalid input. | |
3373 | continue | |
3374 | else | |
3375 | echo "$as_me: failed program was:" >&5 | |
3376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3377 | ||
3378 | # Passes both tests. | |
3379 | ac_preproc_ok=: | |
3380 | break | |
3381 | fi | |
3382 | ||
3383 | rm -f conftest.err conftest.$ac_ext | |
3384 | ||
3385 | done | |
3386 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3387 | rm -f conftest.err conftest.$ac_ext | |
3388 | if $ac_preproc_ok; then | |
3389 | : | |
3390 | else | |
3391 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3392 | See \`config.log' for more details." >&5 | |
3393 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3394 | See \`config.log' for more details." >&2;} | |
3395 | { (exit 1); exit 1; }; } | |
3396 | fi | |
3397 | ||
3398 | ac_ext=c | |
3399 | ac_cpp='$CPP $CPPFLAGS' | |
3400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3403 | ||
3404 | ||
3405 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
3406 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3407 | if test "${ac_cv_path_GREP+set}" = set; then | |
3408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3409 | else | |
3410 | # Extract the first word of "grep ggrep" to use in msg output | |
3411 | if test -z "$GREP"; then | |
3412 | set dummy grep ggrep; ac_prog_name=$2 | |
3413 | if test "${ac_cv_path_GREP+set}" = set; then | |
3414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3415 | else | |
3416 | ac_path_GREP_found=false | |
3417 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3419 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3420 | do | |
3421 | IFS=$as_save_IFS | |
3422 | test -z "$as_dir" && as_dir=. | |
3423 | for ac_prog in grep ggrep; do | |
3424 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3425 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3426 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3427 | # Check for GNU ac_path_GREP and select it if it is found. | |
3428 | # Check for GNU $ac_path_GREP | |
3429 | case `"$ac_path_GREP" --version 2>&1` in | |
3430 | *GNU*) | |
3431 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3432 | *) | |
3433 | ac_count=0 | |
3434 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3435 | while : | |
3436 | do | |
3437 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3438 | mv "conftest.tmp" "conftest.in" | |
3439 | cp "conftest.in" "conftest.nl" | |
3440 | echo 'GREP' >> "conftest.nl" | |
3441 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3442 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3443 | ac_count=`expr $ac_count + 1` | |
3444 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3445 | # Best one so far, save it but keep looking for a better one | |
3446 | ac_cv_path_GREP="$ac_path_GREP" | |
3447 | ac_path_GREP_max=$ac_count | |
3448 | fi | |
3449 | # 10*(2^10) chars as input seems more than enough | |
3450 | test $ac_count -gt 10 && break | |
3451 | done | |
3452 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3453 | esac | |
3454 | ||
3455 | ||
3456 | $ac_path_GREP_found && break 3 | |
3457 | done | |
3458 | done | |
3459 | ||
3460 | done | |
3461 | IFS=$as_save_IFS | |
3462 | ||
3463 | ||
3464 | fi | |
3465 | ||
3466 | GREP="$ac_cv_path_GREP" | |
3467 | if test -z "$GREP"; then | |
3468 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3469 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3470 | { (exit 1); exit 1; }; } | |
3471 | fi | |
3472 | ||
3473 | else | |
3474 | ac_cv_path_GREP=$GREP | |
3475 | fi | |
3476 | ||
3477 | ||
3478 | fi | |
3479 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3480 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3481 | GREP="$ac_cv_path_GREP" | |
3482 | ||
3483 | ||
3484 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3485 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3486 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3488 | else | |
3489 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3490 | then ac_cv_path_EGREP="$GREP -E" | |
3491 | else | |
3492 | # Extract the first word of "egrep" to use in msg output | |
3493 | if test -z "$EGREP"; then | |
3494 | set dummy egrep; ac_prog_name=$2 | |
3495 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3497 | else | |
3498 | ac_path_EGREP_found=false | |
3499 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3501 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3502 | do | |
3503 | IFS=$as_save_IFS | |
3504 | test -z "$as_dir" && as_dir=. | |
3505 | for ac_prog in egrep; do | |
3506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3507 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3508 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3509 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3510 | # Check for GNU $ac_path_EGREP | |
3511 | case `"$ac_path_EGREP" --version 2>&1` in | |
3512 | *GNU*) | |
3513 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3514 | *) | |
3515 | ac_count=0 | |
3516 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3517 | while : | |
3518 | do | |
3519 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3520 | mv "conftest.tmp" "conftest.in" | |
3521 | cp "conftest.in" "conftest.nl" | |
3522 | echo 'EGREP' >> "conftest.nl" | |
3523 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3524 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3525 | ac_count=`expr $ac_count + 1` | |
3526 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3527 | # Best one so far, save it but keep looking for a better one | |
3528 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3529 | ac_path_EGREP_max=$ac_count | |
3530 | fi | |
3531 | # 10*(2^10) chars as input seems more than enough | |
3532 | test $ac_count -gt 10 && break | |
3533 | done | |
3534 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3535 | esac | |
3536 | ||
3537 | ||
3538 | $ac_path_EGREP_found && break 3 | |
3539 | done | |
3540 | done | |
3541 | ||
3542 | done | |
3543 | IFS=$as_save_IFS | |
3544 | ||
3545 | ||
3546 | fi | |
3547 | ||
3548 | EGREP="$ac_cv_path_EGREP" | |
3549 | if test -z "$EGREP"; then | |
3550 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3551 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3552 | { (exit 1); exit 1; }; } | |
3553 | fi | |
3554 | ||
3555 | else | |
3556 | ac_cv_path_EGREP=$EGREP | |
3557 | fi | |
3558 | ||
3559 | ||
3560 | fi | |
3561 | fi | |
3562 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3563 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3564 | EGREP="$ac_cv_path_EGREP" | |
3565 | ||
3566 | ||
3567 | if test $ac_cv_c_compiler_gnu = yes; then | |
3568 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
3569 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
3570 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
3571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3572 | else | |
3573 | ac_pattern="Autoconf.*'x'" | |
3574 | cat >conftest.$ac_ext <<_ACEOF | |
3575 | /* confdefs.h. */ | |
3576 | _ACEOF | |
3577 | cat confdefs.h >>conftest.$ac_ext | |
3578 | cat >>conftest.$ac_ext <<_ACEOF | |
3579 | /* end confdefs.h. */ | |
3580 | #include <sgtty.h> | |
3581 | Autoconf TIOCGETP | |
3582 | _ACEOF | |
3583 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3584 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3585 | ac_cv_prog_gcc_traditional=yes | |
3586 | else | |
3587 | ac_cv_prog_gcc_traditional=no | |
3588 | fi | |
3589 | rm -f conftest* | |
3590 | ||
3591 | ||
3592 | if test $ac_cv_prog_gcc_traditional = no; then | |
3593 | cat >conftest.$ac_ext <<_ACEOF | |
3594 | /* confdefs.h. */ | |
3595 | _ACEOF | |
3596 | cat confdefs.h >>conftest.$ac_ext | |
3597 | cat >>conftest.$ac_ext <<_ACEOF | |
3598 | /* end confdefs.h. */ | |
3599 | #include <termio.h> | |
3600 | Autoconf TCGETA | |
3601 | _ACEOF | |
3602 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3603 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3604 | ac_cv_prog_gcc_traditional=yes | |
3605 | fi | |
3606 | rm -f conftest* | |
3607 | ||
3608 | fi | |
3609 | fi | |
3610 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
3611 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
3612 | if test $ac_cv_prog_gcc_traditional = yes; then | |
3613 | CC="$CC -traditional" | |
3614 | fi | |
3615 | fi | |
3616 | ||
3617 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3618 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3619 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3620 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
3621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3622 | else | |
3623 | cat >conftest.make <<\_ACEOF | |
3624 | SHELL = /bin/sh | |
3625 | all: | |
3626 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3627 | _ACEOF | |
3628 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3629 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3630 | *@@@%%%=?*=@@@%%%*) | |
3631 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3632 | *) | |
3633 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3634 | esac | |
3635 | rm -f conftest.make | |
3636 | fi | |
3637 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3638 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3639 | echo "${ECHO_T}yes" >&6; } | |
3640 | SET_MAKE= | |
3641 | else | |
3642 | { echo "$as_me:$LINENO: result: no" >&5 | |
3643 | echo "${ECHO_T}no" >&6; } | |
3644 | SET_MAKE="MAKE=${MAKE-make}" | |
3645 | fi | |
3646 | ||
3647 | # Find a good install program. We prefer a C program (faster), | |
3648 | # so one script is as good as another. But avoid the broken or | |
3649 | # incompatible versions: | |
3650 | # SysV /etc/install, /usr/sbin/install | |
3651 | # SunOS /usr/etc/install | |
3652 | # IRIX /sbin/install | |
3653 | # AIX /bin/install | |
3654 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3655 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3656 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3657 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3658 | # OS/2's system install, which has a completely different semantic | |
3659 | # ./install, which can be erroneously created by make from ./install.sh. | |
3660 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3661 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
3662 | if test -z "$INSTALL"; then | |
3663 | if test "${ac_cv_path_install+set}" = set; then | |
3664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3665 | else | |
3666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3667 | for as_dir in $PATH | |
3668 | do | |
3669 | IFS=$as_save_IFS | |
3670 | test -z "$as_dir" && as_dir=. | |
3671 | # Account for people who put trailing slashes in PATH elements. | |
3672 | case $as_dir/ in | |
3673 | ./ | .// | /cC/* | \ | |
3674 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3675 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3676 | /usr/ucb/* ) ;; | |
3677 | *) | |
3678 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3679 | # Don't use installbsd from OSF since it installs stuff as root | |
3680 | # by default. | |
3681 | for ac_prog in ginstall scoinst install; do | |
3682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3683 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3684 | if test $ac_prog = install && | |
3685 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3686 | # AIX install. It has an incompatible calling convention. | |
3687 | : | |
3688 | elif test $ac_prog = install && | |
3689 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3690 | # program-specific install script used by HP pwplus--don't use. | |
3691 | : | |
3692 | else | |
3693 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3694 | break 3 | |
3695 | fi | |
3696 | fi | |
3697 | done | |
3698 | done | |
3699 | ;; | |
3700 | esac | |
3701 | done | |
3702 | IFS=$as_save_IFS | |
3703 | ||
3704 | ||
3705 | fi | |
3706 | if test "${ac_cv_path_install+set}" = set; then | |
3707 | INSTALL=$ac_cv_path_install | |
3708 | else | |
3709 | # As a last resort, use the slow shell script. Don't cache a | |
3710 | # value for INSTALL within a source directory, because that will | |
3711 | # break other packages using the cache if that directory is | |
3712 | # removed, or if the value is a relative name. | |
3713 | INSTALL=$ac_install_sh | |
3714 | fi | |
3715 | fi | |
3716 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
3717 | echo "${ECHO_T}$INSTALL" >&6; } | |
3718 | ||
3719 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3720 | # It thinks the first close brace ends the variable substitution. | |
3721 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3722 | ||
3723 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3724 | ||
3725 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3726 | ||
3727 | # Extract the first word of "rm", so it can be a program name with args. | |
3728 | set dummy rm; ac_word=$2 | |
3729 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3731 | if test "${ac_cv_path_RM+set}" = set; then | |
3732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3733 | else | |
3734 | case $RM in | |
3735 | [\\/]* | ?:[\\/]*) | |
3736 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
3737 | ;; | |
3738 | *) | |
3739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3740 | for as_dir in $PATH | |
3741 | do | |
3742 | IFS=$as_save_IFS | |
3743 | test -z "$as_dir" && as_dir=. | |
3744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3746 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | |
3747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3748 | break 2 | |
3749 | fi | |
3750 | done | |
3751 | done | |
3752 | IFS=$as_save_IFS | |
3753 | ||
3754 | ;; | |
3755 | esac | |
3756 | fi | |
3757 | RM=$ac_cv_path_RM | |
3758 | if test -n "$RM"; then | |
3759 | { echo "$as_me:$LINENO: result: $RM" >&5 | |
3760 | echo "${ECHO_T}$RM" >&6; } | |
3761 | else | |
3762 | { echo "$as_me:$LINENO: result: no" >&5 | |
3763 | echo "${ECHO_T}no" >&6; } | |
3764 | fi | |
3765 | ||
3766 | ||
3767 | # Extract the first word of "cp", so it can be a program name with args. | |
3768 | set dummy cp; ac_word=$2 | |
3769 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3771 | if test "${ac_cv_path_CP+set}" = set; then | |
3772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3773 | else | |
3774 | case $CP in | |
3775 | [\\/]* | ?:[\\/]*) | |
3776 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
3777 | ;; | |
3778 | *) | |
3779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3780 | for as_dir in $PATH | |
3781 | do | |
3782 | IFS=$as_save_IFS | |
3783 | test -z "$as_dir" && as_dir=. | |
3784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3786 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | |
3787 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3788 | break 2 | |
3789 | fi | |
3790 | done | |
3791 | done | |
3792 | IFS=$as_save_IFS | |
3793 | ||
3794 | ;; | |
3795 | esac | |
3796 | fi | |
3797 | CP=$ac_cv_path_CP | |
3798 | if test -n "$CP"; then | |
3799 | { echo "$as_me:$LINENO: result: $CP" >&5 | |
3800 | echo "${ECHO_T}$CP" >&6; } | |
3801 | else | |
3802 | { echo "$as_me:$LINENO: result: no" >&5 | |
3803 | echo "${ECHO_T}no" >&6; } | |
3804 | fi | |
3805 | ||
3806 | ||
3807 | # Extract the first word of "mv", so it can be a program name with args. | |
3808 | set dummy mv; ac_word=$2 | |
3809 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3810 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3811 | if test "${ac_cv_path_MV+set}" = set; then | |
3812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3813 | else | |
3814 | case $MV in | |
3815 | [\\/]* | ?:[\\/]*) | |
3816 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
3817 | ;; | |
3818 | *) | |
3819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3820 | for as_dir in $PATH | |
3821 | do | |
3822 | IFS=$as_save_IFS | |
3823 | test -z "$as_dir" && as_dir=. | |
3824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3826 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | |
3827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3828 | break 2 | |
3829 | fi | |
3830 | done | |
3831 | done | |
3832 | IFS=$as_save_IFS | |
3833 | ||
3834 | ;; | |
3835 | esac | |
3836 | fi | |
3837 | MV=$ac_cv_path_MV | |
3838 | if test -n "$MV"; then | |
3839 | { echo "$as_me:$LINENO: result: $MV" >&5 | |
3840 | echo "${ECHO_T}$MV" >&6; } | |
3841 | else | |
3842 | { echo "$as_me:$LINENO: result: no" >&5 | |
3843 | echo "${ECHO_T}no" >&6; } | |
3844 | fi | |
3845 | ||
3846 | ||
3847 | # Extract the first word of "ln", so it can be a program name with args. | |
3848 | set dummy ln; ac_word=$2 | |
3849 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3851 | if test "${ac_cv_path_LN+set}" = set; then | |
3852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3853 | else | |
3854 | case $LN in | |
3855 | [\\/]* | ?:[\\/]*) | |
3856 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
3857 | ;; | |
3858 | *) | |
3859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3860 | for as_dir in $PATH | |
3861 | do | |
3862 | IFS=$as_save_IFS | |
3863 | test -z "$as_dir" && as_dir=. | |
3864 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3866 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" | |
3867 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3868 | break 2 | |
3869 | fi | |
3870 | done | |
3871 | done | |
3872 | IFS=$as_save_IFS | |
3873 | ||
3874 | ;; | |
3875 | esac | |
3876 | fi | |
3877 | LN=$ac_cv_path_LN | |
3878 | if test -n "$LN"; then | |
3879 | { echo "$as_me:$LINENO: result: $LN" >&5 | |
3880 | echo "${ECHO_T}$LN" >&6; } | |
3881 | else | |
3882 | { echo "$as_me:$LINENO: result: no" >&5 | |
3883 | echo "${ECHO_T}no" >&6; } | |
3884 | fi | |
3885 | ||
3886 | ||
3887 | # Extract the first word of "sed", so it can be a program name with args. | |
3888 | set dummy sed; ac_word=$2 | |
3889 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3891 | if test "${ac_cv_path_SED+set}" = set; then | |
3892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3893 | else | |
3894 | case $SED in | |
3895 | [\\/]* | ?:[\\/]*) | |
3896 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
3897 | ;; | |
3898 | *) | |
3899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3900 | for as_dir in $PATH | |
3901 | do | |
3902 | IFS=$as_save_IFS | |
3903 | test -z "$as_dir" && as_dir=. | |
3904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3905 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3906 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | |
3907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3908 | break 2 | |
3909 | fi | |
3910 | done | |
3911 | done | |
3912 | IFS=$as_save_IFS | |
3913 | ||
3914 | ;; | |
3915 | esac | |
3916 | fi | |
3917 | SED=$ac_cv_path_SED | |
3918 | if test -n "$SED"; then | |
3919 | { echo "$as_me:$LINENO: result: $SED" >&5 | |
3920 | echo "${ECHO_T}$SED" >&6; } | |
3921 | else | |
3922 | { echo "$as_me:$LINENO: result: no" >&5 | |
3923 | echo "${ECHO_T}no" >&6; } | |
3924 | fi | |
3925 | ||
3926 | ||
3927 | # Extract the first word of "ar", so it can be a program name with args. | |
3928 | set dummy ar; ac_word=$2 | |
3929 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3930 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3931 | if test "${ac_cv_path_AR+set}" = set; then | |
3932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3933 | else | |
3934 | case $AR in | |
3935 | [\\/]* | ?:[\\/]*) | |
3936 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
3937 | ;; | |
3938 | *) | |
3939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3940 | for as_dir in $PATH | |
3941 | do | |
3942 | IFS=$as_save_IFS | |
3943 | test -z "$as_dir" && as_dir=. | |
3944 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3945 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3946 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | |
3947 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3948 | break 2 | |
3949 | fi | |
3950 | done | |
3951 | done | |
3952 | IFS=$as_save_IFS | |
3953 | ||
3954 | ;; | |
3955 | esac | |
3956 | fi | |
3957 | AR=$ac_cv_path_AR | |
3958 | if test -n "$AR"; then | |
3959 | { echo "$as_me:$LINENO: result: $AR" >&5 | |
3960 | echo "${ECHO_T}$AR" >&6; } | |
3961 | else | |
3962 | { echo "$as_me:$LINENO: result: no" >&5 | |
3963 | echo "${ECHO_T}no" >&6; } | |
3964 | fi | |
3965 | ||
3966 | ||
3967 | # Extract the first word of "ld", so it can be a program name with args. | |
3968 | set dummy ld; ac_word=$2 | |
3969 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3971 | if test "${ac_cv_path_LD+set}" = set; then | |
3972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3973 | else | |
3974 | case $LD in | |
3975 | [\\/]* | ?:[\\/]*) | |
3976 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
3977 | ;; | |
3978 | *) | |
3979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3980 | for as_dir in $PATH | |
3981 | do | |
3982 | IFS=$as_save_IFS | |
3983 | test -z "$as_dir" && as_dir=. | |
3984 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3985 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3986 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" | |
3987 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3988 | break 2 | |
3989 | fi | |
3990 | done | |
3991 | done | |
3992 | IFS=$as_save_IFS | |
3993 | ||
3994 | ;; | |
3995 | esac | |
3996 | fi | |
3997 | LD=$ac_cv_path_LD | |
3998 | if test -n "$LD"; then | |
3999 | { echo "$as_me:$LINENO: result: $LD" >&5 | |
4000 | echo "${ECHO_T}$LD" >&6; } | |
4001 | else | |
4002 | { echo "$as_me:$LINENO: result: no" >&5 | |
4003 | echo "${ECHO_T}no" >&6; } | |
4004 | fi | |
4005 | ||
4006 | ||
4007 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4008 | set dummy ranlib; ac_word=$2 | |
4009 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4010 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4011 | if test "${ac_cv_path_RANLIB+set}" = set; then | |
4012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4013 | else | |
4014 | case $RANLIB in | |
4015 | [\\/]* | ?:[\\/]*) | |
4016 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
4017 | ;; | |
4018 | *) | |
4019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4020 | for as_dir in $PATH | |
4021 | do | |
4022 | IFS=$as_save_IFS | |
4023 | test -z "$as_dir" && as_dir=. | |
4024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4026 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" | |
4027 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4028 | break 2 | |
4029 | fi | |
4030 | done | |
4031 | done | |
4032 | IFS=$as_save_IFS | |
4033 | ||
4034 | ;; | |
4035 | esac | |
4036 | fi | |
4037 | RANLIB=$ac_cv_path_RANLIB | |
4038 | if test -n "$RANLIB"; then | |
4039 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
4040 | echo "${ECHO_T}$RANLIB" >&6; } | |
4041 | else | |
4042 | { echo "$as_me:$LINENO: result: no" >&5 | |
4043 | echo "${ECHO_T}no" >&6; } | |
4044 | fi | |
4045 | ||
4046 | ||
4047 | # Extract the first word of "touch", so it can be a program name with args. | |
4048 | set dummy touch; ac_word=$2 | |
4049 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4050 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4051 | if test "${ac_cv_path_TOUCH+set}" = set; then | |
4052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4053 | else | |
4054 | case $TOUCH in | |
4055 | [\\/]* | ?:[\\/]*) | |
4056 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
4057 | ;; | |
4058 | *) | |
4059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4060 | for as_dir in $PATH | |
4061 | do | |
4062 | IFS=$as_save_IFS | |
4063 | test -z "$as_dir" && as_dir=. | |
4064 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4065 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4066 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" | |
4067 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4068 | break 2 | |
4069 | fi | |
4070 | done | |
4071 | done | |
4072 | IFS=$as_save_IFS | |
4073 | ||
4074 | ;; | |
4075 | esac | |
4076 | fi | |
4077 | TOUCH=$ac_cv_path_TOUCH | |
4078 | if test -n "$TOUCH"; then | |
4079 | { echo "$as_me:$LINENO: result: $TOUCH" >&5 | |
4080 | echo "${ECHO_T}$TOUCH" >&6; } | |
4081 | else | |
4082 | { echo "$as_me:$LINENO: result: no" >&5 | |
4083 | echo "${ECHO_T}no" >&6; } | |
4084 | fi | |
4085 | ||
4086 | ||
4087 | ||
4088 | for ac_prog in 'bison -y' byacc | |
4089 | do | |
4090 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4091 | set dummy $ac_prog; ac_word=$2 | |
4092 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4093 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4094 | if test "${ac_cv_prog_YACC+set}" = set; then | |
4095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4096 | else | |
4097 | if test -n "$YACC"; then | |
4098 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4099 | else | |
4100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4101 | for as_dir in $PATH | |
4102 | do | |
4103 | IFS=$as_save_IFS | |
4104 | test -z "$as_dir" && as_dir=. | |
4105 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4106 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4107 | ac_cv_prog_YACC="$ac_prog" | |
4108 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4109 | break 2 | |
4110 | fi | |
4111 | done | |
4112 | done | |
4113 | IFS=$as_save_IFS | |
4114 | ||
4115 | fi | |
4116 | fi | |
4117 | YACC=$ac_cv_prog_YACC | |
4118 | if test -n "$YACC"; then | |
4119 | { echo "$as_me:$LINENO: result: $YACC" >&5 | |
4120 | echo "${ECHO_T}$YACC" >&6; } | |
4121 | else | |
4122 | { echo "$as_me:$LINENO: result: no" >&5 | |
4123 | echo "${ECHO_T}no" >&6; } | |
4124 | fi | |
4125 | ||
4126 | ||
4127 | test -n "$YACC" && break | |
4128 | done | |
4129 | test -n "$YACC" || YACC="yacc" | |
4130 | ||
4131 | ||
4132 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then | |
4133 | { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5 | |
4134 | echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;} | |
4135 | { (exit 1); exit 1; }; } | |
4136 | fi | |
4137 | ||
4138 | for ac_prog in flex lex | |
4139 | do | |
4140 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4141 | set dummy $ac_prog; ac_word=$2 | |
4142 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4143 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4144 | if test "${ac_cv_prog_LEX+set}" = set; then | |
4145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4146 | else | |
4147 | if test -n "$LEX"; then | |
4148 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
4149 | else | |
4150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4151 | for as_dir in $PATH | |
4152 | do | |
4153 | IFS=$as_save_IFS | |
4154 | test -z "$as_dir" && as_dir=. | |
4155 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4157 | ac_cv_prog_LEX="$ac_prog" | |
4158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4159 | break 2 | |
4160 | fi | |
4161 | done | |
4162 | done | |
4163 | IFS=$as_save_IFS | |
4164 | ||
4165 | fi | |
4166 | fi | |
4167 | LEX=$ac_cv_prog_LEX | |
4168 | if test -n "$LEX"; then | |
4169 | { echo "$as_me:$LINENO: result: $LEX" >&5 | |
4170 | echo "${ECHO_T}$LEX" >&6; } | |
4171 | else | |
4172 | { echo "$as_me:$LINENO: result: no" >&5 | |
4173 | echo "${ECHO_T}no" >&6; } | |
4174 | fi | |
4175 | ||
4176 | ||
4177 | test -n "$LEX" && break | |
4178 | done | |
4179 | test -n "$LEX" || LEX=":" | |
4180 | ||
4181 | if test "x$LEX" != "x:"; then | |
4182 | cat >conftest.l <<_ACEOF | |
4183 | %% | |
4184 | a { ECHO; } | |
4185 | b { REJECT; } | |
4186 | c { yymore (); } | |
4187 | d { yyless (1); } | |
4188 | e { yyless (input () != 0); } | |
4189 | f { unput (yytext[0]); } | |
4190 | . { BEGIN INITIAL; } | |
4191 | %% | |
4192 | #ifdef YYTEXT_POINTER | |
4193 | extern char *yytext; | |
4194 | #endif | |
4195 | int | |
4196 | main (void) | |
4197 | { | |
4198 | return ! yylex () + ! yywrap (); | |
4199 | } | |
4200 | _ACEOF | |
4201 | { (ac_try="$LEX conftest.l" | |
4202 | case "(($ac_try" in | |
4203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4204 | *) ac_try_echo=$ac_try;; | |
4205 | esac | |
4206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4207 | (eval "$LEX conftest.l") 2>&5 | |
4208 | ac_status=$? | |
4209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4210 | (exit $ac_status); } | |
4211 | { echo "$as_me:$LINENO: checking lex output file root" >&5 | |
4212 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } | |
4213 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
4214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4215 | else | |
4216 | ||
4217 | if test -f lex.yy.c; then | |
4218 | ac_cv_prog_lex_root=lex.yy | |
4219 | elif test -f lexyy.c; then | |
4220 | ac_cv_prog_lex_root=lexyy | |
4221 | else | |
4222 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | |
4223 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
4224 | { (exit 1); exit 1; }; } | |
4225 | fi | |
4226 | fi | |
4227 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | |
4228 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } | |
4229 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
4230 | ||
4231 | if test -z "${LEXLIB+set}"; then | |
4232 | { echo "$as_me:$LINENO: checking lex library" >&5 | |
4233 | echo $ECHO_N "checking lex library... $ECHO_C" >&6; } | |
4234 | if test "${ac_cv_lib_lex+set}" = set; then | |
4235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4236 | else | |
4237 | ||
4238 | ac_save_LIBS=$LIBS | |
4239 | ac_cv_lib_lex='none needed' | |
4240 | for ac_lib in '' -lfl -ll; do | |
4241 | LIBS="$ac_lib $ac_save_LIBS" | |
4242 | cat >conftest.$ac_ext <<_ACEOF | |
4243 | `cat $LEX_OUTPUT_ROOT.c` | |
4244 | _ACEOF | |
4245 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4246 | if { (ac_try="$ac_link" | |
4247 | case "(($ac_try" in | |
4248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4249 | *) ac_try_echo=$ac_try;; | |
4250 | esac | |
4251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4252 | (eval "$ac_link") 2>conftest.er1 | |
4253 | ac_status=$? | |
4254 | grep -v '^ *+' conftest.er1 >conftest.err | |
4255 | rm -f conftest.er1 | |
4256 | cat conftest.err >&5 | |
4257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4258 | (exit $ac_status); } && { | |
4259 | test -z "$ac_c_werror_flag" || | |
4260 | test ! -s conftest.err | |
4261 | } && test -s conftest$ac_exeext && | |
4262 | $as_test_x conftest$ac_exeext; then | |
4263 | ac_cv_lib_lex=$ac_lib | |
4264 | else | |
4265 | echo "$as_me: failed program was:" >&5 | |
4266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4267 | ||
4268 | ||
4269 | fi | |
4270 | ||
4271 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4272 | conftest$ac_exeext conftest.$ac_ext | |
4273 | test "$ac_cv_lib_lex" != 'none needed' && break | |
4274 | done | |
4275 | LIBS=$ac_save_LIBS | |
4276 | ||
4277 | fi | |
4278 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 | |
4279 | echo "${ECHO_T}$ac_cv_lib_lex" >&6; } | |
4280 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
4281 | fi | |
4282 | ||
4283 | ||
4284 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | |
4285 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } | |
4286 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
4287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4288 | else | |
4289 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
4290 | # default is implementation-dependent. Figure out which it is, since | |
4291 | # not all implementations provide the %pointer and %array declarations. | |
4292 | ac_cv_prog_lex_yytext_pointer=no | |
4293 | ac_save_LIBS=$LIBS | |
4294 | LIBS="$LEXLIB $ac_save_LIBS" | |
4295 | cat >conftest.$ac_ext <<_ACEOF | |
4296 | #define YYTEXT_POINTER 1 | |
4297 | `cat $LEX_OUTPUT_ROOT.c` | |
4298 | _ACEOF | |
4299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4300 | if { (ac_try="$ac_link" | |
4301 | case "(($ac_try" in | |
4302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4303 | *) ac_try_echo=$ac_try;; | |
4304 | esac | |
4305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4306 | (eval "$ac_link") 2>conftest.er1 | |
4307 | ac_status=$? | |
4308 | grep -v '^ *+' conftest.er1 >conftest.err | |
4309 | rm -f conftest.er1 | |
4310 | cat conftest.err >&5 | |
4311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4312 | (exit $ac_status); } && { | |
4313 | test -z "$ac_c_werror_flag" || | |
4314 | test ! -s conftest.err | |
4315 | } && test -s conftest$ac_exeext && | |
4316 | $as_test_x conftest$ac_exeext; then | |
4317 | ac_cv_prog_lex_yytext_pointer=yes | |
4318 | else | |
4319 | echo "$as_me: failed program was:" >&5 | |
4320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4321 | ||
4322 | ||
4323 | fi | |
4324 | ||
4325 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4326 | conftest$ac_exeext conftest.$ac_ext | |
4327 | LIBS=$ac_save_LIBS | |
4328 | ||
4329 | fi | |
4330 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
4331 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } | |
4332 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
4333 | ||
4334 | cat >>confdefs.h <<\_ACEOF | |
4335 | #define YYTEXT_POINTER 1 | |
4336 | _ACEOF | |
4337 | ||
4338 | fi | |
4339 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
4340 | ||
4341 | fi | |
4342 | ||
4343 | if test "$LEX" = ":"; then | |
4344 | { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5 | |
4345 | echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;} | |
4346 | { (exit 1); exit 1; }; } | |
4347 | fi | |
4348 | ||
4349 | if test "$libexecdir" = '${exec_prefix}/libexec' && | |
4350 | test "$localstatedir" = '${prefix}/var'; then | |
4351 | libexecdir='${bindir}' | |
4352 | localstatedir='${prefix}' | |
4353 | fi | |
4354 | ||
4355 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4356 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
4357 | if test "${ac_cv_header_stdc+set}" = set; then | |
4358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4359 | else | |
4360 | cat >conftest.$ac_ext <<_ACEOF | |
4361 | /* confdefs.h. */ | |
4362 | _ACEOF | |
4363 | cat confdefs.h >>conftest.$ac_ext | |
4364 | cat >>conftest.$ac_ext <<_ACEOF | |
4365 | /* end confdefs.h. */ | |
4366 | #include <stdlib.h> | |
4367 | #include <stdarg.h> | |
4368 | #include <string.h> | |
4369 | #include <float.h> | |
4370 | ||
4371 | int | |
4372 | main () | |
4373 | { | |
4374 | ||
4375 | ; | |
4376 | return 0; | |
4377 | } | |
4378 | _ACEOF | |
4379 | rm -f conftest.$ac_objext | |
4380 | if { (ac_try="$ac_compile" | |
4381 | case "(($ac_try" in | |
4382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4383 | *) ac_try_echo=$ac_try;; | |
4384 | esac | |
4385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4386 | (eval "$ac_compile") 2>conftest.er1 | |
4387 | ac_status=$? | |
4388 | grep -v '^ *+' conftest.er1 >conftest.err | |
4389 | rm -f conftest.er1 | |
4390 | cat conftest.err >&5 | |
4391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4392 | (exit $ac_status); } && { | |
4393 | test -z "$ac_c_werror_flag" || | |
4394 | test ! -s conftest.err | |
4395 | } && test -s conftest.$ac_objext; then | |
4396 | ac_cv_header_stdc=yes | |
4397 | else | |
4398 | echo "$as_me: failed program was:" >&5 | |
4399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4400 | ||
4401 | ac_cv_header_stdc=no | |
4402 | fi | |
4403 | ||
4404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4405 | ||
4406 | if test $ac_cv_header_stdc = yes; then | |
4407 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4408 | cat >conftest.$ac_ext <<_ACEOF | |
4409 | /* confdefs.h. */ | |
4410 | _ACEOF | |
4411 | cat confdefs.h >>conftest.$ac_ext | |
4412 | cat >>conftest.$ac_ext <<_ACEOF | |
4413 | /* end confdefs.h. */ | |
4414 | #include <string.h> | |
4415 | ||
4416 | _ACEOF | |
4417 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4418 | $EGREP "memchr" >/dev/null 2>&1; then | |
4419 | : | |
4420 | else | |
4421 | ac_cv_header_stdc=no | |
4422 | fi | |
4423 | rm -f conftest* | |
4424 | ||
4425 | fi | |
4426 | ||
4427 | if test $ac_cv_header_stdc = yes; then | |
4428 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4429 | cat >conftest.$ac_ext <<_ACEOF | |
4430 | /* confdefs.h. */ | |
4431 | _ACEOF | |
4432 | cat confdefs.h >>conftest.$ac_ext | |
4433 | cat >>conftest.$ac_ext <<_ACEOF | |
4434 | /* end confdefs.h. */ | |
4435 | #include <stdlib.h> | |
4436 | ||
4437 | _ACEOF | |
4438 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4439 | $EGREP "free" >/dev/null 2>&1; then | |
4440 | : | |
4441 | else | |
4442 | ac_cv_header_stdc=no | |
4443 | fi | |
4444 | rm -f conftest* | |
4445 | ||
4446 | fi | |
4447 | ||
4448 | if test $ac_cv_header_stdc = yes; then | |
4449 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4450 | if test "$cross_compiling" = yes; then | |
4451 | : | |
4452 | else | |
4453 | cat >conftest.$ac_ext <<_ACEOF | |
4454 | /* confdefs.h. */ | |
4455 | _ACEOF | |
4456 | cat confdefs.h >>conftest.$ac_ext | |
4457 | cat >>conftest.$ac_ext <<_ACEOF | |
4458 | /* end confdefs.h. */ | |
4459 | #include <ctype.h> | |
4460 | #include <stdlib.h> | |
4461 | #if ((' ' & 0x0FF) == 0x020) | |
4462 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4463 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4464 | #else | |
4465 | # define ISLOWER(c) \ | |
4466 | (('a' <= (c) && (c) <= 'i') \ | |
4467 | || ('j' <= (c) && (c) <= 'r') \ | |
4468 | || ('s' <= (c) && (c) <= 'z')) | |
4469 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4470 | #endif | |
4471 | ||
4472 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4473 | int | |
4474 | main () | |
4475 | { | |
4476 | int i; | |
4477 | for (i = 0; i < 256; i++) | |
4478 | if (XOR (islower (i), ISLOWER (i)) | |
4479 | || toupper (i) != TOUPPER (i)) | |
4480 | return 2; | |
4481 | return 0; | |
4482 | } | |
4483 | _ACEOF | |
4484 | rm -f conftest$ac_exeext | |
4485 | if { (ac_try="$ac_link" | |
4486 | case "(($ac_try" in | |
4487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4488 | *) ac_try_echo=$ac_try;; | |
4489 | esac | |
4490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4491 | (eval "$ac_link") 2>&5 | |
4492 | ac_status=$? | |
4493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4494 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4495 | { (case "(($ac_try" in | |
4496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4497 | *) ac_try_echo=$ac_try;; | |
4498 | esac | |
4499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4500 | (eval "$ac_try") 2>&5 | |
4501 | ac_status=$? | |
4502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4503 | (exit $ac_status); }; }; then | |
4504 | : | |
4505 | else | |
4506 | echo "$as_me: program exited with status $ac_status" >&5 | |
4507 | echo "$as_me: failed program was:" >&5 | |
4508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4509 | ||
4510 | ( exit $ac_status ) | |
4511 | ac_cv_header_stdc=no | |
4512 | fi | |
4513 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4514 | fi | |
4515 | ||
4516 | ||
4517 | fi | |
4518 | fi | |
4519 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4520 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
4521 | if test $ac_cv_header_stdc = yes; then | |
4522 | ||
4523 | cat >>confdefs.h <<\_ACEOF | |
4524 | #define STDC_HEADERS 1 | |
4525 | _ACEOF | |
4526 | ||
4527 | fi | |
4528 | ||
4529 | ||
4530 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4531 | ||
4532 | ||
4533 | ||
4534 | ||
4535 | ||
4536 | ||
4537 | ||
4538 | ||
4539 | ||
4540 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4541 | inttypes.h stdint.h unistd.h | |
4542 | do | |
4543 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4544 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4545 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4546 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4548 | else | |
4549 | cat >conftest.$ac_ext <<_ACEOF | |
4550 | /* confdefs.h. */ | |
4551 | _ACEOF | |
4552 | cat confdefs.h >>conftest.$ac_ext | |
4553 | cat >>conftest.$ac_ext <<_ACEOF | |
4554 | /* end confdefs.h. */ | |
4555 | $ac_includes_default | |
4556 | ||
4557 | #include <$ac_header> | |
4558 | _ACEOF | |
4559 | rm -f conftest.$ac_objext | |
4560 | if { (ac_try="$ac_compile" | |
4561 | case "(($ac_try" in | |
4562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4563 | *) ac_try_echo=$ac_try;; | |
4564 | esac | |
4565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4566 | (eval "$ac_compile") 2>conftest.er1 | |
4567 | ac_status=$? | |
4568 | grep -v '^ *+' conftest.er1 >conftest.err | |
4569 | rm -f conftest.er1 | |
4570 | cat conftest.err >&5 | |
4571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4572 | (exit $ac_status); } && { | |
4573 | test -z "$ac_c_werror_flag" || | |
4574 | test ! -s conftest.err | |
4575 | } && test -s conftest.$ac_objext; then | |
4576 | eval "$as_ac_Header=yes" | |
4577 | else | |
4578 | echo "$as_me: failed program was:" >&5 | |
4579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4580 | ||
4581 | eval "$as_ac_Header=no" | |
4582 | fi | |
4583 | ||
4584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4585 | fi | |
4586 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
4587 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4588 | echo "${ECHO_T}$ac_res" >&6; } | |
4589 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4590 | cat >>confdefs.h <<_ACEOF | |
4591 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4592 | _ACEOF | |
4593 | ||
4594 | fi | |
4595 | ||
4596 | done | |
4597 | ||
4598 | ||
4599 | ||
4600 | ||
4601 | ||
4602 | ||
4603 | ||
4604 | ||
4605 | ||
4606 | ||
4607 | ||
4608 | ||
4609 | ||
4610 | 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 | |
4611 | do | |
4612 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4613 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4614 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4615 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4616 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4618 | fi | |
4619 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
4620 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4621 | echo "${ECHO_T}$ac_res" >&6; } | |
4622 | else | |
4623 | # Is the header compilable? | |
4624 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4625 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
4626 | cat >conftest.$ac_ext <<_ACEOF | |
4627 | /* confdefs.h. */ | |
4628 | _ACEOF | |
4629 | cat confdefs.h >>conftest.$ac_ext | |
4630 | cat >>conftest.$ac_ext <<_ACEOF | |
4631 | /* end confdefs.h. */ | |
4632 | $ac_includes_default | |
4633 | #include <$ac_header> | |
4634 | _ACEOF | |
4635 | rm -f conftest.$ac_objext | |
4636 | if { (ac_try="$ac_compile" | |
4637 | case "(($ac_try" in | |
4638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4639 | *) ac_try_echo=$ac_try;; | |
4640 | esac | |
4641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4642 | (eval "$ac_compile") 2>conftest.er1 | |
4643 | ac_status=$? | |
4644 | grep -v '^ *+' conftest.er1 >conftest.err | |
4645 | rm -f conftest.er1 | |
4646 | cat conftest.err >&5 | |
4647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4648 | (exit $ac_status); } && { | |
4649 | test -z "$ac_c_werror_flag" || | |
4650 | test ! -s conftest.err | |
4651 | } && test -s conftest.$ac_objext; then | |
4652 | ac_header_compiler=yes | |
4653 | else | |
4654 | echo "$as_me: failed program was:" >&5 | |
4655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4656 | ||
4657 | ac_header_compiler=no | |
4658 | fi | |
4659 | ||
4660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4661 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4662 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
4663 | ||
4664 | # Is the header present? | |
4665 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4666 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
4667 | cat >conftest.$ac_ext <<_ACEOF | |
4668 | /* confdefs.h. */ | |
4669 | _ACEOF | |
4670 | cat confdefs.h >>conftest.$ac_ext | |
4671 | cat >>conftest.$ac_ext <<_ACEOF | |
4672 | /* end confdefs.h. */ | |
4673 | #include <$ac_header> | |
4674 | _ACEOF | |
4675 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4676 | case "(($ac_try" in | |
4677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4678 | *) ac_try_echo=$ac_try;; | |
4679 | esac | |
4680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4681 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4682 | ac_status=$? | |
4683 | grep -v '^ *+' conftest.er1 >conftest.err | |
4684 | rm -f conftest.er1 | |
4685 | cat conftest.err >&5 | |
4686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4687 | (exit $ac_status); } >/dev/null && { | |
4688 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4689 | test ! -s conftest.err | |
4690 | }; then | |
4691 | ac_header_preproc=yes | |
4692 | else | |
4693 | echo "$as_me: failed program was:" >&5 | |
4694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4695 | ||
4696 | ac_header_preproc=no | |
4697 | fi | |
4698 | ||
4699 | rm -f conftest.err conftest.$ac_ext | |
4700 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4701 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
4702 | ||
4703 | # So? What about this header? | |
4704 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4705 | yes:no: ) | |
4706 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4707 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4708 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4709 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4710 | ac_header_preproc=yes | |
4711 | ;; | |
4712 | no:yes:* ) | |
4713 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4714 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4715 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4716 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4717 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4718 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4719 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4720 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4721 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4722 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4723 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4724 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4725 | ||
4726 | ;; | |
4727 | esac | |
4728 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4729 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4730 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4732 | else | |
4733 | eval "$as_ac_Header=\$ac_header_preproc" | |
4734 | fi | |
4735 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
4736 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4737 | echo "${ECHO_T}$ac_res" >&6; } | |
4738 | ||
4739 | fi | |
4740 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4741 | cat >>confdefs.h <<_ACEOF | |
4742 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4743 | _ACEOF | |
4744 | ||
4745 | fi | |
4746 | ||
4747 | done | |
4748 | ||
4749 | ||
4750 | ||
4751 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
4752 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
4753 | if test "${ac_cv_c_const+set}" = set; then | |
4754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4755 | else | |
4756 | cat >conftest.$ac_ext <<_ACEOF | |
4757 | /* confdefs.h. */ | |
4758 | _ACEOF | |
4759 | cat confdefs.h >>conftest.$ac_ext | |
4760 | cat >>conftest.$ac_ext <<_ACEOF | |
4761 | /* end confdefs.h. */ | |
4762 | ||
4763 | int | |
4764 | main () | |
4765 | { | |
4766 | /* FIXME: Include the comments suggested by Paul. */ | |
4767 | #ifndef __cplusplus | |
4768 | /* Ultrix mips cc rejects this. */ | |
4769 | typedef int charset[2]; | |
4770 | const charset cs; | |
4771 | /* SunOS 4.1.1 cc rejects this. */ | |
4772 | char const *const *pcpcc; | |
4773 | char **ppc; | |
4774 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
4775 | struct point {int x, y;}; | |
4776 | static struct point const zero = {0,0}; | |
4777 | /* AIX XL C 1.02.0.0 rejects this. | |
4778 | It does not let you subtract one const X* pointer from another in | |
4779 | an arm of an if-expression whose if-part is not a constant | |
4780 | expression */ | |
4781 | const char *g = "string"; | |
4782 | pcpcc = &g + (g ? g-g : 0); | |
4783 | /* HPUX 7.0 cc rejects these. */ | |
4784 | ++pcpcc; | |
4785 | ppc = (char**) pcpcc; | |
4786 | pcpcc = (char const *const *) ppc; | |
4787 | { /* SCO 3.2v4 cc rejects this. */ | |
4788 | char *t; | |
4789 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4790 | ||
4791 | *t++ = 0; | |
4792 | if (s) return 0; | |
4793 | } | |
4794 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4795 | int x[] = {25, 17}; | |
4796 | const int *foo = &x[0]; | |
4797 | ++foo; | |
4798 | } | |
4799 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4800 | typedef const int *iptr; | |
4801 | iptr p = 0; | |
4802 | ++p; | |
4803 | } | |
4804 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4805 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4806 | struct s { int j; const int *ap[3]; }; | |
4807 | struct s *b; b->j = 5; | |
4808 | } | |
4809 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4810 | const int foo = 10; | |
4811 | if (!foo) return 0; | |
4812 | } | |
4813 | return !cs[0] && !zero.x; | |
4814 | #endif | |
4815 | ||
4816 | ; | |
4817 | return 0; | |
4818 | } | |
4819 | _ACEOF | |
4820 | rm -f conftest.$ac_objext | |
4821 | if { (ac_try="$ac_compile" | |
4822 | case "(($ac_try" in | |
4823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4824 | *) ac_try_echo=$ac_try;; | |
4825 | esac | |
4826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4827 | (eval "$ac_compile") 2>conftest.er1 | |
4828 | ac_status=$? | |
4829 | grep -v '^ *+' conftest.er1 >conftest.err | |
4830 | rm -f conftest.er1 | |
4831 | cat conftest.err >&5 | |
4832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4833 | (exit $ac_status); } && { | |
4834 | test -z "$ac_c_werror_flag" || | |
4835 | test ! -s conftest.err | |
4836 | } && test -s conftest.$ac_objext; then | |
4837 | ac_cv_c_const=yes | |
4838 | else | |
4839 | echo "$as_me: failed program was:" >&5 | |
4840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4841 | ||
4842 | ac_cv_c_const=no | |
4843 | fi | |
4844 | ||
4845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4846 | fi | |
4847 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
4848 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
4849 | if test $ac_cv_c_const = no; then | |
4850 | ||
4851 | cat >>confdefs.h <<\_ACEOF | |
4852 | #define const | |
4853 | _ACEOF | |
4854 | ||
4855 | fi | |
4856 | ||
4857 | if test "$ac_cv_header_machine_endian_h" = "no" ; then | |
4858 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
4859 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
4860 | if test "${ac_cv_c_bigendian+set}" = set; then | |
4861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4862 | else | |
4863 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4864 | cat >conftest.$ac_ext <<_ACEOF | |
4865 | /* confdefs.h. */ | |
4866 | _ACEOF | |
4867 | cat confdefs.h >>conftest.$ac_ext | |
4868 | cat >>conftest.$ac_ext <<_ACEOF | |
4869 | /* end confdefs.h. */ | |
4870 | #include <sys/types.h> | |
4871 | #include <sys/param.h> | |
4872 | ||
4873 | int | |
4874 | main () | |
4875 | { | |
4876 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | |
4877 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
4878 | bogus endian macros | |
4879 | #endif | |
4880 | ||
4881 | ; | |
4882 | return 0; | |
4883 | } | |
4884 | _ACEOF | |
4885 | rm -f conftest.$ac_objext | |
4886 | if { (ac_try="$ac_compile" | |
4887 | case "(($ac_try" in | |
4888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4889 | *) ac_try_echo=$ac_try;; | |
4890 | esac | |
4891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4892 | (eval "$ac_compile") 2>conftest.er1 | |
4893 | ac_status=$? | |
4894 | grep -v '^ *+' conftest.er1 >conftest.err | |
4895 | rm -f conftest.er1 | |
4896 | cat conftest.err >&5 | |
4897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4898 | (exit $ac_status); } && { | |
4899 | test -z "$ac_c_werror_flag" || | |
4900 | test ! -s conftest.err | |
4901 | } && test -s conftest.$ac_objext; then | |
4902 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
4903 | cat >conftest.$ac_ext <<_ACEOF | |
4904 | /* confdefs.h. */ | |
4905 | _ACEOF | |
4906 | cat confdefs.h >>conftest.$ac_ext | |
4907 | cat >>conftest.$ac_ext <<_ACEOF | |
4908 | /* end confdefs.h. */ | |
4909 | #include <sys/types.h> | |
4910 | #include <sys/param.h> | |
4911 | ||
4912 | int | |
4913 | main () | |
4914 | { | |
4915 | #if BYTE_ORDER != BIG_ENDIAN | |
4916 | not big endian | |
4917 | #endif | |
4918 | ||
4919 | ; | |
4920 | return 0; | |
4921 | } | |
4922 | _ACEOF | |
4923 | rm -f conftest.$ac_objext | |
4924 | if { (ac_try="$ac_compile" | |
4925 | case "(($ac_try" in | |
4926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4927 | *) ac_try_echo=$ac_try;; | |
4928 | esac | |
4929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4930 | (eval "$ac_compile") 2>conftest.er1 | |
4931 | ac_status=$? | |
4932 | grep -v '^ *+' conftest.er1 >conftest.err | |
4933 | rm -f conftest.er1 | |
4934 | cat conftest.err >&5 | |
4935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4936 | (exit $ac_status); } && { | |
4937 | test -z "$ac_c_werror_flag" || | |
4938 | test ! -s conftest.err | |
4939 | } && test -s conftest.$ac_objext; then | |
4940 | ac_cv_c_bigendian=yes | |
4941 | else | |
4942 | echo "$as_me: failed program was:" >&5 | |
4943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4944 | ||
4945 | ac_cv_c_bigendian=no | |
4946 | fi | |
4947 | ||
4948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4949 | else | |
4950 | echo "$as_me: failed program was:" >&5 | |
4951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4952 | ||
4953 | # It does not; compile a test program. | |
4954 | if test "$cross_compiling" = yes; then | |
4955 | # try to guess the endianness by grepping values into an object file | |
4956 | ac_cv_c_bigendian=unknown | |
4957 | cat >conftest.$ac_ext <<_ACEOF | |
4958 | /* confdefs.h. */ | |
4959 | _ACEOF | |
4960 | cat confdefs.h >>conftest.$ac_ext | |
4961 | cat >>conftest.$ac_ext <<_ACEOF | |
4962 | /* end confdefs.h. */ | |
4963 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
4964 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
4965 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
4966 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
4967 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
4968 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
4969 | int | |
4970 | main () | |
4971 | { | |
4972 | _ascii (); _ebcdic (); | |
4973 | ; | |
4974 | return 0; | |
4975 | } | |
4976 | _ACEOF | |
4977 | rm -f conftest.$ac_objext | |
4978 | if { (ac_try="$ac_compile" | |
4979 | case "(($ac_try" in | |
4980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4981 | *) ac_try_echo=$ac_try;; | |
4982 | esac | |
4983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4984 | (eval "$ac_compile") 2>conftest.er1 | |
4985 | ac_status=$? | |
4986 | grep -v '^ *+' conftest.er1 >conftest.err | |
4987 | rm -f conftest.er1 | |
4988 | cat conftest.err >&5 | |
4989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4990 | (exit $ac_status); } && { | |
4991 | test -z "$ac_c_werror_flag" || | |
4992 | test ! -s conftest.err | |
4993 | } && test -s conftest.$ac_objext; then | |
4994 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
4995 | ac_cv_c_bigendian=yes | |
4996 | fi | |
4997 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
4998 | if test "$ac_cv_c_bigendian" = unknown; then | |
4999 | ac_cv_c_bigendian=no | |
5000 | else | |
5001 | # finding both strings is unlikely to happen, but who knows? | |
5002 | ac_cv_c_bigendian=unknown | |
5003 | fi | |
5004 | fi | |
5005 | else | |
5006 | echo "$as_me: failed program was:" >&5 | |
5007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5008 | ||
5009 | ||
5010 | fi | |
5011 | ||
5012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5013 | else | |
5014 | cat >conftest.$ac_ext <<_ACEOF | |
5015 | /* confdefs.h. */ | |
5016 | _ACEOF | |
5017 | cat confdefs.h >>conftest.$ac_ext | |
5018 | cat >>conftest.$ac_ext <<_ACEOF | |
5019 | /* end confdefs.h. */ | |
5020 | $ac_includes_default | |
5021 | int | |
5022 | main () | |
5023 | { | |
5024 | ||
5025 | /* Are we little or big endian? From Harbison&Steele. */ | |
5026 | union | |
5027 | { | |
5028 | long int l; | |
5029 | char c[sizeof (long int)]; | |
5030 | } u; | |
5031 | u.l = 1; | |
5032 | return u.c[sizeof (long int) - 1] == 1; | |
5033 | ||
5034 | ; | |
5035 | return 0; | |
5036 | } | |
5037 | _ACEOF | |
5038 | rm -f conftest$ac_exeext | |
5039 | if { (ac_try="$ac_link" | |
5040 | case "(($ac_try" in | |
5041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5042 | *) ac_try_echo=$ac_try;; | |
5043 | esac | |
5044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5045 | (eval "$ac_link") 2>&5 | |
5046 | ac_status=$? | |
5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5048 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5049 | { (case "(($ac_try" in | |
5050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5051 | *) ac_try_echo=$ac_try;; | |
5052 | esac | |
5053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5054 | (eval "$ac_try") 2>&5 | |
5055 | ac_status=$? | |
5056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5057 | (exit $ac_status); }; }; then | |
5058 | ac_cv_c_bigendian=no | |
5059 | else | |
5060 | echo "$as_me: program exited with status $ac_status" >&5 | |
5061 | echo "$as_me: failed program was:" >&5 | |
5062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5063 | ||
5064 | ( exit $ac_status ) | |
5065 | ac_cv_c_bigendian=yes | |
5066 | fi | |
5067 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5068 | fi | |
5069 | ||
5070 | ||
5071 | fi | |
5072 | ||
5073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5074 | fi | |
5075 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
5076 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
5077 | case $ac_cv_c_bigendian in | |
5078 | yes) | |
5079 | ||
5080 | cat >>confdefs.h <<\_ACEOF | |
5081 | #define WORDS_BIGENDIAN 1 | |
5082 | _ACEOF | |
5083 | ;; | |
5084 | no) | |
5085 | ;; | |
5086 | *) | |
5087 | { { echo "$as_me:$LINENO: error: unknown endianness | |
5088 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
5089 | echo "$as_me: error: unknown endianness | |
5090 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
5091 | { (exit 1); exit 1; }; } ;; | |
5092 | esac | |
5093 | ||
5094 | fi | |
5095 | { echo "$as_me:$LINENO: checking for pid_t" >&5 | |
5096 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
5097 | if test "${ac_cv_type_pid_t+set}" = set; then | |
5098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5099 | else | |
5100 | cat >conftest.$ac_ext <<_ACEOF | |
5101 | /* confdefs.h. */ | |
5102 | _ACEOF | |
5103 | cat confdefs.h >>conftest.$ac_ext | |
5104 | cat >>conftest.$ac_ext <<_ACEOF | |
5105 | /* end confdefs.h. */ | |
5106 | $ac_includes_default | |
5107 | typedef pid_t ac__type_new_; | |
5108 | int | |
5109 | main () | |
5110 | { | |
5111 | if ((ac__type_new_ *) 0) | |
5112 | return 0; | |
5113 | if (sizeof (ac__type_new_)) | |
5114 | return 0; | |
5115 | ; | |
5116 | return 0; | |
5117 | } | |
5118 | _ACEOF | |
5119 | rm -f conftest.$ac_objext | |
5120 | if { (ac_try="$ac_compile" | |
5121 | case "(($ac_try" in | |
5122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5123 | *) ac_try_echo=$ac_try;; | |
5124 | esac | |
5125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5126 | (eval "$ac_compile") 2>conftest.er1 | |
5127 | ac_status=$? | |
5128 | grep -v '^ *+' conftest.er1 >conftest.err | |
5129 | rm -f conftest.er1 | |
5130 | cat conftest.err >&5 | |
5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5132 | (exit $ac_status); } && { | |
5133 | test -z "$ac_c_werror_flag" || | |
5134 | test ! -s conftest.err | |
5135 | } && test -s conftest.$ac_objext; then | |
5136 | ac_cv_type_pid_t=yes | |
5137 | else | |
5138 | echo "$as_me: failed program was:" >&5 | |
5139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5140 | ||
5141 | ac_cv_type_pid_t=no | |
5142 | fi | |
5143 | ||
5144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5145 | fi | |
5146 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
5147 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
5148 | if test $ac_cv_type_pid_t = yes; then | |
5149 | : | |
5150 | else | |
5151 | ||
5152 | cat >>confdefs.h <<_ACEOF | |
5153 | #define pid_t int | |
5154 | _ACEOF | |
5155 | ||
5156 | fi | |
5157 | ||
5158 | { echo "$as_me:$LINENO: checking for size_t" >&5 | |
5159 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
5160 | if test "${ac_cv_type_size_t+set}" = set; then | |
5161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5162 | else | |
5163 | cat >conftest.$ac_ext <<_ACEOF | |
5164 | /* confdefs.h. */ | |
5165 | _ACEOF | |
5166 | cat confdefs.h >>conftest.$ac_ext | |
5167 | cat >>conftest.$ac_ext <<_ACEOF | |
5168 | /* end confdefs.h. */ | |
5169 | $ac_includes_default | |
5170 | typedef size_t ac__type_new_; | |
5171 | int | |
5172 | main () | |
5173 | { | |
5174 | if ((ac__type_new_ *) 0) | |
5175 | return 0; | |
5176 | if (sizeof (ac__type_new_)) | |
5177 | return 0; | |
5178 | ; | |
5179 | return 0; | |
5180 | } | |
5181 | _ACEOF | |
5182 | rm -f conftest.$ac_objext | |
5183 | if { (ac_try="$ac_compile" | |
5184 | case "(($ac_try" in | |
5185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5186 | *) ac_try_echo=$ac_try;; | |
5187 | esac | |
5188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5189 | (eval "$ac_compile") 2>conftest.er1 | |
5190 | ac_status=$? | |
5191 | grep -v '^ *+' conftest.er1 >conftest.err | |
5192 | rm -f conftest.er1 | |
5193 | cat conftest.err >&5 | |
5194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5195 | (exit $ac_status); } && { | |
5196 | test -z "$ac_c_werror_flag" || | |
5197 | test ! -s conftest.err | |
5198 | } && test -s conftest.$ac_objext; then | |
5199 | ac_cv_type_size_t=yes | |
5200 | else | |
5201 | echo "$as_me: failed program was:" >&5 | |
5202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5203 | ||
5204 | ac_cv_type_size_t=no | |
5205 | fi | |
5206 | ||
5207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5208 | fi | |
5209 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
5210 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
5211 | if test $ac_cv_type_size_t = yes; then | |
5212 | : | |
5213 | else | |
5214 | ||
5215 | cat >>confdefs.h <<_ACEOF | |
5216 | #define size_t unsigned int | |
5217 | _ACEOF | |
5218 | ||
5219 | fi | |
5220 | ||
5221 | { echo "$as_me:$LINENO: checking for short" >&5 | |
5222 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } | |
5223 | if test "${ac_cv_type_short+set}" = set; then | |
5224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5225 | else | |
5226 | cat >conftest.$ac_ext <<_ACEOF | |
5227 | /* confdefs.h. */ | |
5228 | _ACEOF | |
5229 | cat confdefs.h >>conftest.$ac_ext | |
5230 | cat >>conftest.$ac_ext <<_ACEOF | |
5231 | /* end confdefs.h. */ | |
5232 | $ac_includes_default | |
5233 | typedef short ac__type_new_; | |
5234 | int | |
5235 | main () | |
5236 | { | |
5237 | if ((ac__type_new_ *) 0) | |
5238 | return 0; | |
5239 | if (sizeof (ac__type_new_)) | |
5240 | return 0; | |
5241 | ; | |
5242 | return 0; | |
5243 | } | |
5244 | _ACEOF | |
5245 | rm -f conftest.$ac_objext | |
5246 | if { (ac_try="$ac_compile" | |
5247 | case "(($ac_try" in | |
5248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5249 | *) ac_try_echo=$ac_try;; | |
5250 | esac | |
5251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5252 | (eval "$ac_compile") 2>conftest.er1 | |
5253 | ac_status=$? | |
5254 | grep -v '^ *+' conftest.er1 >conftest.err | |
5255 | rm -f conftest.er1 | |
5256 | cat conftest.err >&5 | |
5257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5258 | (exit $ac_status); } && { | |
5259 | test -z "$ac_c_werror_flag" || | |
5260 | test ! -s conftest.err | |
5261 | } && test -s conftest.$ac_objext; then | |
5262 | ac_cv_type_short=yes | |
5263 | else | |
5264 | echo "$as_me: failed program was:" >&5 | |
5265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5266 | ||
5267 | ac_cv_type_short=no | |
5268 | fi | |
5269 | ||
5270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5271 | fi | |
5272 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
5273 | echo "${ECHO_T}$ac_cv_type_short" >&6; } | |
5274 | ||
5275 | # The cast to long int works around a bug in the HP C Compiler | |
5276 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5277 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5278 | # This bug is HP SR number 8606223364. | |
5279 | { echo "$as_me:$LINENO: checking size of short" >&5 | |
5280 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } | |
5281 | if test "${ac_cv_sizeof_short+set}" = set; then | |
5282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5283 | else | |
5284 | if test "$cross_compiling" = yes; then | |
5285 | # Depending upon the size, compute the lo and hi bounds. | |
5286 | cat >conftest.$ac_ext <<_ACEOF | |
5287 | /* confdefs.h. */ | |
5288 | _ACEOF | |
5289 | cat confdefs.h >>conftest.$ac_ext | |
5290 | cat >>conftest.$ac_ext <<_ACEOF | |
5291 | /* end confdefs.h. */ | |
5292 | $ac_includes_default | |
5293 | typedef short ac__type_sizeof_; | |
5294 | int | |
5295 | main () | |
5296 | { | |
5297 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
5298 | test_array [0] = 0 | |
5299 | ||
5300 | ; | |
5301 | return 0; | |
5302 | } | |
5303 | _ACEOF | |
5304 | rm -f conftest.$ac_objext | |
5305 | if { (ac_try="$ac_compile" | |
5306 | case "(($ac_try" in | |
5307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5308 | *) ac_try_echo=$ac_try;; | |
5309 | esac | |
5310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5311 | (eval "$ac_compile") 2>conftest.er1 | |
5312 | ac_status=$? | |
5313 | grep -v '^ *+' conftest.er1 >conftest.err | |
5314 | rm -f conftest.er1 | |
5315 | cat conftest.err >&5 | |
5316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5317 | (exit $ac_status); } && { | |
5318 | test -z "$ac_c_werror_flag" || | |
5319 | test ! -s conftest.err | |
5320 | } && test -s conftest.$ac_objext; then | |
5321 | ac_lo=0 ac_mid=0 | |
5322 | while :; do | |
5323 | cat >conftest.$ac_ext <<_ACEOF | |
5324 | /* confdefs.h. */ | |
5325 | _ACEOF | |
5326 | cat confdefs.h >>conftest.$ac_ext | |
5327 | cat >>conftest.$ac_ext <<_ACEOF | |
5328 | /* end confdefs.h. */ | |
5329 | $ac_includes_default | |
5330 | typedef short ac__type_sizeof_; | |
5331 | int | |
5332 | main () | |
5333 | { | |
5334 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
5335 | test_array [0] = 0 | |
5336 | ||
5337 | ; | |
5338 | return 0; | |
5339 | } | |
5340 | _ACEOF | |
5341 | rm -f conftest.$ac_objext | |
5342 | if { (ac_try="$ac_compile" | |
5343 | case "(($ac_try" in | |
5344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5345 | *) ac_try_echo=$ac_try;; | |
5346 | esac | |
5347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5348 | (eval "$ac_compile") 2>conftest.er1 | |
5349 | ac_status=$? | |
5350 | grep -v '^ *+' conftest.er1 >conftest.err | |
5351 | rm -f conftest.er1 | |
5352 | cat conftest.err >&5 | |
5353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5354 | (exit $ac_status); } && { | |
5355 | test -z "$ac_c_werror_flag" || | |
5356 | test ! -s conftest.err | |
5357 | } && test -s conftest.$ac_objext; then | |
5358 | ac_hi=$ac_mid; break | |
5359 | else | |
5360 | echo "$as_me: failed program was:" >&5 | |
5361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5362 | ||
5363 | ac_lo=`expr $ac_mid + 1` | |
5364 | if test $ac_lo -le $ac_mid; then | |
5365 | ac_lo= ac_hi= | |
5366 | break | |
5367 | fi | |
5368 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
5369 | fi | |
5370 | ||
5371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5372 | done | |
5373 | else | |
5374 | echo "$as_me: failed program was:" >&5 | |
5375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5376 | ||
5377 | cat >conftest.$ac_ext <<_ACEOF | |
5378 | /* confdefs.h. */ | |
5379 | _ACEOF | |
5380 | cat confdefs.h >>conftest.$ac_ext | |
5381 | cat >>conftest.$ac_ext <<_ACEOF | |
5382 | /* end confdefs.h. */ | |
5383 | $ac_includes_default | |
5384 | typedef short ac__type_sizeof_; | |
5385 | int | |
5386 | main () | |
5387 | { | |
5388 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
5389 | test_array [0] = 0 | |
5390 | ||
5391 | ; | |
5392 | return 0; | |
5393 | } | |
5394 | _ACEOF | |
5395 | rm -f conftest.$ac_objext | |
5396 | if { (ac_try="$ac_compile" | |
5397 | case "(($ac_try" in | |
5398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5399 | *) ac_try_echo=$ac_try;; | |
5400 | esac | |
5401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5402 | (eval "$ac_compile") 2>conftest.er1 | |
5403 | ac_status=$? | |
5404 | grep -v '^ *+' conftest.er1 >conftest.err | |
5405 | rm -f conftest.er1 | |
5406 | cat conftest.err >&5 | |
5407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5408 | (exit $ac_status); } && { | |
5409 | test -z "$ac_c_werror_flag" || | |
5410 | test ! -s conftest.err | |
5411 | } && test -s conftest.$ac_objext; then | |
5412 | ac_hi=-1 ac_mid=-1 | |
5413 | while :; do | |
5414 | cat >conftest.$ac_ext <<_ACEOF | |
5415 | /* confdefs.h. */ | |
5416 | _ACEOF | |
5417 | cat confdefs.h >>conftest.$ac_ext | |
5418 | cat >>conftest.$ac_ext <<_ACEOF | |
5419 | /* end confdefs.h. */ | |
5420 | $ac_includes_default | |
5421 | typedef short ac__type_sizeof_; | |
5422 | int | |
5423 | main () | |
5424 | { | |
5425 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
5426 | test_array [0] = 0 | |
5427 | ||
5428 | ; | |
5429 | return 0; | |
5430 | } | |
5431 | _ACEOF | |
5432 | rm -f conftest.$ac_objext | |
5433 | if { (ac_try="$ac_compile" | |
5434 | case "(($ac_try" in | |
5435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5436 | *) ac_try_echo=$ac_try;; | |
5437 | esac | |
5438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5439 | (eval "$ac_compile") 2>conftest.er1 | |
5440 | ac_status=$? | |
5441 | grep -v '^ *+' conftest.er1 >conftest.err | |
5442 | rm -f conftest.er1 | |
5443 | cat conftest.err >&5 | |
5444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5445 | (exit $ac_status); } && { | |
5446 | test -z "$ac_c_werror_flag" || | |
5447 | test ! -s conftest.err | |
5448 | } && test -s conftest.$ac_objext; then | |
5449 | ac_lo=$ac_mid; break | |
5450 | else | |
5451 | echo "$as_me: failed program was:" >&5 | |
5452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5453 | ||
5454 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
5455 | if test $ac_mid -le $ac_hi; then | |
5456 | ac_lo= ac_hi= | |
5457 | break | |
5458 | fi | |
5459 | ac_mid=`expr 2 '*' $ac_mid` | |
5460 | fi | |
5461 | ||
5462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5463 | done | |
5464 | else | |
5465 | echo "$as_me: failed program was:" >&5 | |
5466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5467 | ||
5468 | ac_lo= ac_hi= | |
5469 | fi | |
5470 | ||
5471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5472 | fi | |
5473 | ||
5474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5475 | # Binary search between lo and hi bounds. | |
5476 | while test "x$ac_lo" != "x$ac_hi"; do | |
5477 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5478 | cat >conftest.$ac_ext <<_ACEOF | |
5479 | /* confdefs.h. */ | |
5480 | _ACEOF | |
5481 | cat confdefs.h >>conftest.$ac_ext | |
5482 | cat >>conftest.$ac_ext <<_ACEOF | |
5483 | /* end confdefs.h. */ | |
5484 | $ac_includes_default | |
5485 | typedef short ac__type_sizeof_; | |
5486 | int | |
5487 | main () | |
5488 | { | |
5489 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
5490 | test_array [0] = 0 | |
5491 | ||
5492 | ; | |
5493 | return 0; | |
5494 | } | |
5495 | _ACEOF | |
5496 | rm -f conftest.$ac_objext | |
5497 | if { (ac_try="$ac_compile" | |
5498 | case "(($ac_try" in | |
5499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5500 | *) ac_try_echo=$ac_try;; | |
5501 | esac | |
5502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5503 | (eval "$ac_compile") 2>conftest.er1 | |
5504 | ac_status=$? | |
5505 | grep -v '^ *+' conftest.er1 >conftest.err | |
5506 | rm -f conftest.er1 | |
5507 | cat conftest.err >&5 | |
5508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5509 | (exit $ac_status); } && { | |
5510 | test -z "$ac_c_werror_flag" || | |
5511 | test ! -s conftest.err | |
5512 | } && test -s conftest.$ac_objext; then | |
5513 | ac_hi=$ac_mid | |
5514 | else | |
5515 | echo "$as_me: failed program was:" >&5 | |
5516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5517 | ||
5518 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
5519 | fi | |
5520 | ||
5521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5522 | done | |
5523 | case $ac_lo in | |
5524 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
5525 | '') if test "$ac_cv_type_short" = yes; then | |
5526 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
5527 | See \`config.log' for more details." >&5 | |
5528 | echo "$as_me: error: cannot compute sizeof (short) | |
5529 | See \`config.log' for more details." >&2;} | |
5530 | { (exit 77); exit 77; }; } | |
5531 | else | |
5532 | ac_cv_sizeof_short=0 | |
5533 | fi ;; | |
5534 | esac | |
5535 | else | |
5536 | cat >conftest.$ac_ext <<_ACEOF | |
5537 | /* confdefs.h. */ | |
5538 | _ACEOF | |
5539 | cat confdefs.h >>conftest.$ac_ext | |
5540 | cat >>conftest.$ac_ext <<_ACEOF | |
5541 | /* end confdefs.h. */ | |
5542 | $ac_includes_default | |
5543 | typedef short ac__type_sizeof_; | |
5544 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5545 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5546 | #include <stdio.h> | |
5547 | #include <stdlib.h> | |
5548 | int | |
5549 | main () | |
5550 | { | |
5551 | ||
5552 | FILE *f = fopen ("conftest.val", "w"); | |
5553 | if (! f) | |
5554 | return 1; | |
5555 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
5556 | { | |
5557 | long int i = longval (); | |
5558 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5559 | return 1; | |
5560 | fprintf (f, "%ld\n", i); | |
5561 | } | |
5562 | else | |
5563 | { | |
5564 | unsigned long int i = ulongval (); | |
5565 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5566 | return 1; | |
5567 | fprintf (f, "%lu\n", i); | |
5568 | } | |
5569 | return ferror (f) || fclose (f) != 0; | |
5570 | ||
5571 | ; | |
5572 | return 0; | |
5573 | } | |
5574 | _ACEOF | |
5575 | rm -f conftest$ac_exeext | |
5576 | if { (ac_try="$ac_link" | |
5577 | case "(($ac_try" in | |
5578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5579 | *) ac_try_echo=$ac_try;; | |
5580 | esac | |
5581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5582 | (eval "$ac_link") 2>&5 | |
5583 | ac_status=$? | |
5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5585 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5586 | { (case "(($ac_try" in | |
5587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5588 | *) ac_try_echo=$ac_try;; | |
5589 | esac | |
5590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5591 | (eval "$ac_try") 2>&5 | |
5592 | ac_status=$? | |
5593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5594 | (exit $ac_status); }; }; then | |
5595 | ac_cv_sizeof_short=`cat conftest.val` | |
5596 | else | |
5597 | echo "$as_me: program exited with status $ac_status" >&5 | |
5598 | echo "$as_me: failed program was:" >&5 | |
5599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5600 | ||
5601 | ( exit $ac_status ) | |
5602 | if test "$ac_cv_type_short" = yes; then | |
5603 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
5604 | See \`config.log' for more details." >&5 | |
5605 | echo "$as_me: error: cannot compute sizeof (short) | |
5606 | See \`config.log' for more details." >&2;} | |
5607 | { (exit 77); exit 77; }; } | |
5608 | else | |
5609 | ac_cv_sizeof_short=0 | |
5610 | fi | |
5611 | fi | |
5612 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5613 | fi | |
5614 | rm -f conftest.val | |
5615 | fi | |
5616 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
5617 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } | |
5618 | ||
5619 | ||
5620 | ||
5621 | cat >>confdefs.h <<_ACEOF | |
5622 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
5623 | _ACEOF | |
5624 | ||
5625 | ||
5626 | { echo "$as_me:$LINENO: checking for int" >&5 | |
5627 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | |
5628 | if test "${ac_cv_type_int+set}" = set; then | |
5629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5630 | else | |
5631 | cat >conftest.$ac_ext <<_ACEOF | |
5632 | /* confdefs.h. */ | |
5633 | _ACEOF | |
5634 | cat confdefs.h >>conftest.$ac_ext | |
5635 | cat >>conftest.$ac_ext <<_ACEOF | |
5636 | /* end confdefs.h. */ | |
5637 | $ac_includes_default | |
5638 | typedef int ac__type_new_; | |
5639 | int | |
5640 | main () | |
5641 | { | |
5642 | if ((ac__type_new_ *) 0) | |
5643 | return 0; | |
5644 | if (sizeof (ac__type_new_)) | |
5645 | return 0; | |
5646 | ; | |
5647 | return 0; | |
5648 | } | |
5649 | _ACEOF | |
5650 | rm -f conftest.$ac_objext | |
5651 | if { (ac_try="$ac_compile" | |
5652 | case "(($ac_try" in | |
5653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5654 | *) ac_try_echo=$ac_try;; | |
5655 | esac | |
5656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5657 | (eval "$ac_compile") 2>conftest.er1 | |
5658 | ac_status=$? | |
5659 | grep -v '^ *+' conftest.er1 >conftest.err | |
5660 | rm -f conftest.er1 | |
5661 | cat conftest.err >&5 | |
5662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5663 | (exit $ac_status); } && { | |
5664 | test -z "$ac_c_werror_flag" || | |
5665 | test ! -s conftest.err | |
5666 | } && test -s conftest.$ac_objext; then | |
5667 | ac_cv_type_int=yes | |
5668 | else | |
5669 | echo "$as_me: failed program was:" >&5 | |
5670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5671 | ||
5672 | ac_cv_type_int=no | |
5673 | fi | |
5674 | ||
5675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5676 | fi | |
5677 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
5678 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | |
5679 | ||
5680 | # The cast to long int works around a bug in the HP C Compiler | |
5681 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5682 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5683 | # This bug is HP SR number 8606223364. | |
5684 | { echo "$as_me:$LINENO: checking size of int" >&5 | |
5685 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | |
5686 | if test "${ac_cv_sizeof_int+set}" = set; then | |
5687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5688 | else | |
5689 | if test "$cross_compiling" = yes; then | |
5690 | # Depending upon the size, compute the lo and hi bounds. | |
5691 | cat >conftest.$ac_ext <<_ACEOF | |
5692 | /* confdefs.h. */ | |
5693 | _ACEOF | |
5694 | cat confdefs.h >>conftest.$ac_ext | |
5695 | cat >>conftest.$ac_ext <<_ACEOF | |
5696 | /* end confdefs.h. */ | |
5697 | $ac_includes_default | |
5698 | typedef int ac__type_sizeof_; | |
5699 | int | |
5700 | main () | |
5701 | { | |
5702 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
5703 | test_array [0] = 0 | |
5704 | ||
5705 | ; | |
5706 | return 0; | |
5707 | } | |
5708 | _ACEOF | |
5709 | rm -f conftest.$ac_objext | |
5710 | if { (ac_try="$ac_compile" | |
5711 | case "(($ac_try" in | |
5712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5713 | *) ac_try_echo=$ac_try;; | |
5714 | esac | |
5715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5716 | (eval "$ac_compile") 2>conftest.er1 | |
5717 | ac_status=$? | |
5718 | grep -v '^ *+' conftest.er1 >conftest.err | |
5719 | rm -f conftest.er1 | |
5720 | cat conftest.err >&5 | |
5721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5722 | (exit $ac_status); } && { | |
5723 | test -z "$ac_c_werror_flag" || | |
5724 | test ! -s conftest.err | |
5725 | } && test -s conftest.$ac_objext; then | |
5726 | ac_lo=0 ac_mid=0 | |
5727 | while :; do | |
5728 | cat >conftest.$ac_ext <<_ACEOF | |
5729 | /* confdefs.h. */ | |
5730 | _ACEOF | |
5731 | cat confdefs.h >>conftest.$ac_ext | |
5732 | cat >>conftest.$ac_ext <<_ACEOF | |
5733 | /* end confdefs.h. */ | |
5734 | $ac_includes_default | |
5735 | typedef int ac__type_sizeof_; | |
5736 | int | |
5737 | main () | |
5738 | { | |
5739 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
5740 | test_array [0] = 0 | |
5741 | ||
5742 | ; | |
5743 | return 0; | |
5744 | } | |
5745 | _ACEOF | |
5746 | rm -f conftest.$ac_objext | |
5747 | if { (ac_try="$ac_compile" | |
5748 | case "(($ac_try" in | |
5749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5750 | *) ac_try_echo=$ac_try;; | |
5751 | esac | |
5752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5753 | (eval "$ac_compile") 2>conftest.er1 | |
5754 | ac_status=$? | |
5755 | grep -v '^ *+' conftest.er1 >conftest.err | |
5756 | rm -f conftest.er1 | |
5757 | cat conftest.err >&5 | |
5758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5759 | (exit $ac_status); } && { | |
5760 | test -z "$ac_c_werror_flag" || | |
5761 | test ! -s conftest.err | |
5762 | } && test -s conftest.$ac_objext; then | |
5763 | ac_hi=$ac_mid; break | |
5764 | else | |
5765 | echo "$as_me: failed program was:" >&5 | |
5766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5767 | ||
5768 | ac_lo=`expr $ac_mid + 1` | |
5769 | if test $ac_lo -le $ac_mid; then | |
5770 | ac_lo= ac_hi= | |
5771 | break | |
5772 | fi | |
5773 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
5774 | fi | |
5775 | ||
5776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5777 | done | |
5778 | else | |
5779 | echo "$as_me: failed program was:" >&5 | |
5780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5781 | ||
5782 | cat >conftest.$ac_ext <<_ACEOF | |
5783 | /* confdefs.h. */ | |
5784 | _ACEOF | |
5785 | cat confdefs.h >>conftest.$ac_ext | |
5786 | cat >>conftest.$ac_ext <<_ACEOF | |
5787 | /* end confdefs.h. */ | |
5788 | $ac_includes_default | |
5789 | typedef int ac__type_sizeof_; | |
5790 | int | |
5791 | main () | |
5792 | { | |
5793 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
5794 | test_array [0] = 0 | |
5795 | ||
5796 | ; | |
5797 | return 0; | |
5798 | } | |
5799 | _ACEOF | |
5800 | rm -f conftest.$ac_objext | |
5801 | if { (ac_try="$ac_compile" | |
5802 | case "(($ac_try" in | |
5803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5804 | *) ac_try_echo=$ac_try;; | |
5805 | esac | |
5806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5807 | (eval "$ac_compile") 2>conftest.er1 | |
5808 | ac_status=$? | |
5809 | grep -v '^ *+' conftest.er1 >conftest.err | |
5810 | rm -f conftest.er1 | |
5811 | cat conftest.err >&5 | |
5812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5813 | (exit $ac_status); } && { | |
5814 | test -z "$ac_c_werror_flag" || | |
5815 | test ! -s conftest.err | |
5816 | } && test -s conftest.$ac_objext; then | |
5817 | ac_hi=-1 ac_mid=-1 | |
5818 | while :; do | |
5819 | cat >conftest.$ac_ext <<_ACEOF | |
5820 | /* confdefs.h. */ | |
5821 | _ACEOF | |
5822 | cat confdefs.h >>conftest.$ac_ext | |
5823 | cat >>conftest.$ac_ext <<_ACEOF | |
5824 | /* end confdefs.h. */ | |
5825 | $ac_includes_default | |
5826 | typedef int ac__type_sizeof_; | |
5827 | int | |
5828 | main () | |
5829 | { | |
5830 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
5831 | test_array [0] = 0 | |
5832 | ||
5833 | ; | |
5834 | return 0; | |
5835 | } | |
5836 | _ACEOF | |
5837 | rm -f conftest.$ac_objext | |
5838 | if { (ac_try="$ac_compile" | |
5839 | case "(($ac_try" in | |
5840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5841 | *) ac_try_echo=$ac_try;; | |
5842 | esac | |
5843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5844 | (eval "$ac_compile") 2>conftest.er1 | |
5845 | ac_status=$? | |
5846 | grep -v '^ *+' conftest.er1 >conftest.err | |
5847 | rm -f conftest.er1 | |
5848 | cat conftest.err >&5 | |
5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5850 | (exit $ac_status); } && { | |
5851 | test -z "$ac_c_werror_flag" || | |
5852 | test ! -s conftest.err | |
5853 | } && test -s conftest.$ac_objext; then | |
5854 | ac_lo=$ac_mid; break | |
5855 | else | |
5856 | echo "$as_me: failed program was:" >&5 | |
5857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5858 | ||
5859 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
5860 | if test $ac_mid -le $ac_hi; then | |
5861 | ac_lo= ac_hi= | |
5862 | break | |
5863 | fi | |
5864 | ac_mid=`expr 2 '*' $ac_mid` | |
5865 | fi | |
5866 | ||
5867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5868 | done | |
5869 | else | |
5870 | echo "$as_me: failed program was:" >&5 | |
5871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5872 | ||
5873 | ac_lo= ac_hi= | |
5874 | fi | |
5875 | ||
5876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5877 | fi | |
5878 | ||
5879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5880 | # Binary search between lo and hi bounds. | |
5881 | while test "x$ac_lo" != "x$ac_hi"; do | |
5882 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5883 | cat >conftest.$ac_ext <<_ACEOF | |
5884 | /* confdefs.h. */ | |
5885 | _ACEOF | |
5886 | cat confdefs.h >>conftest.$ac_ext | |
5887 | cat >>conftest.$ac_ext <<_ACEOF | |
5888 | /* end confdefs.h. */ | |
5889 | $ac_includes_default | |
5890 | typedef int ac__type_sizeof_; | |
5891 | int | |
5892 | main () | |
5893 | { | |
5894 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
5895 | test_array [0] = 0 | |
5896 | ||
5897 | ; | |
5898 | return 0; | |
5899 | } | |
5900 | _ACEOF | |
5901 | rm -f conftest.$ac_objext | |
5902 | if { (ac_try="$ac_compile" | |
5903 | case "(($ac_try" in | |
5904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5905 | *) ac_try_echo=$ac_try;; | |
5906 | esac | |
5907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5908 | (eval "$ac_compile") 2>conftest.er1 | |
5909 | ac_status=$? | |
5910 | grep -v '^ *+' conftest.er1 >conftest.err | |
5911 | rm -f conftest.er1 | |
5912 | cat conftest.err >&5 | |
5913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5914 | (exit $ac_status); } && { | |
5915 | test -z "$ac_c_werror_flag" || | |
5916 | test ! -s conftest.err | |
5917 | } && test -s conftest.$ac_objext; then | |
5918 | ac_hi=$ac_mid | |
5919 | else | |
5920 | echo "$as_me: failed program was:" >&5 | |
5921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5922 | ||
5923 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
5924 | fi | |
5925 | ||
5926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5927 | done | |
5928 | case $ac_lo in | |
5929 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
5930 | '') if test "$ac_cv_type_int" = yes; then | |
5931 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
5932 | See \`config.log' for more details." >&5 | |
5933 | echo "$as_me: error: cannot compute sizeof (int) | |
5934 | See \`config.log' for more details." >&2;} | |
5935 | { (exit 77); exit 77; }; } | |
5936 | else | |
5937 | ac_cv_sizeof_int=0 | |
5938 | fi ;; | |
5939 | esac | |
5940 | else | |
5941 | cat >conftest.$ac_ext <<_ACEOF | |
5942 | /* confdefs.h. */ | |
5943 | _ACEOF | |
5944 | cat confdefs.h >>conftest.$ac_ext | |
5945 | cat >>conftest.$ac_ext <<_ACEOF | |
5946 | /* end confdefs.h. */ | |
5947 | $ac_includes_default | |
5948 | typedef int ac__type_sizeof_; | |
5949 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5950 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5951 | #include <stdio.h> | |
5952 | #include <stdlib.h> | |
5953 | int | |
5954 | main () | |
5955 | { | |
5956 | ||
5957 | FILE *f = fopen ("conftest.val", "w"); | |
5958 | if (! f) | |
5959 | return 1; | |
5960 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
5961 | { | |
5962 | long int i = longval (); | |
5963 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5964 | return 1; | |
5965 | fprintf (f, "%ld\n", i); | |
5966 | } | |
5967 | else | |
5968 | { | |
5969 | unsigned long int i = ulongval (); | |
5970 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5971 | return 1; | |
5972 | fprintf (f, "%lu\n", i); | |
5973 | } | |
5974 | return ferror (f) || fclose (f) != 0; | |
5975 | ||
5976 | ; | |
5977 | return 0; | |
5978 | } | |
5979 | _ACEOF | |
5980 | rm -f conftest$ac_exeext | |
5981 | if { (ac_try="$ac_link" | |
5982 | case "(($ac_try" in | |
5983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5984 | *) ac_try_echo=$ac_try;; | |
5985 | esac | |
5986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5987 | (eval "$ac_link") 2>&5 | |
5988 | ac_status=$? | |
5989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5990 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5991 | { (case "(($ac_try" in | |
5992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5993 | *) ac_try_echo=$ac_try;; | |
5994 | esac | |
5995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5996 | (eval "$ac_try") 2>&5 | |
5997 | ac_status=$? | |
5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5999 | (exit $ac_status); }; }; then | |
6000 | ac_cv_sizeof_int=`cat conftest.val` | |
6001 | else | |
6002 | echo "$as_me: program exited with status $ac_status" >&5 | |
6003 | echo "$as_me: failed program was:" >&5 | |
6004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6005 | ||
6006 | ( exit $ac_status ) | |
6007 | if test "$ac_cv_type_int" = yes; then | |
6008 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
6009 | See \`config.log' for more details." >&5 | |
6010 | echo "$as_me: error: cannot compute sizeof (int) | |
6011 | See \`config.log' for more details." >&2;} | |
6012 | { (exit 77); exit 77; }; } | |
6013 | else | |
6014 | ac_cv_sizeof_int=0 | |
6015 | fi | |
6016 | fi | |
6017 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6018 | fi | |
6019 | rm -f conftest.val | |
6020 | fi | |
6021 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
6022 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | |
6023 | ||
6024 | ||
6025 | ||
6026 | cat >>confdefs.h <<_ACEOF | |
6027 | #define SIZEOF_INT $ac_cv_sizeof_int | |
6028 | _ACEOF | |
6029 | ||
6030 | ||
6031 | { echo "$as_me:$LINENO: checking for long" >&5 | |
6032 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } | |
6033 | if test "${ac_cv_type_long+set}" = set; then | |
6034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6035 | else | |
6036 | cat >conftest.$ac_ext <<_ACEOF | |
6037 | /* confdefs.h. */ | |
6038 | _ACEOF | |
6039 | cat confdefs.h >>conftest.$ac_ext | |
6040 | cat >>conftest.$ac_ext <<_ACEOF | |
6041 | /* end confdefs.h. */ | |
6042 | $ac_includes_default | |
6043 | typedef long ac__type_new_; | |
6044 | int | |
6045 | main () | |
6046 | { | |
6047 | if ((ac__type_new_ *) 0) | |
6048 | return 0; | |
6049 | if (sizeof (ac__type_new_)) | |
6050 | return 0; | |
6051 | ; | |
6052 | return 0; | |
6053 | } | |
6054 | _ACEOF | |
6055 | rm -f conftest.$ac_objext | |
6056 | if { (ac_try="$ac_compile" | |
6057 | case "(($ac_try" in | |
6058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6059 | *) ac_try_echo=$ac_try;; | |
6060 | esac | |
6061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6062 | (eval "$ac_compile") 2>conftest.er1 | |
6063 | ac_status=$? | |
6064 | grep -v '^ *+' conftest.er1 >conftest.err | |
6065 | rm -f conftest.er1 | |
6066 | cat conftest.err >&5 | |
6067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6068 | (exit $ac_status); } && { | |
6069 | test -z "$ac_c_werror_flag" || | |
6070 | test ! -s conftest.err | |
6071 | } && test -s conftest.$ac_objext; then | |
6072 | ac_cv_type_long=yes | |
6073 | else | |
6074 | echo "$as_me: failed program was:" >&5 | |
6075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6076 | ||
6077 | ac_cv_type_long=no | |
6078 | fi | |
6079 | ||
6080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6081 | fi | |
6082 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
6083 | echo "${ECHO_T}$ac_cv_type_long" >&6; } | |
6084 | ||
6085 | # The cast to long int works around a bug in the HP C Compiler | |
6086 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6087 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6088 | # This bug is HP SR number 8606223364. | |
6089 | { echo "$as_me:$LINENO: checking size of long" >&5 | |
6090 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } | |
6091 | if test "${ac_cv_sizeof_long+set}" = set; then | |
6092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6093 | else | |
6094 | if test "$cross_compiling" = yes; then | |
6095 | # Depending upon the size, compute the lo and hi bounds. | |
6096 | cat >conftest.$ac_ext <<_ACEOF | |
6097 | /* confdefs.h. */ | |
6098 | _ACEOF | |
6099 | cat confdefs.h >>conftest.$ac_ext | |
6100 | cat >>conftest.$ac_ext <<_ACEOF | |
6101 | /* end confdefs.h. */ | |
6102 | $ac_includes_default | |
6103 | typedef long ac__type_sizeof_; | |
6104 | int | |
6105 | main () | |
6106 | { | |
6107 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
6108 | test_array [0] = 0 | |
6109 | ||
6110 | ; | |
6111 | return 0; | |
6112 | } | |
6113 | _ACEOF | |
6114 | rm -f conftest.$ac_objext | |
6115 | if { (ac_try="$ac_compile" | |
6116 | case "(($ac_try" in | |
6117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6118 | *) ac_try_echo=$ac_try;; | |
6119 | esac | |
6120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6121 | (eval "$ac_compile") 2>conftest.er1 | |
6122 | ac_status=$? | |
6123 | grep -v '^ *+' conftest.er1 >conftest.err | |
6124 | rm -f conftest.er1 | |
6125 | cat conftest.err >&5 | |
6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6127 | (exit $ac_status); } && { | |
6128 | test -z "$ac_c_werror_flag" || | |
6129 | test ! -s conftest.err | |
6130 | } && test -s conftest.$ac_objext; then | |
6131 | ac_lo=0 ac_mid=0 | |
6132 | while :; do | |
6133 | cat >conftest.$ac_ext <<_ACEOF | |
6134 | /* confdefs.h. */ | |
6135 | _ACEOF | |
6136 | cat confdefs.h >>conftest.$ac_ext | |
6137 | cat >>conftest.$ac_ext <<_ACEOF | |
6138 | /* end confdefs.h. */ | |
6139 | $ac_includes_default | |
6140 | typedef long ac__type_sizeof_; | |
6141 | int | |
6142 | main () | |
6143 | { | |
6144 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
6145 | test_array [0] = 0 | |
6146 | ||
6147 | ; | |
6148 | return 0; | |
6149 | } | |
6150 | _ACEOF | |
6151 | rm -f conftest.$ac_objext | |
6152 | if { (ac_try="$ac_compile" | |
6153 | case "(($ac_try" in | |
6154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6155 | *) ac_try_echo=$ac_try;; | |
6156 | esac | |
6157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6158 | (eval "$ac_compile") 2>conftest.er1 | |
6159 | ac_status=$? | |
6160 | grep -v '^ *+' conftest.er1 >conftest.err | |
6161 | rm -f conftest.er1 | |
6162 | cat conftest.err >&5 | |
6163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6164 | (exit $ac_status); } && { | |
6165 | test -z "$ac_c_werror_flag" || | |
6166 | test ! -s conftest.err | |
6167 | } && test -s conftest.$ac_objext; then | |
6168 | ac_hi=$ac_mid; break | |
6169 | else | |
6170 | echo "$as_me: failed program was:" >&5 | |
6171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6172 | ||
6173 | ac_lo=`expr $ac_mid + 1` | |
6174 | if test $ac_lo -le $ac_mid; then | |
6175 | ac_lo= ac_hi= | |
6176 | break | |
6177 | fi | |
6178 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6179 | fi | |
6180 | ||
6181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6182 | done | |
6183 | else | |
6184 | echo "$as_me: failed program was:" >&5 | |
6185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6186 | ||
6187 | cat >conftest.$ac_ext <<_ACEOF | |
6188 | /* confdefs.h. */ | |
6189 | _ACEOF | |
6190 | cat confdefs.h >>conftest.$ac_ext | |
6191 | cat >>conftest.$ac_ext <<_ACEOF | |
6192 | /* end confdefs.h. */ | |
6193 | $ac_includes_default | |
6194 | typedef long ac__type_sizeof_; | |
6195 | int | |
6196 | main () | |
6197 | { | |
6198 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
6199 | test_array [0] = 0 | |
6200 | ||
6201 | ; | |
6202 | return 0; | |
6203 | } | |
6204 | _ACEOF | |
6205 | rm -f conftest.$ac_objext | |
6206 | if { (ac_try="$ac_compile" | |
6207 | case "(($ac_try" in | |
6208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6209 | *) ac_try_echo=$ac_try;; | |
6210 | esac | |
6211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6212 | (eval "$ac_compile") 2>conftest.er1 | |
6213 | ac_status=$? | |
6214 | grep -v '^ *+' conftest.er1 >conftest.err | |
6215 | rm -f conftest.er1 | |
6216 | cat conftest.err >&5 | |
6217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6218 | (exit $ac_status); } && { | |
6219 | test -z "$ac_c_werror_flag" || | |
6220 | test ! -s conftest.err | |
6221 | } && test -s conftest.$ac_objext; then | |
6222 | ac_hi=-1 ac_mid=-1 | |
6223 | while :; do | |
6224 | cat >conftest.$ac_ext <<_ACEOF | |
6225 | /* confdefs.h. */ | |
6226 | _ACEOF | |
6227 | cat confdefs.h >>conftest.$ac_ext | |
6228 | cat >>conftest.$ac_ext <<_ACEOF | |
6229 | /* end confdefs.h. */ | |
6230 | $ac_includes_default | |
6231 | typedef long ac__type_sizeof_; | |
6232 | int | |
6233 | main () | |
6234 | { | |
6235 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
6236 | test_array [0] = 0 | |
6237 | ||
6238 | ; | |
6239 | return 0; | |
6240 | } | |
6241 | _ACEOF | |
6242 | rm -f conftest.$ac_objext | |
6243 | if { (ac_try="$ac_compile" | |
6244 | case "(($ac_try" in | |
6245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6246 | *) ac_try_echo=$ac_try;; | |
6247 | esac | |
6248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6249 | (eval "$ac_compile") 2>conftest.er1 | |
6250 | ac_status=$? | |
6251 | grep -v '^ *+' conftest.er1 >conftest.err | |
6252 | rm -f conftest.er1 | |
6253 | cat conftest.err >&5 | |
6254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6255 | (exit $ac_status); } && { | |
6256 | test -z "$ac_c_werror_flag" || | |
6257 | test ! -s conftest.err | |
6258 | } && test -s conftest.$ac_objext; then | |
6259 | ac_lo=$ac_mid; break | |
6260 | else | |
6261 | echo "$as_me: failed program was:" >&5 | |
6262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6263 | ||
6264 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
6265 | if test $ac_mid -le $ac_hi; then | |
6266 | ac_lo= ac_hi= | |
6267 | break | |
6268 | fi | |
6269 | ac_mid=`expr 2 '*' $ac_mid` | |
6270 | fi | |
6271 | ||
6272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6273 | done | |
6274 | else | |
6275 | echo "$as_me: failed program was:" >&5 | |
6276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6277 | ||
6278 | ac_lo= ac_hi= | |
6279 | fi | |
6280 | ||
6281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6282 | fi | |
6283 | ||
6284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6285 | # Binary search between lo and hi bounds. | |
6286 | while test "x$ac_lo" != "x$ac_hi"; do | |
6287 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6288 | cat >conftest.$ac_ext <<_ACEOF | |
6289 | /* confdefs.h. */ | |
6290 | _ACEOF | |
6291 | cat confdefs.h >>conftest.$ac_ext | |
6292 | cat >>conftest.$ac_ext <<_ACEOF | |
6293 | /* end confdefs.h. */ | |
6294 | $ac_includes_default | |
6295 | typedef long ac__type_sizeof_; | |
6296 | int | |
6297 | main () | |
6298 | { | |
6299 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
6300 | test_array [0] = 0 | |
6301 | ||
6302 | ; | |
6303 | return 0; | |
6304 | } | |
6305 | _ACEOF | |
6306 | rm -f conftest.$ac_objext | |
6307 | if { (ac_try="$ac_compile" | |
6308 | case "(($ac_try" in | |
6309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6310 | *) ac_try_echo=$ac_try;; | |
6311 | esac | |
6312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6313 | (eval "$ac_compile") 2>conftest.er1 | |
6314 | ac_status=$? | |
6315 | grep -v '^ *+' conftest.er1 >conftest.err | |
6316 | rm -f conftest.er1 | |
6317 | cat conftest.err >&5 | |
6318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6319 | (exit $ac_status); } && { | |
6320 | test -z "$ac_c_werror_flag" || | |
6321 | test ! -s conftest.err | |
6322 | } && test -s conftest.$ac_objext; then | |
6323 | ac_hi=$ac_mid | |
6324 | else | |
6325 | echo "$as_me: failed program was:" >&5 | |
6326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6327 | ||
6328 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
6329 | fi | |
6330 | ||
6331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6332 | done | |
6333 | case $ac_lo in | |
6334 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
6335 | '') if test "$ac_cv_type_long" = yes; then | |
6336 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
6337 | See \`config.log' for more details." >&5 | |
6338 | echo "$as_me: error: cannot compute sizeof (long) | |
6339 | See \`config.log' for more details." >&2;} | |
6340 | { (exit 77); exit 77; }; } | |
6341 | else | |
6342 | ac_cv_sizeof_long=0 | |
6343 | fi ;; | |
6344 | esac | |
6345 | else | |
6346 | cat >conftest.$ac_ext <<_ACEOF | |
6347 | /* confdefs.h. */ | |
6348 | _ACEOF | |
6349 | cat confdefs.h >>conftest.$ac_ext | |
6350 | cat >>conftest.$ac_ext <<_ACEOF | |
6351 | /* end confdefs.h. */ | |
6352 | $ac_includes_default | |
6353 | typedef long ac__type_sizeof_; | |
6354 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6355 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6356 | #include <stdio.h> | |
6357 | #include <stdlib.h> | |
6358 | int | |
6359 | main () | |
6360 | { | |
6361 | ||
6362 | FILE *f = fopen ("conftest.val", "w"); | |
6363 | if (! f) | |
6364 | return 1; | |
6365 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
6366 | { | |
6367 | long int i = longval (); | |
6368 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6369 | return 1; | |
6370 | fprintf (f, "%ld\n", i); | |
6371 | } | |
6372 | else | |
6373 | { | |
6374 | unsigned long int i = ulongval (); | |
6375 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6376 | return 1; | |
6377 | fprintf (f, "%lu\n", i); | |
6378 | } | |
6379 | return ferror (f) || fclose (f) != 0; | |
6380 | ||
6381 | ; | |
6382 | return 0; | |
6383 | } | |
6384 | _ACEOF | |
6385 | rm -f conftest$ac_exeext | |
6386 | if { (ac_try="$ac_link" | |
6387 | case "(($ac_try" in | |
6388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6389 | *) ac_try_echo=$ac_try;; | |
6390 | esac | |
6391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6392 | (eval "$ac_link") 2>&5 | |
6393 | ac_status=$? | |
6394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6395 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6396 | { (case "(($ac_try" in | |
6397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6398 | *) ac_try_echo=$ac_try;; | |
6399 | esac | |
6400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6401 | (eval "$ac_try") 2>&5 | |
6402 | ac_status=$? | |
6403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6404 | (exit $ac_status); }; }; then | |
6405 | ac_cv_sizeof_long=`cat conftest.val` | |
6406 | else | |
6407 | echo "$as_me: program exited with status $ac_status" >&5 | |
6408 | echo "$as_me: failed program was:" >&5 | |
6409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6410 | ||
6411 | ( exit $ac_status ) | |
6412 | if test "$ac_cv_type_long" = yes; then | |
6413 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
6414 | See \`config.log' for more details." >&5 | |
6415 | echo "$as_me: error: cannot compute sizeof (long) | |
6416 | See \`config.log' for more details." >&2;} | |
6417 | { (exit 77); exit 77; }; } | |
6418 | else | |
6419 | ac_cv_sizeof_long=0 | |
6420 | fi | |
6421 | fi | |
6422 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6423 | fi | |
6424 | rm -f conftest.val | |
6425 | fi | |
6426 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
6427 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } | |
6428 | ||
6429 | ||
6430 | ||
6431 | cat >>confdefs.h <<_ACEOF | |
6432 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
6433 | _ACEOF | |
6434 | ||
6435 | ||
6436 | { echo "$as_me:$LINENO: checking for long long" >&5 | |
6437 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | |
6438 | if test "${ac_cv_type_long_long+set}" = set; then | |
6439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6440 | else | |
6441 | cat >conftest.$ac_ext <<_ACEOF | |
6442 | /* confdefs.h. */ | |
6443 | _ACEOF | |
6444 | cat confdefs.h >>conftest.$ac_ext | |
6445 | cat >>conftest.$ac_ext <<_ACEOF | |
6446 | /* end confdefs.h. */ | |
6447 | $ac_includes_default | |
6448 | typedef long long ac__type_new_; | |
6449 | int | |
6450 | main () | |
6451 | { | |
6452 | if ((ac__type_new_ *) 0) | |
6453 | return 0; | |
6454 | if (sizeof (ac__type_new_)) | |
6455 | return 0; | |
6456 | ; | |
6457 | return 0; | |
6458 | } | |
6459 | _ACEOF | |
6460 | rm -f conftest.$ac_objext | |
6461 | if { (ac_try="$ac_compile" | |
6462 | case "(($ac_try" in | |
6463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6464 | *) ac_try_echo=$ac_try;; | |
6465 | esac | |
6466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6467 | (eval "$ac_compile") 2>conftest.er1 | |
6468 | ac_status=$? | |
6469 | grep -v '^ *+' conftest.er1 >conftest.err | |
6470 | rm -f conftest.er1 | |
6471 | cat conftest.err >&5 | |
6472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6473 | (exit $ac_status); } && { | |
6474 | test -z "$ac_c_werror_flag" || | |
6475 | test ! -s conftest.err | |
6476 | } && test -s conftest.$ac_objext; then | |
6477 | ac_cv_type_long_long=yes | |
6478 | else | |
6479 | echo "$as_me: failed program was:" >&5 | |
6480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6481 | ||
6482 | ac_cv_type_long_long=no | |
6483 | fi | |
6484 | ||
6485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6486 | fi | |
6487 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
6488 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | |
6489 | ||
6490 | # The cast to long int works around a bug in the HP C Compiler | |
6491 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6492 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6493 | # This bug is HP SR number 8606223364. | |
6494 | { echo "$as_me:$LINENO: checking size of long long" >&5 | |
6495 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } | |
6496 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
6497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6498 | else | |
6499 | if test "$cross_compiling" = yes; then | |
6500 | # Depending upon the size, compute the lo and hi bounds. | |
6501 | cat >conftest.$ac_ext <<_ACEOF | |
6502 | /* confdefs.h. */ | |
6503 | _ACEOF | |
6504 | cat confdefs.h >>conftest.$ac_ext | |
6505 | cat >>conftest.$ac_ext <<_ACEOF | |
6506 | /* end confdefs.h. */ | |
6507 | $ac_includes_default | |
6508 | typedef long long ac__type_sizeof_; | |
6509 | int | |
6510 | main () | |
6511 | { | |
6512 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
6513 | test_array [0] = 0 | |
6514 | ||
6515 | ; | |
6516 | return 0; | |
6517 | } | |
6518 | _ACEOF | |
6519 | rm -f conftest.$ac_objext | |
6520 | if { (ac_try="$ac_compile" | |
6521 | case "(($ac_try" in | |
6522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6523 | *) ac_try_echo=$ac_try;; | |
6524 | esac | |
6525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6526 | (eval "$ac_compile") 2>conftest.er1 | |
6527 | ac_status=$? | |
6528 | grep -v '^ *+' conftest.er1 >conftest.err | |
6529 | rm -f conftest.er1 | |
6530 | cat conftest.err >&5 | |
6531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6532 | (exit $ac_status); } && { | |
6533 | test -z "$ac_c_werror_flag" || | |
6534 | test ! -s conftest.err | |
6535 | } && test -s conftest.$ac_objext; then | |
6536 | ac_lo=0 ac_mid=0 | |
6537 | while :; do | |
6538 | cat >conftest.$ac_ext <<_ACEOF | |
6539 | /* confdefs.h. */ | |
6540 | _ACEOF | |
6541 | cat confdefs.h >>conftest.$ac_ext | |
6542 | cat >>conftest.$ac_ext <<_ACEOF | |
6543 | /* end confdefs.h. */ | |
6544 | $ac_includes_default | |
6545 | typedef long long ac__type_sizeof_; | |
6546 | int | |
6547 | main () | |
6548 | { | |
6549 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
6550 | test_array [0] = 0 | |
6551 | ||
6552 | ; | |
6553 | return 0; | |
6554 | } | |
6555 | _ACEOF | |
6556 | rm -f conftest.$ac_objext | |
6557 | if { (ac_try="$ac_compile" | |
6558 | case "(($ac_try" in | |
6559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6560 | *) ac_try_echo=$ac_try;; | |
6561 | esac | |
6562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6563 | (eval "$ac_compile") 2>conftest.er1 | |
6564 | ac_status=$? | |
6565 | grep -v '^ *+' conftest.er1 >conftest.err | |
6566 | rm -f conftest.er1 | |
6567 | cat conftest.err >&5 | |
6568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6569 | (exit $ac_status); } && { | |
6570 | test -z "$ac_c_werror_flag" || | |
6571 | test ! -s conftest.err | |
6572 | } && test -s conftest.$ac_objext; then | |
6573 | ac_hi=$ac_mid; break | |
6574 | else | |
6575 | echo "$as_me: failed program was:" >&5 | |
6576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6577 | ||
6578 | ac_lo=`expr $ac_mid + 1` | |
6579 | if test $ac_lo -le $ac_mid; then | |
6580 | ac_lo= ac_hi= | |
6581 | break | |
6582 | fi | |
6583 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6584 | fi | |
6585 | ||
6586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6587 | done | |
6588 | else | |
6589 | echo "$as_me: failed program was:" >&5 | |
6590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6591 | ||
6592 | cat >conftest.$ac_ext <<_ACEOF | |
6593 | /* confdefs.h. */ | |
6594 | _ACEOF | |
6595 | cat confdefs.h >>conftest.$ac_ext | |
6596 | cat >>conftest.$ac_ext <<_ACEOF | |
6597 | /* end confdefs.h. */ | |
6598 | $ac_includes_default | |
6599 | typedef long long ac__type_sizeof_; | |
6600 | int | |
6601 | main () | |
6602 | { | |
6603 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
6604 | test_array [0] = 0 | |
6605 | ||
6606 | ; | |
6607 | return 0; | |
6608 | } | |
6609 | _ACEOF | |
6610 | rm -f conftest.$ac_objext | |
6611 | if { (ac_try="$ac_compile" | |
6612 | case "(($ac_try" in | |
6613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6614 | *) ac_try_echo=$ac_try;; | |
6615 | esac | |
6616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6617 | (eval "$ac_compile") 2>conftest.er1 | |
6618 | ac_status=$? | |
6619 | grep -v '^ *+' conftest.er1 >conftest.err | |
6620 | rm -f conftest.er1 | |
6621 | cat conftest.err >&5 | |
6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6623 | (exit $ac_status); } && { | |
6624 | test -z "$ac_c_werror_flag" || | |
6625 | test ! -s conftest.err | |
6626 | } && test -s conftest.$ac_objext; then | |
6627 | ac_hi=-1 ac_mid=-1 | |
6628 | while :; do | |
6629 | cat >conftest.$ac_ext <<_ACEOF | |
6630 | /* confdefs.h. */ | |
6631 | _ACEOF | |
6632 | cat confdefs.h >>conftest.$ac_ext | |
6633 | cat >>conftest.$ac_ext <<_ACEOF | |
6634 | /* end confdefs.h. */ | |
6635 | $ac_includes_default | |
6636 | typedef long long ac__type_sizeof_; | |
6637 | int | |
6638 | main () | |
6639 | { | |
6640 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
6641 | test_array [0] = 0 | |
6642 | ||
6643 | ; | |
6644 | return 0; | |
6645 | } | |
6646 | _ACEOF | |
6647 | rm -f conftest.$ac_objext | |
6648 | if { (ac_try="$ac_compile" | |
6649 | case "(($ac_try" in | |
6650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6651 | *) ac_try_echo=$ac_try;; | |
6652 | esac | |
6653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6654 | (eval "$ac_compile") 2>conftest.er1 | |
6655 | ac_status=$? | |
6656 | grep -v '^ *+' conftest.er1 >conftest.err | |
6657 | rm -f conftest.er1 | |
6658 | cat conftest.err >&5 | |
6659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6660 | (exit $ac_status); } && { | |
6661 | test -z "$ac_c_werror_flag" || | |
6662 | test ! -s conftest.err | |
6663 | } && test -s conftest.$ac_objext; then | |
6664 | ac_lo=$ac_mid; break | |
6665 | else | |
6666 | echo "$as_me: failed program was:" >&5 | |
6667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6668 | ||
6669 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
6670 | if test $ac_mid -le $ac_hi; then | |
6671 | ac_lo= ac_hi= | |
6672 | break | |
6673 | fi | |
6674 | ac_mid=`expr 2 '*' $ac_mid` | |
6675 | fi | |
6676 | ||
6677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6678 | done | |
6679 | else | |
6680 | echo "$as_me: failed program was:" >&5 | |
6681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6682 | ||
6683 | ac_lo= ac_hi= | |
6684 | fi | |
6685 | ||
6686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6687 | fi | |
6688 | ||
6689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6690 | # Binary search between lo and hi bounds. | |
6691 | while test "x$ac_lo" != "x$ac_hi"; do | |
6692 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6693 | cat >conftest.$ac_ext <<_ACEOF | |
6694 | /* confdefs.h. */ | |
6695 | _ACEOF | |
6696 | cat confdefs.h >>conftest.$ac_ext | |
6697 | cat >>conftest.$ac_ext <<_ACEOF | |
6698 | /* end confdefs.h. */ | |
6699 | $ac_includes_default | |
6700 | typedef long long ac__type_sizeof_; | |
6701 | int | |
6702 | main () | |
6703 | { | |
6704 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
6705 | test_array [0] = 0 | |
6706 | ||
6707 | ; | |
6708 | return 0; | |
6709 | } | |
6710 | _ACEOF | |
6711 | rm -f conftest.$ac_objext | |
6712 | if { (ac_try="$ac_compile" | |
6713 | case "(($ac_try" in | |
6714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6715 | *) ac_try_echo=$ac_try;; | |
6716 | esac | |
6717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6718 | (eval "$ac_compile") 2>conftest.er1 | |
6719 | ac_status=$? | |
6720 | grep -v '^ *+' conftest.er1 >conftest.err | |
6721 | rm -f conftest.er1 | |
6722 | cat conftest.err >&5 | |
6723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6724 | (exit $ac_status); } && { | |
6725 | test -z "$ac_c_werror_flag" || | |
6726 | test ! -s conftest.err | |
6727 | } && test -s conftest.$ac_objext; then | |
6728 | ac_hi=$ac_mid | |
6729 | else | |
6730 | echo "$as_me: failed program was:" >&5 | |
6731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6732 | ||
6733 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
6734 | fi | |
6735 | ||
6736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6737 | done | |
6738 | case $ac_lo in | |
6739 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
6740 | '') if test "$ac_cv_type_long_long" = yes; then | |
6741 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
6742 | See \`config.log' for more details." >&5 | |
6743 | echo "$as_me: error: cannot compute sizeof (long long) | |
6744 | See \`config.log' for more details." >&2;} | |
6745 | { (exit 77); exit 77; }; } | |
6746 | else | |
6747 | ac_cv_sizeof_long_long=0 | |
6748 | fi ;; | |
6749 | esac | |
6750 | else | |
6751 | cat >conftest.$ac_ext <<_ACEOF | |
6752 | /* confdefs.h. */ | |
6753 | _ACEOF | |
6754 | cat confdefs.h >>conftest.$ac_ext | |
6755 | cat >>conftest.$ac_ext <<_ACEOF | |
6756 | /* end confdefs.h. */ | |
6757 | $ac_includes_default | |
6758 | typedef long long ac__type_sizeof_; | |
6759 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6760 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6761 | #include <stdio.h> | |
6762 | #include <stdlib.h> | |
6763 | int | |
6764 | main () | |
6765 | { | |
6766 | ||
6767 | FILE *f = fopen ("conftest.val", "w"); | |
6768 | if (! f) | |
6769 | return 1; | |
6770 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
6771 | { | |
6772 | long int i = longval (); | |
6773 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6774 | return 1; | |
6775 | fprintf (f, "%ld\n", i); | |
6776 | } | |
6777 | else | |
6778 | { | |
6779 | unsigned long int i = ulongval (); | |
6780 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6781 | return 1; | |
6782 | fprintf (f, "%lu\n", i); | |
6783 | } | |
6784 | return ferror (f) || fclose (f) != 0; | |
6785 | ||
6786 | ; | |
6787 | return 0; | |
6788 | } | |
6789 | _ACEOF | |
6790 | rm -f conftest$ac_exeext | |
6791 | if { (ac_try="$ac_link" | |
6792 | case "(($ac_try" in | |
6793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6794 | *) ac_try_echo=$ac_try;; | |
6795 | esac | |
6796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6797 | (eval "$ac_link") 2>&5 | |
6798 | ac_status=$? | |
6799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6800 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6801 | { (case "(($ac_try" in | |
6802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6803 | *) ac_try_echo=$ac_try;; | |
6804 | esac | |
6805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6806 | (eval "$ac_try") 2>&5 | |
6807 | ac_status=$? | |
6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6809 | (exit $ac_status); }; }; then | |
6810 | ac_cv_sizeof_long_long=`cat conftest.val` | |
6811 | else | |
6812 | echo "$as_me: program exited with status $ac_status" >&5 | |
6813 | echo "$as_me: failed program was:" >&5 | |
6814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6815 | ||
6816 | ( exit $ac_status ) | |
6817 | if test "$ac_cv_type_long_long" = yes; then | |
6818 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
6819 | See \`config.log' for more details." >&5 | |
6820 | echo "$as_me: error: cannot compute sizeof (long long) | |
6821 | See \`config.log' for more details." >&2;} | |
6822 | { (exit 77); exit 77; }; } | |
6823 | else | |
6824 | ac_cv_sizeof_long_long=0 | |
6825 | fi | |
6826 | fi | |
6827 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6828 | fi | |
6829 | rm -f conftest.val | |
6830 | fi | |
6831 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
6832 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } | |
6833 | ||
6834 | ||
6835 | ||
6836 | cat >>confdefs.h <<_ACEOF | |
6837 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
6838 | _ACEOF | |
6839 | ||
6840 | ||
6841 | ||
6842 | ||
6843 | { echo "$as_me:$LINENO: checking for library containing socket" >&5 | |
6844 | echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } | |
6845 | if test "${ac_cv_search_socket+set}" = set; then | |
6846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6847 | else | |
6848 | ac_func_search_save_LIBS=$LIBS | |
6849 | cat >conftest.$ac_ext <<_ACEOF | |
6850 | /* confdefs.h. */ | |
6851 | _ACEOF | |
6852 | cat confdefs.h >>conftest.$ac_ext | |
6853 | cat >>conftest.$ac_ext <<_ACEOF | |
6854 | /* end confdefs.h. */ | |
6855 | ||
6856 | /* Override any GCC internal prototype to avoid an error. | |
6857 | Use char because int might match the return type of a GCC | |
6858 | builtin and then its argument prototype would still apply. */ | |
6859 | #ifdef __cplusplus | |
6860 | extern "C" | |
6861 | #endif | |
6862 | char socket (); | |
6863 | int | |
6864 | main () | |
6865 | { | |
6866 | return socket (); | |
6867 | ; | |
6868 | return 0; | |
6869 | } | |
6870 | _ACEOF | |
6871 | for ac_lib in '' socket; do | |
6872 | if test -z "$ac_lib"; then | |
6873 | ac_res="none required" | |
6874 | else | |
6875 | ac_res=-l$ac_lib | |
6876 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6877 | fi | |
6878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6879 | if { (ac_try="$ac_link" | |
6880 | case "(($ac_try" in | |
6881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6882 | *) ac_try_echo=$ac_try;; | |
6883 | esac | |
6884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6885 | (eval "$ac_link") 2>conftest.er1 | |
6886 | ac_status=$? | |
6887 | grep -v '^ *+' conftest.er1 >conftest.err | |
6888 | rm -f conftest.er1 | |
6889 | cat conftest.err >&5 | |
6890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6891 | (exit $ac_status); } && { | |
6892 | test -z "$ac_c_werror_flag" || | |
6893 | test ! -s conftest.err | |
6894 | } && test -s conftest$ac_exeext && | |
6895 | $as_test_x conftest$ac_exeext; then | |
6896 | ac_cv_search_socket=$ac_res | |
6897 | else | |
6898 | echo "$as_me: failed program was:" >&5 | |
6899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6900 | ||
6901 | ||
6902 | fi | |
6903 | ||
6904 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6905 | conftest$ac_exeext | |
6906 | if test "${ac_cv_search_socket+set}" = set; then | |
6907 | break | |
6908 | fi | |
6909 | done | |
6910 | if test "${ac_cv_search_socket+set}" = set; then | |
6911 | : | |
6912 | else | |
6913 | ac_cv_search_socket=no | |
6914 | fi | |
6915 | rm conftest.$ac_ext | |
6916 | LIBS=$ac_func_search_save_LIBS | |
6917 | fi | |
6918 | { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 | |
6919 | echo "${ECHO_T}$ac_cv_search_socket" >&6; } | |
6920 | ac_res=$ac_cv_search_socket | |
6921 | if test "$ac_res" != no; then | |
6922 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6923 | ||
6924 | else | |
6925 | { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5 | |
6926 | echo "$as_me: error: You have no socket()! Aborting." >&2;} | |
6927 | { (exit 1); exit 1; }; } | |
6928 | fi | |
6929 | ||
6930 | ||
6931 | if test x"$SUN" = xyes; then | |
6932 | { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5 | |
6933 | echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; } | |
6934 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
6935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6936 | else | |
6937 | ac_func_search_save_LIBS=$LIBS | |
6938 | cat >conftest.$ac_ext <<_ACEOF | |
6939 | /* confdefs.h. */ | |
6940 | _ACEOF | |
6941 | cat confdefs.h >>conftest.$ac_ext | |
6942 | cat >>conftest.$ac_ext <<_ACEOF | |
6943 | /* end confdefs.h. */ | |
6944 | ||
6945 | /* Override any GCC internal prototype to avoid an error. | |
6946 | Use char because int might match the return type of a GCC | |
6947 | builtin and then its argument prototype would still apply. */ | |
6948 | #ifdef __cplusplus | |
6949 | extern "C" | |
6950 | #endif | |
6951 | char inet_ntoa (); | |
6952 | int | |
6953 | main () | |
6954 | { | |
6955 | return inet_ntoa (); | |
6956 | ; | |
6957 | return 0; | |
6958 | } | |
6959 | _ACEOF | |
6960 | for ac_lib in '' nsl; do | |
6961 | if test -z "$ac_lib"; then | |
6962 | ac_res="none required" | |
6963 | else | |
6964 | ac_res=-l$ac_lib | |
6965 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6966 | fi | |
6967 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6968 | if { (ac_try="$ac_link" | |
6969 | case "(($ac_try" in | |
6970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6971 | *) ac_try_echo=$ac_try;; | |
6972 | esac | |
6973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6974 | (eval "$ac_link") 2>conftest.er1 | |
6975 | ac_status=$? | |
6976 | grep -v '^ *+' conftest.er1 >conftest.err | |
6977 | rm -f conftest.er1 | |
6978 | cat conftest.err >&5 | |
6979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6980 | (exit $ac_status); } && { | |
6981 | test -z "$ac_c_werror_flag" || | |
6982 | test ! -s conftest.err | |
6983 | } && test -s conftest$ac_exeext && | |
6984 | $as_test_x conftest$ac_exeext; then | |
6985 | ac_cv_search_inet_ntoa=$ac_res | |
6986 | else | |
6987 | echo "$as_me: failed program was:" >&5 | |
6988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6989 | ||
6990 | ||
6991 | fi | |
6992 | ||
6993 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6994 | conftest$ac_exeext | |
6995 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
6996 | break | |
6997 | fi | |
6998 | done | |
6999 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
7000 | : | |
7001 | else | |
7002 | ac_cv_search_inet_ntoa=no | |
7003 | fi | |
7004 | rm conftest.$ac_ext | |
7005 | LIBS=$ac_func_search_save_LIBS | |
7006 | fi | |
7007 | { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5 | |
7008 | echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; } | |
7009 | ac_res=$ac_cv_search_inet_ntoa | |
7010 | if test "$ac_res" != no; then | |
7011 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7012 | ||
7013 | else | |
7014 | { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5 | |
7015 | echo "$as_me: error: libnsl not found! Aborting." >&2;} | |
7016 | { (exit 1); exit 1; }; } | |
7017 | fi | |
7018 | ||
7019 | fi | |
7020 | ||
7021 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 | |
7022 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | |
7023 | if test "${ac_cv_type_socklen_t+set}" = set; then | |
7024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7025 | else | |
7026 | cat >conftest.$ac_ext <<_ACEOF | |
7027 | /* confdefs.h. */ | |
7028 | _ACEOF | |
7029 | cat confdefs.h >>conftest.$ac_ext | |
7030 | cat >>conftest.$ac_ext <<_ACEOF | |
7031 | /* end confdefs.h. */ | |
7032 | #include <sys/types.h> | |
7033 | #include <sys/socket.h> | |
7034 | ||
7035 | typedef socklen_t ac__type_new_; | |
7036 | int | |
7037 | main () | |
7038 | { | |
7039 | if ((ac__type_new_ *) 0) | |
7040 | return 0; | |
7041 | if (sizeof (ac__type_new_)) | |
7042 | return 0; | |
7043 | ; | |
7044 | return 0; | |
7045 | } | |
7046 | _ACEOF | |
7047 | rm -f conftest.$ac_objext | |
7048 | if { (ac_try="$ac_compile" | |
7049 | case "(($ac_try" in | |
7050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7051 | *) ac_try_echo=$ac_try;; | |
7052 | esac | |
7053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7054 | (eval "$ac_compile") 2>conftest.er1 | |
7055 | ac_status=$? | |
7056 | grep -v '^ *+' conftest.er1 >conftest.err | |
7057 | rm -f conftest.er1 | |
7058 | cat conftest.err >&5 | |
7059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7060 | (exit $ac_status); } && { | |
7061 | test -z "$ac_c_werror_flag" || | |
7062 | test ! -s conftest.err | |
7063 | } && test -s conftest.$ac_objext; then | |
7064 | ac_cv_type_socklen_t=yes | |
7065 | else | |
7066 | echo "$as_me: failed program was:" >&5 | |
7067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7068 | ||
7069 | ac_cv_type_socklen_t=no | |
7070 | fi | |
7071 | ||
7072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7073 | fi | |
7074 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | |
7075 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | |
7076 | if test $ac_cv_type_socklen_t = yes; then | |
7077 | : | |
7078 | else | |
7079 | ||
7080 | cat >>confdefs.h <<\_ACEOF | |
7081 | #define socklen_t unsigned int | |
7082 | _ACEOF | |
7083 | ||
7084 | fi | |
7085 | ||
7086 | ||
7087 | # Check whether --enable-ipv6 was given. | |
7088 | if test "${enable_ipv6+set}" = set; then | |
7089 | enableval=$enable_ipv6; ipv6=$enableval | |
7090 | else | |
7091 | ipv6=no | |
7092 | fi | |
7093 | ||
7094 | ||
7095 | { echo "$as_me:$LINENO: checking for library containing crypt" >&5 | |
7096 | echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; } | |
7097 | if test "${ac_cv_search_crypt+set}" = set; then | |
7098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7099 | else | |
7100 | ac_func_search_save_LIBS=$LIBS | |
7101 | cat >conftest.$ac_ext <<_ACEOF | |
7102 | /* confdefs.h. */ | |
7103 | _ACEOF | |
7104 | cat confdefs.h >>conftest.$ac_ext | |
7105 | cat >>conftest.$ac_ext <<_ACEOF | |
7106 | /* end confdefs.h. */ | |
7107 | ||
7108 | /* Override any GCC internal prototype to avoid an error. | |
7109 | Use char because int might match the return type of a GCC | |
7110 | builtin and then its argument prototype would still apply. */ | |
7111 | #ifdef __cplusplus | |
7112 | extern "C" | |
7113 | #endif | |
7114 | char crypt (); | |
7115 | int | |
7116 | main () | |
7117 | { | |
7118 | return crypt (); | |
7119 | ; | |
7120 | return 0; | |
7121 | } | |
7122 | _ACEOF | |
7123 | for ac_lib in '' crypt descrypt; do | |
7124 | if test -z "$ac_lib"; then | |
7125 | ac_res="none required" | |
7126 | else | |
7127 | ac_res=-l$ac_lib | |
7128 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7129 | fi | |
7130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7131 | if { (ac_try="$ac_link" | |
7132 | case "(($ac_try" in | |
7133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7134 | *) ac_try_echo=$ac_try;; | |
7135 | esac | |
7136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7137 | (eval "$ac_link") 2>conftest.er1 | |
7138 | ac_status=$? | |
7139 | grep -v '^ *+' conftest.er1 >conftest.err | |
7140 | rm -f conftest.er1 | |
7141 | cat conftest.err >&5 | |
7142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7143 | (exit $ac_status); } && { | |
7144 | test -z "$ac_c_werror_flag" || | |
7145 | test ! -s conftest.err | |
7146 | } && test -s conftest$ac_exeext && | |
7147 | $as_test_x conftest$ac_exeext; then | |
7148 | ac_cv_search_crypt=$ac_res | |
7149 | else | |
7150 | echo "$as_me: failed program was:" >&5 | |
7151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7152 | ||
7153 | ||
7154 | fi | |
7155 | ||
7156 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7157 | conftest$ac_exeext | |
7158 | if test "${ac_cv_search_crypt+set}" = set; then | |
7159 | break | |
7160 | fi | |
7161 | done | |
7162 | if test "${ac_cv_search_crypt+set}" = set; then | |
7163 | : | |
7164 | else | |
7165 | ac_cv_search_crypt=no | |
7166 | fi | |
7167 | rm conftest.$ac_ext | |
7168 | LIBS=$ac_func_search_save_LIBS | |
7169 | fi | |
7170 | { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5 | |
7171 | echo "${ECHO_T}$ac_cv_search_crypt" >&6; } | |
7172 | ac_res=$ac_cv_search_crypt | |
7173 | if test "$ac_res" != no; then | |
7174 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7175 | ||
7176 | fi | |
7177 | ||
7178 | ||
7179 | CRYPT_LIB=$ac_cv_search_crypt | |
7180 | ||
7181 | if test "$CRYPT_LIB" = "none required"; then | |
7182 | unset CRYPT_LIB | |
7183 | elif test "$CRYPT_LIB" = no; then | |
7184 | unset CRYPT_LIB | |
7185 | fi | |
7186 | ||
7187 | ||
7188 | ||
7189 | if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then | |
7190 | VICONF=viconf | |
7191 | else | |
7192 | VICONF="" | |
7193 | fi | |
7194 | ||
7195 | ||
7196 | ||
7197 | { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 | |
7198 | echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; } | |
7199 | if test "${gcc_cv_header_string+set}" = set; then | |
7200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7201 | else | |
7202 | ||
7203 | cat >conftest.$ac_ext <<_ACEOF | |
7204 | #include <string.h> | |
7205 | #include <strings.h> | |
7206 | _ACEOF | |
7207 | rm -f conftest.$ac_objext | |
7208 | if { (ac_try="$ac_compile" | |
7209 | case "(($ac_try" in | |
7210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7211 | *) ac_try_echo=$ac_try;; | |
7212 | esac | |
7213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7214 | (eval "$ac_compile") 2>conftest.er1 | |
7215 | ac_status=$? | |
7216 | grep -v '^ *+' conftest.er1 >conftest.err | |
7217 | rm -f conftest.er1 | |
7218 | cat conftest.err >&5 | |
7219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7220 | (exit $ac_status); } && { | |
7221 | test -z "$ac_c_werror_flag" || | |
7222 | test ! -s conftest.err | |
7223 | } && test -s conftest.$ac_objext; then | |
7224 | gcc_cv_header_string=yes | |
7225 | else | |
7226 | echo "$as_me: failed program was:" >&5 | |
7227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7228 | ||
7229 | gcc_cv_header_string=no | |
7230 | fi | |
7231 | ||
7232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7233 | ||
7234 | fi | |
7235 | { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 | |
7236 | echo "${ECHO_T}$gcc_cv_header_string" >&6; } | |
7237 | ||
7238 | if test "$gcc_cv_header_string" = "yes"; then | |
7239 | ||
7240 | cat >>confdefs.h <<\_ACEOF | |
7241 | #define STRING_WITH_STRINGS 1 | |
7242 | _ACEOF | |
7243 | ||
7244 | fi | |
7245 | ||
7246 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
7247 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
7248 | if test "${ac_cv_c_bigendian+set}" = set; then | |
7249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7250 | else | |
7251 | # See if sys/param.h defines the BYTE_ORDER macro. | |
7252 | cat >conftest.$ac_ext <<_ACEOF | |
7253 | /* confdefs.h. */ | |
7254 | _ACEOF | |
7255 | cat confdefs.h >>conftest.$ac_ext | |
7256 | cat >>conftest.$ac_ext <<_ACEOF | |
7257 | /* end confdefs.h. */ | |
7258 | #include <sys/types.h> | |
7259 | #include <sys/param.h> | |
7260 | ||
7261 | int | |
7262 | main () | |
7263 | { | |
7264 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | |
7265 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
7266 | bogus endian macros | |
7267 | #endif | |
7268 | ||
7269 | ; | |
7270 | return 0; | |
7271 | } | |
7272 | _ACEOF | |
7273 | rm -f conftest.$ac_objext | |
7274 | if { (ac_try="$ac_compile" | |
7275 | case "(($ac_try" in | |
7276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7277 | *) ac_try_echo=$ac_try;; | |
7278 | esac | |
7279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7280 | (eval "$ac_compile") 2>conftest.er1 | |
7281 | ac_status=$? | |
7282 | grep -v '^ *+' conftest.er1 >conftest.err | |
7283 | rm -f conftest.er1 | |
7284 | cat conftest.err >&5 | |
7285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7286 | (exit $ac_status); } && { | |
7287 | test -z "$ac_c_werror_flag" || | |
7288 | test ! -s conftest.err | |
7289 | } && test -s conftest.$ac_objext; then | |
7290 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
7291 | cat >conftest.$ac_ext <<_ACEOF | |
7292 | /* confdefs.h. */ | |
7293 | _ACEOF | |
7294 | cat confdefs.h >>conftest.$ac_ext | |
7295 | cat >>conftest.$ac_ext <<_ACEOF | |
7296 | /* end confdefs.h. */ | |
7297 | #include <sys/types.h> | |
7298 | #include <sys/param.h> | |
7299 | ||
7300 | int | |
7301 | main () | |
7302 | { | |
7303 | #if BYTE_ORDER != BIG_ENDIAN | |
7304 | not big endian | |
7305 | #endif | |
7306 | ||
7307 | ; | |
7308 | return 0; | |
7309 | } | |
7310 | _ACEOF | |
7311 | rm -f conftest.$ac_objext | |
7312 | if { (ac_try="$ac_compile" | |
7313 | case "(($ac_try" in | |
7314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7315 | *) ac_try_echo=$ac_try;; | |
7316 | esac | |
7317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7318 | (eval "$ac_compile") 2>conftest.er1 | |
7319 | ac_status=$? | |
7320 | grep -v '^ *+' conftest.er1 >conftest.err | |
7321 | rm -f conftest.er1 | |
7322 | cat conftest.err >&5 | |
7323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7324 | (exit $ac_status); } && { | |
7325 | test -z "$ac_c_werror_flag" || | |
7326 | test ! -s conftest.err | |
7327 | } && test -s conftest.$ac_objext; then | |
7328 | ac_cv_c_bigendian=yes | |
7329 | else | |
7330 | echo "$as_me: failed program was:" >&5 | |
7331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7332 | ||
7333 | ac_cv_c_bigendian=no | |
7334 | fi | |
7335 | ||
7336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7337 | else | |
7338 | echo "$as_me: failed program was:" >&5 | |
7339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7340 | ||
7341 | # It does not; compile a test program. | |
7342 | if test "$cross_compiling" = yes; then | |
7343 | # try to guess the endianness by grepping values into an object file | |
7344 | ac_cv_c_bigendian=unknown | |
7345 | cat >conftest.$ac_ext <<_ACEOF | |
7346 | /* confdefs.h. */ | |
7347 | _ACEOF | |
7348 | cat confdefs.h >>conftest.$ac_ext | |
7349 | cat >>conftest.$ac_ext <<_ACEOF | |
7350 | /* end confdefs.h. */ | |
7351 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
7352 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
7353 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
7354 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
7355 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
7356 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
7357 | int | |
7358 | main () | |
7359 | { | |
7360 | _ascii (); _ebcdic (); | |
7361 | ; | |
7362 | return 0; | |
7363 | } | |
7364 | _ACEOF | |
7365 | rm -f conftest.$ac_objext | |
7366 | if { (ac_try="$ac_compile" | |
7367 | case "(($ac_try" in | |
7368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7369 | *) ac_try_echo=$ac_try;; | |
7370 | esac | |
7371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7372 | (eval "$ac_compile") 2>conftest.er1 | |
7373 | ac_status=$? | |
7374 | grep -v '^ *+' conftest.er1 >conftest.err | |
7375 | rm -f conftest.er1 | |
7376 | cat conftest.err >&5 | |
7377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7378 | (exit $ac_status); } && { | |
7379 | test -z "$ac_c_werror_flag" || | |
7380 | test ! -s conftest.err | |
7381 | } && test -s conftest.$ac_objext; then | |
7382 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
7383 | ac_cv_c_bigendian=yes | |
7384 | fi | |
7385 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
7386 | if test "$ac_cv_c_bigendian" = unknown; then | |
7387 | ac_cv_c_bigendian=no | |
7388 | else | |
7389 | # finding both strings is unlikely to happen, but who knows? | |
7390 | ac_cv_c_bigendian=unknown | |
7391 | fi | |
7392 | fi | |
7393 | else | |
7394 | echo "$as_me: failed program was:" >&5 | |
7395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7396 | ||
7397 | ||
7398 | fi | |
7399 | ||
7400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7401 | else | |
7402 | cat >conftest.$ac_ext <<_ACEOF | |
7403 | /* confdefs.h. */ | |
7404 | _ACEOF | |
7405 | cat confdefs.h >>conftest.$ac_ext | |
7406 | cat >>conftest.$ac_ext <<_ACEOF | |
7407 | /* end confdefs.h. */ | |
7408 | $ac_includes_default | |
7409 | int | |
7410 | main () | |
7411 | { | |
7412 | ||
7413 | /* Are we little or big endian? From Harbison&Steele. */ | |
7414 | union | |
7415 | { | |
7416 | long int l; | |
7417 | char c[sizeof (long int)]; | |
7418 | } u; | |
7419 | u.l = 1; | |
7420 | return u.c[sizeof (long int) - 1] == 1; | |
7421 | ||
7422 | ; | |
7423 | return 0; | |
7424 | } | |
7425 | _ACEOF | |
7426 | rm -f conftest$ac_exeext | |
7427 | if { (ac_try="$ac_link" | |
7428 | case "(($ac_try" in | |
7429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7430 | *) ac_try_echo=$ac_try;; | |
7431 | esac | |
7432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7433 | (eval "$ac_link") 2>&5 | |
7434 | ac_status=$? | |
7435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7436 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7437 | { (case "(($ac_try" in | |
7438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7439 | *) ac_try_echo=$ac_try;; | |
7440 | esac | |
7441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7442 | (eval "$ac_try") 2>&5 | |
7443 | ac_status=$? | |
7444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7445 | (exit $ac_status); }; }; then | |
7446 | ac_cv_c_bigendian=no | |
7447 | else | |
7448 | echo "$as_me: program exited with status $ac_status" >&5 | |
7449 | echo "$as_me: failed program was:" >&5 | |
7450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7451 | ||
7452 | ( exit $ac_status ) | |
7453 | ac_cv_c_bigendian=yes | |
7454 | fi | |
7455 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7456 | fi | |
7457 | ||
7458 | ||
7459 | fi | |
7460 | ||
7461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7462 | fi | |
7463 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
7464 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
7465 | case $ac_cv_c_bigendian in | |
7466 | yes) | |
7467 | ||
7468 | cat >>confdefs.h <<\_ACEOF | |
7469 | #define WORDS_BIGENDIAN 1 | |
7470 | _ACEOF | |
7471 | ;; | |
7472 | no) | |
7473 | ;; | |
7474 | *) | |
7475 | { { echo "$as_me:$LINENO: error: unknown endianness | |
7476 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
7477 | echo "$as_me: error: unknown endianness | |
7478 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
7479 | { (exit 1); exit 1; }; } ;; | |
7480 | esac | |
7481 | ||
7482 | ||
7483 | if test "${ac_cv_header_stdarg_h+set}" = set; then | |
7484 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 | |
7485 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } | |
7486 | if test "${ac_cv_header_stdarg_h+set}" = set; then | |
7487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7488 | fi | |
7489 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 | |
7490 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } | |
7491 | else | |
7492 | # Is the header compilable? | |
7493 | { echo "$as_me:$LINENO: checking stdarg.h usability" >&5 | |
7494 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } | |
7495 | cat >conftest.$ac_ext <<_ACEOF | |
7496 | /* confdefs.h. */ | |
7497 | _ACEOF | |
7498 | cat confdefs.h >>conftest.$ac_ext | |
7499 | cat >>conftest.$ac_ext <<_ACEOF | |
7500 | /* end confdefs.h. */ | |
7501 | $ac_includes_default | |
7502 | #include <stdarg.h> | |
7503 | _ACEOF | |
7504 | rm -f conftest.$ac_objext | |
7505 | if { (ac_try="$ac_compile" | |
7506 | case "(($ac_try" in | |
7507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7508 | *) ac_try_echo=$ac_try;; | |
7509 | esac | |
7510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7511 | (eval "$ac_compile") 2>conftest.er1 | |
7512 | ac_status=$? | |
7513 | grep -v '^ *+' conftest.er1 >conftest.err | |
7514 | rm -f conftest.er1 | |
7515 | cat conftest.err >&5 | |
7516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7517 | (exit $ac_status); } && { | |
7518 | test -z "$ac_c_werror_flag" || | |
7519 | test ! -s conftest.err | |
7520 | } && test -s conftest.$ac_objext; then | |
7521 | ac_header_compiler=yes | |
7522 | else | |
7523 | echo "$as_me: failed program was:" >&5 | |
7524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7525 | ||
7526 | ac_header_compiler=no | |
7527 | fi | |
7528 | ||
7529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7530 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7531 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
7532 | ||
7533 | # Is the header present? | |
7534 | { echo "$as_me:$LINENO: checking stdarg.h presence" >&5 | |
7535 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } | |
7536 | cat >conftest.$ac_ext <<_ACEOF | |
7537 | /* confdefs.h. */ | |
7538 | _ACEOF | |
7539 | cat confdefs.h >>conftest.$ac_ext | |
7540 | cat >>conftest.$ac_ext <<_ACEOF | |
7541 | /* end confdefs.h. */ | |
7542 | #include <stdarg.h> | |
7543 | _ACEOF | |
7544 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7545 | case "(($ac_try" in | |
7546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7547 | *) ac_try_echo=$ac_try;; | |
7548 | esac | |
7549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7550 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7551 | ac_status=$? | |
7552 | grep -v '^ *+' conftest.er1 >conftest.err | |
7553 | rm -f conftest.er1 | |
7554 | cat conftest.err >&5 | |
7555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7556 | (exit $ac_status); } >/dev/null && { | |
7557 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7558 | test ! -s conftest.err | |
7559 | }; then | |
7560 | ac_header_preproc=yes | |
7561 | else | |
7562 | echo "$as_me: failed program was:" >&5 | |
7563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7564 | ||
7565 | ac_header_preproc=no | |
7566 | fi | |
7567 | ||
7568 | rm -f conftest.err conftest.$ac_ext | |
7569 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7570 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
7571 | ||
7572 | # So? What about this header? | |
7573 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7574 | yes:no: ) | |
7575 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7576 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7577 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 | |
7578 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} | |
7579 | ac_header_preproc=yes | |
7580 | ;; | |
7581 | no:yes:* ) | |
7582 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 | |
7583 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} | |
7584 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 | |
7585 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} | |
7586 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 | |
7587 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} | |
7588 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7589 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7590 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 | |
7591 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} | |
7592 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 | |
7593 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} | |
7594 | ||
7595 | ;; | |
7596 | esac | |
7597 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 | |
7598 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } | |
7599 | if test "${ac_cv_header_stdarg_h+set}" = set; then | |
7600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7601 | else | |
7602 | ac_cv_header_stdarg_h=$ac_header_preproc | |
7603 | fi | |
7604 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 | |
7605 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } | |
7606 | ||
7607 | fi | |
7608 | if test $ac_cv_header_stdarg_h = yes; then | |
7609 | : | |
7610 | else | |
7611 | { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - charybdis will not compile without it **" >&5 | |
7612 | echo "$as_me: error: ** stdarg.h could not be found - charybdis will not compile without it **" >&2;} | |
7613 | { (exit 1); exit 1; }; } | |
7614 | fi | |
7615 | ||
7616 | ||
7617 | ||
7618 | ||
7619 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
7620 | ||
7621 | { echo "$as_me:$LINENO: checking for strlcpy" >&5 | |
7622 | echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; } | |
7623 | save_CFLAGS=$CFLAGS | |
7624 | CFLAGS="$CFLAGS -Wimplicit -Werror" | |
7625 | ||
7626 | cat >conftest.$ac_ext <<_ACEOF | |
7627 | /* confdefs.h. */ | |
7628 | _ACEOF | |
7629 | cat confdefs.h >>conftest.$ac_ext | |
7630 | cat >>conftest.$ac_ext <<_ACEOF | |
7631 | /* end confdefs.h. */ | |
7632 | #include <string.h> | |
7633 | #include <stdlib.h> | |
7634 | int | |
7635 | main () | |
7636 | { | |
7637 | char *a = malloc(6); | |
7638 | strlcpy(a, "hello", 6); | |
7639 | ||
7640 | ; | |
7641 | return 0; | |
7642 | } | |
7643 | _ACEOF | |
7644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7645 | if { (ac_try="$ac_link" | |
7646 | case "(($ac_try" in | |
7647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7648 | *) ac_try_echo=$ac_try;; | |
7649 | esac | |
7650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7651 | (eval "$ac_link") 2>conftest.er1 | |
7652 | ac_status=$? | |
7653 | grep -v '^ *+' conftest.er1 >conftest.err | |
7654 | rm -f conftest.er1 | |
7655 | cat conftest.err >&5 | |
7656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7657 | (exit $ac_status); } && { | |
7658 | test -z "$ac_c_werror_flag" || | |
7659 | test ! -s conftest.err | |
7660 | } && test -s conftest$ac_exeext && | |
7661 | $as_test_x conftest$ac_exeext; then | |
7662 | { echo "$as_me:$LINENO: result: yes" >&5 | |
7663 | echo "${ECHO_T}yes" >&6; } | |
7664 | ||
7665 | cat >>confdefs.h <<\_ACEOF | |
7666 | #define HAVE_STRLCPY 1 | |
7667 | _ACEOF | |
7668 | ||
7669 | else | |
7670 | echo "$as_me: failed program was:" >&5 | |
7671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7672 | ||
7673 | { echo "$as_me:$LINENO: result: no" >&5 | |
7674 | echo "${ECHO_T}no" >&6; } | |
7675 | ||
7676 | fi | |
7677 | ||
7678 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7679 | conftest$ac_exeext conftest.$ac_ext | |
7680 | ||
7681 | { echo "$as_me:$LINENO: checking for strlcat" >&5 | |
7682 | echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; } | |
7683 | cat >conftest.$ac_ext <<_ACEOF | |
7684 | /* confdefs.h. */ | |
7685 | _ACEOF | |
7686 | cat confdefs.h >>conftest.$ac_ext | |
7687 | cat >>conftest.$ac_ext <<_ACEOF | |
7688 | /* end confdefs.h. */ | |
7689 | #include <string.h> | |
7690 | #include <stdlib.h> | |
7691 | int | |
7692 | main () | |
7693 | { | |
7694 | char *a = malloc(6); | |
7695 | a[0] = '\0'; | |
7696 | strlcat(a, "hello", 6); | |
7697 | ||
7698 | ; | |
7699 | return 0; | |
7700 | } | |
7701 | _ACEOF | |
7702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7703 | if { (ac_try="$ac_link" | |
7704 | case "(($ac_try" in | |
7705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7706 | *) ac_try_echo=$ac_try;; | |
7707 | esac | |
7708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7709 | (eval "$ac_link") 2>conftest.er1 | |
7710 | ac_status=$? | |
7711 | grep -v '^ *+' conftest.er1 >conftest.err | |
7712 | rm -f conftest.er1 | |
7713 | cat conftest.err >&5 | |
7714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7715 | (exit $ac_status); } && { | |
7716 | test -z "$ac_c_werror_flag" || | |
7717 | test ! -s conftest.err | |
7718 | } && test -s conftest$ac_exeext && | |
7719 | $as_test_x conftest$ac_exeext; then | |
7720 | { echo "$as_me:$LINENO: result: yes" >&5 | |
7721 | echo "${ECHO_T}yes" >&6; } | |
7722 | ||
7723 | cat >>confdefs.h <<\_ACEOF | |
7724 | #define HAVE_STRLCAT 1 | |
7725 | _ACEOF | |
7726 | ||
7727 | else | |
7728 | echo "$as_me: failed program was:" >&5 | |
7729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7730 | ||
7731 | { echo "$as_me:$LINENO: result: no" >&5 | |
7732 | echo "${ECHO_T}no" >&6; } | |
7733 | ||
7734 | fi | |
7735 | ||
7736 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7737 | conftest$ac_exeext conftest.$ac_ext | |
7738 | ||
7739 | CFLAGS=$save_CFLAGS | |
7740 | ||
7741 | else | |
7742 | ||
7743 | ||
7744 | ||
7745 | ||
7746 | for ac_func in strlcat strlcpy | |
7747 | do | |
7748 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7749 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7750 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7751 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
7752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7753 | else | |
7754 | cat >conftest.$ac_ext <<_ACEOF | |
7755 | /* confdefs.h. */ | |
7756 | _ACEOF | |
7757 | cat confdefs.h >>conftest.$ac_ext | |
7758 | cat >>conftest.$ac_ext <<_ACEOF | |
7759 | /* end confdefs.h. */ | |
7760 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7761 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7762 | #define $ac_func innocuous_$ac_func | |
7763 | ||
7764 | /* System header to define __stub macros and hopefully few prototypes, | |
7765 | which can conflict with char $ac_func (); below. | |
7766 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7767 | <limits.h> exists even on freestanding compilers. */ | |
7768 | ||
7769 | #ifdef __STDC__ | |
7770 | # include <limits.h> | |
7771 | #else | |
7772 | # include <assert.h> | |
7773 | #endif | |
7774 | ||
7775 | #undef $ac_func | |
7776 | ||
7777 | /* Override any GCC internal prototype to avoid an error. | |
7778 | Use char because int might match the return type of a GCC | |
7779 | builtin and then its argument prototype would still apply. */ | |
7780 | #ifdef __cplusplus | |
7781 | extern "C" | |
7782 | #endif | |
7783 | char $ac_func (); | |
7784 | /* The GNU C library defines this for functions which it implements | |
7785 | to always fail with ENOSYS. Some functions are actually named | |
7786 | something starting with __ and the normal name is an alias. */ | |
7787 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
7788 | choke me | |
7789 | #endif | |
7790 | ||
7791 | int | |
7792 | main () | |
7793 | { | |
7794 | return $ac_func (); | |
7795 | ; | |
7796 | return 0; | |
7797 | } | |
7798 | _ACEOF | |
7799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7800 | if { (ac_try="$ac_link" | |
7801 | case "(($ac_try" in | |
7802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7803 | *) ac_try_echo=$ac_try;; | |
7804 | esac | |
7805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7806 | (eval "$ac_link") 2>conftest.er1 | |
7807 | ac_status=$? | |
7808 | grep -v '^ *+' conftest.er1 >conftest.err | |
7809 | rm -f conftest.er1 | |
7810 | cat conftest.err >&5 | |
7811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7812 | (exit $ac_status); } && { | |
7813 | test -z "$ac_c_werror_flag" || | |
7814 | test ! -s conftest.err | |
7815 | } && test -s conftest$ac_exeext && | |
7816 | $as_test_x conftest$ac_exeext; then | |
7817 | eval "$as_ac_var=yes" | |
7818 | else | |
7819 | echo "$as_me: failed program was:" >&5 | |
7820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7821 | ||
7822 | eval "$as_ac_var=no" | |
7823 | fi | |
7824 | ||
7825 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7826 | conftest$ac_exeext conftest.$ac_ext | |
7827 | fi | |
7828 | ac_res=`eval echo '${'$as_ac_var'}'` | |
7829 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7830 | echo "${ECHO_T}$ac_res" >&6; } | |
7831 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7832 | cat >>confdefs.h <<_ACEOF | |
7833 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7834 | _ACEOF | |
7835 | ||
7836 | fi | |
7837 | done | |
7838 | ||
7839 | ||
7840 | fi | |
7841 | ||
7842 | { echo "$as_me:$LINENO: checking for u_int32_t" >&5 | |
7843 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } | |
7844 | if test "${ac_cv_type_u_int32_t+set}" = set; then | |
7845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7846 | else | |
7847 | cat >conftest.$ac_ext <<_ACEOF | |
7848 | /* confdefs.h. */ | |
7849 | _ACEOF | |
7850 | cat confdefs.h >>conftest.$ac_ext | |
7851 | cat >>conftest.$ac_ext <<_ACEOF | |
7852 | /* end confdefs.h. */ | |
7853 | $ac_includes_default | |
7854 | typedef u_int32_t ac__type_new_; | |
7855 | int | |
7856 | main () | |
7857 | { | |
7858 | if ((ac__type_new_ *) 0) | |
7859 | return 0; | |
7860 | if (sizeof (ac__type_new_)) | |
7861 | return 0; | |
7862 | ; | |
7863 | return 0; | |
7864 | } | |
7865 | _ACEOF | |
7866 | rm -f conftest.$ac_objext | |
7867 | if { (ac_try="$ac_compile" | |
7868 | case "(($ac_try" in | |
7869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7870 | *) ac_try_echo=$ac_try;; | |
7871 | esac | |
7872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7873 | (eval "$ac_compile") 2>conftest.er1 | |
7874 | ac_status=$? | |
7875 | grep -v '^ *+' conftest.er1 >conftest.err | |
7876 | rm -f conftest.er1 | |
7877 | cat conftest.err >&5 | |
7878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7879 | (exit $ac_status); } && { | |
7880 | test -z "$ac_c_werror_flag" || | |
7881 | test ! -s conftest.err | |
7882 | } && test -s conftest.$ac_objext; then | |
7883 | ac_cv_type_u_int32_t=yes | |
7884 | else | |
7885 | echo "$as_me: failed program was:" >&5 | |
7886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7887 | ||
7888 | ac_cv_type_u_int32_t=no | |
7889 | fi | |
7890 | ||
7891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7892 | fi | |
7893 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 | |
7894 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } | |
7895 | if test $ac_cv_type_u_int32_t = yes; then | |
7896 | : | |
7897 | else | |
7898 | ||
7899 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 | |
7900 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } | |
7901 | if test "${ac_cv_type_uint32_t+set}" = set; then | |
7902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7903 | else | |
7904 | cat >conftest.$ac_ext <<_ACEOF | |
7905 | /* confdefs.h. */ | |
7906 | _ACEOF | |
7907 | cat confdefs.h >>conftest.$ac_ext | |
7908 | cat >>conftest.$ac_ext <<_ACEOF | |
7909 | /* end confdefs.h. */ | |
7910 | $ac_includes_default | |
7911 | typedef uint32_t ac__type_new_; | |
7912 | int | |
7913 | main () | |
7914 | { | |
7915 | if ((ac__type_new_ *) 0) | |
7916 | return 0; | |
7917 | if (sizeof (ac__type_new_)) | |
7918 | return 0; | |
7919 | ; | |
7920 | return 0; | |
7921 | } | |
7922 | _ACEOF | |
7923 | rm -f conftest.$ac_objext | |
7924 | if { (ac_try="$ac_compile" | |
7925 | case "(($ac_try" in | |
7926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7927 | *) ac_try_echo=$ac_try;; | |
7928 | esac | |
7929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7930 | (eval "$ac_compile") 2>conftest.er1 | |
7931 | ac_status=$? | |
7932 | grep -v '^ *+' conftest.er1 >conftest.err | |
7933 | rm -f conftest.er1 | |
7934 | cat conftest.err >&5 | |
7935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7936 | (exit $ac_status); } && { | |
7937 | test -z "$ac_c_werror_flag" || | |
7938 | test ! -s conftest.err | |
7939 | } && test -s conftest.$ac_objext; then | |
7940 | ac_cv_type_uint32_t=yes | |
7941 | else | |
7942 | echo "$as_me: failed program was:" >&5 | |
7943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7944 | ||
7945 | ac_cv_type_uint32_t=no | |
7946 | fi | |
7947 | ||
7948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7949 | fi | |
7950 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 | |
7951 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } | |
7952 | if test $ac_cv_type_uint32_t = yes; then | |
7953 | ||
7954 | ||
7955 | cat >>confdefs.h <<\_ACEOF | |
7956 | #define u_int32_t uint32_t | |
7957 | _ACEOF | |
7958 | ||
7959 | ||
7960 | else | |
7961 | ||
7962 | { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 | |
7963 | echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
7964 | ||
7965 | cat >>confdefs.h <<\_ACEOF | |
7966 | #define u_int32_t unsigned long int | |
7967 | _ACEOF | |
7968 | ||
7969 | ||
7970 | fi | |
7971 | ||
7972 | ||
7973 | fi | |
7974 | ||
7975 | ||
7976 | { echo "$as_me:$LINENO: checking for u_int16_t" >&5 | |
7977 | echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } | |
7978 | if test "${ac_cv_type_u_int16_t+set}" = set; then | |
7979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7980 | else | |
7981 | cat >conftest.$ac_ext <<_ACEOF | |
7982 | /* confdefs.h. */ | |
7983 | _ACEOF | |
7984 | cat confdefs.h >>conftest.$ac_ext | |
7985 | cat >>conftest.$ac_ext <<_ACEOF | |
7986 | /* end confdefs.h. */ | |
7987 | $ac_includes_default | |
7988 | typedef u_int16_t ac__type_new_; | |
7989 | int | |
7990 | main () | |
7991 | { | |
7992 | if ((ac__type_new_ *) 0) | |
7993 | return 0; | |
7994 | if (sizeof (ac__type_new_)) | |
7995 | return 0; | |
7996 | ; | |
7997 | return 0; | |
7998 | } | |
7999 | _ACEOF | |
8000 | rm -f conftest.$ac_objext | |
8001 | if { (ac_try="$ac_compile" | |
8002 | case "(($ac_try" in | |
8003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8004 | *) ac_try_echo=$ac_try;; | |
8005 | esac | |
8006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8007 | (eval "$ac_compile") 2>conftest.er1 | |
8008 | ac_status=$? | |
8009 | grep -v '^ *+' conftest.er1 >conftest.err | |
8010 | rm -f conftest.er1 | |
8011 | cat conftest.err >&5 | |
8012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8013 | (exit $ac_status); } && { | |
8014 | test -z "$ac_c_werror_flag" || | |
8015 | test ! -s conftest.err | |
8016 | } && test -s conftest.$ac_objext; then | |
8017 | ac_cv_type_u_int16_t=yes | |
8018 | else | |
8019 | echo "$as_me: failed program was:" >&5 | |
8020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8021 | ||
8022 | ac_cv_type_u_int16_t=no | |
8023 | fi | |
8024 | ||
8025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8026 | fi | |
8027 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 | |
8028 | echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; } | |
8029 | if test $ac_cv_type_u_int16_t = yes; then | |
8030 | : | |
8031 | else | |
8032 | ||
8033 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 | |
8034 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } | |
8035 | if test "${ac_cv_type_uint16_t+set}" = set; then | |
8036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8037 | else | |
8038 | cat >conftest.$ac_ext <<_ACEOF | |
8039 | /* confdefs.h. */ | |
8040 | _ACEOF | |
8041 | cat confdefs.h >>conftest.$ac_ext | |
8042 | cat >>conftest.$ac_ext <<_ACEOF | |
8043 | /* end confdefs.h. */ | |
8044 | $ac_includes_default | |
8045 | typedef uint16_t ac__type_new_; | |
8046 | int | |
8047 | main () | |
8048 | { | |
8049 | if ((ac__type_new_ *) 0) | |
8050 | return 0; | |
8051 | if (sizeof (ac__type_new_)) | |
8052 | return 0; | |
8053 | ; | |
8054 | return 0; | |
8055 | } | |
8056 | _ACEOF | |
8057 | rm -f conftest.$ac_objext | |
8058 | if { (ac_try="$ac_compile" | |
8059 | case "(($ac_try" in | |
8060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8061 | *) ac_try_echo=$ac_try;; | |
8062 | esac | |
8063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8064 | (eval "$ac_compile") 2>conftest.er1 | |
8065 | ac_status=$? | |
8066 | grep -v '^ *+' conftest.er1 >conftest.err | |
8067 | rm -f conftest.er1 | |
8068 | cat conftest.err >&5 | |
8069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8070 | (exit $ac_status); } && { | |
8071 | test -z "$ac_c_werror_flag" || | |
8072 | test ! -s conftest.err | |
8073 | } && test -s conftest.$ac_objext; then | |
8074 | ac_cv_type_uint16_t=yes | |
8075 | else | |
8076 | echo "$as_me: failed program was:" >&5 | |
8077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8078 | ||
8079 | ac_cv_type_uint16_t=no | |
8080 | fi | |
8081 | ||
8082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8083 | fi | |
8084 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 | |
8085 | echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; } | |
8086 | if test $ac_cv_type_uint16_t = yes; then | |
8087 | ||
8088 | ||
8089 | cat >>confdefs.h <<\_ACEOF | |
8090 | #define u_int16_t uint16_t | |
8091 | _ACEOF | |
8092 | ||
8093 | ||
8094 | else | |
8095 | ||
8096 | { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 | |
8097 | echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
8098 | ||
8099 | cat >>confdefs.h <<\_ACEOF | |
8100 | #define u_int16_t unsigned short int | |
8101 | _ACEOF | |
8102 | ||
8103 | ||
8104 | fi | |
8105 | ||
8106 | ||
8107 | fi | |
8108 | ||
8109 | ||
8110 | { echo "$as_me:$LINENO: checking for in_port_t" >&5 | |
8111 | echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } | |
8112 | if test "${ac_cv_type_in_port_t+set}" = set; then | |
8113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8114 | else | |
8115 | cat >conftest.$ac_ext <<_ACEOF | |
8116 | /* confdefs.h. */ | |
8117 | _ACEOF | |
8118 | cat confdefs.h >>conftest.$ac_ext | |
8119 | cat >>conftest.$ac_ext <<_ACEOF | |
8120 | /* end confdefs.h. */ | |
8121 | #include <sys/types.h> | |
8122 | #include <netinet/in.h> | |
8123 | ||
8124 | typedef in_port_t ac__type_new_; | |
8125 | int | |
8126 | main () | |
8127 | { | |
8128 | if ((ac__type_new_ *) 0) | |
8129 | return 0; | |
8130 | if (sizeof (ac__type_new_)) | |
8131 | return 0; | |
8132 | ; | |
8133 | return 0; | |
8134 | } | |
8135 | _ACEOF | |
8136 | rm -f conftest.$ac_objext | |
8137 | if { (ac_try="$ac_compile" | |
8138 | case "(($ac_try" in | |
8139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8140 | *) ac_try_echo=$ac_try;; | |
8141 | esac | |
8142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8143 | (eval "$ac_compile") 2>conftest.er1 | |
8144 | ac_status=$? | |
8145 | grep -v '^ *+' conftest.er1 >conftest.err | |
8146 | rm -f conftest.er1 | |
8147 | cat conftest.err >&5 | |
8148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8149 | (exit $ac_status); } && { | |
8150 | test -z "$ac_c_werror_flag" || | |
8151 | test ! -s conftest.err | |
8152 | } && test -s conftest.$ac_objext; then | |
8153 | ac_cv_type_in_port_t=yes | |
8154 | else | |
8155 | echo "$as_me: failed program was:" >&5 | |
8156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8157 | ||
8158 | ac_cv_type_in_port_t=no | |
8159 | fi | |
8160 | ||
8161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8162 | fi | |
8163 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 | |
8164 | echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } | |
8165 | if test $ac_cv_type_in_port_t = yes; then | |
8166 | : | |
8167 | else | |
8168 | ||
8169 | cat >>confdefs.h <<\_ACEOF | |
8170 | #define in_port_t u_int16_t | |
8171 | _ACEOF | |
8172 | ||
8173 | fi | |
8174 | ||
8175 | ||
8176 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 | |
8177 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | |
8178 | if test "${ac_cv_type_sa_family_t+set}" = set; then | |
8179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8180 | else | |
8181 | cat >conftest.$ac_ext <<_ACEOF | |
8182 | /* confdefs.h. */ | |
8183 | _ACEOF | |
8184 | cat confdefs.h >>conftest.$ac_ext | |
8185 | cat >>conftest.$ac_ext <<_ACEOF | |
8186 | /* end confdefs.h. */ | |
8187 | #include <sys/types.h> | |
8188 | #include <sys/socket.h> | |
8189 | ||
8190 | typedef sa_family_t ac__type_new_; | |
8191 | int | |
8192 | main () | |
8193 | { | |
8194 | if ((ac__type_new_ *) 0) | |
8195 | return 0; | |
8196 | if (sizeof (ac__type_new_)) | |
8197 | return 0; | |
8198 | ; | |
8199 | return 0; | |
8200 | } | |
8201 | _ACEOF | |
8202 | rm -f conftest.$ac_objext | |
8203 | if { (ac_try="$ac_compile" | |
8204 | case "(($ac_try" in | |
8205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8206 | *) ac_try_echo=$ac_try;; | |
8207 | esac | |
8208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8209 | (eval "$ac_compile") 2>conftest.er1 | |
8210 | ac_status=$? | |
8211 | grep -v '^ *+' conftest.er1 >conftest.err | |
8212 | rm -f conftest.er1 | |
8213 | cat conftest.err >&5 | |
8214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8215 | (exit $ac_status); } && { | |
8216 | test -z "$ac_c_werror_flag" || | |
8217 | test ! -s conftest.err | |
8218 | } && test -s conftest.$ac_objext; then | |
8219 | ac_cv_type_sa_family_t=yes | |
8220 | else | |
8221 | echo "$as_me: failed program was:" >&5 | |
8222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8223 | ||
8224 | ac_cv_type_sa_family_t=no | |
8225 | fi | |
8226 | ||
8227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8228 | fi | |
8229 | { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5 | |
8230 | echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; } | |
8231 | if test $ac_cv_type_sa_family_t = yes; then | |
8232 | : | |
8233 | else | |
8234 | ||
8235 | cat >>confdefs.h <<\_ACEOF | |
8236 | #define sa_family_t u_int16_t | |
8237 | _ACEOF | |
8238 | ||
8239 | fi | |
8240 | ||
8241 | ||
8242 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
8243 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } | |
8244 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
8245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8246 | else | |
8247 | cat >conftest.$ac_ext <<_ACEOF | |
8248 | /* confdefs.h. */ | |
8249 | _ACEOF | |
8250 | cat confdefs.h >>conftest.$ac_ext | |
8251 | cat >>conftest.$ac_ext <<_ACEOF | |
8252 | /* end confdefs.h. */ | |
8253 | $ac_includes_default | |
8254 | typedef uintptr_t ac__type_new_; | |
8255 | int | |
8256 | main () | |
8257 | { | |
8258 | if ((ac__type_new_ *) 0) | |
8259 | return 0; | |
8260 | if (sizeof (ac__type_new_)) | |
8261 | return 0; | |
8262 | ; | |
8263 | return 0; | |
8264 | } | |
8265 | _ACEOF | |
8266 | rm -f conftest.$ac_objext | |
8267 | if { (ac_try="$ac_compile" | |
8268 | case "(($ac_try" in | |
8269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8270 | *) ac_try_echo=$ac_try;; | |
8271 | esac | |
8272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8273 | (eval "$ac_compile") 2>conftest.er1 | |
8274 | ac_status=$? | |
8275 | grep -v '^ *+' conftest.er1 >conftest.err | |
8276 | rm -f conftest.er1 | |
8277 | cat conftest.err >&5 | |
8278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8279 | (exit $ac_status); } && { | |
8280 | test -z "$ac_c_werror_flag" || | |
8281 | test ! -s conftest.err | |
8282 | } && test -s conftest.$ac_objext; then | |
8283 | ac_cv_type_uintptr_t=yes | |
8284 | else | |
8285 | echo "$as_me: failed program was:" >&5 | |
8286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8287 | ||
8288 | ac_cv_type_uintptr_t=no | |
8289 | fi | |
8290 | ||
8291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8292 | fi | |
8293 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
8294 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } | |
8295 | if test $ac_cv_type_uintptr_t = yes; then | |
8296 | ||
8297 | cat >>confdefs.h <<_ACEOF | |
8298 | #define HAVE_UINTPTR_T 1 | |
8299 | _ACEOF | |
8300 | ||
8301 | ||
8302 | fi | |
8303 | ||
8304 | ||
8305 | ||
8306 | ||
8307 | ||
8308 | ||
8309 | ||
8310 | ||
8311 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
8312 | do | |
8313 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8314 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8315 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8316 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
8317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8318 | else | |
8319 | cat >conftest.$ac_ext <<_ACEOF | |
8320 | /* confdefs.h. */ | |
8321 | _ACEOF | |
8322 | cat confdefs.h >>conftest.$ac_ext | |
8323 | cat >>conftest.$ac_ext <<_ACEOF | |
8324 | /* end confdefs.h. */ | |
8325 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8326 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8327 | #define $ac_func innocuous_$ac_func | |
8328 | ||
8329 | /* System header to define __stub macros and hopefully few prototypes, | |
8330 | which can conflict with char $ac_func (); below. | |
8331 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8332 | <limits.h> exists even on freestanding compilers. */ | |
8333 | ||
8334 | #ifdef __STDC__ | |
8335 | # include <limits.h> | |
8336 | #else | |
8337 | # include <assert.h> | |
8338 | #endif | |
8339 | ||
8340 | #undef $ac_func | |
8341 | ||
8342 | /* Override any GCC internal prototype to avoid an error. | |
8343 | Use char because int might match the return type of a GCC | |
8344 | builtin and then its argument prototype would still apply. */ | |
8345 | #ifdef __cplusplus | |
8346 | extern "C" | |
8347 | #endif | |
8348 | char $ac_func (); | |
8349 | /* The GNU C library defines this for functions which it implements | |
8350 | to always fail with ENOSYS. Some functions are actually named | |
8351 | something starting with __ and the normal name is an alias. */ | |
8352 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8353 | choke me | |
8354 | #endif | |
8355 | ||
8356 | int | |
8357 | main () | |
8358 | { | |
8359 | return $ac_func (); | |
8360 | ; | |
8361 | return 0; | |
8362 | } | |
8363 | _ACEOF | |
8364 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8365 | if { (ac_try="$ac_link" | |
8366 | case "(($ac_try" in | |
8367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8368 | *) ac_try_echo=$ac_try;; | |
8369 | esac | |
8370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8371 | (eval "$ac_link") 2>conftest.er1 | |
8372 | ac_status=$? | |
8373 | grep -v '^ *+' conftest.er1 >conftest.err | |
8374 | rm -f conftest.er1 | |
8375 | cat conftest.err >&5 | |
8376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8377 | (exit $ac_status); } && { | |
8378 | test -z "$ac_c_werror_flag" || | |
8379 | test ! -s conftest.err | |
8380 | } && test -s conftest$ac_exeext && | |
8381 | $as_test_x conftest$ac_exeext; then | |
8382 | eval "$as_ac_var=yes" | |
8383 | else | |
8384 | echo "$as_me: failed program was:" >&5 | |
8385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8386 | ||
8387 | eval "$as_ac_var=no" | |
8388 | fi | |
8389 | ||
8390 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8391 | conftest$ac_exeext conftest.$ac_ext | |
8392 | fi | |
8393 | ac_res=`eval echo '${'$as_ac_var'}'` | |
8394 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8395 | echo "${ECHO_T}$ac_res" >&6; } | |
8396 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8397 | cat >>confdefs.h <<_ACEOF | |
8398 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8399 | _ACEOF | |
8400 | ||
8401 | fi | |
8402 | done | |
8403 | ||
8404 | ||
8405 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
8406 | # for constant arguments. Useless! | |
8407 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
8408 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
8409 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
8410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8411 | else | |
8412 | cat >conftest.$ac_ext <<_ACEOF | |
8413 | /* confdefs.h. */ | |
8414 | _ACEOF | |
8415 | cat confdefs.h >>conftest.$ac_ext | |
8416 | cat >>conftest.$ac_ext <<_ACEOF | |
8417 | /* end confdefs.h. */ | |
8418 | #include <alloca.h> | |
8419 | int | |
8420 | main () | |
8421 | { | |
8422 | char *p = (char *) alloca (2 * sizeof (int)); | |
8423 | if (p) return 0; | |
8424 | ; | |
8425 | return 0; | |
8426 | } | |
8427 | _ACEOF | |
8428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8429 | if { (ac_try="$ac_link" | |
8430 | case "(($ac_try" in | |
8431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8432 | *) ac_try_echo=$ac_try;; | |
8433 | esac | |
8434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8435 | (eval "$ac_link") 2>conftest.er1 | |
8436 | ac_status=$? | |
8437 | grep -v '^ *+' conftest.er1 >conftest.err | |
8438 | rm -f conftest.er1 | |
8439 | cat conftest.err >&5 | |
8440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8441 | (exit $ac_status); } && { | |
8442 | test -z "$ac_c_werror_flag" || | |
8443 | test ! -s conftest.err | |
8444 | } && test -s conftest$ac_exeext && | |
8445 | $as_test_x conftest$ac_exeext; then | |
8446 | ac_cv_working_alloca_h=yes | |
8447 | else | |
8448 | echo "$as_me: failed program was:" >&5 | |
8449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8450 | ||
8451 | ac_cv_working_alloca_h=no | |
8452 | fi | |
8453 | ||
8454 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8455 | conftest$ac_exeext conftest.$ac_ext | |
8456 | fi | |
8457 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
8458 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
8459 | if test $ac_cv_working_alloca_h = yes; then | |
8460 | ||
8461 | cat >>confdefs.h <<\_ACEOF | |
8462 | #define HAVE_ALLOCA_H 1 | |
8463 | _ACEOF | |
8464 | ||
8465 | fi | |
8466 | ||
8467 | { echo "$as_me:$LINENO: checking for alloca" >&5 | |
8468 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
8469 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
8470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8471 | else | |
8472 | cat >conftest.$ac_ext <<_ACEOF | |
8473 | /* confdefs.h. */ | |
8474 | _ACEOF | |
8475 | cat confdefs.h >>conftest.$ac_ext | |
8476 | cat >>conftest.$ac_ext <<_ACEOF | |
8477 | /* end confdefs.h. */ | |
8478 | #ifdef __GNUC__ | |
8479 | # define alloca __builtin_alloca | |
8480 | #else | |
8481 | # ifdef _MSC_VER | |
8482 | # include <malloc.h> | |
8483 | # define alloca _alloca | |
8484 | # else | |
8485 | # ifdef HAVE_ALLOCA_H | |
8486 | # include <alloca.h> | |
8487 | # else | |
8488 | # ifdef _AIX | |
8489 | #pragma alloca | |
8490 | # else | |
8491 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8492 | char *alloca (); | |
8493 | # endif | |
8494 | # endif | |
8495 | # endif | |
8496 | # endif | |
8497 | #endif | |
8498 | ||
8499 | int | |
8500 | main () | |
8501 | { | |
8502 | char *p = (char *) alloca (1); | |
8503 | if (p) return 0; | |
8504 | ; | |
8505 | return 0; | |
8506 | } | |
8507 | _ACEOF | |
8508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8509 | if { (ac_try="$ac_link" | |
8510 | case "(($ac_try" in | |
8511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8512 | *) ac_try_echo=$ac_try;; | |
8513 | esac | |
8514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8515 | (eval "$ac_link") 2>conftest.er1 | |
8516 | ac_status=$? | |
8517 | grep -v '^ *+' conftest.er1 >conftest.err | |
8518 | rm -f conftest.er1 | |
8519 | cat conftest.err >&5 | |
8520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8521 | (exit $ac_status); } && { | |
8522 | test -z "$ac_c_werror_flag" || | |
8523 | test ! -s conftest.err | |
8524 | } && test -s conftest$ac_exeext && | |
8525 | $as_test_x conftest$ac_exeext; then | |
8526 | ac_cv_func_alloca_works=yes | |
8527 | else | |
8528 | echo "$as_me: failed program was:" >&5 | |
8529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8530 | ||
8531 | ac_cv_func_alloca_works=no | |
8532 | fi | |
8533 | ||
8534 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8535 | conftest$ac_exeext conftest.$ac_ext | |
8536 | fi | |
8537 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
8538 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
8539 | ||
8540 | if test $ac_cv_func_alloca_works = yes; then | |
8541 | ||
8542 | cat >>confdefs.h <<\_ACEOF | |
8543 | #define HAVE_ALLOCA 1 | |
8544 | _ACEOF | |
8545 | ||
8546 | else | |
8547 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
8548 | # that cause trouble. Some versions do not even contain alloca or | |
8549 | # contain a buggy version. If you still want to use their alloca, | |
8550 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8551 | ||
8552 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
8553 | ||
8554 | cat >>confdefs.h <<\_ACEOF | |
8555 | #define C_ALLOCA 1 | |
8556 | _ACEOF | |
8557 | ||
8558 | ||
8559 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
8560 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
8561 | if test "${ac_cv_os_cray+set}" = set; then | |
8562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8563 | else | |
8564 | cat >conftest.$ac_ext <<_ACEOF | |
8565 | /* confdefs.h. */ | |
8566 | _ACEOF | |
8567 | cat confdefs.h >>conftest.$ac_ext | |
8568 | cat >>conftest.$ac_ext <<_ACEOF | |
8569 | /* end confdefs.h. */ | |
8570 | #if defined CRAY && ! defined CRAY2 | |
8571 | webecray | |
8572 | #else | |
8573 | wenotbecray | |
8574 | #endif | |
8575 | ||
8576 | _ACEOF | |
8577 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8578 | $EGREP "webecray" >/dev/null 2>&1; then | |
8579 | ac_cv_os_cray=yes | |
8580 | else | |
8581 | ac_cv_os_cray=no | |
8582 | fi | |
8583 | rm -f conftest* | |
8584 | ||
8585 | fi | |
8586 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | |
8587 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
8588 | if test $ac_cv_os_cray = yes; then | |
8589 | for ac_func in _getb67 GETB67 getb67; do | |
8590 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8591 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8592 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8593 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
8594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8595 | else | |
8596 | cat >conftest.$ac_ext <<_ACEOF | |
8597 | /* confdefs.h. */ | |
8598 | _ACEOF | |
8599 | cat confdefs.h >>conftest.$ac_ext | |
8600 | cat >>conftest.$ac_ext <<_ACEOF | |
8601 | /* end confdefs.h. */ | |
8602 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8603 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8604 | #define $ac_func innocuous_$ac_func | |
8605 | ||
8606 | /* System header to define __stub macros and hopefully few prototypes, | |
8607 | which can conflict with char $ac_func (); below. | |
8608 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8609 | <limits.h> exists even on freestanding compilers. */ | |
8610 | ||
8611 | #ifdef __STDC__ | |
8612 | # include <limits.h> | |
8613 | #else | |
8614 | # include <assert.h> | |
8615 | #endif | |
8616 | ||
8617 | #undef $ac_func | |
8618 | ||
8619 | /* Override any GCC internal prototype to avoid an error. | |
8620 | Use char because int might match the return type of a GCC | |
8621 | builtin and then its argument prototype would still apply. */ | |
8622 | #ifdef __cplusplus | |
8623 | extern "C" | |
8624 | #endif | |
8625 | char $ac_func (); | |
8626 | /* The GNU C library defines this for functions which it implements | |
8627 | to always fail with ENOSYS. Some functions are actually named | |
8628 | something starting with __ and the normal name is an alias. */ | |
8629 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8630 | choke me | |
8631 | #endif | |
8632 | ||
8633 | int | |
8634 | main () | |
8635 | { | |
8636 | return $ac_func (); | |
8637 | ; | |
8638 | return 0; | |
8639 | } | |
8640 | _ACEOF | |
8641 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8642 | if { (ac_try="$ac_link" | |
8643 | case "(($ac_try" in | |
8644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8645 | *) ac_try_echo=$ac_try;; | |
8646 | esac | |
8647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8648 | (eval "$ac_link") 2>conftest.er1 | |
8649 | ac_status=$? | |
8650 | grep -v '^ *+' conftest.er1 >conftest.err | |
8651 | rm -f conftest.er1 | |
8652 | cat conftest.err >&5 | |
8653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8654 | (exit $ac_status); } && { | |
8655 | test -z "$ac_c_werror_flag" || | |
8656 | test ! -s conftest.err | |
8657 | } && test -s conftest$ac_exeext && | |
8658 | $as_test_x conftest$ac_exeext; then | |
8659 | eval "$as_ac_var=yes" | |
8660 | else | |
8661 | echo "$as_me: failed program was:" >&5 | |
8662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8663 | ||
8664 | eval "$as_ac_var=no" | |
8665 | fi | |
8666 | ||
8667 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8668 | conftest$ac_exeext conftest.$ac_ext | |
8669 | fi | |
8670 | ac_res=`eval echo '${'$as_ac_var'}'` | |
8671 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8672 | echo "${ECHO_T}$ac_res" >&6; } | |
8673 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8674 | ||
8675 | cat >>confdefs.h <<_ACEOF | |
8676 | #define CRAY_STACKSEG_END $ac_func | |
8677 | _ACEOF | |
8678 | ||
8679 | break | |
8680 | fi | |
8681 | ||
8682 | done | |
8683 | fi | |
8684 | ||
8685 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
8686 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
8687 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
8688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8689 | else | |
8690 | if test "$cross_compiling" = yes; then | |
8691 | ac_cv_c_stack_direction=0 | |
8692 | else | |
8693 | cat >conftest.$ac_ext <<_ACEOF | |
8694 | /* confdefs.h. */ | |
8695 | _ACEOF | |
8696 | cat confdefs.h >>conftest.$ac_ext | |
8697 | cat >>conftest.$ac_ext <<_ACEOF | |
8698 | /* end confdefs.h. */ | |
8699 | $ac_includes_default | |
8700 | int | |
8701 | find_stack_direction () | |
8702 | { | |
8703 | static char *addr = 0; | |
8704 | auto char dummy; | |
8705 | if (addr == 0) | |
8706 | { | |
8707 | addr = &dummy; | |
8708 | return find_stack_direction (); | |
8709 | } | |
8710 | else | |
8711 | return (&dummy > addr) ? 1 : -1; | |
8712 | } | |
8713 | ||
8714 | int | |
8715 | main () | |
8716 | { | |
8717 | return find_stack_direction () < 0; | |
8718 | } | |
8719 | _ACEOF | |
8720 | rm -f conftest$ac_exeext | |
8721 | if { (ac_try="$ac_link" | |
8722 | case "(($ac_try" in | |
8723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8724 | *) ac_try_echo=$ac_try;; | |
8725 | esac | |
8726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8727 | (eval "$ac_link") 2>&5 | |
8728 | ac_status=$? | |
8729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8730 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8731 | { (case "(($ac_try" in | |
8732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8733 | *) ac_try_echo=$ac_try;; | |
8734 | esac | |
8735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8736 | (eval "$ac_try") 2>&5 | |
8737 | ac_status=$? | |
8738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8739 | (exit $ac_status); }; }; then | |
8740 | ac_cv_c_stack_direction=1 | |
8741 | else | |
8742 | echo "$as_me: program exited with status $ac_status" >&5 | |
8743 | echo "$as_me: failed program was:" >&5 | |
8744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8745 | ||
8746 | ( exit $ac_status ) | |
8747 | ac_cv_c_stack_direction=-1 | |
8748 | fi | |
8749 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8750 | fi | |
8751 | ||
8752 | ||
8753 | fi | |
8754 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
8755 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
8756 | ||
8757 | cat >>confdefs.h <<_ACEOF | |
8758 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
8759 | _ACEOF | |
8760 | ||
8761 | ||
8762 | fi | |
8763 | ||
8764 | ||
8765 | ||
8766 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 | |
8767 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } | |
8768 | if test "${ac_cv_func_nanosleep+set}" = set; then | |
8769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8770 | else | |
8771 | cat >conftest.$ac_ext <<_ACEOF | |
8772 | /* confdefs.h. */ | |
8773 | _ACEOF | |
8774 | cat confdefs.h >>conftest.$ac_ext | |
8775 | cat >>conftest.$ac_ext <<_ACEOF | |
8776 | /* end confdefs.h. */ | |
8777 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. | |
8778 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8779 | #define nanosleep innocuous_nanosleep | |
8780 | ||
8781 | /* System header to define __stub macros and hopefully few prototypes, | |
8782 | which can conflict with char nanosleep (); below. | |
8783 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8784 | <limits.h> exists even on freestanding compilers. */ | |
8785 | ||
8786 | #ifdef __STDC__ | |
8787 | # include <limits.h> | |
8788 | #else | |
8789 | # include <assert.h> | |
8790 | #endif | |
8791 | ||
8792 | #undef nanosleep | |
8793 | ||
8794 | /* Override any GCC internal prototype to avoid an error. | |
8795 | Use char because int might match the return type of a GCC | |
8796 | builtin and then its argument prototype would still apply. */ | |
8797 | #ifdef __cplusplus | |
8798 | extern "C" | |
8799 | #endif | |
8800 | char nanosleep (); | |
8801 | /* The GNU C library defines this for functions which it implements | |
8802 | to always fail with ENOSYS. Some functions are actually named | |
8803 | something starting with __ and the normal name is an alias. */ | |
8804 | #if defined __stub_nanosleep || defined __stub___nanosleep | |
8805 | choke me | |
8806 | #endif | |
8807 | ||
8808 | int | |
8809 | main () | |
8810 | { | |
8811 | return nanosleep (); | |
8812 | ; | |
8813 | return 0; | |
8814 | } | |
8815 | _ACEOF | |
8816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8817 | if { (ac_try="$ac_link" | |
8818 | case "(($ac_try" in | |
8819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8820 | *) ac_try_echo=$ac_try;; | |
8821 | esac | |
8822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8823 | (eval "$ac_link") 2>conftest.er1 | |
8824 | ac_status=$? | |
8825 | grep -v '^ *+' conftest.er1 >conftest.err | |
8826 | rm -f conftest.er1 | |
8827 | cat conftest.err >&5 | |
8828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8829 | (exit $ac_status); } && { | |
8830 | test -z "$ac_c_werror_flag" || | |
8831 | test ! -s conftest.err | |
8832 | } && test -s conftest$ac_exeext && | |
8833 | $as_test_x conftest$ac_exeext; then | |
8834 | ac_cv_func_nanosleep=yes | |
8835 | else | |
8836 | echo "$as_me: failed program was:" >&5 | |
8837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8838 | ||
8839 | ac_cv_func_nanosleep=no | |
8840 | fi | |
8841 | ||
8842 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8843 | conftest$ac_exeext conftest.$ac_ext | |
8844 | fi | |
8845 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 | |
8846 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } | |
8847 | if test $ac_cv_func_nanosleep = yes; then | |
8848 | : | |
8849 | else | |
8850 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 | |
8851 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } | |
8852 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then | |
8853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8854 | else | |
8855 | ac_check_lib_save_LIBS=$LIBS | |
8856 | LIBS="-lrt $LIBS" | |
8857 | cat >conftest.$ac_ext <<_ACEOF | |
8858 | /* confdefs.h. */ | |
8859 | _ACEOF | |
8860 | cat confdefs.h >>conftest.$ac_ext | |
8861 | cat >>conftest.$ac_ext <<_ACEOF | |
8862 | /* end confdefs.h. */ | |
8863 | ||
8864 | /* Override any GCC internal prototype to avoid an error. | |
8865 | Use char because int might match the return type of a GCC | |
8866 | builtin and then its argument prototype would still apply. */ | |
8867 | #ifdef __cplusplus | |
8868 | extern "C" | |
8869 | #endif | |
8870 | char nanosleep (); | |
8871 | int | |
8872 | main () | |
8873 | { | |
8874 | return nanosleep (); | |
8875 | ; | |
8876 | return 0; | |
8877 | } | |
8878 | _ACEOF | |
8879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8880 | if { (ac_try="$ac_link" | |
8881 | case "(($ac_try" in | |
8882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8883 | *) ac_try_echo=$ac_try;; | |
8884 | esac | |
8885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8886 | (eval "$ac_link") 2>conftest.er1 | |
8887 | ac_status=$? | |
8888 | grep -v '^ *+' conftest.er1 >conftest.err | |
8889 | rm -f conftest.er1 | |
8890 | cat conftest.err >&5 | |
8891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8892 | (exit $ac_status); } && { | |
8893 | test -z "$ac_c_werror_flag" || | |
8894 | test ! -s conftest.err | |
8895 | } && test -s conftest$ac_exeext && | |
8896 | $as_test_x conftest$ac_exeext; then | |
8897 | ac_cv_lib_rt_nanosleep=yes | |
8898 | else | |
8899 | echo "$as_me: failed program was:" >&5 | |
8900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8901 | ||
8902 | ac_cv_lib_rt_nanosleep=no | |
8903 | fi | |
8904 | ||
8905 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8906 | conftest$ac_exeext conftest.$ac_ext | |
8907 | LIBS=$ac_check_lib_save_LIBS | |
8908 | fi | |
8909 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 | |
8910 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } | |
8911 | if test $ac_cv_lib_rt_nanosleep = yes; then | |
8912 | LIBS="${LIBS} -lrt" | |
8913 | else | |
8914 | { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
8915 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; } | |
8916 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
8917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8918 | else | |
8919 | ac_check_lib_save_LIBS=$LIBS | |
8920 | LIBS="-lposix4 $LIBS" | |
8921 | cat >conftest.$ac_ext <<_ACEOF | |
8922 | /* confdefs.h. */ | |
8923 | _ACEOF | |
8924 | cat confdefs.h >>conftest.$ac_ext | |
8925 | cat >>conftest.$ac_ext <<_ACEOF | |
8926 | /* end confdefs.h. */ | |
8927 | ||
8928 | /* Override any GCC internal prototype to avoid an error. | |
8929 | Use char because int might match the return type of a GCC | |
8930 | builtin and then its argument prototype would still apply. */ | |
8931 | #ifdef __cplusplus | |
8932 | extern "C" | |
8933 | #endif | |
8934 | char nanosleep (); | |
8935 | int | |
8936 | main () | |
8937 | { | |
8938 | return nanosleep (); | |
8939 | ; | |
8940 | return 0; | |
8941 | } | |
8942 | _ACEOF | |
8943 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8944 | if { (ac_try="$ac_link" | |
8945 | case "(($ac_try" in | |
8946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8947 | *) ac_try_echo=$ac_try;; | |
8948 | esac | |
8949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8950 | (eval "$ac_link") 2>conftest.er1 | |
8951 | ac_status=$? | |
8952 | grep -v '^ *+' conftest.er1 >conftest.err | |
8953 | rm -f conftest.er1 | |
8954 | cat conftest.err >&5 | |
8955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8956 | (exit $ac_status); } && { | |
8957 | test -z "$ac_c_werror_flag" || | |
8958 | test ! -s conftest.err | |
8959 | } && test -s conftest$ac_exeext && | |
8960 | $as_test_x conftest$ac_exeext; then | |
8961 | ac_cv_lib_posix4_nanosleep=yes | |
8962 | else | |
8963 | echo "$as_me: failed program was:" >&5 | |
8964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8965 | ||
8966 | ac_cv_lib_posix4_nanosleep=no | |
8967 | fi | |
8968 | ||
8969 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8970 | conftest$ac_exeext conftest.$ac_ext | |
8971 | LIBS=$ac_check_lib_save_LIBS | |
8972 | fi | |
8973 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
8974 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; } | |
8975 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
8976 | LIBS="${LIBS} -lposix4" | |
8977 | ||
8978 | fi | |
8979 | ||
8980 | fi | |
8981 | ||
8982 | fi | |
8983 | ||
8984 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
8985 | then | |
8986 | { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5 | |
8987 | echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; } | |
8988 | else | |
8989 | ||
8990 | cat >>confdefs.h <<\_ACEOF | |
8991 | #define HAVE_NANOSLEEP 1 | |
8992 | _ACEOF | |
8993 | ||
8994 | fi | |
8995 | ||
8996 | { echo "$as_me:$LINENO: checking for OpenSSL" >&5 | |
8997 | echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; } | |
8998 | # Check whether --enable-openssl was given. | |
8999 | if test "${enable_openssl+set}" = set; then | |
9000 | enableval=$enable_openssl; cf_enable_openssl=$enableval | |
9001 | else | |
9002 | cf_enable_openssl="auto" | |
9003 | fi | |
9004 | ||
9005 | ||
9006 | if test "$cf_enable_openssl" != "no" ; then | |
9007 | cf_openssl_basedir="" | |
9008 | if test "$cf_enable_openssl" != "auto" && | |
9009 | test "$cf_enable_openssl" != "yes" ; then | |
9010 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
9011 | else | |
9012 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
9013 | /usr/local/openssl ; do | |
9014 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
9015 | cf_openssl_basedir="${dirs}" | |
9016 | break | |
9017 | fi | |
9018 | done | |
9019 | unset dirs | |
9020 | fi | |
9021 | if test ! -z "$cf_openssl_basedir"; then | |
9022 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
9023 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
9024 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
9025 | else | |
9026 | cf_openssl_basedir="" | |
9027 | fi | |
9028 | else | |
9029 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
9030 | cf_openssl_basedir="/usr" | |
9031 | fi | |
9032 | fi | |
9033 | ||
9034 | if test ! -z "$cf_openssl_basedir"; then | |
9035 | { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5 | |
9036 | echo "${ECHO_T}$cf_openssl_basedir" >&6; } | |
9037 | cf_enable_openssl="yes" | |
9038 | else | |
9039 | { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5 | |
9040 | echo "${ECHO_T}not found. Specify a correct path?" >&6; } | |
9041 | cf_enable_openssl="no" | |
9042 | fi | |
9043 | unset cf_openssl_basedir | |
9044 | else | |
9045 | { echo "$as_me:$LINENO: result: disabled" >&5 | |
9046 | echo "${ECHO_T}disabled" >&6; } | |
9047 | fi | |
9048 | ||
9049 | save_CPPFLAGS="$CPPFLAGS" | |
9050 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
9051 | save_LIBS="$LIBS" | |
9052 | LIBS="$LIBS $SSL_LIBS" | |
9053 | if test "$cf_enable_openssl" != no; then | |
9054 | { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5 | |
9055 | echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; } | |
9056 | if test "$cross_compiling" = yes; then | |
9057 | cf_openssl_version_ok=no | |
9058 | else | |
9059 | cat >conftest.$ac_ext <<_ACEOF | |
9060 | /* confdefs.h. */ | |
9061 | _ACEOF | |
9062 | cat confdefs.h >>conftest.$ac_ext | |
9063 | cat >>conftest.$ac_ext <<_ACEOF | |
9064 | /* end confdefs.h. */ | |
9065 | #include <openssl/opensslv.h> | |
9066 | #include <stdlib.h> | |
9067 | int | |
9068 | main () | |
9069 | { | |
9070 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
9071 | exit(0); else exit(1); | |
9072 | ; | |
9073 | return 0; | |
9074 | } | |
9075 | _ACEOF | |
9076 | rm -f conftest$ac_exeext | |
9077 | if { (ac_try="$ac_link" | |
9078 | case "(($ac_try" in | |
9079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9080 | *) ac_try_echo=$ac_try;; | |
9081 | esac | |
9082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9083 | (eval "$ac_link") 2>&5 | |
9084 | ac_status=$? | |
9085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9086 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9087 | { (case "(($ac_try" in | |
9088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9089 | *) ac_try_echo=$ac_try;; | |
9090 | esac | |
9091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9092 | (eval "$ac_try") 2>&5 | |
9093 | ac_status=$? | |
9094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9095 | (exit $ac_status); }; }; then | |
9096 | cf_openssl_version_ok=yes | |
9097 | else | |
9098 | echo "$as_me: program exited with status $ac_status" >&5 | |
9099 | echo "$as_me: failed program was:" >&5 | |
9100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9101 | ||
9102 | ( exit $ac_status ) | |
9103 | cf_openssl_version_ok=no | |
9104 | fi | |
9105 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
9106 | fi | |
9107 | ||
9108 | ||
9109 | ||
9110 | if test "$cf_openssl_version_ok" = yes; then | |
9111 | { echo "$as_me:$LINENO: result: found" >&5 | |
9112 | echo "${ECHO_T}found" >&6; } | |
9113 | ||
9114 | ENCSPEED=encspeed | |
9115 | ||
9116 | ||
9117 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
9118 | ||
9119 | { echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5 | |
9120 | echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; } | |
9121 | if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then | |
9122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9123 | else | |
9124 | ac_check_lib_save_LIBS=$LIBS | |
9125 | LIBS="-lcrypto $LIBS" | |
9126 | cat >conftest.$ac_ext <<_ACEOF | |
9127 | /* confdefs.h. */ | |
9128 | _ACEOF | |
9129 | cat confdefs.h >>conftest.$ac_ext | |
9130 | cat >>conftest.$ac_ext <<_ACEOF | |
9131 | /* end confdefs.h. */ | |
9132 | ||
9133 | /* Override any GCC internal prototype to avoid an error. | |
9134 | Use char because int might match the return type of a GCC | |
9135 | builtin and then its argument prototype would still apply. */ | |
9136 | #ifdef __cplusplus | |
9137 | extern "C" | |
9138 | #endif | |
9139 | char RSA_free (); | |
9140 | int | |
9141 | main () | |
9142 | { | |
9143 | return RSA_free (); | |
9144 | ; | |
9145 | return 0; | |
9146 | } | |
9147 | _ACEOF | |
9148 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9149 | if { (ac_try="$ac_link" | |
9150 | case "(($ac_try" in | |
9151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9152 | *) ac_try_echo=$ac_try;; | |
9153 | esac | |
9154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9155 | (eval "$ac_link") 2>conftest.er1 | |
9156 | ac_status=$? | |
9157 | grep -v '^ *+' conftest.er1 >conftest.err | |
9158 | rm -f conftest.er1 | |
9159 | cat conftest.err >&5 | |
9160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9161 | (exit $ac_status); } && { | |
9162 | test -z "$ac_c_werror_flag" || | |
9163 | test ! -s conftest.err | |
9164 | } && test -s conftest$ac_exeext && | |
9165 | $as_test_x conftest$ac_exeext; then | |
9166 | ac_cv_lib_crypto_RSA_free=yes | |
9167 | else | |
9168 | echo "$as_me: failed program was:" >&5 | |
9169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9170 | ||
9171 | ac_cv_lib_crypto_RSA_free=no | |
9172 | fi | |
9173 | ||
9174 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9175 | conftest$ac_exeext conftest.$ac_ext | |
9176 | LIBS=$ac_check_lib_save_LIBS | |
9177 | fi | |
9178 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5 | |
9179 | echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; } | |
9180 | if test $ac_cv_lib_crypto_RSA_free = yes; then | |
9181 | cat >>confdefs.h <<_ACEOF | |
9182 | #define HAVE_LIBCRYPTO 1 | |
9183 | _ACEOF | |
9184 | ||
9185 | LIBS="-lcrypto $LIBS" | |
9186 | ||
9187 | fi | |
9188 | ||
9189 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
9190 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
9191 | else | |
9192 | { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5 | |
9193 | echo "${ECHO_T}no - OpenSSL support disabled" >&6; } | |
9194 | fi | |
9195 | fi | |
9196 | ||
9197 | CPPFLAGS="$save_CPPFLAGS" | |
9198 | LIBS="$save_LIBS" | |
9199 | ||
9200 | ||
9201 | ||
9202 | ||
9203 | ||
9204 | # Check whether --with-zlib-path was given. | |
9205 | if test "${with_zlib_path+set}" = set; then | |
9206 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" | |
9207 | fi | |
9208 | ||
9209 | ||
9210 | # Check whether --enable-zlib was given. | |
9211 | if test "${enable_zlib+set}" = set; then | |
9212 | enableval=$enable_zlib; zlib=$enableval | |
9213 | else | |
9214 | zlib=yes | |
9215 | fi | |
9216 | ||
9217 | ||
9218 | if test "$zlib" = yes; then | |
9219 | ||
9220 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
9221 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
9222 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
9223 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
9224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9225 | fi | |
9226 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
9227 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
9228 | else | |
9229 | # Is the header compilable? | |
9230 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
9231 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | |
9232 | cat >conftest.$ac_ext <<_ACEOF | |
9233 | /* confdefs.h. */ | |
9234 | _ACEOF | |
9235 | cat confdefs.h >>conftest.$ac_ext | |
9236 | cat >>conftest.$ac_ext <<_ACEOF | |
9237 | /* end confdefs.h. */ | |
9238 | $ac_includes_default | |
9239 | #include <zlib.h> | |
9240 | _ACEOF | |
9241 | rm -f conftest.$ac_objext | |
9242 | if { (ac_try="$ac_compile" | |
9243 | case "(($ac_try" in | |
9244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9245 | *) ac_try_echo=$ac_try;; | |
9246 | esac | |
9247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9248 | (eval "$ac_compile") 2>conftest.er1 | |
9249 | ac_status=$? | |
9250 | grep -v '^ *+' conftest.er1 >conftest.err | |
9251 | rm -f conftest.er1 | |
9252 | cat conftest.err >&5 | |
9253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9254 | (exit $ac_status); } && { | |
9255 | test -z "$ac_c_werror_flag" || | |
9256 | test ! -s conftest.err | |
9257 | } && test -s conftest.$ac_objext; then | |
9258 | ac_header_compiler=yes | |
9259 | else | |
9260 | echo "$as_me: failed program was:" >&5 | |
9261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9262 | ||
9263 | ac_header_compiler=no | |
9264 | fi | |
9265 | ||
9266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9267 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9268 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
9269 | ||
9270 | # Is the header present? | |
9271 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
9272 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | |
9273 | cat >conftest.$ac_ext <<_ACEOF | |
9274 | /* confdefs.h. */ | |
9275 | _ACEOF | |
9276 | cat confdefs.h >>conftest.$ac_ext | |
9277 | cat >>conftest.$ac_ext <<_ACEOF | |
9278 | /* end confdefs.h. */ | |
9279 | #include <zlib.h> | |
9280 | _ACEOF | |
9281 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9282 | case "(($ac_try" in | |
9283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9284 | *) ac_try_echo=$ac_try;; | |
9285 | esac | |
9286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9287 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9288 | ac_status=$? | |
9289 | grep -v '^ *+' conftest.er1 >conftest.err | |
9290 | rm -f conftest.er1 | |
9291 | cat conftest.err >&5 | |
9292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9293 | (exit $ac_status); } >/dev/null && { | |
9294 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9295 | test ! -s conftest.err | |
9296 | }; then | |
9297 | ac_header_preproc=yes | |
9298 | else | |
9299 | echo "$as_me: failed program was:" >&5 | |
9300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9301 | ||
9302 | ac_header_preproc=no | |
9303 | fi | |
9304 | ||
9305 | rm -f conftest.err conftest.$ac_ext | |
9306 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9307 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
9308 | ||
9309 | # So? What about this header? | |
9310 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9311 | yes:no: ) | |
9312 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9313 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9314 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | |
9315 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
9316 | ac_header_preproc=yes | |
9317 | ;; | |
9318 | no:yes:* ) | |
9319 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
9320 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
9321 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
9322 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
9323 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
9324 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
9325 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9326 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
9327 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
9328 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
9329 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | |
9330 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
9331 | ||
9332 | ;; | |
9333 | esac | |
9334 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
9335 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
9336 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
9337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9338 | else | |
9339 | ac_cv_header_zlib_h=$ac_header_preproc | |
9340 | fi | |
9341 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
9342 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
9343 | ||
9344 | fi | |
9345 | if test $ac_cv_header_zlib_h = yes; then | |
9346 | ||
9347 | { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5 | |
9348 | echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; } | |
9349 | if test "${ac_cv_lib_z_zlibVersion+set}" = set; then | |
9350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9351 | else | |
9352 | ac_check_lib_save_LIBS=$LIBS | |
9353 | LIBS="-lz $LIBS" | |
9354 | cat >conftest.$ac_ext <<_ACEOF | |
9355 | /* confdefs.h. */ | |
9356 | _ACEOF | |
9357 | cat confdefs.h >>conftest.$ac_ext | |
9358 | cat >>conftest.$ac_ext <<_ACEOF | |
9359 | /* end confdefs.h. */ | |
9360 | ||
9361 | /* Override any GCC internal prototype to avoid an error. | |
9362 | Use char because int might match the return type of a GCC | |
9363 | builtin and then its argument prototype would still apply. */ | |
9364 | #ifdef __cplusplus | |
9365 | extern "C" | |
9366 | #endif | |
9367 | char zlibVersion (); | |
9368 | int | |
9369 | main () | |
9370 | { | |
9371 | return zlibVersion (); | |
9372 | ; | |
9373 | return 0; | |
9374 | } | |
9375 | _ACEOF | |
9376 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9377 | if { (ac_try="$ac_link" | |
9378 | case "(($ac_try" in | |
9379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9380 | *) ac_try_echo=$ac_try;; | |
9381 | esac | |
9382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9383 | (eval "$ac_link") 2>conftest.er1 | |
9384 | ac_status=$? | |
9385 | grep -v '^ *+' conftest.er1 >conftest.err | |
9386 | rm -f conftest.er1 | |
9387 | cat conftest.err >&5 | |
9388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9389 | (exit $ac_status); } && { | |
9390 | test -z "$ac_c_werror_flag" || | |
9391 | test ! -s conftest.err | |
9392 | } && test -s conftest$ac_exeext && | |
9393 | $as_test_x conftest$ac_exeext; then | |
9394 | ac_cv_lib_z_zlibVersion=yes | |
9395 | else | |
9396 | echo "$as_me: failed program was:" >&5 | |
9397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9398 | ||
9399 | ac_cv_lib_z_zlibVersion=no | |
9400 | fi | |
9401 | ||
9402 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9403 | conftest$ac_exeext conftest.$ac_ext | |
9404 | LIBS=$ac_check_lib_save_LIBS | |
9405 | fi | |
9406 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5 | |
9407 | echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; } | |
9408 | if test $ac_cv_lib_z_zlibVersion = yes; then | |
9409 | ||
9410 | ZLIB_LD=-lz | |
9411 | ||
9412 | ||
9413 | cat >>confdefs.h <<\_ACEOF | |
9414 | #define HAVE_LIBZ 1 | |
9415 | _ACEOF | |
9416 | ||
9417 | ||
9418 | else | |
9419 | zlib=no | |
9420 | fi | |
9421 | ||
9422 | ||
9423 | else | |
9424 | zlib=no | |
9425 | fi | |
9426 | ||
9427 | ||
9428 | ||
9429 | fi | |
9430 | ||
9431 | ||
9432 | # Check whether --enable-ports was given. | |
9433 | if test "${enable_ports+set}" = set; then | |
9434 | enableval=$enable_ports; if test $enableval = yes; then | |
9435 | SELECT_TYPE_EXPLICIT="ports" | |
9436 | else | |
9437 | use_ports=no | |
9438 | fi | |
9439 | ||
9440 | fi | |
9441 | ||
9442 | ||
9443 | # Check whether --enable-poll was given. | |
9444 | if test "${enable_poll+set}" = set; then | |
9445 | enableval=$enable_poll; if test $enableval = yes; then | |
9446 | SELECT_TYPE_EXPLICIT="poll" | |
9447 | else | |
9448 | use_poll=no | |
9449 | fi | |
9450 | ||
9451 | fi | |
9452 | ||
9453 | ||
9454 | # Check whether --enable-select was given. | |
9455 | if test "${enable_select+set}" = set; then | |
9456 | enableval=$enable_select; if test $enableval = yes; then | |
9457 | SELECT_TYPE_EXPLICIT="select" | |
9458 | else | |
9459 | use_select=no | |
9460 | fi | |
9461 | ||
9462 | fi | |
9463 | ||
9464 | ||
9465 | # Check whether --enable-kqueue was given. | |
9466 | if test "${enable_kqueue+set}" = set; then | |
9467 | enableval=$enable_kqueue; if test $enableval = yes; then | |
9468 | SELECT_TYPE_EXPLICIT="kqueue" | |
9469 | else | |
9470 | use_kqueue=no | |
9471 | fi | |
9472 | ||
9473 | fi | |
9474 | ||
9475 | ||
9476 | # Check whether --enable-epoll was given. | |
9477 | if test "${enable_epoll+set}" = set; then | |
9478 | enableval=$enable_epoll; if test $enableval = yes; then | |
9479 | SELECT_TYPE_EXPLICIT="epoll" | |
9480 | ||
9481 | for ac_func in epoll_ctl | |
9482 | do | |
9483 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9484 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9485 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
9486 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
9487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9488 | else | |
9489 | cat >conftest.$ac_ext <<_ACEOF | |
9490 | /* confdefs.h. */ | |
9491 | _ACEOF | |
9492 | cat confdefs.h >>conftest.$ac_ext | |
9493 | cat >>conftest.$ac_ext <<_ACEOF | |
9494 | /* end confdefs.h. */ | |
9495 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9496 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9497 | #define $ac_func innocuous_$ac_func | |
9498 | ||
9499 | /* System header to define __stub macros and hopefully few prototypes, | |
9500 | which can conflict with char $ac_func (); below. | |
9501 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9502 | <limits.h> exists even on freestanding compilers. */ | |
9503 | ||
9504 | #ifdef __STDC__ | |
9505 | # include <limits.h> | |
9506 | #else | |
9507 | # include <assert.h> | |
9508 | #endif | |
9509 | ||
9510 | #undef $ac_func | |
9511 | ||
9512 | /* Override any GCC internal prototype to avoid an error. | |
9513 | Use char because int might match the return type of a GCC | |
9514 | builtin and then its argument prototype would still apply. */ | |
9515 | #ifdef __cplusplus | |
9516 | extern "C" | |
9517 | #endif | |
9518 | char $ac_func (); | |
9519 | /* The GNU C library defines this for functions which it implements | |
9520 | to always fail with ENOSYS. Some functions are actually named | |
9521 | something starting with __ and the normal name is an alias. */ | |
9522 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
9523 | choke me | |
9524 | #endif | |
9525 | ||
9526 | int | |
9527 | main () | |
9528 | { | |
9529 | return $ac_func (); | |
9530 | ; | |
9531 | return 0; | |
9532 | } | |
9533 | _ACEOF | |
9534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9535 | if { (ac_try="$ac_link" | |
9536 | case "(($ac_try" in | |
9537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9538 | *) ac_try_echo=$ac_try;; | |
9539 | esac | |
9540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9541 | (eval "$ac_link") 2>conftest.er1 | |
9542 | ac_status=$? | |
9543 | grep -v '^ *+' conftest.er1 >conftest.err | |
9544 | rm -f conftest.er1 | |
9545 | cat conftest.err >&5 | |
9546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9547 | (exit $ac_status); } && { | |
9548 | test -z "$ac_c_werror_flag" || | |
9549 | test ! -s conftest.err | |
9550 | } && test -s conftest$ac_exeext && | |
9551 | $as_test_x conftest$ac_exeext; then | |
9552 | eval "$as_ac_var=yes" | |
9553 | else | |
9554 | echo "$as_me: failed program was:" >&5 | |
9555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9556 | ||
9557 | eval "$as_ac_var=no" | |
9558 | fi | |
9559 | ||
9560 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9561 | conftest$ac_exeext conftest.$ac_ext | |
9562 | fi | |
9563 | ac_res=`eval echo '${'$as_ac_var'}'` | |
9564 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9565 | echo "${ECHO_T}$ac_res" >&6; } | |
9566 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9567 | cat >>confdefs.h <<_ACEOF | |
9568 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9569 | _ACEOF | |
9570 | haveepoll=yes | |
9571 | else | |
9572 | haveepoll=no | |
9573 | fi | |
9574 | done | |
9575 | ||
9576 | else | |
9577 | use_epoll=no | |
9578 | fi | |
9579 | ||
9580 | fi | |
9581 | ||
9582 | ||
9583 | ||
9584 | { echo "$as_me:$LINENO: checking whether to modify confdir" >&5 | |
9585 | echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; } | |
9586 | ||
9587 | # Check whether --with-confdir was given. | |
9588 | if test "${with_confdir+set}" = set; then | |
9589 | withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'` | |
9590 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9591 | echo "${ECHO_T}yes" >&6; } | |
9592 | ||
9593 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9594 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9595 | ac_define_dir=`eval echo $confdir` | |
9596 | ac_define_dir=`eval echo $ac_define_dir` | |
9597 | ETC_DIR="$ac_define_dir" | |
9598 | ||
9599 | ||
9600 | cat >>confdefs.h <<_ACEOF | |
9601 | #define ETC_DIR "$ac_define_dir" | |
9602 | _ACEOF | |
9603 | ||
9604 | ||
9605 | ||
9606 | ||
9607 | confdir=`( | |
9608 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9609 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9610 | eval echo \""$confdir"\" | |
9611 | )` | |
9612 | ||
9613 | ||
9614 | else | |
9615 | confdir='${prefix}/etc' | |
9616 | { echo "$as_me:$LINENO: result: no" >&5 | |
9617 | echo "${ECHO_T}no" >&6; } | |
9618 | ||
9619 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9620 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9621 | ac_define_dir=`eval echo $confdir` | |
9622 | ac_define_dir=`eval echo $ac_define_dir` | |
9623 | ETC_DIR="$ac_define_dir" | |
9624 | ||
9625 | ||
9626 | cat >>confdefs.h <<_ACEOF | |
9627 | #define ETC_DIR "$ac_define_dir" | |
9628 | _ACEOF | |
9629 | ||
9630 | ||
9631 | ||
9632 | ||
9633 | confdir=`( | |
9634 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9635 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9636 | eval echo \""$confdir"\" | |
9637 | )` | |
9638 | ||
9639 | ||
9640 | ||
9641 | fi | |
9642 | ||
9643 | ||
9644 | ||
9645 | { echo "$as_me:$LINENO: checking whether to modify logdir" >&5 | |
9646 | echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; } | |
9647 | ||
9648 | # Check whether --with-logdir was given. | |
9649 | if test "${with_logdir+set}" = set; then | |
9650 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` | |
9651 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9652 | echo "${ECHO_T}yes" >&6; } | |
9653 | ||
9654 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9655 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9656 | ac_define_dir=`eval echo $logdir` | |
9657 | ac_define_dir=`eval echo $ac_define_dir` | |
9658 | LOG_DIR="$ac_define_dir" | |
9659 | ||
9660 | ||
9661 | cat >>confdefs.h <<_ACEOF | |
9662 | #define LOG_DIR "$ac_define_dir" | |
9663 | _ACEOF | |
9664 | ||
9665 | ||
9666 | ||
9667 | ||
9668 | logdir=`( | |
9669 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9670 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9671 | eval echo \""$logdir"\" | |
9672 | )` | |
9673 | ||
9674 | ||
9675 | else | |
9676 | logdir='${prefix}/logs' | |
9677 | { echo "$as_me:$LINENO: result: no" >&5 | |
9678 | echo "${ECHO_T}no" >&6; } | |
9679 | ||
9680 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9681 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9682 | ac_define_dir=`eval echo $logdir` | |
9683 | ac_define_dir=`eval echo $ac_define_dir` | |
9684 | LOG_DIR="$ac_define_dir" | |
9685 | ||
9686 | ||
9687 | cat >>confdefs.h <<_ACEOF | |
9688 | #define LOG_DIR "$ac_define_dir" | |
9689 | _ACEOF | |
9690 | ||
9691 | ||
9692 | ||
9693 | ||
9694 | logdir=`( | |
9695 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9696 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9697 | eval echo \""$logdir"\" | |
9698 | )` | |
9699 | ||
9700 | ||
9701 | ||
9702 | fi | |
9703 | ||
9704 | ||
9705 | ||
9706 | { echo "$as_me:$LINENO: checking whether to modify helpdir" >&5 | |
9707 | echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; } | |
9708 | ||
9709 | # Check whether --with-helpdir was given. | |
9710 | if test "${with_helpdir+set}" = set; then | |
9711 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` | |
9712 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9713 | echo "${ECHO_T}yes" >&6; } | |
9714 | ||
9715 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9716 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9717 | ac_define_dir=`eval echo $helpdir` | |
9718 | ac_define_dir=`eval echo $ac_define_dir` | |
9719 | HELP_DIR="$ac_define_dir" | |
9720 | ||
9721 | ||
9722 | cat >>confdefs.h <<_ACEOF | |
9723 | #define HELP_DIR "$ac_define_dir" | |
9724 | _ACEOF | |
9725 | ||
9726 | ||
9727 | ||
9728 | ||
9729 | helpdir=`( | |
9730 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9731 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9732 | eval echo \""$helpdir"\" | |
9733 | )` | |
9734 | ||
9735 | ||
9736 | else | |
9737 | helpdir='${prefix}/help' | |
9738 | { echo "$as_me:$LINENO: result: no" >&5 | |
9739 | echo "${ECHO_T}no" >&6; } | |
9740 | ||
9741 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9742 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9743 | ac_define_dir=`eval echo $helpdir` | |
9744 | ac_define_dir=`eval echo $ac_define_dir` | |
9745 | HELP_DIR="$ac_define_dir" | |
9746 | ||
9747 | ||
9748 | cat >>confdefs.h <<_ACEOF | |
9749 | #define HELP_DIR "$ac_define_dir" | |
9750 | _ACEOF | |
9751 | ||
9752 | ||
9753 | ||
9754 | ||
9755 | helpdir=`( | |
9756 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9757 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9758 | eval echo \""$helpdir"\" | |
9759 | )` | |
9760 | ||
9761 | ||
9762 | ||
9763 | fi | |
9764 | ||
9765 | ||
9766 | ||
9767 | { echo "$as_me:$LINENO: checking whether to modify moduledir" >&5 | |
9768 | echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; } | |
9769 | ||
9770 | # Check whether --with-moduledir was given. | |
9771 | if test "${with_moduledir+set}" = set; then | |
9772 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` | |
9773 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9774 | echo "${ECHO_T}yes" >&6; } | |
9775 | ||
9776 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9777 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9778 | ac_define_dir=`eval echo $moduledir` | |
9779 | ac_define_dir=`eval echo $ac_define_dir` | |
9780 | MODULE_DIR="$ac_define_dir" | |
9781 | ||
9782 | ||
9783 | cat >>confdefs.h <<_ACEOF | |
9784 | #define MODULE_DIR "$ac_define_dir" | |
9785 | _ACEOF | |
9786 | ||
9787 | ||
9788 | ||
9789 | ||
9790 | moduledir=`( | |
9791 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9792 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9793 | eval echo \""$moduledir"\" | |
9794 | )` | |
9795 | ||
9796 | ||
9797 | else | |
9798 | moduledir='${prefix}/modules' | |
9799 | { echo "$as_me:$LINENO: result: no" >&5 | |
9800 | echo "${ECHO_T}no" >&6; } | |
9801 | ||
9802 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9803 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9804 | ac_define_dir=`eval echo $moduledir` | |
9805 | ac_define_dir=`eval echo $ac_define_dir` | |
9806 | MODULE_DIR="$ac_define_dir" | |
9807 | ||
9808 | ||
9809 | cat >>confdefs.h <<_ACEOF | |
9810 | #define MODULE_DIR "$ac_define_dir" | |
9811 | _ACEOF | |
9812 | ||
9813 | ||
9814 | ||
9815 | ||
9816 | moduledir=`( | |
9817 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9818 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9819 | eval echo \""$moduledir"\" | |
9820 | )` | |
9821 | ||
9822 | ||
9823 | ||
9824 | fi | |
9825 | ||
9826 | ||
9827 | if test ! -z "$SELECT_TYPE_EXPLICIT"; then | |
9828 | SELECT_TYPE="$SELECT_TYPE_EXPLICIT"; | |
9829 | echo "Forcing $SELECT_TYPE to be enabled" | |
9830 | else | |
9831 | ||
9832 | if test ! "x$use_ports" = "xno"; then | |
9833 | ||
9834 | for ac_func in port_getn | |
9835 | do | |
9836 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9837 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9838 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
9839 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
9840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9841 | else | |
9842 | cat >conftest.$ac_ext <<_ACEOF | |
9843 | /* confdefs.h. */ | |
9844 | _ACEOF | |
9845 | cat confdefs.h >>conftest.$ac_ext | |
9846 | cat >>conftest.$ac_ext <<_ACEOF | |
9847 | /* end confdefs.h. */ | |
9848 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9849 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9850 | #define $ac_func innocuous_$ac_func | |
9851 | ||
9852 | /* System header to define __stub macros and hopefully few prototypes, | |
9853 | which can conflict with char $ac_func (); below. | |
9854 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9855 | <limits.h> exists even on freestanding compilers. */ | |
9856 | ||
9857 | #ifdef __STDC__ | |
9858 | # include <limits.h> | |
9859 | #else | |
9860 | # include <assert.h> | |
9861 | #endif | |
9862 | ||
9863 | #undef $ac_func | |
9864 | ||
9865 | /* Override any GCC internal prototype to avoid an error. | |
9866 | Use char because int might match the return type of a GCC | |
9867 | builtin and then its argument prototype would still apply. */ | |
9868 | #ifdef __cplusplus | |
9869 | extern "C" | |
9870 | #endif | |
9871 | char $ac_func (); | |
9872 | /* The GNU C library defines this for functions which it implements | |
9873 | to always fail with ENOSYS. Some functions are actually named | |
9874 | something starting with __ and the normal name is an alias. */ | |
9875 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
9876 | choke me | |
9877 | #endif | |
9878 | ||
9879 | int | |
9880 | main () | |
9881 | { | |
9882 | return $ac_func (); | |
9883 | ; | |
9884 | return 0; | |
9885 | } | |
9886 | _ACEOF | |
9887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9888 | if { (ac_try="$ac_link" | |
9889 | case "(($ac_try" in | |
9890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9891 | *) ac_try_echo=$ac_try;; | |
9892 | esac | |
9893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9894 | (eval "$ac_link") 2>conftest.er1 | |
9895 | ac_status=$? | |
9896 | grep -v '^ *+' conftest.er1 >conftest.err | |
9897 | rm -f conftest.er1 | |
9898 | cat conftest.err >&5 | |
9899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9900 | (exit $ac_status); } && { | |
9901 | test -z "$ac_c_werror_flag" || | |
9902 | test ! -s conftest.err | |
9903 | } && test -s conftest$ac_exeext && | |
9904 | $as_test_x conftest$ac_exeext; then | |
9905 | eval "$as_ac_var=yes" | |
9906 | else | |
9907 | echo "$as_me: failed program was:" >&5 | |
9908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9909 | ||
9910 | eval "$as_ac_var=no" | |
9911 | fi | |
9912 | ||
9913 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9914 | conftest$ac_exeext conftest.$ac_ext | |
9915 | fi | |
9916 | ac_res=`eval echo '${'$as_ac_var'}'` | |
9917 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9918 | echo "${ECHO_T}$ac_res" >&6; } | |
9919 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9920 | cat >>confdefs.h <<_ACEOF | |
9921 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9922 | _ACEOF | |
9923 | haveports=yes | |
9924 | else | |
9925 | haveports=no | |
9926 | fi | |
9927 | done | |
9928 | ||
9929 | if test "x$haveports" = "xyes" ; then | |
9930 | SELECT_TYPE="ports" | |
9931 | fi | |
9932 | fi | |
9933 | ||
9934 | if test ! "x$use_select" = "xno"; then | |
9935 | ||
9936 | for ac_func in select | |
9937 | do | |
9938 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9939 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9940 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
9941 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
9942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9943 | else | |
9944 | cat >conftest.$ac_ext <<_ACEOF | |
9945 | /* confdefs.h. */ | |
9946 | _ACEOF | |
9947 | cat confdefs.h >>conftest.$ac_ext | |
9948 | cat >>conftest.$ac_ext <<_ACEOF | |
9949 | /* end confdefs.h. */ | |
9950 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9951 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9952 | #define $ac_func innocuous_$ac_func | |
9953 | ||
9954 | /* System header to define __stub macros and hopefully few prototypes, | |
9955 | which can conflict with char $ac_func (); below. | |
9956 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9957 | <limits.h> exists even on freestanding compilers. */ | |
9958 | ||
9959 | #ifdef __STDC__ | |
9960 | # include <limits.h> | |
9961 | #else | |
9962 | # include <assert.h> | |
9963 | #endif | |
9964 | ||
9965 | #undef $ac_func | |
9966 | ||
9967 | /* Override any GCC internal prototype to avoid an error. | |
9968 | Use char because int might match the return type of a GCC | |
9969 | builtin and then its argument prototype would still apply. */ | |
9970 | #ifdef __cplusplus | |
9971 | extern "C" | |
9972 | #endif | |
9973 | char $ac_func (); | |
9974 | /* The GNU C library defines this for functions which it implements | |
9975 | to always fail with ENOSYS. Some functions are actually named | |
9976 | something starting with __ and the normal name is an alias. */ | |
9977 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
9978 | choke me | |
9979 | #endif | |
9980 | ||
9981 | int | |
9982 | main () | |
9983 | { | |
9984 | return $ac_func (); | |
9985 | ; | |
9986 | return 0; | |
9987 | } | |
9988 | _ACEOF | |
9989 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9990 | if { (ac_try="$ac_link" | |
9991 | case "(($ac_try" in | |
9992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9993 | *) ac_try_echo=$ac_try;; | |
9994 | esac | |
9995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9996 | (eval "$ac_link") 2>conftest.er1 | |
9997 | ac_status=$? | |
9998 | grep -v '^ *+' conftest.er1 >conftest.err | |
9999 | rm -f conftest.er1 | |
10000 | cat conftest.err >&5 | |
10001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10002 | (exit $ac_status); } && { | |
10003 | test -z "$ac_c_werror_flag" || | |
10004 | test ! -s conftest.err | |
10005 | } && test -s conftest$ac_exeext && | |
10006 | $as_test_x conftest$ac_exeext; then | |
10007 | eval "$as_ac_var=yes" | |
10008 | else | |
10009 | echo "$as_me: failed program was:" >&5 | |
10010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10011 | ||
10012 | eval "$as_ac_var=no" | |
10013 | fi | |
10014 | ||
10015 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10016 | conftest$ac_exeext conftest.$ac_ext | |
10017 | fi | |
10018 | ac_res=`eval echo '${'$as_ac_var'}'` | |
10019 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10020 | echo "${ECHO_T}$ac_res" >&6; } | |
10021 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10022 | cat >>confdefs.h <<_ACEOF | |
10023 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10024 | _ACEOF | |
10025 | haveselect=yes | |
10026 | else | |
10027 | haveselect=no | |
10028 | fi | |
10029 | done | |
10030 | ||
10031 | if test "x$haveselect" = "xyes" ; then | |
10032 | SELECT_TYPE="select" | |
10033 | fi | |
10034 | fi | |
10035 | ||
10036 | if test ! "x$use_poll" = "xno"; then | |
10037 | ||
10038 | for ac_func in poll | |
10039 | do | |
10040 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10041 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10042 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10043 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
10044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10045 | else | |
10046 | cat >conftest.$ac_ext <<_ACEOF | |
10047 | /* confdefs.h. */ | |
10048 | _ACEOF | |
10049 | cat confdefs.h >>conftest.$ac_ext | |
10050 | cat >>conftest.$ac_ext <<_ACEOF | |
10051 | /* end confdefs.h. */ | |
10052 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10053 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10054 | #define $ac_func innocuous_$ac_func | |
10055 | ||
10056 | /* System header to define __stub macros and hopefully few prototypes, | |
10057 | which can conflict with char $ac_func (); below. | |
10058 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10059 | <limits.h> exists even on freestanding compilers. */ | |
10060 | ||
10061 | #ifdef __STDC__ | |
10062 | # include <limits.h> | |
10063 | #else | |
10064 | # include <assert.h> | |
10065 | #endif | |
10066 | ||
10067 | #undef $ac_func | |
10068 | ||
10069 | /* Override any GCC internal prototype to avoid an error. | |
10070 | Use char because int might match the return type of a GCC | |
10071 | builtin and then its argument prototype would still apply. */ | |
10072 | #ifdef __cplusplus | |
10073 | extern "C" | |
10074 | #endif | |
10075 | char $ac_func (); | |
10076 | /* The GNU C library defines this for functions which it implements | |
10077 | to always fail with ENOSYS. Some functions are actually named | |
10078 | something starting with __ and the normal name is an alias. */ | |
10079 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
10080 | choke me | |
10081 | #endif | |
10082 | ||
10083 | int | |
10084 | main () | |
10085 | { | |
10086 | return $ac_func (); | |
10087 | ; | |
10088 | return 0; | |
10089 | } | |
10090 | _ACEOF | |
10091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10092 | if { (ac_try="$ac_link" | |
10093 | case "(($ac_try" in | |
10094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10095 | *) ac_try_echo=$ac_try;; | |
10096 | esac | |
10097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10098 | (eval "$ac_link") 2>conftest.er1 | |
10099 | ac_status=$? | |
10100 | grep -v '^ *+' conftest.er1 >conftest.err | |
10101 | rm -f conftest.er1 | |
10102 | cat conftest.err >&5 | |
10103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10104 | (exit $ac_status); } && { | |
10105 | test -z "$ac_c_werror_flag" || | |
10106 | test ! -s conftest.err | |
10107 | } && test -s conftest$ac_exeext && | |
10108 | $as_test_x conftest$ac_exeext; then | |
10109 | eval "$as_ac_var=yes" | |
10110 | else | |
10111 | echo "$as_me: failed program was:" >&5 | |
10112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10113 | ||
10114 | eval "$as_ac_var=no" | |
10115 | fi | |
10116 | ||
10117 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10118 | conftest$ac_exeext conftest.$ac_ext | |
10119 | fi | |
10120 | ac_res=`eval echo '${'$as_ac_var'}'` | |
10121 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10122 | echo "${ECHO_T}$ac_res" >&6; } | |
10123 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10124 | cat >>confdefs.h <<_ACEOF | |
10125 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10126 | _ACEOF | |
10127 | havepoll=yes | |
10128 | else | |
10129 | havepoll=no | |
10130 | fi | |
10131 | done | |
10132 | ||
10133 | if test "x$havepoll" = "xyes" ; then | |
10134 | SELECT_TYPE="poll" | |
10135 | fi | |
10136 | fi | |
10137 | ||
10138 | if test ! "x$use_kqueue" = "xno"; then | |
10139 | ||
10140 | for ac_func in kevent | |
10141 | do | |
10142 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10143 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10144 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10145 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
10146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10147 | else | |
10148 | cat >conftest.$ac_ext <<_ACEOF | |
10149 | /* confdefs.h. */ | |
10150 | _ACEOF | |
10151 | cat confdefs.h >>conftest.$ac_ext | |
10152 | cat >>conftest.$ac_ext <<_ACEOF | |
10153 | /* end confdefs.h. */ | |
10154 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10155 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10156 | #define $ac_func innocuous_$ac_func | |
10157 | ||
10158 | /* System header to define __stub macros and hopefully few prototypes, | |
10159 | which can conflict with char $ac_func (); below. | |
10160 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10161 | <limits.h> exists even on freestanding compilers. */ | |
10162 | ||
10163 | #ifdef __STDC__ | |
10164 | # include <limits.h> | |
10165 | #else | |
10166 | # include <assert.h> | |
10167 | #endif | |
10168 | ||
10169 | #undef $ac_func | |
10170 | ||
10171 | /* Override any GCC internal prototype to avoid an error. | |
10172 | Use char because int might match the return type of a GCC | |
10173 | builtin and then its argument prototype would still apply. */ | |
10174 | #ifdef __cplusplus | |
10175 | extern "C" | |
10176 | #endif | |
10177 | char $ac_func (); | |
10178 | /* The GNU C library defines this for functions which it implements | |
10179 | to always fail with ENOSYS. Some functions are actually named | |
10180 | something starting with __ and the normal name is an alias. */ | |
10181 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
10182 | choke me | |
10183 | #endif | |
10184 | ||
10185 | int | |
10186 | main () | |
10187 | { | |
10188 | return $ac_func (); | |
10189 | ; | |
10190 | return 0; | |
10191 | } | |
10192 | _ACEOF | |
10193 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10194 | if { (ac_try="$ac_link" | |
10195 | case "(($ac_try" in | |
10196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10197 | *) ac_try_echo=$ac_try;; | |
10198 | esac | |
10199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10200 | (eval "$ac_link") 2>conftest.er1 | |
10201 | ac_status=$? | |
10202 | grep -v '^ *+' conftest.er1 >conftest.err | |
10203 | rm -f conftest.er1 | |
10204 | cat conftest.err >&5 | |
10205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10206 | (exit $ac_status); } && { | |
10207 | test -z "$ac_c_werror_flag" || | |
10208 | test ! -s conftest.err | |
10209 | } && test -s conftest$ac_exeext && | |
10210 | $as_test_x conftest$ac_exeext; then | |
10211 | eval "$as_ac_var=yes" | |
10212 | else | |
10213 | echo "$as_me: failed program was:" >&5 | |
10214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10215 | ||
10216 | eval "$as_ac_var=no" | |
10217 | fi | |
10218 | ||
10219 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10220 | conftest$ac_exeext conftest.$ac_ext | |
10221 | fi | |
10222 | ac_res=`eval echo '${'$as_ac_var'}'` | |
10223 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10224 | echo "${ECHO_T}$ac_res" >&6; } | |
10225 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10226 | cat >>confdefs.h <<_ACEOF | |
10227 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10228 | _ACEOF | |
10229 | havekqueue=yes | |
10230 | else | |
10231 | havekqueue=no | |
10232 | fi | |
10233 | done | |
10234 | ||
10235 | if test "x$havekqueue" = "xyes" ; then | |
10236 | SELECT_TYPE="kqueue" | |
10237 | fi | |
10238 | fi | |
10239 | ||
10240 | if test ! "x$use_epoll" = "xno"; then | |
10241 | ||
10242 | for ac_func in epoll_ctl | |
10243 | do | |
10244 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10245 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10246 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10247 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
10248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10249 | else | |
10250 | cat >conftest.$ac_ext <<_ACEOF | |
10251 | /* confdefs.h. */ | |
10252 | _ACEOF | |
10253 | cat confdefs.h >>conftest.$ac_ext | |
10254 | cat >>conftest.$ac_ext <<_ACEOF | |
10255 | /* end confdefs.h. */ | |
10256 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10257 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10258 | #define $ac_func innocuous_$ac_func | |
10259 | ||
10260 | /* System header to define __stub macros and hopefully few prototypes, | |
10261 | which can conflict with char $ac_func (); below. | |
10262 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10263 | <limits.h> exists even on freestanding compilers. */ | |
10264 | ||
10265 | #ifdef __STDC__ | |
10266 | # include <limits.h> | |
10267 | #else | |
10268 | # include <assert.h> | |
10269 | #endif | |
10270 | ||
10271 | #undef $ac_func | |
10272 | ||
10273 | /* Override any GCC internal prototype to avoid an error. | |
10274 | Use char because int might match the return type of a GCC | |
10275 | builtin and then its argument prototype would still apply. */ | |
10276 | #ifdef __cplusplus | |
10277 | extern "C" | |
10278 | #endif | |
10279 | char $ac_func (); | |
10280 | /* The GNU C library defines this for functions which it implements | |
10281 | to always fail with ENOSYS. Some functions are actually named | |
10282 | something starting with __ and the normal name is an alias. */ | |
10283 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
10284 | choke me | |
10285 | #endif | |
10286 | ||
10287 | int | |
10288 | main () | |
10289 | { | |
10290 | return $ac_func (); | |
10291 | ; | |
10292 | return 0; | |
10293 | } | |
10294 | _ACEOF | |
10295 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10296 | if { (ac_try="$ac_link" | |
10297 | case "(($ac_try" in | |
10298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10299 | *) ac_try_echo=$ac_try;; | |
10300 | esac | |
10301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10302 | (eval "$ac_link") 2>conftest.er1 | |
10303 | ac_status=$? | |
10304 | grep -v '^ *+' conftest.er1 >conftest.err | |
10305 | rm -f conftest.er1 | |
10306 | cat conftest.err >&5 | |
10307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10308 | (exit $ac_status); } && { | |
10309 | test -z "$ac_c_werror_flag" || | |
10310 | test ! -s conftest.err | |
10311 | } && test -s conftest$ac_exeext && | |
10312 | $as_test_x conftest$ac_exeext; then | |
10313 | eval "$as_ac_var=yes" | |
10314 | else | |
10315 | echo "$as_me: failed program was:" >&5 | |
10316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10317 | ||
10318 | eval "$as_ac_var=no" | |
10319 | fi | |
10320 | ||
10321 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10322 | conftest$ac_exeext conftest.$ac_ext | |
10323 | fi | |
10324 | ac_res=`eval echo '${'$as_ac_var'}'` | |
10325 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10326 | echo "${ECHO_T}$ac_res" >&6; } | |
10327 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10328 | cat >>confdefs.h <<_ACEOF | |
10329 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10330 | _ACEOF | |
10331 | haveepoll=yes | |
10332 | else | |
10333 | haveepoll=no | |
10334 | fi | |
10335 | done | |
10336 | ||
10337 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
10338 | if test "x$haveepoll" = "xyes" ; then | |
10339 | { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5 | |
10340 | echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; } | |
10341 | if test "$cross_compiling" = yes; then | |
10342 | { echo "$as_me:$LINENO: result: no" >&5 | |
10343 | echo "${ECHO_T}no" >&6; } | |
10344 | else | |
10345 | cat >conftest.$ac_ext <<_ACEOF | |
10346 | /* confdefs.h. */ | |
10347 | _ACEOF | |
10348 | cat confdefs.h >>conftest.$ac_ext | |
10349 | cat >>conftest.$ac_ext <<_ACEOF | |
10350 | /* end confdefs.h. */ | |
10351 | #include <stdint.h> | |
10352 | #include <sys/param.h> | |
10353 | #include <sys/types.h> | |
10354 | #include <sys/epoll.h> | |
10355 | #include <sys/syscall.h> | |
10356 | #include <unistd.h> | |
10357 | ||
10358 | int | |
10359 | main(int argc, char **argv) | |
10360 | { | |
10361 | int epfd; | |
10362 | ||
10363 | epfd = epoll_create(256); | |
10364 | return (epfd == -1 ? 1 : 0); | |
10365 | } | |
10366 | _ACEOF | |
10367 | rm -f conftest$ac_exeext | |
10368 | if { (ac_try="$ac_link" | |
10369 | case "(($ac_try" in | |
10370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10371 | *) ac_try_echo=$ac_try;; | |
10372 | esac | |
10373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10374 | (eval "$ac_link") 2>&5 | |
10375 | ac_status=$? | |
10376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10377 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10378 | { (case "(($ac_try" in | |
10379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10380 | *) ac_try_echo=$ac_try;; | |
10381 | esac | |
10382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10383 | (eval "$ac_try") 2>&5 | |
10384 | ac_status=$? | |
10385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10386 | (exit $ac_status); }; }; then | |
10387 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10388 | echo "${ECHO_T}yes" >&6; } | |
10389 | ||
10390 | cat >>confdefs.h <<\_ACEOF | |
10391 | #define HAVE_EPOLL 1 | |
10392 | _ACEOF | |
10393 | ||
10394 | SELECT_TYPE="epoll" | |
10395 | else | |
10396 | echo "$as_me: program exited with status $ac_status" >&5 | |
10397 | echo "$as_me: failed program was:" >&5 | |
10398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10399 | ||
10400 | ( exit $ac_status ) | |
10401 | { echo "$as_me:$LINENO: result: no" >&5 | |
10402 | echo "${ECHO_T}no" >&6; } | |
10403 | fi | |
10404 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10405 | fi | |
10406 | ||
10407 | ||
10408 | fi | |
10409 | fi | |
10410 | ||
10411 | haveepollsyscall=no | |
10412 | ||
10413 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
10414 | if test "x$haveepoll" = "xno" ; then | |
10415 | { echo "$as_me:$LINENO: checking for epoll system call" >&5 | |
10416 | echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; } | |
10417 | if test "$cross_compiling" = yes; then | |
10418 | { echo "$as_me:$LINENO: result: no" >&5 | |
10419 | echo "${ECHO_T}no" >&6; } | |
10420 | else | |
10421 | cat >conftest.$ac_ext <<_ACEOF | |
10422 | /* confdefs.h. */ | |
10423 | _ACEOF | |
10424 | cat confdefs.h >>conftest.$ac_ext | |
10425 | cat >>conftest.$ac_ext <<_ACEOF | |
10426 | /* end confdefs.h. */ | |
10427 | #include <stdint.h> | |
10428 | #include <sys/param.h> | |
10429 | #include <sys/types.h> | |
10430 | #include <sys/epoll.h> | |
10431 | #include <sys/syscall.h> | |
10432 | #include <unistd.h> | |
10433 | ||
10434 | int | |
10435 | epoll_create(int size) | |
10436 | { | |
10437 | return (syscall(__NR_epoll_create, size)); | |
10438 | } | |
10439 | ||
10440 | int | |
10441 | main(int argc, char **argv) | |
10442 | { | |
10443 | int epfd; | |
10444 | ||
10445 | epfd = epoll_create(256); | |
10446 | exit (epfd == -1 ? 1 : 0); | |
10447 | } | |
10448 | _ACEOF | |
10449 | rm -f conftest$ac_exeext | |
10450 | if { (ac_try="$ac_link" | |
10451 | case "(($ac_try" in | |
10452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10453 | *) ac_try_echo=$ac_try;; | |
10454 | esac | |
10455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10456 | (eval "$ac_link") 2>&5 | |
10457 | ac_status=$? | |
10458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10459 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10460 | { (case "(($ac_try" in | |
10461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10462 | *) ac_try_echo=$ac_try;; | |
10463 | esac | |
10464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10465 | (eval "$ac_try") 2>&5 | |
10466 | ac_status=$? | |
10467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10468 | (exit $ac_status); }; }; then | |
10469 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10470 | echo "${ECHO_T}yes" >&6; } | |
10471 | ||
10472 | cat >>confdefs.h <<\_ACEOF | |
10473 | #define HAVE_EPOLL 1 | |
10474 | _ACEOF | |
10475 | ||
10476 | SELECT_TYPE="epoll" | |
10477 | else | |
10478 | echo "$as_me: program exited with status $ac_status" >&5 | |
10479 | echo "$as_me: failed program was:" >&5 | |
10480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10481 | ||
10482 | ( exit $ac_status ) | |
10483 | { echo "$as_me:$LINENO: result: no" >&5 | |
10484 | echo "${ECHO_T}no" >&6; } | |
10485 | fi | |
10486 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10487 | fi | |
10488 | ||
10489 | ||
10490 | fi | |
10491 | fi | |
10492 | ||
10493 | fi | |
10494 | ||
10495 | fi | |
10496 | ||
10497 | if test -z "$SELECT_TYPE"; then | |
10498 | { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5 | |
10499 | echo "$as_me: error: Unable to find a usable IO interface" >&2;} | |
10500 | { (exit 1); exit 1; }; } | |
10501 | fi | |
10502 | ||
10503 | echo "Using $SELECT_TYPE for select loop." | |
10504 | ||
10505 | ||
10506 | cat >>confdefs.h <<_ACEOF | |
10507 | #define SELECT_TYPE "$SELECT_TYPE" | |
10508 | _ACEOF | |
10509 | ||
10510 | ||
10511 | ||
10512 | ||
10513 | ||
10514 | # Check whether --enable-assert was given. | |
10515 | if test "${enable_assert+set}" = set; then | |
10516 | enableval=$enable_assert; assert=$enableval | |
10517 | else | |
10518 | assert=no | |
10519 | fi | |
10520 | ||
10521 | ||
10522 | if test "$assert" = no; then | |
10523 | ||
10524 | cat >>confdefs.h <<\_ACEOF | |
10525 | #define NDEBUG 1 | |
10526 | _ACEOF | |
10527 | ||
10528 | elif test "$assert" = soft; then | |
10529 | ||
10530 | cat >>confdefs.h <<\_ACEOF | |
10531 | #define SOFT_ASSERT 1 | |
10532 | _ACEOF | |
10533 | ||
10534 | ||
10535 | cat >>confdefs.h <<\_ACEOF | |
10536 | #define NDEBUG 1 | |
10537 | _ACEOF | |
10538 | ||
10539 | elif test "$assert" = yes; then | |
10540 | assert = "hard"; | |
10541 | fi | |
10542 | ||
10543 | { echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5 | |
10544 | echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; } | |
10545 | # Check whether --enable-iodebug was given. | |
10546 | if test "${enable_iodebug+set}" = set; then | |
10547 | enableval=$enable_iodebug; iodebug=$enableval | |
10548 | else | |
10549 | iodebug=no | |
10550 | fi | |
10551 | ||
10552 | ||
10553 | if test "$iodebug" = yes; then | |
10554 | ||
10555 | cat >>confdefs.h <<\_ACEOF | |
10556 | #define USE_IODEBUG_HOOKS 1 | |
10557 | _ACEOF | |
10558 | ||
10559 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10560 | echo "${ECHO_T}yes" >&6; } | |
10561 | else | |
10562 | { echo "$as_me:$LINENO: result: no" >&5 | |
10563 | echo "${ECHO_T}no" >&6; } | |
10564 | fi | |
10565 | ||
10566 | ||
10567 | { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5 | |
10568 | echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; } | |
10569 | # Check whether --enable-profile was given. | |
10570 | if test "${enable_profile+set}" = set; then | |
10571 | enableval=$enable_profile; profile=$enableval | |
10572 | else | |
10573 | profile=no | |
10574 | fi | |
10575 | ||
10576 | ||
10577 | if test "$profile" = yes; then | |
10578 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
10579 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
10580 | { echo "$as_me:$LINENO: result: yes, adding -pg" >&5 | |
10581 | echo "${ECHO_T}yes, adding -pg" >&6; } | |
10582 | ||
10583 | cat >>confdefs.h <<\_ACEOF | |
10584 | #define CHARYBDIS_PROFILE 1 | |
10585 | _ACEOF | |
10586 | ||
10587 | else | |
10588 | { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5 | |
10589 | echo "${ECHO_T}no, profile builds only work with gcc" >&6; } | |
10590 | fi | |
10591 | else | |
10592 | { echo "$as_me:$LINENO: result: no" >&5 | |
10593 | echo "${ECHO_T}no" >&6; } | |
10594 | fi | |
10595 | ||
10596 | # Check whether --enable-balloc was given. | |
10597 | if test "${enable_balloc+set}" = set; then | |
10598 | enableval=$enable_balloc; balloc=$enableval | |
10599 | else | |
10600 | balloc=yes | |
10601 | fi | |
10602 | ||
10603 | ||
10604 | if test "$balloc" = no; then | |
10605 | ||
10606 | cat >>confdefs.h <<\_ACEOF | |
10607 | #define NOBALLOC 1 | |
10608 | _ACEOF | |
10609 | ||
10610 | fi | |
10611 | ||
10612 | # Check whether --enable-small-net was given. | |
10613 | if test "${enable_small_net+set}" = set; then | |
10614 | enableval=$enable_small_net; small_net=$enableval | |
10615 | else | |
10616 | small_net=no | |
10617 | fi | |
10618 | ||
10619 | ||
10620 | if test "$small_net" = yes; then | |
10621 | ||
10622 | cat >>confdefs.h <<\_ACEOF | |
10623 | #define NICKNAMEHISTORYLENGTH 1500 | |
10624 | _ACEOF | |
10625 | ||
10626 | ||
10627 | cat >>confdefs.h <<\_ACEOF | |
10628 | #define CHANNEL_HEAP_SIZE 256 | |
10629 | _ACEOF | |
10630 | ||
10631 | ||
10632 | cat >>confdefs.h <<\_ACEOF | |
10633 | #define BAN_HEAP_SIZE 128 | |
10634 | _ACEOF | |
10635 | ||
10636 | ||
10637 | cat >>confdefs.h <<\_ACEOF | |
10638 | #define CLIENT_HEAP_SIZE 256 | |
10639 | _ACEOF | |
10640 | ||
10641 | ||
10642 | cat >>confdefs.h <<\_ACEOF | |
10643 | #define LCLIENT_HEAP_SIZE 128 | |
10644 | _ACEOF | |
10645 | ||
10646 | ||
10647 | cat >>confdefs.h <<\_ACEOF | |
10648 | #define PCLIENT_HEAP_SIZE 32 | |
10649 | _ACEOF | |
10650 | ||
10651 | ||
10652 | cat >>confdefs.h <<\_ACEOF | |
10653 | #define USER_HEAP_SIZE 128 | |
10654 | _ACEOF | |
10655 | ||
10656 | ||
10657 | cat >>confdefs.h <<\_ACEOF | |
10658 | #define DNODE_HEAP_SIZE 256 | |
10659 | _ACEOF | |
10660 | ||
10661 | ||
10662 | cat >>confdefs.h <<\_ACEOF | |
10663 | #define TOPIC_HEAP_SIZE 256 | |
10664 | _ACEOF | |
10665 | ||
10666 | ||
10667 | cat >>confdefs.h <<\_ACEOF | |
10668 | #define LINEBUF_HEAP_SIZE 128 | |
10669 | _ACEOF | |
10670 | ||
10671 | ||
10672 | cat >>confdefs.h <<\_ACEOF | |
10673 | #define MEMBER_HEAP_SIZE 256 | |
10674 | _ACEOF | |
10675 | ||
10676 | ||
10677 | cat >>confdefs.h <<\_ACEOF | |
10678 | #define ND_HEAP_SIZE 128 | |
10679 | _ACEOF | |
10680 | ||
10681 | ||
10682 | cat >>confdefs.h <<\_ACEOF | |
10683 | #define CONFITEM_HEAP_SIZE 128 | |
10684 | _ACEOF | |
10685 | ||
10686 | ||
10687 | cat >>confdefs.h <<\_ACEOF | |
10688 | #define MONITOR_HEAP_SIZE 128 | |
10689 | _ACEOF | |
10690 | ||
10691 | ||
10692 | cat >>confdefs.h <<\_ACEOF | |
10693 | #define FD_HEAP_SIZE 128 | |
10694 | _ACEOF | |
10695 | ||
10696 | ||
10697 | cat >>confdefs.h <<\_ACEOF | |
10698 | #define AWAY_HEAP_SIZE 128 | |
10699 | _ACEOF | |
10700 | ||
10701 | else | |
10702 | ||
10703 | cat >>confdefs.h <<\_ACEOF | |
10704 | #define NICKNAMEHISTORYLENGTH 15000 | |
10705 | _ACEOF | |
10706 | ||
10707 | ||
10708 | cat >>confdefs.h <<\_ACEOF | |
10709 | #define CHANNEL_HEAP_SIZE 8192 | |
10710 | _ACEOF | |
10711 | ||
10712 | ||
10713 | cat >>confdefs.h <<\_ACEOF | |
10714 | #define BAN_HEAP_SIZE 4096 | |
10715 | _ACEOF | |
10716 | ||
10717 | ||
10718 | cat >>confdefs.h <<\_ACEOF | |
10719 | #define CLIENT_HEAP_SIZE 8192 | |
10720 | _ACEOF | |
10721 | ||
10722 | ||
10723 | cat >>confdefs.h <<\_ACEOF | |
10724 | #define LCLIENT_HEAP_SIZE 1024 | |
10725 | _ACEOF | |
10726 | ||
10727 | ||
10728 | cat >>confdefs.h <<\_ACEOF | |
10729 | #define PCLIENT_HEAP_SIZE 256 | |
10730 | _ACEOF | |
10731 | ||
10732 | ||
10733 | cat >>confdefs.h <<\_ACEOF | |
10734 | #define USER_HEAP_SIZE 8192 | |
10735 | _ACEOF | |
10736 | ||
10737 | ||
10738 | cat >>confdefs.h <<\_ACEOF | |
10739 | #define DNODE_HEAP_SIZE 8192 | |
10740 | _ACEOF | |
10741 | ||
10742 | ||
10743 | cat >>confdefs.h <<\_ACEOF | |
10744 | #define TOPIC_HEAP_SIZE 4096 | |
10745 | _ACEOF | |
10746 | ||
10747 | ||
10748 | cat >>confdefs.h <<\_ACEOF | |
10749 | #define LINEBUF_HEAP_SIZE 2048 | |
10750 | _ACEOF | |
10751 | ||
10752 | ||
10753 | cat >>confdefs.h <<\_ACEOF | |
10754 | #define MEMBER_HEAP_SIZE 32768 | |
10755 | _ACEOF | |
10756 | ||
10757 | ||
10758 | cat >>confdefs.h <<\_ACEOF | |
10759 | #define ND_HEAP_SIZE 512 | |
10760 | _ACEOF | |
10761 | ||
10762 | ||
10763 | cat >>confdefs.h <<\_ACEOF | |
10764 | #define CONFITEM_HEAP_SIZE 256 | |
10765 | _ACEOF | |
10766 | ||
10767 | ||
10768 | cat >>confdefs.h <<\_ACEOF | |
10769 | #define MONITOR_HEAP_SIZE 1024 | |
10770 | _ACEOF | |
10771 | ||
10772 | ||
10773 | cat >>confdefs.h <<\_ACEOF | |
10774 | #define FD_HEAP_SIZE 1024 | |
10775 | _ACEOF | |
10776 | ||
10777 | ||
10778 | cat >>confdefs.h <<\_ACEOF | |
10779 | #define AWAY_HEAP_SIZE 512 | |
10780 | _ACEOF | |
10781 | ||
10782 | fi | |
10783 | ||
10784 | ||
10785 | # Check whether --with-nicklen was given. | |
10786 | if test "${with_nicklen+set}" = set; then | |
10787 | withval=$with_nicklen; | |
10788 | if ! expr "$withval" + 0 >/dev/null 2>&1; then | |
10789 | { { echo "$as_me:$LINENO: error: NICKLEN must be a numeric value" >&5 | |
10790 | echo "$as_me: error: NICKLEN must be a numeric value" >&2;} | |
10791 | { (exit 1); exit 1; }; } | |
10792 | fi | |
10793 | if test $withval -ge 50; then | |
10794 | NICKLEN=50 | |
10795 | { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 | |
10796 | echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
10797 | else | |
10798 | NICKLEN="$withval" | |
10799 | fi | |
10800 | ||
10801 | else | |
10802 | NICKLEN=15 | |
10803 | fi | |
10804 | ||
10805 | ||
10806 | ||
10807 | # Check whether --with-topiclen was given. | |
10808 | if test "${with_topiclen+set}" = set; then | |
10809 | withval=$with_topiclen; | |
10810 | if test $withval -ge 390; then | |
10811 | TOPICLEN=390 | |
10812 | { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 | |
10813 | echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
10814 | else | |
10815 | TOPICLEN=$withval | |
10816 | fi | |
10817 | ||
10818 | else | |
10819 | TOPICLEN=390 | |
10820 | fi | |
10821 | ||
10822 | ||
10823 | ||
10824 | cat >>confdefs.h <<_ACEOF | |
10825 | #define TOPICLEN ${TOPICLEN} | |
10826 | _ACEOF | |
10827 | ||
10828 | ||
10829 | cat >>confdefs.h <<_ACEOF | |
10830 | #define NICKLEN (${NICKLEN}+1) | |
10831 | _ACEOF | |
10832 | ||
10833 | ||
10834 | shared_modules="yes" | |
10835 | if test "$shared_modules" = yes; then | |
10836 | if test "$CC" = tcc -a "$TenDRA" = "no"; then | |
10837 | { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5 | |
10838 | echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;} | |
10839 | shared_modules="no" | |
10840 | fi | |
10841 | fi | |
10842 | ||
10843 | if test "$shared_modules" = yes; then | |
10844 | DYNLINK_C=dynlink.c | |
10845 | ||
10846 | for ac_header in dlfcn.h | |
10847 | do | |
10848 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10849 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10850 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10851 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10852 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10854 | fi | |
10855 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
10856 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10857 | echo "${ECHO_T}$ac_res" >&6; } | |
10858 | else | |
10859 | # Is the header compilable? | |
10860 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10861 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
10862 | cat >conftest.$ac_ext <<_ACEOF | |
10863 | /* confdefs.h. */ | |
10864 | _ACEOF | |
10865 | cat confdefs.h >>conftest.$ac_ext | |
10866 | cat >>conftest.$ac_ext <<_ACEOF | |
10867 | /* end confdefs.h. */ | |
10868 | $ac_includes_default | |
10869 | #include <$ac_header> | |
10870 | _ACEOF | |
10871 | rm -f conftest.$ac_objext | |
10872 | if { (ac_try="$ac_compile" | |
10873 | case "(($ac_try" in | |
10874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10875 | *) ac_try_echo=$ac_try;; | |
10876 | esac | |
10877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10878 | (eval "$ac_compile") 2>conftest.er1 | |
10879 | ac_status=$? | |
10880 | grep -v '^ *+' conftest.er1 >conftest.err | |
10881 | rm -f conftest.er1 | |
10882 | cat conftest.err >&5 | |
10883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10884 | (exit $ac_status); } && { | |
10885 | test -z "$ac_c_werror_flag" || | |
10886 | test ! -s conftest.err | |
10887 | } && test -s conftest.$ac_objext; then | |
10888 | ac_header_compiler=yes | |
10889 | else | |
10890 | echo "$as_me: failed program was:" >&5 | |
10891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10892 | ||
10893 | ac_header_compiler=no | |
10894 | fi | |
10895 | ||
10896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10897 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10898 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
10899 | ||
10900 | # Is the header present? | |
10901 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10902 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
10903 | cat >conftest.$ac_ext <<_ACEOF | |
10904 | /* confdefs.h. */ | |
10905 | _ACEOF | |
10906 | cat confdefs.h >>conftest.$ac_ext | |
10907 | cat >>conftest.$ac_ext <<_ACEOF | |
10908 | /* end confdefs.h. */ | |
10909 | #include <$ac_header> | |
10910 | _ACEOF | |
10911 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10912 | case "(($ac_try" in | |
10913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10914 | *) ac_try_echo=$ac_try;; | |
10915 | esac | |
10916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10917 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10918 | ac_status=$? | |
10919 | grep -v '^ *+' conftest.er1 >conftest.err | |
10920 | rm -f conftest.er1 | |
10921 | cat conftest.err >&5 | |
10922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10923 | (exit $ac_status); } >/dev/null && { | |
10924 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10925 | test ! -s conftest.err | |
10926 | }; then | |
10927 | ac_header_preproc=yes | |
10928 | else | |
10929 | echo "$as_me: failed program was:" >&5 | |
10930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10931 | ||
10932 | ac_header_preproc=no | |
10933 | fi | |
10934 | ||
10935 | rm -f conftest.err conftest.$ac_ext | |
10936 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10937 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
10938 | ||
10939 | # So? What about this header? | |
10940 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10941 | yes:no: ) | |
10942 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10943 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10944 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10945 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10946 | ac_header_preproc=yes | |
10947 | ;; | |
10948 | no:yes:* ) | |
10949 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10950 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10951 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10952 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10953 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10954 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10955 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10956 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10957 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10958 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10959 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10960 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10961 | ||
10962 | ;; | |
10963 | esac | |
10964 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10965 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10966 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10968 | else | |
10969 | eval "$as_ac_Header=\$ac_header_preproc" | |
10970 | fi | |
10971 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
10972 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10973 | echo "${ECHO_T}$ac_res" >&6; } | |
10974 | ||
10975 | fi | |
10976 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10977 | cat >>confdefs.h <<_ACEOF | |
10978 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10979 | _ACEOF | |
10980 | ||
10981 | fi | |
10982 | ||
10983 | done | |
10984 | ||
10985 | { echo "$as_me:$LINENO: checking for library containing shl_load" >&5 | |
10986 | echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; } | |
10987 | if test "${ac_cv_search_shl_load+set}" = set; then | |
10988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10989 | else | |
10990 | ac_func_search_save_LIBS=$LIBS | |
10991 | cat >conftest.$ac_ext <<_ACEOF | |
10992 | /* confdefs.h. */ | |
10993 | _ACEOF | |
10994 | cat confdefs.h >>conftest.$ac_ext | |
10995 | cat >>conftest.$ac_ext <<_ACEOF | |
10996 | /* end confdefs.h. */ | |
10997 | ||
10998 | /* Override any GCC internal prototype to avoid an error. | |
10999 | Use char because int might match the return type of a GCC | |
11000 | builtin and then its argument prototype would still apply. */ | |
11001 | #ifdef __cplusplus | |
11002 | extern "C" | |
11003 | #endif | |
11004 | char shl_load (); | |
11005 | int | |
11006 | main () | |
11007 | { | |
11008 | return shl_load (); | |
11009 | ; | |
11010 | return 0; | |
11011 | } | |
11012 | _ACEOF | |
11013 | for ac_lib in '' dld; do | |
11014 | if test -z "$ac_lib"; then | |
11015 | ac_res="none required" | |
11016 | else | |
11017 | ac_res=-l$ac_lib | |
11018 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11019 | fi | |
11020 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11021 | if { (ac_try="$ac_link" | |
11022 | case "(($ac_try" in | |
11023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11024 | *) ac_try_echo=$ac_try;; | |
11025 | esac | |
11026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11027 | (eval "$ac_link") 2>conftest.er1 | |
11028 | ac_status=$? | |
11029 | grep -v '^ *+' conftest.er1 >conftest.err | |
11030 | rm -f conftest.er1 | |
11031 | cat conftest.err >&5 | |
11032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11033 | (exit $ac_status); } && { | |
11034 | test -z "$ac_c_werror_flag" || | |
11035 | test ! -s conftest.err | |
11036 | } && test -s conftest$ac_exeext && | |
11037 | $as_test_x conftest$ac_exeext; then | |
11038 | ac_cv_search_shl_load=$ac_res | |
11039 | else | |
11040 | echo "$as_me: failed program was:" >&5 | |
11041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11042 | ||
11043 | ||
11044 | fi | |
11045 | ||
11046 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11047 | conftest$ac_exeext | |
11048 | if test "${ac_cv_search_shl_load+set}" = set; then | |
11049 | break | |
11050 | fi | |
11051 | done | |
11052 | if test "${ac_cv_search_shl_load+set}" = set; then | |
11053 | : | |
11054 | else | |
11055 | ac_cv_search_shl_load=no | |
11056 | fi | |
11057 | rm conftest.$ac_ext | |
11058 | LIBS=$ac_func_search_save_LIBS | |
11059 | fi | |
11060 | { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5 | |
11061 | echo "${ECHO_T}$ac_cv_search_shl_load" >&6; } | |
11062 | ac_res=$ac_cv_search_shl_load | |
11063 | if test "$ac_res" != no; then | |
11064 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
11065 | ||
11066 | ||
11067 | cat >>confdefs.h <<\_ACEOF | |
11068 | #define HAVE_SHL_LOAD 1 | |
11069 | _ACEOF | |
11070 | ||
11071 | SUFFIX=".sl" | |
11072 | MOD_TARGET=hpux_shared | |
11073 | SEDOBJ="s/\.o/.sl/g" | |
11074 | ||
11075 | else | |
11076 | ||
11077 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | |
11078 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | |
11079 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11081 | else | |
11082 | ac_func_search_save_LIBS=$LIBS | |
11083 | cat >conftest.$ac_ext <<_ACEOF | |
11084 | /* confdefs.h. */ | |
11085 | _ACEOF | |
11086 | cat confdefs.h >>conftest.$ac_ext | |
11087 | cat >>conftest.$ac_ext <<_ACEOF | |
11088 | /* end confdefs.h. */ | |
11089 | ||
11090 | /* Override any GCC internal prototype to avoid an error. | |
11091 | Use char because int might match the return type of a GCC | |
11092 | builtin and then its argument prototype would still apply. */ | |
11093 | #ifdef __cplusplus | |
11094 | extern "C" | |
11095 | #endif | |
11096 | char dlopen (); | |
11097 | int | |
11098 | main () | |
11099 | { | |
11100 | return dlopen (); | |
11101 | ; | |
11102 | return 0; | |
11103 | } | |
11104 | _ACEOF | |
11105 | for ac_lib in '' dl c_r; do | |
11106 | if test -z "$ac_lib"; then | |
11107 | ac_res="none required" | |
11108 | else | |
11109 | ac_res=-l$ac_lib | |
11110 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11111 | fi | |
11112 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11113 | if { (ac_try="$ac_link" | |
11114 | case "(($ac_try" in | |
11115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11116 | *) ac_try_echo=$ac_try;; | |
11117 | esac | |
11118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11119 | (eval "$ac_link") 2>conftest.er1 | |
11120 | ac_status=$? | |
11121 | grep -v '^ *+' conftest.er1 >conftest.err | |
11122 | rm -f conftest.er1 | |
11123 | cat conftest.err >&5 | |
11124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11125 | (exit $ac_status); } && { | |
11126 | test -z "$ac_c_werror_flag" || | |
11127 | test ! -s conftest.err | |
11128 | } && test -s conftest$ac_exeext && | |
11129 | $as_test_x conftest$ac_exeext; then | |
11130 | ac_cv_search_dlopen=$ac_res | |
11131 | else | |
11132 | echo "$as_me: failed program was:" >&5 | |
11133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11134 | ||
11135 | ||
11136 | fi | |
11137 | ||
11138 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11139 | conftest$ac_exeext | |
11140 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11141 | break | |
11142 | fi | |
11143 | done | |
11144 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11145 | : | |
11146 | else | |
11147 | ac_cv_search_dlopen=no | |
11148 | fi | |
11149 | rm conftest.$ac_ext | |
11150 | LIBS=$ac_func_search_save_LIBS | |
11151 | fi | |
11152 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | |
11153 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | |
11154 | ac_res=$ac_cv_search_dlopen | |
11155 | if test "$ac_res" != no; then | |
11156 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
11157 | ||
11158 | ||
11159 | cat >>confdefs.h <<\_ACEOF | |
11160 | #define HAVE_DLOPEN 1 | |
11161 | _ACEOF | |
11162 | ||
11163 | SUFFIX=".so" | |
11164 | MOD_TARGET=shared_modules | |
11165 | SEDOBJ="s/\.o/.so/g" | |
11166 | if test "$AppleGCC" = yes; then | |
11167 | ||
11168 | for ac_header in mach-o/dyld.h | |
11169 | do | |
11170 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11171 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11172 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11173 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11174 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11176 | fi | |
11177 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
11178 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11179 | echo "${ECHO_T}$ac_res" >&6; } | |
11180 | else | |
11181 | # Is the header compilable? | |
11182 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11183 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
11184 | cat >conftest.$ac_ext <<_ACEOF | |
11185 | /* confdefs.h. */ | |
11186 | _ACEOF | |
11187 | cat confdefs.h >>conftest.$ac_ext | |
11188 | cat >>conftest.$ac_ext <<_ACEOF | |
11189 | /* end confdefs.h. */ | |
11190 | $ac_includes_default | |
11191 | #include <$ac_header> | |
11192 | _ACEOF | |
11193 | rm -f conftest.$ac_objext | |
11194 | if { (ac_try="$ac_compile" | |
11195 | case "(($ac_try" in | |
11196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11197 | *) ac_try_echo=$ac_try;; | |
11198 | esac | |
11199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11200 | (eval "$ac_compile") 2>conftest.er1 | |
11201 | ac_status=$? | |
11202 | grep -v '^ *+' conftest.er1 >conftest.err | |
11203 | rm -f conftest.er1 | |
11204 | cat conftest.err >&5 | |
11205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11206 | (exit $ac_status); } && { | |
11207 | test -z "$ac_c_werror_flag" || | |
11208 | test ! -s conftest.err | |
11209 | } && test -s conftest.$ac_objext; then | |
11210 | ac_header_compiler=yes | |
11211 | else | |
11212 | echo "$as_me: failed program was:" >&5 | |
11213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11214 | ||
11215 | ac_header_compiler=no | |
11216 | fi | |
11217 | ||
11218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11219 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11220 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
11221 | ||
11222 | # Is the header present? | |
11223 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11224 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
11225 | cat >conftest.$ac_ext <<_ACEOF | |
11226 | /* confdefs.h. */ | |
11227 | _ACEOF | |
11228 | cat confdefs.h >>conftest.$ac_ext | |
11229 | cat >>conftest.$ac_ext <<_ACEOF | |
11230 | /* end confdefs.h. */ | |
11231 | #include <$ac_header> | |
11232 | _ACEOF | |
11233 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11234 | case "(($ac_try" in | |
11235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11236 | *) ac_try_echo=$ac_try;; | |
11237 | esac | |
11238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11239 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11240 | ac_status=$? | |
11241 | grep -v '^ *+' conftest.er1 >conftest.err | |
11242 | rm -f conftest.er1 | |
11243 | cat conftest.err >&5 | |
11244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11245 | (exit $ac_status); } >/dev/null && { | |
11246 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11247 | test ! -s conftest.err | |
11248 | }; then | |
11249 | ac_header_preproc=yes | |
11250 | else | |
11251 | echo "$as_me: failed program was:" >&5 | |
11252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11253 | ||
11254 | ac_header_preproc=no | |
11255 | fi | |
11256 | ||
11257 | rm -f conftest.err conftest.$ac_ext | |
11258 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11259 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
11260 | ||
11261 | # So? What about this header? | |
11262 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11263 | yes:no: ) | |
11264 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11265 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11266 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11267 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11268 | ac_header_preproc=yes | |
11269 | ;; | |
11270 | no:yes:* ) | |
11271 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11272 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11273 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11274 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11275 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11276 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11277 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11278 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11279 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11280 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11281 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11282 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11283 | ||
11284 | ;; | |
11285 | esac | |
11286 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11287 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11288 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11290 | else | |
11291 | eval "$as_ac_Header=\$ac_header_preproc" | |
11292 | fi | |
11293 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
11294 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11295 | echo "${ECHO_T}$ac_res" >&6; } | |
11296 | ||
11297 | fi | |
11298 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11299 | cat >>confdefs.h <<_ACEOF | |
11300 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11301 | _ACEOF | |
11302 | ||
11303 | fi | |
11304 | ||
11305 | done | |
11306 | ||
11307 | fi | |
11308 | { echo "$as_me:$LINENO: checking for dlsym" >&5 | |
11309 | echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; } | |
11310 | if test "${ac_cv_func_dlsym+set}" = set; then | |
11311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11312 | else | |
11313 | cat >conftest.$ac_ext <<_ACEOF | |
11314 | /* confdefs.h. */ | |
11315 | _ACEOF | |
11316 | cat confdefs.h >>conftest.$ac_ext | |
11317 | cat >>conftest.$ac_ext <<_ACEOF | |
11318 | /* end confdefs.h. */ | |
11319 | /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym. | |
11320 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11321 | #define dlsym innocuous_dlsym | |
11322 | ||
11323 | /* System header to define __stub macros and hopefully few prototypes, | |
11324 | which can conflict with char dlsym (); below. | |
11325 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11326 | <limits.h> exists even on freestanding compilers. */ | |
11327 | ||
11328 | #ifdef __STDC__ | |
11329 | # include <limits.h> | |
11330 | #else | |
11331 | # include <assert.h> | |
11332 | #endif | |
11333 | ||
11334 | #undef dlsym | |
11335 | ||
11336 | /* Override any GCC internal prototype to avoid an error. | |
11337 | Use char because int might match the return type of a GCC | |
11338 | builtin and then its argument prototype would still apply. */ | |
11339 | #ifdef __cplusplus | |
11340 | extern "C" | |
11341 | #endif | |
11342 | char dlsym (); | |
11343 | /* The GNU C library defines this for functions which it implements | |
11344 | to always fail with ENOSYS. Some functions are actually named | |
11345 | something starting with __ and the normal name is an alias. */ | |
11346 | #if defined __stub_dlsym || defined __stub___dlsym | |
11347 | choke me | |
11348 | #endif | |
11349 | ||
11350 | int | |
11351 | main () | |
11352 | { | |
11353 | return dlsym (); | |
11354 | ; | |
11355 | return 0; | |
11356 | } | |
11357 | _ACEOF | |
11358 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11359 | if { (ac_try="$ac_link" | |
11360 | case "(($ac_try" in | |
11361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11362 | *) ac_try_echo=$ac_try;; | |
11363 | esac | |
11364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11365 | (eval "$ac_link") 2>conftest.er1 | |
11366 | ac_status=$? | |
11367 | grep -v '^ *+' conftest.er1 >conftest.err | |
11368 | rm -f conftest.er1 | |
11369 | cat conftest.err >&5 | |
11370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11371 | (exit $ac_status); } && { | |
11372 | test -z "$ac_c_werror_flag" || | |
11373 | test ! -s conftest.err | |
11374 | } && test -s conftest$ac_exeext && | |
11375 | $as_test_x conftest$ac_exeext; then | |
11376 | ac_cv_func_dlsym=yes | |
11377 | else | |
11378 | echo "$as_me: failed program was:" >&5 | |
11379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11380 | ||
11381 | ac_cv_func_dlsym=no | |
11382 | fi | |
11383 | ||
11384 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11385 | conftest$ac_exeext conftest.$ac_ext | |
11386 | fi | |
11387 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5 | |
11388 | echo "${ECHO_T}$ac_cv_func_dlsym" >&6; } | |
11389 | if test $ac_cv_func_dlsym = yes; then | |
11390 | : | |
11391 | else | |
11392 | ||
11393 | { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5 | |
11394 | echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;} | |
11395 | shared_modules=no | |
11396 | ||
11397 | fi | |
11398 | ||
11399 | ||
11400 | for ac_func in dlfunc | |
11401 | do | |
11402 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11403 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11404 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11405 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
11406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11407 | else | |
11408 | cat >conftest.$ac_ext <<_ACEOF | |
11409 | /* confdefs.h. */ | |
11410 | _ACEOF | |
11411 | cat confdefs.h >>conftest.$ac_ext | |
11412 | cat >>conftest.$ac_ext <<_ACEOF | |
11413 | /* end confdefs.h. */ | |
11414 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11415 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11416 | #define $ac_func innocuous_$ac_func | |
11417 | ||
11418 | /* System header to define __stub macros and hopefully few prototypes, | |
11419 | which can conflict with char $ac_func (); below. | |
11420 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11421 | <limits.h> exists even on freestanding compilers. */ | |
11422 | ||
11423 | #ifdef __STDC__ | |
11424 | # include <limits.h> | |
11425 | #else | |
11426 | # include <assert.h> | |
11427 | #endif | |
11428 | ||
11429 | #undef $ac_func | |
11430 | ||
11431 | /* Override any GCC internal prototype to avoid an error. | |
11432 | Use char because int might match the return type of a GCC | |
11433 | builtin and then its argument prototype would still apply. */ | |
11434 | #ifdef __cplusplus | |
11435 | extern "C" | |
11436 | #endif | |
11437 | char $ac_func (); | |
11438 | /* The GNU C library defines this for functions which it implements | |
11439 | to always fail with ENOSYS. Some functions are actually named | |
11440 | something starting with __ and the normal name is an alias. */ | |
11441 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
11442 | choke me | |
11443 | #endif | |
11444 | ||
11445 | int | |
11446 | main () | |
11447 | { | |
11448 | return $ac_func (); | |
11449 | ; | |
11450 | return 0; | |
11451 | } | |
11452 | _ACEOF | |
11453 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11454 | if { (ac_try="$ac_link" | |
11455 | case "(($ac_try" in | |
11456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11457 | *) ac_try_echo=$ac_try;; | |
11458 | esac | |
11459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11460 | (eval "$ac_link") 2>conftest.er1 | |
11461 | ac_status=$? | |
11462 | grep -v '^ *+' conftest.er1 >conftest.err | |
11463 | rm -f conftest.er1 | |
11464 | cat conftest.err >&5 | |
11465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11466 | (exit $ac_status); } && { | |
11467 | test -z "$ac_c_werror_flag" || | |
11468 | test ! -s conftest.err | |
11469 | } && test -s conftest$ac_exeext && | |
11470 | $as_test_x conftest$ac_exeext; then | |
11471 | eval "$as_ac_var=yes" | |
11472 | else | |
11473 | echo "$as_me: failed program was:" >&5 | |
11474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11475 | ||
11476 | eval "$as_ac_var=no" | |
11477 | fi | |
11478 | ||
11479 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11480 | conftest$ac_exeext conftest.$ac_ext | |
11481 | fi | |
11482 | ac_res=`eval echo '${'$as_ac_var'}'` | |
11483 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11484 | echo "${ECHO_T}$ac_res" >&6; } | |
11485 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11486 | cat >>confdefs.h <<_ACEOF | |
11487 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11488 | _ACEOF | |
11489 | ||
11490 | fi | |
11491 | done | |
11492 | ||
11493 | ||
11494 | else | |
11495 | ||
11496 | shared_modules=no | |
11497 | ||
11498 | fi | |
11499 | ||
11500 | ||
11501 | fi | |
11502 | ||
11503 | fi | |
11504 | ||
11505 | ||
11506 | cat >>confdefs.h <<_ACEOF | |
11507 | #define SHARED_SUFFIX "$SUFFIX" | |
11508 | _ACEOF | |
11509 | ||
11510 | ||
11511 | if test "$shared_modules" = yes; then | |
11512 | # The GNU linker requires the -export-dynamic option to make | |
11513 | # all symbols visible in the dynamic symbol table. | |
11514 | hold_ldflags=$LDFLAGS | |
11515 | { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 | |
11516 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; } | |
11517 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror" | |
11518 | cat >conftest.$ac_ext <<_ACEOF | |
11519 | /* confdefs.h. */ | |
11520 | _ACEOF | |
11521 | cat confdefs.h >>conftest.$ac_ext | |
11522 | cat >>conftest.$ac_ext <<_ACEOF | |
11523 | /* end confdefs.h. */ | |
11524 | ||
11525 | int | |
11526 | main () | |
11527 | { | |
11528 | int i; | |
11529 | ; | |
11530 | return 0; | |
11531 | } | |
11532 | _ACEOF | |
11533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11534 | if { (ac_try="$ac_link" | |
11535 | case "(($ac_try" in | |
11536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11537 | *) ac_try_echo=$ac_try;; | |
11538 | esac | |
11539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11540 | (eval "$ac_link") 2>conftest.er1 | |
11541 | ac_status=$? | |
11542 | grep -v '^ *+' conftest.er1 >conftest.err | |
11543 | rm -f conftest.er1 | |
11544 | cat conftest.err >&5 | |
11545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11546 | (exit $ac_status); } && { | |
11547 | test -z "$ac_c_werror_flag" || | |
11548 | test ! -s conftest.err | |
11549 | } && test -s conftest$ac_exeext && | |
11550 | $as_test_x conftest$ac_exeext; then | |
11551 | found=yes | |
11552 | else | |
11553 | echo "$as_me: failed program was:" >&5 | |
11554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11555 | ||
11556 | found=no | |
11557 | fi | |
11558 | ||
11559 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11560 | conftest$ac_exeext conftest.$ac_ext | |
11561 | LDFLAGS=$hold_ldflags | |
11562 | ||
11563 | if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then | |
11564 | found="no, IRIX ld uses -B,dynamic" | |
11565 | LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" | |
11566 | fi | |
11567 | ||
11568 | if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then | |
11569 | found="no, AIX ld uses -G -brtl" | |
11570 | LDFLAGS="${LDFLAGS} -Wl,-G,-brtl" | |
11571 | fi | |
11572 | ||
11573 | { echo "$as_me:$LINENO: result: $found" >&5 | |
11574 | echo "${ECHO_T}$found" >&6; } | |
11575 | ||
11576 | if test "$found" = yes; then | |
11577 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" | |
11578 | fi | |
11579 | ||
11580 | { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5 | |
11581 | echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; } | |
11582 | if test "$SGS" = "yes"; then | |
11583 | { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5 | |
11584 | echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; } | |
11585 | PICFLAGS="-KPIC -DPIC -G" | |
11586 | fi | |
11587 | ||
11588 | if test "$AppleGCC" = "yes"; then | |
11589 | { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5 | |
11590 | echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; } | |
11591 | PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" | |
11592 | fi | |
11593 | if test "$HPUX" = "yes" -a "$CC" != gcc; then | |
11594 | { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5 | |
11595 | echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; } | |
11596 | PICFLAGS="+z -r -q -n -c" | |
11597 | { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5 | |
11598 | echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; } | |
11599 | ||
11600 | if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then | |
11601 | { echo "$as_me:$LINENO: result: no" >&5 | |
11602 | echo "${ECHO_T}no" >&6; } | |
11603 | else | |
11604 | { echo "$as_me:$LINENO: result: yes" >&5 | |
11605 | echo "${ECHO_T}yes" >&6; } | |
11606 | PICFLAGS="$PICFLAGS +ESfic" | |
11607 | fi | |
11608 | ||
11609 | LDFLAGS="${LDFLAGS} -Wl,-E" | |
11610 | fi | |
11611 | if test "$Tru" = yes -a "$CC" != gcc; then | |
11612 | { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5 | |
11613 | echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; } | |
11614 | PICFLAGS="-shared -expect_unresolved '*' " | |
11615 | LDFLAGS="-call_shared" | |
11616 | fi | |
11617 | if test -z "$PICFLAGS"; then | |
11618 | if test "$ac_cv_c_compiler_gnu" = "yes"; then | |
11619 | { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5 | |
11620 | echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; } | |
11621 | PICFLAGS="-fPIC -DPIC -shared" | |
11622 | else | |
11623 | { echo "$as_me:$LINENO: result: no" >&5 | |
11624 | echo "${ECHO_T}no" >&6; } | |
11625 | shared_modules=no | |
11626 | fi | |
11627 | fi | |
11628 | fi | |
11629 | ||
11630 | # rpath, for finding libratbox.so at run time | |
11631 | hold_ldflags=$LDFLAGS | |
11632 | { echo "$as_me:$LINENO: checking for the ld -rpath flag" >&5 | |
11633 | echo $ECHO_N "checking for the ld -rpath flag... $ECHO_C" >&6; } | |
11634 | LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}" | |
11635 | cat >conftest.$ac_ext <<_ACEOF | |
11636 | /* confdefs.h. */ | |
11637 | _ACEOF | |
11638 | cat confdefs.h >>conftest.$ac_ext | |
11639 | cat >>conftest.$ac_ext <<_ACEOF | |
11640 | /* end confdefs.h. */ | |
11641 | ||
11642 | int | |
11643 | main () | |
11644 | { | |
11645 | int i; | |
11646 | ; | |
11647 | return 0; | |
11648 | } | |
11649 | _ACEOF | |
11650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11651 | if { (ac_try="$ac_link" | |
11652 | case "(($ac_try" in | |
11653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11654 | *) ac_try_echo=$ac_try;; | |
11655 | esac | |
11656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11657 | (eval "$ac_link") 2>conftest.er1 | |
11658 | ac_status=$? | |
11659 | grep -v '^ *+' conftest.er1 >conftest.err | |
11660 | rm -f conftest.er1 | |
11661 | cat conftest.err >&5 | |
11662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11663 | (exit $ac_status); } && { | |
11664 | test -z "$ac_c_werror_flag" || | |
11665 | test ! -s conftest.err | |
11666 | } && test -s conftest$ac_exeext && | |
11667 | $as_test_x conftest$ac_exeext; then | |
11668 | found=yes | |
11669 | else | |
11670 | echo "$as_me: failed program was:" >&5 | |
11671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11672 | ||
11673 | found=no | |
11674 | fi | |
11675 | ||
11676 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11677 | conftest$ac_exeext conftest.$ac_ext | |
11678 | LDFLAGS=$hold_ldflags | |
11679 | { echo "$as_me:$LINENO: result: $found" >&5 | |
11680 | echo "${ECHO_T}$found" >&6; } | |
11681 | if test "$found" = yes; then | |
11682 | LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}" | |
11683 | fi | |
11684 | ||
11685 | # This must be down here, or it will mess up checks like the ones | |
11686 | # for -Wl,-export-dynamic | |
11687 | # -- jilles | |
11688 | CWARNS="" | |
11689 | # Check whether --enable-warnings was given. | |
11690 | if test "${enable_warnings+set}" = set; then | |
11691 | enableval=$enable_warnings; | |
11692 | IRC_CFLAGS="$IRC_CFLAGS -O0" | |
11693 | CFLAGS="$IRC_CFLAGS" | |
11694 | ||
11695 | ||
11696 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5 | |
11697 | echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; } | |
11698 | if test "${GCC-no}" = yes | |
11699 | then | |
11700 | if test "${charybdis_cv_c_gcc_w_all+set}" = set; then | |
11701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11702 | else | |
11703 | ||
11704 | oldcflags="${CFLAGS-}" | |
11705 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
11706 | cat >conftest.$ac_ext <<_ACEOF | |
11707 | /* confdefs.h. */ | |
11708 | _ACEOF | |
11709 | cat confdefs.h >>conftest.$ac_ext | |
11710 | cat >>conftest.$ac_ext <<_ACEOF | |
11711 | /* end confdefs.h. */ | |
11712 | ||
11713 | #include <string.h> | |
11714 | #include <stdio.h> | |
11715 | int main(void); | |
11716 | ||
11717 | int | |
11718 | main () | |
11719 | { | |
11720 | ||
11721 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
11722 | ||
11723 | ; | |
11724 | return 0; | |
11725 | } | |
11726 | _ACEOF | |
11727 | rm -f conftest.$ac_objext | |
11728 | if { (ac_try="$ac_compile" | |
11729 | case "(($ac_try" in | |
11730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11731 | *) ac_try_echo=$ac_try;; | |
11732 | esac | |
11733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11734 | (eval "$ac_compile") 2>conftest.er1 | |
11735 | ac_status=$? | |
11736 | grep -v '^ *+' conftest.er1 >conftest.err | |
11737 | rm -f conftest.er1 | |
11738 | cat conftest.err >&5 | |
11739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11740 | (exit $ac_status); } && { | |
11741 | test -z "$ac_c_werror_flag" || | |
11742 | test ! -s conftest.err | |
11743 | } && test -s conftest.$ac_objext; then | |
11744 | charybdis_cv_c_gcc_w_all=yes | |
11745 | else | |
11746 | echo "$as_me: failed program was:" >&5 | |
11747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11748 | ||
11749 | charybdis_cv_c_gcc_w_all=no | |
11750 | fi | |
11751 | ||
11752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11753 | CFLAGS="${oldcflags}" | |
11754 | fi | |
11755 | ||
11756 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
11757 | CWARNS="${CWARNS}-Wall " | |
11758 | { echo "$as_me:$LINENO: result: ok" >&5 | |
11759 | echo "${ECHO_T}ok" >&6; } | |
11760 | else | |
11761 | charybdis_cv_c_gcc_w_all='' | |
11762 | { echo "$as_me:$LINENO: result: no" >&5 | |
11763 | echo "${ECHO_T}no" >&6; } | |
11764 | fi | |
11765 | else | |
11766 | { echo "$as_me:$LINENO: result: no" >&5 | |
11767 | echo "${ECHO_T}no" >&6; } | |
11768 | fi | |
11769 | ||
11770 | ||
11771 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5 | |
11772 | echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; } | |
11773 | if test "${GCC-no}" = yes | |
11774 | then | |
11775 | if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then | |
11776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11777 | else | |
11778 | ||
11779 | oldcflags="${CFLAGS-}" | |
11780 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
11781 | cat >conftest.$ac_ext <<_ACEOF | |
11782 | /* confdefs.h. */ | |
11783 | _ACEOF | |
11784 | cat confdefs.h >>conftest.$ac_ext | |
11785 | cat >>conftest.$ac_ext <<_ACEOF | |
11786 | /* end confdefs.h. */ | |
11787 | ||
11788 | #include <string.h> | |
11789 | #include <stdio.h> | |
11790 | int main(void); | |
11791 | ||
11792 | int | |
11793 | main () | |
11794 | { | |
11795 | ||
11796 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
11797 | ||
11798 | ; | |
11799 | return 0; | |
11800 | } | |
11801 | _ACEOF | |
11802 | rm -f conftest.$ac_objext | |
11803 | if { (ac_try="$ac_compile" | |
11804 | case "(($ac_try" in | |
11805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11806 | *) ac_try_echo=$ac_try;; | |
11807 | esac | |
11808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11809 | (eval "$ac_compile") 2>conftest.er1 | |
11810 | ac_status=$? | |
11811 | grep -v '^ *+' conftest.er1 >conftest.err | |
11812 | rm -f conftest.er1 | |
11813 | cat conftest.err >&5 | |
11814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11815 | (exit $ac_status); } && { | |
11816 | test -z "$ac_c_werror_flag" || | |
11817 | test ! -s conftest.err | |
11818 | } && test -s conftest.$ac_objext; then | |
11819 | charybdis_cv_c_gcc_w_pointer_arith=yes | |
11820 | else | |
11821 | echo "$as_me: failed program was:" >&5 | |
11822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11823 | ||
11824 | charybdis_cv_c_gcc_w_pointer_arith=no | |
11825 | fi | |
11826 | ||
11827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11828 | CFLAGS="${oldcflags}" | |
11829 | fi | |
11830 | ||
11831 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
11832 | CWARNS="${CWARNS}-Wpointer-arith " | |
11833 | { echo "$as_me:$LINENO: result: ok" >&5 | |
11834 | echo "${ECHO_T}ok" >&6; } | |
11835 | else | |
11836 | charybdis_cv_c_gcc_w_pointer_arith='' | |
11837 | { echo "$as_me:$LINENO: result: no" >&5 | |
11838 | echo "${ECHO_T}no" >&6; } | |
11839 | fi | |
11840 | else | |
11841 | { echo "$as_me:$LINENO: result: no" >&5 | |
11842 | echo "${ECHO_T}no" >&6; } | |
11843 | fi | |
11844 | ||
11845 | ||
11846 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 | |
11847 | echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; } | |
11848 | if test "${GCC-no}" = yes | |
11849 | then | |
11850 | if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then | |
11851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11852 | else | |
11853 | ||
11854 | oldcflags="${CFLAGS-}" | |
11855 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
11856 | cat >conftest.$ac_ext <<_ACEOF | |
11857 | /* confdefs.h. */ | |
11858 | _ACEOF | |
11859 | cat confdefs.h >>conftest.$ac_ext | |
11860 | cat >>conftest.$ac_ext <<_ACEOF | |
11861 | /* end confdefs.h. */ | |
11862 | ||
11863 | #include <string.h> | |
11864 | #include <stdio.h> | |
11865 | int main(void); | |
11866 | ||
11867 | int | |
11868 | main () | |
11869 | { | |
11870 | ||
11871 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
11872 | ||
11873 | ; | |
11874 | return 0; | |
11875 | } | |
11876 | _ACEOF | |
11877 | rm -f conftest.$ac_objext | |
11878 | if { (ac_try="$ac_compile" | |
11879 | case "(($ac_try" in | |
11880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11881 | *) ac_try_echo=$ac_try;; | |
11882 | esac | |
11883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11884 | (eval "$ac_compile") 2>conftest.er1 | |
11885 | ac_status=$? | |
11886 | grep -v '^ *+' conftest.er1 >conftest.err | |
11887 | rm -f conftest.er1 | |
11888 | cat conftest.err >&5 | |
11889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11890 | (exit $ac_status); } && { | |
11891 | test -z "$ac_c_werror_flag" || | |
11892 | test ! -s conftest.err | |
11893 | } && test -s conftest.$ac_objext; then | |
11894 | charybdis_cv_c_gcc_w_implicit=yes | |
11895 | else | |
11896 | echo "$as_me: failed program was:" >&5 | |
11897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11898 | ||
11899 | charybdis_cv_c_gcc_w_implicit=no | |
11900 | fi | |
11901 | ||
11902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11903 | CFLAGS="${oldcflags}" | |
11904 | fi | |
11905 | ||
11906 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
11907 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
11908 | { echo "$as_me:$LINENO: result: ok" >&5 | |
11909 | echo "${ECHO_T}ok" >&6; } | |
11910 | else | |
11911 | charybdis_cv_c_gcc_w_implicit='' | |
11912 | { echo "$as_me:$LINENO: result: no" >&5 | |
11913 | echo "${ECHO_T}no" >&6; } | |
11914 | fi | |
11915 | else | |
11916 | { echo "$as_me:$LINENO: result: no" >&5 | |
11917 | echo "${ECHO_T}no" >&6; } | |
11918 | fi | |
11919 | ||
11920 | ||
11921 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5 | |
11922 | echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; } | |
11923 | if test "${GCC-no}" = yes | |
11924 | then | |
11925 | if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then | |
11926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11927 | else | |
11928 | ||
11929 | oldcflags="${CFLAGS-}" | |
11930 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
11931 | cat >conftest.$ac_ext <<_ACEOF | |
11932 | /* confdefs.h. */ | |
11933 | _ACEOF | |
11934 | cat confdefs.h >>conftest.$ac_ext | |
11935 | cat >>conftest.$ac_ext <<_ACEOF | |
11936 | /* end confdefs.h. */ | |
11937 | ||
11938 | #include <string.h> | |
11939 | #include <stdio.h> | |
11940 | int main(void); | |
11941 | ||
11942 | int | |
11943 | main () | |
11944 | { | |
11945 | ||
11946 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
11947 | ||
11948 | ; | |
11949 | return 0; | |
11950 | } | |
11951 | _ACEOF | |
11952 | rm -f conftest.$ac_objext | |
11953 | if { (ac_try="$ac_compile" | |
11954 | case "(($ac_try" in | |
11955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11956 | *) ac_try_echo=$ac_try;; | |
11957 | esac | |
11958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11959 | (eval "$ac_compile") 2>conftest.er1 | |
11960 | ac_status=$? | |
11961 | grep -v '^ *+' conftest.er1 >conftest.err | |
11962 | rm -f conftest.er1 | |
11963 | cat conftest.err >&5 | |
11964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11965 | (exit $ac_status); } && { | |
11966 | test -z "$ac_c_werror_flag" || | |
11967 | test ! -s conftest.err | |
11968 | } && test -s conftest.$ac_objext; then | |
11969 | charybdis_cv_c_gcc_w_cast_align=yes | |
11970 | else | |
11971 | echo "$as_me: failed program was:" >&5 | |
11972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11973 | ||
11974 | charybdis_cv_c_gcc_w_cast_align=no | |
11975 | fi | |
11976 | ||
11977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11978 | CFLAGS="${oldcflags}" | |
11979 | fi | |
11980 | ||
11981 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
11982 | CWARNS="${CWARNS}-Wcast-align " | |
11983 | { echo "$as_me:$LINENO: result: ok" >&5 | |
11984 | echo "${ECHO_T}ok" >&6; } | |
11985 | else | |
11986 | charybdis_cv_c_gcc_w_cast_align='' | |
11987 | { echo "$as_me:$LINENO: result: no" >&5 | |
11988 | echo "${ECHO_T}no" >&6; } | |
11989 | fi | |
11990 | else | |
11991 | { echo "$as_me:$LINENO: result: no" >&5 | |
11992 | echo "${ECHO_T}no" >&6; } | |
11993 | fi | |
11994 | ||
11995 | ||
11996 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5 | |
11997 | echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; } | |
11998 | if test "${GCC-no}" = yes | |
11999 | then | |
12000 | if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then | |
12001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12002 | else | |
12003 | ||
12004 | oldcflags="${CFLAGS-}" | |
12005 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
12006 | cat >conftest.$ac_ext <<_ACEOF | |
12007 | /* confdefs.h. */ | |
12008 | _ACEOF | |
12009 | cat confdefs.h >>conftest.$ac_ext | |
12010 | cat >>conftest.$ac_ext <<_ACEOF | |
12011 | /* end confdefs.h. */ | |
12012 | ||
12013 | #include <string.h> | |
12014 | #include <stdio.h> | |
12015 | int main(void); | |
12016 | ||
12017 | int | |
12018 | main () | |
12019 | { | |
12020 | ||
12021 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12022 | ||
12023 | ; | |
12024 | return 0; | |
12025 | } | |
12026 | _ACEOF | |
12027 | rm -f conftest.$ac_objext | |
12028 | if { (ac_try="$ac_compile" | |
12029 | case "(($ac_try" in | |
12030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12031 | *) ac_try_echo=$ac_try;; | |
12032 | esac | |
12033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12034 | (eval "$ac_compile") 2>conftest.er1 | |
12035 | ac_status=$? | |
12036 | grep -v '^ *+' conftest.er1 >conftest.err | |
12037 | rm -f conftest.er1 | |
12038 | cat conftest.err >&5 | |
12039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12040 | (exit $ac_status); } && { | |
12041 | test -z "$ac_c_werror_flag" || | |
12042 | test ! -s conftest.err | |
12043 | } && test -s conftest.$ac_objext; then | |
12044 | charybdis_cv_c_gcc_w_cast_qual=yes | |
12045 | else | |
12046 | echo "$as_me: failed program was:" >&5 | |
12047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12048 | ||
12049 | charybdis_cv_c_gcc_w_cast_qual=no | |
12050 | fi | |
12051 | ||
12052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12053 | CFLAGS="${oldcflags}" | |
12054 | fi | |
12055 | ||
12056 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
12057 | CWARNS="${CWARNS}-Wcast-qual " | |
12058 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12059 | echo "${ECHO_T}ok" >&6; } | |
12060 | else | |
12061 | charybdis_cv_c_gcc_w_cast_qual='' | |
12062 | { echo "$as_me:$LINENO: result: no" >&5 | |
12063 | echo "${ECHO_T}no" >&6; } | |
12064 | fi | |
12065 | else | |
12066 | { echo "$as_me:$LINENO: result: no" >&5 | |
12067 | echo "${ECHO_T}no" >&6; } | |
12068 | fi | |
12069 | ||
12070 | ||
12071 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wwrite-strings" >&5 | |
12072 | echo $ECHO_N "checking GCC flag(s) -Wwrite-strings... $ECHO_C" >&6; } | |
12073 | if test "${GCC-no}" = yes | |
12074 | then | |
12075 | if test "${charybdis_cv_c_gcc_w_write_strings+set}" = set; then | |
12076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12077 | else | |
12078 | ||
12079 | oldcflags="${CFLAGS-}" | |
12080 | CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" | |
12081 | cat >conftest.$ac_ext <<_ACEOF | |
12082 | /* confdefs.h. */ | |
12083 | _ACEOF | |
12084 | cat confdefs.h >>conftest.$ac_ext | |
12085 | cat >>conftest.$ac_ext <<_ACEOF | |
12086 | /* end confdefs.h. */ | |
12087 | ||
12088 | #include <string.h> | |
12089 | #include <stdio.h> | |
12090 | int main(void); | |
12091 | ||
12092 | int | |
12093 | main () | |
12094 | { | |
12095 | ||
12096 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12097 | ||
12098 | ; | |
12099 | return 0; | |
12100 | } | |
12101 | _ACEOF | |
12102 | rm -f conftest.$ac_objext | |
12103 | if { (ac_try="$ac_compile" | |
12104 | case "(($ac_try" in | |
12105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12106 | *) ac_try_echo=$ac_try;; | |
12107 | esac | |
12108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12109 | (eval "$ac_compile") 2>conftest.er1 | |
12110 | ac_status=$? | |
12111 | grep -v '^ *+' conftest.er1 >conftest.err | |
12112 | rm -f conftest.er1 | |
12113 | cat conftest.err >&5 | |
12114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12115 | (exit $ac_status); } && { | |
12116 | test -z "$ac_c_werror_flag" || | |
12117 | test ! -s conftest.err | |
12118 | } && test -s conftest.$ac_objext; then | |
12119 | charybdis_cv_c_gcc_w_write_strings=yes | |
12120 | else | |
12121 | echo "$as_me: failed program was:" >&5 | |
12122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12123 | ||
12124 | charybdis_cv_c_gcc_w_write_strings=no | |
12125 | fi | |
12126 | ||
12127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12128 | CFLAGS="${oldcflags}" | |
12129 | fi | |
12130 | ||
12131 | if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then | |
12132 | CWARNS="${CWARNS}-Wwrite-strings " | |
12133 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12134 | echo "${ECHO_T}ok" >&6; } | |
12135 | else | |
12136 | charybdis_cv_c_gcc_w_write_strings='' | |
12137 | { echo "$as_me:$LINENO: result: no" >&5 | |
12138 | echo "${ECHO_T}no" >&6; } | |
12139 | fi | |
12140 | else | |
12141 | { echo "$as_me:$LINENO: result: no" >&5 | |
12142 | echo "${ECHO_T}no" >&6; } | |
12143 | fi | |
12144 | ||
12145 | ||
12146 | { echo "$as_me:$LINENO: checking GCC flag(s) -Werror-implicit-function-declaration" >&5 | |
12147 | echo $ECHO_N "checking GCC flag(s) -Werror-implicit-function-declaration... $ECHO_C" >&6; } | |
12148 | if test "${GCC-no}" = yes | |
12149 | then | |
12150 | if test "${charybdis_cv_c_gcc_w_error_implicit_function_declaration+set}" = set; then | |
12151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12152 | else | |
12153 | ||
12154 | oldcflags="${CFLAGS-}" | |
12155 | CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror" | |
12156 | cat >conftest.$ac_ext <<_ACEOF | |
12157 | /* confdefs.h. */ | |
12158 | _ACEOF | |
12159 | cat confdefs.h >>conftest.$ac_ext | |
12160 | cat >>conftest.$ac_ext <<_ACEOF | |
12161 | /* end confdefs.h. */ | |
12162 | ||
12163 | #include <string.h> | |
12164 | #include <stdio.h> | |
12165 | int main(void); | |
12166 | ||
12167 | int | |
12168 | main () | |
12169 | { | |
12170 | ||
12171 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12172 | ||
12173 | ; | |
12174 | return 0; | |
12175 | } | |
12176 | _ACEOF | |
12177 | rm -f conftest.$ac_objext | |
12178 | if { (ac_try="$ac_compile" | |
12179 | case "(($ac_try" in | |
12180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12181 | *) ac_try_echo=$ac_try;; | |
12182 | esac | |
12183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12184 | (eval "$ac_compile") 2>conftest.er1 | |
12185 | ac_status=$? | |
12186 | grep -v '^ *+' conftest.er1 >conftest.err | |
12187 | rm -f conftest.er1 | |
12188 | cat conftest.err >&5 | |
12189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12190 | (exit $ac_status); } && { | |
12191 | test -z "$ac_c_werror_flag" || | |
12192 | test ! -s conftest.err | |
12193 | } && test -s conftest.$ac_objext; then | |
12194 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes | |
12195 | else | |
12196 | echo "$as_me: failed program was:" >&5 | |
12197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12198 | ||
12199 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=no | |
12200 | fi | |
12201 | ||
12202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12203 | CFLAGS="${oldcflags}" | |
12204 | fi | |
12205 | ||
12206 | if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then | |
12207 | CWARNS="${CWARNS}-Werror-implicit-function-declaration " | |
12208 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12209 | echo "${ECHO_T}ok" >&6; } | |
12210 | else | |
12211 | charybdis_cv_c_gcc_w_error_implicit_function_declaration='' | |
12212 | { echo "$as_me:$LINENO: result: no" >&5 | |
12213 | echo "${ECHO_T}no" >&6; } | |
12214 | fi | |
12215 | else | |
12216 | { echo "$as_me:$LINENO: result: no" >&5 | |
12217 | echo "${ECHO_T}no" >&6; } | |
12218 | fi | |
12219 | ||
12220 | ||
12221 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 | |
12222 | echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; } | |
12223 | if test "${GCC-no}" = yes | |
12224 | then | |
12225 | if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then | |
12226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12227 | else | |
12228 | ||
12229 | oldcflags="${CFLAGS-}" | |
12230 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
12231 | cat >conftest.$ac_ext <<_ACEOF | |
12232 | /* confdefs.h. */ | |
12233 | _ACEOF | |
12234 | cat confdefs.h >>conftest.$ac_ext | |
12235 | cat >>conftest.$ac_ext <<_ACEOF | |
12236 | /* end confdefs.h. */ | |
12237 | ||
12238 | #include <string.h> | |
12239 | #include <stdio.h> | |
12240 | int main(void); | |
12241 | ||
12242 | int | |
12243 | main () | |
12244 | { | |
12245 | ||
12246 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12247 | ||
12248 | ; | |
12249 | return 0; | |
12250 | } | |
12251 | _ACEOF | |
12252 | rm -f conftest.$ac_objext | |
12253 | if { (ac_try="$ac_compile" | |
12254 | case "(($ac_try" in | |
12255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12256 | *) ac_try_echo=$ac_try;; | |
12257 | esac | |
12258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12259 | (eval "$ac_compile") 2>conftest.er1 | |
12260 | ac_status=$? | |
12261 | grep -v '^ *+' conftest.er1 >conftest.err | |
12262 | rm -f conftest.er1 | |
12263 | cat conftest.err >&5 | |
12264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12265 | (exit $ac_status); } && { | |
12266 | test -z "$ac_c_werror_flag" || | |
12267 | test ! -s conftest.err | |
12268 | } && test -s conftest.$ac_objext; then | |
12269 | charybdis_cv_c_gcc_prototypes=yes | |
12270 | else | |
12271 | echo "$as_me: failed program was:" >&5 | |
12272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12273 | ||
12274 | charybdis_cv_c_gcc_prototypes=no | |
12275 | fi | |
12276 | ||
12277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12278 | CFLAGS="${oldcflags}" | |
12279 | fi | |
12280 | ||
12281 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
12282 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
12283 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12284 | echo "${ECHO_T}ok" >&6; } | |
12285 | else | |
12286 | charybdis_cv_c_gcc_prototypes='' | |
12287 | { echo "$as_me:$LINENO: result: no" >&5 | |
12288 | echo "${ECHO_T}no" >&6; } | |
12289 | fi | |
12290 | else | |
12291 | { echo "$as_me:$LINENO: result: no" >&5 | |
12292 | echo "${ECHO_T}no" >&6; } | |
12293 | fi | |
12294 | ||
12295 | ||
12296 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5 | |
12297 | echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; } | |
12298 | if test "${GCC-no}" = yes | |
12299 | then | |
12300 | if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then | |
12301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12302 | else | |
12303 | ||
12304 | oldcflags="${CFLAGS-}" | |
12305 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
12306 | cat >conftest.$ac_ext <<_ACEOF | |
12307 | /* confdefs.h. */ | |
12308 | _ACEOF | |
12309 | cat confdefs.h >>conftest.$ac_ext | |
12310 | cat >>conftest.$ac_ext <<_ACEOF | |
12311 | /* end confdefs.h. */ | |
12312 | ||
12313 | #include <string.h> | |
12314 | #include <stdio.h> | |
12315 | int main(void); | |
12316 | ||
12317 | int | |
12318 | main () | |
12319 | { | |
12320 | ||
12321 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12322 | ||
12323 | ; | |
12324 | return 0; | |
12325 | } | |
12326 | _ACEOF | |
12327 | rm -f conftest.$ac_objext | |
12328 | if { (ac_try="$ac_compile" | |
12329 | case "(($ac_try" in | |
12330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12331 | *) ac_try_echo=$ac_try;; | |
12332 | esac | |
12333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12334 | (eval "$ac_compile") 2>conftest.er1 | |
12335 | ac_status=$? | |
12336 | grep -v '^ *+' conftest.er1 >conftest.err | |
12337 | rm -f conftest.er1 | |
12338 | cat conftest.err >&5 | |
12339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12340 | (exit $ac_status); } && { | |
12341 | test -z "$ac_c_werror_flag" || | |
12342 | test ! -s conftest.err | |
12343 | } && test -s conftest.$ac_objext; then | |
12344 | charybdis_cv_c_gcc_parenthesis=yes | |
12345 | else | |
12346 | echo "$as_me: failed program was:" >&5 | |
12347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12348 | ||
12349 | charybdis_cv_c_gcc_parenthesis=no | |
12350 | fi | |
12351 | ||
12352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12353 | CFLAGS="${oldcflags}" | |
12354 | fi | |
12355 | ||
12356 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
12357 | CWARNS="${CWARNS}-Wparenthesis " | |
12358 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12359 | echo "${ECHO_T}ok" >&6; } | |
12360 | else | |
12361 | charybdis_cv_c_gcc_parenthesis='' | |
12362 | { echo "$as_me:$LINENO: result: no" >&5 | |
12363 | echo "${ECHO_T}no" >&6; } | |
12364 | fi | |
12365 | else | |
12366 | { echo "$as_me:$LINENO: result: no" >&5 | |
12367 | echo "${ECHO_T}no" >&6; } | |
12368 | fi | |
12369 | ||
12370 | ||
12371 | { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5 | |
12372 | echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; } | |
12373 | if test "${GCC-no}" = yes | |
12374 | then | |
12375 | if test "${charybdis_cv_c_gcc_w+set}" = set; then | |
12376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12377 | else | |
12378 | ||
12379 | oldcflags="${CFLAGS-}" | |
12380 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
12381 | cat >conftest.$ac_ext <<_ACEOF | |
12382 | /* confdefs.h. */ | |
12383 | _ACEOF | |
12384 | cat confdefs.h >>conftest.$ac_ext | |
12385 | cat >>conftest.$ac_ext <<_ACEOF | |
12386 | /* end confdefs.h. */ | |
12387 | ||
12388 | #include <string.h> | |
12389 | #include <stdio.h> | |
12390 | int main(void); | |
12391 | ||
12392 | int | |
12393 | main () | |
12394 | { | |
12395 | ||
12396 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12397 | ||
12398 | ; | |
12399 | return 0; | |
12400 | } | |
12401 | _ACEOF | |
12402 | rm -f conftest.$ac_objext | |
12403 | if { (ac_try="$ac_compile" | |
12404 | case "(($ac_try" in | |
12405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12406 | *) ac_try_echo=$ac_try;; | |
12407 | esac | |
12408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12409 | (eval "$ac_compile") 2>conftest.er1 | |
12410 | ac_status=$? | |
12411 | grep -v '^ *+' conftest.er1 >conftest.err | |
12412 | rm -f conftest.er1 | |
12413 | cat conftest.err >&5 | |
12414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12415 | (exit $ac_status); } && { | |
12416 | test -z "$ac_c_werror_flag" || | |
12417 | test ! -s conftest.err | |
12418 | } && test -s conftest.$ac_objext; then | |
12419 | charybdis_cv_c_gcc_w=yes | |
12420 | else | |
12421 | echo "$as_me: failed program was:" >&5 | |
12422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12423 | ||
12424 | charybdis_cv_c_gcc_w=no | |
12425 | fi | |
12426 | ||
12427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12428 | CFLAGS="${oldcflags}" | |
12429 | fi | |
12430 | ||
12431 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
12432 | CWARNS="${CWARNS}-W -Wno-unused " | |
12433 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12434 | echo "${ECHO_T}ok" >&6; } | |
12435 | else | |
12436 | charybdis_cv_c_gcc_w='' | |
12437 | { echo "$as_me:$LINENO: result: no" >&5 | |
12438 | echo "${ECHO_T}no" >&6; } | |
12439 | fi | |
12440 | else | |
12441 | { echo "$as_me:$LINENO: result: no" >&5 | |
12442 | echo "${ECHO_T}no" >&6; } | |
12443 | fi | |
12444 | ||
12445 | ||
12446 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5 | |
12447 | echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; } | |
12448 | if test "${GCC-no}" = yes | |
12449 | then | |
12450 | if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then | |
12451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12452 | else | |
12453 | ||
12454 | oldcflags="${CFLAGS-}" | |
12455 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
12456 | cat >conftest.$ac_ext <<_ACEOF | |
12457 | /* confdefs.h. */ | |
12458 | _ACEOF | |
12459 | cat confdefs.h >>conftest.$ac_ext | |
12460 | cat >>conftest.$ac_ext <<_ACEOF | |
12461 | /* end confdefs.h. */ | |
12462 | ||
12463 | #include <string.h> | |
12464 | #include <stdio.h> | |
12465 | int main(void); | |
12466 | ||
12467 | int | |
12468 | main () | |
12469 | { | |
12470 | ||
12471 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12472 | ||
12473 | ; | |
12474 | return 0; | |
12475 | } | |
12476 | _ACEOF | |
12477 | rm -f conftest.$ac_objext | |
12478 | if { (ac_try="$ac_compile" | |
12479 | case "(($ac_try" in | |
12480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12481 | *) ac_try_echo=$ac_try;; | |
12482 | esac | |
12483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12484 | (eval "$ac_compile") 2>conftest.er1 | |
12485 | ac_status=$? | |
12486 | grep -v '^ *+' conftest.er1 >conftest.err | |
12487 | rm -f conftest.er1 | |
12488 | cat conftest.err >&5 | |
12489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12490 | (exit $ac_status); } && { | |
12491 | test -z "$ac_c_werror_flag" || | |
12492 | test ! -s conftest.err | |
12493 | } && test -s conftest.$ac_objext; then | |
12494 | charybdis_cv_c_gcc_w_extra=yes | |
12495 | else | |
12496 | echo "$as_me: failed program was:" >&5 | |
12497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12498 | ||
12499 | charybdis_cv_c_gcc_w_extra=no | |
12500 | fi | |
12501 | ||
12502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12503 | CFLAGS="${oldcflags}" | |
12504 | fi | |
12505 | ||
12506 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
12507 | CWARNS="${CWARNS}-Wextra " | |
12508 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12509 | echo "${ECHO_T}ok" >&6; } | |
12510 | else | |
12511 | charybdis_cv_c_gcc_w_extra='' | |
12512 | { echo "$as_me:$LINENO: result: no" >&5 | |
12513 | echo "${ECHO_T}no" >&6; } | |
12514 | fi | |
12515 | else | |
12516 | { echo "$as_me:$LINENO: result: no" >&5 | |
12517 | echo "${ECHO_T}no" >&6; } | |
12518 | fi | |
12519 | ||
12520 | ||
12521 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5 | |
12522 | echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; } | |
12523 | if test "${GCC-no}" = yes | |
12524 | then | |
12525 | if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then | |
12526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12527 | else | |
12528 | ||
12529 | oldcflags="${CFLAGS-}" | |
12530 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
12531 | cat >conftest.$ac_ext <<_ACEOF | |
12532 | /* confdefs.h. */ | |
12533 | _ACEOF | |
12534 | cat confdefs.h >>conftest.$ac_ext | |
12535 | cat >>conftest.$ac_ext <<_ACEOF | |
12536 | /* end confdefs.h. */ | |
12537 | ||
12538 | #include <string.h> | |
12539 | #include <stdio.h> | |
12540 | int main(void); | |
12541 | ||
12542 | int | |
12543 | main () | |
12544 | { | |
12545 | ||
12546 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12547 | ||
12548 | ; | |
12549 | return 0; | |
12550 | } | |
12551 | _ACEOF | |
12552 | rm -f conftest.$ac_objext | |
12553 | if { (ac_try="$ac_compile" | |
12554 | case "(($ac_try" in | |
12555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12556 | *) ac_try_echo=$ac_try;; | |
12557 | esac | |
12558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12559 | (eval "$ac_compile") 2>conftest.er1 | |
12560 | ac_status=$? | |
12561 | grep -v '^ *+' conftest.er1 >conftest.err | |
12562 | rm -f conftest.er1 | |
12563 | cat conftest.err >&5 | |
12564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12565 | (exit $ac_status); } && { | |
12566 | test -z "$ac_c_werror_flag" || | |
12567 | test ! -s conftest.err | |
12568 | } && test -s conftest.$ac_objext; then | |
12569 | charybdis_cv_c_gcc_w_shadow=yes | |
12570 | else | |
12571 | echo "$as_me: failed program was:" >&5 | |
12572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12573 | ||
12574 | charybdis_cv_c_gcc_w_shadow=no | |
12575 | fi | |
12576 | ||
12577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12578 | CFLAGS="${oldcflags}" | |
12579 | fi | |
12580 | ||
12581 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
12582 | CWARNS="${CWARNS}-Wshadow " | |
12583 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12584 | echo "${ECHO_T}ok" >&6; } | |
12585 | else | |
12586 | charybdis_cv_c_gcc_w_shadow='' | |
12587 | { echo "$as_me:$LINENO: result: no" >&5 | |
12588 | echo "${ECHO_T}no" >&6; } | |
12589 | fi | |
12590 | else | |
12591 | { echo "$as_me:$LINENO: result: no" >&5 | |
12592 | echo "${ECHO_T}no" >&6; } | |
12593 | fi | |
12594 | ||
12595 | ||
12596 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5 | |
12597 | echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; } | |
12598 | if test "${GCC-no}" = yes | |
12599 | then | |
12600 | if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then | |
12601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12602 | else | |
12603 | ||
12604 | oldcflags="${CFLAGS-}" | |
12605 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
12606 | cat >conftest.$ac_ext <<_ACEOF | |
12607 | /* confdefs.h. */ | |
12608 | _ACEOF | |
12609 | cat confdefs.h >>conftest.$ac_ext | |
12610 | cat >>conftest.$ac_ext <<_ACEOF | |
12611 | /* end confdefs.h. */ | |
12612 | ||
12613 | #include <string.h> | |
12614 | #include <stdio.h> | |
12615 | int main(void); | |
12616 | ||
12617 | int | |
12618 | main () | |
12619 | { | |
12620 | ||
12621 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12622 | ||
12623 | ; | |
12624 | return 0; | |
12625 | } | |
12626 | _ACEOF | |
12627 | rm -f conftest.$ac_objext | |
12628 | if { (ac_try="$ac_compile" | |
12629 | case "(($ac_try" in | |
12630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12631 | *) ac_try_echo=$ac_try;; | |
12632 | esac | |
12633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12634 | (eval "$ac_compile") 2>conftest.er1 | |
12635 | ac_status=$? | |
12636 | grep -v '^ *+' conftest.er1 >conftest.err | |
12637 | rm -f conftest.er1 | |
12638 | cat conftest.err >&5 | |
12639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12640 | (exit $ac_status); } && { | |
12641 | test -z "$ac_c_werror_flag" || | |
12642 | test ! -s conftest.err | |
12643 | } && test -s conftest.$ac_objext; then | |
12644 | charybdis_cv_c_gcc_w_missing_noreturn=yes | |
12645 | else | |
12646 | echo "$as_me: failed program was:" >&5 | |
12647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12648 | ||
12649 | charybdis_cv_c_gcc_w_missing_noreturn=no | |
12650 | fi | |
12651 | ||
12652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12653 | CFLAGS="${oldcflags}" | |
12654 | fi | |
12655 | ||
12656 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
12657 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
12658 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12659 | echo "${ECHO_T}ok" >&6; } | |
12660 | else | |
12661 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
12662 | { echo "$as_me:$LINENO: result: no" >&5 | |
12663 | echo "${ECHO_T}no" >&6; } | |
12664 | fi | |
12665 | else | |
12666 | { echo "$as_me:$LINENO: result: no" >&5 | |
12667 | echo "${ECHO_T}no" >&6; } | |
12668 | fi | |
12669 | ||
12670 | ||
12671 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5 | |
12672 | echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; } | |
12673 | if test "${GCC-no}" = yes | |
12674 | then | |
12675 | if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then | |
12676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12677 | else | |
12678 | ||
12679 | oldcflags="${CFLAGS-}" | |
12680 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
12681 | cat >conftest.$ac_ext <<_ACEOF | |
12682 | /* confdefs.h. */ | |
12683 | _ACEOF | |
12684 | cat confdefs.h >>conftest.$ac_ext | |
12685 | cat >>conftest.$ac_ext <<_ACEOF | |
12686 | /* end confdefs.h. */ | |
12687 | ||
12688 | #include <string.h> | |
12689 | #include <stdio.h> | |
12690 | int main(void); | |
12691 | ||
12692 | int | |
12693 | main () | |
12694 | { | |
12695 | ||
12696 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12697 | ||
12698 | ; | |
12699 | return 0; | |
12700 | } | |
12701 | _ACEOF | |
12702 | rm -f conftest.$ac_objext | |
12703 | if { (ac_try="$ac_compile" | |
12704 | case "(($ac_try" in | |
12705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12706 | *) ac_try_echo=$ac_try;; | |
12707 | esac | |
12708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12709 | (eval "$ac_compile") 2>conftest.er1 | |
12710 | ac_status=$? | |
12711 | grep -v '^ *+' conftest.er1 >conftest.err | |
12712 | rm -f conftest.er1 | |
12713 | cat conftest.err >&5 | |
12714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12715 | (exit $ac_status); } && { | |
12716 | test -z "$ac_c_werror_flag" || | |
12717 | test ! -s conftest.err | |
12718 | } && test -s conftest.$ac_objext; then | |
12719 | charybdis_cv_c_gcc_w_undef=yes | |
12720 | else | |
12721 | echo "$as_me: failed program was:" >&5 | |
12722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12723 | ||
12724 | charybdis_cv_c_gcc_w_undef=no | |
12725 | fi | |
12726 | ||
12727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12728 | CFLAGS="${oldcflags}" | |
12729 | fi | |
12730 | ||
12731 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
12732 | CWARNS="${CWARNS}-Wundef " | |
12733 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12734 | echo "${ECHO_T}ok" >&6; } | |
12735 | else | |
12736 | charybdis_cv_c_gcc_w_undef='' | |
12737 | { echo "$as_me:$LINENO: result: no" >&5 | |
12738 | echo "${ECHO_T}no" >&6; } | |
12739 | fi | |
12740 | else | |
12741 | { echo "$as_me:$LINENO: result: no" >&5 | |
12742 | echo "${ECHO_T}no" >&6; } | |
12743 | fi | |
12744 | ||
12745 | ||
12746 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5 | |
12747 | echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; } | |
12748 | if test "${GCC-no}" = yes | |
12749 | then | |
12750 | if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then | |
12751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12752 | else | |
12753 | ||
12754 | oldcflags="${CFLAGS-}" | |
12755 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
12756 | cat >conftest.$ac_ext <<_ACEOF | |
12757 | /* confdefs.h. */ | |
12758 | _ACEOF | |
12759 | cat confdefs.h >>conftest.$ac_ext | |
12760 | cat >>conftest.$ac_ext <<_ACEOF | |
12761 | /* end confdefs.h. */ | |
12762 | ||
12763 | #include <string.h> | |
12764 | #include <stdio.h> | |
12765 | int main(void); | |
12766 | ||
12767 | int | |
12768 | main () | |
12769 | { | |
12770 | ||
12771 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12772 | ||
12773 | ; | |
12774 | return 0; | |
12775 | } | |
12776 | _ACEOF | |
12777 | rm -f conftest.$ac_objext | |
12778 | if { (ac_try="$ac_compile" | |
12779 | case "(($ac_try" in | |
12780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12781 | *) ac_try_echo=$ac_try;; | |
12782 | esac | |
12783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12784 | (eval "$ac_compile") 2>conftest.er1 | |
12785 | ac_status=$? | |
12786 | grep -v '^ *+' conftest.er1 >conftest.err | |
12787 | rm -f conftest.er1 | |
12788 | cat conftest.err >&5 | |
12789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12790 | (exit $ac_status); } && { | |
12791 | test -z "$ac_c_werror_flag" || | |
12792 | test ! -s conftest.err | |
12793 | } && test -s conftest.$ac_objext; then | |
12794 | charybdis_cv_c_gcc_w_packed=yes | |
12795 | else | |
12796 | echo "$as_me: failed program was:" >&5 | |
12797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12798 | ||
12799 | charybdis_cv_c_gcc_w_packed=no | |
12800 | fi | |
12801 | ||
12802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12803 | CFLAGS="${oldcflags}" | |
12804 | fi | |
12805 | ||
12806 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
12807 | CWARNS="${CWARNS}-Wpacked " | |
12808 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12809 | echo "${ECHO_T}ok" >&6; } | |
12810 | else | |
12811 | charybdis_cv_c_gcc_w_packed='' | |
12812 | { echo "$as_me:$LINENO: result: no" >&5 | |
12813 | echo "${ECHO_T}no" >&6; } | |
12814 | fi | |
12815 | else | |
12816 | { echo "$as_me:$LINENO: result: no" >&5 | |
12817 | echo "${ECHO_T}no" >&6; } | |
12818 | fi | |
12819 | ||
12820 | ||
12821 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5 | |
12822 | echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; } | |
12823 | if test "${GCC-no}" = yes | |
12824 | then | |
12825 | if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then | |
12826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12827 | else | |
12828 | ||
12829 | oldcflags="${CFLAGS-}" | |
12830 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
12831 | cat >conftest.$ac_ext <<_ACEOF | |
12832 | /* confdefs.h. */ | |
12833 | _ACEOF | |
12834 | cat confdefs.h >>conftest.$ac_ext | |
12835 | cat >>conftest.$ac_ext <<_ACEOF | |
12836 | /* end confdefs.h. */ | |
12837 | ||
12838 | #include <string.h> | |
12839 | #include <stdio.h> | |
12840 | int main(void); | |
12841 | ||
12842 | int | |
12843 | main () | |
12844 | { | |
12845 | ||
12846 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12847 | ||
12848 | ; | |
12849 | return 0; | |
12850 | } | |
12851 | _ACEOF | |
12852 | rm -f conftest.$ac_objext | |
12853 | if { (ac_try="$ac_compile" | |
12854 | case "(($ac_try" in | |
12855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12856 | *) ac_try_echo=$ac_try;; | |
12857 | esac | |
12858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12859 | (eval "$ac_compile") 2>conftest.er1 | |
12860 | ac_status=$? | |
12861 | grep -v '^ *+' conftest.er1 >conftest.err | |
12862 | rm -f conftest.er1 | |
12863 | cat conftest.err >&5 | |
12864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12865 | (exit $ac_status); } && { | |
12866 | test -z "$ac_c_werror_flag" || | |
12867 | test ! -s conftest.err | |
12868 | } && test -s conftest.$ac_objext; then | |
12869 | charybdis_cv_c_gcc_w_nested_externs=yes | |
12870 | else | |
12871 | echo "$as_me: failed program was:" >&5 | |
12872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12873 | ||
12874 | charybdis_cv_c_gcc_w_nested_externs=no | |
12875 | fi | |
12876 | ||
12877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12878 | CFLAGS="${oldcflags}" | |
12879 | fi | |
12880 | ||
12881 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
12882 | CWARNS="${CWARNS}-Wnested-externs " | |
12883 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12884 | echo "${ECHO_T}ok" >&6; } | |
12885 | else | |
12886 | charybdis_cv_c_gcc_w_nested_externs='' | |
12887 | { echo "$as_me:$LINENO: result: no" >&5 | |
12888 | echo "${ECHO_T}no" >&6; } | |
12889 | fi | |
12890 | else | |
12891 | { echo "$as_me:$LINENO: result: no" >&5 | |
12892 | echo "${ECHO_T}no" >&6; } | |
12893 | fi | |
12894 | ||
12895 | ||
12896 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5 | |
12897 | echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6; } | |
12898 | if test "${GCC-no}" = yes | |
12899 | then | |
12900 | if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then | |
12901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12902 | else | |
12903 | ||
12904 | oldcflags="${CFLAGS-}" | |
12905 | CFLAGS="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror" | |
12906 | cat >conftest.$ac_ext <<_ACEOF | |
12907 | /* confdefs.h. */ | |
12908 | _ACEOF | |
12909 | cat confdefs.h >>conftest.$ac_ext | |
12910 | cat >>conftest.$ac_ext <<_ACEOF | |
12911 | /* end confdefs.h. */ | |
12912 | ||
12913 | #include <string.h> | |
12914 | #include <stdio.h> | |
12915 | int main(void); | |
12916 | ||
12917 | int | |
12918 | main () | |
12919 | { | |
12920 | ||
12921 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12922 | ||
12923 | ; | |
12924 | return 0; | |
12925 | } | |
12926 | _ACEOF | |
12927 | rm -f conftest.$ac_objext | |
12928 | if { (ac_try="$ac_compile" | |
12929 | case "(($ac_try" in | |
12930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12931 | *) ac_try_echo=$ac_try;; | |
12932 | esac | |
12933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12934 | (eval "$ac_compile") 2>conftest.er1 | |
12935 | ac_status=$? | |
12936 | grep -v '^ *+' conftest.er1 >conftest.err | |
12937 | rm -f conftest.er1 | |
12938 | cat conftest.err >&5 | |
12939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12940 | (exit $ac_status); } && { | |
12941 | test -z "$ac_c_werror_flag" || | |
12942 | test ! -s conftest.err | |
12943 | } && test -s conftest.$ac_objext; then | |
12944 | charybdis_cv_c_gcc_w_bad_function_cast=yes | |
12945 | else | |
12946 | echo "$as_me: failed program was:" >&5 | |
12947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12948 | ||
12949 | charybdis_cv_c_gcc_w_bad_function_cast=no | |
12950 | fi | |
12951 | ||
12952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12953 | CFLAGS="${oldcflags}" | |
12954 | fi | |
12955 | ||
12956 | if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes; then | |
12957 | CWARNS="${CWARNS}-Wbad-function-cast " | |
12958 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12959 | echo "${ECHO_T}ok" >&6; } | |
12960 | else | |
12961 | charybdis_cv_c_gcc_w_bad_function_cast='' | |
12962 | { echo "$as_me:$LINENO: result: no" >&5 | |
12963 | echo "${ECHO_T}no" >&6; } | |
12964 | fi | |
12965 | else | |
12966 | { echo "$as_me:$LINENO: result: no" >&5 | |
12967 | echo "${ECHO_T}no" >&6; } | |
12968 | fi | |
12969 | ||
12970 | ||
12971 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 | |
12972 | echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; } | |
12973 | if test "${GCC-no}" = yes | |
12974 | then | |
12975 | if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then | |
12976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12977 | else | |
12978 | ||
12979 | oldcflags="${CFLAGS-}" | |
12980 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
12981 | cat >conftest.$ac_ext <<_ACEOF | |
12982 | /* confdefs.h. */ | |
12983 | _ACEOF | |
12984 | cat confdefs.h >>conftest.$ac_ext | |
12985 | cat >>conftest.$ac_ext <<_ACEOF | |
12986 | /* end confdefs.h. */ | |
12987 | ||
12988 | #include <string.h> | |
12989 | #include <stdio.h> | |
12990 | int main(void); | |
12991 | ||
12992 | int | |
12993 | main () | |
12994 | { | |
12995 | ||
12996 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12997 | ||
12998 | ; | |
12999 | return 0; | |
13000 | } | |
13001 | _ACEOF | |
13002 | rm -f conftest.$ac_objext | |
13003 | if { (ac_try="$ac_compile" | |
13004 | case "(($ac_try" in | |
13005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13006 | *) ac_try_echo=$ac_try;; | |
13007 | esac | |
13008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13009 | (eval "$ac_compile") 2>conftest.er1 | |
13010 | ac_status=$? | |
13011 | grep -v '^ *+' conftest.er1 >conftest.err | |
13012 | rm -f conftest.er1 | |
13013 | cat conftest.err >&5 | |
13014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13015 | (exit $ac_status); } && { | |
13016 | test -z "$ac_c_werror_flag" || | |
13017 | test ! -s conftest.err | |
13018 | } && test -s conftest.$ac_objext; then | |
13019 | charybdis_cv_c_gcc_w_unused=yes | |
13020 | else | |
13021 | echo "$as_me: failed program was:" >&5 | |
13022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13023 | ||
13024 | charybdis_cv_c_gcc_w_unused=no | |
13025 | fi | |
13026 | ||
13027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13028 | CFLAGS="${oldcflags}" | |
13029 | fi | |
13030 | ||
13031 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
13032 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
13033 | { echo "$as_me:$LINENO: result: ok" >&5 | |
13034 | echo "${ECHO_T}ok" >&6; } | |
13035 | else | |
13036 | charybdis_cv_c_gcc_w_unused='' | |
13037 | { echo "$as_me:$LINENO: result: no" >&5 | |
13038 | echo "${ECHO_T}no" >&6; } | |
13039 | fi | |
13040 | else | |
13041 | { echo "$as_me:$LINENO: result: no" >&5 | |
13042 | echo "${ECHO_T}no" >&6; } | |
13043 | fi | |
13044 | ||
13045 | ||
13046 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5 | |
13047 | echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; } | |
13048 | if test "${GCC-no}" = yes | |
13049 | then | |
13050 | if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then | |
13051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13052 | else | |
13053 | ||
13054 | oldcflags="${CFLAGS-}" | |
13055 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
13056 | cat >conftest.$ac_ext <<_ACEOF | |
13057 | /* confdefs.h. */ | |
13058 | _ACEOF | |
13059 | cat confdefs.h >>conftest.$ac_ext | |
13060 | cat >>conftest.$ac_ext <<_ACEOF | |
13061 | /* end confdefs.h. */ | |
13062 | ||
13063 | #include <string.h> | |
13064 | #include <stdio.h> | |
13065 | int main(void); | |
13066 | ||
13067 | int | |
13068 | main () | |
13069 | { | |
13070 | ||
13071 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
13072 | ||
13073 | ; | |
13074 | return 0; | |
13075 | } | |
13076 | _ACEOF | |
13077 | rm -f conftest.$ac_objext | |
13078 | if { (ac_try="$ac_compile" | |
13079 | case "(($ac_try" in | |
13080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13081 | *) ac_try_echo=$ac_try;; | |
13082 | esac | |
13083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13084 | (eval "$ac_compile") 2>conftest.er1 | |
13085 | ac_status=$? | |
13086 | grep -v '^ *+' conftest.er1 >conftest.err | |
13087 | rm -f conftest.er1 | |
13088 | cat conftest.err >&5 | |
13089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13090 | (exit $ac_status); } && { | |
13091 | test -z "$ac_c_werror_flag" || | |
13092 | test ! -s conftest.err | |
13093 | } && test -s conftest.$ac_objext; then | |
13094 | charybdis_cv_c_gcc_w_redundant_decls=yes | |
13095 | else | |
13096 | echo "$as_me: failed program was:" >&5 | |
13097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13098 | ||
13099 | charybdis_cv_c_gcc_w_redundant_decls=no | |
13100 | fi | |
13101 | ||
13102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13103 | CFLAGS="${oldcflags}" | |
13104 | fi | |
13105 | ||
13106 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
13107 | CWARNS="${CWARNS}-Wredundant-decls " | |
13108 | { echo "$as_me:$LINENO: result: ok" >&5 | |
13109 | echo "${ECHO_T}ok" >&6; } | |
13110 | else | |
13111 | charybdis_cv_c_gcc_w_redundant_decls='' | |
13112 | { echo "$as_me:$LINENO: result: no" >&5 | |
13113 | echo "${ECHO_T}no" >&6; } | |
13114 | fi | |
13115 | else | |
13116 | { echo "$as_me:$LINENO: result: no" >&5 | |
13117 | echo "${ECHO_T}no" >&6; } | |
13118 | fi | |
13119 | ||
13120 | ||
13121 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5 | |
13122 | echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; } | |
13123 | if test "${GCC-no}" = yes | |
13124 | then | |
13125 | if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then | |
13126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13127 | else | |
13128 | ||
13129 | oldcflags="${CFLAGS-}" | |
13130 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
13131 | cat >conftest.$ac_ext <<_ACEOF | |
13132 | /* confdefs.h. */ | |
13133 | _ACEOF | |
13134 | cat confdefs.h >>conftest.$ac_ext | |
13135 | cat >>conftest.$ac_ext <<_ACEOF | |
13136 | /* end confdefs.h. */ | |
13137 | ||
13138 | #include <string.h> | |
13139 | #include <stdio.h> | |
13140 | int main(void); | |
13141 | ||
13142 | int | |
13143 | main () | |
13144 | { | |
13145 | ||
13146 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
13147 | ||
13148 | ; | |
13149 | return 0; | |
13150 | } | |
13151 | _ACEOF | |
13152 | rm -f conftest.$ac_objext | |
13153 | if { (ac_try="$ac_compile" | |
13154 | case "(($ac_try" in | |
13155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13156 | *) ac_try_echo=$ac_try;; | |
13157 | esac | |
13158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13159 | (eval "$ac_compile") 2>conftest.er1 | |
13160 | ac_status=$? | |
13161 | grep -v '^ *+' conftest.er1 >conftest.err | |
13162 | rm -f conftest.er1 | |
13163 | cat conftest.err >&5 | |
13164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13165 | (exit $ac_status); } && { | |
13166 | test -z "$ac_c_werror_flag" || | |
13167 | test ! -s conftest.err | |
13168 | } && test -s conftest.$ac_objext; then | |
13169 | charybdis_cv_c_gcc_w_float_equal=yes | |
13170 | else | |
13171 | echo "$as_me: failed program was:" >&5 | |
13172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13173 | ||
13174 | charybdis_cv_c_gcc_w_float_equal=no | |
13175 | fi | |
13176 | ||
13177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13178 | CFLAGS="${oldcflags}" | |
13179 | fi | |
13180 | ||
13181 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
13182 | CWARNS="${CWARNS}-Wfloat-equal " | |
13183 | { echo "$as_me:$LINENO: result: ok" >&5 | |
13184 | echo "${ECHO_T}ok" >&6; } | |
13185 | else | |
13186 | charybdis_cv_c_gcc_w_float_equal='' | |
13187 | { echo "$as_me:$LINENO: result: no" >&5 | |
13188 | echo "${ECHO_T}no" >&6; } | |
13189 | fi | |
13190 | else | |
13191 | { echo "$as_me:$LINENO: result: no" >&5 | |
13192 | echo "${ECHO_T}no" >&6; } | |
13193 | fi | |
13194 | ||
13195 | ||
13196 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat -Wformat-y2k -Wformat-security" >&5 | |
13197 | echo $ECHO_N "checking GCC flag(s) -Wformat -Wformat-y2k -Wformat-security... $ECHO_C" >&6; } | |
13198 | if test "${GCC-no}" = yes | |
13199 | then | |
13200 | if test "${charybdis_cv_c_gcc_w_format+set}" = set; then | |
13201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13202 | else | |
13203 | ||
13204 | oldcflags="${CFLAGS-}" | |
13205 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wformat-security -Werror" | |
13206 | cat >conftest.$ac_ext <<_ACEOF | |
13207 | /* confdefs.h. */ | |
13208 | _ACEOF | |
13209 | cat confdefs.h >>conftest.$ac_ext | |
13210 | cat >>conftest.$ac_ext <<_ACEOF | |
13211 | /* end confdefs.h. */ | |
13212 | ||
13213 | #include <string.h> | |
13214 | #include <stdio.h> | |
13215 | int main(void); | |
13216 | ||
13217 | int | |
13218 | main () | |
13219 | { | |
13220 | ||
13221 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
13222 | ||
13223 | ; | |
13224 | return 0; | |
13225 | } | |
13226 | _ACEOF | |
13227 | rm -f conftest.$ac_objext | |
13228 | if { (ac_try="$ac_compile" | |
13229 | case "(($ac_try" in | |
13230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13231 | *) ac_try_echo=$ac_try;; | |
13232 | esac | |
13233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13234 | (eval "$ac_compile") 2>conftest.er1 | |
13235 | ac_status=$? | |
13236 | grep -v '^ *+' conftest.er1 >conftest.err | |
13237 | rm -f conftest.er1 | |
13238 | cat conftest.err >&5 | |
13239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13240 | (exit $ac_status); } && { | |
13241 | test -z "$ac_c_werror_flag" || | |
13242 | test ! -s conftest.err | |
13243 | } && test -s conftest.$ac_objext; then | |
13244 | charybdis_cv_c_gcc_w_format=yes | |
13245 | else | |
13246 | echo "$as_me: failed program was:" >&5 | |
13247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13248 | ||
13249 | charybdis_cv_c_gcc_w_format=no | |
13250 | fi | |
13251 | ||
13252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13253 | CFLAGS="${oldcflags}" | |
13254 | fi | |
13255 | ||
13256 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
13257 | CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wformat-security " | |
13258 | { echo "$as_me:$LINENO: result: ok" >&5 | |
13259 | echo "${ECHO_T}ok" >&6; } | |
13260 | else | |
13261 | charybdis_cv_c_gcc_w_format='' | |
13262 | { echo "$as_me:$LINENO: result: no" >&5 | |
13263 | echo "${ECHO_T}no" >&6; } | |
13264 | fi | |
13265 | else | |
13266 | { echo "$as_me:$LINENO: result: no" >&5 | |
13267 | echo "${ECHO_T}no" >&6; } | |
13268 | fi | |
13269 | ||
13270 | ||
13271 | { echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5 | |
13272 | echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6; } | |
13273 | if test "${GCC-no}" = yes | |
13274 | then | |
13275 | if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then | |
13276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13277 | else | |
13278 | ||
13279 | oldcflags="${CFLAGS-}" | |
13280 | CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror" | |
13281 | cat >conftest.$ac_ext <<_ACEOF | |
13282 | /* confdefs.h. */ | |
13283 | _ACEOF | |
13284 | cat confdefs.h >>conftest.$ac_ext | |
13285 | cat >>conftest.$ac_ext <<_ACEOF | |
13286 | /* end confdefs.h. */ | |
13287 | ||
13288 | #include <string.h> | |
13289 | #include <stdio.h> | |
13290 | int main(void); | |
13291 | ||
13292 | int | |
13293 | main () | |
13294 | { | |
13295 | ||
13296 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
13297 | ||
13298 | ; | |
13299 | return 0; | |
13300 | } | |
13301 | _ACEOF | |
13302 | rm -f conftest.$ac_objext | |
13303 | if { (ac_try="$ac_compile" | |
13304 | case "(($ac_try" in | |
13305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13306 | *) ac_try_echo=$ac_try;; | |
13307 | esac | |
13308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13309 | (eval "$ac_compile") 2>conftest.er1 | |
13310 | ac_status=$? | |
13311 | grep -v '^ *+' conftest.er1 >conftest.err | |
13312 | rm -f conftest.er1 | |
13313 | cat conftest.err >&5 | |
13314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13315 | (exit $ac_status); } && { | |
13316 | test -z "$ac_c_werror_flag" || | |
13317 | test ! -s conftest.err | |
13318 | } && test -s conftest.$ac_objext; then | |
13319 | charybdis_cv_c_gcc_pedantic=yes | |
13320 | else | |
13321 | echo "$as_me: failed program was:" >&5 | |
13322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13323 | ||
13324 | charybdis_cv_c_gcc_pedantic=no | |
13325 | fi | |
13326 | ||
13327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13328 | CFLAGS="${oldcflags}" | |
13329 | fi | |
13330 | ||
13331 | if test "x$charybdis_cv_c_gcc_pedantic" = xyes; then | |
13332 | CWARNS="${CWARNS}-pedantic " | |
13333 | { echo "$as_me:$LINENO: result: ok" >&5 | |
13334 | echo "${ECHO_T}ok" >&6; } | |
13335 | else | |
13336 | charybdis_cv_c_gcc_pedantic='' | |
13337 | { echo "$as_me:$LINENO: result: no" >&5 | |
13338 | echo "${ECHO_T}no" >&6; } | |
13339 | fi | |
13340 | else | |
13341 | { echo "$as_me:$LINENO: result: no" >&5 | |
13342 | echo "${ECHO_T}no" >&6; } | |
13343 | fi | |
13344 | ||
13345 | ||
13346 | IRC_CFLAGS="$CFLAGS" | |
13347 | ||
13348 | fi | |
13349 | ||
13350 | ||
13351 | if test "$shared_modules" = no; then | |
13352 | DYNLINK_C="" | |
13353 | MOD_TARGET="libmodules.a" | |
13354 | MODULES_LIBS="../modules/libmodules.a" | |
13355 | SEDOBJ="" | |
13356 | ||
13357 | cat >>confdefs.h <<\_ACEOF | |
13358 | #define STATIC_MODULES 1 | |
13359 | _ACEOF | |
13360 | ||
13361 | { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5 | |
13362 | echo "$as_me: WARNING: shared module support has been disabled!" >&2;} | |
13363 | fi | |
13364 | ||
13365 | if test "$shared_modules" = yes; then | |
13366 | ||
13367 | { echo "$as_me:$LINENO: checking for nlist" >&5 | |
13368 | echo $ECHO_N "checking for nlist... $ECHO_C" >&6; } | |
13369 | if test "${ac_cv_func_nlist+set}" = set; then | |
13370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13371 | else | |
13372 | cat >conftest.$ac_ext <<_ACEOF | |
13373 | /* confdefs.h. */ | |
13374 | _ACEOF | |
13375 | cat confdefs.h >>conftest.$ac_ext | |
13376 | cat >>conftest.$ac_ext <<_ACEOF | |
13377 | /* end confdefs.h. */ | |
13378 | /* Define nlist to an innocuous variant, in case <limits.h> declares nlist. | |
13379 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13380 | #define nlist innocuous_nlist | |
13381 | ||
13382 | /* System header to define __stub macros and hopefully few prototypes, | |
13383 | which can conflict with char nlist (); below. | |
13384 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13385 | <limits.h> exists even on freestanding compilers. */ | |
13386 | ||
13387 | #ifdef __STDC__ | |
13388 | # include <limits.h> | |
13389 | #else | |
13390 | # include <assert.h> | |
13391 | #endif | |
13392 | ||
13393 | #undef nlist | |
13394 | ||
13395 | /* Override any GCC internal prototype to avoid an error. | |
13396 | Use char because int might match the return type of a GCC | |
13397 | builtin and then its argument prototype would still apply. */ | |
13398 | #ifdef __cplusplus | |
13399 | extern "C" | |
13400 | #endif | |
13401 | char nlist (); | |
13402 | /* The GNU C library defines this for functions which it implements | |
13403 | to always fail with ENOSYS. Some functions are actually named | |
13404 | something starting with __ and the normal name is an alias. */ | |
13405 | #if defined __stub_nlist || defined __stub___nlist | |
13406 | choke me | |
13407 | #endif | |
13408 | ||
13409 | int | |
13410 | main () | |
13411 | { | |
13412 | return nlist (); | |
13413 | ; | |
13414 | return 0; | |
13415 | } | |
13416 | _ACEOF | |
13417 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13418 | if { (ac_try="$ac_link" | |
13419 | case "(($ac_try" in | |
13420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13421 | *) ac_try_echo=$ac_try;; | |
13422 | esac | |
13423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13424 | (eval "$ac_link") 2>conftest.er1 | |
13425 | ac_status=$? | |
13426 | grep -v '^ *+' conftest.er1 >conftest.err | |
13427 | rm -f conftest.er1 | |
13428 | cat conftest.err >&5 | |
13429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13430 | (exit $ac_status); } && { | |
13431 | test -z "$ac_c_werror_flag" || | |
13432 | test ! -s conftest.err | |
13433 | } && test -s conftest$ac_exeext && | |
13434 | $as_test_x conftest$ac_exeext; then | |
13435 | ac_cv_func_nlist=yes | |
13436 | else | |
13437 | echo "$as_me: failed program was:" >&5 | |
13438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13439 | ||
13440 | ac_cv_func_nlist=no | |
13441 | fi | |
13442 | ||
13443 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13444 | conftest$ac_exeext conftest.$ac_ext | |
13445 | fi | |
13446 | { echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5 | |
13447 | echo "${ECHO_T}$ac_cv_func_nlist" >&6; } | |
13448 | if test $ac_cv_func_nlist = yes; then | |
13449 | : | |
13450 | else | |
13451 | { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5 | |
13452 | echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; } | |
13453 | if test "${ac_cv_lib_dl_nlist+set}" = set; then | |
13454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13455 | else | |
13456 | ac_check_lib_save_LIBS=$LIBS | |
13457 | LIBS="-ldl $LIBS" | |
13458 | cat >conftest.$ac_ext <<_ACEOF | |
13459 | /* confdefs.h. */ | |
13460 | _ACEOF | |
13461 | cat confdefs.h >>conftest.$ac_ext | |
13462 | cat >>conftest.$ac_ext <<_ACEOF | |
13463 | /* end confdefs.h. */ | |
13464 | ||
13465 | /* Override any GCC internal prototype to avoid an error. | |
13466 | Use char because int might match the return type of a GCC | |
13467 | builtin and then its argument prototype would still apply. */ | |
13468 | #ifdef __cplusplus | |
13469 | extern "C" | |
13470 | #endif | |
13471 | char nlist (); | |
13472 | int | |
13473 | main () | |
13474 | { | |
13475 | return nlist (); | |
13476 | ; | |
13477 | return 0; | |
13478 | } | |
13479 | _ACEOF | |
13480 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13481 | if { (ac_try="$ac_link" | |
13482 | case "(($ac_try" in | |
13483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13484 | *) ac_try_echo=$ac_try;; | |
13485 | esac | |
13486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13487 | (eval "$ac_link") 2>conftest.er1 | |
13488 | ac_status=$? | |
13489 | grep -v '^ *+' conftest.er1 >conftest.err | |
13490 | rm -f conftest.er1 | |
13491 | cat conftest.err >&5 | |
13492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13493 | (exit $ac_status); } && { | |
13494 | test -z "$ac_c_werror_flag" || | |
13495 | test ! -s conftest.err | |
13496 | } && test -s conftest$ac_exeext && | |
13497 | $as_test_x conftest$ac_exeext; then | |
13498 | ac_cv_lib_dl_nlist=yes | |
13499 | else | |
13500 | echo "$as_me: failed program was:" >&5 | |
13501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13502 | ||
13503 | ac_cv_lib_dl_nlist=no | |
13504 | fi | |
13505 | ||
13506 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13507 | conftest$ac_exeext conftest.$ac_ext | |
13508 | LIBS=$ac_check_lib_save_LIBS | |
13509 | fi | |
13510 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5 | |
13511 | echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; } | |
13512 | if test $ac_cv_lib_dl_nlist = yes; then | |
13513 | nlist_lib="-ldl" | |
13514 | else | |
13515 | { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5 | |
13516 | echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; } | |
13517 | if test "${ac_cv_lib_elf_nlist+set}" = set; then | |
13518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13519 | else | |
13520 | ac_check_lib_save_LIBS=$LIBS | |
13521 | LIBS="-lelf $LIBS" | |
13522 | cat >conftest.$ac_ext <<_ACEOF | |
13523 | /* confdefs.h. */ | |
13524 | _ACEOF | |
13525 | cat confdefs.h >>conftest.$ac_ext | |
13526 | cat >>conftest.$ac_ext <<_ACEOF | |
13527 | /* end confdefs.h. */ | |
13528 | ||
13529 | /* Override any GCC internal prototype to avoid an error. | |
13530 | Use char because int might match the return type of a GCC | |
13531 | builtin and then its argument prototype would still apply. */ | |
13532 | #ifdef __cplusplus | |
13533 | extern "C" | |
13534 | #endif | |
13535 | char nlist (); | |
13536 | int | |
13537 | main () | |
13538 | { | |
13539 | return nlist (); | |
13540 | ; | |
13541 | return 0; | |
13542 | } | |
13543 | _ACEOF | |
13544 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13545 | if { (ac_try="$ac_link" | |
13546 | case "(($ac_try" in | |
13547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13548 | *) ac_try_echo=$ac_try;; | |
13549 | esac | |
13550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13551 | (eval "$ac_link") 2>conftest.er1 | |
13552 | ac_status=$? | |
13553 | grep -v '^ *+' conftest.er1 >conftest.err | |
13554 | rm -f conftest.er1 | |
13555 | cat conftest.err >&5 | |
13556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13557 | (exit $ac_status); } && { | |
13558 | test -z "$ac_c_werror_flag" || | |
13559 | test ! -s conftest.err | |
13560 | } && test -s conftest$ac_exeext && | |
13561 | $as_test_x conftest$ac_exeext; then | |
13562 | ac_cv_lib_elf_nlist=yes | |
13563 | else | |
13564 | echo "$as_me: failed program was:" >&5 | |
13565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13566 | ||
13567 | ac_cv_lib_elf_nlist=no | |
13568 | fi | |
13569 | ||
13570 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13571 | conftest$ac_exeext conftest.$ac_ext | |
13572 | LIBS=$ac_check_lib_save_LIBS | |
13573 | fi | |
13574 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5 | |
13575 | echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; } | |
13576 | if test $ac_cv_lib_elf_nlist = yes; then | |
13577 | nlist_lib="-lelf" | |
13578 | fi | |
13579 | ||
13580 | ||
13581 | fi | |
13582 | ||
13583 | ||
13584 | fi | |
13585 | ||
13586 | ||
13587 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then | |
13588 | { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5 | |
13589 | echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; } | |
13590 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then | |
13591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13592 | fi | |
13593 | { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5 | |
13594 | echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; } | |
13595 | else | |
13596 | # Is the header compilable? | |
13597 | { echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5 | |
13598 | echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; } | |
13599 | cat >conftest.$ac_ext <<_ACEOF | |
13600 | /* confdefs.h. */ | |
13601 | _ACEOF | |
13602 | cat confdefs.h >>conftest.$ac_ext | |
13603 | cat >>conftest.$ac_ext <<_ACEOF | |
13604 | /* end confdefs.h. */ | |
13605 | $ac_includes_default | |
13606 | #include <libelf/nlist.h> | |
13607 | _ACEOF | |
13608 | rm -f conftest.$ac_objext | |
13609 | if { (ac_try="$ac_compile" | |
13610 | case "(($ac_try" in | |
13611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13612 | *) ac_try_echo=$ac_try;; | |
13613 | esac | |
13614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13615 | (eval "$ac_compile") 2>conftest.er1 | |
13616 | ac_status=$? | |
13617 | grep -v '^ *+' conftest.er1 >conftest.err | |
13618 | rm -f conftest.er1 | |
13619 | cat conftest.err >&5 | |
13620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13621 | (exit $ac_status); } && { | |
13622 | test -z "$ac_c_werror_flag" || | |
13623 | test ! -s conftest.err | |
13624 | } && test -s conftest.$ac_objext; then | |
13625 | ac_header_compiler=yes | |
13626 | else | |
13627 | echo "$as_me: failed program was:" >&5 | |
13628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13629 | ||
13630 | ac_header_compiler=no | |
13631 | fi | |
13632 | ||
13633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13634 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13635 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
13636 | ||
13637 | # Is the header present? | |
13638 | { echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5 | |
13639 | echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; } | |
13640 | cat >conftest.$ac_ext <<_ACEOF | |
13641 | /* confdefs.h. */ | |
13642 | _ACEOF | |
13643 | cat confdefs.h >>conftest.$ac_ext | |
13644 | cat >>conftest.$ac_ext <<_ACEOF | |
13645 | /* end confdefs.h. */ | |
13646 | #include <libelf/nlist.h> | |
13647 | _ACEOF | |
13648 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13649 | case "(($ac_try" in | |
13650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13651 | *) ac_try_echo=$ac_try;; | |
13652 | esac | |
13653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13654 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13655 | ac_status=$? | |
13656 | grep -v '^ *+' conftest.er1 >conftest.err | |
13657 | rm -f conftest.er1 | |
13658 | cat conftest.err >&5 | |
13659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13660 | (exit $ac_status); } >/dev/null && { | |
13661 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13662 | test ! -s conftest.err | |
13663 | }; then | |
13664 | ac_header_preproc=yes | |
13665 | else | |
13666 | echo "$as_me: failed program was:" >&5 | |
13667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13668 | ||
13669 | ac_header_preproc=no | |
13670 | fi | |
13671 | ||
13672 | rm -f conftest.err conftest.$ac_ext | |
13673 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13674 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
13675 | ||
13676 | # So? What about this header? | |
13677 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13678 | yes:no: ) | |
13679 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13680 | echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13681 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5 | |
13682 | echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;} | |
13683 | ac_header_preproc=yes | |
13684 | ;; | |
13685 | no:yes:* ) | |
13686 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5 | |
13687 | echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;} | |
13688 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5 | |
13689 | echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;} | |
13690 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5 | |
13691 | echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;} | |
13692 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13693 | echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13694 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5 | |
13695 | echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;} | |
13696 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5 | |
13697 | echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;} | |
13698 | ||
13699 | ;; | |
13700 | esac | |
13701 | { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5 | |
13702 | echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; } | |
13703 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then | |
13704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13705 | else | |
13706 | ac_cv_header_libelf_nlist_h=$ac_header_preproc | |
13707 | fi | |
13708 | { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5 | |
13709 | echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; } | |
13710 | ||
13711 | fi | |
13712 | if test $ac_cv_header_libelf_nlist_h = yes; then | |
13713 | nlist_h="libelf/nlist.h" | |
13714 | fi | |
13715 | ||
13716 | ||
13717 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then | |
13718 | { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5 | |
13719 | echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; } | |
13720 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then | |
13721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13722 | fi | |
13723 | { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5 | |
13724 | echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; } | |
13725 | else | |
13726 | # Is the header compilable? | |
13727 | { echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5 | |
13728 | echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; } | |
13729 | cat >conftest.$ac_ext <<_ACEOF | |
13730 | /* confdefs.h. */ | |
13731 | _ACEOF | |
13732 | cat confdefs.h >>conftest.$ac_ext | |
13733 | cat >>conftest.$ac_ext <<_ACEOF | |
13734 | /* end confdefs.h. */ | |
13735 | $ac_includes_default | |
13736 | #include <elf/nlist.h> | |
13737 | _ACEOF | |
13738 | rm -f conftest.$ac_objext | |
13739 | if { (ac_try="$ac_compile" | |
13740 | case "(($ac_try" in | |
13741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13742 | *) ac_try_echo=$ac_try;; | |
13743 | esac | |
13744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13745 | (eval "$ac_compile") 2>conftest.er1 | |
13746 | ac_status=$? | |
13747 | grep -v '^ *+' conftest.er1 >conftest.err | |
13748 | rm -f conftest.er1 | |
13749 | cat conftest.err >&5 | |
13750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13751 | (exit $ac_status); } && { | |
13752 | test -z "$ac_c_werror_flag" || | |
13753 | test ! -s conftest.err | |
13754 | } && test -s conftest.$ac_objext; then | |
13755 | ac_header_compiler=yes | |
13756 | else | |
13757 | echo "$as_me: failed program was:" >&5 | |
13758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13759 | ||
13760 | ac_header_compiler=no | |
13761 | fi | |
13762 | ||
13763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13764 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13765 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
13766 | ||
13767 | # Is the header present? | |
13768 | { echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5 | |
13769 | echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; } | |
13770 | cat >conftest.$ac_ext <<_ACEOF | |
13771 | /* confdefs.h. */ | |
13772 | _ACEOF | |
13773 | cat confdefs.h >>conftest.$ac_ext | |
13774 | cat >>conftest.$ac_ext <<_ACEOF | |
13775 | /* end confdefs.h. */ | |
13776 | #include <elf/nlist.h> | |
13777 | _ACEOF | |
13778 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13779 | case "(($ac_try" in | |
13780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13781 | *) ac_try_echo=$ac_try;; | |
13782 | esac | |
13783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13784 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13785 | ac_status=$? | |
13786 | grep -v '^ *+' conftest.er1 >conftest.err | |
13787 | rm -f conftest.er1 | |
13788 | cat conftest.err >&5 | |
13789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13790 | (exit $ac_status); } >/dev/null && { | |
13791 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13792 | test ! -s conftest.err | |
13793 | }; then | |
13794 | ac_header_preproc=yes | |
13795 | else | |
13796 | echo "$as_me: failed program was:" >&5 | |
13797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13798 | ||
13799 | ac_header_preproc=no | |
13800 | fi | |
13801 | ||
13802 | rm -f conftest.err conftest.$ac_ext | |
13803 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13804 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
13805 | ||
13806 | # So? What about this header? | |
13807 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13808 | yes:no: ) | |
13809 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13810 | echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13811 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5 | |
13812 | echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;} | |
13813 | ac_header_preproc=yes | |
13814 | ;; | |
13815 | no:yes:* ) | |
13816 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5 | |
13817 | echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;} | |
13818 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5 | |
13819 | echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;} | |
13820 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5 | |
13821 | echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;} | |
13822 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13823 | echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13824 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5 | |
13825 | echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;} | |
13826 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5 | |
13827 | echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;} | |
13828 | ||
13829 | ;; | |
13830 | esac | |
13831 | { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5 | |
13832 | echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; } | |
13833 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then | |
13834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13835 | else | |
13836 | ac_cv_header_elf_nlist_h=$ac_header_preproc | |
13837 | fi | |
13838 | { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5 | |
13839 | echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; } | |
13840 | ||
13841 | fi | |
13842 | if test $ac_cv_header_elf_nlist_h = yes; then | |
13843 | nlist_h="elf/nlist.h" | |
13844 | fi | |
13845 | ||
13846 | ||
13847 | if test "${ac_cv_header_nlist_h+set}" = set; then | |
13848 | { echo "$as_me:$LINENO: checking for nlist.h" >&5 | |
13849 | echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; } | |
13850 | if test "${ac_cv_header_nlist_h+set}" = set; then | |
13851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13852 | fi | |
13853 | { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5 | |
13854 | echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; } | |
13855 | else | |
13856 | # Is the header compilable? | |
13857 | { echo "$as_me:$LINENO: checking nlist.h usability" >&5 | |
13858 | echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; } | |
13859 | cat >conftest.$ac_ext <<_ACEOF | |
13860 | /* confdefs.h. */ | |
13861 | _ACEOF | |
13862 | cat confdefs.h >>conftest.$ac_ext | |
13863 | cat >>conftest.$ac_ext <<_ACEOF | |
13864 | /* end confdefs.h. */ | |
13865 | $ac_includes_default | |
13866 | #include <nlist.h> | |
13867 | _ACEOF | |
13868 | rm -f conftest.$ac_objext | |
13869 | if { (ac_try="$ac_compile" | |
13870 | case "(($ac_try" in | |
13871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13872 | *) ac_try_echo=$ac_try;; | |
13873 | esac | |
13874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13875 | (eval "$ac_compile") 2>conftest.er1 | |
13876 | ac_status=$? | |
13877 | grep -v '^ *+' conftest.er1 >conftest.err | |
13878 | rm -f conftest.er1 | |
13879 | cat conftest.err >&5 | |
13880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13881 | (exit $ac_status); } && { | |
13882 | test -z "$ac_c_werror_flag" || | |
13883 | test ! -s conftest.err | |
13884 | } && test -s conftest.$ac_objext; then | |
13885 | ac_header_compiler=yes | |
13886 | else | |
13887 | echo "$as_me: failed program was:" >&5 | |
13888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13889 | ||
13890 | ac_header_compiler=no | |
13891 | fi | |
13892 | ||
13893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13894 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13895 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
13896 | ||
13897 | # Is the header present? | |
13898 | { echo "$as_me:$LINENO: checking nlist.h presence" >&5 | |
13899 | echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; } | |
13900 | cat >conftest.$ac_ext <<_ACEOF | |
13901 | /* confdefs.h. */ | |
13902 | _ACEOF | |
13903 | cat confdefs.h >>conftest.$ac_ext | |
13904 | cat >>conftest.$ac_ext <<_ACEOF | |
13905 | /* end confdefs.h. */ | |
13906 | #include <nlist.h> | |
13907 | _ACEOF | |
13908 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13909 | case "(($ac_try" in | |
13910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13911 | *) ac_try_echo=$ac_try;; | |
13912 | esac | |
13913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13914 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13915 | ac_status=$? | |
13916 | grep -v '^ *+' conftest.er1 >conftest.err | |
13917 | rm -f conftest.er1 | |
13918 | cat conftest.err >&5 | |
13919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13920 | (exit $ac_status); } >/dev/null && { | |
13921 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13922 | test ! -s conftest.err | |
13923 | }; then | |
13924 | ac_header_preproc=yes | |
13925 | else | |
13926 | echo "$as_me: failed program was:" >&5 | |
13927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13928 | ||
13929 | ac_header_preproc=no | |
13930 | fi | |
13931 | ||
13932 | rm -f conftest.err conftest.$ac_ext | |
13933 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13934 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
13935 | ||
13936 | # So? What about this header? | |
13937 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13938 | yes:no: ) | |
13939 | { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13940 | echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13941 | { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5 | |
13942 | echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;} | |
13943 | ac_header_preproc=yes | |
13944 | ;; | |
13945 | no:yes:* ) | |
13946 | { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5 | |
13947 | echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;} | |
13948 | { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5 | |
13949 | echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;} | |
13950 | { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5 | |
13951 | echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;} | |
13952 | { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13953 | echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13954 | { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5 | |
13955 | echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;} | |
13956 | { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5 | |
13957 | echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;} | |
13958 | ||
13959 | ;; | |
13960 | esac | |
13961 | { echo "$as_me:$LINENO: checking for nlist.h" >&5 | |
13962 | echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; } | |
13963 | if test "${ac_cv_header_nlist_h+set}" = set; then | |
13964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13965 | else | |
13966 | ac_cv_header_nlist_h=$ac_header_preproc | |
13967 | fi | |
13968 | { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5 | |
13969 | echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; } | |
13970 | ||
13971 | fi | |
13972 | if test $ac_cv_header_nlist_h = yes; then | |
13973 | nlist_h="nlist.h" | |
13974 | fi | |
13975 | ||
13976 | ||
13977 | if test x"$nlist_h" = "x"; then | |
13978 | ||
13979 | cat >>confdefs.h <<_ACEOF | |
13980 | #define SYMBOL_PREFIX "" | |
13981 | _ACEOF | |
13982 | ||
13983 | else | |
13984 | { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5 | |
13985 | echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; } | |
13986 | if test "${symbol_underscores+set}" = set; then | |
13987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13988 | else | |
13989 | ||
13990 | cat << EOF > conftest.c | |
13991 | #include <$nlist_h> | |
13992 | #include <stdio.h> | |
13993 | #include <stdlib.h> | |
13994 | void _modinit(void); | |
13995 | int main(int argc, char *argv[]) { | |
13996 | int i; | |
13997 | struct nlist nl[5]; | |
13998 | ||
13999 | /* fill the names in this way, so it'll work almost everywhere */ | |
14000 | nl[0].n_name = "_modinit"; | |
14001 | nl[1].n_name = "__modinit"; | |
14002 | nl[2].n_name = "___modinit"; | |
14003 | nl[3].n_name = "____modinit"; | |
14004 | nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL; | |
14005 | ||
14006 | if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1); | |
14007 | for(i = 0; i < 4; i++) { | |
14008 | if(nl[i].n_value != NULL) | |
14009 | { | |
14010 | int j; | |
14011 | for(j = 0; j < i; j++) | |
14012 | printf("_"); | |
14013 | exit(i); | |
14014 | } | |
14015 | } | |
14016 | exit(-1); | |
14017 | } | |
14018 | void _modinit(void) { return; } | |
14019 | EOF | |
14020 | $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1 | |
14021 | symbol_underscores=`./conftest conftest` | |
14022 | { echo "$as_me:$LINENO: result: $symbol_underscores" >&5 | |
14023 | echo "${ECHO_T}$symbol_underscores" >&6; } | |
14024 | $RM -f conftest conftest.c | |
14025 | ||
14026 | fi | |
14027 | ||
14028 | ||
14029 | cat >>confdefs.h <<_ACEOF | |
14030 | #define SYMBOL_PREFIX "${symbol_underscores}" | |
14031 | _ACEOF | |
14032 | ||
14033 | fi | |
14034 | fi | |
14035 | ||
14036 | IRC_CFLAGS="$IRC_CFLAGS $CWARNS" | |
14037 | ||
14038 | ||
14039 | ||
14040 | ||
14041 | ||
14042 | ||
14043 | ||
14044 | ||
14045 | ||
14046 | ||
14047 | ||
14048 | ||
14049 | ||
14050 | ||
14051 | if test "$prefix" = "NONE"; then | |
14052 | ||
14053 | cat >>confdefs.h <<_ACEOF | |
14054 | #define IRCD_PREFIX "$ac_default_prefix" | |
14055 | _ACEOF | |
14056 | ||
14057 | ||
14058 | else | |
14059 | ||
14060 | ||
14061 | prefix=`echo $prefix | sed 's/\/$//'` | |
14062 | ||
14063 | cat >>confdefs.h <<_ACEOF | |
14064 | #define IRCD_PREFIX "$prefix" | |
14065 | _ACEOF | |
14066 | ||
14067 | ||
14068 | fi | |
14069 | ||
14070 | ac_config_files="$ac_config_files Makefile ssld/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile" | |
14071 | ||
14072 | ||
14073 | cat >confcache <<\_ACEOF | |
14074 | # This file is a shell script that caches the results of configure | |
14075 | # tests run on this system so they can be shared between configure | |
14076 | # scripts and configure runs, see configure's option --config-cache. | |
14077 | # It is not useful on other systems. If it contains results you don't | |
14078 | # want to keep, you may remove or edit it. | |
14079 | # | |
14080 | # config.status only pays attention to the cache file if you give it | |
14081 | # the --recheck option to rerun configure. | |
14082 | # | |
14083 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14084 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14085 | # following values. | |
14086 | ||
14087 | _ACEOF | |
14088 | ||
14089 | # The following way of writing the cache mishandles newlines in values, | |
14090 | # but we know of no workaround that is simple, portable, and efficient. | |
14091 | # So, we kill variables containing newlines. | |
14092 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
14093 | # and sets the high bit in the cache file unless we assign to the vars. | |
14094 | ( | |
14095 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14096 | eval ac_val=\$$ac_var | |
14097 | case $ac_val in #( | |
14098 | *${as_nl}*) | |
14099 | case $ac_var in #( | |
14100 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
14101 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
14102 | esac | |
14103 | case $ac_var in #( | |
14104 | _ | IFS | as_nl) ;; #( | |
14105 | *) $as_unset $ac_var ;; | |
14106 | esac ;; | |
14107 | esac | |
14108 | done | |
14109 | ||
14110 | (set) 2>&1 | | |
14111 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
14112 | *${as_nl}ac_space=\ *) | |
14113 | # `set' does not quote correctly, so add quotes (double-quote | |
14114 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
14115 | sed -n \ | |
14116 | "s/'/'\\\\''/g; | |
14117 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
14118 | ;; #( | |
14119 | *) | |
14120 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
14121 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
14122 | ;; | |
14123 | esac | | |
14124 | sort | |
14125 | ) | | |
14126 | sed ' | |
14127 | /^ac_cv_env_/b end | |
14128 | t clear | |
14129 | :clear | |
14130 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
14131 | t end | |
14132 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
14133 | :end' >>confcache | |
14134 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14135 | if test -w "$cache_file"; then | |
14136 | test "x$cache_file" != "x/dev/null" && | |
14137 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
14138 | echo "$as_me: updating cache $cache_file" >&6;} | |
14139 | cat confcache >$cache_file | |
14140 | else | |
14141 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
14142 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
14143 | fi | |
14144 | fi | |
14145 | rm -f confcache | |
14146 | ||
14147 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14148 | # Let make expand exec_prefix. | |
14149 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14150 | ||
14151 | DEFS=-DHAVE_CONFIG_H | |
14152 | ||
14153 | ac_libobjs= | |
14154 | ac_ltlibobjs= | |
14155 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14156 | # 1. Remove the extension, and $U if already installed. | |
14157 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
14158 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
14159 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14160 | # will be set to the directory where LIBOBJS objects are built. | |
14161 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14162 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
14163 | done | |
14164 | LIBOBJS=$ac_libobjs | |
14165 | ||
14166 | LTLIBOBJS=$ac_ltlibobjs | |
14167 | ||
14168 | ||
14169 | ||
14170 | : ${CONFIG_STATUS=./config.status} | |
14171 | ac_clean_files_save=$ac_clean_files | |
14172 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
14173 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
14174 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14175 | cat >$CONFIG_STATUS <<_ACEOF | |
14176 | #! $SHELL | |
14177 | # Generated by $as_me. | |
14178 | # Run this file to recreate the current configuration. | |
14179 | # Compiler output produced by configure, useful for debugging | |
14180 | # configure, is in config.log if it exists. | |
14181 | ||
14182 | debug=false | |
14183 | ac_cs_recheck=false | |
14184 | ac_cs_silent=false | |
14185 | SHELL=\${CONFIG_SHELL-$SHELL} | |
14186 | _ACEOF | |
14187 | ||
14188 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14189 | ## --------------------- ## | |
14190 | ## M4sh Initialization. ## | |
14191 | ## --------------------- ## | |
14192 | ||
14193 | # Be more Bourne compatible | |
14194 | DUALCASE=1; export DUALCASE # for MKS sh | |
14195 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14196 | emulate sh | |
14197 | NULLCMD=: | |
14198 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
14199 | # is contrary to our usage. Disable this feature. | |
14200 | alias -g '${1+"$@"}'='"$@"' | |
14201 | setopt NO_GLOB_SUBST | |
14202 | else | |
14203 | case `(set -o) 2>/dev/null` in | |
14204 | *posix*) set -o posix ;; | |
14205 | esac | |
14206 | ||
14207 | fi | |
14208 | ||
14209 | ||
14210 | ||
14211 | ||
14212 | # PATH needs CR | |
14213 | # Avoid depending upon Character Ranges. | |
14214 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14215 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14216 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14217 | as_cr_digits='0123456789' | |
14218 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14219 | ||
14220 | # The user is always right. | |
14221 | if test "${PATH_SEPARATOR+set}" != set; then | |
14222 | echo "#! /bin/sh" >conf$$.sh | |
14223 | echo "exit 0" >>conf$$.sh | |
14224 | chmod +x conf$$.sh | |
14225 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
14226 | PATH_SEPARATOR=';' | |
14227 | else | |
14228 | PATH_SEPARATOR=: | |
14229 | fi | |
14230 | rm -f conf$$.sh | |
14231 | fi | |
14232 | ||
14233 | # Support unset when possible. | |
14234 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
14235 | as_unset=unset | |
14236 | else | |
14237 | as_unset=false | |
14238 | fi | |
14239 | ||
14240 | ||
14241 | # IFS | |
14242 | # We need space, tab and new line, in precisely that order. Quoting is | |
14243 | # there to prevent editors from complaining about space-tab. | |
14244 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14245 | # splitting by setting IFS to empty value.) | |
14246 | as_nl=' | |
14247 | ' | |
14248 | IFS=" "" $as_nl" | |
14249 | ||
14250 | # Find who we are. Look in the path if we contain no directory separator. | |
14251 | case $0 in | |
14252 | *[\\/]* ) as_myself=$0 ;; | |
14253 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14254 | for as_dir in $PATH | |
14255 | do | |
14256 | IFS=$as_save_IFS | |
14257 | test -z "$as_dir" && as_dir=. | |
14258 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14259 | done | |
14260 | IFS=$as_save_IFS | |
14261 | ||
14262 | ;; | |
14263 | esac | |
14264 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14265 | # in which case we are not to be found in the path. | |
14266 | if test "x$as_myself" = x; then | |
14267 | as_myself=$0 | |
14268 | fi | |
14269 | if test ! -f "$as_myself"; then | |
14270 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14271 | { (exit 1); exit 1; } | |
14272 | fi | |
14273 | ||
14274 | # Work around bugs in pre-3.0 UWIN ksh. | |
14275 | for as_var in ENV MAIL MAILPATH | |
14276 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
14277 | done | |
14278 | PS1='$ ' | |
14279 | PS2='> ' | |
14280 | PS4='+ ' | |
14281 | ||
14282 | # NLS nuisances. | |
14283 | for as_var in \ | |
14284 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
14285 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
14286 | LC_TELEPHONE LC_TIME | |
14287 | do | |
14288 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
14289 | eval $as_var=C; export $as_var | |
14290 | else | |
14291 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
14292 | fi | |
14293 | done | |
14294 | ||
14295 | # Required to use basename. | |
14296 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
14297 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
14298 | as_expr=expr | |
14299 | else | |
14300 | as_expr=false | |
14301 | fi | |
14302 | ||
14303 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
14304 | as_basename=basename | |
14305 | else | |
14306 | as_basename=false | |
14307 | fi | |
14308 | ||
14309 | ||
14310 | # Name of the executable. | |
14311 | as_me=`$as_basename -- "$0" || | |
14312 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
14313 | X"$0" : 'X\(//\)$' \| \ | |
14314 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
14315 | echo X/"$0" | | |
14316 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14317 | s//\1/ | |
14318 | q | |
14319 | } | |
14320 | /^X\/\(\/\/\)$/{ | |
14321 | s//\1/ | |
14322 | q | |
14323 | } | |
14324 | /^X\/\(\/\).*/{ | |
14325 | s//\1/ | |
14326 | q | |
14327 | } | |
14328 | s/.*/./; q'` | |
14329 | ||
14330 | # CDPATH. | |
14331 | $as_unset CDPATH | |
14332 | ||
14333 | ||
14334 | ||
14335 | as_lineno_1=$LINENO | |
14336 | as_lineno_2=$LINENO | |
14337 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
14338 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
14339 | ||
14340 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
14341 | # uniformly replaced by the line number. The first 'sed' inserts a | |
14342 | # line-number line after each line using $LINENO; the second 'sed' | |
14343 | # does the real work. The second script uses 'N' to pair each | |
14344 | # line-number line with the line containing $LINENO, and appends | |
14345 | # trailing '-' during substitution so that $LINENO is not a special | |
14346 | # case at line end. | |
14347 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
14348 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
14349 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
14350 | sed -n ' | |
14351 | p | |
14352 | /[$]LINENO/= | |
14353 | ' <$as_myself | | |
14354 | sed ' | |
14355 | s/[$]LINENO.*/&-/ | |
14356 | t lineno | |
14357 | b | |
14358 | :lineno | |
14359 | N | |
14360 | :loop | |
14361 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
14362 | t loop | |
14363 | s/-\n.*// | |
14364 | ' >$as_me.lineno && | |
14365 | chmod +x "$as_me.lineno" || | |
14366 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
14367 | { (exit 1); exit 1; }; } | |
14368 | ||
14369 | # Don't try to exec as it changes $[0], causing all sort of problems | |
14370 | # (the dirname of $[0] is not the place where we might find the | |
14371 | # original and so on. Autoconf is especially sensitive to this). | |
14372 | . "./$as_me.lineno" | |
14373 | # Exit status is that of the last command. | |
14374 | exit | |
14375 | } | |
14376 | ||
14377 | ||
14378 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
14379 | as_dirname=dirname | |
14380 | else | |
14381 | as_dirname=false | |
14382 | fi | |
14383 | ||
14384 | ECHO_C= ECHO_N= ECHO_T= | |
14385 | case `echo -n x` in | |
14386 | -n*) | |
14387 | case `echo 'x\c'` in | |
14388 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14389 | *) ECHO_C='\c';; | |
14390 | esac;; | |
14391 | *) | |
14392 | ECHO_N='-n';; | |
14393 | esac | |
14394 | ||
14395 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
14396 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
14397 | as_expr=expr | |
14398 | else | |
14399 | as_expr=false | |
14400 | fi | |
14401 | ||
14402 | rm -f conf$$ conf$$.exe conf$$.file | |
14403 | if test -d conf$$.dir; then | |
14404 | rm -f conf$$.dir/conf$$.file | |
14405 | else | |
14406 | rm -f conf$$.dir | |
14407 | mkdir conf$$.dir | |
14408 | fi | |
14409 | echo >conf$$.file | |
14410 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
14411 | as_ln_s='ln -s' | |
14412 | # ... but there are two gotchas: | |
14413 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14414 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14415 | # In both cases, we have to default to `cp -p'. | |
14416 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14417 | as_ln_s='cp -p' | |
14418 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14419 | as_ln_s=ln | |
14420 | else | |
14421 | as_ln_s='cp -p' | |
14422 | fi | |
14423 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
14424 | rmdir conf$$.dir 2>/dev/null | |
14425 | ||
14426 | if mkdir -p . 2>/dev/null; then | |
14427 | as_mkdir_p=: | |
14428 | else | |
14429 | test -d ./-p && rmdir ./-p | |
14430 | as_mkdir_p=false | |
14431 | fi | |
14432 | ||
14433 | if test -x / >/dev/null 2>&1; then | |
14434 | as_test_x='test -x' | |
14435 | else | |
14436 | if ls -dL / >/dev/null 2>&1; then | |
14437 | as_ls_L_option=L | |
14438 | else | |
14439 | as_ls_L_option= | |
14440 | fi | |
14441 | as_test_x=' | |
14442 | eval sh -c '\'' | |
14443 | if test -d "$1"; then | |
14444 | test -d "$1/."; | |
14445 | else | |
14446 | case $1 in | |
14447 | -*)set "./$1";; | |
14448 | esac; | |
14449 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
14450 | ???[sx]*):;;*)false;;esac;fi | |
14451 | '\'' sh | |
14452 | ' | |
14453 | fi | |
14454 | as_executable_p=$as_test_x | |
14455 | ||
14456 | # Sed expression to map a string onto a valid CPP name. | |
14457 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14458 | ||
14459 | # Sed expression to map a string onto a valid variable name. | |
14460 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14461 | ||
14462 | ||
14463 | exec 6>&1 | |
14464 | ||
14465 | # Save the log message, to keep $[0] and so on meaningful, and to | |
14466 | # report actual input values of CONFIG_FILES etc. instead of their | |
14467 | # values after options handling. | |
14468 | ac_log=" | |
14469 | This file was extended by charybdis $as_me 3.1, which was | |
14470 | generated by GNU Autoconf 2.61. Invocation command line was | |
14471 | ||
14472 | CONFIG_FILES = $CONFIG_FILES | |
14473 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14474 | CONFIG_LINKS = $CONFIG_LINKS | |
14475 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14476 | $ $0 $@ | |
14477 | ||
14478 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
14479 | " | |
14480 | ||
14481 | _ACEOF | |
14482 | ||
14483 | cat >>$CONFIG_STATUS <<_ACEOF | |
14484 | # Files that config.status was made for. | |
14485 | config_files="$ac_config_files" | |
14486 | config_headers="$ac_config_headers" | |
14487 | ||
14488 | _ACEOF | |
14489 | ||
14490 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14491 | ac_cs_usage="\ | |
14492 | \`$as_me' instantiates files from templates according to the | |
14493 | current configuration. | |
14494 | ||
14495 | Usage: $0 [OPTIONS] [FILE]... | |
14496 | ||
14497 | -h, --help print this help, then exit | |
14498 | -V, --version print version number and configuration settings, then exit | |
14499 | -q, --quiet do not print progress messages | |
14500 | -d, --debug don't remove temporary files | |
14501 | --recheck update $as_me by reconfiguring in the same conditions | |
14502 | --file=FILE[:TEMPLATE] | |
14503 | instantiate the configuration file FILE | |
14504 | --header=FILE[:TEMPLATE] | |
14505 | instantiate the configuration header FILE | |
14506 | ||
14507 | Configuration files: | |
14508 | $config_files | |
14509 | ||
14510 | Configuration headers: | |
14511 | $config_headers | |
14512 | ||
14513 | Report bugs to <bug-autoconf@gnu.org>." | |
14514 | ||
14515 | _ACEOF | |
14516 | cat >>$CONFIG_STATUS <<_ACEOF | |
14517 | ac_cs_version="\\ | |
14518 | charybdis config.status 3.1 | |
14519 | configured by $0, generated by GNU Autoconf 2.61, | |
14520 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
14521 | ||
14522 | Copyright (C) 2006 Free Software Foundation, Inc. | |
14523 | This config.status script is free software; the Free Software Foundation | |
14524 | gives unlimited permission to copy, distribute and modify it." | |
14525 | ||
14526 | ac_pwd='$ac_pwd' | |
14527 | srcdir='$srcdir' | |
14528 | INSTALL='$INSTALL' | |
14529 | _ACEOF | |
14530 | ||
14531 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14532 | # If no file are specified by the user, then we need to provide default | |
14533 | # value. By we need to know if files were specified by the user. | |
14534 | ac_need_defaults=: | |
14535 | while test $# != 0 | |
14536 | do | |
14537 | case $1 in | |
14538 | --*=*) | |
14539 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
14540 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
14541 | ac_shift=: | |
14542 | ;; | |
14543 | *) | |
14544 | ac_option=$1 | |
14545 | ac_optarg=$2 | |
14546 | ac_shift=shift | |
14547 | ;; | |
14548 | esac | |
14549 | ||
14550 | case $ac_option in | |
14551 | # Handling of the options. | |
14552 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
14553 | ac_cs_recheck=: ;; | |
14554 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
14555 | echo "$ac_cs_version"; exit ;; | |
14556 | --debug | --debu | --deb | --de | --d | -d ) | |
14557 | debug=: ;; | |
14558 | --file | --fil | --fi | --f ) | |
14559 | $ac_shift | |
14560 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
14561 | ac_need_defaults=false;; | |
14562 | --header | --heade | --head | --hea ) | |
14563 | $ac_shift | |
14564 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
14565 | ac_need_defaults=false;; | |
14566 | --he | --h) | |
14567 | # Conflict between --help and --header | |
14568 | { echo "$as_me: error: ambiguous option: $1 | |
14569 | Try \`$0 --help' for more information." >&2 | |
14570 | { (exit 1); exit 1; }; };; | |
14571 | --help | --hel | -h ) | |
14572 | echo "$ac_cs_usage"; exit ;; | |
14573 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
14574 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14575 | ac_cs_silent=: ;; | |
14576 | ||
14577 | # This is an error. | |
14578 | -*) { echo "$as_me: error: unrecognized option: $1 | |
14579 | Try \`$0 --help' for more information." >&2 | |
14580 | { (exit 1); exit 1; }; } ;; | |
14581 | ||
14582 | *) ac_config_targets="$ac_config_targets $1" | |
14583 | ac_need_defaults=false ;; | |
14584 | ||
14585 | esac | |
14586 | shift | |
14587 | done | |
14588 | ||
14589 | ac_configure_extra_args= | |
14590 | ||
14591 | if $ac_cs_silent; then | |
14592 | exec 6>/dev/null | |
14593 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14594 | fi | |
14595 | ||
14596 | _ACEOF | |
14597 | cat >>$CONFIG_STATUS <<_ACEOF | |
14598 | if \$ac_cs_recheck; then | |
14599 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
14600 | CONFIG_SHELL=$SHELL | |
14601 | export CONFIG_SHELL | |
14602 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
14603 | fi | |
14604 | ||
14605 | _ACEOF | |
14606 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14607 | exec 5>>config.log | |
14608 | { | |
14609 | echo | |
14610 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14611 | ## Running $as_me. ## | |
14612 | _ASBOX | |
14613 | echo "$ac_log" | |
14614 | } >&5 | |
14615 | ||
14616 | _ACEOF | |
14617 | cat >>$CONFIG_STATUS <<_ACEOF | |
14618 | _ACEOF | |
14619 | ||
14620 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14621 | ||
14622 | # Handling of arguments. | |
14623 | for ac_config_target in $ac_config_targets | |
14624 | do | |
14625 | case $ac_config_target in | |
14626 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
14627 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14628 | "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; | |
14629 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; | |
14630 | "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;; | |
14631 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
14632 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; | |
14633 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
14634 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
14635 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
14636 | ||
14637 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
14638 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
14639 | { (exit 1); exit 1; }; };; | |
14640 | esac | |
14641 | done | |
14642 | ||
14643 | ||
14644 | # If the user did not use the arguments to specify the items to instantiate, | |
14645 | # then the envvar interface is used. Set only those that are not. | |
14646 | # We use the long form for the default assignment because of an extremely | |
14647 | # bizarre bug on SunOS 4.1.3. | |
14648 | if $ac_need_defaults; then | |
14649 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14650 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14651 | fi | |
14652 | ||
14653 | # Have a temporary directory for convenience. Make it in the build tree | |
14654 | # simply because there is no reason against having it here, and in addition, | |
14655 | # creating and moving files from /tmp can sometimes cause problems. | |
14656 | # Hook for its removal unless debugging. | |
14657 | # Note that there is a small window in which the directory will not be cleaned: | |
14658 | # after its creation but before its name has been assigned to `$tmp'. | |
14659 | $debug || | |
14660 | { | |
14661 | tmp= | |
14662 | trap 'exit_status=$? | |
14663 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14664 | ' 0 | |
14665 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
14666 | } | |
14667 | # Create a (secure) tmp directory for tmp files. | |
14668 | ||
14669 | { | |
14670 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
14671 | test -n "$tmp" && test -d "$tmp" | |
14672 | } || | |
14673 | { | |
14674 | tmp=./conf$$-$RANDOM | |
14675 | (umask 077 && mkdir "$tmp") | |
14676 | } || | |
14677 | { | |
14678 | echo "$me: cannot create a temporary directory in ." >&2 | |
14679 | { (exit 1); exit 1; } | |
14680 | } | |
14681 | ||
14682 | # | |
14683 | # Set up the sed scripts for CONFIG_FILES section. | |
14684 | # | |
14685 | ||
14686 | # No need to generate the scripts if there are no CONFIG_FILES. | |
14687 | # This happens for instance when ./config.status config.h | |
14688 | if test -n "$CONFIG_FILES"; then | |
14689 | ||
14690 | _ACEOF | |
14691 | ||
14692 | ||
14693 | ||
14694 | ac_delim='%!_!# ' | |
14695 | for ac_last_try in false false false false false :; do | |
14696 | cat >conf$$subs.sed <<_ACEOF | |
14697 | SHELL!$SHELL$ac_delim | |
14698 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
14699 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
14700 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
14701 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
14702 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
14703 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
14704 | exec_prefix!$exec_prefix$ac_delim | |
14705 | prefix!$prefix$ac_delim | |
14706 | program_transform_name!$program_transform_name$ac_delim | |
14707 | bindir!$bindir$ac_delim | |
14708 | sbindir!$sbindir$ac_delim | |
14709 | libexecdir!$libexecdir$ac_delim | |
14710 | datarootdir!$datarootdir$ac_delim | |
14711 | datadir!$datadir$ac_delim | |
14712 | sysconfdir!$sysconfdir$ac_delim | |
14713 | sharedstatedir!$sharedstatedir$ac_delim | |
14714 | localstatedir!$localstatedir$ac_delim | |
14715 | includedir!$includedir$ac_delim | |
14716 | oldincludedir!$oldincludedir$ac_delim | |
14717 | docdir!$docdir$ac_delim | |
14718 | infodir!$infodir$ac_delim | |
14719 | htmldir!$htmldir$ac_delim | |
14720 | dvidir!$dvidir$ac_delim | |
14721 | pdfdir!$pdfdir$ac_delim | |
14722 | psdir!$psdir$ac_delim | |
14723 | libdir!$libdir$ac_delim | |
14724 | localedir!$localedir$ac_delim | |
14725 | mandir!$mandir$ac_delim | |
14726 | DEFS!$DEFS$ac_delim | |
14727 | ECHO_C!$ECHO_C$ac_delim | |
14728 | ECHO_N!$ECHO_N$ac_delim | |
14729 | ECHO_T!$ECHO_T$ac_delim | |
14730 | LIBS!$LIBS$ac_delim | |
14731 | build_alias!$build_alias$ac_delim | |
14732 | host_alias!$host_alias$ac_delim | |
14733 | target_alias!$target_alias$ac_delim | |
14734 | CC!$CC$ac_delim | |
14735 | CFLAGS!$CFLAGS$ac_delim | |
14736 | LDFLAGS!$LDFLAGS$ac_delim | |
14737 | CPPFLAGS!$CPPFLAGS$ac_delim | |
14738 | ac_ct_CC!$ac_ct_CC$ac_delim | |
14739 | EXEEXT!$EXEEXT$ac_delim | |
14740 | OBJEXT!$OBJEXT$ac_delim | |
14741 | subdirs!$subdirs$ac_delim | |
14742 | MKDEP!$MKDEP$ac_delim | |
14743 | MAKEDEPEND!$MAKEDEPEND$ac_delim | |
14744 | STDOUT!$STDOUT$ac_delim | |
14745 | CPP!$CPP$ac_delim | |
14746 | GREP!$GREP$ac_delim | |
14747 | EGREP!$EGREP$ac_delim | |
14748 | SET_MAKE!$SET_MAKE$ac_delim | |
14749 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
14750 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
14751 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
14752 | RM!$RM$ac_delim | |
14753 | CP!$CP$ac_delim | |
14754 | MV!$MV$ac_delim | |
14755 | LN!$LN$ac_delim | |
14756 | SED!$SED$ac_delim | |
14757 | AR!$AR$ac_delim | |
14758 | LD!$LD$ac_delim | |
14759 | RANLIB!$RANLIB$ac_delim | |
14760 | TOUCH!$TOUCH$ac_delim | |
14761 | YACC!$YACC$ac_delim | |
14762 | YFLAGS!$YFLAGS$ac_delim | |
14763 | LEX!$LEX$ac_delim | |
14764 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim | |
14765 | LEXLIB!$LEXLIB$ac_delim | |
14766 | CRYPT_LIB!$CRYPT_LIB$ac_delim | |
14767 | VICONF!$VICONF$ac_delim | |
14768 | ALLOCA!$ALLOCA$ac_delim | |
14769 | ENCSPEED!$ENCSPEED$ac_delim | |
14770 | ZLIB_LD!$ZLIB_LD$ac_delim | |
14771 | ETC_DIR!$ETC_DIR$ac_delim | |
14772 | confdir!$confdir$ac_delim | |
14773 | LOG_DIR!$LOG_DIR$ac_delim | |
14774 | logdir!$logdir$ac_delim | |
14775 | HELP_DIR!$HELP_DIR$ac_delim | |
14776 | helpdir!$helpdir$ac_delim | |
14777 | MODULE_DIR!$MODULE_DIR$ac_delim | |
14778 | moduledir!$moduledir$ac_delim | |
14779 | SELECT_TYPE!$SELECT_TYPE$ac_delim | |
14780 | MODULES_LIBS!$MODULES_LIBS$ac_delim | |
14781 | MOD_TARGET!$MOD_TARGET$ac_delim | |
14782 | SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim | |
14783 | SSL_INCLUDES!$SSL_INCLUDES$ac_delim | |
14784 | SSL_LIBS!$SSL_LIBS$ac_delim | |
14785 | PICFLAGS!$PICFLAGS$ac_delim | |
14786 | IRC_CFLAGS!$IRC_CFLAGS$ac_delim | |
14787 | SEDOBJ!$SEDOBJ$ac_delim | |
14788 | LIBOBJS!$LIBOBJS$ac_delim | |
14789 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
14790 | _ACEOF | |
14791 | ||
14792 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then | |
14793 | break | |
14794 | elif $ac_last_try; then | |
14795 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
14796 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
14797 | { (exit 1); exit 1; }; } | |
14798 | else | |
14799 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14800 | fi | |
14801 | done | |
14802 | ||
14803 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
14804 | if test -n "$ac_eof"; then | |
14805 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
14806 | ac_eof=`expr $ac_eof + 1` | |
14807 | fi | |
14808 | ||
14809 | cat >>$CONFIG_STATUS <<_ACEOF | |
14810 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
14811 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
14812 | _ACEOF | |
14813 | sed ' | |
14814 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
14815 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
14816 | :n | |
14817 | t n | |
14818 | s/'"$ac_delim"'$/,g/; t | |
14819 | s/$/\\/; p | |
14820 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
14821 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
14822 | rm -f conf$$subs.sed | |
14823 | cat >>$CONFIG_STATUS <<_ACEOF | |
14824 | :end | |
14825 | s/|#_!!_#|//g | |
14826 | CEOF$ac_eof | |
14827 | _ACEOF | |
14828 | ||
14829 | ||
14830 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
14831 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14832 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14833 | # (actually we leave an empty line to preserve line numbers). | |
14834 | if test "x$srcdir" = x.; then | |
14835 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14836 | s/:*\$(srcdir):*/:/ | |
14837 | s/:*\${srcdir}:*/:/ | |
14838 | s/:*@srcdir@:*/:/ | |
14839 | s/^\([^=]*=[ ]*\):*/\1/ | |
14840 | s/:*$// | |
14841 | s/^[^=]*=[ ]*$// | |
14842 | }' | |
14843 | fi | |
14844 | ||
14845 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14846 | fi # test -n "$CONFIG_FILES" | |
14847 | ||
14848 | ||
14849 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
14850 | do | |
14851 | case $ac_tag in | |
14852 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14853 | esac | |
14854 | case $ac_mode$ac_tag in | |
14855 | :[FHL]*:*);; | |
14856 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
14857 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
14858 | { (exit 1); exit 1; }; };; | |
14859 | :[FH]-) ac_tag=-:-;; | |
14860 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14861 | esac | |
14862 | ac_save_IFS=$IFS | |
14863 | IFS=: | |
14864 | set x $ac_tag | |
14865 | IFS=$ac_save_IFS | |
14866 | shift | |
14867 | ac_file=$1 | |
14868 | shift | |
14869 | ||
14870 | case $ac_mode in | |
14871 | :L) ac_source=$1;; | |
14872 | :[FH]) | |
14873 | ac_file_inputs= | |
14874 | for ac_f | |
14875 | do | |
14876 | case $ac_f in | |
14877 | -) ac_f="$tmp/stdin";; | |
14878 | *) # Look for the file first in the build tree, then in the source tree | |
14879 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14880 | # because $ac_f cannot contain `:'. | |
14881 | test -f "$ac_f" || | |
14882 | case $ac_f in | |
14883 | [\\/$]*) false;; | |
14884 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14885 | esac || | |
14886 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
14887 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
14888 | { (exit 1); exit 1; }; };; | |
14889 | esac | |
14890 | ac_file_inputs="$ac_file_inputs $ac_f" | |
14891 | done | |
14892 | ||
14893 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
14894 | # use $as_me), people would be surprised to read: | |
14895 | # /* config.h. Generated by config.status. */ | |
14896 | configure_input="Generated from "`IFS=: | |
14897 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
14898 | if test x"$ac_file" != x-; then | |
14899 | configure_input="$ac_file. $configure_input" | |
14900 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
14901 | echo "$as_me: creating $ac_file" >&6;} | |
14902 | fi | |
14903 | ||
14904 | case $ac_tag in | |
14905 | *:-:* | *:-) cat >"$tmp/stdin";; | |
14906 | esac | |
14907 | ;; | |
14908 | esac | |
14909 | ||
14910 | ac_dir=`$as_dirname -- "$ac_file" || | |
14911 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14912 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14913 | X"$ac_file" : 'X\(//\)$' \| \ | |
14914 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
14915 | echo X"$ac_file" | | |
14916 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14917 | s//\1/ | |
14918 | q | |
14919 | } | |
14920 | /^X\(\/\/\)[^/].*/{ | |
14921 | s//\1/ | |
14922 | q | |
14923 | } | |
14924 | /^X\(\/\/\)$/{ | |
14925 | s//\1/ | |
14926 | q | |
14927 | } | |
14928 | /^X\(\/\).*/{ | |
14929 | s//\1/ | |
14930 | q | |
14931 | } | |
14932 | s/.*/./; q'` | |
14933 | { as_dir="$ac_dir" | |
14934 | case $as_dir in #( | |
14935 | -*) as_dir=./$as_dir;; | |
14936 | esac | |
14937 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
14938 | as_dirs= | |
14939 | while :; do | |
14940 | case $as_dir in #( | |
14941 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
14942 | *) as_qdir=$as_dir;; | |
14943 | esac | |
14944 | as_dirs="'$as_qdir' $as_dirs" | |
14945 | as_dir=`$as_dirname -- "$as_dir" || | |
14946 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14947 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14948 | X"$as_dir" : 'X\(//\)$' \| \ | |
14949 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14950 | echo X"$as_dir" | | |
14951 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14952 | s//\1/ | |
14953 | q | |
14954 | } | |
14955 | /^X\(\/\/\)[^/].*/{ | |
14956 | s//\1/ | |
14957 | q | |
14958 | } | |
14959 | /^X\(\/\/\)$/{ | |
14960 | s//\1/ | |
14961 | q | |
14962 | } | |
14963 | /^X\(\/\).*/{ | |
14964 | s//\1/ | |
14965 | q | |
14966 | } | |
14967 | s/.*/./; q'` | |
14968 | test -d "$as_dir" && break | |
14969 | done | |
14970 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14971 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
14972 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
14973 | { (exit 1); exit 1; }; }; } | |
14974 | ac_builddir=. | |
14975 | ||
14976 | case "$ac_dir" in | |
14977 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14978 | *) | |
14979 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
14980 | # A ".." for each directory in $ac_dir_suffix. | |
14981 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
14982 | case $ac_top_builddir_sub in | |
14983 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14984 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14985 | esac ;; | |
14986 | esac | |
14987 | ac_abs_top_builddir=$ac_pwd | |
14988 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14989 | # for backward compatibility: | |
14990 | ac_top_builddir=$ac_top_build_prefix | |
14991 | ||
14992 | case $srcdir in | |
14993 | .) # We are building in place. | |
14994 | ac_srcdir=. | |
14995 | ac_top_srcdir=$ac_top_builddir_sub | |
14996 | ac_abs_top_srcdir=$ac_pwd ;; | |
14997 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
14998 | ac_srcdir=$srcdir$ac_dir_suffix; | |
14999 | ac_top_srcdir=$srcdir | |
15000 | ac_abs_top_srcdir=$srcdir ;; | |
15001 | *) # Relative name. | |
15002 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15003 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15004 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
15005 | esac | |
15006 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
15007 | ||
15008 | ||
15009 | case $ac_mode in | |
15010 | :F) | |
15011 | # | |
15012 | # CONFIG_FILE | |
15013 | # | |
15014 | ||
15015 | case $INSTALL in | |
15016 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
15017 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
15018 | esac | |
15019 | _ACEOF | |
15020 | ||
15021 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15022 | # If the template does not know about datarootdir, expand it. | |
15023 | # FIXME: This hack should be removed a few years after 2.60. | |
15024 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15025 | ||
15026 | case `sed -n '/datarootdir/ { | |
15027 | p | |
15028 | q | |
15029 | } | |
15030 | /@datadir@/p | |
15031 | /@docdir@/p | |
15032 | /@infodir@/p | |
15033 | /@localedir@/p | |
15034 | /@mandir@/p | |
15035 | ' $ac_file_inputs` in | |
15036 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15037 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15038 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15039 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
15040 | _ACEOF | |
15041 | cat >>$CONFIG_STATUS <<_ACEOF | |
15042 | ac_datarootdir_hack=' | |
15043 | s&@datadir@&$datadir&g | |
15044 | s&@docdir@&$docdir&g | |
15045 | s&@infodir@&$infodir&g | |
15046 | s&@localedir@&$localedir&g | |
15047 | s&@mandir@&$mandir&g | |
15048 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15049 | esac | |
15050 | _ACEOF | |
15051 | ||
15052 | # Neutralize VPATH when `$srcdir' = `.'. | |
15053 | # Shell code in configure.ac might set extrasub. | |
15054 | # FIXME: do we really want to maintain this feature? | |
15055 | cat >>$CONFIG_STATUS <<_ACEOF | |
15056 | sed "$ac_vpsub | |
15057 | $extrasub | |
15058 | _ACEOF | |
15059 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15060 | :t | |
15061 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
15062 | s&@configure_input@&$configure_input&;t t | |
15063 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15064 | s&@srcdir@&$ac_srcdir&;t t | |
15065 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15066 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15067 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15068 | s&@builddir@&$ac_builddir&;t t | |
15069 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15070 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15071 | s&@INSTALL@&$ac_INSTALL&;t t | |
15072 | $ac_datarootdir_hack | |
15073 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
15074 | ||
15075 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15076 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15077 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15078 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15079 | which seems to be undefined. Please make sure it is defined." >&5 | |
15080 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15081 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15082 | ||
15083 | rm -f "$tmp/stdin" | |
15084 | case $ac_file in | |
15085 | -) cat "$tmp/out"; rm -f "$tmp/out";; | |
15086 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
15087 | esac | |
15088 | ;; | |
15089 | :H) | |
15090 | # | |
15091 | # CONFIG_HEADER | |
15092 | # | |
15093 | _ACEOF | |
15094 | ||
15095 | # Transform confdefs.h into a sed script `conftest.defines', that | |
15096 | # substitutes the proper values into config.h.in to produce config.h. | |
15097 | rm -f conftest.defines conftest.tail | |
15098 | # First, append a space to every undef/define line, to ease matching. | |
15099 | echo 's/$/ /' >conftest.defines | |
15100 | # Then, protect against being on the right side of a sed subst, or in | |
15101 | # an unquoted here document, in config.status. If some macros were | |
15102 | # called several times there might be several #defines for the same | |
15103 | # symbol, which is useless. But do not sort them, since the last | |
15104 | # AC_DEFINE must be honored. | |
15105 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
15106 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
15107 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
15108 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
15109 | # just an empty string. | |
15110 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
15111 | ac_dB='\\)[ (].*,\\1define\\2' | |
15112 | ac_dC=' ' | |
15113 | ac_dD=' ,' | |
15114 | ||
15115 | uniq confdefs.h | | |
15116 | sed -n ' | |
15117 | t rset | |
15118 | :rset | |
15119 | s/^[ ]*#[ ]*define[ ][ ]*// | |
15120 | t ok | |
15121 | d | |
15122 | :ok | |
15123 | s/[\\&,]/\\&/g | |
15124 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
15125 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
15126 | ' >>conftest.defines | |
15127 | ||
15128 | # Remove the space that was appended to ease matching. | |
15129 | # Then replace #undef with comments. This is necessary, for | |
15130 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
15131 | # on some systems where configure will not decide to define it. | |
15132 | # (The regexp can be short, since the line contains either #define or #undef.) | |
15133 | echo 's/ $// | |
15134 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
15135 | ||
15136 | # Break up conftest.defines: | |
15137 | ac_max_sed_lines=50 | |
15138 | ||
15139 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
15140 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
15141 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
15142 | # et cetera. | |
15143 | ac_in='$ac_file_inputs' | |
15144 | ac_out='"$tmp/out1"' | |
15145 | ac_nxt='"$tmp/out2"' | |
15146 | ||
15147 | while : | |
15148 | do | |
15149 | # Write a here document: | |
15150 | cat >>$CONFIG_STATUS <<_ACEOF | |
15151 | # First, check the format of the line: | |
15152 | cat >"\$tmp/defines.sed" <<\\CEOF | |
15153 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
15154 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
15155 | b | |
15156 | :def | |
15157 | _ACEOF | |
15158 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
15159 | echo 'CEOF | |
15160 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
15161 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
15162 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
15163 | grep . conftest.tail >/dev/null || break | |
15164 | rm -f conftest.defines | |
15165 | mv conftest.tail conftest.defines | |
15166 | done | |
15167 | rm -f conftest.defines conftest.tail | |
15168 | ||
15169 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
15170 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15171 | if test x"$ac_file" != x-; then | |
15172 | echo "/* $configure_input */" >"$tmp/config.h" | |
15173 | cat "$ac_result" >>"$tmp/config.h" | |
15174 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
15175 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
15176 | echo "$as_me: $ac_file is unchanged" >&6;} | |
15177 | else | |
15178 | rm -f $ac_file | |
15179 | mv "$tmp/config.h" $ac_file | |
15180 | fi | |
15181 | else | |
15182 | echo "/* $configure_input */" | |
15183 | cat "$ac_result" | |
15184 | fi | |
15185 | rm -f "$tmp/out12" | |
15186 | ;; | |
15187 | ||
15188 | ||
15189 | esac | |
15190 | ||
15191 | done # for ac_tag | |
15192 | ||
15193 | ||
15194 | { (exit 0); exit 0; } | |
15195 | _ACEOF | |
15196 | chmod +x $CONFIG_STATUS | |
15197 | ac_clean_files=$ac_clean_files_save | |
15198 | ||
15199 | ||
15200 | # configure is writing to config.log, and then calls config.status. | |
15201 | # config.status does its own redirection, appending to config.log. | |
15202 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15203 | # by configure, so config.status won't be able to write to it; its | |
15204 | # output is simply discarded. So we exec the FD to /dev/null, | |
15205 | # effectively closing config.log, so it can be properly (re)opened and | |
15206 | # appended to by config.status. When coming back to configure, we | |
15207 | # need to make the FD available again. | |
15208 | if test "$no_create" != yes; then | |
15209 | ac_cs_success=: | |
15210 | ac_config_status_args= | |
15211 | test "$silent" = yes && | |
15212 | ac_config_status_args="$ac_config_status_args --quiet" | |
15213 | exec 5>/dev/null | |
15214 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15215 | exec 5>>config.log | |
15216 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15217 | # would make configure fail if this is the last instruction. | |
15218 | $ac_cs_success || { (exit 1); exit 1; } | |
15219 | fi | |
15220 | ||
15221 | # | |
15222 | # CONFIG_SUBDIRS section. | |
15223 | # | |
15224 | if test "$no_recursion" != yes; then | |
15225 | ||
15226 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
15227 | ac_sub_configure_args= | |
15228 | ac_prev= | |
15229 | eval "set x $ac_configure_args" | |
15230 | shift | |
15231 | for ac_arg | |
15232 | do | |
15233 | if test -n "$ac_prev"; then | |
15234 | ac_prev= | |
15235 | continue | |
15236 | fi | |
15237 | case $ac_arg in | |
15238 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
15239 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
15240 | ac_prev=cache_file ;; | |
15241 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
15242 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
15243 | | --c=*) | |
15244 | ;; | |
15245 | --config-cache | -C) | |
15246 | ;; | |
15247 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
15248 | ac_prev=srcdir ;; | |
15249 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
15250 | ;; | |
15251 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
15252 | ac_prev=prefix ;; | |
15253 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
15254 | ;; | |
15255 | *) | |
15256 | case $ac_arg in | |
15257 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15258 | esac | |
15259 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | |
15260 | esac | |
15261 | done | |
15262 | ||
15263 | # Always prepend --prefix to ensure using the same prefix | |
15264 | # in subdir configurations. | |
15265 | ac_arg="--prefix=$prefix" | |
15266 | case $ac_arg in | |
15267 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15268 | esac | |
15269 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
15270 | ||
15271 | # Pass --silent | |
15272 | if test "$silent" = yes; then | |
15273 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
15274 | fi | |
15275 | ||
15276 | ac_popdir=`pwd` | |
15277 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
15278 | ||
15279 | # Do not complain, so a configure script can configure whichever | |
15280 | # parts of a large source tree are present. | |
15281 | test -d "$srcdir/$ac_dir" || continue | |
15282 | ||
15283 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
15284 | echo "$as_me:$LINENO: $ac_msg" >&5 | |
15285 | echo "$ac_msg" >&6 | |
15286 | { as_dir="$ac_dir" | |
15287 | case $as_dir in #( | |
15288 | -*) as_dir=./$as_dir;; | |
15289 | esac | |
15290 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
15291 | as_dirs= | |
15292 | while :; do | |
15293 | case $as_dir in #( | |
15294 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
15295 | *) as_qdir=$as_dir;; | |
15296 | esac | |
15297 | as_dirs="'$as_qdir' $as_dirs" | |
15298 | as_dir=`$as_dirname -- "$as_dir" || | |
15299 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15300 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15301 | X"$as_dir" : 'X\(//\)$' \| \ | |
15302 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15303 | echo X"$as_dir" | | |
15304 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15305 | s//\1/ | |
15306 | q | |
15307 | } | |
15308 | /^X\(\/\/\)[^/].*/{ | |
15309 | s//\1/ | |
15310 | q | |
15311 | } | |
15312 | /^X\(\/\/\)$/{ | |
15313 | s//\1/ | |
15314 | q | |
15315 | } | |
15316 | /^X\(\/\).*/{ | |
15317 | s//\1/ | |
15318 | q | |
15319 | } | |
15320 | s/.*/./; q'` | |
15321 | test -d "$as_dir" && break | |
15322 | done | |
15323 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15324 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
15325 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
15326 | { (exit 1); exit 1; }; }; } | |
15327 | ac_builddir=. | |
15328 | ||
15329 | case "$ac_dir" in | |
15330 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15331 | *) | |
15332 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
15333 | # A ".." for each directory in $ac_dir_suffix. | |
15334 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
15335 | case $ac_top_builddir_sub in | |
15336 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15337 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15338 | esac ;; | |
15339 | esac | |
15340 | ac_abs_top_builddir=$ac_pwd | |
15341 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15342 | # for backward compatibility: | |
15343 | ac_top_builddir=$ac_top_build_prefix | |
15344 | ||
15345 | case $srcdir in | |
15346 | .) # We are building in place. | |
15347 | ac_srcdir=. | |
15348 | ac_top_srcdir=$ac_top_builddir_sub | |
15349 | ac_abs_top_srcdir=$ac_pwd ;; | |
15350 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
15351 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15352 | ac_top_srcdir=$srcdir | |
15353 | ac_abs_top_srcdir=$srcdir ;; | |
15354 | *) # Relative name. | |
15355 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15356 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15357 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
15358 | esac | |
15359 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
15360 | ||
15361 | ||
15362 | cd "$ac_dir" | |
15363 | ||
15364 | # Check for guested configure; otherwise get Cygnus style configure. | |
15365 | if test -f "$ac_srcdir/configure.gnu"; then | |
15366 | ac_sub_configure=$ac_srcdir/configure.gnu | |
15367 | elif test -f "$ac_srcdir/configure"; then | |
15368 | ac_sub_configure=$ac_srcdir/configure | |
15369 | elif test -f "$ac_srcdir/configure.in"; then | |
15370 | # This should be Cygnus configure. | |
15371 | ac_sub_configure=$ac_aux_dir/configure | |
15372 | else | |
15373 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
15374 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
15375 | ac_sub_configure= | |
15376 | fi | |
15377 | ||
15378 | # The recursion is here. | |
15379 | if test -n "$ac_sub_configure"; then | |
15380 | # Make the cache file name correct relative to the subdirectory. | |
15381 | case $cache_file in | |
15382 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
15383 | *) # Relative name. | |
15384 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
15385 | esac | |
15386 | ||
15387 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
15388 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
15389 | # The eval makes quoting arguments work. | |
15390 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
15391 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
15392 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
15393 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
15394 | { (exit 1); exit 1; }; } | |
15395 | fi | |
15396 | ||
15397 | cd "$ac_popdir" | |
15398 | done | |
15399 | fi | |
15400 | ||
15401 | ||
15402 | if test "$cf_openssl_version_ok" = yes; then | |
15403 | openssl="yes" | |
15404 | else | |
15405 | openssl="no" | |
15406 | fi | |
15407 | ||
15408 | if test "$shared_modules" = yes; then | |
15409 | modules=shared | |
15410 | else | |
15411 | modules=static | |
15412 | fi | |
15413 | ||
15414 | echo " | |
15415 | Configuration: | |
15416 | Install directory : $prefix | |
15417 | ||
15418 | Ziplinks : $zlib | |
15419 | OpenSSL : $openssl | |
15420 | Socket Engine : $SELECT_TYPE | |
15421 | Small network : $small_net | |
15422 | Block allocator : $balloc | |
15423 | ||
15424 | Nickname length : $NICKLEN | |
15425 | Topic length : $TOPICLEN | |
15426 | ||
15427 | Use (g)make to compile Charybdis, then (g)make install to install it. | |
15428 | " |