]>
Commit | Line | Data |
---|---|---|
212380e3 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
631ef239 | 3 | # Generated by GNU Autoconf 2.61 for charybdis 2.2.0. |
212380e3 | 4 | # |
631ef239 | 5 | # $Id: configure 3356 2007-04-03 09:31:11Z nenolod $ |
212380e3 | 6 | # |
631ef239 | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
212380e3 | 9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
631ef239 | 15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
212380e3 | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in | |
26 | *posix*) set -o posix ;; | |
27 | esac | |
28 | ||
29 | fi | |
30 | ||
31 | ||
32 | ||
33 | ||
34 | # PATH needs CR | |
35 | # Avoid depending upon Character Ranges. | |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39 | as_cr_digits='0123456789' | |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41 | ||
42 | # The user is always right. | |
43 | if test "${PATH_SEPARATOR+set}" != set; then | |
44 | echo "#! /bin/sh" >conf$$.sh | |
45 | echo "exit 0" >>conf$$.sh | |
46 | chmod +x conf$$.sh | |
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48 | PATH_SEPARATOR=';' | |
49 | else | |
50 | PATH_SEPARATOR=: | |
51 | fi | |
52 | rm -f conf$$.sh | |
212380e3 | 53 | fi |
212380e3 | 54 | |
55 | # Support unset when possible. | |
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
57 | as_unset=unset | |
58 | else | |
59 | as_unset=false | |
60 | fi | |
61 | ||
62 | ||
631ef239 | 63 | # IFS |
64 | # We need space, tab and new line, in precisely that order. Quoting is | |
65 | # there to prevent editors from complaining about space-tab. | |
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
67 | # splitting by setting IFS to empty value.) | |
68 | as_nl=' | |
69 | ' | |
70 | IFS=" "" $as_nl" | |
71 | ||
72 | # Find who we are. Look in the path if we contain no directory separator. | |
73 | case $0 in | |
74 | *[\\/]* ) as_myself=$0 ;; | |
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
76 | for as_dir in $PATH | |
77 | do | |
78 | IFS=$as_save_IFS | |
79 | test -z "$as_dir" && as_dir=. | |
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
81 | done | |
82 | IFS=$as_save_IFS | |
83 | ||
84 | ;; | |
85 | esac | |
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
87 | # in which case we are not to be found in the path. | |
88 | if test "x$as_myself" = x; then | |
89 | as_myself=$0 | |
90 | fi | |
91 | if test ! -f "$as_myself"; then | |
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
93 | { (exit 1); exit 1; } | |
94 | fi | |
95 | ||
212380e3 | 96 | # Work around bugs in pre-3.0 UWIN ksh. |
631ef239 | 97 | for as_var in ENV MAIL MAILPATH |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
99 | done | |
212380e3 | 100 | PS1='$ ' |
101 | PS2='> ' | |
102 | PS4='+ ' | |
103 | ||
104 | # NLS nuisances. | |
105 | for as_var in \ | |
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
108 | LC_TELEPHONE LC_TIME | |
109 | do | |
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
111 | eval $as_var=C; export $as_var | |
112 | else | |
631ef239 | 113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
212380e3 | 114 | fi |
115 | done | |
116 | ||
117 | # Required to use basename. | |
631ef239 | 118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 | 120 | as_expr=expr |
121 | else | |
122 | as_expr=false | |
123 | fi | |
124 | ||
631ef239 | 125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 | 126 | as_basename=basename |
127 | else | |
128 | as_basename=false | |
129 | fi | |
130 | ||
131 | ||
132 | # Name of the executable. | |
631ef239 | 133 | as_me=`$as_basename -- "$0" || |
212380e3 | 134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 137 | echo X/"$0" | |
631ef239 | 138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
139 | s//\1/ | |
140 | q | |
141 | } | |
142 | /^X\/\(\/\/\)$/{ | |
143 | s//\1/ | |
144 | q | |
145 | } | |
146 | /^X\/\(\/\).*/{ | |
147 | s//\1/ | |
148 | q | |
149 | } | |
150 | s/.*/./; q'` | |
212380e3 | 151 | |
631ef239 | 152 | # CDPATH. |
153 | $as_unset CDPATH | |
212380e3 | 154 | |
212380e3 | 155 | |
631ef239 | 156 | if test "x$CONFIG_SHELL" = x; then |
157 | if (eval ":") 2>/dev/null; then | |
158 | as_have_required=yes | |
159 | else | |
160 | as_have_required=no | |
212380e3 | 161 | fi |
162 | ||
631ef239 | 163 | if test $as_have_required = yes && (eval ": |
164 | (as_func_return () { | |
165 | (exit \$1) | |
166 | } | |
167 | as_func_success () { | |
168 | as_func_return 0 | |
169 | } | |
170 | as_func_failure () { | |
171 | as_func_return 1 | |
172 | } | |
173 | as_func_ret_success () { | |
174 | return 0 | |
175 | } | |
176 | as_func_ret_failure () { | |
177 | return 1 | |
178 | } | |
212380e3 | 179 | |
631ef239 | 180 | exitcode=0 |
181 | if as_func_success; then | |
182 | : | |
183 | else | |
184 | exitcode=1 | |
185 | echo as_func_success failed. | |
186 | fi | |
212380e3 | 187 | |
631ef239 | 188 | if as_func_failure; then |
189 | exitcode=1 | |
190 | echo as_func_failure succeeded. | |
191 | fi | |
192 | ||
193 | if as_func_ret_success; then | |
194 | : | |
195 | else | |
196 | exitcode=1 | |
197 | echo as_func_ret_success failed. | |
198 | fi | |
199 | ||
200 | if as_func_ret_failure; then | |
201 | exitcode=1 | |
202 | echo as_func_ret_failure succeeded. | |
203 | fi | |
204 | ||
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
206 | : | |
207 | else | |
208 | exitcode=1 | |
209 | echo positional parameters were not saved. | |
210 | fi | |
211 | ||
212 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
213 | ||
214 | ( | |
215 | as_lineno_1=\$LINENO | |
216 | as_lineno_2=\$LINENO | |
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
219 | ") 2> /dev/null; then | |
220 | : | |
221 | else | |
222 | as_candidate_shells= | |
212380e3 | 223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
225 | do | |
226 | IFS=$as_save_IFS | |
227 | test -z "$as_dir" && as_dir=. | |
631ef239 | 228 | case $as_dir in |
212380e3 | 229 | /*) |
631ef239 | 230 | for as_base in sh bash ksh sh5; do |
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
232 | done;; | |
233 | esac | |
234 | done | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | for as_shell in $as_candidate_shells $SHELL; do | |
239 | # Try only shells that exist, to save several forks. | |
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
243 | emulate sh | |
244 | NULLCMD=: | |
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
246 | # is contrary to our usage. Disable this feature. | |
247 | alias -g '${1+"$@"}'='"$@"' | |
248 | setopt NO_GLOB_SUBST | |
249 | else | |
250 | case `(set -o) 2>/dev/null` in | |
251 | *posix*) set -o posix ;; | |
252 | esac | |
253 | ||
254 | fi | |
255 | ||
256 | ||
257 | : | |
258 | _ASEOF | |
259 | }; then | |
260 | CONFIG_SHELL=$as_shell | |
261 | as_have_required=yes | |
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
264 | emulate sh | |
265 | NULLCMD=: | |
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
267 | # is contrary to our usage. Disable this feature. | |
268 | alias -g '${1+"$@"}'='"$@"' | |
269 | setopt NO_GLOB_SUBST | |
270 | else | |
271 | case `(set -o) 2>/dev/null` in | |
272 | *posix*) set -o posix ;; | |
273 | esac | |
274 | ||
275 | fi | |
276 | ||
277 | ||
278 | : | |
279 | (as_func_return () { | |
280 | (exit $1) | |
281 | } | |
282 | as_func_success () { | |
283 | as_func_return 0 | |
284 | } | |
285 | as_func_failure () { | |
286 | as_func_return 1 | |
287 | } | |
288 | as_func_ret_success () { | |
289 | return 0 | |
290 | } | |
291 | as_func_ret_failure () { | |
292 | return 1 | |
293 | } | |
294 | ||
295 | exitcode=0 | |
296 | if as_func_success; then | |
297 | : | |
298 | else | |
299 | exitcode=1 | |
300 | echo as_func_success failed. | |
301 | fi | |
302 | ||
303 | if as_func_failure; then | |
304 | exitcode=1 | |
305 | echo as_func_failure succeeded. | |
306 | fi | |
307 | ||
308 | if as_func_ret_success; then | |
309 | : | |
310 | else | |
311 | exitcode=1 | |
312 | echo as_func_ret_success failed. | |
313 | fi | |
314 | ||
315 | if as_func_ret_failure; then | |
316 | exitcode=1 | |
317 | echo as_func_ret_failure succeeded. | |
318 | fi | |
319 | ||
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
321 | : | |
322 | else | |
323 | exitcode=1 | |
324 | echo positional parameters were not saved. | |
325 | fi | |
326 | ||
327 | test $exitcode = 0) || { (exit 1); exit 1; } | |
328 | ||
329 | ( | |
212380e3 | 330 | as_lineno_1=$LINENO |
331 | as_lineno_2=$LINENO | |
212380e3 | 332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
631ef239 | 333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
334 | ||
335 | _ASEOF | |
336 | }; then | |
337 | break | |
338 | fi | |
339 | ||
340 | fi | |
341 | ||
342 | done | |
343 | ||
344 | if test "x$CONFIG_SHELL" != x; then | |
345 | for as_var in BASH_ENV ENV | |
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
347 | done | |
348 | export CONFIG_SHELL | |
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
350 | fi | |
351 | ||
352 | ||
353 | if test $as_have_required = no; then | |
354 | echo This script requires a shell more modern than all the | |
355 | echo shells that I found on your system. Please install a | |
356 | echo modern shell, or manually run the script under such a | |
357 | echo shell if you do have one. | |
358 | { (exit 1); exit 1; } | |
359 | fi | |
360 | ||
361 | ||
362 | fi | |
363 | ||
364 | fi | |
365 | ||
366 | ||
367 | ||
368 | (eval "as_func_return () { | |
369 | (exit \$1) | |
370 | } | |
371 | as_func_success () { | |
372 | as_func_return 0 | |
373 | } | |
374 | as_func_failure () { | |
375 | as_func_return 1 | |
376 | } | |
377 | as_func_ret_success () { | |
378 | return 0 | |
379 | } | |
380 | as_func_ret_failure () { | |
381 | return 1 | |
382 | } | |
383 | ||
384 | exitcode=0 | |
385 | if as_func_success; then | |
386 | : | |
387 | else | |
388 | exitcode=1 | |
389 | echo as_func_success failed. | |
390 | fi | |
391 | ||
392 | if as_func_failure; then | |
393 | exitcode=1 | |
394 | echo as_func_failure succeeded. | |
395 | fi | |
396 | ||
397 | if as_func_ret_success; then | |
398 | : | |
399 | else | |
400 | exitcode=1 | |
401 | echo as_func_ret_success failed. | |
402 | fi | |
403 | ||
404 | if as_func_ret_failure; then | |
405 | exitcode=1 | |
406 | echo as_func_ret_failure succeeded. | |
407 | fi | |
408 | ||
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
410 | : | |
411 | else | |
412 | exitcode=1 | |
413 | echo positional parameters were not saved. | |
414 | fi | |
415 | ||
416 | test \$exitcode = 0") || { | |
417 | echo No shell found that supports shell functions. | |
418 | echo Please tell autoconf@gnu.org about your system, | |
419 | echo including any error possibly output before this | |
420 | echo message | |
421 | } | |
422 | ||
423 | ||
424 | ||
425 | as_lineno_1=$LINENO | |
426 | as_lineno_2=$LINENO | |
427 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
212380e3 | 429 | |
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
431 | # uniformly replaced by the line number. The first 'sed' inserts a | |
631ef239 | 432 | # line-number line after each line using $LINENO; the second 'sed' |
433 | # does the real work. The second script uses 'N' to pair each | |
434 | # line-number line with the line containing $LINENO, and appends | |
435 | # trailing '-' during substitution so that $LINENO is not a special | |
436 | # case at line end. | |
212380e3 | 437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
631ef239 | 438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
439 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
440 | sed -n ' | |
441 | p | |
442 | /[$]LINENO/= | |
443 | ' <$as_myself | | |
212380e3 | 444 | sed ' |
631ef239 | 445 | s/[$]LINENO.*/&-/ |
446 | t lineno | |
447 | b | |
448 | :lineno | |
212380e3 | 449 | N |
631ef239 | 450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
212380e3 | 452 | t loop |
631ef239 | 453 | s/-\n.*// |
212380e3 | 454 | ' >$as_me.lineno && |
631ef239 | 455 | chmod +x "$as_me.lineno" || |
212380e3 | 456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
457 | { (exit 1); exit 1; }; } | |
458 | ||
459 | # Don't try to exec as it changes $[0], causing all sort of problems | |
460 | # (the dirname of $[0] is not the place where we might find the | |
631ef239 | 461 | # original and so on. Autoconf is especially sensitive to this). |
462 | . "./$as_me.lineno" | |
212380e3 | 463 | # Exit status is that of the last command. |
464 | exit | |
465 | } | |
466 | ||
467 | ||
631ef239 | 468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
469 | as_dirname=dirname | |
470 | else | |
471 | as_dirname=false | |
472 | fi | |
473 | ||
474 | ECHO_C= ECHO_N= ECHO_T= | |
475 | case `echo -n x` in | |
476 | -n*) | |
477 | case `echo 'x\c'` in | |
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
479 | *) ECHO_C='\c';; | |
480 | esac;; | |
481 | *) | |
482 | ECHO_N='-n';; | |
212380e3 | 483 | esac |
484 | ||
631ef239 | 485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 | 487 | as_expr=expr |
488 | else | |
489 | as_expr=false | |
490 | fi | |
491 | ||
492 | rm -f conf$$ conf$$.exe conf$$.file | |
631ef239 | 493 | if test -d conf$$.dir; then |
494 | rm -f conf$$.dir/conf$$.file | |
495 | else | |
496 | rm -f conf$$.dir | |
497 | mkdir conf$$.dir | |
498 | fi | |
212380e3 | 499 | echo >conf$$.file |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
631ef239 | 501 | as_ln_s='ln -s' |
502 | # ... but there are two gotchas: | |
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
505 | # In both cases, we have to default to `cp -p'. | |
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
212380e3 | 507 | as_ln_s='cp -p' |
212380e3 | 508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
509 | as_ln_s=ln | |
510 | else | |
511 | as_ln_s='cp -p' | |
512 | fi | |
631ef239 | 513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 | rmdir conf$$.dir 2>/dev/null | |
212380e3 | 515 | |
516 | if mkdir -p . 2>/dev/null; then | |
517 | as_mkdir_p=: | |
518 | else | |
519 | test -d ./-p && rmdir ./-p | |
520 | as_mkdir_p=false | |
521 | fi | |
522 | ||
631ef239 | 523 | if test -x / >/dev/null 2>&1; then |
524 | as_test_x='test -x' | |
525 | else | |
526 | if ls -dL / >/dev/null 2>&1; then | |
527 | as_ls_L_option=L | |
528 | else | |
529 | as_ls_L_option= | |
530 | fi | |
531 | as_test_x=' | |
532 | eval sh -c '\'' | |
533 | if test -d "$1"; then | |
534 | test -d "$1/."; | |
535 | else | |
536 | case $1 in | |
537 | -*)set "./$1";; | |
538 | esac; | |
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
540 | ???[sx]*):;;*)false;;esac;fi | |
541 | '\'' sh | |
542 | ' | |
543 | fi | |
544 | as_executable_p=$as_test_x | |
212380e3 | 545 | |
546 | # Sed expression to map a string onto a valid CPP name. | |
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
548 | ||
549 | # Sed expression to map a string onto a valid variable name. | |
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
551 | ||
552 | ||
212380e3 | 553 | |
631ef239 | 554 | exec 7<&0 </dev/null 6>&1 |
212380e3 | 555 | |
556 | # Name of the host. | |
557 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
558 | # so uname gets run too. | |
559 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
560 | ||
212380e3 | 561 | # |
562 | # Initializations. | |
563 | # | |
564 | ac_default_prefix=/usr/local | |
631ef239 | 565 | ac_clean_files= |
212380e3 | 566 | ac_config_libobj_dir=. |
631ef239 | 567 | LIBOBJS= |
212380e3 | 568 | cross_compiling=no |
569 | subdirs= | |
570 | MFLAGS= | |
571 | MAKEFLAGS= | |
572 | SHELL=${CONFIG_SHELL-/bin/sh} | |
573 | ||
212380e3 | 574 | # Identity of this package. |
575 | PACKAGE_NAME='charybdis' | |
576 | PACKAGE_TARNAME='charybdis' | |
b1fc1658 | 577 | PACKAGE_VERSION='2.2.0' |
578 | PACKAGE_STRING='charybdis 2.2.0' | |
212380e3 | 579 | PACKAGE_BUGREPORT='' |
580 | ||
581 | ac_default_prefix=$HOME/ircd | |
582 | # Factoring default headers for most tests. | |
583 | ac_includes_default="\ | |
584 | #include <stdio.h> | |
631ef239 | 585 | #ifdef HAVE_SYS_TYPES_H |
212380e3 | 586 | # include <sys/types.h> |
587 | #endif | |
631ef239 | 588 | #ifdef HAVE_SYS_STAT_H |
212380e3 | 589 | # include <sys/stat.h> |
590 | #endif | |
631ef239 | 591 | #ifdef STDC_HEADERS |
212380e3 | 592 | # include <stdlib.h> |
593 | # include <stddef.h> | |
594 | #else | |
631ef239 | 595 | # ifdef HAVE_STDLIB_H |
212380e3 | 596 | # include <stdlib.h> |
597 | # endif | |
598 | #endif | |
631ef239 | 599 | #ifdef HAVE_STRING_H |
600 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
212380e3 | 601 | # include <memory.h> |
602 | # endif | |
603 | # include <string.h> | |
604 | #endif | |
631ef239 | 605 | #ifdef HAVE_STRINGS_H |
212380e3 | 606 | # include <strings.h> |
607 | #endif | |
631ef239 | 608 | #ifdef HAVE_INTTYPES_H |
212380e3 | 609 | # include <inttypes.h> |
212380e3 | 610 | #endif |
631ef239 | 611 | #ifdef HAVE_STDINT_H |
612 | # include <stdint.h> | |
613 | #endif | |
614 | #ifdef HAVE_UNISTD_H | |
212380e3 | 615 | # include <unistd.h> |
616 | #endif" | |
617 | ||
631ef239 | 618 | ac_subst_vars='SHELL |
619 | PATH_SEPARATOR | |
620 | PACKAGE_NAME | |
621 | PACKAGE_TARNAME | |
622 | PACKAGE_VERSION | |
623 | PACKAGE_STRING | |
624 | PACKAGE_BUGREPORT | |
625 | exec_prefix | |
626 | prefix | |
627 | program_transform_name | |
628 | bindir | |
629 | sbindir | |
630 | libexecdir | |
631 | datarootdir | |
632 | datadir | |
633 | sysconfdir | |
634 | sharedstatedir | |
635 | localstatedir | |
636 | includedir | |
637 | oldincludedir | |
638 | docdir | |
639 | infodir | |
640 | htmldir | |
641 | dvidir | |
642 | pdfdir | |
643 | psdir | |
644 | libdir | |
645 | localedir | |
646 | mandir | |
647 | DEFS | |
648 | ECHO_C | |
649 | ECHO_N | |
650 | ECHO_T | |
651 | LIBS | |
652 | build_alias | |
653 | host_alias | |
654 | target_alias | |
655 | CC | |
656 | CFLAGS | |
657 | LDFLAGS | |
658 | CPPFLAGS | |
659 | ac_ct_CC | |
660 | EXEEXT | |
661 | OBJEXT | |
662 | MKDEP | |
663 | MAKEDEPEND | |
664 | STDOUT | |
665 | CPP | |
666 | GREP | |
667 | EGREP | |
668 | SET_MAKE | |
669 | INSTALL_PROGRAM | |
670 | INSTALL_SCRIPT | |
671 | INSTALL_DATA | |
672 | RM | |
673 | CP | |
674 | MV | |
675 | LN | |
676 | SED | |
677 | AR | |
678 | LD | |
679 | RANLIB | |
680 | TOUCH | |
681 | YACC | |
682 | YFLAGS | |
683 | LEX | |
684 | LEX_OUTPUT_ROOT | |
685 | LEXLIB | |
686 | CRYPT_LIB | |
687 | VICONF | |
688 | ALLOCA | |
689 | ENCSPEED | |
690 | ZLIB_LD | |
691 | ETC_DIR | |
692 | confdir | |
693 | LOG_DIR | |
694 | logdir | |
695 | HELP_DIR | |
696 | helpdir | |
697 | MODULE_DIR | |
698 | moduledir | |
699 | SELECT_TYPE | |
700 | FNVHASH_S | |
701 | MODULES_LIBS | |
702 | MOD_TARGET | |
703 | SSL_SRCS_ENABLE | |
704 | SSL_INCLUDES | |
705 | SSL_LIBS | |
706 | PICFLAGS | |
707 | IRC_CFLAGS | |
708 | SEDOBJ | |
709 | LIBOBJS | |
710 | LTLIBOBJS' | |
212380e3 | 711 | ac_subst_files='' |
631ef239 | 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 | ||
212380e3 | 724 | |
725 | # Initialize some variables set by options. | |
726 | ac_init_help= | |
727 | ac_init_version=false | |
728 | # The variables have the same names as the options, with | |
729 | # dashes changed to underlines. | |
730 | cache_file=/dev/null | |
731 | exec_prefix=NONE | |
732 | no_create= | |
733 | no_recursion= | |
734 | prefix=NONE | |
735 | program_prefix=NONE | |
736 | program_suffix=NONE | |
737 | program_transform_name=s,x,x, | |
738 | silent= | |
739 | site= | |
740 | srcdir= | |
741 | verbose= | |
742 | x_includes=NONE | |
743 | x_libraries=NONE | |
744 | ||
745 | # Installation directory options. | |
746 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
747 | # and all the variables that are supposed to be based on exec_prefix | |
748 | # by default will actually change. | |
749 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 750 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 | 751 | bindir='${exec_prefix}/bin' |
752 | sbindir='${exec_prefix}/sbin' | |
753 | libexecdir='${exec_prefix}/libexec' | |
631ef239 | 754 | datarootdir='${prefix}/share' |
755 | datadir='${datarootdir}' | |
212380e3 | 756 | sysconfdir='${prefix}/etc' |
757 | sharedstatedir='${prefix}/com' | |
758 | localstatedir='${prefix}/var' | |
212380e3 | 759 | includedir='${prefix}/include' |
760 | oldincludedir='/usr/include' | |
631ef239 | 761 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
762 | infodir='${datarootdir}/info' | |
763 | htmldir='${docdir}' | |
764 | dvidir='${docdir}' | |
765 | pdfdir='${docdir}' | |
766 | psdir='${docdir}' | |
767 | libdir='${exec_prefix}/lib' | |
768 | localedir='${datarootdir}/locale' | |
769 | mandir='${datarootdir}/man' | |
212380e3 | 770 | |
771 | ac_prev= | |
631ef239 | 772 | ac_dashdash= |
212380e3 | 773 | for ac_option |
774 | do | |
775 | # If the previous option needs an argument, assign it. | |
776 | if test -n "$ac_prev"; then | |
631ef239 | 777 | eval $ac_prev=\$ac_option |
212380e3 | 778 | ac_prev= |
779 | continue | |
780 | fi | |
781 | ||
631ef239 | 782 | case $ac_option in |
783 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
784 | *) ac_optarg=yes ;; | |
785 | esac | |
212380e3 | 786 | |
787 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
788 | ||
631ef239 | 789 | case $ac_dashdash$ac_option in |
790 | --) | |
791 | ac_dashdash=yes ;; | |
212380e3 | 792 | |
793 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
794 | ac_prev=bindir ;; | |
795 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
796 | bindir=$ac_optarg ;; | |
797 | ||
798 | -build | --build | --buil | --bui | --bu) | |
799 | ac_prev=build_alias ;; | |
800 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
801 | build_alias=$ac_optarg ;; | |
802 | ||
803 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
804 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
805 | ac_prev=cache_file ;; | |
806 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
807 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
808 | cache_file=$ac_optarg ;; | |
809 | ||
810 | --config-cache | -C) | |
811 | cache_file=config.cache ;; | |
812 | ||
631ef239 | 813 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 814 | ac_prev=datadir ;; |
631ef239 | 815 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 | 816 | datadir=$ac_optarg ;; |
817 | ||
631ef239 | 818 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
819 | | --dataroo | --dataro | --datar) | |
820 | ac_prev=datarootdir ;; | |
821 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
822 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
823 | datarootdir=$ac_optarg ;; | |
824 | ||
212380e3 | 825 | -disable-* | --disable-*) |
826 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
827 | # Reject names that are not valid shell variable names. | |
631ef239 | 828 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 | 829 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
830 | { (exit 1); exit 1; }; } | |
631ef239 | 831 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
832 | eval enable_$ac_feature=no ;; | |
833 | ||
834 | -docdir | --docdir | --docdi | --doc | --do) | |
835 | ac_prev=docdir ;; | |
836 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
837 | docdir=$ac_optarg ;; | |
838 | ||
839 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
840 | ac_prev=dvidir ;; | |
841 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
842 | dvidir=$ac_optarg ;; | |
212380e3 | 843 | |
844 | -enable-* | --enable-*) | |
845 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
846 | # Reject names that are not valid shell variable names. | |
631ef239 | 847 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 | 848 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
849 | { (exit 1); exit 1; }; } | |
631ef239 | 850 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
851 | eval enable_$ac_feature=\$ac_optarg ;; | |
212380e3 | 852 | |
853 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
854 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
855 | | --exec | --exe | --ex) | |
856 | ac_prev=exec_prefix ;; | |
857 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
858 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
859 | | --exec=* | --exe=* | --ex=*) | |
860 | exec_prefix=$ac_optarg ;; | |
861 | ||
862 | -gas | --gas | --ga | --g) | |
863 | # Obsolete; use --with-gas. | |
864 | with_gas=yes ;; | |
865 | ||
866 | -help | --help | --hel | --he | -h) | |
867 | ac_init_help=long ;; | |
868 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
869 | ac_init_help=recursive ;; | |
870 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
871 | ac_init_help=short ;; | |
872 | ||
873 | -host | --host | --hos | --ho) | |
874 | ac_prev=host_alias ;; | |
875 | -host=* | --host=* | --hos=* | --ho=*) | |
876 | host_alias=$ac_optarg ;; | |
877 | ||
631ef239 | 878 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
879 | ac_prev=htmldir ;; | |
880 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
881 | | --ht=*) | |
882 | htmldir=$ac_optarg ;; | |
883 | ||
212380e3 | 884 | -includedir | --includedir | --includedi | --included | --include \ |
885 | | --includ | --inclu | --incl | --inc) | |
886 | ac_prev=includedir ;; | |
887 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
888 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
889 | includedir=$ac_optarg ;; | |
890 | ||
891 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
892 | ac_prev=infodir ;; | |
893 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
894 | infodir=$ac_optarg ;; | |
895 | ||
896 | -libdir | --libdir | --libdi | --libd) | |
897 | ac_prev=libdir ;; | |
898 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
899 | libdir=$ac_optarg ;; | |
900 | ||
901 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
902 | | --libexe | --libex | --libe) | |
903 | ac_prev=libexecdir ;; | |
904 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
905 | | --libexe=* | --libex=* | --libe=*) | |
906 | libexecdir=$ac_optarg ;; | |
907 | ||
631ef239 | 908 | -localedir | --localedir | --localedi | --localed | --locale) |
909 | ac_prev=localedir ;; | |
910 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
911 | localedir=$ac_optarg ;; | |
912 | ||
212380e3 | 913 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 914 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 | 915 | ac_prev=localstatedir ;; |
916 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 917 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 | 918 | localstatedir=$ac_optarg ;; |
919 | ||
920 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
921 | ac_prev=mandir ;; | |
922 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
923 | mandir=$ac_optarg ;; | |
924 | ||
925 | -nfp | --nfp | --nf) | |
926 | # Obsolete; use --without-fp. | |
927 | with_fp=no ;; | |
928 | ||
929 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
930 | | --no-cr | --no-c | -n) | |
931 | no_create=yes ;; | |
932 | ||
933 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
934 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
935 | no_recursion=yes ;; | |
936 | ||
937 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
938 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
939 | | --oldin | --oldi | --old | --ol | --o) | |
940 | ac_prev=oldincludedir ;; | |
941 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
942 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
943 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
944 | oldincludedir=$ac_optarg ;; | |
945 | ||
946 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
947 | ac_prev=prefix ;; | |
948 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
949 | prefix=$ac_optarg ;; | |
950 | ||
951 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
952 | | --program-pre | --program-pr | --program-p) | |
953 | ac_prev=program_prefix ;; | |
954 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
955 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
956 | program_prefix=$ac_optarg ;; | |
957 | ||
958 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
959 | | --program-suf | --program-su | --program-s) | |
960 | ac_prev=program_suffix ;; | |
961 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
962 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
963 | program_suffix=$ac_optarg ;; | |
964 | ||
965 | -program-transform-name | --program-transform-name \ | |
966 | | --program-transform-nam | --program-transform-na \ | |
967 | | --program-transform-n | --program-transform- \ | |
968 | | --program-transform | --program-transfor \ | |
969 | | --program-transfo | --program-transf \ | |
970 | | --program-trans | --program-tran \ | |
971 | | --progr-tra | --program-tr | --program-t) | |
972 | ac_prev=program_transform_name ;; | |
973 | -program-transform-name=* | --program-transform-name=* \ | |
974 | | --program-transform-nam=* | --program-transform-na=* \ | |
975 | | --program-transform-n=* | --program-transform-=* \ | |
976 | | --program-transform=* | --program-transfor=* \ | |
977 | | --program-transfo=* | --program-transf=* \ | |
978 | | --program-trans=* | --program-tran=* \ | |
979 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
980 | program_transform_name=$ac_optarg ;; | |
981 | ||
631ef239 | 982 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
983 | ac_prev=pdfdir ;; | |
984 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
985 | pdfdir=$ac_optarg ;; | |
986 | ||
987 | -psdir | --psdir | --psdi | --psd | --ps) | |
988 | ac_prev=psdir ;; | |
989 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
990 | psdir=$ac_optarg ;; | |
991 | ||
212380e3 | 992 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
993 | | -silent | --silent | --silen | --sile | --sil) | |
994 | silent=yes ;; | |
995 | ||
996 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
997 | ac_prev=sbindir ;; | |
998 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
999 | | --sbi=* | --sb=*) | |
1000 | sbindir=$ac_optarg ;; | |
1001 | ||
1002 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1003 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1004 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1005 | | --sha | --sh) | |
1006 | ac_prev=sharedstatedir ;; | |
1007 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1008 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1009 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1010 | | --sha=* | --sh=*) | |
1011 | sharedstatedir=$ac_optarg ;; | |
1012 | ||
1013 | -site | --site | --sit) | |
1014 | ac_prev=site ;; | |
1015 | -site=* | --site=* | --sit=*) | |
1016 | site=$ac_optarg ;; | |
1017 | ||
1018 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1019 | ac_prev=srcdir ;; | |
1020 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1021 | srcdir=$ac_optarg ;; | |
1022 | ||
1023 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1024 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1025 | ac_prev=sysconfdir ;; | |
1026 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1027 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1028 | sysconfdir=$ac_optarg ;; | |
1029 | ||
1030 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1031 | ac_prev=target_alias ;; | |
1032 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1033 | target_alias=$ac_optarg ;; | |
1034 | ||
1035 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1036 | verbose=yes ;; | |
1037 | ||
1038 | -version | --version | --versio | --versi | --vers | -V) | |
1039 | ac_init_version=: ;; | |
1040 | ||
1041 | -with-* | --with-*) | |
1042 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1043 | # Reject names that are not valid shell variable names. | |
631ef239 | 1044 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 | 1045 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1046 | { (exit 1); exit 1; }; } | |
631ef239 | 1047 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1048 | eval with_$ac_package=\$ac_optarg ;; | |
212380e3 | 1049 | |
1050 | -without-* | --without-*) | |
1051 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1052 | # Reject names that are not valid shell variable names. | |
631ef239 | 1053 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 | 1054 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1055 | { (exit 1); exit 1; }; } | |
631ef239 | 1056 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1057 | eval with_$ac_package=no ;; | |
212380e3 | 1058 | |
1059 | --x) | |
1060 | # Obsolete; use --with-x. | |
1061 | with_x=yes ;; | |
1062 | ||
1063 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1064 | | --x-incl | --x-inc | --x-in | --x-i) | |
1065 | ac_prev=x_includes ;; | |
1066 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1067 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1068 | x_includes=$ac_optarg ;; | |
1069 | ||
1070 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1071 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1072 | ac_prev=x_libraries ;; | |
1073 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1074 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1075 | x_libraries=$ac_optarg ;; | |
1076 | ||
1077 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1078 | Try \`$0 --help' for more information." >&2 | |
1079 | { (exit 1); exit 1; }; } | |
1080 | ;; | |
1081 | ||
1082 | *=*) | |
1083 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1084 | # Reject names that are not valid shell variable names. | |
1085 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1086 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1087 | { (exit 1); exit 1; }; } | |
631ef239 | 1088 | eval $ac_envvar=\$ac_optarg |
212380e3 | 1089 | export $ac_envvar ;; |
1090 | ||
1091 | *) | |
1092 | # FIXME: should be removed in autoconf 3.0. | |
1093 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1094 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1095 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1096 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1097 | ;; | |
1098 | ||
1099 | esac | |
1100 | done | |
1101 | ||
1102 | if test -n "$ac_prev"; then | |
1103 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1104 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1105 | { (exit 1); exit 1; }; } | |
1106 | fi | |
1107 | ||
631ef239 | 1108 | # Be sure to have absolute directory names. |
1109 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1110 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1111 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1112 | libdir localedir mandir | |
212380e3 | 1113 | do |
631ef239 | 1114 | eval ac_val=\$$ac_var |
212380e3 | 1115 | case $ac_val in |
631ef239 | 1116 | [\\/$]* | ?:[\\/]* ) continue;; |
1117 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1118 | esac |
631ef239 | 1119 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1120 | { (exit 1); exit 1; }; } | |
212380e3 | 1121 | done |
1122 | ||
1123 | # There might be people who depend on the old broken behavior: `$host' | |
1124 | # used to hold the argument of --host etc. | |
1125 | # FIXME: To remove some day. | |
1126 | build=$build_alias | |
1127 | host=$host_alias | |
1128 | target=$target_alias | |
1129 | ||
1130 | # FIXME: To remove some day. | |
1131 | if test "x$host_alias" != x; then | |
1132 | if test "x$build_alias" = x; then | |
1133 | cross_compiling=maybe | |
1134 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1135 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1136 | elif test "x$build_alias" != "x$host_alias"; then | |
1137 | cross_compiling=yes | |
1138 | fi | |
1139 | fi | |
1140 | ||
1141 | ac_tool_prefix= | |
1142 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1143 | ||
1144 | test "$silent" = yes && exec 6>/dev/null | |
1145 | ||
1146 | ||
631ef239 | 1147 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1148 | ac_ls_di=`ls -di .` && | |
1149 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1150 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1151 | { (exit 1); exit 1; }; } | |
1152 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1153 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1154 | { (exit 1); exit 1; }; } | |
1155 | ||
1156 | ||
1157 | # Find the source files, if location was not specified. | |
1158 | if test -z "$srcdir"; then | |
212380e3 | 1159 | ac_srcdir_defaulted=yes |
631ef239 | 1160 | # Try the directory containing this script, then the parent directory. |
1161 | ac_confdir=`$as_dirname -- "$0" || | |
212380e3 | 1162 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1163 | X"$0" : 'X\(//\)[^/]' \| \ | |
1164 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 1165 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 1166 | echo X"$0" | |
631ef239 | 1167 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1168 | s//\1/ | |
1169 | q | |
1170 | } | |
1171 | /^X\(\/\/\)[^/].*/{ | |
1172 | s//\1/ | |
1173 | q | |
1174 | } | |
1175 | /^X\(\/\/\)$/{ | |
1176 | s//\1/ | |
1177 | q | |
1178 | } | |
1179 | /^X\(\/\).*/{ | |
1180 | s//\1/ | |
1181 | q | |
1182 | } | |
1183 | s/.*/./; q'` | |
212380e3 | 1184 | srcdir=$ac_confdir |
631ef239 | 1185 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 | 1186 | srcdir=.. |
1187 | fi | |
1188 | else | |
1189 | ac_srcdir_defaulted=no | |
1190 | fi | |
631ef239 | 1191 | if test ! -r "$srcdir/$ac_unique_file"; then |
1192 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1193 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
212380e3 | 1194 | { (exit 1); exit 1; }; } |
212380e3 | 1195 | fi |
631ef239 | 1196 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1197 | ac_abs_confdir=`( | |
1198 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
212380e3 | 1199 | { (exit 1); exit 1; }; } |
631ef239 | 1200 | pwd)` |
1201 | # When building in place, set srcdir=. | |
1202 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1203 | srcdir=. | |
1204 | fi | |
1205 | # Remove unnecessary trailing slashes from srcdir. | |
1206 | # Double slashes in file names in object file debugging info | |
1207 | # mess up M-x gdb in Emacs. | |
1208 | case $srcdir in | |
1209 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1210 | esac | |
1211 | for ac_var in $ac_precious_vars; do | |
1212 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1213 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1214 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1215 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1216 | done | |
212380e3 | 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 | |
b1fc1658 | 1225 | \`configure' configures charybdis 2.2.0 to adapt to many kinds of systems. |
212380e3 | 1226 | |
1227 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1228 | ||
1229 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1230 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1231 | ||
1232 | Defaults for the options are specified in brackets. | |
1233 | ||
1234 | Configuration: | |
1235 | -h, --help display this help and exit | |
1236 | --help=short display options specific to this package | |
1237 | --help=recursive display the short help of all the included packages | |
1238 | -V, --version display version information and exit | |
1239 | -q, --quiet, --silent do not print \`checking...' messages | |
1240 | --cache-file=FILE cache test results in FILE [disabled] | |
1241 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1242 | -n, --no-create do not create output files | |
1243 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1244 | ||
212380e3 | 1245 | Installation directories: |
1246 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1247 | [$ac_default_prefix] | |
1248 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1249 | [PREFIX] | |
1250 | ||
1251 | By default, \`make install' will install all the files in | |
1252 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1253 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1254 | for instance \`--prefix=\$HOME'. | |
1255 | ||
1256 | For better control, use the options below. | |
1257 | ||
1258 | Fine tuning of the installation directories: | |
1259 | --bindir=DIR user executables [EPREFIX/bin] | |
1260 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1261 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
212380e3 | 1262 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1263 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1264 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1265 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1266 | --includedir=DIR C header files [PREFIX/include] | |
1267 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
631ef239 | 1268 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1269 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1270 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1271 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1272 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1273 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1274 | --htmldir=DIR html documentation [DOCDIR] | |
1275 | --dvidir=DIR dvi documentation [DOCDIR] | |
1276 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1277 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 | 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 | |
b1fc1658 | 1286 | short | recursive ) echo "Configuration of charybdis 2.2.0:";; |
212380e3 | 1287 | esac |
1288 | cat <<\_ACEOF | |
1289 | ||
1290 | Optional Features: | |
1291 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1292 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1293 | --enable-ipv6 Enable IPv6 support | |
631ef239 | 1294 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 | 1295 | --disable-openssl Disable OpenSSL support. |
1296 | --disable-zlib Disable ziplinks support | |
1297 | --enable-poll Force poll() usage. | |
1298 | --enable-select Force select() usage. | |
1299 | --enable-kqueue Force kqueue() usage. | |
1300 | --enable-devpoll Force usage of /dev/poll. | |
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-ricer-hashing Enable assembly-based hashing routines. | |
1308 | --enable-small-net Enable small network support. | |
1309 | --disable-shared-modules | |
1310 | Disable shared modules. | |
1311 | --enable-warnings Enable all sorts of warnings for debugging. | |
1312 | ||
1313 | Optional Packages: | |
1314 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1315 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1316 | --with-zlib-path=DIR Path to libz.so for ziplinks support. | |
1317 | --with-confdir=DIR Directory to install config files. | |
1318 | --with-logdir=DIR Directory where to write logfiles. | |
1319 | --with-helpdir=DIR Directory to install help files. | |
1320 | --with-moduledir=DIR Directory to install modules. | |
1321 | --with-nicklen=LENGTH Set the nick length to LENGTH (default 15, max 50) | |
1322 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max | |
1323 | 390) | |
212380e3 | 1324 | |
1325 | Some influential environment variables: | |
1326 | CC C compiler command | |
1327 | CFLAGS C compiler flags | |
1328 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1329 | nonstandard directory <lib dir> | |
631ef239 | 1330 | LIBS libraries to pass to the linker, e.g. -l<library> |
1331 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1332 | you have headers in a nonstandard directory <include dir> | |
212380e3 | 1333 | CPP C preprocessor |
631ef239 | 1334 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1335 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1336 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1337 | This script will default YFLAGS to the empty string to avoid a | |
1338 | default value of `-d' given by some make applications. | |
212380e3 | 1339 | |
1340 | Use these variables to override the choices made by `configure' or to help | |
1341 | it to find libraries and programs with nonstandard names/locations. | |
1342 | ||
1343 | _ACEOF | |
631ef239 | 1344 | ac_status=$? |
212380e3 | 1345 | fi |
1346 | ||
1347 | if test "$ac_init_help" = "recursive"; then | |
1348 | # If there are subdirs, report their specific --help. | |
212380e3 | 1349 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
631ef239 | 1350 | test -d "$ac_dir" || continue |
212380e3 | 1351 | ac_builddir=. |
1352 | ||
631ef239 | 1353 | case "$ac_dir" in |
1354 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1355 | *) | |
212380e3 | 1356 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
631ef239 | 1357 | # A ".." for each directory in $ac_dir_suffix. |
1358 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1359 | case $ac_top_builddir_sub in | |
1360 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1361 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1362 | esac ;; | |
1363 | esac | |
1364 | ac_abs_top_builddir=$ac_pwd | |
1365 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1366 | # for backward compatibility: | |
1367 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 | 1368 | |
1369 | case $srcdir in | |
631ef239 | 1370 | .) # We are building in place. |
212380e3 | 1371 | ac_srcdir=. |
631ef239 | 1372 | ac_top_srcdir=$ac_top_builddir_sub |
1373 | ac_abs_top_srcdir=$ac_pwd ;; | |
1374 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 1375 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 | 1376 | ac_top_srcdir=$srcdir |
1377 | ac_abs_top_srcdir=$srcdir ;; | |
1378 | *) # Relative name. | |
1379 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1380 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1381 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 1382 | esac |
631ef239 | 1383 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1384 | ||
1385 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1386 | # Check for guested configure. | |
1387 | if test -f "$ac_srcdir/configure.gnu"; then | |
1388 | echo && | |
1389 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1390 | elif test -f "$ac_srcdir/configure"; then | |
1391 | echo && | |
1392 | $SHELL "$ac_srcdir/configure" --help=recursive | |
212380e3 | 1393 | else |
1394 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
631ef239 | 1395 | fi || ac_status=$? |
1396 | cd "$ac_pwd" || { ac_status=$?; break; } | |
212380e3 | 1397 | done |
1398 | fi | |
1399 | ||
631ef239 | 1400 | test -n "$ac_init_help" && exit $ac_status |
212380e3 | 1401 | if $ac_init_version; then |
1402 | cat <<\_ACEOF | |
b1fc1658 | 1403 | charybdis configure 2.2.0 |
631ef239 | 1404 | generated by GNU Autoconf 2.61 |
212380e3 | 1405 | |
631ef239 | 1406 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1407 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
212380e3 | 1408 | This configure script is free software; the Free Software Foundation |
1409 | gives unlimited permission to copy, distribute and modify it. | |
1410 | ||
631ef239 | 1411 | $Id: configure 3356 2007-04-03 09:31:11Z nenolod $ |
212380e3 | 1412 | _ACEOF |
631ef239 | 1413 | exit |
212380e3 | 1414 | fi |
631ef239 | 1415 | cat >config.log <<_ACEOF |
212380e3 | 1416 | This file contains any messages produced by compilers while |
1417 | running configure, to aid debugging if configure makes a mistake. | |
1418 | ||
b1fc1658 | 1419 | It was created by charybdis $as_me 2.2.0, which was |
631ef239 | 1420 | generated by GNU Autoconf 2.61. Invocation command line was |
212380e3 | 1421 | |
1422 | $ $0 $@ | |
1423 | ||
1424 | _ACEOF | |
631ef239 | 1425 | exec 5>>config.log |
212380e3 | 1426 | { |
1427 | cat <<_ASUNAME | |
1428 | ## --------- ## | |
1429 | ## Platform. ## | |
1430 | ## --------- ## | |
1431 | ||
1432 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1433 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1434 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1435 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1436 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1437 | ||
1438 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1439 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1440 | ||
1441 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1442 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1443 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
631ef239 | 1444 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
212380e3 | 1445 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1446 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1447 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1448 | ||
1449 | _ASUNAME | |
1450 | ||
1451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1452 | for as_dir in $PATH | |
1453 | do | |
1454 | IFS=$as_save_IFS | |
1455 | test -z "$as_dir" && as_dir=. | |
1456 | echo "PATH: $as_dir" | |
1457 | done | |
631ef239 | 1458 | IFS=$as_save_IFS |
212380e3 | 1459 | |
1460 | } >&5 | |
1461 | ||
1462 | cat >&5 <<_ACEOF | |
1463 | ||
1464 | ||
1465 | ## ----------- ## | |
1466 | ## Core tests. ## | |
1467 | ## ----------- ## | |
1468 | ||
1469 | _ACEOF | |
1470 | ||
1471 | ||
1472 | # Keep a trace of the command line. | |
1473 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1474 | # Strip out --silent because we don't want to record it for future runs. | |
1475 | # Also quote any args containing shell meta-characters. | |
1476 | # Make two passes to allow for proper duplicate-argument suppression. | |
1477 | ac_configure_args= | |
1478 | ac_configure_args0= | |
1479 | ac_configure_args1= | |
212380e3 | 1480 | ac_must_keep_next=false |
1481 | for ac_pass in 1 2 | |
1482 | do | |
1483 | for ac_arg | |
1484 | do | |
1485 | case $ac_arg in | |
1486 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1487 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1488 | | -silent | --silent | --silen | --sile | --sil) | |
1489 | continue ;; | |
631ef239 | 1490 | *\'*) |
212380e3 | 1491 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1492 | esac | |
1493 | case $ac_pass in | |
1494 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1495 | 2) | |
1496 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1497 | if test $ac_must_keep_next = true; then | |
1498 | ac_must_keep_next=false # Got value, back to normal. | |
1499 | else | |
1500 | case $ac_arg in | |
1501 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1502 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1503 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1504 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1505 | case "$ac_configure_args0 " in | |
1506 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1507 | esac | |
1508 | ;; | |
1509 | -* ) ac_must_keep_next=true ;; | |
1510 | esac | |
1511 | fi | |
631ef239 | 1512 | ac_configure_args="$ac_configure_args '$ac_arg'" |
212380e3 | 1513 | ;; |
1514 | esac | |
1515 | done | |
1516 | done | |
1517 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1518 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1519 | ||
1520 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1521 | # config.log. We remove comments because anyway the quotes in there | |
1522 | # would cause problems or look ugly. | |
631ef239 | 1523 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1524 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
212380e3 | 1525 | trap 'exit_status=$? |
1526 | # Save into config.log some information that might help in debugging. | |
1527 | { | |
1528 | echo | |
1529 | ||
1530 | cat <<\_ASBOX | |
1531 | ## ---------------- ## | |
1532 | ## Cache variables. ## | |
1533 | ## ---------------- ## | |
1534 | _ASBOX | |
1535 | echo | |
1536 | # The following way of writing the cache mishandles newlines in values, | |
631ef239 | 1537 | ( |
1538 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1539 | eval ac_val=\$$ac_var | |
1540 | case $ac_val in #( | |
1541 | *${as_nl}*) | |
1542 | case $ac_var in #( | |
1543 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1544 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1545 | esac | |
1546 | case $ac_var in #( | |
1547 | _ | IFS | as_nl) ;; #( | |
1548 | *) $as_unset $ac_var ;; | |
1549 | esac ;; | |
1550 | esac | |
1551 | done | |
212380e3 | 1552 | (set) 2>&1 | |
631ef239 | 1553 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1554 | *${as_nl}ac_space=\ *) | |
212380e3 | 1555 | sed -n \ |
631ef239 | 1556 | "s/'\''/'\''\\\\'\'''\''/g; |
1557 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1558 | ;; #( | |
212380e3 | 1559 | *) |
631ef239 | 1560 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 1561 | ;; |
631ef239 | 1562 | esac | |
1563 | sort | |
1564 | ) | |
212380e3 | 1565 | echo |
1566 | ||
1567 | cat <<\_ASBOX | |
1568 | ## ----------------- ## | |
1569 | ## Output variables. ## | |
1570 | ## ----------------- ## | |
1571 | _ASBOX | |
1572 | echo | |
1573 | for ac_var in $ac_subst_vars | |
1574 | do | |
631ef239 | 1575 | eval ac_val=\$$ac_var |
1576 | case $ac_val in | |
1577 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1578 | esac | |
1579 | echo "$ac_var='\''$ac_val'\''" | |
212380e3 | 1580 | done | sort |
1581 | echo | |
1582 | ||
1583 | if test -n "$ac_subst_files"; then | |
1584 | cat <<\_ASBOX | |
631ef239 | 1585 | ## ------------------- ## |
1586 | ## File substitutions. ## | |
1587 | ## ------------------- ## | |
212380e3 | 1588 | _ASBOX |
1589 | echo | |
1590 | for ac_var in $ac_subst_files | |
1591 | do | |
631ef239 | 1592 | eval ac_val=\$$ac_var |
1593 | case $ac_val in | |
1594 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1595 | esac | |
1596 | echo "$ac_var='\''$ac_val'\''" | |
212380e3 | 1597 | done | sort |
1598 | echo | |
1599 | fi | |
1600 | ||
1601 | if test -s confdefs.h; then | |
1602 | cat <<\_ASBOX | |
1603 | ## ----------- ## | |
1604 | ## confdefs.h. ## | |
1605 | ## ----------- ## | |
1606 | _ASBOX | |
1607 | echo | |
631ef239 | 1608 | cat confdefs.h |
212380e3 | 1609 | echo |
1610 | fi | |
1611 | test "$ac_signal" != 0 && | |
1612 | echo "$as_me: caught signal $ac_signal" | |
1613 | echo "$as_me: exit $exit_status" | |
1614 | } >&5 | |
631ef239 | 1615 | rm -f core *.core core.conftest.* && |
1616 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
212380e3 | 1617 | exit $exit_status |
631ef239 | 1618 | ' 0 |
212380e3 | 1619 | for ac_signal in 1 2 13 15; do |
1620 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1621 | done | |
1622 | ac_signal=0 | |
1623 | ||
1624 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
631ef239 | 1625 | rm -f -r conftest* confdefs.h |
212380e3 | 1626 | |
1627 | # Predefined preprocessor variables. | |
1628 | ||
1629 | cat >>confdefs.h <<_ACEOF | |
1630 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1631 | _ACEOF | |
1632 | ||
1633 | ||
1634 | cat >>confdefs.h <<_ACEOF | |
1635 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1636 | _ACEOF | |
1637 | ||
1638 | ||
1639 | cat >>confdefs.h <<_ACEOF | |
1640 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1641 | _ACEOF | |
1642 | ||
1643 | ||
1644 | cat >>confdefs.h <<_ACEOF | |
1645 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1646 | _ACEOF | |
1647 | ||
1648 | ||
1649 | cat >>confdefs.h <<_ACEOF | |
1650 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1651 | _ACEOF | |
1652 | ||
1653 | ||
1654 | # Let the site file select an alternate cache file if it wants to. | |
1655 | # Prefer explicitly selected file to automatically selected ones. | |
631ef239 | 1656 | if test -n "$CONFIG_SITE"; then |
1657 | set x "$CONFIG_SITE" | |
1658 | elif test "x$prefix" != xNONE; then | |
1659 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1660 | else | |
1661 | set x "$ac_default_prefix/share/config.site" \ | |
1662 | "$ac_default_prefix/etc/config.site" | |
212380e3 | 1663 | fi |
631ef239 | 1664 | shift |
1665 | for ac_site_file | |
1666 | do | |
212380e3 | 1667 | if test -r "$ac_site_file"; then |
1668 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1669 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1670 | sed 's/^/| /' "$ac_site_file" >&5 | |
1671 | . "$ac_site_file" | |
1672 | fi | |
1673 | done | |
1674 | ||
1675 | if test -r "$cache_file"; then | |
1676 | # Some versions of bash will fail to source /dev/null (special | |
1677 | # files actually), so we avoid doing that. | |
1678 | if test -f "$cache_file"; then | |
1679 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1680 | echo "$as_me: loading cache $cache_file" >&6;} | |
1681 | case $cache_file in | |
631ef239 | 1682 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1683 | *) . "./$cache_file";; | |
212380e3 | 1684 | esac |
1685 | fi | |
1686 | else | |
1687 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1688 | echo "$as_me: creating cache $cache_file" >&6;} | |
1689 | >$cache_file | |
1690 | fi | |
1691 | ||
1692 | # Check that the precious variables saved in the cache have kept the same | |
1693 | # value. | |
1694 | ac_cache_corrupted=false | |
631ef239 | 1695 | for ac_var in $ac_precious_vars; do |
212380e3 | 1696 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1697 | eval ac_new_set=\$ac_env_${ac_var}_set | |
631ef239 | 1698 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1699 | eval ac_new_val=\$ac_env_${ac_var}_value | |
212380e3 | 1700 | case $ac_old_set,$ac_new_set in |
1701 | set,) | |
1702 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1703 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1704 | ac_cache_corrupted=: ;; | |
1705 | ,set) | |
1706 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1707 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1708 | ac_cache_corrupted=: ;; | |
1709 | ,);; | |
1710 | *) | |
1711 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1712 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1713 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1714 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1715 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1716 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1717 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1718 | ac_cache_corrupted=: | |
1719 | fi;; | |
1720 | esac | |
1721 | # Pass precious variables to config.status. | |
1722 | if test "$ac_new_set" = set; then | |
1723 | case $ac_new_val in | |
631ef239 | 1724 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
212380e3 | 1725 | *) ac_arg=$ac_var=$ac_new_val ;; |
1726 | esac | |
1727 | case " $ac_configure_args " in | |
1728 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1729 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1730 | esac | |
1731 | fi | |
1732 | done | |
1733 | if $ac_cache_corrupted; then | |
1734 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1735 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1736 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1737 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1738 | { (exit 1); exit 1; }; } | |
1739 | fi | |
1740 | ||
212380e3 | 1741 | |
1742 | ||
1743 | ||
1744 | ||
1745 | ||
1746 | ||
1747 | ||
1748 | ||
1749 | ||
1750 | ||
1751 | ||
1752 | ||
1753 | ||
1754 | ||
1755 | ||
1756 | ||
1757 | ||
1758 | ||
1759 | ||
1760 | ||
1761 | ||
1762 | ||
1763 | ||
1764 | ||
631ef239 | 1765 | ac_ext=c |
1766 | ac_cpp='$CPP $CPPFLAGS' | |
1767 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1768 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1769 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
212380e3 | 1770 | |
1771 | ||
1772 | ||
631ef239 | 1773 | ac_config_headers="$ac_config_headers include/setup.h" |
212380e3 | 1774 | |
1775 | ||
1776 | ||
1777 | ||
1778 | ||
1779 | cat >>confdefs.h <<\_ACEOF | |
1780 | #define _GNU_SOURCE 1 | |
1781 | _ACEOF | |
1782 | ||
1783 | ||
1784 | ||
1785 | OLD_CFLAGS="$CFLAGS" | |
1786 | ac_ext=c | |
1787 | ac_cpp='$CPP $CPPFLAGS' | |
1788 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1789 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1790 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1791 | if test -n "$ac_tool_prefix"; then | |
1792 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1793 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
631ef239 | 1794 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 1796 | if test "${ac_cv_prog_CC+set}" = set; then |
1797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1798 | else | |
1799 | if test -n "$CC"; then | |
1800 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1801 | else | |
1802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1803 | for as_dir in $PATH | |
1804 | do | |
1805 | IFS=$as_save_IFS | |
1806 | test -z "$as_dir" && as_dir=. | |
1807 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 1808 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 1809 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1810 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1811 | break 2 | |
1812 | fi | |
1813 | done | |
1814 | done | |
631ef239 | 1815 | IFS=$as_save_IFS |
212380e3 | 1816 | |
1817 | fi | |
1818 | fi | |
1819 | CC=$ac_cv_prog_CC | |
1820 | if test -n "$CC"; then | |
631ef239 | 1821 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1822 | echo "${ECHO_T}$CC" >&6; } | |
212380e3 | 1823 | else |
631ef239 | 1824 | { echo "$as_me:$LINENO: result: no" >&5 |
1825 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 1826 | fi |
1827 | ||
631ef239 | 1828 | |
212380e3 | 1829 | fi |
1830 | if test -z "$ac_cv_prog_CC"; then | |
1831 | ac_ct_CC=$CC | |
1832 | # Extract the first word of "gcc", so it can be a program name with args. | |
1833 | set dummy gcc; ac_word=$2 | |
631ef239 | 1834 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1835 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 1836 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1838 | else | |
1839 | if test -n "$ac_ct_CC"; then | |
1840 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1841 | else | |
1842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1843 | for as_dir in $PATH | |
1844 | do | |
1845 | IFS=$as_save_IFS | |
1846 | test -z "$as_dir" && as_dir=. | |
1847 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 1848 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 1849 | ac_cv_prog_ac_ct_CC="gcc" |
1850 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1851 | break 2 | |
1852 | fi | |
1853 | done | |
1854 | done | |
631ef239 | 1855 | IFS=$as_save_IFS |
212380e3 | 1856 | |
1857 | fi | |
1858 | fi | |
1859 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1860 | if test -n "$ac_ct_CC"; then | |
631ef239 | 1861 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1862 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
212380e3 | 1863 | else |
631ef239 | 1864 | { echo "$as_me:$LINENO: result: no" >&5 |
1865 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 1866 | fi |
1867 | ||
631ef239 | 1868 | if test "x$ac_ct_CC" = x; then |
1869 | CC="" | |
1870 | else | |
1871 | case $cross_compiling:$ac_tool_warned in | |
1872 | yes:) | |
1873 | { echo "$as_me:$LINENO: 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." >&5 | |
1876 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
1877 | whose name does not start with the host triplet. If you think this | |
1878 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
1879 | ac_tool_warned=yes ;; | |
1880 | esac | |
1881 | CC=$ac_ct_CC | |
1882 | fi | |
212380e3 | 1883 | else |
1884 | CC="$ac_cv_prog_CC" | |
1885 | fi | |
1886 | ||
1887 | if test -z "$CC"; then | |
631ef239 | 1888 | if test -n "$ac_tool_prefix"; then |
1889 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
212380e3 | 1890 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
631ef239 | 1891 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 1893 | if test "${ac_cv_prog_CC+set}" = set; then |
1894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1895 | else | |
1896 | if test -n "$CC"; then | |
1897 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1898 | else | |
1899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1900 | for as_dir in $PATH | |
1901 | do | |
1902 | IFS=$as_save_IFS | |
1903 | test -z "$as_dir" && as_dir=. | |
1904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 1905 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 1906 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1908 | break 2 | |
1909 | fi | |
1910 | done | |
1911 | done | |
631ef239 | 1912 | IFS=$as_save_IFS |
212380e3 | 1913 | |
1914 | fi | |
1915 | fi | |
1916 | CC=$ac_cv_prog_CC | |
1917 | if test -n "$CC"; then | |
631ef239 | 1918 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1919 | echo "${ECHO_T}$CC" >&6; } | |
212380e3 | 1920 | else |
631ef239 | 1921 | { echo "$as_me:$LINENO: result: no" >&5 |
1922 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 1923 | fi |
1924 | ||
212380e3 | 1925 | |
631ef239 | 1926 | fi |
212380e3 | 1927 | fi |
1928 | if test -z "$CC"; then | |
1929 | # Extract the first word of "cc", so it can be a program name with args. | |
1930 | set dummy cc; ac_word=$2 | |
631ef239 | 1931 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1932 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 1933 | if test "${ac_cv_prog_CC+set}" = set; then |
1934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1935 | else | |
1936 | if test -n "$CC"; then | |
1937 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1938 | else | |
1939 | ac_prog_rejected=no | |
1940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1941 | for as_dir in $PATH | |
1942 | do | |
1943 | IFS=$as_save_IFS | |
1944 | test -z "$as_dir" && as_dir=. | |
1945 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 1946 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 1947 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1948 | ac_prog_rejected=yes | |
1949 | continue | |
1950 | fi | |
1951 | ac_cv_prog_CC="cc" | |
1952 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1953 | break 2 | |
1954 | fi | |
1955 | done | |
1956 | done | |
631ef239 | 1957 | IFS=$as_save_IFS |
212380e3 | 1958 | |
1959 | if test $ac_prog_rejected = yes; then | |
1960 | # We found a bogon in the path, so make sure we never use it. | |
1961 | set dummy $ac_cv_prog_CC | |
1962 | shift | |
1963 | if test $# != 0; then | |
1964 | # We chose a different compiler from the bogus one. | |
1965 | # However, it has the same basename, so the bogon will be chosen | |
1966 | # first if we set CC to just the basename; use the full file name. | |
1967 | shift | |
1968 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1969 | fi | |
1970 | fi | |
1971 | fi | |
1972 | fi | |
1973 | CC=$ac_cv_prog_CC | |
1974 | if test -n "$CC"; then | |
631ef239 | 1975 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1976 | echo "${ECHO_T}$CC" >&6; } | |
212380e3 | 1977 | else |
631ef239 | 1978 | { echo "$as_me:$LINENO: result: no" >&5 |
1979 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 1980 | fi |
1981 | ||
631ef239 | 1982 | |
212380e3 | 1983 | fi |
1984 | if test -z "$CC"; then | |
1985 | if test -n "$ac_tool_prefix"; then | |
631ef239 | 1986 | for ac_prog in cl.exe |
212380e3 | 1987 | do |
1988 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1989 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
631ef239 | 1990 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1991 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 1992 | if test "${ac_cv_prog_CC+set}" = set; then |
1993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1994 | else | |
1995 | if test -n "$CC"; then | |
1996 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1997 | else | |
1998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1999 | for as_dir in $PATH | |
2000 | do | |
2001 | IFS=$as_save_IFS | |
2002 | test -z "$as_dir" && as_dir=. | |
2003 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2004 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 2005 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2006 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2007 | break 2 | |
2008 | fi | |
2009 | done | |
2010 | done | |
631ef239 | 2011 | IFS=$as_save_IFS |
212380e3 | 2012 | |
2013 | fi | |
2014 | fi | |
2015 | CC=$ac_cv_prog_CC | |
2016 | if test -n "$CC"; then | |
631ef239 | 2017 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2018 | echo "${ECHO_T}$CC" >&6; } | |
212380e3 | 2019 | else |
631ef239 | 2020 | { echo "$as_me:$LINENO: result: no" >&5 |
2021 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 2022 | fi |
2023 | ||
631ef239 | 2024 | |
212380e3 | 2025 | test -n "$CC" && break |
2026 | done | |
2027 | fi | |
2028 | if test -z "$CC"; then | |
2029 | ac_ct_CC=$CC | |
631ef239 | 2030 | for ac_prog in cl.exe |
212380e3 | 2031 | do |
2032 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2033 | set dummy $ac_prog; ac_word=$2 | |
631ef239 | 2034 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2035 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 2036 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2038 | else | |
2039 | if test -n "$ac_ct_CC"; then | |
2040 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2041 | else | |
2042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2043 | for as_dir in $PATH | |
2044 | do | |
2045 | IFS=$as_save_IFS | |
2046 | test -z "$as_dir" && as_dir=. | |
2047 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 2049 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2050 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2051 | break 2 | |
2052 | fi | |
2053 | done | |
2054 | done | |
631ef239 | 2055 | IFS=$as_save_IFS |
212380e3 | 2056 | |
2057 | fi | |
2058 | fi | |
2059 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2060 | if test -n "$ac_ct_CC"; then | |
631ef239 | 2061 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2062 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
212380e3 | 2063 | else |
631ef239 | 2064 | { echo "$as_me:$LINENO: result: no" >&5 |
2065 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 2066 | fi |
2067 | ||
631ef239 | 2068 | |
212380e3 | 2069 | test -n "$ac_ct_CC" && break |
2070 | done | |
2071 | ||
631ef239 | 2072 | if test "x$ac_ct_CC" = x; then |
2073 | CC="" | |
2074 | else | |
2075 | case $cross_compiling:$ac_tool_warned in | |
2076 | yes:) | |
2077 | { echo "$as_me:$LINENO: 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." >&5 | |
2080 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2081 | whose name does not start with the host triplet. If you think this | |
2082 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2083 | ac_tool_warned=yes ;; | |
2084 | esac | |
2085 | CC=$ac_ct_CC | |
2086 | fi | |
212380e3 | 2087 | fi |
2088 | ||
2089 | fi | |
2090 | ||
2091 | ||
2092 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2093 | See \`config.log' for more details." >&5 | |
2094 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2095 | See \`config.log' for more details." >&2;} | |
2096 | { (exit 1); exit 1; }; } | |
2097 | ||
2098 | # Provide some information about the compiler. | |
631ef239 | 2099 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
212380e3 | 2100 | ac_compiler=`set X $ac_compile; echo $2` |
631ef239 | 2101 | { (ac_try="$ac_compiler --version >&5" |
2102 | case "(($ac_try" in | |
2103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2104 | *) ac_try_echo=$ac_try;; | |
2105 | esac | |
2106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2107 | (eval "$ac_compiler --version >&5") 2>&5 | |
212380e3 | 2108 | ac_status=$? |
2109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2110 | (exit $ac_status); } | |
631ef239 | 2111 | { (ac_try="$ac_compiler -v >&5" |
2112 | case "(($ac_try" in | |
2113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2114 | *) ac_try_echo=$ac_try;; | |
2115 | esac | |
2116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2117 | (eval "$ac_compiler -v >&5") 2>&5 | |
212380e3 | 2118 | ac_status=$? |
2119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2120 | (exit $ac_status); } | |
631ef239 | 2121 | { (ac_try="$ac_compiler -V >&5" |
2122 | case "(($ac_try" in | |
2123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2124 | *) ac_try_echo=$ac_try;; | |
2125 | esac | |
2126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2127 | (eval "$ac_compiler -V >&5") 2>&5 | |
212380e3 | 2128 | ac_status=$? |
2129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2130 | (exit $ac_status); } | |
2131 | ||
2132 | cat >conftest.$ac_ext <<_ACEOF | |
2133 | /* confdefs.h. */ | |
2134 | _ACEOF | |
2135 | cat confdefs.h >>conftest.$ac_ext | |
2136 | cat >>conftest.$ac_ext <<_ACEOF | |
2137 | /* end confdefs.h. */ | |
2138 | ||
2139 | int | |
2140 | main () | |
2141 | { | |
2142 | ||
2143 | ; | |
2144 | return 0; | |
2145 | } | |
2146 | _ACEOF | |
2147 | ac_clean_files_save=$ac_clean_files | |
2148 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2149 | # Try to create an executable without -o first, disregard a.out. | |
2150 | # It will help us diagnose broken compilers, and finding out an intuition | |
2151 | # of exeext. | |
631ef239 | 2152 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2153 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
212380e3 | 2154 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
631ef239 | 2155 | # |
2156 | # List of possible output files, starting from the most likely. | |
2157 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2158 | # only as a last resort. b.out is created by i960 compilers. | |
2159 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2160 | # | |
2161 | # The IRIX 6 linker writes into existing files which may not be | |
2162 | # executable, retaining their permissions. Remove them first so a | |
2163 | # subsequent execution test works. | |
2164 | ac_rmfiles= | |
2165 | for ac_file in $ac_files | |
2166 | do | |
2167 | case $ac_file in | |
2168 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2169 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2170 | esac | |
2171 | done | |
2172 | rm -f $ac_rmfiles | |
2173 | ||
2174 | if { (ac_try="$ac_link_default" | |
2175 | case "(($ac_try" in | |
2176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2177 | *) ac_try_echo=$ac_try;; | |
2178 | esac | |
2179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2180 | (eval "$ac_link_default") 2>&5 | |
212380e3 | 2181 | ac_status=$? |
2182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2183 | (exit $ac_status); }; then | |
631ef239 | 2184 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2185 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2186 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2187 | # so that the user can short-circuit this test for compilers unknown to | |
2188 | # Autoconf. | |
2189 | for ac_file in $ac_files '' | |
212380e3 | 2190 | do |
2191 | test -f "$ac_file" || continue | |
2192 | case $ac_file in | |
631ef239 | 2193 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
212380e3 | 2194 | ;; |
2195 | [ab].out ) | |
2196 | # We found the default executable, but exeext='' is most | |
2197 | # certainly right. | |
2198 | break;; | |
2199 | *.* ) | |
631ef239 | 2200 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2201 | then :; else | |
2202 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2203 | fi | |
2204 | # We set ac_cv_exeext here because the later test for it is not | |
2205 | # safe: cross compilers may not add the suffix if given an `-o' | |
2206 | # argument, so we may need to know it at that point already. | |
2207 | # Even if this section looks crufty: it has the advantage of | |
2208 | # actually working. | |
212380e3 | 2209 | break;; |
2210 | * ) | |
2211 | break;; | |
2212 | esac | |
2213 | done | |
631ef239 | 2214 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2215 | ||
212380e3 | 2216 | else |
631ef239 | 2217 | ac_file='' |
2218 | fi | |
2219 | ||
2220 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2221 | echo "${ECHO_T}$ac_file" >&6; } | |
2222 | if test -z "$ac_file"; then | |
212380e3 | 2223 | echo "$as_me: failed program was:" >&5 |
2224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2225 | ||
2226 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2227 | See \`config.log' for more details." >&5 | |
2228 | echo "$as_me: error: C compiler cannot create executables | |
2229 | See \`config.log' for more details." >&2;} | |
2230 | { (exit 77); exit 77; }; } | |
2231 | fi | |
2232 | ||
2233 | ac_exeext=$ac_cv_exeext | |
212380e3 | 2234 | |
631ef239 | 2235 | # Check that the compiler produces executables we can run. If not, either |
212380e3 | 2236 | # the compiler is broken, or we cross compile. |
631ef239 | 2237 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2238 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
212380e3 | 2239 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2240 | # If not cross compiling, check that we can run a simple program. | |
2241 | if test "$cross_compiling" != yes; then | |
2242 | if { ac_try='./$ac_file' | |
631ef239 | 2243 | { (case "(($ac_try" in |
2244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2245 | *) ac_try_echo=$ac_try;; | |
2246 | esac | |
2247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2248 | (eval "$ac_try") 2>&5 | |
212380e3 | 2249 | ac_status=$? |
2250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2251 | (exit $ac_status); }; }; then | |
2252 | cross_compiling=no | |
2253 | else | |
2254 | if test "$cross_compiling" = maybe; then | |
2255 | cross_compiling=yes | |
2256 | else | |
2257 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2258 | If you meant to cross compile, use \`--host'. | |
2259 | See \`config.log' for more details." >&5 | |
2260 | echo "$as_me: error: cannot run C compiled programs. | |
2261 | If you meant to cross compile, use \`--host'. | |
2262 | See \`config.log' for more details." >&2;} | |
2263 | { (exit 1); exit 1; }; } | |
2264 | fi | |
2265 | fi | |
2266 | fi | |
631ef239 | 2267 | { echo "$as_me:$LINENO: result: yes" >&5 |
2268 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 2269 | |
2270 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2271 | ac_clean_files=$ac_clean_files_save | |
631ef239 | 2272 | # Check that the compiler produces executables we can run. If not, either |
212380e3 | 2273 | # the compiler is broken, or we cross compile. |
631ef239 | 2274 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2275 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2276 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2277 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2278 | ||
2279 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2280 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2281 | if { (ac_try="$ac_link" | |
2282 | case "(($ac_try" in | |
2283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2284 | *) ac_try_echo=$ac_try;; | |
2285 | esac | |
2286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2287 | (eval "$ac_link") 2>&5 | |
212380e3 | 2288 | ac_status=$? |
2289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2290 | (exit $ac_status); }; then | |
2291 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2292 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2293 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2294 | # `rm'. | |
2295 | for ac_file in conftest.exe conftest conftest.*; do | |
2296 | test -f "$ac_file" || continue | |
2297 | case $ac_file in | |
631ef239 | 2298 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
212380e3 | 2299 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
212380e3 | 2300 | break;; |
2301 | * ) break;; | |
2302 | esac | |
2303 | done | |
2304 | else | |
2305 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2306 | See \`config.log' for more details." >&5 | |
2307 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2308 | See \`config.log' for more details." >&2;} | |
2309 | { (exit 1); exit 1; }; } | |
2310 | fi | |
2311 | ||
2312 | rm -f conftest$ac_cv_exeext | |
631ef239 | 2313 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2314 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
212380e3 | 2315 | |
2316 | rm -f conftest.$ac_ext | |
2317 | EXEEXT=$ac_cv_exeext | |
2318 | ac_exeext=$EXEEXT | |
631ef239 | 2319 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2320 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
212380e3 | 2321 | if test "${ac_cv_objext+set}" = set; then |
2322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2323 | else | |
2324 | cat >conftest.$ac_ext <<_ACEOF | |
2325 | /* confdefs.h. */ | |
2326 | _ACEOF | |
2327 | cat confdefs.h >>conftest.$ac_ext | |
2328 | cat >>conftest.$ac_ext <<_ACEOF | |
2329 | /* end confdefs.h. */ | |
2330 | ||
2331 | int | |
2332 | main () | |
2333 | { | |
2334 | ||
2335 | ; | |
2336 | return 0; | |
2337 | } | |
2338 | _ACEOF | |
2339 | rm -f conftest.o conftest.obj | |
631ef239 | 2340 | if { (ac_try="$ac_compile" |
2341 | case "(($ac_try" in | |
2342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2343 | *) ac_try_echo=$ac_try;; | |
2344 | esac | |
2345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2346 | (eval "$ac_compile") 2>&5 | |
212380e3 | 2347 | ac_status=$? |
2348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2349 | (exit $ac_status); }; then | |
631ef239 | 2350 | for ac_file in conftest.o conftest.obj conftest.*; do |
2351 | test -f "$ac_file" || continue; | |
212380e3 | 2352 | case $ac_file in |
631ef239 | 2353 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
212380e3 | 2354 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2355 | break;; | |
2356 | esac | |
2357 | done | |
2358 | else | |
2359 | echo "$as_me: failed program was:" >&5 | |
2360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2361 | ||
2362 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2363 | See \`config.log' for more details." >&5 | |
2364 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2365 | See \`config.log' for more details." >&2;} | |
2366 | { (exit 1); exit 1; }; } | |
2367 | fi | |
2368 | ||
2369 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2370 | fi | |
631ef239 | 2371 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2372 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
212380e3 | 2373 | OBJEXT=$ac_cv_objext |
2374 | ac_objext=$OBJEXT | |
631ef239 | 2375 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2376 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
212380e3 | 2377 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2379 | else | |
2380 | cat >conftest.$ac_ext <<_ACEOF | |
2381 | /* confdefs.h. */ | |
2382 | _ACEOF | |
2383 | cat confdefs.h >>conftest.$ac_ext | |
2384 | cat >>conftest.$ac_ext <<_ACEOF | |
2385 | /* end confdefs.h. */ | |
2386 | ||
2387 | int | |
2388 | main () | |
2389 | { | |
2390 | #ifndef __GNUC__ | |
2391 | choke me | |
2392 | #endif | |
2393 | ||
2394 | ; | |
2395 | return 0; | |
2396 | } | |
2397 | _ACEOF | |
2398 | rm -f conftest.$ac_objext | |
631ef239 | 2399 | if { (ac_try="$ac_compile" |
2400 | case "(($ac_try" in | |
2401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2402 | *) ac_try_echo=$ac_try;; | |
2403 | esac | |
2404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2405 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 2406 | ac_status=$? |
2407 | grep -v '^ *+' conftest.er1 >conftest.err | |
2408 | rm -f conftest.er1 | |
2409 | cat conftest.err >&5 | |
2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 2411 | (exit $ac_status); } && { |
2412 | test -z "$ac_c_werror_flag" || | |
2413 | test ! -s conftest.err | |
2414 | } && test -s conftest.$ac_objext; then | |
212380e3 | 2415 | ac_compiler_gnu=yes |
2416 | else | |
2417 | echo "$as_me: failed program was:" >&5 | |
2418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2419 | ||
631ef239 | 2420 | ac_compiler_gnu=no |
212380e3 | 2421 | fi |
631ef239 | 2422 | |
2423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 2424 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2425 | ||
2426 | fi | |
631ef239 | 2427 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2428 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
212380e3 | 2429 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2430 | ac_test_CFLAGS=${CFLAGS+set} | |
2431 | ac_save_CFLAGS=$CFLAGS | |
631ef239 | 2432 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2433 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
212380e3 | 2434 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2436 | else | |
631ef239 | 2437 | ac_save_c_werror_flag=$ac_c_werror_flag |
2438 | ac_c_werror_flag=yes | |
2439 | ac_cv_prog_cc_g=no | |
2440 | CFLAGS="-g" | |
2441 | cat >conftest.$ac_ext <<_ACEOF | |
212380e3 | 2442 | /* confdefs.h. */ |
2443 | _ACEOF | |
2444 | cat confdefs.h >>conftest.$ac_ext | |
2445 | cat >>conftest.$ac_ext <<_ACEOF | |
2446 | /* end confdefs.h. */ | |
2447 | ||
2448 | int | |
2449 | main () | |
2450 | { | |
2451 | ||
2452 | ; | |
2453 | return 0; | |
2454 | } | |
2455 | _ACEOF | |
2456 | rm -f conftest.$ac_objext | |
631ef239 | 2457 | if { (ac_try="$ac_compile" |
2458 | case "(($ac_try" in | |
2459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2460 | *) ac_try_echo=$ac_try;; | |
2461 | esac | |
2462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2463 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 2464 | ac_status=$? |
2465 | grep -v '^ *+' conftest.er1 >conftest.err | |
2466 | rm -f conftest.er1 | |
2467 | cat conftest.err >&5 | |
2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 2469 | (exit $ac_status); } && { |
2470 | test -z "$ac_c_werror_flag" || | |
2471 | test ! -s conftest.err | |
2472 | } && test -s conftest.$ac_objext; then | |
2473 | ac_cv_prog_cc_g=yes | |
2474 | else | |
2475 | echo "$as_me: failed program was:" >&5 | |
2476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2477 | ||
2478 | CFLAGS="" | |
2479 | cat >conftest.$ac_ext <<_ACEOF | |
2480 | /* confdefs.h. */ | |
2481 | _ACEOF | |
2482 | cat confdefs.h >>conftest.$ac_ext | |
2483 | cat >>conftest.$ac_ext <<_ACEOF | |
2484 | /* end confdefs.h. */ | |
2485 | ||
2486 | int | |
2487 | main () | |
2488 | { | |
2489 | ||
2490 | ; | |
2491 | return 0; | |
2492 | } | |
2493 | _ACEOF | |
2494 | rm -f conftest.$ac_objext | |
2495 | if { (ac_try="$ac_compile" | |
2496 | case "(($ac_try" in | |
2497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2498 | *) ac_try_echo=$ac_try;; | |
2499 | esac | |
2500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2501 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 2502 | ac_status=$? |
631ef239 | 2503 | grep -v '^ *+' conftest.er1 >conftest.err |
2504 | rm -f conftest.er1 | |
2505 | cat conftest.err >&5 | |
212380e3 | 2506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
631ef239 | 2507 | (exit $ac_status); } && { |
2508 | test -z "$ac_c_werror_flag" || | |
2509 | test ! -s conftest.err | |
2510 | } && test -s conftest.$ac_objext; then | |
2511 | : | |
2512 | else | |
2513 | echo "$as_me: failed program was:" >&5 | |
2514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2515 | ||
2516 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2517 | CFLAGS="-g" | |
2518 | cat >conftest.$ac_ext <<_ACEOF | |
2519 | /* confdefs.h. */ | |
2520 | _ACEOF | |
2521 | cat confdefs.h >>conftest.$ac_ext | |
2522 | cat >>conftest.$ac_ext <<_ACEOF | |
2523 | /* end confdefs.h. */ | |
2524 | ||
2525 | int | |
2526 | main () | |
2527 | { | |
2528 | ||
2529 | ; | |
2530 | return 0; | |
2531 | } | |
2532 | _ACEOF | |
2533 | rm -f conftest.$ac_objext | |
2534 | if { (ac_try="$ac_compile" | |
2535 | case "(($ac_try" in | |
2536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2537 | *) ac_try_echo=$ac_try;; | |
2538 | esac | |
2539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2540 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 2541 | ac_status=$? |
631ef239 | 2542 | grep -v '^ *+' conftest.er1 >conftest.err |
2543 | rm -f conftest.er1 | |
2544 | cat conftest.err >&5 | |
212380e3 | 2545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
631ef239 | 2546 | (exit $ac_status); } && { |
2547 | test -z "$ac_c_werror_flag" || | |
2548 | test ! -s conftest.err | |
2549 | } && test -s conftest.$ac_objext; then | |
212380e3 | 2550 | ac_cv_prog_cc_g=yes |
2551 | else | |
2552 | echo "$as_me: failed program was:" >&5 | |
2553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2554 | ||
631ef239 | 2555 | |
2556 | fi | |
2557 | ||
2558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 2559 | fi |
631ef239 | 2560 | |
2561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2562 | fi | |
2563 | ||
2564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2565 | ac_c_werror_flag=$ac_save_c_werror_flag | |
212380e3 | 2566 | fi |
631ef239 | 2567 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2568 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
212380e3 | 2569 | if test "$ac_test_CFLAGS" = set; then |
2570 | CFLAGS=$ac_save_CFLAGS | |
2571 | elif test $ac_cv_prog_cc_g = yes; then | |
2572 | if test "$GCC" = yes; then | |
2573 | CFLAGS="-g -O2" | |
2574 | else | |
2575 | CFLAGS="-g" | |
2576 | fi | |
2577 | else | |
2578 | if test "$GCC" = yes; then | |
2579 | CFLAGS="-O2" | |
2580 | else | |
2581 | CFLAGS= | |
2582 | fi | |
2583 | fi | |
631ef239 | 2584 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2585 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2586 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
212380e3 | 2587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2588 | else | |
631ef239 | 2589 | ac_cv_prog_cc_c89=no |
212380e3 | 2590 | ac_save_CC=$CC |
2591 | cat >conftest.$ac_ext <<_ACEOF | |
2592 | /* confdefs.h. */ | |
2593 | _ACEOF | |
2594 | cat confdefs.h >>conftest.$ac_ext | |
2595 | cat >>conftest.$ac_ext <<_ACEOF | |
2596 | /* end confdefs.h. */ | |
2597 | #include <stdarg.h> | |
2598 | #include <stdio.h> | |
2599 | #include <sys/types.h> | |
2600 | #include <sys/stat.h> | |
2601 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2602 | struct buf { int x; }; | |
2603 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2604 | static char *e (p, i) | |
2605 | char **p; | |
2606 | int i; | |
2607 | { | |
2608 | return p[i]; | |
2609 | } | |
2610 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2611 | { | |
2612 | char *s; | |
2613 | va_list v; | |
2614 | va_start (v,p); | |
2615 | s = g (p, va_arg (v,int)); | |
2616 | va_end (v); | |
2617 | return s; | |
2618 | } | |
2619 | ||
2620 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2621 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2622 | These don't provoke an error unfortunately, instead are silently treated | |
631ef239 | 2623 | as 'x'. The following induces an error, until -std is added to get |
212380e3 | 2624 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2625 | array size at least. It's necessary to write '\x00'==0 to get something | |
631ef239 | 2626 | that's true only with -std. */ |
212380e3 | 2627 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2628 | ||
631ef239 | 2629 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2630 | inside strings and character constants. */ | |
2631 | #define FOO(x) 'x' | |
2632 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2633 | ||
212380e3 | 2634 | int test (int i, double x); |
2635 | struct s1 {int (*f) (int a);}; | |
2636 | struct s2 {int (*f) (double a);}; | |
2637 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2638 | int argc; | |
2639 | char **argv; | |
2640 | int | |
2641 | main () | |
2642 | { | |
2643 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2644 | ; | |
2645 | return 0; | |
2646 | } | |
2647 | _ACEOF | |
631ef239 | 2648 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2649 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
212380e3 | 2650 | do |
2651 | CC="$ac_save_CC $ac_arg" | |
2652 | rm -f conftest.$ac_objext | |
631ef239 | 2653 | if { (ac_try="$ac_compile" |
2654 | case "(($ac_try" in | |
2655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2656 | *) ac_try_echo=$ac_try;; | |
2657 | esac | |
2658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2659 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 2660 | ac_status=$? |
2661 | grep -v '^ *+' conftest.er1 >conftest.err | |
2662 | rm -f conftest.er1 | |
2663 | cat conftest.err >&5 | |
2664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 2665 | (exit $ac_status); } && { |
2666 | test -z "$ac_c_werror_flag" || | |
2667 | test ! -s conftest.err | |
2668 | } && test -s conftest.$ac_objext; then | |
2669 | ac_cv_prog_cc_c89=$ac_arg | |
212380e3 | 2670 | else |
2671 | echo "$as_me: failed program was:" >&5 | |
2672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2673 | ||
631ef239 | 2674 | |
212380e3 | 2675 | fi |
631ef239 | 2676 | |
2677 | rm -f core conftest.err conftest.$ac_objext | |
2678 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
212380e3 | 2679 | done |
631ef239 | 2680 | rm -f conftest.$ac_ext |
212380e3 | 2681 | CC=$ac_save_CC |
2682 | ||
2683 | fi | |
631ef239 | 2684 | # AC_CACHE_VAL |
2685 | case "x$ac_cv_prog_cc_c89" in | |
2686 | x) | |
2687 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
2688 | echo "${ECHO_T}none needed" >&6; } ;; | |
2689 | xno) | |
2690 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
2691 | echo "${ECHO_T}unsupported" >&6; } ;; | |
212380e3 | 2692 | *) |
631ef239 | 2693 | CC="$CC $ac_cv_prog_cc_c89" |
2694 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
2695 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
212380e3 | 2696 | esac |
2697 | ||
212380e3 | 2698 | |
212380e3 | 2699 | ac_ext=c |
2700 | ac_cpp='$CPP $CPPFLAGS' | |
2701 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2702 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2703 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2704 | ||
2705 | ac_ext=c | |
2706 | ac_cpp='$CPP $CPPFLAGS' | |
2707 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2708 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2709 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2710 | ||
2711 | ||
2712 | CFLAGS="$OLD_CFLAGS" | |
2713 | ||
2714 | ||
2715 | if test "$ac_cv_c_compiler_gnu" != yes; then | |
2716 | ||
2717 | SGS=no | |
631ef239 | 2718 | { echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5 |
2719 | echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6; } | |
212380e3 | 2720 | case `$CC -version 2>&1` in |
2721 | *TenDRA*) | |
631ef239 | 2722 | { echo "$as_me:$LINENO: result: yes, TenDRA" >&5 |
2723 | echo "${ECHO_T}yes, TenDRA" >&6; } | |
212380e3 | 2724 | IRC_CFLAGS="" |
2725 | CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include" | |
2726 | SGS=yes | |
2727 | TenDRA=yes | |
2728 | ;; | |
2729 | *MIPSpro*) | |
631ef239 | 2730 | { echo "$as_me:$LINENO: result: yes, MIPSpro" >&5 |
2731 | echo "${ECHO_T}yes, MIPSpro" >&6; } | |
212380e3 | 2732 | MIPSpro=yes |
2733 | SGS=yes | |
2734 | ;; | |
2735 | *) | |
631ef239 | 2736 | { echo "$as_me:$LINENO: result: no" >&5 |
2737 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 2738 | TenDRA=no |
2739 | MIPSpro=no | |
2740 | ;; | |
2741 | esac | |
2742 | ||
631ef239 | 2743 | { echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 |
2744 | echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6; } | |
212380e3 | 2745 | case `$CC -V 2>&1` in |
2746 | *Sun*WorkShop* | *Forte*Developer*) | |
631ef239 | 2747 | { echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5 |
2748 | echo "${ECHO_T}Sun Workshop/Forte" >&6; } | |
212380e3 | 2749 | IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" |
2750 | SunWorkShop=yes | |
2751 | SGS=yes | |
2752 | ;; | |
2753 | *Tru64*) | |
631ef239 | 2754 | { echo "$as_me:$LINENO: result: Tru64 cc" >&5 |
2755 | echo "${ECHO_T}Tru64 cc" >&6; } | |
212380e3 | 2756 | IRC_CFLAGS="-O2" |
2757 | CPPFLAGS="-I/usr/local/include" | |
2758 | Tru=yes | |
2759 | ;; | |
2760 | *HP*ANSI*) | |
631ef239 | 2761 | { echo "$as_me:$LINENO: result: HPUX cc" >&5 |
2762 | echo "${ECHO_T}HPUX cc" >&6; } | |
212380e3 | 2763 | HPUX=yes |
2764 | IRC_CFLAGS="+e" | |
2765 | ;; | |
2766 | *) | |
631ef239 | 2767 | { echo "$as_me:$LINENO: result: no" >&5 |
2768 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 2769 | ;; |
2770 | esac | |
2771 | ||
2772 | fi | |
2773 | ||
631ef239 | 2774 | { echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris, AIX or HPUX" >&5 |
2775 | echo $ECHO_N "checking uname -s for Cygwin, Solaris, AIX or HPUX... $ECHO_C" >&6; } | |
212380e3 | 2776 | OSNAME=`uname -s` |
2777 | case "$OSNAME" in | |
2778 | HP-UX*) | |
2779 | ||
2780 | if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then | |
631ef239 | 2781 | { echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5 |
2782 | echo "${ECHO_T}assuming old HPUX with its own cc" >&6; } | |
212380e3 | 2783 | IRC_CFLAGS="$IRC_CFLAGS +e" |
2784 | HPUX=yes | |
2785 | else | |
631ef239 | 2786 | { echo "$as_me:$LINENO: result: already using newer HPUX" >&5 |
2787 | echo "${ECHO_T}already using newer HPUX" >&6; } | |
212380e3 | 2788 | fi |
2789 | ;; | |
2790 | CYGWIN*) | |
631ef239 | 2791 | { echo "$as_me:$LINENO: result: Cygwin" >&5 |
2792 | echo "${ECHO_T}Cygwin" >&6; } | |
212380e3 | 2793 | CYGWIN=yes |
2794 | ;; | |
2795 | SunOS*) | |
631ef239 | 2796 | { echo "$as_me:$LINENO: result: SunOS or Solaris" >&5 |
2797 | echo "${ECHO_T}SunOS or Solaris" >&6; } | |
212380e3 | 2798 | |
2799 | cat >>confdefs.h <<\_ACEOF | |
2800 | #define __EXTENSIONS__ 1 | |
2801 | _ACEOF | |
2802 | ||
2803 | SUN=yes | |
2804 | ;; | |
2805 | AIX*) | |
631ef239 | 2806 | { echo "$as_me:$LINENO: result: AIX - Sorry you poor bastard..really we are" >&5 |
2807 | echo "${ECHO_T}AIX - Sorry you poor bastard..really we are" >&6; } | |
212380e3 | 2808 | IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G" |
2809 | ;; | |
2810 | *) | |
631ef239 | 2811 | { echo "$as_me:$LINENO: result: no" >&5 |
2812 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 2813 | ;; |
2814 | esac | |
2815 | ||
2816 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
631ef239 | 2817 | { echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5 |
2818 | echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; } | |
212380e3 | 2819 | |
2820 | case `$CC -v 2>&1 | tail -n 1` in | |
2821 | *Apple*) | |
631ef239 | 2822 | { echo "$as_me:$LINENO: result: yes" >&5 |
2823 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 2824 | AppleGCC=yes |
2825 | ;; | |
2826 | *) | |
631ef239 | 2827 | { echo "$as_me:$LINENO: result: no" >&5 |
2828 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 2829 | AppleGCC=no |
2830 | ;; | |
2831 | esac | |
2832 | ||
2833 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall" | |
2834 | fi | |
2835 | ||
2836 | if test "$ac_cv_prog_cc_g" = yes; then | |
2837 | if test "$Tru" = yes; then | |
2838 | IRC_CFLAGS="$IRC_CFLAGS -g3" | |
2839 | else | |
2840 | IRC_CFLAGS="$IRC_CFLAGS -g" | |
2841 | fi | |
2842 | fi | |
2843 | ||
631ef239 | 2844 | { echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5 |
2845 | echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; } | |
212380e3 | 2846 | if test "$SGS" = "yes"; then |
631ef239 | 2847 | { echo "$as_me:$LINENO: result: yes" >&5 |
2848 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 2849 | else |
631ef239 | 2850 | { echo "$as_me:$LINENO: result: no" >&5 |
2851 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 2852 | fi |
2853 | ||
2854 | # Extract the first word of "mkdep", so it can be a program name with args. | |
2855 | set dummy mkdep; ac_word=$2 | |
631ef239 | 2856 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2857 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 2858 | if test "${ac_cv_path_MKDEP+set}" = set; then |
2859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2860 | else | |
2861 | case $MKDEP in | |
2862 | [\\/]* | ?:[\\/]*) | |
2863 | ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. | |
2864 | ;; | |
2865 | *) | |
2866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2867 | for as_dir in $PATH | |
2868 | do | |
2869 | IFS=$as_save_IFS | |
2870 | test -z "$as_dir" && as_dir=. | |
2871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2872 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 2873 | ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" |
2874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2875 | break 2 | |
2876 | fi | |
2877 | done | |
2878 | done | |
631ef239 | 2879 | IFS=$as_save_IFS |
212380e3 | 2880 | |
2881 | ;; | |
2882 | esac | |
2883 | fi | |
2884 | MKDEP=$ac_cv_path_MKDEP | |
212380e3 | 2885 | if test -n "$MKDEP"; then |
631ef239 | 2886 | { echo "$as_me:$LINENO: result: $MKDEP" >&5 |
2887 | echo "${ECHO_T}$MKDEP" >&6; } | |
212380e3 | 2888 | else |
631ef239 | 2889 | { echo "$as_me:$LINENO: result: no" >&5 |
2890 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 2891 | fi |
2892 | ||
631ef239 | 2893 | |
212380e3 | 2894 | # Extract the first word of "makedepend", so it can be a program name with args. |
2895 | set dummy makedepend; ac_word=$2 | |
631ef239 | 2896 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2897 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 2898 | if test "${ac_cv_path_MAKEDEPEND+set}" = set; then |
2899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2900 | else | |
2901 | case $MAKEDEPEND in | |
2902 | [\\/]* | ?:[\\/]*) | |
2903 | ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. | |
2904 | ;; | |
2905 | *) | |
2906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2907 | for as_dir in $PATH | |
2908 | do | |
2909 | IFS=$as_save_IFS | |
2910 | test -z "$as_dir" && as_dir=. | |
2911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2912 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 2913 | ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" |
2914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2915 | break 2 | |
2916 | fi | |
2917 | done | |
2918 | done | |
631ef239 | 2919 | IFS=$as_save_IFS |
212380e3 | 2920 | |
2921 | ;; | |
2922 | esac | |
2923 | fi | |
2924 | MAKEDEPEND=$ac_cv_path_MAKEDEPEND | |
212380e3 | 2925 | if test -n "$MAKEDEPEND"; then |
631ef239 | 2926 | { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5 |
2927 | echo "${ECHO_T}$MAKEDEPEND" >&6; } | |
212380e3 | 2928 | else |
631ef239 | 2929 | { echo "$as_me:$LINENO: result: no" >&5 |
2930 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 2931 | fi |
2932 | ||
2933 | ||
631ef239 | 2934 | |
2935 | { echo "$as_me:$LINENO: checking how to generate dependency info" >&5 | |
2936 | echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; } | |
212380e3 | 2937 | |
2938 | STDOUT="> .depend" | |
2939 | ||
2940 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
631ef239 | 2941 | { echo "$as_me:$LINENO: result: gcc -MM" >&5 |
2942 | echo "${ECHO_T}gcc -MM" >&6; } | |
212380e3 | 2943 | MKDEP="$CC -MM" |
2944 | elif test ! -z "$MKDEP"; then | |
631ef239 | 2945 | { echo "$as_me:$LINENO: result: mkdep" >&5 |
2946 | echo "${ECHO_T}mkdep" >&6; } | |
212380e3 | 2947 | |
2948 | if test -z "$Tru"; then | |
2949 | STDOUT="" | |
2950 | else | |
2951 | STDOUT=" 2> /dev/null" | |
2952 | fi | |
2953 | elif test "$SunWorkShop" = yes; then | |
631ef239 | 2954 | { echo "$as_me:$LINENO: result: $CC -xM" >&5 |
2955 | echo "${ECHO_T}$CC -xM" >&6; } | |
212380e3 | 2956 | MKDEP="$CC -xM" |
2957 | STDOUT="> .depend 2> /dev/null" | |
2958 | elif test ! -z "$MAKEDEPEND"; then | |
631ef239 | 2959 | { echo "$as_me:$LINENO: result: makedepend" >&5 |
2960 | echo "${ECHO_T}makedepend" >&6; } | |
212380e3 | 2961 | MKDEP="$MAKEDEPEND -f-" |
2962 | else | |
631ef239 | 2963 | { echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5 |
2964 | echo "${ECHO_T}nothing suitable.. forget it!" >&6; } | |
212380e3 | 2965 | MKDEP=":" |
2966 | fi | |
2967 | ||
2968 | ||
2969 | ||
2970 | ||
631ef239 | 2971 | { echo "$as_me:$LINENO: checking for /dev/null" >&5 |
2972 | echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; } | |
212380e3 | 2973 | if test -c /dev/null ; then |
2974 | ||
2975 | cat >>confdefs.h <<\_ACEOF | |
2976 | #define PATH_DEVNULL "/dev/null" | |
2977 | _ACEOF | |
2978 | ||
631ef239 | 2979 | { echo "$as_me:$LINENO: result: yes" >&5 |
2980 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 2981 | else |
2982 | ||
2983 | cat >>confdefs.h <<\_ACEOF | |
2984 | #define PATH_DEVNULL "devnull.log" | |
2985 | _ACEOF | |
2986 | ||
631ef239 | 2987 | { echo "$as_me:$LINENO: result: no - using devnull.log" >&5 |
2988 | echo "${ECHO_T}no - using devnull.log" >&6; } | |
212380e3 | 2989 | fi |
2990 | ||
2991 | if test ! -z "$CFLAGS"; then | |
2992 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
2993 | fi | |
2994 | ||
2995 | ||
631ef239 | 2996 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2997 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } | |
212380e3 | 2998 | if test "${ac_cv_search_strerror+set}" = set; then |
2999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3000 | else | |
3001 | ac_func_search_save_LIBS=$LIBS | |
212380e3 | 3002 | cat >conftest.$ac_ext <<_ACEOF |
3003 | /* confdefs.h. */ | |
3004 | _ACEOF | |
3005 | cat confdefs.h >>conftest.$ac_ext | |
3006 | cat >>conftest.$ac_ext <<_ACEOF | |
3007 | /* end confdefs.h. */ | |
3008 | ||
631ef239 | 3009 | /* Override any GCC internal prototype to avoid an error. |
3010 | Use char because int might match the return type of a GCC | |
3011 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 3012 | #ifdef __cplusplus |
3013 | extern "C" | |
3014 | #endif | |
212380e3 | 3015 | char strerror (); |
3016 | int | |
3017 | main () | |
3018 | { | |
631ef239 | 3019 | return strerror (); |
212380e3 | 3020 | ; |
3021 | return 0; | |
3022 | } | |
3023 | _ACEOF | |
631ef239 | 3024 | for ac_lib in '' cposix; do |
3025 | if test -z "$ac_lib"; then | |
3026 | ac_res="none required" | |
3027 | else | |
3028 | ac_res=-l$ac_lib | |
3029 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3030 | fi | |
3031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3032 | if { (ac_try="$ac_link" | |
3033 | case "(($ac_try" in | |
3034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3035 | *) ac_try_echo=$ac_try;; | |
3036 | esac | |
3037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3038 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 3039 | ac_status=$? |
3040 | grep -v '^ *+' conftest.er1 >conftest.err | |
3041 | rm -f conftest.er1 | |
3042 | cat conftest.err >&5 | |
3043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 3044 | (exit $ac_status); } && { |
3045 | test -z "$ac_c_werror_flag" || | |
3046 | test ! -s conftest.err | |
3047 | } && test -s conftest$ac_exeext && | |
3048 | $as_test_x conftest$ac_exeext; then | |
3049 | ac_cv_search_strerror=$ac_res | |
212380e3 | 3050 | else |
3051 | echo "$as_me: failed program was:" >&5 | |
3052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3053 | ||
212380e3 | 3054 | |
631ef239 | 3055 | fi |
212380e3 | 3056 | |
631ef239 | 3057 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3058 | conftest$ac_exeext | |
3059 | if test "${ac_cv_search_strerror+set}" = set; then | |
3060 | break | |
212380e3 | 3061 | fi |
631ef239 | 3062 | done |
3063 | if test "${ac_cv_search_strerror+set}" = set; then | |
3064 | : | |
3065 | else | |
3066 | ac_cv_search_strerror=no | |
212380e3 | 3067 | fi |
631ef239 | 3068 | rm conftest.$ac_ext |
212380e3 | 3069 | LIBS=$ac_func_search_save_LIBS |
3070 | fi | |
631ef239 | 3071 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
3072 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } | |
3073 | ac_res=$ac_cv_search_strerror | |
3074 | if test "$ac_res" != no; then | |
3075 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 3076 | |
3077 | fi | |
3078 | ||
631ef239 | 3079 | { echo "$as_me:$LINENO: checking for inline" >&5 |
3080 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
212380e3 | 3081 | if test "${ac_cv_c_inline+set}" = set; then |
3082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3083 | else | |
3084 | ac_cv_c_inline=no | |
3085 | for ac_kw in inline __inline__ __inline; do | |
3086 | cat >conftest.$ac_ext <<_ACEOF | |
3087 | /* confdefs.h. */ | |
3088 | _ACEOF | |
3089 | cat confdefs.h >>conftest.$ac_ext | |
3090 | cat >>conftest.$ac_ext <<_ACEOF | |
3091 | /* end confdefs.h. */ | |
3092 | #ifndef __cplusplus | |
3093 | typedef int foo_t; | |
3094 | static $ac_kw foo_t static_foo () {return 0; } | |
3095 | $ac_kw foo_t foo () {return 0; } | |
3096 | #endif | |
3097 | ||
3098 | _ACEOF | |
3099 | rm -f conftest.$ac_objext | |
631ef239 | 3100 | if { (ac_try="$ac_compile" |
3101 | case "(($ac_try" in | |
3102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3103 | *) ac_try_echo=$ac_try;; | |
3104 | esac | |
3105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3106 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 3107 | ac_status=$? |
3108 | grep -v '^ *+' conftest.er1 >conftest.err | |
3109 | rm -f conftest.er1 | |
3110 | cat conftest.err >&5 | |
3111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 3112 | (exit $ac_status); } && { |
3113 | test -z "$ac_c_werror_flag" || | |
3114 | test ! -s conftest.err | |
3115 | } && test -s conftest.$ac_objext; then | |
3116 | ac_cv_c_inline=$ac_kw | |
212380e3 | 3117 | else |
3118 | echo "$as_me: failed program was:" >&5 | |
3119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3120 | ||
631ef239 | 3121 | |
212380e3 | 3122 | fi |
631ef239 | 3123 | |
3124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3125 | test "$ac_cv_c_inline" != no && break | |
212380e3 | 3126 | done |
3127 | ||
3128 | fi | |
631ef239 | 3129 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3130 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
212380e3 | 3131 | |
3132 | ||
3133 | case $ac_cv_c_inline in | |
3134 | inline | yes) ;; | |
3135 | *) | |
3136 | case $ac_cv_c_inline in | |
3137 | no) ac_val=;; | |
3138 | *) ac_val=$ac_cv_c_inline;; | |
3139 | esac | |
3140 | cat >>confdefs.h <<_ACEOF | |
3141 | #ifndef __cplusplus | |
3142 | #define inline $ac_val | |
3143 | #endif | |
3144 | _ACEOF | |
3145 | ;; | |
3146 | esac | |
3147 | ||
3148 | ac_ext=c | |
3149 | ac_cpp='$CPP $CPPFLAGS' | |
3150 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3151 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3152 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 3153 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3154 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
212380e3 | 3155 | # On Suns, sometimes $CPP names a directory. |
3156 | if test -n "$CPP" && test -d "$CPP"; then | |
3157 | CPP= | |
3158 | fi | |
3159 | if test -z "$CPP"; then | |
3160 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3162 | else | |
3163 | # Double quotes because CPP needs to be expanded | |
3164 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3165 | do | |
3166 | ac_preproc_ok=false | |
3167 | for ac_c_preproc_warn_flag in '' yes | |
3168 | do | |
3169 | # Use a header file that comes with gcc, so configuring glibc | |
3170 | # with a fresh cross-compiler works. | |
3171 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3172 | # <limits.h> exists even on freestanding compilers. | |
3173 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3174 | # not just through cpp. "Syntax error" is here to catch this case. | |
3175 | cat >conftest.$ac_ext <<_ACEOF | |
3176 | /* confdefs.h. */ | |
3177 | _ACEOF | |
3178 | cat confdefs.h >>conftest.$ac_ext | |
3179 | cat >>conftest.$ac_ext <<_ACEOF | |
3180 | /* end confdefs.h. */ | |
3181 | #ifdef __STDC__ | |
3182 | # include <limits.h> | |
3183 | #else | |
3184 | # include <assert.h> | |
3185 | #endif | |
3186 | Syntax error | |
3187 | _ACEOF | |
631ef239 | 3188 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3189 | case "(($ac_try" in | |
3190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3191 | *) ac_try_echo=$ac_try;; | |
3192 | esac | |
3193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3194 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 | 3195 | ac_status=$? |
3196 | grep -v '^ *+' conftest.er1 >conftest.err | |
3197 | rm -f conftest.er1 | |
3198 | cat conftest.err >&5 | |
3199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 3200 | (exit $ac_status); } >/dev/null && { |
3201 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3202 | test ! -s conftest.err | |
3203 | }; then | |
212380e3 | 3204 | : |
3205 | else | |
3206 | echo "$as_me: failed program was:" >&5 | |
3207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3208 | ||
3209 | # Broken: fails on valid input. | |
3210 | continue | |
3211 | fi | |
631ef239 | 3212 | |
212380e3 | 3213 | rm -f conftest.err conftest.$ac_ext |
3214 | ||
631ef239 | 3215 | # OK, works on sane cases. Now check whether nonexistent headers |
212380e3 | 3216 | # can be detected and how. |
3217 | cat >conftest.$ac_ext <<_ACEOF | |
3218 | /* confdefs.h. */ | |
3219 | _ACEOF | |
3220 | cat confdefs.h >>conftest.$ac_ext | |
3221 | cat >>conftest.$ac_ext <<_ACEOF | |
3222 | /* end confdefs.h. */ | |
3223 | #include <ac_nonexistent.h> | |
3224 | _ACEOF | |
631ef239 | 3225 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3226 | case "(($ac_try" in | |
3227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3228 | *) ac_try_echo=$ac_try;; | |
3229 | esac | |
3230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3231 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 | 3232 | ac_status=$? |
3233 | grep -v '^ *+' conftest.er1 >conftest.err | |
3234 | rm -f conftest.er1 | |
3235 | cat conftest.err >&5 | |
3236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 3237 | (exit $ac_status); } >/dev/null && { |
3238 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3239 | test ! -s conftest.err | |
3240 | }; then | |
212380e3 | 3241 | # Broken: success on invalid input. |
3242 | continue | |
3243 | else | |
3244 | echo "$as_me: failed program was:" >&5 | |
3245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3246 | ||
3247 | # Passes both tests. | |
3248 | ac_preproc_ok=: | |
3249 | break | |
3250 | fi | |
631ef239 | 3251 | |
212380e3 | 3252 | rm -f conftest.err conftest.$ac_ext |
3253 | ||
3254 | done | |
3255 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3256 | rm -f conftest.err conftest.$ac_ext | |
3257 | if $ac_preproc_ok; then | |
3258 | break | |
3259 | fi | |
3260 | ||
3261 | done | |
3262 | ac_cv_prog_CPP=$CPP | |
3263 | ||
3264 | fi | |
3265 | CPP=$ac_cv_prog_CPP | |
3266 | else | |
3267 | ac_cv_prog_CPP=$CPP | |
3268 | fi | |
631ef239 | 3269 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3270 | echo "${ECHO_T}$CPP" >&6; } | |
212380e3 | 3271 | ac_preproc_ok=false |
3272 | for ac_c_preproc_warn_flag in '' yes | |
3273 | do | |
3274 | # Use a header file that comes with gcc, so configuring glibc | |
3275 | # with a fresh cross-compiler works. | |
3276 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3277 | # <limits.h> exists even on freestanding compilers. | |
3278 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3279 | # not just through cpp. "Syntax error" is here to catch this case. | |
3280 | cat >conftest.$ac_ext <<_ACEOF | |
3281 | /* confdefs.h. */ | |
3282 | _ACEOF | |
3283 | cat confdefs.h >>conftest.$ac_ext | |
3284 | cat >>conftest.$ac_ext <<_ACEOF | |
3285 | /* end confdefs.h. */ | |
3286 | #ifdef __STDC__ | |
3287 | # include <limits.h> | |
3288 | #else | |
3289 | # include <assert.h> | |
3290 | #endif | |
3291 | Syntax error | |
3292 | _ACEOF | |
631ef239 | 3293 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3294 | case "(($ac_try" in | |
3295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3296 | *) ac_try_echo=$ac_try;; | |
3297 | esac | |
3298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3299 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 | 3300 | ac_status=$? |
3301 | grep -v '^ *+' conftest.er1 >conftest.err | |
3302 | rm -f conftest.er1 | |
3303 | cat conftest.err >&5 | |
3304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 3305 | (exit $ac_status); } >/dev/null && { |
3306 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3307 | test ! -s conftest.err | |
3308 | }; then | |
212380e3 | 3309 | : |
3310 | else | |
3311 | echo "$as_me: failed program was:" >&5 | |
3312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3313 | ||
3314 | # Broken: fails on valid input. | |
3315 | continue | |
3316 | fi | |
631ef239 | 3317 | |
212380e3 | 3318 | rm -f conftest.err conftest.$ac_ext |
3319 | ||
631ef239 | 3320 | # OK, works on sane cases. Now check whether nonexistent headers |
212380e3 | 3321 | # can be detected and how. |
3322 | cat >conftest.$ac_ext <<_ACEOF | |
3323 | /* confdefs.h. */ | |
3324 | _ACEOF | |
3325 | cat confdefs.h >>conftest.$ac_ext | |
3326 | cat >>conftest.$ac_ext <<_ACEOF | |
3327 | /* end confdefs.h. */ | |
3328 | #include <ac_nonexistent.h> | |
3329 | _ACEOF | |
631ef239 | 3330 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3331 | case "(($ac_try" in | |
3332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3333 | *) ac_try_echo=$ac_try;; | |
3334 | esac | |
3335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3336 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 | 3337 | ac_status=$? |
3338 | grep -v '^ *+' conftest.er1 >conftest.err | |
3339 | rm -f conftest.er1 | |
3340 | cat conftest.err >&5 | |
3341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 3342 | (exit $ac_status); } >/dev/null && { |
3343 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3344 | test ! -s conftest.err | |
3345 | }; then | |
212380e3 | 3346 | # Broken: success on invalid input. |
3347 | continue | |
3348 | else | |
3349 | echo "$as_me: failed program was:" >&5 | |
3350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3351 | ||
3352 | # Passes both tests. | |
3353 | ac_preproc_ok=: | |
3354 | break | |
3355 | fi | |
631ef239 | 3356 | |
212380e3 | 3357 | rm -f conftest.err conftest.$ac_ext |
3358 | ||
3359 | done | |
3360 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3361 | rm -f conftest.err conftest.$ac_ext | |
3362 | if $ac_preproc_ok; then | |
3363 | : | |
3364 | else | |
3365 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3366 | See \`config.log' for more details." >&5 | |
3367 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3368 | See \`config.log' for more details." >&2;} | |
3369 | { (exit 1); exit 1; }; } | |
3370 | fi | |
3371 | ||
3372 | ac_ext=c | |
3373 | ac_cpp='$CPP $CPPFLAGS' | |
3374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3377 | ||
3378 | ||
631ef239 | 3379 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3380 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3381 | if test "${ac_cv_path_GREP+set}" = set; then | |
3382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3383 | else | |
3384 | # Extract the first word of "grep ggrep" to use in msg output | |
3385 | if test -z "$GREP"; then | |
3386 | set dummy grep ggrep; ac_prog_name=$2 | |
3387 | if test "${ac_cv_path_GREP+set}" = set; then | |
3388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3389 | else | |
3390 | ac_path_GREP_found=false | |
3391 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3393 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3394 | do | |
3395 | IFS=$as_save_IFS | |
3396 | test -z "$as_dir" && as_dir=. | |
3397 | for ac_prog in grep ggrep; do | |
3398 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3399 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3400 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3401 | # Check for GNU ac_path_GREP and select it if it is found. | |
3402 | # Check for GNU $ac_path_GREP | |
3403 | case `"$ac_path_GREP" --version 2>&1` in | |
3404 | *GNU*) | |
3405 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3406 | *) | |
3407 | ac_count=0 | |
3408 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3409 | while : | |
3410 | do | |
3411 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3412 | mv "conftest.tmp" "conftest.in" | |
3413 | cp "conftest.in" "conftest.nl" | |
3414 | echo 'GREP' >> "conftest.nl" | |
3415 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3416 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3417 | ac_count=`expr $ac_count + 1` | |
3418 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3419 | # Best one so far, save it but keep looking for a better one | |
3420 | ac_cv_path_GREP="$ac_path_GREP" | |
3421 | ac_path_GREP_max=$ac_count | |
3422 | fi | |
3423 | # 10*(2^10) chars as input seems more than enough | |
3424 | test $ac_count -gt 10 && break | |
3425 | done | |
3426 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3427 | esac | |
3428 | ||
3429 | ||
3430 | $ac_path_GREP_found && break 3 | |
3431 | done | |
3432 | done | |
3433 | ||
3434 | done | |
3435 | IFS=$as_save_IFS | |
3436 | ||
3437 | ||
3438 | fi | |
3439 | ||
3440 | GREP="$ac_cv_path_GREP" | |
3441 | if test -z "$GREP"; then | |
3442 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3443 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3444 | { (exit 1); exit 1; }; } | |
3445 | fi | |
3446 | ||
3447 | else | |
3448 | ac_cv_path_GREP=$GREP | |
3449 | fi | |
3450 | ||
3451 | ||
3452 | fi | |
3453 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3454 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3455 | GREP="$ac_cv_path_GREP" | |
3456 | ||
3457 | ||
3458 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3459 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3460 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3462 | else | |
3463 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3464 | then ac_cv_path_EGREP="$GREP -E" | |
3465 | else | |
3466 | # Extract the first word of "egrep" to use in msg output | |
3467 | if test -z "$EGREP"; then | |
3468 | set dummy egrep; ac_prog_name=$2 | |
3469 | if test "${ac_cv_path_EGREP+set}" = set; then | |
212380e3 | 3470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3471 | else | |
631ef239 | 3472 | ac_path_EGREP_found=false |
3473 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3475 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3476 | do | |
3477 | IFS=$as_save_IFS | |
3478 | test -z "$as_dir" && as_dir=. | |
3479 | for ac_prog in egrep; do | |
3480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3481 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3482 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3483 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3484 | # Check for GNU $ac_path_EGREP | |
3485 | case `"$ac_path_EGREP" --version 2>&1` in | |
3486 | *GNU*) | |
3487 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3488 | *) | |
3489 | ac_count=0 | |
3490 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3491 | while : | |
3492 | do | |
3493 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3494 | mv "conftest.tmp" "conftest.in" | |
3495 | cp "conftest.in" "conftest.nl" | |
3496 | echo 'EGREP' >> "conftest.nl" | |
3497 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3498 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3499 | ac_count=`expr $ac_count + 1` | |
3500 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3501 | # Best one so far, save it but keep looking for a better one | |
3502 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3503 | ac_path_EGREP_max=$ac_count | |
212380e3 | 3504 | fi |
631ef239 | 3505 | # 10*(2^10) chars as input seems more than enough |
3506 | test $ac_count -gt 10 && break | |
3507 | done | |
3508 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3509 | esac | |
3510 | ||
3511 | ||
3512 | $ac_path_EGREP_found && break 3 | |
3513 | done | |
3514 | done | |
3515 | ||
3516 | done | |
3517 | IFS=$as_save_IFS | |
3518 | ||
3519 | ||
3520 | fi | |
3521 | ||
3522 | EGREP="$ac_cv_path_EGREP" | |
3523 | if test -z "$EGREP"; then | |
3524 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3525 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3526 | { (exit 1); exit 1; }; } | |
3527 | fi | |
3528 | ||
3529 | else | |
3530 | ac_cv_path_EGREP=$EGREP | |
212380e3 | 3531 | fi |
631ef239 | 3532 | |
3533 | ||
3534 | fi | |
3535 | fi | |
3536 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3537 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3538 | EGREP="$ac_cv_path_EGREP" | |
212380e3 | 3539 | |
3540 | ||
3541 | if test $ac_cv_c_compiler_gnu = yes; then | |
631ef239 | 3542 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3543 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
212380e3 | 3544 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
3545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3546 | else | |
3547 | ac_pattern="Autoconf.*'x'" | |
3548 | cat >conftest.$ac_ext <<_ACEOF | |
3549 | /* confdefs.h. */ | |
3550 | _ACEOF | |
3551 | cat confdefs.h >>conftest.$ac_ext | |
3552 | cat >>conftest.$ac_ext <<_ACEOF | |
3553 | /* end confdefs.h. */ | |
3554 | #include <sgtty.h> | |
3555 | Autoconf TIOCGETP | |
3556 | _ACEOF | |
3557 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3558 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3559 | ac_cv_prog_gcc_traditional=yes | |
3560 | else | |
3561 | ac_cv_prog_gcc_traditional=no | |
3562 | fi | |
3563 | rm -f conftest* | |
3564 | ||
3565 | ||
3566 | if test $ac_cv_prog_gcc_traditional = no; then | |
3567 | cat >conftest.$ac_ext <<_ACEOF | |
3568 | /* confdefs.h. */ | |
3569 | _ACEOF | |
3570 | cat confdefs.h >>conftest.$ac_ext | |
3571 | cat >>conftest.$ac_ext <<_ACEOF | |
3572 | /* end confdefs.h. */ | |
3573 | #include <termio.h> | |
3574 | Autoconf TCGETA | |
3575 | _ACEOF | |
3576 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3577 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3578 | ac_cv_prog_gcc_traditional=yes | |
3579 | fi | |
3580 | rm -f conftest* | |
3581 | ||
3582 | fi | |
3583 | fi | |
631ef239 | 3584 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3585 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
212380e3 | 3586 | if test $ac_cv_prog_gcc_traditional = yes; then |
3587 | CC="$CC -traditional" | |
3588 | fi | |
3589 | fi | |
3590 | ||
631ef239 | 3591 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3592 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3593 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3594 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 3595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3596 | else | |
3597 | cat >conftest.make <<\_ACEOF | |
631ef239 | 3598 | SHELL = /bin/sh |
212380e3 | 3599 | all: |
631ef239 | 3600 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
212380e3 | 3601 | _ACEOF |
3602 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
631ef239 | 3603 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3604 | *@@@%%%=?*=@@@%%%*) | |
3605 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3606 | *) | |
3607 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3608 | esac | |
212380e3 | 3609 | rm -f conftest.make |
3610 | fi | |
631ef239 | 3611 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3612 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3613 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 3614 | SET_MAKE= |
3615 | else | |
631ef239 | 3616 | { echo "$as_me:$LINENO: result: no" >&5 |
3617 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 3618 | SET_MAKE="MAKE=${MAKE-make}" |
3619 | fi | |
3620 | ||
3621 | ac_aux_dir= | |
631ef239 | 3622 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
3623 | if test -f "$ac_dir/install-sh"; then | |
212380e3 | 3624 | ac_aux_dir=$ac_dir |
3625 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3626 | break | |
631ef239 | 3627 | elif test -f "$ac_dir/install.sh"; then |
212380e3 | 3628 | ac_aux_dir=$ac_dir |
3629 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3630 | break | |
631ef239 | 3631 | elif test -f "$ac_dir/shtool"; then |
212380e3 | 3632 | ac_aux_dir=$ac_dir |
3633 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3634 | break | |
3635 | fi | |
3636 | done | |
3637 | if test -z "$ac_aux_dir"; then | |
631ef239 | 3638 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
3639 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
212380e3 | 3640 | { (exit 1); exit 1; }; } |
3641 | fi | |
631ef239 | 3642 | |
3643 | # These three variables are undocumented and unsupported, | |
3644 | # and are intended to be withdrawn in a future Autoconf release. | |
3645 | # They can cause serious problems if a builder's source tree is in a directory | |
3646 | # whose full name contains unusual characters. | |
3647 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3648 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3649 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3650 | ||
212380e3 | 3651 | |
3652 | # Find a good install program. We prefer a C program (faster), | |
3653 | # so one script is as good as another. But avoid the broken or | |
3654 | # incompatible versions: | |
3655 | # SysV /etc/install, /usr/sbin/install | |
3656 | # SunOS /usr/etc/install | |
3657 | # IRIX /sbin/install | |
3658 | # AIX /bin/install | |
3659 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3660 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3661 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3662 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3663 | # OS/2's system install, which has a completely different semantic | |
3664 | # ./install, which can be erroneously created by make from ./install.sh. | |
631ef239 | 3665 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3666 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
212380e3 | 3667 | if test -z "$INSTALL"; then |
3668 | if test "${ac_cv_path_install+set}" = set; then | |
3669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3670 | else | |
3671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3672 | for as_dir in $PATH | |
3673 | do | |
3674 | IFS=$as_save_IFS | |
3675 | test -z "$as_dir" && as_dir=. | |
3676 | # Account for people who put trailing slashes in PATH elements. | |
3677 | case $as_dir/ in | |
3678 | ./ | .// | /cC/* | \ | |
3679 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3680 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3681 | /usr/ucb/* ) ;; | |
3682 | *) | |
3683 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3684 | # Don't use installbsd from OSF since it installs stuff as root | |
3685 | # by default. | |
3686 | for ac_prog in ginstall scoinst install; do | |
3687 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3688 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
212380e3 | 3689 | if test $ac_prog = install && |
3690 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3691 | # AIX install. It has an incompatible calling convention. | |
3692 | : | |
3693 | elif test $ac_prog = install && | |
3694 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3695 | # program-specific install script used by HP pwplus--don't use. | |
3696 | : | |
3697 | else | |
3698 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3699 | break 3 | |
3700 | fi | |
3701 | fi | |
3702 | done | |
3703 | done | |
3704 | ;; | |
3705 | esac | |
3706 | done | |
631ef239 | 3707 | IFS=$as_save_IFS |
212380e3 | 3708 | |
3709 | ||
3710 | fi | |
3711 | if test "${ac_cv_path_install+set}" = set; then | |
3712 | INSTALL=$ac_cv_path_install | |
3713 | else | |
631ef239 | 3714 | # As a last resort, use the slow shell script. Don't cache a |
3715 | # value for INSTALL within a source directory, because that will | |
212380e3 | 3716 | # break other packages using the cache if that directory is |
631ef239 | 3717 | # removed, or if the value is a relative name. |
212380e3 | 3718 | INSTALL=$ac_install_sh |
3719 | fi | |
3720 | fi | |
631ef239 | 3721 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3722 | echo "${ECHO_T}$INSTALL" >&6; } | |
212380e3 | 3723 | |
3724 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3725 | # It thinks the first close brace ends the variable substitution. | |
3726 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3727 | ||
3728 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3729 | ||
3730 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3731 | ||
3732 | # Extract the first word of "rm", so it can be a program name with args. | |
3733 | set dummy rm; ac_word=$2 | |
631ef239 | 3734 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 3736 | if test "${ac_cv_path_RM+set}" = set; then |
3737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3738 | else | |
3739 | case $RM in | |
3740 | [\\/]* | ?:[\\/]*) | |
3741 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
3742 | ;; | |
3743 | *) | |
3744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3745 | for as_dir in $PATH | |
3746 | do | |
3747 | IFS=$as_save_IFS | |
3748 | test -z "$as_dir" && as_dir=. | |
3749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3750 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 3751 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
3752 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3753 | break 2 | |
3754 | fi | |
3755 | done | |
3756 | done | |
631ef239 | 3757 | IFS=$as_save_IFS |
212380e3 | 3758 | |
3759 | ;; | |
3760 | esac | |
3761 | fi | |
3762 | RM=$ac_cv_path_RM | |
212380e3 | 3763 | if test -n "$RM"; then |
631ef239 | 3764 | { echo "$as_me:$LINENO: result: $RM" >&5 |
3765 | echo "${ECHO_T}$RM" >&6; } | |
212380e3 | 3766 | else |
631ef239 | 3767 | { echo "$as_me:$LINENO: result: no" >&5 |
3768 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 3769 | fi |
3770 | ||
631ef239 | 3771 | |
212380e3 | 3772 | # Extract the first word of "cp", so it can be a program name with args. |
3773 | set dummy cp; ac_word=$2 | |
631ef239 | 3774 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3775 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 3776 | if test "${ac_cv_path_CP+set}" = set; then |
3777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3778 | else | |
3779 | case $CP in | |
3780 | [\\/]* | ?:[\\/]*) | |
3781 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
3782 | ;; | |
3783 | *) | |
3784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3785 | for as_dir in $PATH | |
3786 | do | |
3787 | IFS=$as_save_IFS | |
3788 | test -z "$as_dir" && as_dir=. | |
3789 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3790 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 3791 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
3792 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3793 | break 2 | |
3794 | fi | |
3795 | done | |
3796 | done | |
631ef239 | 3797 | IFS=$as_save_IFS |
212380e3 | 3798 | |
3799 | ;; | |
3800 | esac | |
3801 | fi | |
3802 | CP=$ac_cv_path_CP | |
212380e3 | 3803 | if test -n "$CP"; then |
631ef239 | 3804 | { echo "$as_me:$LINENO: result: $CP" >&5 |
3805 | echo "${ECHO_T}$CP" >&6; } | |
212380e3 | 3806 | else |
631ef239 | 3807 | { echo "$as_me:$LINENO: result: no" >&5 |
3808 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 3809 | fi |
3810 | ||
631ef239 | 3811 | |
212380e3 | 3812 | # Extract the first word of "mv", so it can be a program name with args. |
3813 | set dummy mv; ac_word=$2 | |
631ef239 | 3814 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3815 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 3816 | if test "${ac_cv_path_MV+set}" = set; then |
3817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3818 | else | |
3819 | case $MV in | |
3820 | [\\/]* | ?:[\\/]*) | |
3821 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
3822 | ;; | |
3823 | *) | |
3824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3825 | for as_dir in $PATH | |
3826 | do | |
3827 | IFS=$as_save_IFS | |
3828 | test -z "$as_dir" && as_dir=. | |
3829 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 3831 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
3832 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3833 | break 2 | |
3834 | fi | |
3835 | done | |
3836 | done | |
631ef239 | 3837 | IFS=$as_save_IFS |
212380e3 | 3838 | |
3839 | ;; | |
3840 | esac | |
3841 | fi | |
3842 | MV=$ac_cv_path_MV | |
212380e3 | 3843 | if test -n "$MV"; then |
631ef239 | 3844 | { echo "$as_me:$LINENO: result: $MV" >&5 |
3845 | echo "${ECHO_T}$MV" >&6; } | |
212380e3 | 3846 | else |
631ef239 | 3847 | { echo "$as_me:$LINENO: result: no" >&5 |
3848 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 3849 | fi |
3850 | ||
631ef239 | 3851 | |
212380e3 | 3852 | # Extract the first word of "ln", so it can be a program name with args. |
3853 | set dummy ln; ac_word=$2 | |
631ef239 | 3854 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 3856 | if test "${ac_cv_path_LN+set}" = set; then |
3857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3858 | else | |
3859 | case $LN in | |
3860 | [\\/]* | ?:[\\/]*) | |
3861 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
3862 | ;; | |
3863 | *) | |
3864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3865 | for as_dir in $PATH | |
3866 | do | |
3867 | IFS=$as_save_IFS | |
3868 | test -z "$as_dir" && as_dir=. | |
3869 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3870 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 3871 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
3872 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3873 | break 2 | |
3874 | fi | |
3875 | done | |
3876 | done | |
631ef239 | 3877 | IFS=$as_save_IFS |
212380e3 | 3878 | |
3879 | ;; | |
3880 | esac | |
3881 | fi | |
3882 | LN=$ac_cv_path_LN | |
212380e3 | 3883 | if test -n "$LN"; then |
631ef239 | 3884 | { echo "$as_me:$LINENO: result: $LN" >&5 |
3885 | echo "${ECHO_T}$LN" >&6; } | |
212380e3 | 3886 | else |
631ef239 | 3887 | { echo "$as_me:$LINENO: result: no" >&5 |
3888 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 3889 | fi |
3890 | ||
631ef239 | 3891 | |
212380e3 | 3892 | # Extract the first word of "sed", so it can be a program name with args. |
3893 | set dummy sed; ac_word=$2 | |
631ef239 | 3894 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 3896 | if test "${ac_cv_path_SED+set}" = set; then |
3897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3898 | else | |
3899 | case $SED in | |
3900 | [\\/]* | ?:[\\/]*) | |
3901 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
3902 | ;; | |
3903 | *) | |
3904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3905 | for as_dir in $PATH | |
3906 | do | |
3907 | IFS=$as_save_IFS | |
3908 | test -z "$as_dir" && as_dir=. | |
3909 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3910 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 3911 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
3912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3913 | break 2 | |
3914 | fi | |
3915 | done | |
3916 | done | |
631ef239 | 3917 | IFS=$as_save_IFS |
212380e3 | 3918 | |
3919 | ;; | |
3920 | esac | |
3921 | fi | |
3922 | SED=$ac_cv_path_SED | |
212380e3 | 3923 | if test -n "$SED"; then |
631ef239 | 3924 | { echo "$as_me:$LINENO: result: $SED" >&5 |
3925 | echo "${ECHO_T}$SED" >&6; } | |
212380e3 | 3926 | else |
631ef239 | 3927 | { echo "$as_me:$LINENO: result: no" >&5 |
3928 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 3929 | fi |
3930 | ||
631ef239 | 3931 | |
212380e3 | 3932 | # Extract the first word of "ar", so it can be a program name with args. |
3933 | set dummy ar; ac_word=$2 | |
631ef239 | 3934 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3935 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 3936 | if test "${ac_cv_path_AR+set}" = set; then |
3937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3938 | else | |
3939 | case $AR in | |
3940 | [\\/]* | ?:[\\/]*) | |
3941 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
3942 | ;; | |
3943 | *) | |
3944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3945 | for as_dir in $PATH | |
3946 | do | |
3947 | IFS=$as_save_IFS | |
3948 | test -z "$as_dir" && as_dir=. | |
3949 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3950 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 3951 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
3952 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3953 | break 2 | |
3954 | fi | |
3955 | done | |
3956 | done | |
631ef239 | 3957 | IFS=$as_save_IFS |
212380e3 | 3958 | |
3959 | ;; | |
3960 | esac | |
3961 | fi | |
3962 | AR=$ac_cv_path_AR | |
212380e3 | 3963 | if test -n "$AR"; then |
631ef239 | 3964 | { echo "$as_me:$LINENO: result: $AR" >&5 |
3965 | echo "${ECHO_T}$AR" >&6; } | |
212380e3 | 3966 | else |
631ef239 | 3967 | { echo "$as_me:$LINENO: result: no" >&5 |
3968 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 3969 | fi |
3970 | ||
631ef239 | 3971 | |
212380e3 | 3972 | # Extract the first word of "ld", so it can be a program name with args. |
3973 | set dummy ld; ac_word=$2 | |
631ef239 | 3974 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 3976 | if test "${ac_cv_path_LD+set}" = set; then |
3977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3978 | else | |
3979 | case $LD in | |
3980 | [\\/]* | ?:[\\/]*) | |
3981 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
3982 | ;; | |
3983 | *) | |
3984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3985 | for as_dir in $PATH | |
3986 | do | |
3987 | IFS=$as_save_IFS | |
3988 | test -z "$as_dir" && as_dir=. | |
3989 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3990 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 3991 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
3992 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3993 | break 2 | |
3994 | fi | |
3995 | done | |
3996 | done | |
631ef239 | 3997 | IFS=$as_save_IFS |
212380e3 | 3998 | |
3999 | ;; | |
4000 | esac | |
4001 | fi | |
4002 | LD=$ac_cv_path_LD | |
212380e3 | 4003 | if test -n "$LD"; then |
631ef239 | 4004 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4005 | echo "${ECHO_T}$LD" >&6; } | |
212380e3 | 4006 | else |
631ef239 | 4007 | { echo "$as_me:$LINENO: result: no" >&5 |
4008 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 4009 | fi |
4010 | ||
631ef239 | 4011 | |
212380e3 | 4012 | # Extract the first word of "ranlib", so it can be a program name with args. |
4013 | set dummy ranlib; ac_word=$2 | |
631ef239 | 4014 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4015 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 4016 | if test "${ac_cv_path_RANLIB+set}" = set; then |
4017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4018 | else | |
4019 | case $RANLIB in | |
4020 | [\\/]* | ?:[\\/]*) | |
4021 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
4022 | ;; | |
4023 | *) | |
4024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4025 | for as_dir in $PATH | |
4026 | do | |
4027 | IFS=$as_save_IFS | |
4028 | test -z "$as_dir" && as_dir=. | |
4029 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4030 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 4031 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" |
4032 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4033 | break 2 | |
4034 | fi | |
4035 | done | |
4036 | done | |
631ef239 | 4037 | IFS=$as_save_IFS |
212380e3 | 4038 | |
4039 | ;; | |
4040 | esac | |
4041 | fi | |
4042 | RANLIB=$ac_cv_path_RANLIB | |
212380e3 | 4043 | if test -n "$RANLIB"; then |
631ef239 | 4044 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4045 | echo "${ECHO_T}$RANLIB" >&6; } | |
212380e3 | 4046 | else |
631ef239 | 4047 | { echo "$as_me:$LINENO: result: no" >&5 |
4048 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 4049 | fi |
4050 | ||
631ef239 | 4051 | |
212380e3 | 4052 | # Extract the first word of "touch", so it can be a program name with args. |
4053 | set dummy touch; ac_word=$2 | |
631ef239 | 4054 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4055 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 4056 | if test "${ac_cv_path_TOUCH+set}" = set; then |
4057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4058 | else | |
4059 | case $TOUCH in | |
4060 | [\\/]* | ?:[\\/]*) | |
4061 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
4062 | ;; | |
4063 | *) | |
4064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4065 | for as_dir in $PATH | |
4066 | do | |
4067 | IFS=$as_save_IFS | |
4068 | test -z "$as_dir" && as_dir=. | |
4069 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4070 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 4071 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
4072 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4073 | break 2 | |
4074 | fi | |
4075 | done | |
4076 | done | |
631ef239 | 4077 | IFS=$as_save_IFS |
212380e3 | 4078 | |
4079 | ;; | |
4080 | esac | |
4081 | fi | |
4082 | TOUCH=$ac_cv_path_TOUCH | |
212380e3 | 4083 | if test -n "$TOUCH"; then |
631ef239 | 4084 | { echo "$as_me:$LINENO: result: $TOUCH" >&5 |
4085 | echo "${ECHO_T}$TOUCH" >&6; } | |
212380e3 | 4086 | else |
631ef239 | 4087 | { echo "$as_me:$LINENO: result: no" >&5 |
4088 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 4089 | fi |
4090 | ||
4091 | ||
631ef239 | 4092 | |
212380e3 | 4093 | for ac_prog in 'bison -y' byacc |
4094 | do | |
4095 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4096 | set dummy $ac_prog; ac_word=$2 | |
631ef239 | 4097 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 4099 | if test "${ac_cv_prog_YACC+set}" = set; then |
4100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4101 | else | |
4102 | if test -n "$YACC"; then | |
4103 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4104 | else | |
4105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4106 | for as_dir in $PATH | |
4107 | do | |
4108 | IFS=$as_save_IFS | |
4109 | test -z "$as_dir" && as_dir=. | |
4110 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4111 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 4112 | ac_cv_prog_YACC="$ac_prog" |
4113 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4114 | break 2 | |
4115 | fi | |
4116 | done | |
4117 | done | |
631ef239 | 4118 | IFS=$as_save_IFS |
212380e3 | 4119 | |
4120 | fi | |
4121 | fi | |
4122 | YACC=$ac_cv_prog_YACC | |
4123 | if test -n "$YACC"; then | |
631ef239 | 4124 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
4125 | echo "${ECHO_T}$YACC" >&6; } | |
212380e3 | 4126 | else |
631ef239 | 4127 | { echo "$as_me:$LINENO: result: no" >&5 |
4128 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 4129 | fi |
4130 | ||
631ef239 | 4131 | |
212380e3 | 4132 | test -n "$YACC" && break |
4133 | done | |
4134 | test -n "$YACC" || YACC="yacc" | |
4135 | ||
4136 | ||
4137 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then | |
4138 | { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5 | |
4139 | echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;} | |
4140 | { (exit 1); exit 1; }; } | |
4141 | fi | |
4142 | ||
4143 | for ac_prog in flex lex | |
4144 | do | |
4145 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4146 | set dummy $ac_prog; ac_word=$2 | |
631ef239 | 4147 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 | 4149 | if test "${ac_cv_prog_LEX+set}" = set; then |
4150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4151 | else | |
4152 | if test -n "$LEX"; then | |
4153 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
4154 | else | |
4155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4156 | for as_dir in $PATH | |
4157 | do | |
4158 | IFS=$as_save_IFS | |
4159 | test -z "$as_dir" && as_dir=. | |
4160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4161 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 | 4162 | ac_cv_prog_LEX="$ac_prog" |
4163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4164 | break 2 | |
4165 | fi | |
4166 | done | |
4167 | done | |
631ef239 | 4168 | IFS=$as_save_IFS |
212380e3 | 4169 | |
4170 | fi | |
4171 | fi | |
4172 | LEX=$ac_cv_prog_LEX | |
4173 | if test -n "$LEX"; then | |
631ef239 | 4174 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
4175 | echo "${ECHO_T}$LEX" >&6; } | |
212380e3 | 4176 | else |
631ef239 | 4177 | { echo "$as_me:$LINENO: result: no" >&5 |
4178 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 4179 | fi |
4180 | ||
631ef239 | 4181 | |
212380e3 | 4182 | test -n "$LEX" && break |
4183 | done | |
4184 | test -n "$LEX" || LEX=":" | |
4185 | ||
631ef239 | 4186 | if test "x$LEX" != "x:"; then |
4187 | cat >conftest.l <<_ACEOF | |
4188 | %% | |
4189 | a { ECHO; } | |
4190 | b { REJECT; } | |
4191 | c { yymore (); } | |
4192 | d { yyless (1); } | |
4193 | e { yyless (input () != 0); } | |
4194 | f { unput (yytext[0]); } | |
4195 | . { BEGIN INITIAL; } | |
4196 | %% | |
4197 | #ifdef YYTEXT_POINTER | |
4198 | extern char *yytext; | |
212380e3 | 4199 | #endif |
212380e3 | 4200 | int |
631ef239 | 4201 | main (void) |
212380e3 | 4202 | { |
631ef239 | 4203 | return ! yylex () + ! yywrap (); |
212380e3 | 4204 | } |
4205 | _ACEOF | |
631ef239 | 4206 | { (ac_try="$LEX conftest.l" |
4207 | case "(($ac_try" in | |
4208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4209 | *) ac_try_echo=$ac_try;; | |
4210 | esac | |
4211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4212 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 | 4213 | ac_status=$? |
4214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 4215 | (exit $ac_status); } |
4216 | { echo "$as_me:$LINENO: checking lex output file root" >&5 | |
4217 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } | |
4218 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
4219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
212380e3 | 4220 | else |
212380e3 | 4221 | |
631ef239 | 4222 | if test -f lex.yy.c; then |
4223 | ac_cv_prog_lex_root=lex.yy | |
4224 | elif test -f lexyy.c; then | |
4225 | ac_cv_prog_lex_root=lexyy | |
212380e3 | 4226 | else |
631ef239 | 4227 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
4228 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
4229 | { (exit 1); exit 1; }; } | |
4230 | fi | |
4231 | fi | |
4232 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | |
4233 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } | |
4234 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
4235 | ||
4236 | if test -z "${LEXLIB+set}"; then | |
4237 | { echo "$as_me:$LINENO: checking lex library" >&5 | |
4238 | echo $ECHO_N "checking lex library... $ECHO_C" >&6; } | |
4239 | if test "${ac_cv_lib_lex+set}" = set; then | |
212380e3 | 4240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4241 | else | |
212380e3 | 4242 | |
631ef239 | 4243 | ac_save_LIBS=$LIBS |
4244 | ac_cv_lib_lex='none needed' | |
4245 | for ac_lib in '' -lfl -ll; do | |
4246 | LIBS="$ac_lib $ac_save_LIBS" | |
4247 | cat >conftest.$ac_ext <<_ACEOF | |
4248 | `cat $LEX_OUTPUT_ROOT.c` | |
212380e3 | 4249 | _ACEOF |
4250 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 4251 | if { (ac_try="$ac_link" |
4252 | case "(($ac_try" in | |
4253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4254 | *) ac_try_echo=$ac_try;; | |
4255 | esac | |
4256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4257 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 4258 | ac_status=$? |
4259 | grep -v '^ *+' conftest.er1 >conftest.err | |
4260 | rm -f conftest.er1 | |
4261 | cat conftest.err >&5 | |
4262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 4263 | (exit $ac_status); } && { |
4264 | test -z "$ac_c_werror_flag" || | |
4265 | test ! -s conftest.err | |
4266 | } && test -s conftest$ac_exeext && | |
4267 | $as_test_x conftest$ac_exeext; then | |
4268 | ac_cv_lib_lex=$ac_lib | |
212380e3 | 4269 | else |
4270 | echo "$as_me: failed program was:" >&5 | |
4271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4272 | ||
212380e3 | 4273 | |
4274 | fi | |
4275 | ||
631ef239 | 4276 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4277 | conftest$ac_exeext conftest.$ac_ext | |
4278 | test "$ac_cv_lib_lex" != 'none needed' && break | |
4279 | done | |
4280 | LIBS=$ac_save_LIBS | |
212380e3 | 4281 | |
212380e3 | 4282 | fi |
631ef239 | 4283 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 |
4284 | echo "${ECHO_T}$ac_cv_lib_lex" >&6; } | |
4285 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
212380e3 | 4286 | fi |
212380e3 | 4287 | |
631ef239 | 4288 | |
4289 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | |
4290 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } | |
212380e3 | 4291 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
4292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4293 | else | |
4294 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
631ef239 | 4295 | # default is implementation-dependent. Figure out which it is, since |
212380e3 | 4296 | # not all implementations provide the %pointer and %array declarations. |
4297 | ac_cv_prog_lex_yytext_pointer=no | |
212380e3 | 4298 | ac_save_LIBS=$LIBS |
631ef239 | 4299 | LIBS="$LEXLIB $ac_save_LIBS" |
212380e3 | 4300 | cat >conftest.$ac_ext <<_ACEOF |
631ef239 | 4301 | #define YYTEXT_POINTER 1 |
212380e3 | 4302 | `cat $LEX_OUTPUT_ROOT.c` |
4303 | _ACEOF | |
4304 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 4305 | if { (ac_try="$ac_link" |
4306 | case "(($ac_try" in | |
4307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4308 | *) ac_try_echo=$ac_try;; | |
4309 | esac | |
4310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4311 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 4312 | ac_status=$? |
4313 | grep -v '^ *+' conftest.er1 >conftest.err | |
4314 | rm -f conftest.er1 | |
4315 | cat conftest.err >&5 | |
4316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 4317 | (exit $ac_status); } && { |
4318 | test -z "$ac_c_werror_flag" || | |
4319 | test ! -s conftest.err | |
4320 | } && test -s conftest$ac_exeext && | |
4321 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 4322 | ac_cv_prog_lex_yytext_pointer=yes |
4323 | else | |
4324 | echo "$as_me: failed program was:" >&5 | |
4325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4326 | ||
631ef239 | 4327 | |
212380e3 | 4328 | fi |
631ef239 | 4329 | |
4330 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 4331 | conftest$ac_exeext conftest.$ac_ext |
4332 | LIBS=$ac_save_LIBS | |
212380e3 | 4333 | |
4334 | fi | |
631ef239 | 4335 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
4336 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } | |
212380e3 | 4337 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
4338 | ||
4339 | cat >>confdefs.h <<\_ACEOF | |
4340 | #define YYTEXT_POINTER 1 | |
4341 | _ACEOF | |
4342 | ||
4343 | fi | |
631ef239 | 4344 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
212380e3 | 4345 | |
4346 | fi | |
4347 | ||
4348 | if test "$LEX" = ":"; then | |
4349 | { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5 | |
4350 | echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;} | |
4351 | { (exit 1); exit 1; }; } | |
4352 | fi | |
4353 | ||
4354 | if test "$libexecdir" = '${exec_prefix}/libexec' && | |
4355 | test "$localstatedir" = '${prefix}/var'; then | |
4356 | libexecdir='${bindir}' | |
4357 | localstatedir='${prefix}' | |
4358 | fi | |
4359 | ||
631ef239 | 4360 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4361 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
212380e3 | 4362 | if test "${ac_cv_header_stdc+set}" = set; then |
4363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4364 | else | |
4365 | cat >conftest.$ac_ext <<_ACEOF | |
4366 | /* confdefs.h. */ | |
4367 | _ACEOF | |
4368 | cat confdefs.h >>conftest.$ac_ext | |
4369 | cat >>conftest.$ac_ext <<_ACEOF | |
4370 | /* end confdefs.h. */ | |
4371 | #include <stdlib.h> | |
4372 | #include <stdarg.h> | |
4373 | #include <string.h> | |
4374 | #include <float.h> | |
4375 | ||
4376 | int | |
4377 | main () | |
4378 | { | |
4379 | ||
4380 | ; | |
4381 | return 0; | |
4382 | } | |
4383 | _ACEOF | |
4384 | rm -f conftest.$ac_objext | |
631ef239 | 4385 | if { (ac_try="$ac_compile" |
4386 | case "(($ac_try" in | |
4387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4388 | *) ac_try_echo=$ac_try;; | |
4389 | esac | |
4390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4391 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 4392 | ac_status=$? |
4393 | grep -v '^ *+' conftest.er1 >conftest.err | |
4394 | rm -f conftest.er1 | |
4395 | cat conftest.err >&5 | |
4396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 4397 | (exit $ac_status); } && { |
4398 | test -z "$ac_c_werror_flag" || | |
4399 | test ! -s conftest.err | |
4400 | } && test -s conftest.$ac_objext; then | |
212380e3 | 4401 | ac_cv_header_stdc=yes |
4402 | else | |
4403 | echo "$as_me: failed program was:" >&5 | |
4404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4405 | ||
631ef239 | 4406 | ac_cv_header_stdc=no |
212380e3 | 4407 | fi |
631ef239 | 4408 | |
4409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 4410 | |
4411 | if test $ac_cv_header_stdc = yes; then | |
4412 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4413 | cat >conftest.$ac_ext <<_ACEOF | |
4414 | /* confdefs.h. */ | |
4415 | _ACEOF | |
4416 | cat confdefs.h >>conftest.$ac_ext | |
4417 | cat >>conftest.$ac_ext <<_ACEOF | |
4418 | /* end confdefs.h. */ | |
4419 | #include <string.h> | |
4420 | ||
4421 | _ACEOF | |
4422 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4423 | $EGREP "memchr" >/dev/null 2>&1; then | |
4424 | : | |
4425 | else | |
4426 | ac_cv_header_stdc=no | |
4427 | fi | |
4428 | rm -f conftest* | |
4429 | ||
4430 | fi | |
4431 | ||
4432 | if test $ac_cv_header_stdc = yes; then | |
4433 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4434 | cat >conftest.$ac_ext <<_ACEOF | |
4435 | /* confdefs.h. */ | |
4436 | _ACEOF | |
4437 | cat confdefs.h >>conftest.$ac_ext | |
4438 | cat >>conftest.$ac_ext <<_ACEOF | |
4439 | /* end confdefs.h. */ | |
4440 | #include <stdlib.h> | |
4441 | ||
4442 | _ACEOF | |
4443 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4444 | $EGREP "free" >/dev/null 2>&1; then | |
4445 | : | |
4446 | else | |
4447 | ac_cv_header_stdc=no | |
4448 | fi | |
4449 | rm -f conftest* | |
4450 | ||
4451 | fi | |
4452 | ||
4453 | if test $ac_cv_header_stdc = yes; then | |
4454 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4455 | if test "$cross_compiling" = yes; then | |
4456 | : | |
4457 | else | |
4458 | cat >conftest.$ac_ext <<_ACEOF | |
4459 | /* confdefs.h. */ | |
4460 | _ACEOF | |
4461 | cat confdefs.h >>conftest.$ac_ext | |
4462 | cat >>conftest.$ac_ext <<_ACEOF | |
4463 | /* end confdefs.h. */ | |
4464 | #include <ctype.h> | |
631ef239 | 4465 | #include <stdlib.h> |
212380e3 | 4466 | #if ((' ' & 0x0FF) == 0x020) |
4467 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4468 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4469 | #else | |
4470 | # define ISLOWER(c) \ | |
4471 | (('a' <= (c) && (c) <= 'i') \ | |
4472 | || ('j' <= (c) && (c) <= 'r') \ | |
4473 | || ('s' <= (c) && (c) <= 'z')) | |
4474 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4475 | #endif | |
4476 | ||
4477 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4478 | int | |
4479 | main () | |
4480 | { | |
4481 | int i; | |
4482 | for (i = 0; i < 256; i++) | |
4483 | if (XOR (islower (i), ISLOWER (i)) | |
4484 | || toupper (i) != TOUPPER (i)) | |
631ef239 | 4485 | return 2; |
4486 | return 0; | |
212380e3 | 4487 | } |
4488 | _ACEOF | |
4489 | rm -f conftest$ac_exeext | |
631ef239 | 4490 | if { (ac_try="$ac_link" |
4491 | case "(($ac_try" in | |
4492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4493 | *) ac_try_echo=$ac_try;; | |
4494 | esac | |
4495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4496 | (eval "$ac_link") 2>&5 | |
212380e3 | 4497 | ac_status=$? |
4498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4499 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 | 4500 | { (case "(($ac_try" in |
4501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4502 | *) ac_try_echo=$ac_try;; | |
4503 | esac | |
4504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4505 | (eval "$ac_try") 2>&5 | |
212380e3 | 4506 | ac_status=$? |
4507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4508 | (exit $ac_status); }; }; then | |
4509 | : | |
4510 | else | |
4511 | echo "$as_me: program exited with status $ac_status" >&5 | |
4512 | echo "$as_me: failed program was:" >&5 | |
4513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4514 | ||
4515 | ( exit $ac_status ) | |
4516 | ac_cv_header_stdc=no | |
4517 | fi | |
631ef239 | 4518 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 4519 | fi |
631ef239 | 4520 | |
4521 | ||
212380e3 | 4522 | fi |
4523 | fi | |
631ef239 | 4524 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4525 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
212380e3 | 4526 | if test $ac_cv_header_stdc = yes; then |
4527 | ||
4528 | cat >>confdefs.h <<\_ACEOF | |
4529 | #define STDC_HEADERS 1 | |
4530 | _ACEOF | |
4531 | ||
4532 | fi | |
4533 | ||
4534 | ||
4535 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4536 | ||
4537 | ||
4538 | ||
4539 | ||
4540 | ||
4541 | ||
4542 | ||
4543 | ||
4544 | ||
4545 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4546 | inttypes.h stdint.h unistd.h | |
4547 | do | |
4548 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 | 4549 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4550 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4551 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 4552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4553 | else | |
4554 | cat >conftest.$ac_ext <<_ACEOF | |
4555 | /* confdefs.h. */ | |
4556 | _ACEOF | |
4557 | cat confdefs.h >>conftest.$ac_ext | |
4558 | cat >>conftest.$ac_ext <<_ACEOF | |
4559 | /* end confdefs.h. */ | |
4560 | $ac_includes_default | |
4561 | ||
4562 | #include <$ac_header> | |
4563 | _ACEOF | |
4564 | rm -f conftest.$ac_objext | |
631ef239 | 4565 | if { (ac_try="$ac_compile" |
4566 | case "(($ac_try" in | |
4567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4568 | *) ac_try_echo=$ac_try;; | |
4569 | esac | |
4570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4571 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 4572 | ac_status=$? |
4573 | grep -v '^ *+' conftest.er1 >conftest.err | |
4574 | rm -f conftest.er1 | |
4575 | cat conftest.err >&5 | |
4576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 4577 | (exit $ac_status); } && { |
4578 | test -z "$ac_c_werror_flag" || | |
4579 | test ! -s conftest.err | |
4580 | } && test -s conftest.$ac_objext; then | |
212380e3 | 4581 | eval "$as_ac_Header=yes" |
4582 | else | |
4583 | echo "$as_me: failed program was:" >&5 | |
4584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4585 | ||
631ef239 | 4586 | eval "$as_ac_Header=no" |
212380e3 | 4587 | fi |
631ef239 | 4588 | |
4589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 4590 | fi |
631ef239 | 4591 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4592 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4593 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 4594 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4595 | cat >>confdefs.h <<_ACEOF | |
4596 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4597 | _ACEOF | |
4598 | ||
4599 | fi | |
4600 | ||
4601 | done | |
4602 | ||
4603 | ||
4604 | ||
4605 | ||
4606 | ||
4607 | ||
4608 | ||
4609 | ||
4610 | ||
4611 | ||
4612 | ||
4613 | ||
4614 | ||
4615 | for ac_header in crypt.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h sys/wait.h wait.h sys/epoll.h sys/uio.h machine/endian.h | |
4616 | do | |
4617 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 | 4618 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4619 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4620 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4621 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 4622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4623 | fi | |
631ef239 | 4624 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4625 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4626 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 4627 | else |
4628 | # Is the header compilable? | |
631ef239 | 4629 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4630 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 | 4631 | cat >conftest.$ac_ext <<_ACEOF |
4632 | /* confdefs.h. */ | |
4633 | _ACEOF | |
4634 | cat confdefs.h >>conftest.$ac_ext | |
4635 | cat >>conftest.$ac_ext <<_ACEOF | |
4636 | /* end confdefs.h. */ | |
4637 | $ac_includes_default | |
4638 | #include <$ac_header> | |
4639 | _ACEOF | |
4640 | rm -f conftest.$ac_objext | |
631ef239 | 4641 | if { (ac_try="$ac_compile" |
4642 | case "(($ac_try" in | |
4643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4644 | *) ac_try_echo=$ac_try;; | |
4645 | esac | |
4646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4647 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 4648 | ac_status=$? |
4649 | grep -v '^ *+' conftest.er1 >conftest.err | |
4650 | rm -f conftest.er1 | |
4651 | cat conftest.err >&5 | |
4652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 4653 | (exit $ac_status); } && { |
4654 | test -z "$ac_c_werror_flag" || | |
4655 | test ! -s conftest.err | |
4656 | } && test -s conftest.$ac_objext; then | |
212380e3 | 4657 | ac_header_compiler=yes |
4658 | else | |
4659 | echo "$as_me: failed program was:" >&5 | |
4660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4661 | ||
631ef239 | 4662 | ac_header_compiler=no |
212380e3 | 4663 | fi |
631ef239 | 4664 | |
4665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4666 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4667 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 | 4668 | |
4669 | # Is the header present? | |
631ef239 | 4670 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4671 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 | 4672 | cat >conftest.$ac_ext <<_ACEOF |
4673 | /* confdefs.h. */ | |
4674 | _ACEOF | |
4675 | cat confdefs.h >>conftest.$ac_ext | |
4676 | cat >>conftest.$ac_ext <<_ACEOF | |
4677 | /* end confdefs.h. */ | |
4678 | #include <$ac_header> | |
4679 | _ACEOF | |
631ef239 | 4680 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4681 | case "(($ac_try" in | |
4682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4683 | *) ac_try_echo=$ac_try;; | |
4684 | esac | |
4685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4686 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 | 4687 | ac_status=$? |
4688 | grep -v '^ *+' conftest.er1 >conftest.err | |
4689 | rm -f conftest.er1 | |
4690 | cat conftest.err >&5 | |
4691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 4692 | (exit $ac_status); } >/dev/null && { |
4693 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4694 | test ! -s conftest.err | |
4695 | }; then | |
212380e3 | 4696 | ac_header_preproc=yes |
4697 | else | |
4698 | echo "$as_me: failed program was:" >&5 | |
4699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4700 | ||
4701 | ac_header_preproc=no | |
4702 | fi | |
631ef239 | 4703 | |
212380e3 | 4704 | rm -f conftest.err conftest.$ac_ext |
631ef239 | 4705 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4706 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 | 4707 | |
4708 | # So? What about this header? | |
4709 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4710 | yes:no: ) | |
4711 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4712 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4713 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4714 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4715 | ac_header_preproc=yes | |
4716 | ;; | |
4717 | no:yes:* ) | |
4718 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4719 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4720 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4721 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4722 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4723 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4724 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4725 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4726 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4727 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4728 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4729 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 4730 | |
212380e3 | 4731 | ;; |
4732 | esac | |
631ef239 | 4733 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4734 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4735 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 4736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4737 | else | |
4738 | eval "$as_ac_Header=\$ac_header_preproc" | |
4739 | fi | |
631ef239 | 4740 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4741 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4742 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 4743 | |
4744 | fi | |
4745 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4746 | cat >>confdefs.h <<_ACEOF | |
4747 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4748 | _ACEOF | |
4749 | ||
4750 | fi | |
4751 | ||
4752 | done | |
4753 | ||
4754 | ||
4755 | ||
631ef239 | 4756 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4757 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
212380e3 | 4758 | if test "${ac_cv_c_const+set}" = set; then |
4759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4760 | else | |
4761 | cat >conftest.$ac_ext <<_ACEOF | |
4762 | /* confdefs.h. */ | |
4763 | _ACEOF | |
4764 | cat confdefs.h >>conftest.$ac_ext | |
4765 | cat >>conftest.$ac_ext <<_ACEOF | |
4766 | /* end confdefs.h. */ | |
4767 | ||
4768 | int | |
4769 | main () | |
4770 | { | |
4771 | /* FIXME: Include the comments suggested by Paul. */ | |
4772 | #ifndef __cplusplus | |
4773 | /* Ultrix mips cc rejects this. */ | |
4774 | typedef int charset[2]; | |
631ef239 | 4775 | const charset cs; |
212380e3 | 4776 | /* SunOS 4.1.1 cc rejects this. */ |
631ef239 | 4777 | char const *const *pcpcc; |
4778 | char **ppc; | |
212380e3 | 4779 | /* NEC SVR4.0.2 mips cc rejects this. */ |
4780 | struct point {int x, y;}; | |
4781 | static struct point const zero = {0,0}; | |
4782 | /* AIX XL C 1.02.0.0 rejects this. | |
4783 | It does not let you subtract one const X* pointer from another in | |
4784 | an arm of an if-expression whose if-part is not a constant | |
4785 | expression */ | |
4786 | const char *g = "string"; | |
631ef239 | 4787 | pcpcc = &g + (g ? g-g : 0); |
212380e3 | 4788 | /* HPUX 7.0 cc rejects these. */ |
631ef239 | 4789 | ++pcpcc; |
4790 | ppc = (char**) pcpcc; | |
4791 | pcpcc = (char const *const *) ppc; | |
212380e3 | 4792 | { /* SCO 3.2v4 cc rejects this. */ |
4793 | char *t; | |
4794 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4795 | ||
4796 | *t++ = 0; | |
631ef239 | 4797 | if (s) return 0; |
212380e3 | 4798 | } |
4799 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4800 | int x[] = {25, 17}; | |
4801 | const int *foo = &x[0]; | |
4802 | ++foo; | |
4803 | } | |
4804 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4805 | typedef const int *iptr; | |
4806 | iptr p = 0; | |
4807 | ++p; | |
4808 | } | |
4809 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4810 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4811 | struct s { int j; const int *ap[3]; }; | |
4812 | struct s *b; b->j = 5; | |
4813 | } | |
4814 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4815 | const int foo = 10; | |
631ef239 | 4816 | if (!foo) return 0; |
212380e3 | 4817 | } |
631ef239 | 4818 | return !cs[0] && !zero.x; |
212380e3 | 4819 | #endif |
4820 | ||
4821 | ; | |
4822 | return 0; | |
4823 | } | |
4824 | _ACEOF | |
4825 | rm -f conftest.$ac_objext | |
631ef239 | 4826 | if { (ac_try="$ac_compile" |
4827 | case "(($ac_try" in | |
4828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4829 | *) ac_try_echo=$ac_try;; | |
4830 | esac | |
4831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4832 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 4833 | ac_status=$? |
4834 | grep -v '^ *+' conftest.er1 >conftest.err | |
4835 | rm -f conftest.er1 | |
4836 | cat conftest.err >&5 | |
4837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 4838 | (exit $ac_status); } && { |
4839 | test -z "$ac_c_werror_flag" || | |
4840 | test ! -s conftest.err | |
4841 | } && test -s conftest.$ac_objext; then | |
212380e3 | 4842 | ac_cv_c_const=yes |
4843 | else | |
4844 | echo "$as_me: failed program was:" >&5 | |
4845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4846 | ||
631ef239 | 4847 | ac_cv_c_const=no |
212380e3 | 4848 | fi |
631ef239 | 4849 | |
4850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 4851 | fi |
631ef239 | 4852 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4853 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
212380e3 | 4854 | if test $ac_cv_c_const = no; then |
4855 | ||
4856 | cat >>confdefs.h <<\_ACEOF | |
4857 | #define const | |
4858 | _ACEOF | |
4859 | ||
4860 | fi | |
4861 | ||
4862 | if test "$ac_cv_header_machine_endian_h" = "no" ; then | |
631ef239 | 4863 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
4864 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
212380e3 | 4865 | if test "${ac_cv_c_bigendian+set}" = set; then |
4866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4867 | else | |
4868 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4869 | cat >conftest.$ac_ext <<_ACEOF | |
4870 | /* confdefs.h. */ | |
4871 | _ACEOF | |
4872 | cat confdefs.h >>conftest.$ac_ext | |
4873 | cat >>conftest.$ac_ext <<_ACEOF | |
4874 | /* end confdefs.h. */ | |
4875 | #include <sys/types.h> | |
4876 | #include <sys/param.h> | |
4877 | ||
4878 | int | |
4879 | main () | |
4880 | { | |
631ef239 | 4881 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
4882 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
212380e3 | 4883 | bogus endian macros |
4884 | #endif | |
4885 | ||
4886 | ; | |
4887 | return 0; | |
4888 | } | |
4889 | _ACEOF | |
4890 | rm -f conftest.$ac_objext | |
631ef239 | 4891 | if { (ac_try="$ac_compile" |
4892 | case "(($ac_try" in | |
4893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4894 | *) ac_try_echo=$ac_try;; | |
4895 | esac | |
4896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4897 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 4898 | ac_status=$? |
4899 | grep -v '^ *+' conftest.er1 >conftest.err | |
4900 | rm -f conftest.er1 | |
4901 | cat conftest.err >&5 | |
4902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 4903 | (exit $ac_status); } && { |
4904 | test -z "$ac_c_werror_flag" || | |
4905 | test ! -s conftest.err | |
4906 | } && test -s conftest.$ac_objext; then | |
212380e3 | 4907 | # It does; now see whether it defined to BIG_ENDIAN or not. |
4908 | cat >conftest.$ac_ext <<_ACEOF | |
4909 | /* confdefs.h. */ | |
4910 | _ACEOF | |
4911 | cat confdefs.h >>conftest.$ac_ext | |
4912 | cat >>conftest.$ac_ext <<_ACEOF | |
4913 | /* end confdefs.h. */ | |
4914 | #include <sys/types.h> | |
4915 | #include <sys/param.h> | |
4916 | ||
4917 | int | |
4918 | main () | |
4919 | { | |
4920 | #if BYTE_ORDER != BIG_ENDIAN | |
4921 | not big endian | |
4922 | #endif | |
4923 | ||
4924 | ; | |
4925 | return 0; | |
4926 | } | |
4927 | _ACEOF | |
4928 | rm -f conftest.$ac_objext | |
631ef239 | 4929 | if { (ac_try="$ac_compile" |
4930 | case "(($ac_try" in | |
4931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4932 | *) ac_try_echo=$ac_try;; | |
4933 | esac | |
4934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4935 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 4936 | ac_status=$? |
4937 | grep -v '^ *+' conftest.er1 >conftest.err | |
4938 | rm -f conftest.er1 | |
4939 | cat conftest.err >&5 | |
4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 4941 | (exit $ac_status); } && { |
4942 | test -z "$ac_c_werror_flag" || | |
4943 | test ! -s conftest.err | |
4944 | } && test -s conftest.$ac_objext; then | |
212380e3 | 4945 | ac_cv_c_bigendian=yes |
4946 | else | |
4947 | echo "$as_me: failed program was:" >&5 | |
4948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4949 | ||
631ef239 | 4950 | ac_cv_c_bigendian=no |
212380e3 | 4951 | fi |
631ef239 | 4952 | |
4953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 4954 | else |
4955 | echo "$as_me: failed program was:" >&5 | |
4956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4957 | ||
631ef239 | 4958 | # It does not; compile a test program. |
212380e3 | 4959 | if test "$cross_compiling" = yes; then |
4960 | # try to guess the endianness by grepping values into an object file | |
4961 | ac_cv_c_bigendian=unknown | |
4962 | cat >conftest.$ac_ext <<_ACEOF | |
4963 | /* confdefs.h. */ | |
4964 | _ACEOF | |
4965 | cat confdefs.h >>conftest.$ac_ext | |
4966 | cat >>conftest.$ac_ext <<_ACEOF | |
4967 | /* end confdefs.h. */ | |
631ef239 | 4968 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
4969 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
212380e3 | 4970 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
631ef239 | 4971 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
4972 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
212380e3 | 4973 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
4974 | int | |
4975 | main () | |
4976 | { | |
4977 | _ascii (); _ebcdic (); | |
4978 | ; | |
4979 | return 0; | |
4980 | } | |
4981 | _ACEOF | |
4982 | rm -f conftest.$ac_objext | |
631ef239 | 4983 | if { (ac_try="$ac_compile" |
4984 | case "(($ac_try" in | |
4985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4986 | *) ac_try_echo=$ac_try;; | |
4987 | esac | |
4988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4989 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 4990 | ac_status=$? |
4991 | grep -v '^ *+' conftest.er1 >conftest.err | |
4992 | rm -f conftest.er1 | |
4993 | cat conftest.err >&5 | |
4994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 4995 | (exit $ac_status); } && { |
4996 | test -z "$ac_c_werror_flag" || | |
4997 | test ! -s conftest.err | |
4998 | } && test -s conftest.$ac_objext; then | |
212380e3 | 4999 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
5000 | ac_cv_c_bigendian=yes | |
5001 | fi | |
5002 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5003 | if test "$ac_cv_c_bigendian" = unknown; then | |
5004 | ac_cv_c_bigendian=no | |
5005 | else | |
5006 | # finding both strings is unlikely to happen, but who knows? | |
5007 | ac_cv_c_bigendian=unknown | |
5008 | fi | |
5009 | fi | |
5010 | else | |
5011 | echo "$as_me: failed program was:" >&5 | |
5012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5013 | ||
631ef239 | 5014 | |
212380e3 | 5015 | fi |
631ef239 | 5016 | |
5017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5018 | else |
5019 | cat >conftest.$ac_ext <<_ACEOF | |
5020 | /* confdefs.h. */ | |
5021 | _ACEOF | |
5022 | cat confdefs.h >>conftest.$ac_ext | |
5023 | cat >>conftest.$ac_ext <<_ACEOF | |
5024 | /* end confdefs.h. */ | |
631ef239 | 5025 | $ac_includes_default |
212380e3 | 5026 | int |
5027 | main () | |
5028 | { | |
631ef239 | 5029 | |
212380e3 | 5030 | /* Are we little or big endian? From Harbison&Steele. */ |
5031 | union | |
5032 | { | |
631ef239 | 5033 | long int l; |
5034 | char c[sizeof (long int)]; | |
212380e3 | 5035 | } u; |
5036 | u.l = 1; | |
631ef239 | 5037 | return u.c[sizeof (long int) - 1] == 1; |
5038 | ||
5039 | ; | |
5040 | return 0; | |
212380e3 | 5041 | } |
5042 | _ACEOF | |
5043 | rm -f conftest$ac_exeext | |
631ef239 | 5044 | if { (ac_try="$ac_link" |
5045 | case "(($ac_try" in | |
5046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5047 | *) ac_try_echo=$ac_try;; | |
5048 | esac | |
5049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5050 | (eval "$ac_link") 2>&5 | |
212380e3 | 5051 | ac_status=$? |
5052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5053 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 | 5054 | { (case "(($ac_try" in |
5055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5056 | *) ac_try_echo=$ac_try;; | |
5057 | esac | |
5058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5059 | (eval "$ac_try") 2>&5 | |
212380e3 | 5060 | ac_status=$? |
5061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5062 | (exit $ac_status); }; }; then | |
5063 | ac_cv_c_bigendian=no | |
5064 | else | |
5065 | echo "$as_me: program exited with status $ac_status" >&5 | |
5066 | echo "$as_me: failed program was:" >&5 | |
5067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5068 | ||
5069 | ( exit $ac_status ) | |
5070 | ac_cv_c_bigendian=yes | |
5071 | fi | |
631ef239 | 5072 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5073 | fi |
631ef239 | 5074 | |
5075 | ||
212380e3 | 5076 | fi |
631ef239 | 5077 | |
5078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5079 | fi |
631ef239 | 5080 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
5081 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
212380e3 | 5082 | case $ac_cv_c_bigendian in |
5083 | yes) | |
5084 | ||
5085 | cat >>confdefs.h <<\_ACEOF | |
5086 | #define WORDS_BIGENDIAN 1 | |
5087 | _ACEOF | |
5088 | ;; | |
5089 | no) | |
5090 | ;; | |
5091 | *) | |
5092 | { { echo "$as_me:$LINENO: error: unknown endianness | |
5093 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
5094 | echo "$as_me: error: unknown endianness | |
5095 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
5096 | { (exit 1); exit 1; }; } ;; | |
5097 | esac | |
5098 | ||
5099 | fi | |
631ef239 | 5100 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5101 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
212380e3 | 5102 | if test "${ac_cv_type_pid_t+set}" = set; then |
5103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5104 | else | |
5105 | cat >conftest.$ac_ext <<_ACEOF | |
5106 | /* confdefs.h. */ | |
5107 | _ACEOF | |
5108 | cat confdefs.h >>conftest.$ac_ext | |
5109 | cat >>conftest.$ac_ext <<_ACEOF | |
5110 | /* end confdefs.h. */ | |
5111 | $ac_includes_default | |
631ef239 | 5112 | typedef pid_t ac__type_new_; |
212380e3 | 5113 | int |
5114 | main () | |
5115 | { | |
631ef239 | 5116 | if ((ac__type_new_ *) 0) |
212380e3 | 5117 | return 0; |
631ef239 | 5118 | if (sizeof (ac__type_new_)) |
212380e3 | 5119 | return 0; |
5120 | ; | |
5121 | return 0; | |
5122 | } | |
5123 | _ACEOF | |
5124 | rm -f conftest.$ac_objext | |
631ef239 | 5125 | if { (ac_try="$ac_compile" |
5126 | case "(($ac_try" in | |
5127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5128 | *) ac_try_echo=$ac_try;; | |
5129 | esac | |
5130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5131 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 5132 | ac_status=$? |
5133 | grep -v '^ *+' conftest.er1 >conftest.err | |
5134 | rm -f conftest.er1 | |
5135 | cat conftest.err >&5 | |
5136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 5137 | (exit $ac_status); } && { |
5138 | test -z "$ac_c_werror_flag" || | |
5139 | test ! -s conftest.err | |
5140 | } && test -s conftest.$ac_objext; then | |
212380e3 | 5141 | ac_cv_type_pid_t=yes |
5142 | else | |
5143 | echo "$as_me: failed program was:" >&5 | |
5144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5145 | ||
631ef239 | 5146 | ac_cv_type_pid_t=no |
212380e3 | 5147 | fi |
631ef239 | 5148 | |
5149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5150 | fi |
631ef239 | 5151 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5152 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
212380e3 | 5153 | if test $ac_cv_type_pid_t = yes; then |
5154 | : | |
5155 | else | |
5156 | ||
5157 | cat >>confdefs.h <<_ACEOF | |
5158 | #define pid_t int | |
5159 | _ACEOF | |
5160 | ||
5161 | fi | |
5162 | ||
631ef239 | 5163 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5164 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
212380e3 | 5165 | if test "${ac_cv_type_size_t+set}" = set; then |
5166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5167 | else | |
5168 | cat >conftest.$ac_ext <<_ACEOF | |
5169 | /* confdefs.h. */ | |
5170 | _ACEOF | |
5171 | cat confdefs.h >>conftest.$ac_ext | |
5172 | cat >>conftest.$ac_ext <<_ACEOF | |
5173 | /* end confdefs.h. */ | |
5174 | $ac_includes_default | |
631ef239 | 5175 | typedef size_t ac__type_new_; |
212380e3 | 5176 | int |
5177 | main () | |
5178 | { | |
631ef239 | 5179 | if ((ac__type_new_ *) 0) |
212380e3 | 5180 | return 0; |
631ef239 | 5181 | if (sizeof (ac__type_new_)) |
212380e3 | 5182 | return 0; |
5183 | ; | |
5184 | return 0; | |
5185 | } | |
5186 | _ACEOF | |
5187 | rm -f conftest.$ac_objext | |
631ef239 | 5188 | if { (ac_try="$ac_compile" |
5189 | case "(($ac_try" in | |
5190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5191 | *) ac_try_echo=$ac_try;; | |
5192 | esac | |
5193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5194 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 5195 | ac_status=$? |
5196 | grep -v '^ *+' conftest.er1 >conftest.err | |
5197 | rm -f conftest.er1 | |
5198 | cat conftest.err >&5 | |
5199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 5200 | (exit $ac_status); } && { |
5201 | test -z "$ac_c_werror_flag" || | |
5202 | test ! -s conftest.err | |
5203 | } && test -s conftest.$ac_objext; then | |
212380e3 | 5204 | ac_cv_type_size_t=yes |
5205 | else | |
5206 | echo "$as_me: failed program was:" >&5 | |
5207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5208 | ||
631ef239 | 5209 | ac_cv_type_size_t=no |
212380e3 | 5210 | fi |
631ef239 | 5211 | |
5212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5213 | fi |
631ef239 | 5214 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5215 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
212380e3 | 5216 | if test $ac_cv_type_size_t = yes; then |
5217 | : | |
5218 | else | |
5219 | ||
5220 | cat >>confdefs.h <<_ACEOF | |
631ef239 | 5221 | #define size_t unsigned int |
212380e3 | 5222 | _ACEOF |
5223 | ||
5224 | fi | |
5225 | ||
631ef239 | 5226 | { echo "$as_me:$LINENO: checking for short" >&5 |
5227 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } | |
212380e3 | 5228 | if test "${ac_cv_type_short+set}" = set; then |
5229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5230 | else | |
5231 | cat >conftest.$ac_ext <<_ACEOF | |
5232 | /* confdefs.h. */ | |
5233 | _ACEOF | |
5234 | cat confdefs.h >>conftest.$ac_ext | |
5235 | cat >>conftest.$ac_ext <<_ACEOF | |
5236 | /* end confdefs.h. */ | |
5237 | $ac_includes_default | |
631ef239 | 5238 | typedef short ac__type_new_; |
212380e3 | 5239 | int |
5240 | main () | |
5241 | { | |
631ef239 | 5242 | if ((ac__type_new_ *) 0) |
212380e3 | 5243 | return 0; |
631ef239 | 5244 | if (sizeof (ac__type_new_)) |
212380e3 | 5245 | return 0; |
5246 | ; | |
5247 | return 0; | |
5248 | } | |
5249 | _ACEOF | |
5250 | rm -f conftest.$ac_objext | |
631ef239 | 5251 | if { (ac_try="$ac_compile" |
5252 | case "(($ac_try" in | |
5253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5254 | *) ac_try_echo=$ac_try;; | |
5255 | esac | |
5256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5257 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 5258 | ac_status=$? |
5259 | grep -v '^ *+' conftest.er1 >conftest.err | |
5260 | rm -f conftest.er1 | |
5261 | cat conftest.err >&5 | |
5262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 5263 | (exit $ac_status); } && { |
5264 | test -z "$ac_c_werror_flag" || | |
5265 | test ! -s conftest.err | |
5266 | } && test -s conftest.$ac_objext; then | |
212380e3 | 5267 | ac_cv_type_short=yes |
5268 | else | |
5269 | echo "$as_me: failed program was:" >&5 | |
5270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5271 | ||
631ef239 | 5272 | ac_cv_type_short=no |
212380e3 | 5273 | fi |
631ef239 | 5274 | |
5275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5276 | fi |
631ef239 | 5277 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
5278 | echo "${ECHO_T}$ac_cv_type_short" >&6; } | |
212380e3 | 5279 | |
631ef239 | 5280 | # The cast to long int works around a bug in the HP C Compiler |
5281 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5282 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5283 | # This bug is HP SR number 8606223364. | |
5284 | { echo "$as_me:$LINENO: checking size of short" >&5 | |
5285 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } | |
212380e3 | 5286 | if test "${ac_cv_sizeof_short+set}" = set; then |
5287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5288 | else | |
212380e3 | 5289 | if test "$cross_compiling" = yes; then |
5290 | # Depending upon the size, compute the lo and hi bounds. | |
5291 | cat >conftest.$ac_ext <<_ACEOF | |
5292 | /* confdefs.h. */ | |
5293 | _ACEOF | |
5294 | cat confdefs.h >>conftest.$ac_ext | |
5295 | cat >>conftest.$ac_ext <<_ACEOF | |
5296 | /* end confdefs.h. */ | |
5297 | $ac_includes_default | |
631ef239 | 5298 | typedef short ac__type_sizeof_; |
212380e3 | 5299 | int |
5300 | main () | |
5301 | { | |
631ef239 | 5302 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 | 5303 | test_array [0] = 0 |
5304 | ||
5305 | ; | |
5306 | return 0; | |
5307 | } | |
5308 | _ACEOF | |
5309 | rm -f conftest.$ac_objext | |
631ef239 | 5310 | if { (ac_try="$ac_compile" |
5311 | case "(($ac_try" in | |
5312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5313 | *) ac_try_echo=$ac_try;; | |
5314 | esac | |
5315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5316 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 5317 | ac_status=$? |
5318 | grep -v '^ *+' conftest.er1 >conftest.err | |
5319 | rm -f conftest.er1 | |
5320 | cat conftest.err >&5 | |
5321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 5322 | (exit $ac_status); } && { |
5323 | test -z "$ac_c_werror_flag" || | |
5324 | test ! -s conftest.err | |
5325 | } && test -s conftest.$ac_objext; then | |
212380e3 | 5326 | ac_lo=0 ac_mid=0 |
5327 | while :; do | |
5328 | cat >conftest.$ac_ext <<_ACEOF | |
5329 | /* confdefs.h. */ | |
5330 | _ACEOF | |
5331 | cat confdefs.h >>conftest.$ac_ext | |
5332 | cat >>conftest.$ac_ext <<_ACEOF | |
5333 | /* end confdefs.h. */ | |
5334 | $ac_includes_default | |
631ef239 | 5335 | typedef short ac__type_sizeof_; |
212380e3 | 5336 | int |
5337 | main () | |
5338 | { | |
631ef239 | 5339 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 | 5340 | test_array [0] = 0 |
5341 | ||
5342 | ; | |
5343 | return 0; | |
5344 | } | |
5345 | _ACEOF | |
5346 | rm -f conftest.$ac_objext | |
631ef239 | 5347 | if { (ac_try="$ac_compile" |
5348 | case "(($ac_try" in | |
5349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5350 | *) ac_try_echo=$ac_try;; | |
5351 | esac | |
5352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5353 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 5354 | ac_status=$? |
5355 | grep -v '^ *+' conftest.er1 >conftest.err | |
5356 | rm -f conftest.er1 | |
5357 | cat conftest.err >&5 | |
5358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 5359 | (exit $ac_status); } && { |
5360 | test -z "$ac_c_werror_flag" || | |
5361 | test ! -s conftest.err | |
5362 | } && test -s conftest.$ac_objext; then | |
212380e3 | 5363 | ac_hi=$ac_mid; break |
5364 | else | |
5365 | echo "$as_me: failed program was:" >&5 | |
5366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5367 | ||
631ef239 | 5368 | ac_lo=`expr $ac_mid + 1` |
5369 | if test $ac_lo -le $ac_mid; then | |
5370 | ac_lo= ac_hi= | |
5371 | break | |
5372 | fi | |
5373 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 5374 | fi |
631ef239 | 5375 | |
5376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5377 | done |
5378 | else | |
5379 | echo "$as_me: failed program was:" >&5 | |
5380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5381 | ||
631ef239 | 5382 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 | 5383 | /* confdefs.h. */ |
5384 | _ACEOF | |
5385 | cat confdefs.h >>conftest.$ac_ext | |
5386 | cat >>conftest.$ac_ext <<_ACEOF | |
5387 | /* end confdefs.h. */ | |
5388 | $ac_includes_default | |
631ef239 | 5389 | typedef short ac__type_sizeof_; |
212380e3 | 5390 | int |
5391 | main () | |
5392 | { | |
631ef239 | 5393 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 | 5394 | test_array [0] = 0 |
5395 | ||
5396 | ; | |
5397 | return 0; | |
5398 | } | |
5399 | _ACEOF | |
5400 | rm -f conftest.$ac_objext | |
631ef239 | 5401 | if { (ac_try="$ac_compile" |
5402 | case "(($ac_try" in | |
5403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5404 | *) ac_try_echo=$ac_try;; | |
5405 | esac | |
5406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5407 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 5408 | ac_status=$? |
5409 | grep -v '^ *+' conftest.er1 >conftest.err | |
5410 | rm -f conftest.er1 | |
5411 | cat conftest.err >&5 | |
5412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 5413 | (exit $ac_status); } && { |
5414 | test -z "$ac_c_werror_flag" || | |
5415 | test ! -s conftest.err | |
5416 | } && test -s conftest.$ac_objext; then | |
212380e3 | 5417 | ac_hi=-1 ac_mid=-1 |
5418 | while :; do | |
5419 | cat >conftest.$ac_ext <<_ACEOF | |
5420 | /* confdefs.h. */ | |
5421 | _ACEOF | |
5422 | cat confdefs.h >>conftest.$ac_ext | |
5423 | cat >>conftest.$ac_ext <<_ACEOF | |
5424 | /* end confdefs.h. */ | |
5425 | $ac_includes_default | |
631ef239 | 5426 | typedef short ac__type_sizeof_; |
212380e3 | 5427 | int |
5428 | main () | |
5429 | { | |
631ef239 | 5430 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 | 5431 | test_array [0] = 0 |
5432 | ||
5433 | ; | |
5434 | return 0; | |
5435 | } | |
5436 | _ACEOF | |
5437 | rm -f conftest.$ac_objext | |
631ef239 | 5438 | if { (ac_try="$ac_compile" |
5439 | case "(($ac_try" in | |
5440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5441 | *) ac_try_echo=$ac_try;; | |
5442 | esac | |
5443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5444 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 5445 | ac_status=$? |
5446 | grep -v '^ *+' conftest.er1 >conftest.err | |
5447 | rm -f conftest.er1 | |
5448 | cat conftest.err >&5 | |
5449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 5450 | (exit $ac_status); } && { |
5451 | test -z "$ac_c_werror_flag" || | |
5452 | test ! -s conftest.err | |
5453 | } && test -s conftest.$ac_objext; then | |
212380e3 | 5454 | ac_lo=$ac_mid; break |
5455 | else | |
5456 | echo "$as_me: failed program was:" >&5 | |
5457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5458 | ||
631ef239 | 5459 | ac_hi=`expr '(' $ac_mid ')' - 1` |
5460 | if test $ac_mid -le $ac_hi; then | |
5461 | ac_lo= ac_hi= | |
5462 | break | |
5463 | fi | |
5464 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 5465 | fi |
631ef239 | 5466 | |
5467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5468 | done |
5469 | else | |
5470 | echo "$as_me: failed program was:" >&5 | |
5471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5472 | ||
631ef239 | 5473 | ac_lo= ac_hi= |
212380e3 | 5474 | fi |
631ef239 | 5475 | |
5476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5477 | fi |
631ef239 | 5478 | |
5479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5480 | # Binary search between lo and hi bounds. |
5481 | while test "x$ac_lo" != "x$ac_hi"; do | |
5482 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5483 | cat >conftest.$ac_ext <<_ACEOF | |
5484 | /* confdefs.h. */ | |
5485 | _ACEOF | |
5486 | cat confdefs.h >>conftest.$ac_ext | |
5487 | cat >>conftest.$ac_ext <<_ACEOF | |
5488 | /* end confdefs.h. */ | |
5489 | $ac_includes_default | |
631ef239 | 5490 | typedef short ac__type_sizeof_; |
212380e3 | 5491 | int |
5492 | main () | |
5493 | { | |
631ef239 | 5494 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 | 5495 | test_array [0] = 0 |
5496 | ||
5497 | ; | |
5498 | return 0; | |
5499 | } | |
5500 | _ACEOF | |
5501 | rm -f conftest.$ac_objext | |
631ef239 | 5502 | if { (ac_try="$ac_compile" |
5503 | case "(($ac_try" in | |
5504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5505 | *) ac_try_echo=$ac_try;; | |
5506 | esac | |
5507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5508 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 5509 | ac_status=$? |
5510 | grep -v '^ *+' conftest.er1 >conftest.err | |
5511 | rm -f conftest.er1 | |
5512 | cat conftest.err >&5 | |
5513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 5514 | (exit $ac_status); } && { |
5515 | test -z "$ac_c_werror_flag" || | |
5516 | test ! -s conftest.err | |
5517 | } && test -s conftest.$ac_objext; then | |
212380e3 | 5518 | ac_hi=$ac_mid |
5519 | else | |
5520 | echo "$as_me: failed program was:" >&5 | |
5521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5522 | ||
631ef239 | 5523 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 5524 | fi |
631ef239 | 5525 | |
5526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5527 | done |
5528 | case $ac_lo in | |
5529 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
631ef239 | 5530 | '') if test "$ac_cv_type_short" = yes; then |
5531 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
212380e3 | 5532 | See \`config.log' for more details." >&5 |
631ef239 | 5533 | echo "$as_me: error: cannot compute sizeof (short) |
212380e3 | 5534 | See \`config.log' for more details." >&2;} |
631ef239 | 5535 | { (exit 77); exit 77; }; } |
5536 | else | |
5537 | ac_cv_sizeof_short=0 | |
5538 | fi ;; | |
212380e3 | 5539 | esac |
212380e3 | 5540 | else |
5541 | cat >conftest.$ac_ext <<_ACEOF | |
5542 | /* confdefs.h. */ | |
5543 | _ACEOF | |
5544 | cat confdefs.h >>conftest.$ac_ext | |
5545 | cat >>conftest.$ac_ext <<_ACEOF | |
5546 | /* end confdefs.h. */ | |
5547 | $ac_includes_default | |
631ef239 | 5548 | typedef short ac__type_sizeof_; |
5549 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5550 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 | 5551 | #include <stdio.h> |
5552 | #include <stdlib.h> | |
5553 | int | |
5554 | main () | |
5555 | { | |
5556 | ||
5557 | FILE *f = fopen ("conftest.val", "w"); | |
5558 | if (! f) | |
631ef239 | 5559 | return 1; |
5560 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 5561 | { |
631ef239 | 5562 | long int i = longval (); |
5563 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5564 | return 1; | |
212380e3 | 5565 | fprintf (f, "%ld\n", i); |
5566 | } | |
5567 | else | |
5568 | { | |
631ef239 | 5569 | unsigned long int i = ulongval (); |
5570 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5571 | return 1; | |
212380e3 | 5572 | fprintf (f, "%lu\n", i); |
5573 | } | |
631ef239 | 5574 | return ferror (f) || fclose (f) != 0; |
212380e3 | 5575 | |
5576 | ; | |
5577 | return 0; | |
5578 | } | |
5579 | _ACEOF | |
5580 | rm -f conftest$ac_exeext | |
631ef239 | 5581 | if { (ac_try="$ac_link" |
5582 | case "(($ac_try" in | |
5583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5584 | *) ac_try_echo=$ac_try;; | |
5585 | esac | |
5586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5587 | (eval "$ac_link") 2>&5 | |
212380e3 | 5588 | ac_status=$? |
5589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5590 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 | 5591 | { (case "(($ac_try" in |
5592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5593 | *) ac_try_echo=$ac_try;; | |
5594 | esac | |
5595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5596 | (eval "$ac_try") 2>&5 | |
212380e3 | 5597 | ac_status=$? |
5598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5599 | (exit $ac_status); }; }; then | |
5600 | ac_cv_sizeof_short=`cat conftest.val` | |
5601 | else | |
5602 | echo "$as_me: program exited with status $ac_status" >&5 | |
5603 | echo "$as_me: failed program was:" >&5 | |
5604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5605 | ||
5606 | ( exit $ac_status ) | |
631ef239 | 5607 | if test "$ac_cv_type_short" = yes; then |
5608 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
212380e3 | 5609 | See \`config.log' for more details." >&5 |
631ef239 | 5610 | echo "$as_me: error: cannot compute sizeof (short) |
212380e3 | 5611 | See \`config.log' for more details." >&2;} |
631ef239 | 5612 | { (exit 77); exit 77; }; } |
5613 | else | |
5614 | ac_cv_sizeof_short=0 | |
5615 | fi | |
212380e3 | 5616 | fi |
631ef239 | 5617 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5618 | fi |
5619 | rm -f conftest.val | |
212380e3 | 5620 | fi |
631ef239 | 5621 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
5622 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } | |
5623 | ||
5624 | ||
5625 | ||
212380e3 | 5626 | cat >>confdefs.h <<_ACEOF |
5627 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
5628 | _ACEOF | |
5629 | ||
5630 | ||
631ef239 | 5631 | { echo "$as_me:$LINENO: checking for int" >&5 |
5632 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | |
212380e3 | 5633 | if test "${ac_cv_type_int+set}" = set; then |
5634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5635 | else | |
5636 | cat >conftest.$ac_ext <<_ACEOF | |
5637 | /* confdefs.h. */ | |
5638 | _ACEOF | |
5639 | cat confdefs.h >>conftest.$ac_ext | |
5640 | cat >>conftest.$ac_ext <<_ACEOF | |
5641 | /* end confdefs.h. */ | |
5642 | $ac_includes_default | |
631ef239 | 5643 | typedef int ac__type_new_; |
212380e3 | 5644 | int |
5645 | main () | |
5646 | { | |
631ef239 | 5647 | if ((ac__type_new_ *) 0) |
212380e3 | 5648 | return 0; |
631ef239 | 5649 | if (sizeof (ac__type_new_)) |
212380e3 | 5650 | return 0; |
5651 | ; | |
5652 | return 0; | |
5653 | } | |
5654 | _ACEOF | |
5655 | rm -f conftest.$ac_objext | |
631ef239 | 5656 | if { (ac_try="$ac_compile" |
5657 | case "(($ac_try" in | |
5658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5659 | *) ac_try_echo=$ac_try;; | |
5660 | esac | |
5661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5662 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 5663 | ac_status=$? |
5664 | grep -v '^ *+' conftest.er1 >conftest.err | |
5665 | rm -f conftest.er1 | |
5666 | cat conftest.err >&5 | |
5667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 5668 | (exit $ac_status); } && { |
5669 | test -z "$ac_c_werror_flag" || | |
5670 | test ! -s conftest.err | |
5671 | } && test -s conftest.$ac_objext; then | |
212380e3 | 5672 | ac_cv_type_int=yes |
5673 | else | |
5674 | echo "$as_me: failed program was:" >&5 | |
5675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5676 | ||
631ef239 | 5677 | ac_cv_type_int=no |
212380e3 | 5678 | fi |
631ef239 | 5679 | |
5680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5681 | fi |
631ef239 | 5682 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
5683 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | |
212380e3 | 5684 | |
631ef239 | 5685 | # The cast to long int works around a bug in the HP C Compiler |
5686 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5687 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5688 | # This bug is HP SR number 8606223364. | |
5689 | { echo "$as_me:$LINENO: checking size of int" >&5 | |
5690 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | |
212380e3 | 5691 | if test "${ac_cv_sizeof_int+set}" = set; then |
5692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5693 | else | |
212380e3 | 5694 | if test "$cross_compiling" = yes; then |
5695 | # Depending upon the size, compute the lo and hi bounds. | |
5696 | cat >conftest.$ac_ext <<_ACEOF | |
5697 | /* confdefs.h. */ | |
5698 | _ACEOF | |
5699 | cat confdefs.h >>conftest.$ac_ext | |
5700 | cat >>conftest.$ac_ext <<_ACEOF | |
5701 | /* end confdefs.h. */ | |
5702 | $ac_includes_default | |
631ef239 | 5703 | typedef int ac__type_sizeof_; |
212380e3 | 5704 | int |
5705 | main () | |
5706 | { | |
631ef239 | 5707 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 | 5708 | test_array [0] = 0 |
5709 | ||
5710 | ; | |
5711 | return 0; | |
5712 | } | |
5713 | _ACEOF | |
5714 | rm -f conftest.$ac_objext | |
631ef239 | 5715 | if { (ac_try="$ac_compile" |
5716 | case "(($ac_try" in | |
5717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5718 | *) ac_try_echo=$ac_try;; | |
5719 | esac | |
5720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5721 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 5722 | ac_status=$? |
5723 | grep -v '^ *+' conftest.er1 >conftest.err | |
5724 | rm -f conftest.er1 | |
5725 | cat conftest.err >&5 | |
5726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 5727 | (exit $ac_status); } && { |
5728 | test -z "$ac_c_werror_flag" || | |
5729 | test ! -s conftest.err | |
5730 | } && test -s conftest.$ac_objext; then | |
212380e3 | 5731 | ac_lo=0 ac_mid=0 |
5732 | while :; do | |
5733 | cat >conftest.$ac_ext <<_ACEOF | |
5734 | /* confdefs.h. */ | |
5735 | _ACEOF | |
5736 | cat confdefs.h >>conftest.$ac_ext | |
5737 | cat >>conftest.$ac_ext <<_ACEOF | |
5738 | /* end confdefs.h. */ | |
5739 | $ac_includes_default | |
631ef239 | 5740 | typedef int ac__type_sizeof_; |
212380e3 | 5741 | int |
5742 | main () | |
5743 | { | |
631ef239 | 5744 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 | 5745 | test_array [0] = 0 |
5746 | ||
5747 | ; | |
5748 | return 0; | |
5749 | } | |
5750 | _ACEOF | |
5751 | rm -f conftest.$ac_objext | |
631ef239 | 5752 | if { (ac_try="$ac_compile" |
5753 | case "(($ac_try" in | |
5754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5755 | *) ac_try_echo=$ac_try;; | |
5756 | esac | |
5757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5758 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 5759 | ac_status=$? |
5760 | grep -v '^ *+' conftest.er1 >conftest.err | |
5761 | rm -f conftest.er1 | |
5762 | cat conftest.err >&5 | |
5763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 5764 | (exit $ac_status); } && { |
5765 | test -z "$ac_c_werror_flag" || | |
5766 | test ! -s conftest.err | |
5767 | } && test -s conftest.$ac_objext; then | |
212380e3 | 5768 | ac_hi=$ac_mid; break |
5769 | else | |
5770 | echo "$as_me: failed program was:" >&5 | |
5771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5772 | ||
631ef239 | 5773 | ac_lo=`expr $ac_mid + 1` |
5774 | if test $ac_lo -le $ac_mid; then | |
5775 | ac_lo= ac_hi= | |
5776 | break | |
5777 | fi | |
5778 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 5779 | fi |
631ef239 | 5780 | |
5781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5782 | done |
5783 | else | |
5784 | echo "$as_me: failed program was:" >&5 | |
5785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5786 | ||
631ef239 | 5787 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 | 5788 | /* confdefs.h. */ |
5789 | _ACEOF | |
5790 | cat confdefs.h >>conftest.$ac_ext | |
5791 | cat >>conftest.$ac_ext <<_ACEOF | |
5792 | /* end confdefs.h. */ | |
5793 | $ac_includes_default | |
631ef239 | 5794 | typedef int ac__type_sizeof_; |
212380e3 | 5795 | int |
5796 | main () | |
5797 | { | |
631ef239 | 5798 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 | 5799 | test_array [0] = 0 |
5800 | ||
5801 | ; | |
5802 | return 0; | |
5803 | } | |
5804 | _ACEOF | |
5805 | rm -f conftest.$ac_objext | |
631ef239 | 5806 | if { (ac_try="$ac_compile" |
5807 | case "(($ac_try" in | |
5808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5809 | *) ac_try_echo=$ac_try;; | |
5810 | esac | |
5811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5812 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 5813 | ac_status=$? |
5814 | grep -v '^ *+' conftest.er1 >conftest.err | |
5815 | rm -f conftest.er1 | |
5816 | cat conftest.err >&5 | |
5817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 5818 | (exit $ac_status); } && { |
5819 | test -z "$ac_c_werror_flag" || | |
5820 | test ! -s conftest.err | |
5821 | } && test -s conftest.$ac_objext; then | |
212380e3 | 5822 | ac_hi=-1 ac_mid=-1 |
5823 | while :; do | |
5824 | cat >conftest.$ac_ext <<_ACEOF | |
5825 | /* confdefs.h. */ | |
5826 | _ACEOF | |
5827 | cat confdefs.h >>conftest.$ac_ext | |
5828 | cat >>conftest.$ac_ext <<_ACEOF | |
5829 | /* end confdefs.h. */ | |
5830 | $ac_includes_default | |
631ef239 | 5831 | typedef int ac__type_sizeof_; |
212380e3 | 5832 | int |
5833 | main () | |
5834 | { | |
631ef239 | 5835 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 | 5836 | test_array [0] = 0 |
5837 | ||
5838 | ; | |
5839 | return 0; | |
5840 | } | |
5841 | _ACEOF | |
5842 | rm -f conftest.$ac_objext | |
631ef239 | 5843 | if { (ac_try="$ac_compile" |
5844 | case "(($ac_try" in | |
5845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5846 | *) ac_try_echo=$ac_try;; | |
5847 | esac | |
5848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5849 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 5850 | ac_status=$? |
5851 | grep -v '^ *+' conftest.er1 >conftest.err | |
5852 | rm -f conftest.er1 | |
5853 | cat conftest.err >&5 | |
5854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 5855 | (exit $ac_status); } && { |
5856 | test -z "$ac_c_werror_flag" || | |
5857 | test ! -s conftest.err | |
5858 | } && test -s conftest.$ac_objext; then | |
212380e3 | 5859 | ac_lo=$ac_mid; break |
5860 | else | |
5861 | echo "$as_me: failed program was:" >&5 | |
5862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5863 | ||
631ef239 | 5864 | ac_hi=`expr '(' $ac_mid ')' - 1` |
5865 | if test $ac_mid -le $ac_hi; then | |
5866 | ac_lo= ac_hi= | |
5867 | break | |
5868 | fi | |
5869 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 5870 | fi |
631ef239 | 5871 | |
5872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5873 | done |
5874 | else | |
5875 | echo "$as_me: failed program was:" >&5 | |
5876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5877 | ||
631ef239 | 5878 | ac_lo= ac_hi= |
212380e3 | 5879 | fi |
631ef239 | 5880 | |
5881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5882 | fi |
631ef239 | 5883 | |
5884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5885 | # Binary search between lo and hi bounds. |
5886 | while test "x$ac_lo" != "x$ac_hi"; do | |
5887 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5888 | cat >conftest.$ac_ext <<_ACEOF | |
5889 | /* confdefs.h. */ | |
5890 | _ACEOF | |
5891 | cat confdefs.h >>conftest.$ac_ext | |
5892 | cat >>conftest.$ac_ext <<_ACEOF | |
5893 | /* end confdefs.h. */ | |
5894 | $ac_includes_default | |
631ef239 | 5895 | typedef int ac__type_sizeof_; |
212380e3 | 5896 | int |
5897 | main () | |
5898 | { | |
631ef239 | 5899 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 | 5900 | test_array [0] = 0 |
5901 | ||
5902 | ; | |
5903 | return 0; | |
5904 | } | |
5905 | _ACEOF | |
5906 | rm -f conftest.$ac_objext | |
631ef239 | 5907 | if { (ac_try="$ac_compile" |
5908 | case "(($ac_try" in | |
5909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5910 | *) ac_try_echo=$ac_try;; | |
5911 | esac | |
5912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5913 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 5914 | ac_status=$? |
5915 | grep -v '^ *+' conftest.er1 >conftest.err | |
5916 | rm -f conftest.er1 | |
5917 | cat conftest.err >&5 | |
5918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 5919 | (exit $ac_status); } && { |
5920 | test -z "$ac_c_werror_flag" || | |
5921 | test ! -s conftest.err | |
5922 | } && test -s conftest.$ac_objext; then | |
212380e3 | 5923 | ac_hi=$ac_mid |
5924 | else | |
5925 | echo "$as_me: failed program was:" >&5 | |
5926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5927 | ||
631ef239 | 5928 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 5929 | fi |
631ef239 | 5930 | |
5931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5932 | done |
5933 | case $ac_lo in | |
5934 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
631ef239 | 5935 | '') if test "$ac_cv_type_int" = yes; then |
5936 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
212380e3 | 5937 | See \`config.log' for more details." >&5 |
631ef239 | 5938 | echo "$as_me: error: cannot compute sizeof (int) |
212380e3 | 5939 | See \`config.log' for more details." >&2;} |
631ef239 | 5940 | { (exit 77); exit 77; }; } |
5941 | else | |
5942 | ac_cv_sizeof_int=0 | |
5943 | fi ;; | |
212380e3 | 5944 | esac |
212380e3 | 5945 | else |
5946 | cat >conftest.$ac_ext <<_ACEOF | |
5947 | /* confdefs.h. */ | |
5948 | _ACEOF | |
5949 | cat confdefs.h >>conftest.$ac_ext | |
5950 | cat >>conftest.$ac_ext <<_ACEOF | |
5951 | /* end confdefs.h. */ | |
5952 | $ac_includes_default | |
631ef239 | 5953 | typedef int ac__type_sizeof_; |
5954 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5955 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 | 5956 | #include <stdio.h> |
5957 | #include <stdlib.h> | |
5958 | int | |
5959 | main () | |
5960 | { | |
5961 | ||
5962 | FILE *f = fopen ("conftest.val", "w"); | |
5963 | if (! f) | |
631ef239 | 5964 | return 1; |
5965 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 5966 | { |
631ef239 | 5967 | long int i = longval (); |
5968 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5969 | return 1; | |
212380e3 | 5970 | fprintf (f, "%ld\n", i); |
5971 | } | |
5972 | else | |
5973 | { | |
631ef239 | 5974 | unsigned long int i = ulongval (); |
5975 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5976 | return 1; | |
212380e3 | 5977 | fprintf (f, "%lu\n", i); |
5978 | } | |
631ef239 | 5979 | return ferror (f) || fclose (f) != 0; |
212380e3 | 5980 | |
5981 | ; | |
5982 | return 0; | |
5983 | } | |
5984 | _ACEOF | |
5985 | rm -f conftest$ac_exeext | |
631ef239 | 5986 | if { (ac_try="$ac_link" |
5987 | case "(($ac_try" in | |
5988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5989 | *) ac_try_echo=$ac_try;; | |
5990 | esac | |
5991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5992 | (eval "$ac_link") 2>&5 | |
212380e3 | 5993 | ac_status=$? |
5994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5995 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 | 5996 | { (case "(($ac_try" in |
5997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5998 | *) ac_try_echo=$ac_try;; | |
5999 | esac | |
6000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6001 | (eval "$ac_try") 2>&5 | |
212380e3 | 6002 | ac_status=$? |
6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6004 | (exit $ac_status); }; }; then | |
6005 | ac_cv_sizeof_int=`cat conftest.val` | |
6006 | else | |
6007 | echo "$as_me: program exited with status $ac_status" >&5 | |
6008 | echo "$as_me: failed program was:" >&5 | |
6009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6010 | ||
6011 | ( exit $ac_status ) | |
631ef239 | 6012 | if test "$ac_cv_type_int" = yes; then |
6013 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
212380e3 | 6014 | See \`config.log' for more details." >&5 |
631ef239 | 6015 | echo "$as_me: error: cannot compute sizeof (int) |
212380e3 | 6016 | See \`config.log' for more details." >&2;} |
631ef239 | 6017 | { (exit 77); exit 77; }; } |
6018 | else | |
6019 | ac_cv_sizeof_int=0 | |
6020 | fi | |
212380e3 | 6021 | fi |
631ef239 | 6022 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 6023 | fi |
6024 | rm -f conftest.val | |
212380e3 | 6025 | fi |
631ef239 | 6026 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
6027 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | |
6028 | ||
6029 | ||
6030 | ||
212380e3 | 6031 | cat >>confdefs.h <<_ACEOF |
6032 | #define SIZEOF_INT $ac_cv_sizeof_int | |
6033 | _ACEOF | |
6034 | ||
6035 | ||
631ef239 | 6036 | { echo "$as_me:$LINENO: checking for long" >&5 |
6037 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } | |
212380e3 | 6038 | if test "${ac_cv_type_long+set}" = set; then |
6039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6040 | else | |
6041 | cat >conftest.$ac_ext <<_ACEOF | |
6042 | /* confdefs.h. */ | |
6043 | _ACEOF | |
6044 | cat confdefs.h >>conftest.$ac_ext | |
6045 | cat >>conftest.$ac_ext <<_ACEOF | |
6046 | /* end confdefs.h. */ | |
6047 | $ac_includes_default | |
631ef239 | 6048 | typedef long ac__type_new_; |
212380e3 | 6049 | int |
6050 | main () | |
6051 | { | |
631ef239 | 6052 | if ((ac__type_new_ *) 0) |
212380e3 | 6053 | return 0; |
631ef239 | 6054 | if (sizeof (ac__type_new_)) |
212380e3 | 6055 | return 0; |
6056 | ; | |
6057 | return 0; | |
6058 | } | |
6059 | _ACEOF | |
6060 | rm -f conftest.$ac_objext | |
631ef239 | 6061 | if { (ac_try="$ac_compile" |
6062 | case "(($ac_try" in | |
6063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6064 | *) ac_try_echo=$ac_try;; | |
6065 | esac | |
6066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6067 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 6068 | ac_status=$? |
6069 | grep -v '^ *+' conftest.er1 >conftest.err | |
6070 | rm -f conftest.er1 | |
6071 | cat conftest.err >&5 | |
6072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 6073 | (exit $ac_status); } && { |
6074 | test -z "$ac_c_werror_flag" || | |
6075 | test ! -s conftest.err | |
6076 | } && test -s conftest.$ac_objext; then | |
212380e3 | 6077 | ac_cv_type_long=yes |
6078 | else | |
6079 | echo "$as_me: failed program was:" >&5 | |
6080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6081 | ||
631ef239 | 6082 | ac_cv_type_long=no |
212380e3 | 6083 | fi |
631ef239 | 6084 | |
6085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6086 | fi |
631ef239 | 6087 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
6088 | echo "${ECHO_T}$ac_cv_type_long" >&6; } | |
212380e3 | 6089 | |
631ef239 | 6090 | # The cast to long int works around a bug in the HP C Compiler |
6091 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6092 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6093 | # This bug is HP SR number 8606223364. | |
6094 | { echo "$as_me:$LINENO: checking size of long" >&5 | |
6095 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } | |
212380e3 | 6096 | if test "${ac_cv_sizeof_long+set}" = set; then |
6097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6098 | else | |
212380e3 | 6099 | if test "$cross_compiling" = yes; then |
6100 | # Depending upon the size, compute the lo and hi bounds. | |
6101 | cat >conftest.$ac_ext <<_ACEOF | |
6102 | /* confdefs.h. */ | |
6103 | _ACEOF | |
6104 | cat confdefs.h >>conftest.$ac_ext | |
6105 | cat >>conftest.$ac_ext <<_ACEOF | |
6106 | /* end confdefs.h. */ | |
6107 | $ac_includes_default | |
631ef239 | 6108 | typedef long ac__type_sizeof_; |
212380e3 | 6109 | int |
6110 | main () | |
6111 | { | |
631ef239 | 6112 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 | 6113 | test_array [0] = 0 |
6114 | ||
6115 | ; | |
6116 | return 0; | |
6117 | } | |
6118 | _ACEOF | |
6119 | rm -f conftest.$ac_objext | |
631ef239 | 6120 | if { (ac_try="$ac_compile" |
6121 | case "(($ac_try" in | |
6122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6123 | *) ac_try_echo=$ac_try;; | |
6124 | esac | |
6125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6126 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 6127 | ac_status=$? |
6128 | grep -v '^ *+' conftest.er1 >conftest.err | |
6129 | rm -f conftest.er1 | |
6130 | cat conftest.err >&5 | |
6131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 6132 | (exit $ac_status); } && { |
6133 | test -z "$ac_c_werror_flag" || | |
6134 | test ! -s conftest.err | |
6135 | } && test -s conftest.$ac_objext; then | |
212380e3 | 6136 | ac_lo=0 ac_mid=0 |
6137 | while :; do | |
6138 | cat >conftest.$ac_ext <<_ACEOF | |
6139 | /* confdefs.h. */ | |
6140 | _ACEOF | |
6141 | cat confdefs.h >>conftest.$ac_ext | |
6142 | cat >>conftest.$ac_ext <<_ACEOF | |
6143 | /* end confdefs.h. */ | |
6144 | $ac_includes_default | |
631ef239 | 6145 | typedef long ac__type_sizeof_; |
212380e3 | 6146 | int |
6147 | main () | |
6148 | { | |
631ef239 | 6149 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 | 6150 | test_array [0] = 0 |
6151 | ||
6152 | ; | |
6153 | return 0; | |
6154 | } | |
6155 | _ACEOF | |
6156 | rm -f conftest.$ac_objext | |
631ef239 | 6157 | if { (ac_try="$ac_compile" |
6158 | case "(($ac_try" in | |
6159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6160 | *) ac_try_echo=$ac_try;; | |
6161 | esac | |
6162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6163 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 6164 | ac_status=$? |
6165 | grep -v '^ *+' conftest.er1 >conftest.err | |
6166 | rm -f conftest.er1 | |
6167 | cat conftest.err >&5 | |
6168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 6169 | (exit $ac_status); } && { |
6170 | test -z "$ac_c_werror_flag" || | |
6171 | test ! -s conftest.err | |
6172 | } && test -s conftest.$ac_objext; then | |
212380e3 | 6173 | ac_hi=$ac_mid; break |
6174 | else | |
6175 | echo "$as_me: failed program was:" >&5 | |
6176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6177 | ||
631ef239 | 6178 | ac_lo=`expr $ac_mid + 1` |
6179 | if test $ac_lo -le $ac_mid; then | |
6180 | ac_lo= ac_hi= | |
6181 | break | |
6182 | fi | |
6183 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 6184 | fi |
631ef239 | 6185 | |
6186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6187 | done |
6188 | else | |
6189 | echo "$as_me: failed program was:" >&5 | |
6190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6191 | ||
631ef239 | 6192 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 | 6193 | /* confdefs.h. */ |
6194 | _ACEOF | |
6195 | cat confdefs.h >>conftest.$ac_ext | |
6196 | cat >>conftest.$ac_ext <<_ACEOF | |
6197 | /* end confdefs.h. */ | |
6198 | $ac_includes_default | |
631ef239 | 6199 | typedef long ac__type_sizeof_; |
212380e3 | 6200 | int |
6201 | main () | |
6202 | { | |
631ef239 | 6203 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 | 6204 | test_array [0] = 0 |
6205 | ||
6206 | ; | |
6207 | return 0; | |
6208 | } | |
6209 | _ACEOF | |
6210 | rm -f conftest.$ac_objext | |
631ef239 | 6211 | if { (ac_try="$ac_compile" |
6212 | case "(($ac_try" in | |
6213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6214 | *) ac_try_echo=$ac_try;; | |
6215 | esac | |
6216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6217 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 6218 | ac_status=$? |
6219 | grep -v '^ *+' conftest.er1 >conftest.err | |
6220 | rm -f conftest.er1 | |
6221 | cat conftest.err >&5 | |
6222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 6223 | (exit $ac_status); } && { |
6224 | test -z "$ac_c_werror_flag" || | |
6225 | test ! -s conftest.err | |
6226 | } && test -s conftest.$ac_objext; then | |
212380e3 | 6227 | ac_hi=-1 ac_mid=-1 |
6228 | while :; do | |
6229 | cat >conftest.$ac_ext <<_ACEOF | |
6230 | /* confdefs.h. */ | |
6231 | _ACEOF | |
6232 | cat confdefs.h >>conftest.$ac_ext | |
6233 | cat >>conftest.$ac_ext <<_ACEOF | |
6234 | /* end confdefs.h. */ | |
6235 | $ac_includes_default | |
631ef239 | 6236 | typedef long ac__type_sizeof_; |
212380e3 | 6237 | int |
6238 | main () | |
6239 | { | |
631ef239 | 6240 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 | 6241 | test_array [0] = 0 |
6242 | ||
6243 | ; | |
6244 | return 0; | |
6245 | } | |
6246 | _ACEOF | |
6247 | rm -f conftest.$ac_objext | |
631ef239 | 6248 | if { (ac_try="$ac_compile" |
6249 | case "(($ac_try" in | |
6250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6251 | *) ac_try_echo=$ac_try;; | |
6252 | esac | |
6253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6254 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 6255 | ac_status=$? |
6256 | grep -v '^ *+' conftest.er1 >conftest.err | |
6257 | rm -f conftest.er1 | |
6258 | cat conftest.err >&5 | |
6259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 6260 | (exit $ac_status); } && { |
6261 | test -z "$ac_c_werror_flag" || | |
6262 | test ! -s conftest.err | |
6263 | } && test -s conftest.$ac_objext; then | |
212380e3 | 6264 | ac_lo=$ac_mid; break |
6265 | else | |
6266 | echo "$as_me: failed program was:" >&5 | |
6267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6268 | ||
631ef239 | 6269 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6270 | if test $ac_mid -le $ac_hi; then | |
6271 | ac_lo= ac_hi= | |
6272 | break | |
6273 | fi | |
6274 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 6275 | fi |
631ef239 | 6276 | |
6277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6278 | done |
6279 | else | |
6280 | echo "$as_me: failed program was:" >&5 | |
6281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6282 | ||
631ef239 | 6283 | ac_lo= ac_hi= |
212380e3 | 6284 | fi |
631ef239 | 6285 | |
6286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6287 | fi |
631ef239 | 6288 | |
6289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6290 | # Binary search between lo and hi bounds. |
6291 | while test "x$ac_lo" != "x$ac_hi"; do | |
6292 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6293 | cat >conftest.$ac_ext <<_ACEOF | |
6294 | /* confdefs.h. */ | |
6295 | _ACEOF | |
6296 | cat confdefs.h >>conftest.$ac_ext | |
6297 | cat >>conftest.$ac_ext <<_ACEOF | |
6298 | /* end confdefs.h. */ | |
6299 | $ac_includes_default | |
631ef239 | 6300 | typedef long ac__type_sizeof_; |
212380e3 | 6301 | int |
6302 | main () | |
6303 | { | |
631ef239 | 6304 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 | 6305 | test_array [0] = 0 |
6306 | ||
6307 | ; | |
6308 | return 0; | |
6309 | } | |
6310 | _ACEOF | |
6311 | rm -f conftest.$ac_objext | |
631ef239 | 6312 | if { (ac_try="$ac_compile" |
6313 | case "(($ac_try" in | |
6314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6315 | *) ac_try_echo=$ac_try;; | |
6316 | esac | |
6317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6318 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 6319 | ac_status=$? |
6320 | grep -v '^ *+' conftest.er1 >conftest.err | |
6321 | rm -f conftest.er1 | |
6322 | cat conftest.err >&5 | |
6323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 6324 | (exit $ac_status); } && { |
6325 | test -z "$ac_c_werror_flag" || | |
6326 | test ! -s conftest.err | |
6327 | } && test -s conftest.$ac_objext; then | |
212380e3 | 6328 | ac_hi=$ac_mid |
6329 | else | |
6330 | echo "$as_me: failed program was:" >&5 | |
6331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6332 | ||
631ef239 | 6333 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 6334 | fi |
631ef239 | 6335 | |
6336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6337 | done |
6338 | case $ac_lo in | |
6339 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
631ef239 | 6340 | '') if test "$ac_cv_type_long" = yes; then |
6341 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
212380e3 | 6342 | See \`config.log' for more details." >&5 |
631ef239 | 6343 | echo "$as_me: error: cannot compute sizeof (long) |
212380e3 | 6344 | See \`config.log' for more details." >&2;} |
631ef239 | 6345 | { (exit 77); exit 77; }; } |
6346 | else | |
6347 | ac_cv_sizeof_long=0 | |
6348 | fi ;; | |
212380e3 | 6349 | esac |
212380e3 | 6350 | else |
6351 | cat >conftest.$ac_ext <<_ACEOF | |
6352 | /* confdefs.h. */ | |
6353 | _ACEOF | |
6354 | cat confdefs.h >>conftest.$ac_ext | |
6355 | cat >>conftest.$ac_ext <<_ACEOF | |
6356 | /* end confdefs.h. */ | |
6357 | $ac_includes_default | |
631ef239 | 6358 | typedef long ac__type_sizeof_; |
6359 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6360 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 | 6361 | #include <stdio.h> |
6362 | #include <stdlib.h> | |
6363 | int | |
6364 | main () | |
6365 | { | |
6366 | ||
6367 | FILE *f = fopen ("conftest.val", "w"); | |
6368 | if (! f) | |
631ef239 | 6369 | return 1; |
6370 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 6371 | { |
631ef239 | 6372 | long int i = longval (); |
6373 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6374 | return 1; | |
212380e3 | 6375 | fprintf (f, "%ld\n", i); |
6376 | } | |
6377 | else | |
6378 | { | |
631ef239 | 6379 | unsigned long int i = ulongval (); |
6380 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6381 | return 1; | |
212380e3 | 6382 | fprintf (f, "%lu\n", i); |
6383 | } | |
631ef239 | 6384 | return ferror (f) || fclose (f) != 0; |
212380e3 | 6385 | |
6386 | ; | |
6387 | return 0; | |
6388 | } | |
6389 | _ACEOF | |
6390 | rm -f conftest$ac_exeext | |
631ef239 | 6391 | if { (ac_try="$ac_link" |
6392 | case "(($ac_try" in | |
6393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6394 | *) ac_try_echo=$ac_try;; | |
6395 | esac | |
6396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6397 | (eval "$ac_link") 2>&5 | |
212380e3 | 6398 | ac_status=$? |
6399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6400 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 | 6401 | { (case "(($ac_try" in |
6402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6403 | *) ac_try_echo=$ac_try;; | |
6404 | esac | |
6405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6406 | (eval "$ac_try") 2>&5 | |
212380e3 | 6407 | ac_status=$? |
6408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6409 | (exit $ac_status); }; }; then | |
6410 | ac_cv_sizeof_long=`cat conftest.val` | |
6411 | else | |
6412 | echo "$as_me: program exited with status $ac_status" >&5 | |
6413 | echo "$as_me: failed program was:" >&5 | |
6414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6415 | ||
6416 | ( exit $ac_status ) | |
631ef239 | 6417 | if test "$ac_cv_type_long" = yes; then |
6418 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
212380e3 | 6419 | See \`config.log' for more details." >&5 |
631ef239 | 6420 | echo "$as_me: error: cannot compute sizeof (long) |
212380e3 | 6421 | See \`config.log' for more details." >&2;} |
631ef239 | 6422 | { (exit 77); exit 77; }; } |
6423 | else | |
6424 | ac_cv_sizeof_long=0 | |
6425 | fi | |
212380e3 | 6426 | fi |
631ef239 | 6427 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 6428 | fi |
6429 | rm -f conftest.val | |
212380e3 | 6430 | fi |
631ef239 | 6431 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
6432 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } | |
6433 | ||
6434 | ||
6435 | ||
212380e3 | 6436 | cat >>confdefs.h <<_ACEOF |
6437 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
6438 | _ACEOF | |
6439 | ||
6440 | ||
631ef239 | 6441 | { echo "$as_me:$LINENO: checking for long long" >&5 |
6442 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | |
212380e3 | 6443 | if test "${ac_cv_type_long_long+set}" = set; then |
6444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6445 | else | |
6446 | cat >conftest.$ac_ext <<_ACEOF | |
6447 | /* confdefs.h. */ | |
6448 | _ACEOF | |
6449 | cat confdefs.h >>conftest.$ac_ext | |
6450 | cat >>conftest.$ac_ext <<_ACEOF | |
6451 | /* end confdefs.h. */ | |
6452 | $ac_includes_default | |
631ef239 | 6453 | typedef long long ac__type_new_; |
212380e3 | 6454 | int |
6455 | main () | |
6456 | { | |
631ef239 | 6457 | if ((ac__type_new_ *) 0) |
212380e3 | 6458 | return 0; |
631ef239 | 6459 | if (sizeof (ac__type_new_)) |
212380e3 | 6460 | return 0; |
6461 | ; | |
6462 | return 0; | |
6463 | } | |
6464 | _ACEOF | |
6465 | rm -f conftest.$ac_objext | |
631ef239 | 6466 | if { (ac_try="$ac_compile" |
6467 | case "(($ac_try" in | |
6468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6469 | *) ac_try_echo=$ac_try;; | |
6470 | esac | |
6471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6472 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 6473 | ac_status=$? |
6474 | grep -v '^ *+' conftest.er1 >conftest.err | |
6475 | rm -f conftest.er1 | |
6476 | cat conftest.err >&5 | |
6477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 6478 | (exit $ac_status); } && { |
6479 | test -z "$ac_c_werror_flag" || | |
6480 | test ! -s conftest.err | |
6481 | } && test -s conftest.$ac_objext; then | |
212380e3 | 6482 | ac_cv_type_long_long=yes |
6483 | else | |
6484 | echo "$as_me: failed program was:" >&5 | |
6485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6486 | ||
631ef239 | 6487 | ac_cv_type_long_long=no |
212380e3 | 6488 | fi |
631ef239 | 6489 | |
6490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6491 | fi |
631ef239 | 6492 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
6493 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | |
212380e3 | 6494 | |
631ef239 | 6495 | # The cast to long int works around a bug in the HP C Compiler |
6496 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6497 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6498 | # This bug is HP SR number 8606223364. | |
6499 | { echo "$as_me:$LINENO: checking size of long long" >&5 | |
6500 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } | |
212380e3 | 6501 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
6502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6503 | else | |
212380e3 | 6504 | if test "$cross_compiling" = yes; then |
6505 | # Depending upon the size, compute the lo and hi bounds. | |
6506 | cat >conftest.$ac_ext <<_ACEOF | |
6507 | /* confdefs.h. */ | |
6508 | _ACEOF | |
6509 | cat confdefs.h >>conftest.$ac_ext | |
6510 | cat >>conftest.$ac_ext <<_ACEOF | |
6511 | /* end confdefs.h. */ | |
6512 | $ac_includes_default | |
631ef239 | 6513 | typedef long long ac__type_sizeof_; |
212380e3 | 6514 | int |
6515 | main () | |
6516 | { | |
631ef239 | 6517 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 | 6518 | test_array [0] = 0 |
6519 | ||
6520 | ; | |
6521 | return 0; | |
6522 | } | |
6523 | _ACEOF | |
6524 | rm -f conftest.$ac_objext | |
631ef239 | 6525 | if { (ac_try="$ac_compile" |
6526 | case "(($ac_try" in | |
6527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6528 | *) ac_try_echo=$ac_try;; | |
6529 | esac | |
6530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6531 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 6532 | ac_status=$? |
6533 | grep -v '^ *+' conftest.er1 >conftest.err | |
6534 | rm -f conftest.er1 | |
6535 | cat conftest.err >&5 | |
6536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 6537 | (exit $ac_status); } && { |
6538 | test -z "$ac_c_werror_flag" || | |
6539 | test ! -s conftest.err | |
6540 | } && test -s conftest.$ac_objext; then | |
212380e3 | 6541 | ac_lo=0 ac_mid=0 |
6542 | while :; do | |
6543 | cat >conftest.$ac_ext <<_ACEOF | |
6544 | /* confdefs.h. */ | |
6545 | _ACEOF | |
6546 | cat confdefs.h >>conftest.$ac_ext | |
6547 | cat >>conftest.$ac_ext <<_ACEOF | |
6548 | /* end confdefs.h. */ | |
6549 | $ac_includes_default | |
631ef239 | 6550 | typedef long long ac__type_sizeof_; |
212380e3 | 6551 | int |
6552 | main () | |
6553 | { | |
631ef239 | 6554 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 | 6555 | test_array [0] = 0 |
6556 | ||
6557 | ; | |
6558 | return 0; | |
6559 | } | |
6560 | _ACEOF | |
6561 | rm -f conftest.$ac_objext | |
631ef239 | 6562 | if { (ac_try="$ac_compile" |
6563 | case "(($ac_try" in | |
6564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6565 | *) ac_try_echo=$ac_try;; | |
6566 | esac | |
6567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6568 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 6569 | ac_status=$? |
6570 | grep -v '^ *+' conftest.er1 >conftest.err | |
6571 | rm -f conftest.er1 | |
6572 | cat conftest.err >&5 | |
6573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 6574 | (exit $ac_status); } && { |
6575 | test -z "$ac_c_werror_flag" || | |
6576 | test ! -s conftest.err | |
6577 | } && test -s conftest.$ac_objext; then | |
212380e3 | 6578 | ac_hi=$ac_mid; break |
6579 | else | |
6580 | echo "$as_me: failed program was:" >&5 | |
6581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6582 | ||
631ef239 | 6583 | ac_lo=`expr $ac_mid + 1` |
6584 | if test $ac_lo -le $ac_mid; then | |
6585 | ac_lo= ac_hi= | |
6586 | break | |
6587 | fi | |
6588 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 6589 | fi |
631ef239 | 6590 | |
6591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6592 | done |
6593 | else | |
6594 | echo "$as_me: failed program was:" >&5 | |
6595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6596 | ||
631ef239 | 6597 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 | 6598 | /* confdefs.h. */ |
6599 | _ACEOF | |
6600 | cat confdefs.h >>conftest.$ac_ext | |
6601 | cat >>conftest.$ac_ext <<_ACEOF | |
6602 | /* end confdefs.h. */ | |
6603 | $ac_includes_default | |
631ef239 | 6604 | typedef long long ac__type_sizeof_; |
212380e3 | 6605 | int |
6606 | main () | |
6607 | { | |
631ef239 | 6608 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 | 6609 | test_array [0] = 0 |
6610 | ||
6611 | ; | |
6612 | return 0; | |
6613 | } | |
6614 | _ACEOF | |
6615 | rm -f conftest.$ac_objext | |
631ef239 | 6616 | if { (ac_try="$ac_compile" |
6617 | case "(($ac_try" in | |
6618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6619 | *) ac_try_echo=$ac_try;; | |
6620 | esac | |
6621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6622 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 6623 | ac_status=$? |
6624 | grep -v '^ *+' conftest.er1 >conftest.err | |
6625 | rm -f conftest.er1 | |
6626 | cat conftest.err >&5 | |
6627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 6628 | (exit $ac_status); } && { |
6629 | test -z "$ac_c_werror_flag" || | |
6630 | test ! -s conftest.err | |
6631 | } && test -s conftest.$ac_objext; then | |
212380e3 | 6632 | ac_hi=-1 ac_mid=-1 |
6633 | while :; do | |
6634 | cat >conftest.$ac_ext <<_ACEOF | |
6635 | /* confdefs.h. */ | |
6636 | _ACEOF | |
6637 | cat confdefs.h >>conftest.$ac_ext | |
6638 | cat >>conftest.$ac_ext <<_ACEOF | |
6639 | /* end confdefs.h. */ | |
6640 | $ac_includes_default | |
631ef239 | 6641 | typedef long long ac__type_sizeof_; |
212380e3 | 6642 | int |
6643 | main () | |
6644 | { | |
631ef239 | 6645 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 | 6646 | test_array [0] = 0 |
6647 | ||
6648 | ; | |
6649 | return 0; | |
6650 | } | |
6651 | _ACEOF | |
6652 | rm -f conftest.$ac_objext | |
631ef239 | 6653 | if { (ac_try="$ac_compile" |
6654 | case "(($ac_try" in | |
6655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6656 | *) ac_try_echo=$ac_try;; | |
6657 | esac | |
6658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6659 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 6660 | ac_status=$? |
6661 | grep -v '^ *+' conftest.er1 >conftest.err | |
6662 | rm -f conftest.er1 | |
6663 | cat conftest.err >&5 | |
6664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 6665 | (exit $ac_status); } && { |
6666 | test -z "$ac_c_werror_flag" || | |
6667 | test ! -s conftest.err | |
6668 | } && test -s conftest.$ac_objext; then | |
212380e3 | 6669 | ac_lo=$ac_mid; break |
6670 | else | |
6671 | echo "$as_me: failed program was:" >&5 | |
6672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6673 | ||
631ef239 | 6674 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6675 | if test $ac_mid -le $ac_hi; then | |
6676 | ac_lo= ac_hi= | |
6677 | break | |
6678 | fi | |
6679 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 6680 | fi |
631ef239 | 6681 | |
6682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6683 | done |
6684 | else | |
6685 | echo "$as_me: failed program was:" >&5 | |
6686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6687 | ||
631ef239 | 6688 | ac_lo= ac_hi= |
212380e3 | 6689 | fi |
631ef239 | 6690 | |
6691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6692 | fi |
631ef239 | 6693 | |
6694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6695 | # Binary search between lo and hi bounds. |
6696 | while test "x$ac_lo" != "x$ac_hi"; do | |
6697 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6698 | cat >conftest.$ac_ext <<_ACEOF | |
6699 | /* confdefs.h. */ | |
6700 | _ACEOF | |
6701 | cat confdefs.h >>conftest.$ac_ext | |
6702 | cat >>conftest.$ac_ext <<_ACEOF | |
6703 | /* end confdefs.h. */ | |
6704 | $ac_includes_default | |
631ef239 | 6705 | typedef long long ac__type_sizeof_; |
212380e3 | 6706 | int |
6707 | main () | |
6708 | { | |
631ef239 | 6709 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 | 6710 | test_array [0] = 0 |
6711 | ||
6712 | ; | |
6713 | return 0; | |
6714 | } | |
6715 | _ACEOF | |
6716 | rm -f conftest.$ac_objext | |
631ef239 | 6717 | if { (ac_try="$ac_compile" |
6718 | case "(($ac_try" in | |
6719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6720 | *) ac_try_echo=$ac_try;; | |
6721 | esac | |
6722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6723 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 6724 | ac_status=$? |
6725 | grep -v '^ *+' conftest.er1 >conftest.err | |
6726 | rm -f conftest.er1 | |
6727 | cat conftest.err >&5 | |
6728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 6729 | (exit $ac_status); } && { |
6730 | test -z "$ac_c_werror_flag" || | |
6731 | test ! -s conftest.err | |
6732 | } && test -s conftest.$ac_objext; then | |
212380e3 | 6733 | ac_hi=$ac_mid |
6734 | else | |
6735 | echo "$as_me: failed program was:" >&5 | |
6736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6737 | ||
631ef239 | 6738 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 6739 | fi |
631ef239 | 6740 | |
6741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6742 | done |
6743 | case $ac_lo in | |
6744 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
631ef239 | 6745 | '') if test "$ac_cv_type_long_long" = yes; then |
6746 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
212380e3 | 6747 | See \`config.log' for more details." >&5 |
631ef239 | 6748 | echo "$as_me: error: cannot compute sizeof (long long) |
212380e3 | 6749 | See \`config.log' for more details." >&2;} |
631ef239 | 6750 | { (exit 77); exit 77; }; } |
6751 | else | |
6752 | ac_cv_sizeof_long_long=0 | |
6753 | fi ;; | |
212380e3 | 6754 | esac |
212380e3 | 6755 | else |
6756 | cat >conftest.$ac_ext <<_ACEOF | |
6757 | /* confdefs.h. */ | |
6758 | _ACEOF | |
6759 | cat confdefs.h >>conftest.$ac_ext | |
6760 | cat >>conftest.$ac_ext <<_ACEOF | |
6761 | /* end confdefs.h. */ | |
6762 | $ac_includes_default | |
631ef239 | 6763 | typedef long long ac__type_sizeof_; |
6764 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6765 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 | 6766 | #include <stdio.h> |
6767 | #include <stdlib.h> | |
6768 | int | |
6769 | main () | |
6770 | { | |
6771 | ||
6772 | FILE *f = fopen ("conftest.val", "w"); | |
6773 | if (! f) | |
631ef239 | 6774 | return 1; |
6775 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 6776 | { |
631ef239 | 6777 | long int i = longval (); |
6778 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6779 | return 1; | |
212380e3 | 6780 | fprintf (f, "%ld\n", i); |
6781 | } | |
6782 | else | |
6783 | { | |
631ef239 | 6784 | unsigned long int i = ulongval (); |
6785 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6786 | return 1; | |
212380e3 | 6787 | fprintf (f, "%lu\n", i); |
6788 | } | |
631ef239 | 6789 | return ferror (f) || fclose (f) != 0; |
212380e3 | 6790 | |
6791 | ; | |
6792 | return 0; | |
6793 | } | |
6794 | _ACEOF | |
6795 | rm -f conftest$ac_exeext | |
631ef239 | 6796 | if { (ac_try="$ac_link" |
6797 | case "(($ac_try" in | |
6798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6799 | *) ac_try_echo=$ac_try;; | |
6800 | esac | |
6801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6802 | (eval "$ac_link") 2>&5 | |
212380e3 | 6803 | ac_status=$? |
6804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6805 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 | 6806 | { (case "(($ac_try" in |
6807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6808 | *) ac_try_echo=$ac_try;; | |
6809 | esac | |
6810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6811 | (eval "$ac_try") 2>&5 | |
212380e3 | 6812 | ac_status=$? |
6813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6814 | (exit $ac_status); }; }; then | |
6815 | ac_cv_sizeof_long_long=`cat conftest.val` | |
6816 | else | |
6817 | echo "$as_me: program exited with status $ac_status" >&5 | |
6818 | echo "$as_me: failed program was:" >&5 | |
6819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6820 | ||
6821 | ( exit $ac_status ) | |
631ef239 | 6822 | if test "$ac_cv_type_long_long" = yes; then |
6823 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
212380e3 | 6824 | See \`config.log' for more details." >&5 |
631ef239 | 6825 | echo "$as_me: error: cannot compute sizeof (long long) |
212380e3 | 6826 | See \`config.log' for more details." >&2;} |
631ef239 | 6827 | { (exit 77); exit 77; }; } |
6828 | else | |
6829 | ac_cv_sizeof_long_long=0 | |
6830 | fi | |
212380e3 | 6831 | fi |
631ef239 | 6832 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 6833 | fi |
6834 | rm -f conftest.val | |
212380e3 | 6835 | fi |
631ef239 | 6836 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
6837 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } | |
6838 | ||
6839 | ||
6840 | ||
212380e3 | 6841 | cat >>confdefs.h <<_ACEOF |
6842 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
6843 | _ACEOF | |
6844 | ||
6845 | ||
6846 | ||
6847 | ||
631ef239 | 6848 | { echo "$as_me:$LINENO: checking the system's memory page size" >&5 |
6849 | echo $ECHO_N "checking the system's memory page size... $ECHO_C" >&6; } | |
212380e3 | 6850 | pagesize="no" |
6851 | if test "$cross_compiling" = yes; then | |
6852 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
6853 | See \`config.log' for more details." >&5 | |
6854 | echo "$as_me: error: cannot run test program while cross compiling | |
6855 | See \`config.log' for more details." >&2;} | |
6856 | { (exit 1); exit 1; }; } | |
6857 | else | |
6858 | cat >conftest.$ac_ext <<_ACEOF | |
6859 | /* confdefs.h. */ | |
6860 | _ACEOF | |
6861 | cat confdefs.h >>conftest.$ac_ext | |
6862 | cat >>conftest.$ac_ext <<_ACEOF | |
6863 | /* end confdefs.h. */ | |
6864 | ||
6865 | #include <stdio.h> | |
6866 | #if HAVE_UNISTD_H | |
6867 | # include <unistd.h> | |
6868 | #endif | |
6869 | ||
6870 | int main(void) { | |
6871 | FILE *fp = fopen("conftest.malloc", "w"); | |
6872 | ||
6873 | if (fp != NULL) { | |
6874 | fprintf(fp, "%d\n", getpagesize()); | |
6875 | fclose(fp); | |
6876 | } else | |
6877 | exit(1); | |
6878 | exit(0); | |
6879 | } | |
6880 | _ACEOF | |
6881 | rm -f conftest$ac_exeext | |
631ef239 | 6882 | if { (ac_try="$ac_link" |
6883 | case "(($ac_try" in | |
6884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6885 | *) ac_try_echo=$ac_try;; | |
6886 | esac | |
6887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6888 | (eval "$ac_link") 2>&5 | |
212380e3 | 6889 | ac_status=$? |
6890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6891 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 | 6892 | { (case "(($ac_try" in |
6893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6894 | *) ac_try_echo=$ac_try;; | |
6895 | esac | |
6896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6897 | (eval "$ac_try") 2>&5 | |
212380e3 | 6898 | ac_status=$? |
6899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6900 | (exit $ac_status); }; }; then | |
6901 | ||
6902 | if test -f "conftest.malloc" ; then | |
6903 | pagesize=`cat conftest.malloc` | |
6904 | fi | |
6905 | ||
6906 | else | |
6907 | echo "$as_me: program exited with status $ac_status" >&5 | |
6908 | echo "$as_me: failed program was:" >&5 | |
6909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6910 | ||
6911 | fi | |
631ef239 | 6912 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 6913 | fi |
631ef239 | 6914 | |
6915 | ||
212380e3 | 6916 | if test "$pagesize" != "no" ; then |
631ef239 | 6917 | { echo "$as_me:$LINENO: result: $pagesize" >&5 |
6918 | echo "${ECHO_T}$pagesize" >&6; } | |
212380e3 | 6919 | else |
6920 | if test "$ac_cv_sizeof_int" = "4" ; then | |
6921 | pagesize=4096 | |
6922 | else | |
6923 | pagesize=8192 | |
6924 | fi | |
631ef239 | 6925 | { echo "$as_me:$LINENO: result: $pagesize (guessing)" >&5 |
6926 | echo "${ECHO_T}$pagesize (guessing)" >&6; } | |
212380e3 | 6927 | fi |
6928 | ||
6929 | cat >>confdefs.h <<_ACEOF | |
6930 | #define MALLOC_PAGESIZE $pagesize | |
6931 | _ACEOF | |
6932 | ||
6933 | ||
6934 | ||
631ef239 | 6935 | { echo "$as_me:$LINENO: checking for library containing socket" >&5 |
6936 | echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } | |
212380e3 | 6937 | if test "${ac_cv_search_socket+set}" = set; then |
6938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6939 | else | |
6940 | ac_func_search_save_LIBS=$LIBS | |
212380e3 | 6941 | cat >conftest.$ac_ext <<_ACEOF |
6942 | /* confdefs.h. */ | |
6943 | _ACEOF | |
6944 | cat confdefs.h >>conftest.$ac_ext | |
6945 | cat >>conftest.$ac_ext <<_ACEOF | |
6946 | /* end confdefs.h. */ | |
6947 | ||
631ef239 | 6948 | /* Override any GCC internal prototype to avoid an error. |
6949 | Use char because int might match the return type of a GCC | |
6950 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 6951 | #ifdef __cplusplus |
6952 | extern "C" | |
6953 | #endif | |
212380e3 | 6954 | char socket (); |
6955 | int | |
6956 | main () | |
6957 | { | |
631ef239 | 6958 | return socket (); |
212380e3 | 6959 | ; |
6960 | return 0; | |
6961 | } | |
6962 | _ACEOF | |
631ef239 | 6963 | for ac_lib in '' socket; do |
6964 | if test -z "$ac_lib"; then | |
6965 | ac_res="none required" | |
6966 | else | |
6967 | ac_res=-l$ac_lib | |
6968 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6969 | fi | |
6970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6971 | if { (ac_try="$ac_link" | |
6972 | case "(($ac_try" in | |
6973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6974 | *) ac_try_echo=$ac_try;; | |
6975 | esac | |
6976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6977 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 6978 | ac_status=$? |
6979 | grep -v '^ *+' conftest.er1 >conftest.err | |
6980 | rm -f conftest.er1 | |
6981 | cat conftest.err >&5 | |
6982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 6983 | (exit $ac_status); } && { |
6984 | test -z "$ac_c_werror_flag" || | |
6985 | test ! -s conftest.err | |
6986 | } && test -s conftest$ac_exeext && | |
6987 | $as_test_x conftest$ac_exeext; then | |
6988 | ac_cv_search_socket=$ac_res | |
212380e3 | 6989 | else |
6990 | echo "$as_me: failed program was:" >&5 | |
6991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6992 | ||
631ef239 | 6993 | |
212380e3 | 6994 | fi |
631ef239 | 6995 | |
6996 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6997 | conftest$ac_exeext | |
6998 | if test "${ac_cv_search_socket+set}" = set; then | |
6999 | break | |
7000 | fi | |
7001 | done | |
7002 | if test "${ac_cv_search_socket+set}" = set; then | |
7003 | : | |
7004 | else | |
7005 | ac_cv_search_socket=no | |
7006 | fi | |
7007 | rm conftest.$ac_ext | |
7008 | LIBS=$ac_func_search_save_LIBS | |
7009 | fi | |
7010 | { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 | |
7011 | echo "${ECHO_T}$ac_cv_search_socket" >&6; } | |
7012 | ac_res=$ac_cv_search_socket | |
7013 | if test "$ac_res" != no; then | |
7014 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7015 | ||
7016 | else | |
7017 | { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5 | |
7018 | echo "$as_me: error: You have no socket()! Aborting." >&2;} | |
7019 | { (exit 1); exit 1; }; } | |
7020 | fi | |
7021 | ||
7022 | ||
7023 | if test x"$SUN" = xyes; then | |
7024 | { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5 | |
7025 | echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; } | |
7026 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
7027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7028 | else | |
7029 | ac_func_search_save_LIBS=$LIBS | |
7030 | cat >conftest.$ac_ext <<_ACEOF | |
212380e3 | 7031 | /* confdefs.h. */ |
7032 | _ACEOF | |
7033 | cat confdefs.h >>conftest.$ac_ext | |
7034 | cat >>conftest.$ac_ext <<_ACEOF | |
7035 | /* end confdefs.h. */ | |
7036 | ||
631ef239 | 7037 | /* Override any GCC internal prototype to avoid an error. |
7038 | Use char because int might match the return type of a GCC | |
7039 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 7040 | #ifdef __cplusplus |
7041 | extern "C" | |
7042 | #endif | |
631ef239 | 7043 | char inet_ntoa (); |
212380e3 | 7044 | int |
7045 | main () | |
7046 | { | |
631ef239 | 7047 | return inet_ntoa (); |
212380e3 | 7048 | ; |
7049 | return 0; | |
7050 | } | |
7051 | _ACEOF | |
631ef239 | 7052 | for ac_lib in '' nsl; do |
7053 | if test -z "$ac_lib"; then | |
7054 | ac_res="none required" | |
7055 | else | |
7056 | ac_res=-l$ac_lib | |
7057 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7058 | fi | |
7059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7060 | if { (ac_try="$ac_link" | |
7061 | case "(($ac_try" in | |
7062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7063 | *) ac_try_echo=$ac_try;; | |
7064 | esac | |
7065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7066 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 7067 | ac_status=$? |
7068 | grep -v '^ *+' conftest.er1 >conftest.err | |
7069 | rm -f conftest.er1 | |
7070 | cat conftest.err >&5 | |
7071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 7072 | (exit $ac_status); } && { |
7073 | test -z "$ac_c_werror_flag" || | |
7074 | test ! -s conftest.err | |
7075 | } && test -s conftest$ac_exeext && | |
7076 | $as_test_x conftest$ac_exeext; then | |
7077 | ac_cv_search_inet_ntoa=$ac_res | |
212380e3 | 7078 | else |
7079 | echo "$as_me: failed program was:" >&5 | |
7080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7081 | ||
631ef239 | 7082 | |
212380e3 | 7083 | fi |
631ef239 | 7084 | |
7085 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7086 | conftest$ac_exeext | |
7087 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
7088 | break | |
7089 | fi | |
7090 | done | |
7091 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
7092 | : | |
7093 | else | |
7094 | ac_cv_search_inet_ntoa=no | |
212380e3 | 7095 | fi |
631ef239 | 7096 | rm conftest.$ac_ext |
212380e3 | 7097 | LIBS=$ac_func_search_save_LIBS |
7098 | fi | |
631ef239 | 7099 | { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5 |
7100 | echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; } | |
7101 | ac_res=$ac_cv_search_inet_ntoa | |
7102 | if test "$ac_res" != no; then | |
7103 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 7104 | |
7105 | else | |
631ef239 | 7106 | { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5 |
7107 | echo "$as_me: error: libnsl not found! Aborting." >&2;} | |
212380e3 | 7108 | { (exit 1); exit 1; }; } |
7109 | fi | |
7110 | ||
631ef239 | 7111 | fi |
212380e3 | 7112 | |
631ef239 | 7113 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
7114 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } | |
7115 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then | |
212380e3 | 7116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7117 | else | |
631ef239 | 7118 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 | 7119 | /* confdefs.h. */ |
7120 | _ACEOF | |
7121 | cat confdefs.h >>conftest.$ac_ext | |
7122 | cat >>conftest.$ac_ext <<_ACEOF | |
7123 | /* end confdefs.h. */ | |
631ef239 | 7124 | #include <sys/types.h> |
7125 | #include <sys/socket.h> | |
7126 | ||
212380e3 | 7127 | |
212380e3 | 7128 | int |
7129 | main () | |
7130 | { | |
631ef239 | 7131 | static struct sockaddr ac_aggr; |
7132 | if (ac_aggr.sa_len) | |
7133 | return 0; | |
212380e3 | 7134 | ; |
7135 | return 0; | |
7136 | } | |
7137 | _ACEOF | |
7138 | rm -f conftest.$ac_objext | |
631ef239 | 7139 | if { (ac_try="$ac_compile" |
7140 | case "(($ac_try" in | |
7141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7142 | *) ac_try_echo=$ac_try;; | |
7143 | esac | |
7144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7145 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 7146 | ac_status=$? |
7147 | grep -v '^ *+' conftest.er1 >conftest.err | |
7148 | rm -f conftest.er1 | |
7149 | cat conftest.err >&5 | |
7150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 7151 | (exit $ac_status); } && { |
7152 | test -z "$ac_c_werror_flag" || | |
7153 | test ! -s conftest.err | |
7154 | } && test -s conftest.$ac_objext; then | |
212380e3 | 7155 | ac_cv_member_struct_sockaddr_sa_len=yes |
7156 | else | |
7157 | echo "$as_me: failed program was:" >&5 | |
7158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7159 | ||
631ef239 | 7160 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 | 7161 | /* confdefs.h. */ |
7162 | _ACEOF | |
7163 | cat confdefs.h >>conftest.$ac_ext | |
7164 | cat >>conftest.$ac_ext <<_ACEOF | |
7165 | /* end confdefs.h. */ | |
7166 | #include <sys/types.h> | |
7167 | #include <sys/socket.h> | |
7168 | ||
7169 | ||
7170 | int | |
7171 | main () | |
7172 | { | |
7173 | static struct sockaddr ac_aggr; | |
7174 | if (sizeof ac_aggr.sa_len) | |
7175 | return 0; | |
7176 | ; | |
7177 | return 0; | |
7178 | } | |
7179 | _ACEOF | |
7180 | rm -f conftest.$ac_objext | |
631ef239 | 7181 | if { (ac_try="$ac_compile" |
7182 | case "(($ac_try" in | |
7183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7184 | *) ac_try_echo=$ac_try;; | |
7185 | esac | |
7186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7187 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 7188 | ac_status=$? |
7189 | grep -v '^ *+' conftest.er1 >conftest.err | |
7190 | rm -f conftest.er1 | |
7191 | cat conftest.err >&5 | |
7192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 7193 | (exit $ac_status); } && { |
7194 | test -z "$ac_c_werror_flag" || | |
7195 | test ! -s conftest.err | |
7196 | } && test -s conftest.$ac_objext; then | |
212380e3 | 7197 | ac_cv_member_struct_sockaddr_sa_len=yes |
7198 | else | |
7199 | echo "$as_me: failed program was:" >&5 | |
7200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7201 | ||
631ef239 | 7202 | ac_cv_member_struct_sockaddr_sa_len=no |
212380e3 | 7203 | fi |
631ef239 | 7204 | |
7205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7206 | fi |
631ef239 | 7207 | |
7208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7209 | fi |
631ef239 | 7210 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
7211 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } | |
212380e3 | 7212 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
7213 | ||
7214 | cat >>confdefs.h <<\_ACEOF | |
7215 | #define SOCKADDR_IN_HAS_LEN 1 | |
7216 | _ACEOF | |
7217 | ||
7218 | fi | |
7219 | ||
7220 | ||
631ef239 | 7221 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
7222 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | |
212380e3 | 7223 | if test "${ac_cv_type_socklen_t+set}" = set; then |
7224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7225 | else | |
7226 | cat >conftest.$ac_ext <<_ACEOF | |
7227 | /* confdefs.h. */ | |
7228 | _ACEOF | |
7229 | cat confdefs.h >>conftest.$ac_ext | |
7230 | cat >>conftest.$ac_ext <<_ACEOF | |
7231 | /* end confdefs.h. */ | |
7232 | #include <sys/types.h> | |
7233 | #include <sys/socket.h> | |
7234 | ||
631ef239 | 7235 | typedef socklen_t ac__type_new_; |
212380e3 | 7236 | int |
7237 | main () | |
7238 | { | |
631ef239 | 7239 | if ((ac__type_new_ *) 0) |
212380e3 | 7240 | return 0; |
631ef239 | 7241 | if (sizeof (ac__type_new_)) |
212380e3 | 7242 | return 0; |
7243 | ; | |
7244 | return 0; | |
7245 | } | |
7246 | _ACEOF | |
7247 | rm -f conftest.$ac_objext | |
631ef239 | 7248 | if { (ac_try="$ac_compile" |
7249 | case "(($ac_try" in | |
7250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7251 | *) ac_try_echo=$ac_try;; | |
7252 | esac | |
7253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7254 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 7255 | ac_status=$? |
7256 | grep -v '^ *+' conftest.er1 >conftest.err | |
7257 | rm -f conftest.er1 | |
7258 | cat conftest.err >&5 | |
7259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 7260 | (exit $ac_status); } && { |
7261 | test -z "$ac_c_werror_flag" || | |
7262 | test ! -s conftest.err | |
7263 | } && test -s conftest.$ac_objext; then | |
212380e3 | 7264 | ac_cv_type_socklen_t=yes |
7265 | else | |
7266 | echo "$as_me: failed program was:" >&5 | |
7267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7268 | ||
631ef239 | 7269 | ac_cv_type_socklen_t=no |
212380e3 | 7270 | fi |
631ef239 | 7271 | |
7272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7273 | fi |
631ef239 | 7274 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
7275 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | |
212380e3 | 7276 | if test $ac_cv_type_socklen_t = yes; then |
7277 | : | |
7278 | else | |
7279 | ||
7280 | cat >>confdefs.h <<\_ACEOF | |
7281 | #define socklen_t unsigned int | |
7282 | _ACEOF | |
7283 | ||
7284 | fi | |
7285 | ||
7286 | ||
631ef239 | 7287 | # Check whether --enable-ipv6 was given. |
212380e3 | 7288 | if test "${enable_ipv6+set}" = set; then |
631ef239 | 7289 | enableval=$enable_ipv6; ipv6=$enableval |
212380e3 | 7290 | else |
7291 | ipv6=no | |
631ef239 | 7292 | fi |
7293 | ||
212380e3 | 7294 | |
7295 | if test $ipv6 != yes; then | |
7296 | have_v6="no" | |
7297 | else | |
631ef239 | 7298 | { echo "$as_me:$LINENO: checking for core IPv6 support" >&5 |
7299 | echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6; } | |
212380e3 | 7300 | |
7301 | cat >conftest.$ac_ext <<_ACEOF | |
7302 | /* confdefs.h. */ | |
7303 | _ACEOF | |
7304 | cat confdefs.h >>conftest.$ac_ext | |
7305 | cat >>conftest.$ac_ext <<_ACEOF | |
7306 | /* end confdefs.h. */ | |
7307 | #define IN_AUTOCONF | |
7308 | #include <sys/types.h> | |
7309 | #include <sys/socket.h> | |
7310 | #include <netinet/in.h> | |
7311 | int | |
7312 | main () | |
7313 | { | |
7314 | struct sockaddr_in6 s; | |
7315 | s.sin6_family = 0; | |
7316 | ||
7317 | ; | |
7318 | return 0; | |
7319 | } | |
7320 | _ACEOF | |
7321 | rm -f conftest.$ac_objext | |
631ef239 | 7322 | if { (ac_try="$ac_compile" |
7323 | case "(($ac_try" in | |
7324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7325 | *) ac_try_echo=$ac_try;; | |
7326 | esac | |
7327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7328 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 7329 | ac_status=$? |
7330 | grep -v '^ *+' conftest.er1 >conftest.err | |
7331 | rm -f conftest.er1 | |
7332 | cat conftest.err >&5 | |
7333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 7334 | (exit $ac_status); } && { |
7335 | test -z "$ac_c_werror_flag" || | |
7336 | test ! -s conftest.err | |
7337 | } && test -s conftest.$ac_objext; then | |
212380e3 | 7338 | |
7339 | if test "$CYGWIN" = "yes"; then | |
631ef239 | 7340 | { echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5 |
7341 | echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6; } | |
212380e3 | 7342 | have_v6=no |
7343 | else | |
7344 | have_v6=yes | |
7345 | ||
7346 | cat >>confdefs.h <<\_ACEOF | |
7347 | #define IPV6 1 | |
7348 | _ACEOF | |
7349 | ||
631ef239 | 7350 | { echo "$as_me:$LINENO: result: yes" >&5 |
7351 | echo "${ECHO_T}yes" >&6; } | |
7352 | { echo "$as_me:$LINENO: checking for struct in6addr_any" >&5 | |
7353 | echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6; } | |
212380e3 | 7354 | cat >conftest.$ac_ext <<_ACEOF |
7355 | /* confdefs.h. */ | |
7356 | _ACEOF | |
7357 | cat confdefs.h >>conftest.$ac_ext | |
7358 | cat >>conftest.$ac_ext <<_ACEOF | |
7359 | /* end confdefs.h. */ | |
7360 | #define IN_AUTOCONF | |
7361 | #include <sys/types.h> | |
7362 | #include <sys/socket.h> | |
7363 | #include <netinet/in.h> | |
7364 | int | |
7365 | main () | |
7366 | { | |
7367 | struct in6_addr a = in6addr_any; | |
7368 | ||
7369 | ; | |
7370 | return 0; | |
7371 | } | |
7372 | _ACEOF | |
7373 | rm -f conftest.$ac_objext | |
631ef239 | 7374 | if { (ac_try="$ac_compile" |
7375 | case "(($ac_try" in | |
7376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7377 | *) ac_try_echo=$ac_try;; | |
7378 | esac | |
7379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7380 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 7381 | ac_status=$? |
7382 | grep -v '^ *+' conftest.er1 >conftest.err | |
7383 | rm -f conftest.er1 | |
7384 | cat conftest.err >&5 | |
7385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 7386 | (exit $ac_status); } && { |
7387 | test -z "$ac_c_werror_flag" || | |
7388 | test ! -s conftest.err | |
7389 | } && test -s conftest.$ac_objext; then | |
7390 | { echo "$as_me:$LINENO: result: yes" >&5 | |
7391 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 7392 | else |
7393 | echo "$as_me: failed program was:" >&5 | |
7394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7395 | ||
7396 | ||
631ef239 | 7397 | { echo "$as_me:$LINENO: result: no" >&5 |
7398 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 7399 | |
7400 | cat >>confdefs.h <<\_ACEOF | |
7401 | #define NO_IN6ADDR_ANY 1 | |
7402 | _ACEOF | |
7403 | ||
7404 | inet_misc=1 | |
7405 | ||
7406 | ||
7407 | fi | |
631ef239 | 7408 | |
7409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7410 | fi |
7411 | ||
7412 | else | |
7413 | echo "$as_me: failed program was:" >&5 | |
7414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7415 | ||
631ef239 | 7416 | { echo "$as_me:$LINENO: result: no" >&5 |
7417 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 7418 | have_v6="no" |
7419 | fi | |
631ef239 | 7420 | |
7421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7422 | fi |
7423 | ||
631ef239 | 7424 | { echo "$as_me:$LINENO: checking for library containing crypt" >&5 |
7425 | echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; } | |
212380e3 | 7426 | if test "${ac_cv_search_crypt+set}" = set; then |
7427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7428 | else | |
7429 | ac_func_search_save_LIBS=$LIBS | |
212380e3 | 7430 | cat >conftest.$ac_ext <<_ACEOF |
7431 | /* confdefs.h. */ | |
7432 | _ACEOF | |
7433 | cat confdefs.h >>conftest.$ac_ext | |
7434 | cat >>conftest.$ac_ext <<_ACEOF | |
7435 | /* end confdefs.h. */ | |
7436 | ||
631ef239 | 7437 | /* Override any GCC internal prototype to avoid an error. |
7438 | Use char because int might match the return type of a GCC | |
7439 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 7440 | #ifdef __cplusplus |
7441 | extern "C" | |
7442 | #endif | |
212380e3 | 7443 | char crypt (); |
7444 | int | |
7445 | main () | |
7446 | { | |
631ef239 | 7447 | return crypt (); |
212380e3 | 7448 | ; |
7449 | return 0; | |
7450 | } | |
7451 | _ACEOF | |
631ef239 | 7452 | for ac_lib in '' crypt descrypt; do |
7453 | if test -z "$ac_lib"; then | |
7454 | ac_res="none required" | |
7455 | else | |
7456 | ac_res=-l$ac_lib | |
7457 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7458 | fi | |
7459 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7460 | if { (ac_try="$ac_link" | |
7461 | case "(($ac_try" in | |
7462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7463 | *) ac_try_echo=$ac_try;; | |
7464 | esac | |
7465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7466 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 7467 | ac_status=$? |
7468 | grep -v '^ *+' conftest.er1 >conftest.err | |
7469 | rm -f conftest.er1 | |
7470 | cat conftest.err >&5 | |
7471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 7472 | (exit $ac_status); } && { |
7473 | test -z "$ac_c_werror_flag" || | |
7474 | test ! -s conftest.err | |
7475 | } && test -s conftest$ac_exeext && | |
7476 | $as_test_x conftest$ac_exeext; then | |
7477 | ac_cv_search_crypt=$ac_res | |
212380e3 | 7478 | else |
7479 | echo "$as_me: failed program was:" >&5 | |
7480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7481 | ||
212380e3 | 7482 | |
631ef239 | 7483 | fi |
212380e3 | 7484 | |
631ef239 | 7485 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7486 | conftest$ac_exeext | |
7487 | if test "${ac_cv_search_crypt+set}" = set; then | |
7488 | break | |
212380e3 | 7489 | fi |
631ef239 | 7490 | done |
7491 | if test "${ac_cv_search_crypt+set}" = set; then | |
7492 | : | |
7493 | else | |
7494 | ac_cv_search_crypt=no | |
212380e3 | 7495 | fi |
631ef239 | 7496 | rm conftest.$ac_ext |
212380e3 | 7497 | LIBS=$ac_func_search_save_LIBS |
7498 | fi | |
631ef239 | 7499 | { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5 |
7500 | echo "${ECHO_T}$ac_cv_search_crypt" >&6; } | |
7501 | ac_res=$ac_cv_search_crypt | |
7502 | if test "$ac_res" != no; then | |
7503 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 7504 | |
7505 | fi | |
7506 | ||
7507 | ||
7508 | CRYPT_LIB=$ac_cv_search_crypt | |
7509 | ||
7510 | if test "$CRYPT_LIB" = "none required"; then | |
7511 | unset CRYPT_LIB | |
7512 | elif test "$CRYPT_LIB" = no; then | |
7513 | unset CRYPT_LIB | |
7514 | fi | |
7515 | ||
7516 | ||
7517 | ||
7518 | if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then | |
7519 | VICONF=viconf | |
7520 | else | |
7521 | VICONF="" | |
7522 | fi | |
7523 | ||
7524 | ||
7525 | ||
631ef239 | 7526 | { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 |
7527 | echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; } | |
212380e3 | 7528 | if test "${gcc_cv_header_string+set}" = set; then |
7529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7530 | else | |
7531 | ||
7532 | cat >conftest.$ac_ext <<_ACEOF | |
7533 | #include <string.h> | |
7534 | #include <strings.h> | |
7535 | _ACEOF | |
7536 | rm -f conftest.$ac_objext | |
631ef239 | 7537 | if { (ac_try="$ac_compile" |
7538 | case "(($ac_try" in | |
7539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7540 | *) ac_try_echo=$ac_try;; | |
7541 | esac | |
7542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7543 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 7544 | ac_status=$? |
7545 | grep -v '^ *+' conftest.er1 >conftest.err | |
7546 | rm -f conftest.er1 | |
7547 | cat conftest.err >&5 | |
7548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 7549 | (exit $ac_status); } && { |
7550 | test -z "$ac_c_werror_flag" || | |
7551 | test ! -s conftest.err | |
7552 | } && test -s conftest.$ac_objext; then | |
212380e3 | 7553 | gcc_cv_header_string=yes |
7554 | else | |
7555 | echo "$as_me: failed program was:" >&5 | |
7556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7557 | ||
631ef239 | 7558 | gcc_cv_header_string=no |
212380e3 | 7559 | fi |
631ef239 | 7560 | |
7561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7562 | |
7563 | fi | |
631ef239 | 7564 | { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 |
7565 | echo "${ECHO_T}$gcc_cv_header_string" >&6; } | |
212380e3 | 7566 | |
7567 | if test "$gcc_cv_header_string" = "yes"; then | |
7568 | ||
7569 | cat >>confdefs.h <<\_ACEOF | |
7570 | #define STRING_WITH_STRINGS 1 | |
7571 | _ACEOF | |
7572 | ||
7573 | fi | |
7574 | ||
631ef239 | 7575 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
7576 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
212380e3 | 7577 | if test "${ac_cv_c_bigendian+set}" = set; then |
7578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7579 | else | |
7580 | # See if sys/param.h defines the BYTE_ORDER macro. | |
7581 | cat >conftest.$ac_ext <<_ACEOF | |
7582 | /* confdefs.h. */ | |
7583 | _ACEOF | |
7584 | cat confdefs.h >>conftest.$ac_ext | |
7585 | cat >>conftest.$ac_ext <<_ACEOF | |
7586 | /* end confdefs.h. */ | |
7587 | #include <sys/types.h> | |
7588 | #include <sys/param.h> | |
7589 | ||
7590 | int | |
7591 | main () | |
7592 | { | |
631ef239 | 7593 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
7594 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
212380e3 | 7595 | bogus endian macros |
7596 | #endif | |
7597 | ||
7598 | ; | |
7599 | return 0; | |
7600 | } | |
7601 | _ACEOF | |
7602 | rm -f conftest.$ac_objext | |
631ef239 | 7603 | if { (ac_try="$ac_compile" |
7604 | case "(($ac_try" in | |
7605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7606 | *) ac_try_echo=$ac_try;; | |
7607 | esac | |
7608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7609 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 7610 | ac_status=$? |
7611 | grep -v '^ *+' conftest.er1 >conftest.err | |
7612 | rm -f conftest.er1 | |
7613 | cat conftest.err >&5 | |
7614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 7615 | (exit $ac_status); } && { |
7616 | test -z "$ac_c_werror_flag" || | |
7617 | test ! -s conftest.err | |
7618 | } && test -s conftest.$ac_objext; then | |
212380e3 | 7619 | # It does; now see whether it defined to BIG_ENDIAN or not. |
7620 | cat >conftest.$ac_ext <<_ACEOF | |
7621 | /* confdefs.h. */ | |
7622 | _ACEOF | |
7623 | cat confdefs.h >>conftest.$ac_ext | |
7624 | cat >>conftest.$ac_ext <<_ACEOF | |
7625 | /* end confdefs.h. */ | |
7626 | #include <sys/types.h> | |
7627 | #include <sys/param.h> | |
7628 | ||
7629 | int | |
7630 | main () | |
7631 | { | |
7632 | #if BYTE_ORDER != BIG_ENDIAN | |
7633 | not big endian | |
7634 | #endif | |
7635 | ||
7636 | ; | |
7637 | return 0; | |
7638 | } | |
7639 | _ACEOF | |
7640 | rm -f conftest.$ac_objext | |
631ef239 | 7641 | if { (ac_try="$ac_compile" |
7642 | case "(($ac_try" in | |
7643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7644 | *) ac_try_echo=$ac_try;; | |
7645 | esac | |
7646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7647 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 7648 | ac_status=$? |
7649 | grep -v '^ *+' conftest.er1 >conftest.err | |
7650 | rm -f conftest.er1 | |
7651 | cat conftest.err >&5 | |
7652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 7653 | (exit $ac_status); } && { |
7654 | test -z "$ac_c_werror_flag" || | |
7655 | test ! -s conftest.err | |
7656 | } && test -s conftest.$ac_objext; then | |
212380e3 | 7657 | ac_cv_c_bigendian=yes |
7658 | else | |
7659 | echo "$as_me: failed program was:" >&5 | |
7660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7661 | ||
631ef239 | 7662 | ac_cv_c_bigendian=no |
212380e3 | 7663 | fi |
631ef239 | 7664 | |
7665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7666 | else |
7667 | echo "$as_me: failed program was:" >&5 | |
7668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7669 | ||
631ef239 | 7670 | # It does not; compile a test program. |
212380e3 | 7671 | if test "$cross_compiling" = yes; then |
7672 | # try to guess the endianness by grepping values into an object file | |
7673 | ac_cv_c_bigendian=unknown | |
7674 | cat >conftest.$ac_ext <<_ACEOF | |
7675 | /* confdefs.h. */ | |
7676 | _ACEOF | |
7677 | cat confdefs.h >>conftest.$ac_ext | |
7678 | cat >>conftest.$ac_ext <<_ACEOF | |
7679 | /* end confdefs.h. */ | |
631ef239 | 7680 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
7681 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
212380e3 | 7682 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
631ef239 | 7683 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
7684 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
212380e3 | 7685 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
7686 | int | |
7687 | main () | |
7688 | { | |
7689 | _ascii (); _ebcdic (); | |
7690 | ; | |
7691 | return 0; | |
7692 | } | |
7693 | _ACEOF | |
7694 | rm -f conftest.$ac_objext | |
631ef239 | 7695 | if { (ac_try="$ac_compile" |
7696 | case "(($ac_try" in | |
7697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7698 | *) ac_try_echo=$ac_try;; | |
7699 | esac | |
7700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7701 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 7702 | ac_status=$? |
7703 | grep -v '^ *+' conftest.er1 >conftest.err | |
7704 | rm -f conftest.er1 | |
7705 | cat conftest.err >&5 | |
7706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 7707 | (exit $ac_status); } && { |
7708 | test -z "$ac_c_werror_flag" || | |
7709 | test ! -s conftest.err | |
7710 | } && test -s conftest.$ac_objext; then | |
212380e3 | 7711 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
7712 | ac_cv_c_bigendian=yes | |
7713 | fi | |
7714 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
7715 | if test "$ac_cv_c_bigendian" = unknown; then | |
7716 | ac_cv_c_bigendian=no | |
7717 | else | |
7718 | # finding both strings is unlikely to happen, but who knows? | |
7719 | ac_cv_c_bigendian=unknown | |
7720 | fi | |
7721 | fi | |
7722 | else | |
7723 | echo "$as_me: failed program was:" >&5 | |
7724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7725 | ||
631ef239 | 7726 | |
212380e3 | 7727 | fi |
631ef239 | 7728 | |
7729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7730 | else |
7731 | cat >conftest.$ac_ext <<_ACEOF | |
7732 | /* confdefs.h. */ | |
7733 | _ACEOF | |
7734 | cat confdefs.h >>conftest.$ac_ext | |
7735 | cat >>conftest.$ac_ext <<_ACEOF | |
7736 | /* end confdefs.h. */ | |
631ef239 | 7737 | $ac_includes_default |
212380e3 | 7738 | int |
7739 | main () | |
7740 | { | |
631ef239 | 7741 | |
212380e3 | 7742 | /* Are we little or big endian? From Harbison&Steele. */ |
7743 | union | |
7744 | { | |
631ef239 | 7745 | long int l; |
7746 | char c[sizeof (long int)]; | |
212380e3 | 7747 | } u; |
7748 | u.l = 1; | |
631ef239 | 7749 | return u.c[sizeof (long int) - 1] == 1; |
7750 | ||
7751 | ; | |
7752 | return 0; | |
212380e3 | 7753 | } |
7754 | _ACEOF | |
7755 | rm -f conftest$ac_exeext | |
631ef239 | 7756 | if { (ac_try="$ac_link" |
7757 | case "(($ac_try" in | |
7758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7759 | *) ac_try_echo=$ac_try;; | |
7760 | esac | |
7761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7762 | (eval "$ac_link") 2>&5 | |
212380e3 | 7763 | ac_status=$? |
7764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7765 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 | 7766 | { (case "(($ac_try" in |
7767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7768 | *) ac_try_echo=$ac_try;; | |
7769 | esac | |
7770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7771 | (eval "$ac_try") 2>&5 | |
212380e3 | 7772 | ac_status=$? |
7773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7774 | (exit $ac_status); }; }; then | |
7775 | ac_cv_c_bigendian=no | |
7776 | else | |
7777 | echo "$as_me: program exited with status $ac_status" >&5 | |
7778 | echo "$as_me: failed program was:" >&5 | |
7779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7780 | ||
7781 | ( exit $ac_status ) | |
7782 | ac_cv_c_bigendian=yes | |
7783 | fi | |
631ef239 | 7784 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 7785 | fi |
631ef239 | 7786 | |
7787 | ||
212380e3 | 7788 | fi |
631ef239 | 7789 | |
7790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7791 | fi |
631ef239 | 7792 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
7793 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
212380e3 | 7794 | case $ac_cv_c_bigendian in |
7795 | yes) | |
7796 | ||
7797 | cat >>confdefs.h <<\_ACEOF | |
7798 | #define WORDS_BIGENDIAN 1 | |
7799 | _ACEOF | |
7800 | ;; | |
7801 | no) | |
7802 | ;; | |
7803 | *) | |
7804 | { { echo "$as_me:$LINENO: error: unknown endianness | |
7805 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
7806 | echo "$as_me: error: unknown endianness | |
7807 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
7808 | { (exit 1); exit 1; }; } ;; | |
7809 | esac | |
7810 | ||
7811 | ||
7812 | if test "${ac_cv_header_stdarg_h+set}" = set; then | |
631ef239 | 7813 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
7814 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } | |
212380e3 | 7815 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
7816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7817 | fi | |
631ef239 | 7818 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
7819 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } | |
212380e3 | 7820 | else |
7821 | # Is the header compilable? | |
631ef239 | 7822 | { echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
7823 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } | |
212380e3 | 7824 | cat >conftest.$ac_ext <<_ACEOF |
7825 | /* confdefs.h. */ | |
7826 | _ACEOF | |
7827 | cat confdefs.h >>conftest.$ac_ext | |
7828 | cat >>conftest.$ac_ext <<_ACEOF | |
7829 | /* end confdefs.h. */ | |
7830 | $ac_includes_default | |
7831 | #include <stdarg.h> | |
7832 | _ACEOF | |
7833 | rm -f conftest.$ac_objext | |
631ef239 | 7834 | if { (ac_try="$ac_compile" |
7835 | case "(($ac_try" in | |
7836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7837 | *) ac_try_echo=$ac_try;; | |
7838 | esac | |
7839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7840 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 7841 | ac_status=$? |
7842 | grep -v '^ *+' conftest.er1 >conftest.err | |
7843 | rm -f conftest.er1 | |
7844 | cat conftest.err >&5 | |
7845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 7846 | (exit $ac_status); } && { |
7847 | test -z "$ac_c_werror_flag" || | |
7848 | test ! -s conftest.err | |
7849 | } && test -s conftest.$ac_objext; then | |
212380e3 | 7850 | ac_header_compiler=yes |
7851 | else | |
7852 | echo "$as_me: failed program was:" >&5 | |
7853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7854 | ||
631ef239 | 7855 | ac_header_compiler=no |
212380e3 | 7856 | fi |
631ef239 | 7857 | |
7858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7859 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7860 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 | 7861 | |
7862 | # Is the header present? | |
631ef239 | 7863 | { echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
7864 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } | |
212380e3 | 7865 | cat >conftest.$ac_ext <<_ACEOF |
7866 | /* confdefs.h. */ | |
7867 | _ACEOF | |
7868 | cat confdefs.h >>conftest.$ac_ext | |
7869 | cat >>conftest.$ac_ext <<_ACEOF | |
7870 | /* end confdefs.h. */ | |
7871 | #include <stdarg.h> | |
7872 | _ACEOF | |
631ef239 | 7873 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7874 | case "(($ac_try" in | |
7875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7876 | *) ac_try_echo=$ac_try;; | |
7877 | esac | |
7878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7879 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 | 7880 | ac_status=$? |
7881 | grep -v '^ *+' conftest.er1 >conftest.err | |
7882 | rm -f conftest.er1 | |
7883 | cat conftest.err >&5 | |
7884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 7885 | (exit $ac_status); } >/dev/null && { |
7886 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7887 | test ! -s conftest.err | |
7888 | }; then | |
212380e3 | 7889 | ac_header_preproc=yes |
7890 | else | |
7891 | echo "$as_me: failed program was:" >&5 | |
7892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7893 | ||
7894 | ac_header_preproc=no | |
7895 | fi | |
631ef239 | 7896 | |
212380e3 | 7897 | rm -f conftest.err conftest.$ac_ext |
631ef239 | 7898 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7899 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 | 7900 | |
7901 | # So? What about this header? | |
7902 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7903 | yes:no: ) | |
7904 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7905 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7906 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 | |
7907 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} | |
7908 | ac_header_preproc=yes | |
7909 | ;; | |
7910 | no:yes:* ) | |
7911 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 | |
7912 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} | |
7913 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 | |
7914 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} | |
7915 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 | |
7916 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} | |
7917 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7918 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7919 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 | |
7920 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} | |
7921 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 | |
7922 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 7923 | |
212380e3 | 7924 | ;; |
7925 | esac | |
631ef239 | 7926 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
7927 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } | |
212380e3 | 7928 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
7929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7930 | else | |
7931 | ac_cv_header_stdarg_h=$ac_header_preproc | |
7932 | fi | |
631ef239 | 7933 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
7934 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } | |
212380e3 | 7935 | |
7936 | fi | |
7937 | if test $ac_cv_header_stdarg_h = yes; then | |
7938 | : | |
7939 | else | |
7940 | { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&5 | |
7941 | echo "$as_me: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&2;} | |
7942 | { (exit 1); exit 1; }; } | |
7943 | fi | |
7944 | ||
7945 | ||
7946 | ||
7947 | ||
7948 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
7949 | ||
631ef239 | 7950 | { echo "$as_me:$LINENO: checking for strlcpy" >&5 |
7951 | echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; } | |
212380e3 | 7952 | save_CFLAGS=$CFLAGS |
7953 | CFLAGS="$CFLAGS -Wimplicit -Werror" | |
7954 | ||
7955 | cat >conftest.$ac_ext <<_ACEOF | |
7956 | /* confdefs.h. */ | |
7957 | _ACEOF | |
7958 | cat confdefs.h >>conftest.$ac_ext | |
7959 | cat >>conftest.$ac_ext <<_ACEOF | |
7960 | /* end confdefs.h. */ | |
7961 | #include <string.h> | |
7962 | #include <stdlib.h> | |
7963 | int | |
7964 | main () | |
7965 | { | |
7966 | char *a = malloc(6); | |
7967 | strlcpy(a, "hello", 6); | |
7968 | ||
7969 | ; | |
7970 | return 0; | |
7971 | } | |
7972 | _ACEOF | |
7973 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 7974 | if { (ac_try="$ac_link" |
7975 | case "(($ac_try" in | |
7976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7977 | *) ac_try_echo=$ac_try;; | |
7978 | esac | |
7979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7980 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 7981 | ac_status=$? |
7982 | grep -v '^ *+' conftest.er1 >conftest.err | |
7983 | rm -f conftest.er1 | |
7984 | cat conftest.err >&5 | |
7985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 7986 | (exit $ac_status); } && { |
7987 | test -z "$ac_c_werror_flag" || | |
7988 | test ! -s conftest.err | |
7989 | } && test -s conftest$ac_exeext && | |
7990 | $as_test_x conftest$ac_exeext; then | |
7991 | { echo "$as_me:$LINENO: result: yes" >&5 | |
7992 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 7993 | |
7994 | cat >>confdefs.h <<\_ACEOF | |
7995 | #define HAVE_STRLCPY 1 | |
7996 | _ACEOF | |
7997 | ||
7998 | else | |
7999 | echo "$as_me: failed program was:" >&5 | |
8000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8001 | ||
631ef239 | 8002 | { echo "$as_me:$LINENO: result: no" >&5 |
8003 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 8004 | |
8005 | fi | |
631ef239 | 8006 | |
8007 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 8008 | conftest$ac_exeext conftest.$ac_ext |
8009 | ||
631ef239 | 8010 | { echo "$as_me:$LINENO: checking for strlcat" >&5 |
8011 | echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; } | |
212380e3 | 8012 | cat >conftest.$ac_ext <<_ACEOF |
8013 | /* confdefs.h. */ | |
8014 | _ACEOF | |
8015 | cat confdefs.h >>conftest.$ac_ext | |
8016 | cat >>conftest.$ac_ext <<_ACEOF | |
8017 | /* end confdefs.h. */ | |
8018 | #include <string.h> | |
8019 | #include <stdlib.h> | |
8020 | int | |
8021 | main () | |
8022 | { | |
8023 | char *a = malloc(6); | |
8024 | a[0] = '\0'; | |
8025 | strlcat(a, "hello", 6); | |
8026 | ||
8027 | ; | |
8028 | return 0; | |
8029 | } | |
8030 | _ACEOF | |
8031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 8032 | if { (ac_try="$ac_link" |
8033 | case "(($ac_try" in | |
8034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8035 | *) ac_try_echo=$ac_try;; | |
8036 | esac | |
8037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8038 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 8039 | ac_status=$? |
8040 | grep -v '^ *+' conftest.er1 >conftest.err | |
8041 | rm -f conftest.er1 | |
8042 | cat conftest.err >&5 | |
8043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 8044 | (exit $ac_status); } && { |
8045 | test -z "$ac_c_werror_flag" || | |
8046 | test ! -s conftest.err | |
8047 | } && test -s conftest$ac_exeext && | |
8048 | $as_test_x conftest$ac_exeext; then | |
8049 | { echo "$as_me:$LINENO: result: yes" >&5 | |
8050 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 8051 | |
8052 | cat >>confdefs.h <<\_ACEOF | |
8053 | #define HAVE_STRLCAT 1 | |
8054 | _ACEOF | |
8055 | ||
8056 | else | |
8057 | echo "$as_me: failed program was:" >&5 | |
8058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8059 | ||
631ef239 | 8060 | { echo "$as_me:$LINENO: result: no" >&5 |
8061 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 8062 | |
8063 | fi | |
631ef239 | 8064 | |
8065 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 8066 | conftest$ac_exeext conftest.$ac_ext |
8067 | ||
8068 | CFLAGS=$save_CFLAGS | |
8069 | ||
8070 | else | |
8071 | ||
8072 | ||
8073 | ||
8074 | ||
8075 | for ac_func in strlcat strlcpy | |
8076 | do | |
8077 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 | 8078 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8079 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8080 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 8081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8082 | else | |
8083 | cat >conftest.$ac_ext <<_ACEOF | |
8084 | /* confdefs.h. */ | |
8085 | _ACEOF | |
8086 | cat confdefs.h >>conftest.$ac_ext | |
8087 | cat >>conftest.$ac_ext <<_ACEOF | |
8088 | /* end confdefs.h. */ | |
8089 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8090 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8091 | #define $ac_func innocuous_$ac_func | |
8092 | ||
8093 | /* System header to define __stub macros and hopefully few prototypes, | |
8094 | which can conflict with char $ac_func (); below. | |
8095 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8096 | <limits.h> exists even on freestanding compilers. */ | |
8097 | ||
8098 | #ifdef __STDC__ | |
8099 | # include <limits.h> | |
8100 | #else | |
8101 | # include <assert.h> | |
8102 | #endif | |
8103 | ||
8104 | #undef $ac_func | |
8105 | ||
631ef239 | 8106 | /* Override any GCC internal prototype to avoid an error. |
8107 | Use char because int might match the return type of a GCC | |
8108 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 8109 | #ifdef __cplusplus |
8110 | extern "C" | |
212380e3 | 8111 | #endif |
212380e3 | 8112 | char $ac_func (); |
8113 | /* The GNU C library defines this for functions which it implements | |
8114 | to always fail with ENOSYS. Some functions are actually named | |
8115 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8116 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 8117 | choke me |
212380e3 | 8118 | #endif |
8119 | ||
8120 | int | |
8121 | main () | |
8122 | { | |
631ef239 | 8123 | return $ac_func (); |
212380e3 | 8124 | ; |
8125 | return 0; | |
8126 | } | |
8127 | _ACEOF | |
8128 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 8129 | if { (ac_try="$ac_link" |
8130 | case "(($ac_try" in | |
8131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8132 | *) ac_try_echo=$ac_try;; | |
8133 | esac | |
8134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8135 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 8136 | ac_status=$? |
8137 | grep -v '^ *+' conftest.er1 >conftest.err | |
8138 | rm -f conftest.er1 | |
8139 | cat conftest.err >&5 | |
8140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 8141 | (exit $ac_status); } && { |
8142 | test -z "$ac_c_werror_flag" || | |
8143 | test ! -s conftest.err | |
8144 | } && test -s conftest$ac_exeext && | |
8145 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 8146 | eval "$as_ac_var=yes" |
8147 | else | |
8148 | echo "$as_me: failed program was:" >&5 | |
8149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8150 | ||
631ef239 | 8151 | eval "$as_ac_var=no" |
212380e3 | 8152 | fi |
631ef239 | 8153 | |
8154 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 8155 | conftest$ac_exeext conftest.$ac_ext |
8156 | fi | |
631ef239 | 8157 | ac_res=`eval echo '${'$as_ac_var'}'` |
8158 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8159 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 8160 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8161 | cat >>confdefs.h <<_ACEOF | |
8162 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8163 | _ACEOF | |
8164 | ||
8165 | fi | |
8166 | done | |
8167 | ||
8168 | ||
8169 | fi | |
8170 | ||
631ef239 | 8171 | { echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
8172 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } | |
212380e3 | 8173 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
8174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8175 | else | |
8176 | cat >conftest.$ac_ext <<_ACEOF | |
8177 | /* confdefs.h. */ | |
8178 | _ACEOF | |
8179 | cat confdefs.h >>conftest.$ac_ext | |
8180 | cat >>conftest.$ac_ext <<_ACEOF | |
8181 | /* end confdefs.h. */ | |
8182 | $ac_includes_default | |
631ef239 | 8183 | typedef u_int32_t ac__type_new_; |
212380e3 | 8184 | int |
8185 | main () | |
8186 | { | |
631ef239 | 8187 | if ((ac__type_new_ *) 0) |
212380e3 | 8188 | return 0; |
631ef239 | 8189 | if (sizeof (ac__type_new_)) |
212380e3 | 8190 | return 0; |
8191 | ; | |
8192 | return 0; | |
8193 | } | |
8194 | _ACEOF | |
8195 | rm -f conftest.$ac_objext | |
631ef239 | 8196 | if { (ac_try="$ac_compile" |
8197 | case "(($ac_try" in | |
8198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8199 | *) ac_try_echo=$ac_try;; | |
8200 | esac | |
8201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8202 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 8203 | ac_status=$? |
8204 | grep -v '^ *+' conftest.er1 >conftest.err | |
8205 | rm -f conftest.er1 | |
8206 | cat conftest.err >&5 | |
8207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 8208 | (exit $ac_status); } && { |
8209 | test -z "$ac_c_werror_flag" || | |
8210 | test ! -s conftest.err | |
8211 | } && test -s conftest.$ac_objext; then | |
212380e3 | 8212 | ac_cv_type_u_int32_t=yes |
8213 | else | |
8214 | echo "$as_me: failed program was:" >&5 | |
8215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8216 | ||
631ef239 | 8217 | ac_cv_type_u_int32_t=no |
212380e3 | 8218 | fi |
631ef239 | 8219 | |
8220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8221 | fi |
631ef239 | 8222 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
8223 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } | |
212380e3 | 8224 | if test $ac_cv_type_u_int32_t = yes; then |
8225 | : | |
8226 | else | |
8227 | ||
631ef239 | 8228 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
8229 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } | |
212380e3 | 8230 | if test "${ac_cv_type_uint32_t+set}" = set; then |
8231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8232 | else | |
8233 | cat >conftest.$ac_ext <<_ACEOF | |
8234 | /* confdefs.h. */ | |
8235 | _ACEOF | |
8236 | cat confdefs.h >>conftest.$ac_ext | |
8237 | cat >>conftest.$ac_ext <<_ACEOF | |
8238 | /* end confdefs.h. */ | |
8239 | $ac_includes_default | |
631ef239 | 8240 | typedef uint32_t ac__type_new_; |
212380e3 | 8241 | int |
8242 | main () | |
8243 | { | |
631ef239 | 8244 | if ((ac__type_new_ *) 0) |
212380e3 | 8245 | return 0; |
631ef239 | 8246 | if (sizeof (ac__type_new_)) |
212380e3 | 8247 | return 0; |
8248 | ; | |
8249 | return 0; | |
8250 | } | |
8251 | _ACEOF | |
8252 | rm -f conftest.$ac_objext | |
631ef239 | 8253 | if { (ac_try="$ac_compile" |
8254 | case "(($ac_try" in | |
8255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8256 | *) ac_try_echo=$ac_try;; | |
8257 | esac | |
8258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8259 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 8260 | ac_status=$? |
8261 | grep -v '^ *+' conftest.er1 >conftest.err | |
8262 | rm -f conftest.er1 | |
8263 | cat conftest.err >&5 | |
8264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 8265 | (exit $ac_status); } && { |
8266 | test -z "$ac_c_werror_flag" || | |
8267 | test ! -s conftest.err | |
8268 | } && test -s conftest.$ac_objext; then | |
212380e3 | 8269 | ac_cv_type_uint32_t=yes |
8270 | else | |
8271 | echo "$as_me: failed program was:" >&5 | |
8272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8273 | ||
631ef239 | 8274 | ac_cv_type_uint32_t=no |
212380e3 | 8275 | fi |
631ef239 | 8276 | |
8277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8278 | fi |
631ef239 | 8279 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
8280 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } | |
212380e3 | 8281 | if test $ac_cv_type_uint32_t = yes; then |
8282 | ||
8283 | ||
8284 | cat >>confdefs.h <<\_ACEOF | |
8285 | #define u_int32_t uint32_t | |
8286 | _ACEOF | |
8287 | ||
8288 | ||
8289 | else | |
8290 | ||
8291 | { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 | |
8292 | echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
8293 | ||
8294 | cat >>confdefs.h <<\_ACEOF | |
8295 | #define u_int32_t unsigned long int | |
8296 | _ACEOF | |
8297 | ||
8298 | ||
8299 | fi | |
8300 | ||
8301 | ||
8302 | fi | |
8303 | ||
8304 | ||
631ef239 | 8305 | { echo "$as_me:$LINENO: checking for u_int16_t" >&5 |
8306 | echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } | |
212380e3 | 8307 | if test "${ac_cv_type_u_int16_t+set}" = set; then |
8308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8309 | else | |
8310 | cat >conftest.$ac_ext <<_ACEOF | |
8311 | /* confdefs.h. */ | |
8312 | _ACEOF | |
8313 | cat confdefs.h >>conftest.$ac_ext | |
8314 | cat >>conftest.$ac_ext <<_ACEOF | |
8315 | /* end confdefs.h. */ | |
8316 | $ac_includes_default | |
631ef239 | 8317 | typedef u_int16_t ac__type_new_; |
212380e3 | 8318 | int |
8319 | main () | |
8320 | { | |
631ef239 | 8321 | if ((ac__type_new_ *) 0) |
212380e3 | 8322 | return 0; |
631ef239 | 8323 | if (sizeof (ac__type_new_)) |
212380e3 | 8324 | return 0; |
8325 | ; | |
8326 | return 0; | |
8327 | } | |
8328 | _ACEOF | |
8329 | rm -f conftest.$ac_objext | |
631ef239 | 8330 | if { (ac_try="$ac_compile" |
8331 | case "(($ac_try" in | |
8332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8333 | *) ac_try_echo=$ac_try;; | |
8334 | esac | |
8335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8336 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 8337 | ac_status=$? |
8338 | grep -v '^ *+' conftest.er1 >conftest.err | |
8339 | rm -f conftest.er1 | |
8340 | cat conftest.err >&5 | |
8341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 8342 | (exit $ac_status); } && { |
8343 | test -z "$ac_c_werror_flag" || | |
8344 | test ! -s conftest.err | |
8345 | } && test -s conftest.$ac_objext; then | |
212380e3 | 8346 | ac_cv_type_u_int16_t=yes |
8347 | else | |
8348 | echo "$as_me: failed program was:" >&5 | |
8349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8350 | ||
631ef239 | 8351 | ac_cv_type_u_int16_t=no |
212380e3 | 8352 | fi |
631ef239 | 8353 | |
8354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8355 | fi |
631ef239 | 8356 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 |
8357 | echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; } | |
212380e3 | 8358 | if test $ac_cv_type_u_int16_t = yes; then |
8359 | : | |
8360 | else | |
8361 | ||
631ef239 | 8362 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
8363 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } | |
212380e3 | 8364 | if test "${ac_cv_type_uint16_t+set}" = set; then |
8365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8366 | else | |
8367 | cat >conftest.$ac_ext <<_ACEOF | |
8368 | /* confdefs.h. */ | |
8369 | _ACEOF | |
8370 | cat confdefs.h >>conftest.$ac_ext | |
8371 | cat >>conftest.$ac_ext <<_ACEOF | |
8372 | /* end confdefs.h. */ | |
8373 | $ac_includes_default | |
631ef239 | 8374 | typedef uint16_t ac__type_new_; |
212380e3 | 8375 | int |
8376 | main () | |
8377 | { | |
631ef239 | 8378 | if ((ac__type_new_ *) 0) |
212380e3 | 8379 | return 0; |
631ef239 | 8380 | if (sizeof (ac__type_new_)) |
212380e3 | 8381 | return 0; |
8382 | ; | |
8383 | return 0; | |
8384 | } | |
8385 | _ACEOF | |
8386 | rm -f conftest.$ac_objext | |
631ef239 | 8387 | if { (ac_try="$ac_compile" |
8388 | case "(($ac_try" in | |
8389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8390 | *) ac_try_echo=$ac_try;; | |
8391 | esac | |
8392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8393 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 8394 | ac_status=$? |
8395 | grep -v '^ *+' conftest.er1 >conftest.err | |
8396 | rm -f conftest.er1 | |
8397 | cat conftest.err >&5 | |
8398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 8399 | (exit $ac_status); } && { |
8400 | test -z "$ac_c_werror_flag" || | |
8401 | test ! -s conftest.err | |
8402 | } && test -s conftest.$ac_objext; then | |
212380e3 | 8403 | ac_cv_type_uint16_t=yes |
8404 | else | |
8405 | echo "$as_me: failed program was:" >&5 | |
8406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8407 | ||
631ef239 | 8408 | ac_cv_type_uint16_t=no |
212380e3 | 8409 | fi |
631ef239 | 8410 | |
8411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8412 | fi |
631ef239 | 8413 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 |
8414 | echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; } | |
212380e3 | 8415 | if test $ac_cv_type_uint16_t = yes; then |
8416 | ||
8417 | ||
8418 | cat >>confdefs.h <<\_ACEOF | |
8419 | #define u_int16_t uint16_t | |
8420 | _ACEOF | |
8421 | ||
8422 | ||
8423 | else | |
8424 | ||
8425 | { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 | |
8426 | echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
8427 | ||
8428 | cat >>confdefs.h <<\_ACEOF | |
8429 | #define u_int16_t unsigned short int | |
8430 | _ACEOF | |
8431 | ||
8432 | ||
8433 | fi | |
8434 | ||
8435 | ||
8436 | fi | |
8437 | ||
8438 | ||
631ef239 | 8439 | { echo "$as_me:$LINENO: checking for in_port_t" >&5 |
8440 | echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } | |
212380e3 | 8441 | if test "${ac_cv_type_in_port_t+set}" = set; then |
8442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8443 | else | |
8444 | cat >conftest.$ac_ext <<_ACEOF | |
8445 | /* confdefs.h. */ | |
8446 | _ACEOF | |
8447 | cat confdefs.h >>conftest.$ac_ext | |
8448 | cat >>conftest.$ac_ext <<_ACEOF | |
8449 | /* end confdefs.h. */ | |
8450 | #include <sys/types.h> | |
8451 | #include <netinet/in.h> | |
8452 | ||
631ef239 | 8453 | typedef in_port_t ac__type_new_; |
212380e3 | 8454 | int |
8455 | main () | |
8456 | { | |
631ef239 | 8457 | if ((ac__type_new_ *) 0) |
212380e3 | 8458 | return 0; |
631ef239 | 8459 | if (sizeof (ac__type_new_)) |
212380e3 | 8460 | return 0; |
8461 | ; | |
8462 | return 0; | |
8463 | } | |
8464 | _ACEOF | |
8465 | rm -f conftest.$ac_objext | |
631ef239 | 8466 | if { (ac_try="$ac_compile" |
8467 | case "(($ac_try" in | |
8468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8469 | *) ac_try_echo=$ac_try;; | |
8470 | esac | |
8471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8472 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 8473 | ac_status=$? |
8474 | grep -v '^ *+' conftest.er1 >conftest.err | |
8475 | rm -f conftest.er1 | |
8476 | cat conftest.err >&5 | |
8477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 8478 | (exit $ac_status); } && { |
8479 | test -z "$ac_c_werror_flag" || | |
8480 | test ! -s conftest.err | |
8481 | } && test -s conftest.$ac_objext; then | |
212380e3 | 8482 | ac_cv_type_in_port_t=yes |
8483 | else | |
8484 | echo "$as_me: failed program was:" >&5 | |
8485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8486 | ||
631ef239 | 8487 | ac_cv_type_in_port_t=no |
212380e3 | 8488 | fi |
631ef239 | 8489 | |
8490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8491 | fi |
631ef239 | 8492 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 |
8493 | echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } | |
212380e3 | 8494 | if test $ac_cv_type_in_port_t = yes; then |
8495 | : | |
8496 | else | |
8497 | ||
8498 | cat >>confdefs.h <<\_ACEOF | |
8499 | #define in_port_t u_int16_t | |
8500 | _ACEOF | |
8501 | ||
8502 | fi | |
8503 | ||
8504 | ||
631ef239 | 8505 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 |
8506 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | |
212380e3 | 8507 | if test "${ac_cv_type_sa_family_t+set}" = set; then |
8508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8509 | else | |
8510 | cat >conftest.$ac_ext <<_ACEOF | |
8511 | /* confdefs.h. */ | |
8512 | _ACEOF | |
8513 | cat confdefs.h >>conftest.$ac_ext | |
8514 | cat >>conftest.$ac_ext <<_ACEOF | |
8515 | /* end confdefs.h. */ | |
8516 | #include <sys/types.h> | |
8517 | #include <sys/socket.h> | |
8518 | ||
631ef239 | 8519 | typedef sa_family_t ac__type_new_; |
212380e3 | 8520 | int |
8521 | main () | |
8522 | { | |
631ef239 | 8523 | if ((ac__type_new_ *) 0) |
212380e3 | 8524 | return 0; |
631ef239 | 8525 | if (sizeof (ac__type_new_)) |
212380e3 | 8526 | return 0; |
8527 | ; | |
8528 | return 0; | |
8529 | } | |
8530 | _ACEOF | |
8531 | rm -f conftest.$ac_objext | |
631ef239 | 8532 | if { (ac_try="$ac_compile" |
8533 | case "(($ac_try" in | |
8534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8535 | *) ac_try_echo=$ac_try;; | |
8536 | esac | |
8537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8538 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 8539 | ac_status=$? |
8540 | grep -v '^ *+' conftest.er1 >conftest.err | |
8541 | rm -f conftest.er1 | |
8542 | cat conftest.err >&5 | |
8543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 8544 | (exit $ac_status); } && { |
8545 | test -z "$ac_c_werror_flag" || | |
8546 | test ! -s conftest.err | |
8547 | } && test -s conftest.$ac_objext; then | |
212380e3 | 8548 | ac_cv_type_sa_family_t=yes |
8549 | else | |
8550 | echo "$as_me: failed program was:" >&5 | |
8551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8552 | ||
631ef239 | 8553 | ac_cv_type_sa_family_t=no |
212380e3 | 8554 | fi |
631ef239 | 8555 | |
8556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8557 | fi |
631ef239 | 8558 | { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5 |
8559 | echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; } | |
212380e3 | 8560 | if test $ac_cv_type_sa_family_t = yes; then |
8561 | : | |
8562 | else | |
8563 | ||
8564 | cat >>confdefs.h <<\_ACEOF | |
8565 | #define sa_family_t u_int16_t | |
8566 | _ACEOF | |
8567 | ||
8568 | fi | |
8569 | ||
8570 | ||
631ef239 | 8571 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
8572 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } | |
212380e3 | 8573 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
8574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8575 | else | |
8576 | cat >conftest.$ac_ext <<_ACEOF | |
8577 | /* confdefs.h. */ | |
8578 | _ACEOF | |
8579 | cat confdefs.h >>conftest.$ac_ext | |
8580 | cat >>conftest.$ac_ext <<_ACEOF | |
8581 | /* end confdefs.h. */ | |
8582 | $ac_includes_default | |
631ef239 | 8583 | typedef uintptr_t ac__type_new_; |
212380e3 | 8584 | int |
8585 | main () | |
8586 | { | |
631ef239 | 8587 | if ((ac__type_new_ *) 0) |
212380e3 | 8588 | return 0; |
631ef239 | 8589 | if (sizeof (ac__type_new_)) |
212380e3 | 8590 | return 0; |
8591 | ; | |
8592 | return 0; | |
8593 | } | |
8594 | _ACEOF | |
8595 | rm -f conftest.$ac_objext | |
631ef239 | 8596 | if { (ac_try="$ac_compile" |
8597 | case "(($ac_try" in | |
8598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8599 | *) ac_try_echo=$ac_try;; | |
8600 | esac | |
8601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8602 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 8603 | ac_status=$? |
8604 | grep -v '^ *+' conftest.er1 >conftest.err | |
8605 | rm -f conftest.er1 | |
8606 | cat conftest.err >&5 | |
8607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 8608 | (exit $ac_status); } && { |
8609 | test -z "$ac_c_werror_flag" || | |
8610 | test ! -s conftest.err | |
8611 | } && test -s conftest.$ac_objext; then | |
212380e3 | 8612 | ac_cv_type_uintptr_t=yes |
8613 | else | |
8614 | echo "$as_me: failed program was:" >&5 | |
8615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8616 | ||
631ef239 | 8617 | ac_cv_type_uintptr_t=no |
212380e3 | 8618 | fi |
631ef239 | 8619 | |
8620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8621 | fi |
631ef239 | 8622 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
8623 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } | |
212380e3 | 8624 | if test $ac_cv_type_uintptr_t = yes; then |
8625 | ||
8626 | cat >>confdefs.h <<_ACEOF | |
8627 | #define HAVE_UINTPTR_T 1 | |
8628 | _ACEOF | |
8629 | ||
8630 | ||
8631 | fi | |
8632 | ||
8633 | ||
8634 | ||
8635 | ||
8636 | ||
8637 | ||
8638 | ||
8639 | ||
8640 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
8641 | do | |
8642 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 | 8643 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8644 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8645 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 8646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8647 | else | |
8648 | cat >conftest.$ac_ext <<_ACEOF | |
8649 | /* confdefs.h. */ | |
8650 | _ACEOF | |
8651 | cat confdefs.h >>conftest.$ac_ext | |
8652 | cat >>conftest.$ac_ext <<_ACEOF | |
8653 | /* end confdefs.h. */ | |
8654 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8655 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8656 | #define $ac_func innocuous_$ac_func | |
8657 | ||
8658 | /* System header to define __stub macros and hopefully few prototypes, | |
8659 | which can conflict with char $ac_func (); below. | |
8660 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8661 | <limits.h> exists even on freestanding compilers. */ | |
8662 | ||
8663 | #ifdef __STDC__ | |
8664 | # include <limits.h> | |
8665 | #else | |
8666 | # include <assert.h> | |
8667 | #endif | |
8668 | ||
8669 | #undef $ac_func | |
8670 | ||
631ef239 | 8671 | /* Override any GCC internal prototype to avoid an error. |
8672 | Use char because int might match the return type of a GCC | |
8673 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 8674 | #ifdef __cplusplus |
8675 | extern "C" | |
212380e3 | 8676 | #endif |
212380e3 | 8677 | char $ac_func (); |
8678 | /* The GNU C library defines this for functions which it implements | |
8679 | to always fail with ENOSYS. Some functions are actually named | |
8680 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8681 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 8682 | choke me |
212380e3 | 8683 | #endif |
8684 | ||
8685 | int | |
8686 | main () | |
8687 | { | |
631ef239 | 8688 | return $ac_func (); |
212380e3 | 8689 | ; |
8690 | return 0; | |
8691 | } | |
8692 | _ACEOF | |
8693 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 8694 | if { (ac_try="$ac_link" |
8695 | case "(($ac_try" in | |
8696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8697 | *) ac_try_echo=$ac_try;; | |
8698 | esac | |
8699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8700 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 8701 | ac_status=$? |
8702 | grep -v '^ *+' conftest.er1 >conftest.err | |
8703 | rm -f conftest.er1 | |
8704 | cat conftest.err >&5 | |
8705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 8706 | (exit $ac_status); } && { |
8707 | test -z "$ac_c_werror_flag" || | |
8708 | test ! -s conftest.err | |
8709 | } && test -s conftest$ac_exeext && | |
8710 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 8711 | eval "$as_ac_var=yes" |
8712 | else | |
8713 | echo "$as_me: failed program was:" >&5 | |
8714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8715 | ||
631ef239 | 8716 | eval "$as_ac_var=no" |
212380e3 | 8717 | fi |
631ef239 | 8718 | |
8719 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 8720 | conftest$ac_exeext conftest.$ac_ext |
8721 | fi | |
631ef239 | 8722 | ac_res=`eval echo '${'$as_ac_var'}'` |
8723 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8724 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 8725 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8726 | cat >>confdefs.h <<_ACEOF | |
8727 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8728 | _ACEOF | |
8729 | ||
8730 | fi | |
8731 | done | |
8732 | ||
8733 | ||
8734 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
8735 | # for constant arguments. Useless! | |
631ef239 | 8736 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8737 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
212380e3 | 8738 | if test "${ac_cv_working_alloca_h+set}" = set; then |
8739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8740 | else | |
8741 | cat >conftest.$ac_ext <<_ACEOF | |
8742 | /* confdefs.h. */ | |
8743 | _ACEOF | |
8744 | cat confdefs.h >>conftest.$ac_ext | |
8745 | cat >>conftest.$ac_ext <<_ACEOF | |
8746 | /* end confdefs.h. */ | |
8747 | #include <alloca.h> | |
8748 | int | |
8749 | main () | |
8750 | { | |
8751 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 8752 | if (p) return 0; |
212380e3 | 8753 | ; |
8754 | return 0; | |
8755 | } | |
8756 | _ACEOF | |
8757 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 8758 | if { (ac_try="$ac_link" |
8759 | case "(($ac_try" in | |
8760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8761 | *) ac_try_echo=$ac_try;; | |
8762 | esac | |
8763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8764 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 8765 | ac_status=$? |
8766 | grep -v '^ *+' conftest.er1 >conftest.err | |
8767 | rm -f conftest.er1 | |
8768 | cat conftest.err >&5 | |
8769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 8770 | (exit $ac_status); } && { |
8771 | test -z "$ac_c_werror_flag" || | |
8772 | test ! -s conftest.err | |
8773 | } && test -s conftest$ac_exeext && | |
8774 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 8775 | ac_cv_working_alloca_h=yes |
8776 | else | |
8777 | echo "$as_me: failed program was:" >&5 | |
8778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8779 | ||
631ef239 | 8780 | ac_cv_working_alloca_h=no |
212380e3 | 8781 | fi |
631ef239 | 8782 | |
8783 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 8784 | conftest$ac_exeext conftest.$ac_ext |
8785 | fi | |
631ef239 | 8786 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
8787 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
212380e3 | 8788 | if test $ac_cv_working_alloca_h = yes; then |
8789 | ||
8790 | cat >>confdefs.h <<\_ACEOF | |
8791 | #define HAVE_ALLOCA_H 1 | |
8792 | _ACEOF | |
8793 | ||
8794 | fi | |
8795 | ||
631ef239 | 8796 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
8797 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
212380e3 | 8798 | if test "${ac_cv_func_alloca_works+set}" = set; then |
8799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8800 | else | |
8801 | cat >conftest.$ac_ext <<_ACEOF | |
8802 | /* confdefs.h. */ | |
8803 | _ACEOF | |
8804 | cat confdefs.h >>conftest.$ac_ext | |
8805 | cat >>conftest.$ac_ext <<_ACEOF | |
8806 | /* end confdefs.h. */ | |
8807 | #ifdef __GNUC__ | |
8808 | # define alloca __builtin_alloca | |
8809 | #else | |
8810 | # ifdef _MSC_VER | |
8811 | # include <malloc.h> | |
8812 | # define alloca _alloca | |
8813 | # else | |
631ef239 | 8814 | # ifdef HAVE_ALLOCA_H |
212380e3 | 8815 | # include <alloca.h> |
8816 | # else | |
8817 | # ifdef _AIX | |
8818 | #pragma alloca | |
8819 | # else | |
8820 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8821 | char *alloca (); | |
8822 | # endif | |
8823 | # endif | |
8824 | # endif | |
8825 | # endif | |
8826 | #endif | |
8827 | ||
8828 | int | |
8829 | main () | |
8830 | { | |
8831 | char *p = (char *) alloca (1); | |
631ef239 | 8832 | if (p) return 0; |
212380e3 | 8833 | ; |
8834 | return 0; | |
8835 | } | |
8836 | _ACEOF | |
8837 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 8838 | if { (ac_try="$ac_link" |
8839 | case "(($ac_try" in | |
8840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8841 | *) ac_try_echo=$ac_try;; | |
8842 | esac | |
8843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8844 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 8845 | ac_status=$? |
8846 | grep -v '^ *+' conftest.er1 >conftest.err | |
8847 | rm -f conftest.er1 | |
8848 | cat conftest.err >&5 | |
8849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 8850 | (exit $ac_status); } && { |
8851 | test -z "$ac_c_werror_flag" || | |
8852 | test ! -s conftest.err | |
8853 | } && test -s conftest$ac_exeext && | |
8854 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 8855 | ac_cv_func_alloca_works=yes |
8856 | else | |
8857 | echo "$as_me: failed program was:" >&5 | |
8858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8859 | ||
631ef239 | 8860 | ac_cv_func_alloca_works=no |
212380e3 | 8861 | fi |
631ef239 | 8862 | |
8863 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 8864 | conftest$ac_exeext conftest.$ac_ext |
8865 | fi | |
631ef239 | 8866 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8867 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
212380e3 | 8868 | |
8869 | if test $ac_cv_func_alloca_works = yes; then | |
8870 | ||
8871 | cat >>confdefs.h <<\_ACEOF | |
8872 | #define HAVE_ALLOCA 1 | |
8873 | _ACEOF | |
8874 | ||
8875 | else | |
8876 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
8877 | # that cause trouble. Some versions do not even contain alloca or | |
8878 | # contain a buggy version. If you still want to use their alloca, | |
8879 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8880 | ||
631ef239 | 8881 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 | 8882 | |
8883 | cat >>confdefs.h <<\_ACEOF | |
8884 | #define C_ALLOCA 1 | |
8885 | _ACEOF | |
8886 | ||
8887 | ||
631ef239 | 8888 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8889 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
212380e3 | 8890 | if test "${ac_cv_os_cray+set}" = set; then |
8891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8892 | else | |
8893 | cat >conftest.$ac_ext <<_ACEOF | |
8894 | /* confdefs.h. */ | |
8895 | _ACEOF | |
8896 | cat confdefs.h >>conftest.$ac_ext | |
8897 | cat >>conftest.$ac_ext <<_ACEOF | |
8898 | /* end confdefs.h. */ | |
631ef239 | 8899 | #if defined CRAY && ! defined CRAY2 |
212380e3 | 8900 | webecray |
8901 | #else | |
8902 | wenotbecray | |
8903 | #endif | |
8904 | ||
8905 | _ACEOF | |
8906 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8907 | $EGREP "webecray" >/dev/null 2>&1; then | |
8908 | ac_cv_os_cray=yes | |
8909 | else | |
8910 | ac_cv_os_cray=no | |
8911 | fi | |
8912 | rm -f conftest* | |
8913 | ||
8914 | fi | |
631ef239 | 8915 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8916 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
212380e3 | 8917 | if test $ac_cv_os_cray = yes; then |
8918 | for ac_func in _getb67 GETB67 getb67; do | |
8919 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 | 8920 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8921 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8922 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 8923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8924 | else | |
8925 | cat >conftest.$ac_ext <<_ACEOF | |
8926 | /* confdefs.h. */ | |
8927 | _ACEOF | |
8928 | cat confdefs.h >>conftest.$ac_ext | |
8929 | cat >>conftest.$ac_ext <<_ACEOF | |
8930 | /* end confdefs.h. */ | |
8931 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8932 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8933 | #define $ac_func innocuous_$ac_func | |
8934 | ||
8935 | /* System header to define __stub macros and hopefully few prototypes, | |
8936 | which can conflict with char $ac_func (); below. | |
8937 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8938 | <limits.h> exists even on freestanding compilers. */ | |
8939 | ||
8940 | #ifdef __STDC__ | |
8941 | # include <limits.h> | |
8942 | #else | |
8943 | # include <assert.h> | |
8944 | #endif | |
8945 | ||
8946 | #undef $ac_func | |
8947 | ||
631ef239 | 8948 | /* Override any GCC internal prototype to avoid an error. |
8949 | Use char because int might match the return type of a GCC | |
8950 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 8951 | #ifdef __cplusplus |
8952 | extern "C" | |
212380e3 | 8953 | #endif |
212380e3 | 8954 | char $ac_func (); |
8955 | /* The GNU C library defines this for functions which it implements | |
8956 | to always fail with ENOSYS. Some functions are actually named | |
8957 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8958 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 8959 | choke me |
212380e3 | 8960 | #endif |
8961 | ||
8962 | int | |
8963 | main () | |
8964 | { | |
631ef239 | 8965 | return $ac_func (); |
212380e3 | 8966 | ; |
8967 | return 0; | |
8968 | } | |
8969 | _ACEOF | |
8970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 8971 | if { (ac_try="$ac_link" |
8972 | case "(($ac_try" in | |
8973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8974 | *) ac_try_echo=$ac_try;; | |
8975 | esac | |
8976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8977 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 8978 | ac_status=$? |
8979 | grep -v '^ *+' conftest.er1 >conftest.err | |
8980 | rm -f conftest.er1 | |
8981 | cat conftest.err >&5 | |
8982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 8983 | (exit $ac_status); } && { |
8984 | test -z "$ac_c_werror_flag" || | |
8985 | test ! -s conftest.err | |
8986 | } && test -s conftest$ac_exeext && | |
8987 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 8988 | eval "$as_ac_var=yes" |
8989 | else | |
8990 | echo "$as_me: failed program was:" >&5 | |
8991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8992 | ||
631ef239 | 8993 | eval "$as_ac_var=no" |
212380e3 | 8994 | fi |
631ef239 | 8995 | |
8996 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 8997 | conftest$ac_exeext conftest.$ac_ext |
8998 | fi | |
631ef239 | 8999 | ac_res=`eval echo '${'$as_ac_var'}'` |
9000 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9001 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 9002 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9003 | ||
9004 | cat >>confdefs.h <<_ACEOF | |
9005 | #define CRAY_STACKSEG_END $ac_func | |
9006 | _ACEOF | |
9007 | ||
9008 | break | |
9009 | fi | |
9010 | ||
9011 | done | |
9012 | fi | |
9013 | ||
631ef239 | 9014 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
9015 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
212380e3 | 9016 | if test "${ac_cv_c_stack_direction+set}" = set; then |
9017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9018 | else | |
9019 | if test "$cross_compiling" = yes; then | |
9020 | ac_cv_c_stack_direction=0 | |
9021 | else | |
9022 | cat >conftest.$ac_ext <<_ACEOF | |
9023 | /* confdefs.h. */ | |
9024 | _ACEOF | |
9025 | cat confdefs.h >>conftest.$ac_ext | |
9026 | cat >>conftest.$ac_ext <<_ACEOF | |
9027 | /* end confdefs.h. */ | |
631ef239 | 9028 | $ac_includes_default |
212380e3 | 9029 | int |
9030 | find_stack_direction () | |
9031 | { | |
9032 | static char *addr = 0; | |
9033 | auto char dummy; | |
9034 | if (addr == 0) | |
9035 | { | |
9036 | addr = &dummy; | |
9037 | return find_stack_direction (); | |
9038 | } | |
9039 | else | |
9040 | return (&dummy > addr) ? 1 : -1; | |
9041 | } | |
9042 | ||
9043 | int | |
9044 | main () | |
9045 | { | |
631ef239 | 9046 | return find_stack_direction () < 0; |
212380e3 | 9047 | } |
9048 | _ACEOF | |
9049 | rm -f conftest$ac_exeext | |
631ef239 | 9050 | if { (ac_try="$ac_link" |
9051 | case "(($ac_try" in | |
9052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9053 | *) ac_try_echo=$ac_try;; | |
9054 | esac | |
9055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9056 | (eval "$ac_link") 2>&5 | |
212380e3 | 9057 | ac_status=$? |
9058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9059 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 | 9060 | { (case "(($ac_try" in |
9061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9062 | *) ac_try_echo=$ac_try;; | |
9063 | esac | |
9064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9065 | (eval "$ac_try") 2>&5 | |
212380e3 | 9066 | ac_status=$? |
9067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9068 | (exit $ac_status); }; }; then | |
9069 | ac_cv_c_stack_direction=1 | |
9070 | else | |
9071 | echo "$as_me: program exited with status $ac_status" >&5 | |
9072 | echo "$as_me: failed program was:" >&5 | |
9073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9074 | ||
9075 | ( exit $ac_status ) | |
9076 | ac_cv_c_stack_direction=-1 | |
9077 | fi | |
631ef239 | 9078 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 9079 | fi |
631ef239 | 9080 | |
9081 | ||
212380e3 | 9082 | fi |
631ef239 | 9083 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
9084 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
212380e3 | 9085 | |
9086 | cat >>confdefs.h <<_ACEOF | |
9087 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
9088 | _ACEOF | |
9089 | ||
9090 | ||
9091 | fi | |
9092 | ||
9093 | ||
9094 | ||
631ef239 | 9095 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
9096 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } | |
212380e3 | 9097 | if test "${ac_cv_func_nanosleep+set}" = set; then |
9098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9099 | else | |
9100 | cat >conftest.$ac_ext <<_ACEOF | |
9101 | /* confdefs.h. */ | |
9102 | _ACEOF | |
9103 | cat confdefs.h >>conftest.$ac_ext | |
9104 | cat >>conftest.$ac_ext <<_ACEOF | |
9105 | /* end confdefs.h. */ | |
9106 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. | |
9107 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9108 | #define nanosleep innocuous_nanosleep | |
9109 | ||
9110 | /* System header to define __stub macros and hopefully few prototypes, | |
9111 | which can conflict with char nanosleep (); below. | |
9112 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9113 | <limits.h> exists even on freestanding compilers. */ | |
9114 | ||
9115 | #ifdef __STDC__ | |
9116 | # include <limits.h> | |
9117 | #else | |
9118 | # include <assert.h> | |
9119 | #endif | |
9120 | ||
9121 | #undef nanosleep | |
9122 | ||
631ef239 | 9123 | /* Override any GCC internal prototype to avoid an error. |
9124 | Use char because int might match the return type of a GCC | |
9125 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 9126 | #ifdef __cplusplus |
9127 | extern "C" | |
212380e3 | 9128 | #endif |
212380e3 | 9129 | char nanosleep (); |
9130 | /* The GNU C library defines this for functions which it implements | |
9131 | to always fail with ENOSYS. Some functions are actually named | |
9132 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 9133 | #if defined __stub_nanosleep || defined __stub___nanosleep |
212380e3 | 9134 | choke me |
212380e3 | 9135 | #endif |
9136 | ||
9137 | int | |
9138 | main () | |
9139 | { | |
631ef239 | 9140 | return nanosleep (); |
212380e3 | 9141 | ; |
9142 | return 0; | |
9143 | } | |
9144 | _ACEOF | |
9145 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 9146 | if { (ac_try="$ac_link" |
9147 | case "(($ac_try" in | |
9148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9149 | *) ac_try_echo=$ac_try;; | |
9150 | esac | |
9151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9152 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 9153 | ac_status=$? |
9154 | grep -v '^ *+' conftest.er1 >conftest.err | |
9155 | rm -f conftest.er1 | |
9156 | cat conftest.err >&5 | |
9157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 9158 | (exit $ac_status); } && { |
9159 | test -z "$ac_c_werror_flag" || | |
9160 | test ! -s conftest.err | |
9161 | } && test -s conftest$ac_exeext && | |
9162 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 9163 | ac_cv_func_nanosleep=yes |
9164 | else | |
9165 | echo "$as_me: failed program was:" >&5 | |
9166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9167 | ||
631ef239 | 9168 | ac_cv_func_nanosleep=no |
212380e3 | 9169 | fi |
631ef239 | 9170 | |
9171 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 9172 | conftest$ac_exeext conftest.$ac_ext |
9173 | fi | |
631ef239 | 9174 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
9175 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } | |
212380e3 | 9176 | if test $ac_cv_func_nanosleep = yes; then |
9177 | : | |
9178 | else | |
631ef239 | 9179 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
9180 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } | |
212380e3 | 9181 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
9182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9183 | else | |
9184 | ac_check_lib_save_LIBS=$LIBS | |
9185 | LIBS="-lrt $LIBS" | |
9186 | cat >conftest.$ac_ext <<_ACEOF | |
9187 | /* confdefs.h. */ | |
9188 | _ACEOF | |
9189 | cat confdefs.h >>conftest.$ac_ext | |
9190 | cat >>conftest.$ac_ext <<_ACEOF | |
9191 | /* end confdefs.h. */ | |
9192 | ||
631ef239 | 9193 | /* Override any GCC internal prototype to avoid an error. |
9194 | Use char because int might match the return type of a GCC | |
9195 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 9196 | #ifdef __cplusplus |
9197 | extern "C" | |
9198 | #endif | |
212380e3 | 9199 | char nanosleep (); |
9200 | int | |
9201 | main () | |
9202 | { | |
631ef239 | 9203 | return nanosleep (); |
212380e3 | 9204 | ; |
9205 | return 0; | |
9206 | } | |
9207 | _ACEOF | |
9208 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 9209 | if { (ac_try="$ac_link" |
9210 | case "(($ac_try" in | |
9211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9212 | *) ac_try_echo=$ac_try;; | |
9213 | esac | |
9214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9215 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 9216 | ac_status=$? |
9217 | grep -v '^ *+' conftest.er1 >conftest.err | |
9218 | rm -f conftest.er1 | |
9219 | cat conftest.err >&5 | |
9220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 9221 | (exit $ac_status); } && { |
9222 | test -z "$ac_c_werror_flag" || | |
9223 | test ! -s conftest.err | |
9224 | } && test -s conftest$ac_exeext && | |
9225 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 9226 | ac_cv_lib_rt_nanosleep=yes |
9227 | else | |
9228 | echo "$as_me: failed program was:" >&5 | |
9229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9230 | ||
631ef239 | 9231 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 9232 | fi |
631ef239 | 9233 | |
9234 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 9235 | conftest$ac_exeext conftest.$ac_ext |
9236 | LIBS=$ac_check_lib_save_LIBS | |
9237 | fi | |
631ef239 | 9238 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
9239 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } | |
212380e3 | 9240 | if test $ac_cv_lib_rt_nanosleep = yes; then |
9241 | LIBS="${LIBS} -lrt" | |
9242 | else | |
631ef239 | 9243 | { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 |
9244 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; } | |
212380e3 | 9245 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then |
9246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9247 | else | |
9248 | ac_check_lib_save_LIBS=$LIBS | |
9249 | LIBS="-lposix4 $LIBS" | |
9250 | cat >conftest.$ac_ext <<_ACEOF | |
9251 | /* confdefs.h. */ | |
9252 | _ACEOF | |
9253 | cat confdefs.h >>conftest.$ac_ext | |
9254 | cat >>conftest.$ac_ext <<_ACEOF | |
9255 | /* end confdefs.h. */ | |
9256 | ||
631ef239 | 9257 | /* Override any GCC internal prototype to avoid an error. |
9258 | Use char because int might match the return type of a GCC | |
9259 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 9260 | #ifdef __cplusplus |
9261 | extern "C" | |
9262 | #endif | |
212380e3 | 9263 | char nanosleep (); |
9264 | int | |
9265 | main () | |
9266 | { | |
631ef239 | 9267 | return nanosleep (); |
212380e3 | 9268 | ; |
9269 | return 0; | |
9270 | } | |
9271 | _ACEOF | |
9272 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 9273 | if { (ac_try="$ac_link" |
9274 | case "(($ac_try" in | |
9275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9276 | *) ac_try_echo=$ac_try;; | |
9277 | esac | |
9278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9279 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 9280 | ac_status=$? |
9281 | grep -v '^ *+' conftest.er1 >conftest.err | |
9282 | rm -f conftest.er1 | |
9283 | cat conftest.err >&5 | |
9284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 9285 | (exit $ac_status); } && { |
9286 | test -z "$ac_c_werror_flag" || | |
9287 | test ! -s conftest.err | |
9288 | } && test -s conftest$ac_exeext && | |
9289 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 9290 | ac_cv_lib_posix4_nanosleep=yes |
9291 | else | |
9292 | echo "$as_me: failed program was:" >&5 | |
9293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9294 | ||
631ef239 | 9295 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 9296 | fi |
631ef239 | 9297 | |
9298 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 9299 | conftest$ac_exeext conftest.$ac_ext |
9300 | LIBS=$ac_check_lib_save_LIBS | |
9301 | fi | |
631ef239 | 9302 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 |
9303 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; } | |
212380e3 | 9304 | if test $ac_cv_lib_posix4_nanosleep = yes; then |
9305 | LIBS="${LIBS} -lposix4" | |
9306 | ||
9307 | fi | |
9308 | ||
9309 | fi | |
9310 | ||
9311 | fi | |
9312 | ||
9313 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
9314 | then | |
631ef239 | 9315 | { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5 |
9316 | echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 | 9317 | else |
9318 | ||
9319 | cat >>confdefs.h <<\_ACEOF | |
9320 | #define HAVE_NANOSLEEP 1 | |
9321 | _ACEOF | |
9322 | ||
9323 | fi | |
9324 | ||
631ef239 | 9325 | { echo "$as_me:$LINENO: checking for OpenSSL" >&5 |
9326 | echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; } | |
9327 | # Check whether --enable-openssl was given. | |
212380e3 | 9328 | if test "${enable_openssl+set}" = set; then |
631ef239 | 9329 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 | 9330 | else |
9331 | cf_enable_openssl="auto" | |
631ef239 | 9332 | fi |
9333 | ||
212380e3 | 9334 | |
9335 | if test "$cf_enable_openssl" != "no" ; then | |
9336 | cf_openssl_basedir="" | |
9337 | if test "$cf_enable_openssl" != "auto" && | |
9338 | test "$cf_enable_openssl" != "yes" ; then | |
9339 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
9340 | else | |
9341 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
9342 | /usr/local/openssl ; do | |
9343 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
9344 | cf_openssl_basedir="${dirs}" | |
9345 | break | |
9346 | fi | |
9347 | done | |
9348 | unset dirs | |
9349 | fi | |
9350 | if test ! -z "$cf_openssl_basedir"; then | |
9351 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
9352 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
9353 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
9354 | else | |
9355 | cf_openssl_basedir="" | |
9356 | fi | |
9357 | else | |
9358 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
9359 | cf_openssl_basedir="/usr" | |
9360 | fi | |
9361 | fi | |
9362 | ||
9363 | if test ! -z "$cf_openssl_basedir"; then | |
631ef239 | 9364 | { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5 |
9365 | echo "${ECHO_T}$cf_openssl_basedir" >&6; } | |
212380e3 | 9366 | cf_enable_openssl="yes" |
9367 | else | |
631ef239 | 9368 | { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5 |
9369 | echo "${ECHO_T}not found. Specify a correct path?" >&6; } | |
212380e3 | 9370 | cf_enable_openssl="no" |
9371 | fi | |
9372 | unset cf_openssl_basedir | |
9373 | else | |
631ef239 | 9374 | { echo "$as_me:$LINENO: result: disabled" >&5 |
9375 | echo "${ECHO_T}disabled" >&6; } | |
212380e3 | 9376 | fi |
9377 | ||
9378 | save_CPPFLAGS="$CPPFLAGS" | |
9379 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
9380 | save_LIBS="$LIBS" | |
9381 | LIBS="$LIBS $SSL_LIBS" | |
9382 | if test "$cf_enable_openssl" != no; then | |
631ef239 | 9383 | { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5 |
9384 | echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; } | |
212380e3 | 9385 | if test "$cross_compiling" = yes; then |
9386 | cf_openssl_version_ok=no | |
9387 | else | |
9388 | cat >conftest.$ac_ext <<_ACEOF | |
9389 | /* confdefs.h. */ | |
9390 | _ACEOF | |
9391 | cat confdefs.h >>conftest.$ac_ext | |
9392 | cat >>conftest.$ac_ext <<_ACEOF | |
9393 | /* end confdefs.h. */ | |
9394 | #include <openssl/opensslv.h> | |
9395 | #include <stdlib.h> | |
9396 | int | |
9397 | main () | |
9398 | { | |
9399 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
9400 | exit(0); else exit(1); | |
9401 | ; | |
9402 | return 0; | |
9403 | } | |
9404 | _ACEOF | |
9405 | rm -f conftest$ac_exeext | |
631ef239 | 9406 | if { (ac_try="$ac_link" |
9407 | case "(($ac_try" in | |
9408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9409 | *) ac_try_echo=$ac_try;; | |
9410 | esac | |
9411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9412 | (eval "$ac_link") 2>&5 | |
212380e3 | 9413 | ac_status=$? |
9414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9415 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 | 9416 | { (case "(($ac_try" in |
9417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9418 | *) ac_try_echo=$ac_try;; | |
9419 | esac | |
9420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9421 | (eval "$ac_try") 2>&5 | |
212380e3 | 9422 | ac_status=$? |
9423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9424 | (exit $ac_status); }; }; then | |
9425 | cf_openssl_version_ok=yes | |
9426 | else | |
9427 | echo "$as_me: program exited with status $ac_status" >&5 | |
9428 | echo "$as_me: failed program was:" >&5 | |
9429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9430 | ||
9431 | ( exit $ac_status ) | |
9432 | cf_openssl_version_ok=no | |
9433 | fi | |
631ef239 | 9434 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 9435 | fi |
9436 | ||
631ef239 | 9437 | |
9438 | ||
212380e3 | 9439 | if test "$cf_openssl_version_ok" = yes; then |
631ef239 | 9440 | { echo "$as_me:$LINENO: result: found" >&5 |
9441 | echo "${ECHO_T}found" >&6; } | |
212380e3 | 9442 | |
9443 | ENCSPEED=encspeed | |
9444 | ||
9445 | ||
9446 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
9447 | ||
631ef239 | 9448 | { echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5 |
9449 | echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; } | |
212380e3 | 9450 | if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then |
9451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9452 | else | |
9453 | ac_check_lib_save_LIBS=$LIBS | |
9454 | LIBS="-lcrypto $LIBS" | |
9455 | cat >conftest.$ac_ext <<_ACEOF | |
9456 | /* confdefs.h. */ | |
9457 | _ACEOF | |
9458 | cat confdefs.h >>conftest.$ac_ext | |
9459 | cat >>conftest.$ac_ext <<_ACEOF | |
9460 | /* end confdefs.h. */ | |
9461 | ||
631ef239 | 9462 | /* Override any GCC internal prototype to avoid an error. |
9463 | Use char because int might match the return type of a GCC | |
9464 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 9465 | #ifdef __cplusplus |
9466 | extern "C" | |
9467 | #endif | |
212380e3 | 9468 | char RSA_free (); |
9469 | int | |
9470 | main () | |
9471 | { | |
631ef239 | 9472 | return RSA_free (); |
212380e3 | 9473 | ; |
9474 | return 0; | |
9475 | } | |
9476 | _ACEOF | |
9477 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 9478 | if { (ac_try="$ac_link" |
9479 | case "(($ac_try" in | |
9480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9481 | *) ac_try_echo=$ac_try;; | |
9482 | esac | |
9483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9484 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 9485 | ac_status=$? |
9486 | grep -v '^ *+' conftest.er1 >conftest.err | |
9487 | rm -f conftest.er1 | |
9488 | cat conftest.err >&5 | |
9489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 9490 | (exit $ac_status); } && { |
9491 | test -z "$ac_c_werror_flag" || | |
9492 | test ! -s conftest.err | |
9493 | } && test -s conftest$ac_exeext && | |
9494 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 9495 | ac_cv_lib_crypto_RSA_free=yes |
9496 | else | |
9497 | echo "$as_me: failed program was:" >&5 | |
9498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9499 | ||
631ef239 | 9500 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 9501 | fi |
631ef239 | 9502 | |
9503 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 9504 | conftest$ac_exeext conftest.$ac_ext |
9505 | LIBS=$ac_check_lib_save_LIBS | |
9506 | fi | |
631ef239 | 9507 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5 |
9508 | echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; } | |
212380e3 | 9509 | if test $ac_cv_lib_crypto_RSA_free = yes; then |
9510 | cat >>confdefs.h <<_ACEOF | |
9511 | #define HAVE_LIBCRYPTO 1 | |
9512 | _ACEOF | |
9513 | ||
9514 | LIBS="-lcrypto $LIBS" | |
9515 | ||
9516 | fi | |
9517 | ||
9518 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
9519 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
9520 | else | |
631ef239 | 9521 | { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5 |
9522 | echo "${ECHO_T}no - OpenSSL support disabled" >&6; } | |
212380e3 | 9523 | fi |
9524 | fi | |
9525 | ||
9526 | CPPFLAGS="$save_CPPFLAGS" | |
9527 | LIBS="$save_LIBS" | |
9528 | ||
9529 | ||
9530 | ||
9531 | ||
9532 | ||
631ef239 | 9533 | # Check whether --with-zlib-path was given. |
212380e3 | 9534 | if test "${with_zlib_path+set}" = set; then |
631ef239 | 9535 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
9536 | fi | |
212380e3 | 9537 | |
631ef239 | 9538 | |
9539 | # Check whether --enable-zlib was given. | |
212380e3 | 9540 | if test "${enable_zlib+set}" = set; then |
631ef239 | 9541 | enableval=$enable_zlib; zlib=$enableval |
212380e3 | 9542 | else |
9543 | zlib=yes | |
631ef239 | 9544 | fi |
9545 | ||
212380e3 | 9546 | |
9547 | if test "$zlib" = yes; then | |
9548 | ||
9549 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
631ef239 | 9550 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 |
9551 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
212380e3 | 9552 | if test "${ac_cv_header_zlib_h+set}" = set; then |
9553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9554 | fi | |
631ef239 | 9555 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
9556 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
212380e3 | 9557 | else |
9558 | # Is the header compilable? | |
631ef239 | 9559 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
9560 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | |
212380e3 | 9561 | cat >conftest.$ac_ext <<_ACEOF |
9562 | /* confdefs.h. */ | |
9563 | _ACEOF | |
9564 | cat confdefs.h >>conftest.$ac_ext | |
9565 | cat >>conftest.$ac_ext <<_ACEOF | |
9566 | /* end confdefs.h. */ | |
9567 | $ac_includes_default | |
9568 | #include <zlib.h> | |
9569 | _ACEOF | |
9570 | rm -f conftest.$ac_objext | |
631ef239 | 9571 | if { (ac_try="$ac_compile" |
9572 | case "(($ac_try" in | |
9573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9574 | *) ac_try_echo=$ac_try;; | |
9575 | esac | |
9576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9577 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 9578 | ac_status=$? |
9579 | grep -v '^ *+' conftest.er1 >conftest.err | |
9580 | rm -f conftest.er1 | |
9581 | cat conftest.err >&5 | |
9582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 9583 | (exit $ac_status); } && { |
9584 | test -z "$ac_c_werror_flag" || | |
9585 | test ! -s conftest.err | |
9586 | } && test -s conftest.$ac_objext; then | |
212380e3 | 9587 | ac_header_compiler=yes |
9588 | else | |
9589 | echo "$as_me: failed program was:" >&5 | |
9590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9591 | ||
631ef239 | 9592 | ac_header_compiler=no |
212380e3 | 9593 | fi |
631ef239 | 9594 | |
9595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9596 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9597 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 | 9598 | |
9599 | # Is the header present? | |
631ef239 | 9600 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
9601 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | |
212380e3 | 9602 | cat >conftest.$ac_ext <<_ACEOF |
9603 | /* confdefs.h. */ | |
9604 | _ACEOF | |
9605 | cat confdefs.h >>conftest.$ac_ext | |
9606 | cat >>conftest.$ac_ext <<_ACEOF | |
9607 | /* end confdefs.h. */ | |
9608 | #include <zlib.h> | |
9609 | _ACEOF | |
631ef239 | 9610 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9611 | case "(($ac_try" in | |
9612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9613 | *) ac_try_echo=$ac_try;; | |
9614 | esac | |
9615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9616 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 | 9617 | ac_status=$? |
9618 | grep -v '^ *+' conftest.er1 >conftest.err | |
9619 | rm -f conftest.er1 | |
9620 | cat conftest.err >&5 | |
9621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 9622 | (exit $ac_status); } >/dev/null && { |
9623 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9624 | test ! -s conftest.err | |
9625 | }; then | |
212380e3 | 9626 | ac_header_preproc=yes |
9627 | else | |
9628 | echo "$as_me: failed program was:" >&5 | |
9629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9630 | ||
9631 | ac_header_preproc=no | |
9632 | fi | |
631ef239 | 9633 | |
212380e3 | 9634 | rm -f conftest.err conftest.$ac_ext |
631ef239 | 9635 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9636 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 | 9637 | |
9638 | # So? What about this header? | |
9639 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9640 | yes:no: ) | |
9641 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9642 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9643 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | |
9644 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
9645 | ac_header_preproc=yes | |
9646 | ;; | |
9647 | no:yes:* ) | |
9648 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
9649 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
9650 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
9651 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
9652 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
9653 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
9654 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9655 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
9656 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
9657 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
9658 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | |
9659 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 9660 | |
212380e3 | 9661 | ;; |
9662 | esac | |
631ef239 | 9663 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 |
9664 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
212380e3 | 9665 | if test "${ac_cv_header_zlib_h+set}" = set; then |
9666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9667 | else | |
9668 | ac_cv_header_zlib_h=$ac_header_preproc | |
9669 | fi | |
631ef239 | 9670 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
9671 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
212380e3 | 9672 | |
9673 | fi | |
9674 | if test $ac_cv_header_zlib_h = yes; then | |
9675 | ||
631ef239 | 9676 | { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5 |
9677 | echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; } | |
212380e3 | 9678 | if test "${ac_cv_lib_z_zlibVersion+set}" = set; then |
9679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9680 | else | |
9681 | ac_check_lib_save_LIBS=$LIBS | |
9682 | LIBS="-lz $LIBS" | |
9683 | cat >conftest.$ac_ext <<_ACEOF | |
9684 | /* confdefs.h. */ | |
9685 | _ACEOF | |
9686 | cat confdefs.h >>conftest.$ac_ext | |
9687 | cat >>conftest.$ac_ext <<_ACEOF | |
9688 | /* end confdefs.h. */ | |
9689 | ||
631ef239 | 9690 | /* Override any GCC internal prototype to avoid an error. |
9691 | Use char because int might match the return type of a GCC | |
9692 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 9693 | #ifdef __cplusplus |
9694 | extern "C" | |
9695 | #endif | |
212380e3 | 9696 | char zlibVersion (); |
9697 | int | |
9698 | main () | |
9699 | { | |
631ef239 | 9700 | return zlibVersion (); |
212380e3 | 9701 | ; |
9702 | return 0; | |
9703 | } | |
9704 | _ACEOF | |
9705 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 9706 | if { (ac_try="$ac_link" |
9707 | case "(($ac_try" in | |
9708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9709 | *) ac_try_echo=$ac_try;; | |
9710 | esac | |
9711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9712 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 9713 | ac_status=$? |
9714 | grep -v '^ *+' conftest.er1 >conftest.err | |
9715 | rm -f conftest.er1 | |
9716 | cat conftest.err >&5 | |
9717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 9718 | (exit $ac_status); } && { |
9719 | test -z "$ac_c_werror_flag" || | |
9720 | test ! -s conftest.err | |
9721 | } && test -s conftest$ac_exeext && | |
9722 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 9723 | ac_cv_lib_z_zlibVersion=yes |
9724 | else | |
9725 | echo "$as_me: failed program was:" >&5 | |
9726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9727 | ||
631ef239 | 9728 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 9729 | fi |
631ef239 | 9730 | |
9731 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 9732 | conftest$ac_exeext conftest.$ac_ext |
9733 | LIBS=$ac_check_lib_save_LIBS | |
9734 | fi | |
631ef239 | 9735 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5 |
9736 | echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; } | |
212380e3 | 9737 | if test $ac_cv_lib_z_zlibVersion = yes; then |
9738 | ||
9739 | ZLIB_LD=-lz | |
9740 | ||
9741 | ||
9742 | cat >>confdefs.h <<\_ACEOF | |
9743 | #define HAVE_LIBZ 1 | |
9744 | _ACEOF | |
9745 | ||
9746 | ||
9747 | else | |
9748 | zlib=no | |
9749 | fi | |
9750 | ||
9751 | ||
9752 | else | |
9753 | zlib=no | |
9754 | fi | |
9755 | ||
9756 | ||
9757 | ||
9758 | fi | |
9759 | ||
9760 | ||
631ef239 | 9761 | # Check whether --enable-poll was given. |
212380e3 | 9762 | if test "${enable_poll+set}" = set; then |
631ef239 | 9763 | enableval=$enable_poll; if test $enableval = yes; then |
212380e3 | 9764 | SELECT_TYPE_EXPLICIT="poll" |
9765 | else | |
9766 | use_poll=no | |
9767 | fi | |
9768 | ||
631ef239 | 9769 | fi |
9770 | ||
212380e3 | 9771 | |
631ef239 | 9772 | # Check whether --enable-select was given. |
212380e3 | 9773 | if test "${enable_select+set}" = set; then |
631ef239 | 9774 | enableval=$enable_select; if test $enableval = yes; then |
212380e3 | 9775 | SELECT_TYPE_EXPLICIT="select" |
9776 | else | |
9777 | use_select=no | |
9778 | fi | |
9779 | ||
631ef239 | 9780 | fi |
9781 | ||
212380e3 | 9782 | |
631ef239 | 9783 | # Check whether --enable-kqueue was given. |
212380e3 | 9784 | if test "${enable_kqueue+set}" = set; then |
631ef239 | 9785 | enableval=$enable_kqueue; if test $enableval = yes; then |
212380e3 | 9786 | SELECT_TYPE_EXPLICIT="kqueue" |
9787 | else | |
9788 | use_kqueue=no | |
9789 | fi | |
9790 | ||
631ef239 | 9791 | fi |
9792 | ||
212380e3 | 9793 | |
631ef239 | 9794 | # Check whether --enable-devpoll was given. |
212380e3 | 9795 | if test "${enable_devpoll+set}" = set; then |
631ef239 | 9796 | enableval=$enable_devpoll; if test $enableval = yes; then |
212380e3 | 9797 | SELECT_TYPE_EXPLICIT="devpoll" |
9798 | ||
9799 | ||
9800 | for ac_header in sys/devpoll.h devpoll.h | |
9801 | do | |
9802 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 | 9803 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9804 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9805 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9806 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 9807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9808 | fi | |
631ef239 | 9809 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9810 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9811 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 9812 | else |
9813 | # Is the header compilable? | |
631ef239 | 9814 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9815 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 | 9816 | cat >conftest.$ac_ext <<_ACEOF |
9817 | /* confdefs.h. */ | |
9818 | _ACEOF | |
9819 | cat confdefs.h >>conftest.$ac_ext | |
9820 | cat >>conftest.$ac_ext <<_ACEOF | |
9821 | /* end confdefs.h. */ | |
9822 | $ac_includes_default | |
9823 | #include <$ac_header> | |
9824 | _ACEOF | |
9825 | rm -f conftest.$ac_objext | |
631ef239 | 9826 | if { (ac_try="$ac_compile" |
9827 | case "(($ac_try" in | |
9828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9829 | *) ac_try_echo=$ac_try;; | |
9830 | esac | |
9831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9832 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 9833 | ac_status=$? |
9834 | grep -v '^ *+' conftest.er1 >conftest.err | |
9835 | rm -f conftest.er1 | |
9836 | cat conftest.err >&5 | |
9837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 9838 | (exit $ac_status); } && { |
9839 | test -z "$ac_c_werror_flag" || | |
9840 | test ! -s conftest.err | |
9841 | } && test -s conftest.$ac_objext; then | |
212380e3 | 9842 | ac_header_compiler=yes |
9843 | else | |
9844 | echo "$as_me: failed program was:" >&5 | |
9845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9846 | ||
631ef239 | 9847 | ac_header_compiler=no |
212380e3 | 9848 | fi |
631ef239 | 9849 | |
9850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9851 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9852 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 | 9853 | |
9854 | # Is the header present? | |
631ef239 | 9855 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9856 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 | 9857 | cat >conftest.$ac_ext <<_ACEOF |
9858 | /* confdefs.h. */ | |
9859 | _ACEOF | |
9860 | cat confdefs.h >>conftest.$ac_ext | |
9861 | cat >>conftest.$ac_ext <<_ACEOF | |
9862 | /* end confdefs.h. */ | |
9863 | #include <$ac_header> | |
9864 | _ACEOF | |
631ef239 | 9865 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9866 | case "(($ac_try" in | |
9867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9868 | *) ac_try_echo=$ac_try;; | |
9869 | esac | |
9870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9871 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 | 9872 | ac_status=$? |
9873 | grep -v '^ *+' conftest.er1 >conftest.err | |
9874 | rm -f conftest.er1 | |
9875 | cat conftest.err >&5 | |
9876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 9877 | (exit $ac_status); } >/dev/null && { |
9878 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9879 | test ! -s conftest.err | |
9880 | }; then | |
212380e3 | 9881 | ac_header_preproc=yes |
9882 | else | |
9883 | echo "$as_me: failed program was:" >&5 | |
9884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9885 | ||
9886 | ac_header_preproc=no | |
9887 | fi | |
631ef239 | 9888 | |
212380e3 | 9889 | rm -f conftest.err conftest.$ac_ext |
631ef239 | 9890 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9891 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 | 9892 | |
9893 | # So? What about this header? | |
9894 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9895 | yes:no: ) | |
9896 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9897 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9898 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9899 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9900 | ac_header_preproc=yes | |
9901 | ;; | |
9902 | no:yes:* ) | |
9903 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9904 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9905 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9906 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9907 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9908 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9909 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9910 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9911 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9912 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9913 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9914 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 9915 | |
212380e3 | 9916 | ;; |
9917 | esac | |
631ef239 | 9918 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9919 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9920 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 9921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9922 | else | |
9923 | eval "$as_ac_Header=\$ac_header_preproc" | |
9924 | fi | |
631ef239 | 9925 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9926 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9927 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 9928 | |
9929 | fi | |
9930 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9931 | cat >>confdefs.h <<_ACEOF | |
9932 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9933 | _ACEOF | |
9934 | ||
9935 | fi | |
9936 | ||
9937 | done | |
9938 | ||
9939 | else | |
9940 | use_devpoll=no; | |
9941 | fi | |
9942 | ||
631ef239 | 9943 | fi |
9944 | ||
212380e3 | 9945 | |
631ef239 | 9946 | # Check whether --enable-epoll was given. |
212380e3 | 9947 | if test "${enable_epoll+set}" = set; then |
631ef239 | 9948 | enableval=$enable_epoll; if test $enableval = yes; then |
212380e3 | 9949 | SELECT_TYPE_EXPLICIT="epoll" |
3ad1a781 | 9950 | |
9951 | for ac_func in epoll_ctl | |
9952 | do | |
9953 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 | 9954 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9955 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
9956 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
3ad1a781 | 9957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9958 | else | |
9959 | cat >conftest.$ac_ext <<_ACEOF | |
9960 | /* confdefs.h. */ | |
9961 | _ACEOF | |
9962 | cat confdefs.h >>conftest.$ac_ext | |
9963 | cat >>conftest.$ac_ext <<_ACEOF | |
9964 | /* end confdefs.h. */ | |
9965 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9966 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9967 | #define $ac_func innocuous_$ac_func | |
9968 | ||
9969 | /* System header to define __stub macros and hopefully few prototypes, | |
9970 | which can conflict with char $ac_func (); below. | |
9971 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9972 | <limits.h> exists even on freestanding compilers. */ | |
9973 | ||
9974 | #ifdef __STDC__ | |
9975 | # include <limits.h> | |
9976 | #else | |
9977 | # include <assert.h> | |
9978 | #endif | |
9979 | ||
9980 | #undef $ac_func | |
9981 | ||
631ef239 | 9982 | /* Override any GCC internal prototype to avoid an error. |
9983 | Use char because int might match the return type of a GCC | |
9984 | builtin and then its argument prototype would still apply. */ | |
3ad1a781 | 9985 | #ifdef __cplusplus |
9986 | extern "C" | |
3ad1a781 | 9987 | #endif |
3ad1a781 | 9988 | char $ac_func (); |
9989 | /* The GNU C library defines this for functions which it implements | |
9990 | to always fail with ENOSYS. Some functions are actually named | |
9991 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 9992 | #if defined __stub_$ac_func || defined __stub___$ac_func |
3ad1a781 | 9993 | choke me |
3ad1a781 | 9994 | #endif |
9995 | ||
9996 | int | |
9997 | main () | |
9998 | { | |
631ef239 | 9999 | return $ac_func (); |
3ad1a781 | 10000 | ; |
10001 | return 0; | |
10002 | } | |
10003 | _ACEOF | |
10004 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 10005 | if { (ac_try="$ac_link" |
10006 | case "(($ac_try" in | |
10007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10008 | *) ac_try_echo=$ac_try;; | |
10009 | esac | |
10010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10011 | (eval "$ac_link") 2>conftest.er1 | |
3ad1a781 | 10012 | ac_status=$? |
10013 | grep -v '^ *+' conftest.er1 >conftest.err | |
10014 | rm -f conftest.er1 | |
10015 | cat conftest.err >&5 | |
10016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 10017 | (exit $ac_status); } && { |
10018 | test -z "$ac_c_werror_flag" || | |
10019 | test ! -s conftest.err | |
10020 | } && test -s conftest$ac_exeext && | |
10021 | $as_test_x conftest$ac_exeext; then | |
3ad1a781 | 10022 | eval "$as_ac_var=yes" |
10023 | else | |
10024 | echo "$as_me: failed program was:" >&5 | |
10025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10026 | ||
631ef239 | 10027 | eval "$as_ac_var=no" |
3ad1a781 | 10028 | fi |
631ef239 | 10029 | |
10030 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
3ad1a781 | 10031 | conftest$ac_exeext conftest.$ac_ext |
10032 | fi | |
631ef239 | 10033 | ac_res=`eval echo '${'$as_ac_var'}'` |
10034 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10035 | echo "${ECHO_T}$ac_res" >&6; } | |
3ad1a781 | 10036 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10037 | cat >>confdefs.h <<_ACEOF | |
10038 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10039 | _ACEOF | |
10040 | haveepoll=yes | |
10041 | else | |
10042 | haveepoll=no | |
10043 | fi | |
10044 | done | |
10045 | ||
212380e3 | 10046 | else |
10047 | use_epoll=no | |
10048 | fi | |
10049 | ||
631ef239 | 10050 | fi |
10051 | ||
212380e3 | 10052 | |
10053 | ||
631ef239 | 10054 | { echo "$as_me:$LINENO: checking whether to modify confdir" >&5 |
10055 | echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; } | |
212380e3 | 10056 | |
631ef239 | 10057 | # Check whether --with-confdir was given. |
212380e3 | 10058 | if test "${with_confdir+set}" = set; then |
631ef239 | 10059 | withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'` |
10060 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10061 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 10062 | |
10063 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10064 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10065 | ac_define_dir=`eval echo $confdir` | |
10066 | ac_define_dir=`eval echo $ac_define_dir` | |
10067 | ETC_DIR="$ac_define_dir" | |
10068 | ||
10069 | ||
10070 | cat >>confdefs.h <<_ACEOF | |
10071 | #define ETC_DIR "$ac_define_dir" | |
10072 | _ACEOF | |
10073 | ||
10074 | ||
10075 | ||
10076 | ||
10077 | confdir=`( | |
10078 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10079 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10080 | eval echo \""$confdir"\" | |
10081 | )` | |
10082 | ||
10083 | ||
10084 | else | |
10085 | confdir='${prefix}/etc' | |
631ef239 | 10086 | { echo "$as_me:$LINENO: result: no" >&5 |
10087 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10088 | |
10089 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10090 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10091 | ac_define_dir=`eval echo $confdir` | |
10092 | ac_define_dir=`eval echo $ac_define_dir` | |
10093 | ETC_DIR="$ac_define_dir" | |
10094 | ||
10095 | ||
10096 | cat >>confdefs.h <<_ACEOF | |
10097 | #define ETC_DIR "$ac_define_dir" | |
10098 | _ACEOF | |
10099 | ||
10100 | ||
10101 | ||
10102 | ||
10103 | confdir=`( | |
10104 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10105 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10106 | eval echo \""$confdir"\" | |
10107 | )` | |
10108 | ||
10109 | ||
10110 | ||
631ef239 | 10111 | fi |
10112 | ||
212380e3 | 10113 | |
10114 | ||
631ef239 | 10115 | { echo "$as_me:$LINENO: checking whether to modify logdir" >&5 |
10116 | echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; } | |
212380e3 | 10117 | |
631ef239 | 10118 | # Check whether --with-logdir was given. |
212380e3 | 10119 | if test "${with_logdir+set}" = set; then |
631ef239 | 10120 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
10121 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10122 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 10123 | |
10124 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10125 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10126 | ac_define_dir=`eval echo $logdir` | |
10127 | ac_define_dir=`eval echo $ac_define_dir` | |
10128 | LOG_DIR="$ac_define_dir" | |
10129 | ||
10130 | ||
10131 | cat >>confdefs.h <<_ACEOF | |
10132 | #define LOG_DIR "$ac_define_dir" | |
10133 | _ACEOF | |
10134 | ||
10135 | ||
10136 | ||
10137 | ||
10138 | logdir=`( | |
10139 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10140 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10141 | eval echo \""$logdir"\" | |
10142 | )` | |
10143 | ||
10144 | ||
10145 | else | |
10146 | logdir='${prefix}/logs' | |
631ef239 | 10147 | { echo "$as_me:$LINENO: result: no" >&5 |
10148 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10149 | |
10150 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10151 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10152 | ac_define_dir=`eval echo $logdir` | |
10153 | ac_define_dir=`eval echo $ac_define_dir` | |
10154 | LOG_DIR="$ac_define_dir" | |
10155 | ||
10156 | ||
10157 | cat >>confdefs.h <<_ACEOF | |
10158 | #define LOG_DIR "$ac_define_dir" | |
10159 | _ACEOF | |
10160 | ||
10161 | ||
10162 | ||
10163 | ||
10164 | logdir=`( | |
10165 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10166 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10167 | eval echo \""$logdir"\" | |
10168 | )` | |
10169 | ||
10170 | ||
10171 | ||
631ef239 | 10172 | fi |
10173 | ||
212380e3 | 10174 | |
10175 | ||
631ef239 | 10176 | { echo "$as_me:$LINENO: checking whether to modify helpdir" >&5 |
10177 | echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; } | |
212380e3 | 10178 | |
631ef239 | 10179 | # Check whether --with-helpdir was given. |
212380e3 | 10180 | if test "${with_helpdir+set}" = set; then |
631ef239 | 10181 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
10182 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10183 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 10184 | |
10185 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10186 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10187 | ac_define_dir=`eval echo $helpdir` | |
10188 | ac_define_dir=`eval echo $ac_define_dir` | |
10189 | HELP_DIR="$ac_define_dir" | |
10190 | ||
10191 | ||
10192 | cat >>confdefs.h <<_ACEOF | |
10193 | #define HELP_DIR "$ac_define_dir" | |
10194 | _ACEOF | |
10195 | ||
10196 | ||
10197 | ||
10198 | ||
10199 | helpdir=`( | |
10200 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10201 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10202 | eval echo \""$helpdir"\" | |
10203 | )` | |
10204 | ||
10205 | ||
10206 | else | |
10207 | helpdir='${prefix}/help' | |
631ef239 | 10208 | { echo "$as_me:$LINENO: result: no" >&5 |
10209 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10210 | |
10211 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10212 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10213 | ac_define_dir=`eval echo $helpdir` | |
10214 | ac_define_dir=`eval echo $ac_define_dir` | |
10215 | HELP_DIR="$ac_define_dir" | |
10216 | ||
10217 | ||
10218 | cat >>confdefs.h <<_ACEOF | |
10219 | #define HELP_DIR "$ac_define_dir" | |
10220 | _ACEOF | |
10221 | ||
10222 | ||
10223 | ||
10224 | ||
10225 | helpdir=`( | |
10226 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10227 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10228 | eval echo \""$helpdir"\" | |
10229 | )` | |
10230 | ||
10231 | ||
10232 | ||
631ef239 | 10233 | fi |
10234 | ||
212380e3 | 10235 | |
10236 | ||
631ef239 | 10237 | { echo "$as_me:$LINENO: checking whether to modify moduledir" >&5 |
10238 | echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; } | |
212380e3 | 10239 | |
631ef239 | 10240 | # Check whether --with-moduledir was given. |
212380e3 | 10241 | if test "${with_moduledir+set}" = set; then |
631ef239 | 10242 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
10243 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10244 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 10245 | |
10246 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10247 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10248 | ac_define_dir=`eval echo $moduledir` | |
10249 | ac_define_dir=`eval echo $ac_define_dir` | |
10250 | MODULE_DIR="$ac_define_dir" | |
10251 | ||
10252 | ||
10253 | cat >>confdefs.h <<_ACEOF | |
10254 | #define MODULE_DIR "$ac_define_dir" | |
10255 | _ACEOF | |
10256 | ||
10257 | ||
10258 | ||
10259 | ||
10260 | moduledir=`( | |
10261 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10262 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10263 | eval echo \""$moduledir"\" | |
10264 | )` | |
10265 | ||
10266 | ||
10267 | else | |
10268 | moduledir='${prefix}/modules' | |
631ef239 | 10269 | { echo "$as_me:$LINENO: result: no" >&5 |
10270 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10271 | |
10272 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10273 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10274 | ac_define_dir=`eval echo $moduledir` | |
10275 | ac_define_dir=`eval echo $ac_define_dir` | |
10276 | MODULE_DIR="$ac_define_dir" | |
10277 | ||
10278 | ||
10279 | cat >>confdefs.h <<_ACEOF | |
10280 | #define MODULE_DIR "$ac_define_dir" | |
10281 | _ACEOF | |
10282 | ||
10283 | ||
10284 | ||
10285 | ||
10286 | moduledir=`( | |
10287 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10288 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10289 | eval echo \""$moduledir"\" | |
10290 | )` | |
10291 | ||
10292 | ||
10293 | ||
631ef239 | 10294 | fi |
10295 | ||
212380e3 | 10296 | |
10297 | if test ! -z "$SELECT_TYPE_EXPLICIT"; then | |
10298 | SELECT_TYPE="$SELECT_TYPE_EXPLICIT"; | |
10299 | echo "Forcing $SELECT_TYPE to be enabled" | |
10300 | else | |
10301 | ||
10302 | if test ! "x$use_select" = "xno"; then | |
10303 | ||
10304 | for ac_func in select | |
10305 | do | |
10306 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 | 10307 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10308 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10309 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 10310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10311 | else | |
10312 | cat >conftest.$ac_ext <<_ACEOF | |
10313 | /* confdefs.h. */ | |
10314 | _ACEOF | |
10315 | cat confdefs.h >>conftest.$ac_ext | |
10316 | cat >>conftest.$ac_ext <<_ACEOF | |
10317 | /* end confdefs.h. */ | |
10318 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10319 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10320 | #define $ac_func innocuous_$ac_func | |
10321 | ||
10322 | /* System header to define __stub macros and hopefully few prototypes, | |
10323 | which can conflict with char $ac_func (); below. | |
10324 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10325 | <limits.h> exists even on freestanding compilers. */ | |
10326 | ||
10327 | #ifdef __STDC__ | |
10328 | # include <limits.h> | |
10329 | #else | |
10330 | # include <assert.h> | |
10331 | #endif | |
10332 | ||
10333 | #undef $ac_func | |
10334 | ||
631ef239 | 10335 | /* Override any GCC internal prototype to avoid an error. |
10336 | Use char because int might match the return type of a GCC | |
10337 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 10338 | #ifdef __cplusplus |
10339 | extern "C" | |
212380e3 | 10340 | #endif |
212380e3 | 10341 | char $ac_func (); |
10342 | /* The GNU C library defines this for functions which it implements | |
10343 | to always fail with ENOSYS. Some functions are actually named | |
10344 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10345 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10346 | choke me |
212380e3 | 10347 | #endif |
10348 | ||
10349 | int | |
10350 | main () | |
10351 | { | |
631ef239 | 10352 | return $ac_func (); |
212380e3 | 10353 | ; |
10354 | return 0; | |
10355 | } | |
10356 | _ACEOF | |
10357 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 10358 | if { (ac_try="$ac_link" |
10359 | case "(($ac_try" in | |
10360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10361 | *) ac_try_echo=$ac_try;; | |
10362 | esac | |
10363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10364 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 10365 | ac_status=$? |
10366 | grep -v '^ *+' conftest.er1 >conftest.err | |
10367 | rm -f conftest.er1 | |
10368 | cat conftest.err >&5 | |
10369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 10370 | (exit $ac_status); } && { |
10371 | test -z "$ac_c_werror_flag" || | |
10372 | test ! -s conftest.err | |
10373 | } && test -s conftest$ac_exeext && | |
10374 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 10375 | eval "$as_ac_var=yes" |
10376 | else | |
10377 | echo "$as_me: failed program was:" >&5 | |
10378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10379 | ||
631ef239 | 10380 | eval "$as_ac_var=no" |
212380e3 | 10381 | fi |
631ef239 | 10382 | |
10383 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 10384 | conftest$ac_exeext conftest.$ac_ext |
10385 | fi | |
631ef239 | 10386 | ac_res=`eval echo '${'$as_ac_var'}'` |
10387 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10388 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 10389 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10390 | cat >>confdefs.h <<_ACEOF | |
10391 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10392 | _ACEOF | |
10393 | haveselect=yes | |
10394 | else | |
10395 | haveselect=no | |
10396 | fi | |
10397 | done | |
10398 | ||
10399 | if test "x$haveselect" = "xyes" ; then | |
10400 | SELECT_TYPE="select" | |
10401 | fi | |
10402 | fi | |
10403 | ||
10404 | if test ! "x$use_poll" = "xno"; then | |
10405 | ||
10406 | for ac_func in poll | |
10407 | do | |
10408 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 | 10409 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10410 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10411 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 10412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10413 | else | |
10414 | cat >conftest.$ac_ext <<_ACEOF | |
10415 | /* confdefs.h. */ | |
10416 | _ACEOF | |
10417 | cat confdefs.h >>conftest.$ac_ext | |
10418 | cat >>conftest.$ac_ext <<_ACEOF | |
10419 | /* end confdefs.h. */ | |
10420 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10421 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10422 | #define $ac_func innocuous_$ac_func | |
10423 | ||
10424 | /* System header to define __stub macros and hopefully few prototypes, | |
10425 | which can conflict with char $ac_func (); below. | |
10426 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10427 | <limits.h> exists even on freestanding compilers. */ | |
10428 | ||
10429 | #ifdef __STDC__ | |
10430 | # include <limits.h> | |
10431 | #else | |
10432 | # include <assert.h> | |
10433 | #endif | |
10434 | ||
10435 | #undef $ac_func | |
10436 | ||
631ef239 | 10437 | /* Override any GCC internal prototype to avoid an error. |
10438 | Use char because int might match the return type of a GCC | |
10439 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 10440 | #ifdef __cplusplus |
10441 | extern "C" | |
212380e3 | 10442 | #endif |
212380e3 | 10443 | char $ac_func (); |
10444 | /* The GNU C library defines this for functions which it implements | |
10445 | to always fail with ENOSYS. Some functions are actually named | |
10446 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10447 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10448 | choke me |
212380e3 | 10449 | #endif |
10450 | ||
10451 | int | |
10452 | main () | |
10453 | { | |
631ef239 | 10454 | return $ac_func (); |
212380e3 | 10455 | ; |
10456 | return 0; | |
10457 | } | |
10458 | _ACEOF | |
10459 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 10460 | if { (ac_try="$ac_link" |
10461 | case "(($ac_try" in | |
10462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10463 | *) ac_try_echo=$ac_try;; | |
10464 | esac | |
10465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10466 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 10467 | ac_status=$? |
10468 | grep -v '^ *+' conftest.er1 >conftest.err | |
10469 | rm -f conftest.er1 | |
10470 | cat conftest.err >&5 | |
10471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 10472 | (exit $ac_status); } && { |
10473 | test -z "$ac_c_werror_flag" || | |
10474 | test ! -s conftest.err | |
10475 | } && test -s conftest$ac_exeext && | |
10476 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 10477 | eval "$as_ac_var=yes" |
10478 | else | |
10479 | echo "$as_me: failed program was:" >&5 | |
10480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10481 | ||
631ef239 | 10482 | eval "$as_ac_var=no" |
212380e3 | 10483 | fi |
631ef239 | 10484 | |
10485 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 10486 | conftest$ac_exeext conftest.$ac_ext |
10487 | fi | |
631ef239 | 10488 | ac_res=`eval echo '${'$as_ac_var'}'` |
10489 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10490 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 10491 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10492 | cat >>confdefs.h <<_ACEOF | |
10493 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10494 | _ACEOF | |
10495 | havepoll=yes | |
10496 | else | |
10497 | havepoll=no | |
10498 | fi | |
10499 | done | |
10500 | ||
10501 | if test "x$havepoll" = "xyes" ; then | |
10502 | SELECT_TYPE="poll" | |
10503 | fi | |
10504 | fi | |
10505 | ||
10506 | if test ! "x$use_devpoll" = "xno"; then | |
631ef239 | 10507 | { echo "$as_me:$LINENO: checking for /dev/poll" >&5 |
10508 | echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; } | |
212380e3 | 10509 | if test -c "/dev/poll"; then |
631ef239 | 10510 | { echo "$as_me:$LINENO: result: yes" >&5 |
10511 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 10512 | |
10513 | ||
10514 | for ac_header in devpoll.h sys/devpoll.h | |
10515 | do | |
10516 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 | 10517 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10518 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10519 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10520 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 10521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10522 | fi | |
631ef239 | 10523 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10524 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10525 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 10526 | else |
10527 | # Is the header compilable? | |
631ef239 | 10528 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10529 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 | 10530 | cat >conftest.$ac_ext <<_ACEOF |
10531 | /* confdefs.h. */ | |
10532 | _ACEOF | |
10533 | cat confdefs.h >>conftest.$ac_ext | |
10534 | cat >>conftest.$ac_ext <<_ACEOF | |
10535 | /* end confdefs.h. */ | |
10536 | $ac_includes_default | |
10537 | #include <$ac_header> | |
10538 | _ACEOF | |
10539 | rm -f conftest.$ac_objext | |
631ef239 | 10540 | if { (ac_try="$ac_compile" |
10541 | case "(($ac_try" in | |
10542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10543 | *) ac_try_echo=$ac_try;; | |
10544 | esac | |
10545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10546 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 10547 | ac_status=$? |
10548 | grep -v '^ *+' conftest.er1 >conftest.err | |
10549 | rm -f conftest.er1 | |
10550 | cat conftest.err >&5 | |
10551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 10552 | (exit $ac_status); } && { |
10553 | test -z "$ac_c_werror_flag" || | |
10554 | test ! -s conftest.err | |
10555 | } && test -s conftest.$ac_objext; then | |
212380e3 | 10556 | ac_header_compiler=yes |
10557 | else | |
10558 | echo "$as_me: failed program was:" >&5 | |
10559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10560 | ||
631ef239 | 10561 | ac_header_compiler=no |
212380e3 | 10562 | fi |
631ef239 | 10563 | |
10564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10565 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10566 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 | 10567 | |
10568 | # Is the header present? | |
631ef239 | 10569 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10570 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 | 10571 | cat >conftest.$ac_ext <<_ACEOF |
10572 | /* confdefs.h. */ | |
10573 | _ACEOF | |
10574 | cat confdefs.h >>conftest.$ac_ext | |
10575 | cat >>conftest.$ac_ext <<_ACEOF | |
10576 | /* end confdefs.h. */ | |
10577 | #include <$ac_header> | |
10578 | _ACEOF | |
631ef239 | 10579 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10580 | case "(($ac_try" in | |
10581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10582 | *) ac_try_echo=$ac_try;; | |
10583 | esac | |
10584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10585 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 | 10586 | ac_status=$? |
10587 | grep -v '^ *+' conftest.er1 >conftest.err | |
10588 | rm -f conftest.er1 | |
10589 | cat conftest.err >&5 | |
10590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 10591 | (exit $ac_status); } >/dev/null && { |
10592 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10593 | test ! -s conftest.err | |
10594 | }; then | |
212380e3 | 10595 | ac_header_preproc=yes |
10596 | else | |
10597 | echo "$as_me: failed program was:" >&5 | |
10598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10599 | ||
10600 | ac_header_preproc=no | |
10601 | fi | |
631ef239 | 10602 | |
212380e3 | 10603 | rm -f conftest.err conftest.$ac_ext |
631ef239 | 10604 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10605 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 | 10606 | |
10607 | # So? What about this header? | |
10608 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10609 | yes:no: ) | |
10610 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10611 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10612 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10613 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10614 | ac_header_preproc=yes | |
10615 | ;; | |
10616 | no:yes:* ) | |
10617 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10618 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10619 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10620 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10621 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10622 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10623 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10624 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10625 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10626 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10627 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10628 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 10629 | |
212380e3 | 10630 | ;; |
10631 | esac | |
631ef239 | 10632 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10633 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10634 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 10635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10636 | else | |
10637 | eval "$as_ac_Header=\$ac_header_preproc" | |
10638 | fi | |
631ef239 | 10639 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10640 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10641 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 10642 | |
10643 | fi | |
10644 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10645 | cat >>confdefs.h <<_ACEOF | |
10646 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10647 | _ACEOF | |
10648 | ||
10649 | fi | |
10650 | ||
10651 | done | |
10652 | ||
10653 | SELECT_TYPE="devpoll" | |
10654 | else | |
631ef239 | 10655 | { echo "$as_me:$LINENO: result: no" >&5 |
10656 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10657 | fi |
10658 | fi | |
10659 | ||
10660 | if test ! "x$use_kqueue" = "xno"; then | |
10661 | ||
10662 | for ac_func in kevent | |
10663 | do | |
10664 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 | 10665 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10666 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10667 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 10668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10669 | else | |
10670 | cat >conftest.$ac_ext <<_ACEOF | |
10671 | /* confdefs.h. */ | |
10672 | _ACEOF | |
10673 | cat confdefs.h >>conftest.$ac_ext | |
10674 | cat >>conftest.$ac_ext <<_ACEOF | |
10675 | /* end confdefs.h. */ | |
10676 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10677 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10678 | #define $ac_func innocuous_$ac_func | |
10679 | ||
10680 | /* System header to define __stub macros and hopefully few prototypes, | |
10681 | which can conflict with char $ac_func (); below. | |
10682 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10683 | <limits.h> exists even on freestanding compilers. */ | |
10684 | ||
10685 | #ifdef __STDC__ | |
10686 | # include <limits.h> | |
10687 | #else | |
10688 | # include <assert.h> | |
10689 | #endif | |
10690 | ||
10691 | #undef $ac_func | |
10692 | ||
631ef239 | 10693 | /* Override any GCC internal prototype to avoid an error. |
10694 | Use char because int might match the return type of a GCC | |
10695 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 10696 | #ifdef __cplusplus |
10697 | extern "C" | |
212380e3 | 10698 | #endif |
212380e3 | 10699 | char $ac_func (); |
10700 | /* The GNU C library defines this for functions which it implements | |
10701 | to always fail with ENOSYS. Some functions are actually named | |
10702 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10703 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10704 | choke me |
212380e3 | 10705 | #endif |
10706 | ||
10707 | int | |
10708 | main () | |
10709 | { | |
631ef239 | 10710 | return $ac_func (); |
212380e3 | 10711 | ; |
10712 | return 0; | |
10713 | } | |
10714 | _ACEOF | |
10715 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 10716 | if { (ac_try="$ac_link" |
10717 | case "(($ac_try" in | |
10718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10719 | *) ac_try_echo=$ac_try;; | |
10720 | esac | |
10721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10722 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 10723 | ac_status=$? |
10724 | grep -v '^ *+' conftest.er1 >conftest.err | |
10725 | rm -f conftest.er1 | |
10726 | cat conftest.err >&5 | |
10727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 10728 | (exit $ac_status); } && { |
10729 | test -z "$ac_c_werror_flag" || | |
10730 | test ! -s conftest.err | |
10731 | } && test -s conftest$ac_exeext && | |
10732 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 10733 | eval "$as_ac_var=yes" |
10734 | else | |
10735 | echo "$as_me: failed program was:" >&5 | |
10736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10737 | ||
631ef239 | 10738 | eval "$as_ac_var=no" |
212380e3 | 10739 | fi |
631ef239 | 10740 | |
10741 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 10742 | conftest$ac_exeext conftest.$ac_ext |
10743 | fi | |
631ef239 | 10744 | ac_res=`eval echo '${'$as_ac_var'}'` |
10745 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10746 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 10747 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10748 | cat >>confdefs.h <<_ACEOF | |
10749 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10750 | _ACEOF | |
10751 | havekqueue=yes | |
10752 | else | |
10753 | havekqueue=no | |
10754 | fi | |
10755 | done | |
10756 | ||
10757 | if test "x$havekqueue" = "xyes" ; then | |
10758 | SELECT_TYPE="kqueue" | |
10759 | fi | |
10760 | fi | |
10761 | ||
10762 | if test ! "x$use_epoll" = "xno"; then | |
10763 | ||
10764 | for ac_func in epoll_ctl | |
10765 | do | |
10766 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 | 10767 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10768 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10769 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 10770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10771 | else | |
10772 | cat >conftest.$ac_ext <<_ACEOF | |
10773 | /* confdefs.h. */ | |
10774 | _ACEOF | |
10775 | cat confdefs.h >>conftest.$ac_ext | |
10776 | cat >>conftest.$ac_ext <<_ACEOF | |
10777 | /* end confdefs.h. */ | |
10778 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10779 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10780 | #define $ac_func innocuous_$ac_func | |
10781 | ||
10782 | /* System header to define __stub macros and hopefully few prototypes, | |
10783 | which can conflict with char $ac_func (); below. | |
10784 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10785 | <limits.h> exists even on freestanding compilers. */ | |
10786 | ||
10787 | #ifdef __STDC__ | |
10788 | # include <limits.h> | |
10789 | #else | |
10790 | # include <assert.h> | |
10791 | #endif | |
10792 | ||
10793 | #undef $ac_func | |
10794 | ||
631ef239 | 10795 | /* Override any GCC internal prototype to avoid an error. |
10796 | Use char because int might match the return type of a GCC | |
10797 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 10798 | #ifdef __cplusplus |
10799 | extern "C" | |
212380e3 | 10800 | #endif |
212380e3 | 10801 | char $ac_func (); |
10802 | /* The GNU C library defines this for functions which it implements | |
10803 | to always fail with ENOSYS. Some functions are actually named | |
10804 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10805 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10806 | choke me |
212380e3 | 10807 | #endif |
10808 | ||
10809 | int | |
10810 | main () | |
10811 | { | |
631ef239 | 10812 | return $ac_func (); |
212380e3 | 10813 | ; |
10814 | return 0; | |
10815 | } | |
10816 | _ACEOF | |
10817 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 10818 | if { (ac_try="$ac_link" |
10819 | case "(($ac_try" in | |
10820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10821 | *) ac_try_echo=$ac_try;; | |
10822 | esac | |
10823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10824 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 10825 | ac_status=$? |
10826 | grep -v '^ *+' conftest.er1 >conftest.err | |
10827 | rm -f conftest.er1 | |
10828 | cat conftest.err >&5 | |
10829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 10830 | (exit $ac_status); } && { |
10831 | test -z "$ac_c_werror_flag" || | |
10832 | test ! -s conftest.err | |
10833 | } && test -s conftest$ac_exeext && | |
10834 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 10835 | eval "$as_ac_var=yes" |
10836 | else | |
10837 | echo "$as_me: failed program was:" >&5 | |
10838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10839 | ||
631ef239 | 10840 | eval "$as_ac_var=no" |
212380e3 | 10841 | fi |
631ef239 | 10842 | |
10843 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 10844 | conftest$ac_exeext conftest.$ac_ext |
10845 | fi | |
631ef239 | 10846 | ac_res=`eval echo '${'$as_ac_var'}'` |
10847 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10848 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 10849 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10850 | cat >>confdefs.h <<_ACEOF | |
10851 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10852 | _ACEOF | |
10853 | haveepoll=yes | |
10854 | else | |
10855 | haveepoll=no | |
10856 | fi | |
10857 | done | |
10858 | ||
10859 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
10860 | if test "x$haveepoll" = "xyes" ; then | |
631ef239 | 10861 | { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5 |
10862 | echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; } | |
212380e3 | 10863 | if test "$cross_compiling" = yes; then |
631ef239 | 10864 | { echo "$as_me:$LINENO: result: no" >&5 |
10865 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10866 | else |
10867 | cat >conftest.$ac_ext <<_ACEOF | |
10868 | /* confdefs.h. */ | |
10869 | _ACEOF | |
10870 | cat confdefs.h >>conftest.$ac_ext | |
10871 | cat >>conftest.$ac_ext <<_ACEOF | |
10872 | /* end confdefs.h. */ | |
10873 | #include <stdint.h> | |
10874 | #include <sys/param.h> | |
10875 | #include <sys/types.h> | |
10876 | #include <sys/epoll.h> | |
10877 | #include <sys/syscall.h> | |
10878 | #include <unistd.h> | |
10879 | ||
10880 | int | |
10881 | main(int argc, char **argv) | |
10882 | { | |
10883 | int epfd; | |
10884 | ||
10885 | epfd = epoll_create(256); | |
10886 | exit (epfd == -1 ? 1 : 0); | |
10887 | } | |
10888 | _ACEOF | |
10889 | rm -f conftest$ac_exeext | |
631ef239 | 10890 | if { (ac_try="$ac_link" |
10891 | case "(($ac_try" in | |
10892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10893 | *) ac_try_echo=$ac_try;; | |
10894 | esac | |
10895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10896 | (eval "$ac_link") 2>&5 | |
212380e3 | 10897 | ac_status=$? |
10898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10899 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 | 10900 | { (case "(($ac_try" in |
10901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10902 | *) ac_try_echo=$ac_try;; | |
10903 | esac | |
10904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10905 | (eval "$ac_try") 2>&5 | |
212380e3 | 10906 | ac_status=$? |
10907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10908 | (exit $ac_status); }; }; then | |
631ef239 | 10909 | { echo "$as_me:$LINENO: result: yes" >&5 |
10910 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 10911 | |
10912 | cat >>confdefs.h <<\_ACEOF | |
10913 | #define HAVE_EPOLL 1 | |
10914 | _ACEOF | |
10915 | ||
10916 | SELECT_TYPE="epoll" | |
10917 | else | |
10918 | echo "$as_me: program exited with status $ac_status" >&5 | |
10919 | echo "$as_me: failed program was:" >&5 | |
10920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10921 | ||
10922 | ( exit $ac_status ) | |
631ef239 | 10923 | { echo "$as_me:$LINENO: result: no" >&5 |
10924 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10925 | fi |
631ef239 | 10926 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 10927 | fi |
631ef239 | 10928 | |
10929 | ||
212380e3 | 10930 | fi |
10931 | fi | |
10932 | ||
10933 | haveepollsyscall=no | |
10934 | ||
10935 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
10936 | if test "x$haveepoll" = "xno" ; then | |
631ef239 | 10937 | { echo "$as_me:$LINENO: checking for epoll system call" >&5 |
10938 | echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; } | |
212380e3 | 10939 | if test "$cross_compiling" = yes; then |
631ef239 | 10940 | { echo "$as_me:$LINENO: result: no" >&5 |
10941 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10942 | else |
10943 | cat >conftest.$ac_ext <<_ACEOF | |
10944 | /* confdefs.h. */ | |
10945 | _ACEOF | |
10946 | cat confdefs.h >>conftest.$ac_ext | |
10947 | cat >>conftest.$ac_ext <<_ACEOF | |
10948 | /* end confdefs.h. */ | |
10949 | #include <stdint.h> | |
10950 | #include <sys/param.h> | |
10951 | #include <sys/types.h> | |
10952 | #include <sys/epoll.h> | |
10953 | #include <sys/syscall.h> | |
10954 | #include <unistd.h> | |
10955 | ||
10956 | int | |
10957 | epoll_create(int size) | |
10958 | { | |
10959 | return (syscall(__NR_epoll_create, size)); | |
10960 | } | |
10961 | ||
10962 | int | |
10963 | main(int argc, char **argv) | |
10964 | { | |
10965 | int epfd; | |
10966 | ||
10967 | epfd = epoll_create(256); | |
10968 | exit (epfd == -1 ? 1 : 0); | |
10969 | } | |
10970 | _ACEOF | |
10971 | rm -f conftest$ac_exeext | |
631ef239 | 10972 | if { (ac_try="$ac_link" |
10973 | case "(($ac_try" in | |
10974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10975 | *) ac_try_echo=$ac_try;; | |
10976 | esac | |
10977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10978 | (eval "$ac_link") 2>&5 | |
212380e3 | 10979 | ac_status=$? |
10980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10981 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 | 10982 | { (case "(($ac_try" in |
10983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10984 | *) ac_try_echo=$ac_try;; | |
10985 | esac | |
10986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10987 | (eval "$ac_try") 2>&5 | |
212380e3 | 10988 | ac_status=$? |
10989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10990 | (exit $ac_status); }; }; then | |
631ef239 | 10991 | { echo "$as_me:$LINENO: result: yes" >&5 |
10992 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 10993 | |
10994 | cat >>confdefs.h <<\_ACEOF | |
10995 | #define HAVE_EPOLL 1 | |
10996 | _ACEOF | |
10997 | ||
10998 | SELECT_TYPE="epoll" | |
10999 | else | |
11000 | echo "$as_me: program exited with status $ac_status" >&5 | |
11001 | echo "$as_me: failed program was:" >&5 | |
11002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11003 | ||
11004 | ( exit $ac_status ) | |
631ef239 | 11005 | { echo "$as_me:$LINENO: result: no" >&5 |
11006 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 11007 | fi |
631ef239 | 11008 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 11009 | fi |
631ef239 | 11010 | |
11011 | ||
212380e3 | 11012 | fi |
11013 | fi | |
11014 | ||
11015 | fi | |
11016 | ||
11017 | fi | |
11018 | ||
11019 | if test -z "$SELECT_TYPE"; then | |
11020 | { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5 | |
11021 | echo "$as_me: error: Unable to find a usable IO interface" >&2;} | |
11022 | { (exit 1); exit 1; }; } | |
11023 | fi | |
11024 | ||
11025 | echo "Using $SELECT_TYPE for select loop." | |
11026 | ||
11027 | ||
11028 | cat >>confdefs.h <<_ACEOF | |
11029 | #define SELECT_TYPE "$SELECT_TYPE" | |
11030 | _ACEOF | |
11031 | ||
11032 | ||
11033 | ||
11034 | ||
11035 | ||
631ef239 | 11036 | # Check whether --enable-assert was given. |
212380e3 | 11037 | if test "${enable_assert+set}" = set; then |
631ef239 | 11038 | enableval=$enable_assert; assert=$enableval |
212380e3 | 11039 | else |
11040 | assert=no | |
631ef239 | 11041 | fi |
11042 | ||
212380e3 | 11043 | |
11044 | if test "$assert" = no; then | |
11045 | ||
11046 | cat >>confdefs.h <<\_ACEOF | |
11047 | #define NDEBUG 1 | |
11048 | _ACEOF | |
11049 | ||
11050 | elif test "$assert" = soft; then | |
11051 | ||
11052 | cat >>confdefs.h <<\_ACEOF | |
11053 | #define SOFT_ASSERT 1 | |
11054 | _ACEOF | |
11055 | ||
11056 | ||
11057 | cat >>confdefs.h <<\_ACEOF | |
11058 | #define NDEBUG 1 | |
11059 | _ACEOF | |
11060 | ||
11061 | elif test "$assert" = yes; then | |
11062 | assert = "hard"; | |
11063 | fi | |
11064 | ||
631ef239 | 11065 | { echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5 |
11066 | echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; } | |
11067 | # Check whether --enable-iodebug was given. | |
212380e3 | 11068 | if test "${enable_iodebug+set}" = set; then |
631ef239 | 11069 | enableval=$enable_iodebug; iodebug=$enableval |
212380e3 | 11070 | else |
11071 | iodebug=no | |
631ef239 | 11072 | fi |
11073 | ||
212380e3 | 11074 | |
11075 | if test "$iodebug" = yes; then | |
11076 | ||
11077 | cat >>confdefs.h <<\_ACEOF | |
11078 | #define USE_IODEBUG_HOOKS 1 | |
11079 | _ACEOF | |
11080 | ||
631ef239 | 11081 | { echo "$as_me:$LINENO: result: yes" >&5 |
11082 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 11083 | else |
631ef239 | 11084 | { echo "$as_me:$LINENO: result: no" >&5 |
11085 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 11086 | fi |
11087 | ||
11088 | ||
631ef239 | 11089 | { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5 |
11090 | echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; } | |
11091 | # Check whether --enable-profile was given. | |
212380e3 | 11092 | if test "${enable_profile+set}" = set; then |
631ef239 | 11093 | enableval=$enable_profile; profile=$enableval |
212380e3 | 11094 | else |
11095 | profile=no | |
631ef239 | 11096 | fi |
11097 | ||
212380e3 | 11098 | |
11099 | if test "$profile" = yes; then | |
11100 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
11101 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
631ef239 | 11102 | { echo "$as_me:$LINENO: result: yes, adding -pg" >&5 |
11103 | echo "${ECHO_T}yes, adding -pg" >&6; } | |
212380e3 | 11104 | |
11105 | cat >>confdefs.h <<\_ACEOF | |
11106 | #define CHARYBDIS_PROFILE 1 | |
11107 | _ACEOF | |
11108 | ||
11109 | else | |
631ef239 | 11110 | { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5 |
11111 | echo "${ECHO_T}no, profile builds only work with gcc" >&6; } | |
212380e3 | 11112 | fi |
11113 | else | |
631ef239 | 11114 | { echo "$as_me:$LINENO: result: no" >&5 |
11115 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 11116 | fi |
11117 | ||
631ef239 | 11118 | # Check whether --enable-balloc was given. |
212380e3 | 11119 | if test "${enable_balloc+set}" = set; then |
631ef239 | 11120 | enableval=$enable_balloc; balloc=$enableval |
212380e3 | 11121 | else |
11122 | balloc=yes | |
631ef239 | 11123 | fi |
11124 | ||
212380e3 | 11125 | |
11126 | if test "$balloc" = no; then | |
11127 | ||
11128 | cat >>confdefs.h <<\_ACEOF | |
11129 | #define NOBALLOC 1 | |
11130 | _ACEOF | |
11131 | ||
11132 | fi | |
11133 | ||
631ef239 | 11134 | # Check whether --enable-ricer-hashing was given. |
212380e3 | 11135 | if test "${enable_ricer_hashing+set}" = set; then |
631ef239 | 11136 | enableval=$enable_ricer_hashing; ricer_hashing=$enableval |
212380e3 | 11137 | else |
11138 | ricer_hashing=no | |
631ef239 | 11139 | fi |
11140 | ||
212380e3 | 11141 | |
11142 | FNVHASH_S="" | |
11143 | ||
11144 | if test "$ricer_hashing" = "yes"; then | |
11145 | ||
11146 | cat >>confdefs.h <<\_ACEOF | |
11147 | #define RICER_HASHING 1 | |
11148 | _ACEOF | |
11149 | ||
11150 | FNVHASH_S="fnvhash.s" | |
11151 | fi | |
11152 | ||
11153 | ||
11154 | ||
631ef239 | 11155 | # Check whether --enable-small-net was given. |
212380e3 | 11156 | if test "${enable_small_net+set}" = set; then |
631ef239 | 11157 | enableval=$enable_small_net; small_net=$enableval |
212380e3 | 11158 | else |
11159 | small_net=no | |
631ef239 | 11160 | fi |
11161 | ||
212380e3 | 11162 | |
11163 | if test "$small_net" = yes; then | |
11164 | ||
11165 | cat >>confdefs.h <<\_ACEOF | |
11166 | #define NICKNAMEHISTORYLENGTH 1500 | |
11167 | _ACEOF | |
11168 | ||
11169 | ||
11170 | cat >>confdefs.h <<\_ACEOF | |
11171 | #define CHANNEL_HEAP_SIZE 256 | |
11172 | _ACEOF | |
11173 | ||
11174 | ||
11175 | cat >>confdefs.h <<\_ACEOF | |
11176 | #define BAN_HEAP_SIZE 128 | |
11177 | _ACEOF | |
11178 | ||
11179 | ||
11180 | cat >>confdefs.h <<\_ACEOF | |
11181 | #define CLIENT_HEAP_SIZE 256 | |
11182 | _ACEOF | |
11183 | ||
11184 | ||
11185 | cat >>confdefs.h <<\_ACEOF | |
11186 | #define LCLIENT_HEAP_SIZE 128 | |
11187 | _ACEOF | |
11188 | ||
11189 | ||
11190 | cat >>confdefs.h <<\_ACEOF | |
11191 | #define PCLIENT_HEAP_SIZE 32 | |
11192 | _ACEOF | |
11193 | ||
11194 | ||
11195 | cat >>confdefs.h <<\_ACEOF | |
11196 | #define USER_HEAP_SIZE 128 | |
11197 | _ACEOF | |
11198 | ||
11199 | ||
11200 | cat >>confdefs.h <<\_ACEOF | |
11201 | #define DNODE_HEAP_SIZE 256 | |
11202 | _ACEOF | |
11203 | ||
11204 | ||
11205 | cat >>confdefs.h <<\_ACEOF | |
11206 | #define TOPIC_HEAP_SIZE 256 | |
11207 | _ACEOF | |
11208 | ||
11209 | ||
11210 | cat >>confdefs.h <<\_ACEOF | |
11211 | #define LINEBUF_HEAP_SIZE 128 | |
11212 | _ACEOF | |
11213 | ||
11214 | ||
11215 | cat >>confdefs.h <<\_ACEOF | |
11216 | #define MEMBER_HEAP_SIZE 256 | |
11217 | _ACEOF | |
11218 | ||
11219 | ||
11220 | cat >>confdefs.h <<\_ACEOF | |
11221 | #define ND_HEAP_SIZE 128 | |
11222 | _ACEOF | |
11223 | ||
11224 | ||
11225 | cat >>confdefs.h <<\_ACEOF | |
11226 | #define CONFITEM_HEAP_SIZE 128 | |
11227 | _ACEOF | |
11228 | ||
11229 | ||
11230 | cat >>confdefs.h <<\_ACEOF | |
11231 | #define MONITOR_HEAP_SIZE 128 | |
11232 | _ACEOF | |
11233 | ||
11234 | else | |
11235 | ||
11236 | cat >>confdefs.h <<\_ACEOF | |
11237 | #define NICKNAMEHISTORYLENGTH 15000 | |
11238 | _ACEOF | |
11239 | ||
11240 | ||
11241 | cat >>confdefs.h <<\_ACEOF | |
11242 | #define CHANNEL_HEAP_SIZE 8192 | |
11243 | _ACEOF | |
11244 | ||
11245 | ||
11246 | cat >>confdefs.h <<\_ACEOF | |
11247 | #define BAN_HEAP_SIZE 4096 | |
11248 | _ACEOF | |
11249 | ||
11250 | ||
11251 | cat >>confdefs.h <<\_ACEOF | |
11252 | #define CLIENT_HEAP_SIZE 8192 | |
11253 | _ACEOF | |
11254 | ||
11255 | ||
11256 | cat >>confdefs.h <<\_ACEOF | |
11257 | #define LCLIENT_HEAP_SIZE 1024 | |
11258 | _ACEOF | |
11259 | ||
11260 | ||
11261 | cat >>confdefs.h <<\_ACEOF | |
11262 | #define PCLIENT_HEAP_SIZE 256 | |
11263 | _ACEOF | |
11264 | ||
11265 | ||
11266 | cat >>confdefs.h <<\_ACEOF | |
11267 | #define USER_HEAP_SIZE 8192 | |
11268 | _ACEOF | |
11269 | ||
11270 | ||
11271 | cat >>confdefs.h <<\_ACEOF | |
11272 | #define DNODE_HEAP_SIZE 8192 | |
11273 | _ACEOF | |
11274 | ||
11275 | ||
11276 | cat >>confdefs.h <<\_ACEOF | |
11277 | #define TOPIC_HEAP_SIZE 4096 | |
11278 | _ACEOF | |
11279 | ||
11280 | ||
11281 | cat >>confdefs.h <<\_ACEOF | |
11282 | #define LINEBUF_HEAP_SIZE 2048 | |
11283 | _ACEOF | |
11284 | ||
11285 | ||
11286 | cat >>confdefs.h <<\_ACEOF | |
11287 | #define MEMBER_HEAP_SIZE 32768 | |
11288 | _ACEOF | |
11289 | ||
11290 | ||
11291 | cat >>confdefs.h <<\_ACEOF | |
11292 | #define ND_HEAP_SIZE 512 | |
11293 | _ACEOF | |
11294 | ||
11295 | ||
11296 | cat >>confdefs.h <<\_ACEOF | |
11297 | #define CONFITEM_HEAP_SIZE 256 | |
11298 | _ACEOF | |
11299 | ||
11300 | ||
11301 | cat >>confdefs.h <<\_ACEOF | |
11302 | #define MONITOR_HEAP_SIZE 1024 | |
11303 | _ACEOF | |
11304 | ||
11305 | fi | |
11306 | ||
11307 | ||
631ef239 | 11308 | # Check whether --with-nicklen was given. |
212380e3 | 11309 | if test "${with_nicklen+set}" = set; then |
631ef239 | 11310 | withval=$with_nicklen; |
212380e3 | 11311 | if test $withval -ge 50; then |
11312 | NICKLEN=50 | |
11313 | { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 | |
11314 | echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
11315 | else | |
11316 | NICKLEN="$withval" | |
11317 | fi | |
11318 | ||
11319 | else | |
11320 | NICKLEN=15 | |
631ef239 | 11321 | fi |
212380e3 | 11322 | |
11323 | ||
212380e3 | 11324 | |
631ef239 | 11325 | # Check whether --with-topiclen was given. |
11326 | if test "${with_topiclen+set}" = set; then | |
11327 | withval=$with_topiclen; | |
212380e3 | 11328 | if test $withval -ge 390; then |
11329 | TOPICLEN=390 | |
11330 | { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 | |
11331 | echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
11332 | else | |
11333 | TOPICLEN=$withval | |
11334 | fi | |
11335 | ||
11336 | else | |
11337 | TOPICLEN=390 | |
212380e3 | 11338 | fi |
11339 | ||
212380e3 | 11340 | |
11341 | ||
11342 | cat >>confdefs.h <<_ACEOF | |
11343 | #define TOPICLEN ${TOPICLEN} | |
11344 | _ACEOF | |
11345 | ||
11346 | ||
11347 | cat >>confdefs.h <<_ACEOF | |
11348 | #define NICKLEN (${NICKLEN}+1) | |
11349 | _ACEOF | |
11350 | ||
11351 | ||
631ef239 | 11352 | # Check whether --enable-shared-modules was given. |
212380e3 | 11353 | if test "${enable_shared_modules+set}" = set; then |
631ef239 | 11354 | enableval=$enable_shared_modules; shared_modules=$enableval |
212380e3 | 11355 | else |
11356 | shared_modules="yes" | |
631ef239 | 11357 | fi |
11358 | ||
212380e3 | 11359 | |
11360 | if test "$shared_modules" = yes; then | |
11361 | ||
11362 | if test "$CYGWIN" = yes; then | |
11363 | { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5 | |
11364 | echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;} | |
11365 | shared_modules="no" | |
11366 | fi | |
11367 | ||
11368 | if test "$CC" = tcc -a "$TenDRA" = "no"; then | |
11369 | { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5 | |
11370 | echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;} | |
11371 | shared_modules="no" | |
11372 | fi | |
11373 | fi | |
11374 | ||
11375 | if test "$shared_modules" = yes; then | |
11376 | DYNLINK_C=dynlink.c | |
11377 | ||
11378 | for ac_header in dlfcn.h | |
11379 | do | |
11380 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 | 11381 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11382 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11383 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11384 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 11385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11386 | fi | |
631ef239 | 11387 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11388 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11389 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 11390 | else |
11391 | # Is the header compilable? | |
631ef239 | 11392 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11393 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 | 11394 | cat >conftest.$ac_ext <<_ACEOF |
11395 | /* confdefs.h. */ | |
11396 | _ACEOF | |
11397 | cat confdefs.h >>conftest.$ac_ext | |
11398 | cat >>conftest.$ac_ext <<_ACEOF | |
11399 | /* end confdefs.h. */ | |
11400 | $ac_includes_default | |
11401 | #include <$ac_header> | |
11402 | _ACEOF | |
11403 | rm -f conftest.$ac_objext | |
631ef239 | 11404 | if { (ac_try="$ac_compile" |
11405 | case "(($ac_try" in | |
11406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11407 | *) ac_try_echo=$ac_try;; | |
11408 | esac | |
11409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11410 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 11411 | ac_status=$? |
11412 | grep -v '^ *+' conftest.er1 >conftest.err | |
11413 | rm -f conftest.er1 | |
11414 | cat conftest.err >&5 | |
11415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 11416 | (exit $ac_status); } && { |
11417 | test -z "$ac_c_werror_flag" || | |
11418 | test ! -s conftest.err | |
11419 | } && test -s conftest.$ac_objext; then | |
212380e3 | 11420 | ac_header_compiler=yes |
11421 | else | |
11422 | echo "$as_me: failed program was:" >&5 | |
11423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11424 | ||
631ef239 | 11425 | ac_header_compiler=no |
212380e3 | 11426 | fi |
631ef239 | 11427 | |
11428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11429 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11430 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 | 11431 | |
11432 | # Is the header present? | |
631ef239 | 11433 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11434 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 | 11435 | cat >conftest.$ac_ext <<_ACEOF |
11436 | /* confdefs.h. */ | |
11437 | _ACEOF | |
11438 | cat confdefs.h >>conftest.$ac_ext | |
11439 | cat >>conftest.$ac_ext <<_ACEOF | |
11440 | /* end confdefs.h. */ | |
11441 | #include <$ac_header> | |
11442 | _ACEOF | |
631ef239 | 11443 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11444 | case "(($ac_try" in | |
11445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11446 | *) ac_try_echo=$ac_try;; | |
11447 | esac | |
11448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11449 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 | 11450 | ac_status=$? |
11451 | grep -v '^ *+' conftest.er1 >conftest.err | |
11452 | rm -f conftest.er1 | |
11453 | cat conftest.err >&5 | |
11454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 11455 | (exit $ac_status); } >/dev/null && { |
11456 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11457 | test ! -s conftest.err | |
11458 | }; then | |
212380e3 | 11459 | ac_header_preproc=yes |
11460 | else | |
11461 | echo "$as_me: failed program was:" >&5 | |
11462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11463 | ||
11464 | ac_header_preproc=no | |
11465 | fi | |
631ef239 | 11466 | |
212380e3 | 11467 | rm -f conftest.err conftest.$ac_ext |
631ef239 | 11468 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11469 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 | 11470 | |
11471 | # So? What about this header? | |
11472 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11473 | yes:no: ) | |
11474 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11475 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11476 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11477 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11478 | ac_header_preproc=yes | |
11479 | ;; | |
11480 | no:yes:* ) | |
11481 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11482 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11483 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11484 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11485 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11486 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11487 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11488 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11489 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11490 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11491 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11492 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 11493 | |
212380e3 | 11494 | ;; |
11495 | esac | |
631ef239 | 11496 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11497 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11498 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 11499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11500 | else | |
11501 | eval "$as_ac_Header=\$ac_header_preproc" | |
11502 | fi | |
631ef239 | 11503 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11504 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11505 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 11506 | |
11507 | fi | |
11508 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11509 | cat >>confdefs.h <<_ACEOF | |
11510 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11511 | _ACEOF | |
11512 | ||
11513 | fi | |
11514 | ||
11515 | done | |
11516 | ||
631ef239 | 11517 | { echo "$as_me:$LINENO: checking for library containing shl_load" >&5 |
11518 | echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; } | |
212380e3 | 11519 | if test "${ac_cv_search_shl_load+set}" = set; then |
11520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11521 | else | |
11522 | ac_func_search_save_LIBS=$LIBS | |
212380e3 | 11523 | cat >conftest.$ac_ext <<_ACEOF |
11524 | /* confdefs.h. */ | |
11525 | _ACEOF | |
11526 | cat confdefs.h >>conftest.$ac_ext | |
11527 | cat >>conftest.$ac_ext <<_ACEOF | |
11528 | /* end confdefs.h. */ | |
11529 | ||
631ef239 | 11530 | /* Override any GCC internal prototype to avoid an error. |
11531 | Use char because int might match the return type of a GCC | |
11532 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 11533 | #ifdef __cplusplus |
11534 | extern "C" | |
11535 | #endif | |
212380e3 | 11536 | char shl_load (); |
11537 | int | |
11538 | main () | |
11539 | { | |
631ef239 | 11540 | return shl_load (); |
212380e3 | 11541 | ; |
11542 | return 0; | |
11543 | } | |
11544 | _ACEOF | |
631ef239 | 11545 | for ac_lib in '' dld; do |
11546 | if test -z "$ac_lib"; then | |
11547 | ac_res="none required" | |
11548 | else | |
11549 | ac_res=-l$ac_lib | |
11550 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11551 | fi | |
11552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11553 | if { (ac_try="$ac_link" | |
11554 | case "(($ac_try" in | |
11555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11556 | *) ac_try_echo=$ac_try;; | |
11557 | esac | |
11558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11559 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 11560 | ac_status=$? |
11561 | grep -v '^ *+' conftest.er1 >conftest.err | |
11562 | rm -f conftest.er1 | |
11563 | cat conftest.err >&5 | |
11564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 11565 | (exit $ac_status); } && { |
11566 | test -z "$ac_c_werror_flag" || | |
11567 | test ! -s conftest.err | |
11568 | } && test -s conftest$ac_exeext && | |
11569 | $as_test_x conftest$ac_exeext; then | |
11570 | ac_cv_search_shl_load=$ac_res | |
212380e3 | 11571 | else |
11572 | echo "$as_me: failed program was:" >&5 | |
11573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11574 | ||
212380e3 | 11575 | |
631ef239 | 11576 | fi |
212380e3 | 11577 | |
631ef239 | 11578 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11579 | conftest$ac_exeext | |
11580 | if test "${ac_cv_search_shl_load+set}" = set; then | |
11581 | break | |
212380e3 | 11582 | fi |
631ef239 | 11583 | done |
11584 | if test "${ac_cv_search_shl_load+set}" = set; then | |
11585 | : | |
11586 | else | |
11587 | ac_cv_search_shl_load=no | |
212380e3 | 11588 | fi |
631ef239 | 11589 | rm conftest.$ac_ext |
212380e3 | 11590 | LIBS=$ac_func_search_save_LIBS |
11591 | fi | |
631ef239 | 11592 | { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5 |
11593 | echo "${ECHO_T}$ac_cv_search_shl_load" >&6; } | |
11594 | ac_res=$ac_cv_search_shl_load | |
11595 | if test "$ac_res" != no; then | |
11596 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 11597 | |
11598 | ||
11599 | cat >>confdefs.h <<\_ACEOF | |
11600 | #define HAVE_SHL_LOAD 1 | |
11601 | _ACEOF | |
11602 | ||
11603 | SUFFIX=".sl" | |
11604 | MOD_TARGET=hpux_shared | |
11605 | SEDOBJ="s/\.o/.sl/g" | |
11606 | ||
11607 | else | |
11608 | ||
631ef239 | 11609 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
11610 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | |
212380e3 | 11611 | if test "${ac_cv_search_dlopen+set}" = set; then |
11612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11613 | else | |
11614 | ac_func_search_save_LIBS=$LIBS | |
212380e3 | 11615 | cat >conftest.$ac_ext <<_ACEOF |
11616 | /* confdefs.h. */ | |
11617 | _ACEOF | |
11618 | cat confdefs.h >>conftest.$ac_ext | |
11619 | cat >>conftest.$ac_ext <<_ACEOF | |
11620 | /* end confdefs.h. */ | |
11621 | ||
631ef239 | 11622 | /* Override any GCC internal prototype to avoid an error. |
11623 | Use char because int might match the return type of a GCC | |
11624 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 11625 | #ifdef __cplusplus |
11626 | extern "C" | |
11627 | #endif | |
212380e3 | 11628 | char dlopen (); |
11629 | int | |
11630 | main () | |
11631 | { | |
631ef239 | 11632 | return dlopen (); |
212380e3 | 11633 | ; |
11634 | return 0; | |
11635 | } | |
11636 | _ACEOF | |
631ef239 | 11637 | for ac_lib in '' dl c_r; do |
11638 | if test -z "$ac_lib"; then | |
11639 | ac_res="none required" | |
11640 | else | |
11641 | ac_res=-l$ac_lib | |
11642 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11643 | fi | |
11644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11645 | if { (ac_try="$ac_link" | |
11646 | case "(($ac_try" in | |
11647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11648 | *) ac_try_echo=$ac_try;; | |
11649 | esac | |
11650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11651 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 11652 | ac_status=$? |
11653 | grep -v '^ *+' conftest.er1 >conftest.err | |
11654 | rm -f conftest.er1 | |
11655 | cat conftest.err >&5 | |
11656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 11657 | (exit $ac_status); } && { |
11658 | test -z "$ac_c_werror_flag" || | |
11659 | test ! -s conftest.err | |
11660 | } && test -s conftest$ac_exeext && | |
11661 | $as_test_x conftest$ac_exeext; then | |
11662 | ac_cv_search_dlopen=$ac_res | |
212380e3 | 11663 | else |
11664 | echo "$as_me: failed program was:" >&5 | |
11665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11666 | ||
212380e3 | 11667 | |
631ef239 | 11668 | fi |
212380e3 | 11669 | |
631ef239 | 11670 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11671 | conftest$ac_exeext | |
11672 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11673 | break | |
212380e3 | 11674 | fi |
631ef239 | 11675 | done |
11676 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11677 | : | |
11678 | else | |
11679 | ac_cv_search_dlopen=no | |
212380e3 | 11680 | fi |
631ef239 | 11681 | rm conftest.$ac_ext |
212380e3 | 11682 | LIBS=$ac_func_search_save_LIBS |
11683 | fi | |
631ef239 | 11684 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
11685 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | |
11686 | ac_res=$ac_cv_search_dlopen | |
11687 | if test "$ac_res" != no; then | |
11688 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 11689 | |
11690 | ||
11691 | cat >>confdefs.h <<\_ACEOF | |
11692 | #define HAVE_DLOPEN 1 | |
11693 | _ACEOF | |
11694 | ||
11695 | SUFFIX=".so" | |
11696 | MOD_TARGET=shared_modules | |
11697 | SEDOBJ="s/\.o/.so/g" | |
11698 | if test "$AppleGCC" = yes; then | |
11699 | ||
11700 | for ac_header in mach-o/dyld.h | |
11701 | do | |
11702 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 | 11703 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11704 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11705 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11706 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 11707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11708 | fi | |
631ef239 | 11709 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11710 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11711 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 11712 | else |
11713 | # Is the header compilable? | |
631ef239 | 11714 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11715 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 | 11716 | cat >conftest.$ac_ext <<_ACEOF |
11717 | /* confdefs.h. */ | |
11718 | _ACEOF | |
11719 | cat confdefs.h >>conftest.$ac_ext | |
11720 | cat >>conftest.$ac_ext <<_ACEOF | |
11721 | /* end confdefs.h. */ | |
11722 | $ac_includes_default | |
11723 | #include <$ac_header> | |
11724 | _ACEOF | |
11725 | rm -f conftest.$ac_objext | |
631ef239 | 11726 | if { (ac_try="$ac_compile" |
11727 | case "(($ac_try" in | |
11728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11729 | *) ac_try_echo=$ac_try;; | |
11730 | esac | |
11731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11732 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 11733 | ac_status=$? |
11734 | grep -v '^ *+' conftest.er1 >conftest.err | |
11735 | rm -f conftest.er1 | |
11736 | cat conftest.err >&5 | |
11737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 11738 | (exit $ac_status); } && { |
11739 | test -z "$ac_c_werror_flag" || | |
11740 | test ! -s conftest.err | |
11741 | } && test -s conftest.$ac_objext; then | |
212380e3 | 11742 | ac_header_compiler=yes |
11743 | else | |
11744 | echo "$as_me: failed program was:" >&5 | |
11745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11746 | ||
631ef239 | 11747 | ac_header_compiler=no |
212380e3 | 11748 | fi |
631ef239 | 11749 | |
11750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11751 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11752 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 | 11753 | |
11754 | # Is the header present? | |
631ef239 | 11755 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11756 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 | 11757 | cat >conftest.$ac_ext <<_ACEOF |
11758 | /* confdefs.h. */ | |
11759 | _ACEOF | |
11760 | cat confdefs.h >>conftest.$ac_ext | |
11761 | cat >>conftest.$ac_ext <<_ACEOF | |
11762 | /* end confdefs.h. */ | |
11763 | #include <$ac_header> | |
11764 | _ACEOF | |
631ef239 | 11765 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11766 | case "(($ac_try" in | |
11767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11768 | *) ac_try_echo=$ac_try;; | |
11769 | esac | |
11770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11771 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 | 11772 | ac_status=$? |
11773 | grep -v '^ *+' conftest.er1 >conftest.err | |
11774 | rm -f conftest.er1 | |
11775 | cat conftest.err >&5 | |
11776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 11777 | (exit $ac_status); } >/dev/null && { |
11778 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11779 | test ! -s conftest.err | |
11780 | }; then | |
212380e3 | 11781 | ac_header_preproc=yes |
11782 | else | |
11783 | echo "$as_me: failed program was:" >&5 | |
11784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11785 | ||
11786 | ac_header_preproc=no | |
11787 | fi | |
631ef239 | 11788 | |
212380e3 | 11789 | rm -f conftest.err conftest.$ac_ext |
631ef239 | 11790 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11791 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 | 11792 | |
11793 | # So? What about this header? | |
11794 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11795 | yes:no: ) | |
11796 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11797 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11798 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11799 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11800 | ac_header_preproc=yes | |
11801 | ;; | |
11802 | no:yes:* ) | |
11803 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11804 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11805 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11806 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11807 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11808 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11809 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11810 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11811 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11812 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11813 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11814 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 11815 | |
212380e3 | 11816 | ;; |
11817 | esac | |
631ef239 | 11818 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11819 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11820 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 11821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11822 | else | |
11823 | eval "$as_ac_Header=\$ac_header_preproc" | |
11824 | fi | |
631ef239 | 11825 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11826 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11827 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 11828 | |
11829 | fi | |
11830 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11831 | cat >>confdefs.h <<_ACEOF | |
11832 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11833 | _ACEOF | |
11834 | ||
11835 | fi | |
11836 | ||
11837 | done | |
11838 | ||
11839 | fi | |
631ef239 | 11840 | { echo "$as_me:$LINENO: checking for dlsym" >&5 |
11841 | echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; } | |
212380e3 | 11842 | if test "${ac_cv_func_dlsym+set}" = set; then |
11843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11844 | else | |
11845 | cat >conftest.$ac_ext <<_ACEOF | |
11846 | /* confdefs.h. */ | |
11847 | _ACEOF | |
11848 | cat confdefs.h >>conftest.$ac_ext | |
11849 | cat >>conftest.$ac_ext <<_ACEOF | |
11850 | /* end confdefs.h. */ | |
11851 | /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym. | |
11852 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11853 | #define dlsym innocuous_dlsym | |
11854 | ||
11855 | /* System header to define __stub macros and hopefully few prototypes, | |
11856 | which can conflict with char dlsym (); below. | |
11857 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11858 | <limits.h> exists even on freestanding compilers. */ | |
11859 | ||
11860 | #ifdef __STDC__ | |
11861 | # include <limits.h> | |
11862 | #else | |
11863 | # include <assert.h> | |
11864 | #endif | |
11865 | ||
11866 | #undef dlsym | |
11867 | ||
631ef239 | 11868 | /* Override any GCC internal prototype to avoid an error. |
11869 | Use char because int might match the return type of a GCC | |
11870 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 11871 | #ifdef __cplusplus |
11872 | extern "C" | |
212380e3 | 11873 | #endif |
212380e3 | 11874 | char dlsym (); |
11875 | /* The GNU C library defines this for functions which it implements | |
11876 | to always fail with ENOSYS. Some functions are actually named | |
11877 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 11878 | #if defined __stub_dlsym || defined __stub___dlsym |
212380e3 | 11879 | choke me |
212380e3 | 11880 | #endif |
11881 | ||
11882 | int | |
11883 | main () | |
11884 | { | |
631ef239 | 11885 | return dlsym (); |
212380e3 | 11886 | ; |
11887 | return 0; | |
11888 | } | |
11889 | _ACEOF | |
11890 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 11891 | if { (ac_try="$ac_link" |
11892 | case "(($ac_try" in | |
11893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11894 | *) ac_try_echo=$ac_try;; | |
11895 | esac | |
11896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11897 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 11898 | ac_status=$? |
11899 | grep -v '^ *+' conftest.er1 >conftest.err | |
11900 | rm -f conftest.er1 | |
11901 | cat conftest.err >&5 | |
11902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 11903 | (exit $ac_status); } && { |
11904 | test -z "$ac_c_werror_flag" || | |
11905 | test ! -s conftest.err | |
11906 | } && test -s conftest$ac_exeext && | |
11907 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 11908 | ac_cv_func_dlsym=yes |
11909 | else | |
11910 | echo "$as_me: failed program was:" >&5 | |
11911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11912 | ||
631ef239 | 11913 | ac_cv_func_dlsym=no |
212380e3 | 11914 | fi |
631ef239 | 11915 | |
11916 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 11917 | conftest$ac_exeext conftest.$ac_ext |
11918 | fi | |
631ef239 | 11919 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5 |
11920 | echo "${ECHO_T}$ac_cv_func_dlsym" >&6; } | |
212380e3 | 11921 | if test $ac_cv_func_dlsym = yes; then |
11922 | : | |
11923 | else | |
11924 | ||
11925 | { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5 | |
11926 | echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;} | |
11927 | shared_modules=no | |
11928 | ||
11929 | fi | |
11930 | ||
11931 | ||
11932 | for ac_func in dlfunc | |
11933 | do | |
11934 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 | 11935 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11936 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11937 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 | 11938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11939 | else | |
11940 | cat >conftest.$ac_ext <<_ACEOF | |
11941 | /* confdefs.h. */ | |
11942 | _ACEOF | |
11943 | cat confdefs.h >>conftest.$ac_ext | |
11944 | cat >>conftest.$ac_ext <<_ACEOF | |
11945 | /* end confdefs.h. */ | |
11946 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11947 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11948 | #define $ac_func innocuous_$ac_func | |
11949 | ||
11950 | /* System header to define __stub macros and hopefully few prototypes, | |
11951 | which can conflict with char $ac_func (); below. | |
11952 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11953 | <limits.h> exists even on freestanding compilers. */ | |
11954 | ||
11955 | #ifdef __STDC__ | |
11956 | # include <limits.h> | |
11957 | #else | |
11958 | # include <assert.h> | |
11959 | #endif | |
11960 | ||
11961 | #undef $ac_func | |
11962 | ||
631ef239 | 11963 | /* Override any GCC internal prototype to avoid an error. |
11964 | Use char because int might match the return type of a GCC | |
11965 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 11966 | #ifdef __cplusplus |
11967 | extern "C" | |
212380e3 | 11968 | #endif |
212380e3 | 11969 | char $ac_func (); |
11970 | /* The GNU C library defines this for functions which it implements | |
11971 | to always fail with ENOSYS. Some functions are actually named | |
11972 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 11973 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 11974 | choke me |
212380e3 | 11975 | #endif |
11976 | ||
11977 | int | |
11978 | main () | |
11979 | { | |
631ef239 | 11980 | return $ac_func (); |
212380e3 | 11981 | ; |
11982 | return 0; | |
11983 | } | |
11984 | _ACEOF | |
11985 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 11986 | if { (ac_try="$ac_link" |
11987 | case "(($ac_try" in | |
11988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11989 | *) ac_try_echo=$ac_try;; | |
11990 | esac | |
11991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11992 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 11993 | ac_status=$? |
11994 | grep -v '^ *+' conftest.er1 >conftest.err | |
11995 | rm -f conftest.er1 | |
11996 | cat conftest.err >&5 | |
11997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 11998 | (exit $ac_status); } && { |
11999 | test -z "$ac_c_werror_flag" || | |
12000 | test ! -s conftest.err | |
12001 | } && test -s conftest$ac_exeext && | |
12002 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 12003 | eval "$as_ac_var=yes" |
12004 | else | |
12005 | echo "$as_me: failed program was:" >&5 | |
12006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12007 | ||
631ef239 | 12008 | eval "$as_ac_var=no" |
212380e3 | 12009 | fi |
631ef239 | 12010 | |
12011 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 12012 | conftest$ac_exeext conftest.$ac_ext |
12013 | fi | |
631ef239 | 12014 | ac_res=`eval echo '${'$as_ac_var'}'` |
12015 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12016 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 | 12017 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
12018 | cat >>confdefs.h <<_ACEOF | |
12019 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12020 | _ACEOF | |
12021 | ||
12022 | fi | |
12023 | done | |
12024 | ||
12025 | ||
12026 | else | |
12027 | ||
12028 | shared_modules=no | |
12029 | ||
12030 | fi | |
12031 | ||
12032 | ||
12033 | fi | |
12034 | ||
12035 | fi | |
12036 | ||
12037 | ||
12038 | cat >>confdefs.h <<_ACEOF | |
12039 | #define SHARED_SUFFIX "$SUFFIX" | |
12040 | _ACEOF | |
12041 | ||
12042 | ||
12043 | if test "$shared_modules" = yes; then | |
12044 | # The GNU linker requires the -export-dynamic option to make | |
12045 | # all symbols visible in the dynamic symbol table. | |
12046 | hold_ldflags=$LDFLAGS | |
631ef239 | 12047 | { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
12048 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; } | |
212380e3 | 12049 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror" |
12050 | cat >conftest.$ac_ext <<_ACEOF | |
12051 | /* confdefs.h. */ | |
12052 | _ACEOF | |
12053 | cat confdefs.h >>conftest.$ac_ext | |
12054 | cat >>conftest.$ac_ext <<_ACEOF | |
12055 | /* end confdefs.h. */ | |
12056 | ||
12057 | int | |
12058 | main () | |
12059 | { | |
12060 | int i; | |
12061 | ; | |
12062 | return 0; | |
12063 | } | |
12064 | _ACEOF | |
12065 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 12066 | if { (ac_try="$ac_link" |
12067 | case "(($ac_try" in | |
12068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12069 | *) ac_try_echo=$ac_try;; | |
12070 | esac | |
12071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12072 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 12073 | ac_status=$? |
12074 | grep -v '^ *+' conftest.er1 >conftest.err | |
12075 | rm -f conftest.er1 | |
12076 | cat conftest.err >&5 | |
12077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 12078 | (exit $ac_status); } && { |
12079 | test -z "$ac_c_werror_flag" || | |
12080 | test ! -s conftest.err | |
12081 | } && test -s conftest$ac_exeext && | |
12082 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 12083 | found=yes |
12084 | else | |
12085 | echo "$as_me: failed program was:" >&5 | |
12086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12087 | ||
631ef239 | 12088 | found=no |
212380e3 | 12089 | fi |
631ef239 | 12090 | |
12091 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 12092 | conftest$ac_exeext conftest.$ac_ext |
12093 | LDFLAGS=$hold_ldflags | |
12094 | ||
12095 | if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then | |
12096 | found="no, IRIX ld uses -B,dynamic" | |
12097 | LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" | |
12098 | fi | |
12099 | ||
12100 | if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then | |
12101 | found="no, AIX ld uses -G -brtl" | |
12102 | LDFLAGS="${LDFLAGS} -Wl,-G,-brtl" | |
12103 | fi | |
12104 | ||
631ef239 | 12105 | { echo "$as_me:$LINENO: result: $found" >&5 |
12106 | echo "${ECHO_T}$found" >&6; } | |
212380e3 | 12107 | |
12108 | if test "$found" = yes; then | |
12109 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" | |
12110 | fi | |
12111 | ||
631ef239 | 12112 | { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5 |
12113 | echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; } | |
212380e3 | 12114 | if test "$SGS" = "yes"; then |
631ef239 | 12115 | { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5 |
12116 | echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; } | |
212380e3 | 12117 | PICFLAGS="-KPIC -DPIC -G" |
12118 | fi | |
12119 | ||
12120 | if test "$AppleGCC" = "yes"; then | |
631ef239 | 12121 | { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5 |
12122 | echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; } | |
212380e3 | 12123 | PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" |
12124 | fi | |
12125 | if test "$HPUX" = "yes" -a "$CC" != gcc; then | |
631ef239 | 12126 | { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5 |
12127 | echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; } | |
212380e3 | 12128 | PICFLAGS="+z -r -q -n -c" |
631ef239 | 12129 | { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5 |
12130 | echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; } | |
212380e3 | 12131 | |
12132 | if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then | |
631ef239 | 12133 | { echo "$as_me:$LINENO: result: no" >&5 |
12134 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12135 | else |
631ef239 | 12136 | { echo "$as_me:$LINENO: result: yes" >&5 |
12137 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 12138 | PICFLAGS="$PICFLAGS +ESfic" |
12139 | fi | |
12140 | ||
12141 | LDFLAGS="${LDFLAGS} -Wl,-E" | |
12142 | fi | |
12143 | if test "$Tru" = yes -a "$CC" != gcc; then | |
631ef239 | 12144 | { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5 |
12145 | echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; } | |
212380e3 | 12146 | PICFLAGS="-shared -expect_unresolved '*' " |
12147 | LDFLAGS="-call_shared" | |
12148 | fi | |
12149 | if test -z "$PICFLAGS"; then | |
12150 | if test "$ac_cv_c_compiler_gnu" = "yes"; then | |
631ef239 | 12151 | { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5 |
12152 | echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; } | |
212380e3 | 12153 | PICFLAGS="-fPIC -DPIC -shared" |
12154 | else | |
631ef239 | 12155 | { echo "$as_me:$LINENO: result: no" >&5 |
12156 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12157 | shared_modules=no |
12158 | fi | |
12159 | fi | |
12160 | fi | |
12161 | ||
12162 | # This must be down here, or it will mess up checks like the ones | |
12163 | # for -Wl,-export-dynamic | |
12164 | # -- jilles | |
631ef239 | 12165 | # Check whether --enable-warnings was given. |
212380e3 | 12166 | if test "${enable_warnings+set}" = set; then |
631ef239 | 12167 | enableval=$enable_warnings; |
212380e3 | 12168 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
12169 | CFLAGS="$IRC_CFLAGS" | |
12170 | ||
12171 | ||
631ef239 | 12172 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5 |
12173 | echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; } | |
212380e3 | 12174 | if test "${GCC-no}" = yes |
12175 | then | |
12176 | if test "${charybdis_cv_c_gcc_w_all+set}" = set; then | |
12177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12178 | else | |
12179 | ||
12180 | oldcflags="${CFLAGS-}" | |
12181 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
12182 | cat >conftest.$ac_ext <<_ACEOF | |
12183 | /* confdefs.h. */ | |
12184 | _ACEOF | |
12185 | cat confdefs.h >>conftest.$ac_ext | |
12186 | cat >>conftest.$ac_ext <<_ACEOF | |
12187 | /* end confdefs.h. */ | |
12188 | ||
12189 | #include <string.h> | |
12190 | #include <stdio.h> | |
12191 | int main(void); | |
12192 | ||
12193 | int | |
12194 | main () | |
12195 | { | |
12196 | ||
b1fc1658 | 12197 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 12198 | |
12199 | ; | |
12200 | return 0; | |
12201 | } | |
12202 | _ACEOF | |
12203 | rm -f conftest.$ac_objext | |
631ef239 | 12204 | if { (ac_try="$ac_compile" |
12205 | case "(($ac_try" in | |
12206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12207 | *) ac_try_echo=$ac_try;; | |
12208 | esac | |
12209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12210 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 12211 | ac_status=$? |
12212 | grep -v '^ *+' conftest.er1 >conftest.err | |
12213 | rm -f conftest.er1 | |
12214 | cat conftest.err >&5 | |
12215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 12216 | (exit $ac_status); } && { |
12217 | test -z "$ac_c_werror_flag" || | |
12218 | test ! -s conftest.err | |
12219 | } && test -s conftest.$ac_objext; then | |
212380e3 | 12220 | charybdis_cv_c_gcc_w_all=yes |
12221 | else | |
12222 | echo "$as_me: failed program was:" >&5 | |
12223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12224 | ||
631ef239 | 12225 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 12226 | fi |
631ef239 | 12227 | |
12228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 12229 | CFLAGS="${oldcflags}" |
12230 | fi | |
12231 | ||
12232 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
12233 | CWARNS="${CWARNS}-Wall " | |
631ef239 | 12234 | { echo "$as_me:$LINENO: result: ok" >&5 |
12235 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 12236 | else |
12237 | charybdis_cv_c_gcc_w_all='' | |
631ef239 | 12238 | { echo "$as_me:$LINENO: result: no" >&5 |
12239 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12240 | fi |
12241 | else | |
631ef239 | 12242 | { echo "$as_me:$LINENO: result: no" >&5 |
12243 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12244 | fi |
12245 | ||
12246 | ||
631ef239 | 12247 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5 |
12248 | echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; } | |
212380e3 | 12249 | if test "${GCC-no}" = yes |
12250 | then | |
12251 | if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then | |
12252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12253 | else | |
12254 | ||
12255 | oldcflags="${CFLAGS-}" | |
12256 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
12257 | cat >conftest.$ac_ext <<_ACEOF | |
12258 | /* confdefs.h. */ | |
12259 | _ACEOF | |
12260 | cat confdefs.h >>conftest.$ac_ext | |
12261 | cat >>conftest.$ac_ext <<_ACEOF | |
12262 | /* end confdefs.h. */ | |
12263 | ||
12264 | #include <string.h> | |
12265 | #include <stdio.h> | |
12266 | int main(void); | |
12267 | ||
12268 | int | |
12269 | main () | |
12270 | { | |
12271 | ||
b1fc1658 | 12272 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 12273 | |
12274 | ; | |
12275 | return 0; | |
12276 | } | |
12277 | _ACEOF | |
12278 | rm -f conftest.$ac_objext | |
631ef239 | 12279 | if { (ac_try="$ac_compile" |
12280 | case "(($ac_try" in | |
12281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12282 | *) ac_try_echo=$ac_try;; | |
12283 | esac | |
12284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12285 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 12286 | ac_status=$? |
12287 | grep -v '^ *+' conftest.er1 >conftest.err | |
12288 | rm -f conftest.er1 | |
12289 | cat conftest.err >&5 | |
12290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 12291 | (exit $ac_status); } && { |
12292 | test -z "$ac_c_werror_flag" || | |
12293 | test ! -s conftest.err | |
12294 | } && test -s conftest.$ac_objext; then | |
212380e3 | 12295 | charybdis_cv_c_gcc_w_pointer_arith=yes |
12296 | else | |
12297 | echo "$as_me: failed program was:" >&5 | |
12298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12299 | ||
631ef239 | 12300 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 12301 | fi |
631ef239 | 12302 | |
12303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 12304 | CFLAGS="${oldcflags}" |
12305 | fi | |
12306 | ||
12307 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
12308 | CWARNS="${CWARNS}-Wpointer-arith " | |
631ef239 | 12309 | { echo "$as_me:$LINENO: result: ok" >&5 |
12310 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 12311 | else |
12312 | charybdis_cv_c_gcc_w_pointer_arith='' | |
631ef239 | 12313 | { echo "$as_me:$LINENO: result: no" >&5 |
12314 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12315 | fi |
12316 | else | |
631ef239 | 12317 | { echo "$as_me:$LINENO: result: no" >&5 |
12318 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12319 | fi |
12320 | ||
12321 | ||
631ef239 | 12322 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
12323 | echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; } | |
212380e3 | 12324 | if test "${GCC-no}" = yes |
12325 | then | |
12326 | if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then | |
12327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12328 | else | |
12329 | ||
12330 | oldcflags="${CFLAGS-}" | |
12331 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
12332 | cat >conftest.$ac_ext <<_ACEOF | |
12333 | /* confdefs.h. */ | |
12334 | _ACEOF | |
12335 | cat confdefs.h >>conftest.$ac_ext | |
12336 | cat >>conftest.$ac_ext <<_ACEOF | |
12337 | /* end confdefs.h. */ | |
12338 | ||
12339 | #include <string.h> | |
12340 | #include <stdio.h> | |
12341 | int main(void); | |
12342 | ||
12343 | int | |
12344 | main () | |
12345 | { | |
12346 | ||
b1fc1658 | 12347 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 12348 | |
12349 | ; | |
12350 | return 0; | |
12351 | } | |
12352 | _ACEOF | |
12353 | rm -f conftest.$ac_objext | |
631ef239 | 12354 | if { (ac_try="$ac_compile" |
12355 | case "(($ac_try" in | |
12356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12357 | *) ac_try_echo=$ac_try;; | |
12358 | esac | |
12359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12360 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 12361 | ac_status=$? |
12362 | grep -v '^ *+' conftest.er1 >conftest.err | |
12363 | rm -f conftest.er1 | |
12364 | cat conftest.err >&5 | |
12365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 12366 | (exit $ac_status); } && { |
12367 | test -z "$ac_c_werror_flag" || | |
12368 | test ! -s conftest.err | |
12369 | } && test -s conftest.$ac_objext; then | |
212380e3 | 12370 | charybdis_cv_c_gcc_w_implicit=yes |
12371 | else | |
12372 | echo "$as_me: failed program was:" >&5 | |
12373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12374 | ||
631ef239 | 12375 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 12376 | fi |
631ef239 | 12377 | |
12378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 12379 | CFLAGS="${oldcflags}" |
12380 | fi | |
12381 | ||
12382 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
12383 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
631ef239 | 12384 | { echo "$as_me:$LINENO: result: ok" >&5 |
12385 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 12386 | else |
12387 | charybdis_cv_c_gcc_w_implicit='' | |
631ef239 | 12388 | { echo "$as_me:$LINENO: result: no" >&5 |
12389 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12390 | fi |
12391 | else | |
631ef239 | 12392 | { echo "$as_me:$LINENO: result: no" >&5 |
12393 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12394 | fi |
12395 | ||
12396 | ||
631ef239 | 12397 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5 |
12398 | echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; } | |
212380e3 | 12399 | if test "${GCC-no}" = yes |
12400 | then | |
12401 | if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then | |
12402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12403 | else | |
12404 | ||
12405 | oldcflags="${CFLAGS-}" | |
12406 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
12407 | cat >conftest.$ac_ext <<_ACEOF | |
12408 | /* confdefs.h. */ | |
12409 | _ACEOF | |
12410 | cat confdefs.h >>conftest.$ac_ext | |
12411 | cat >>conftest.$ac_ext <<_ACEOF | |
12412 | /* end confdefs.h. */ | |
12413 | ||
12414 | #include <string.h> | |
12415 | #include <stdio.h> | |
12416 | int main(void); | |
12417 | ||
12418 | int | |
12419 | main () | |
12420 | { | |
12421 | ||
b1fc1658 | 12422 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 12423 | |
12424 | ; | |
12425 | return 0; | |
12426 | } | |
12427 | _ACEOF | |
12428 | rm -f conftest.$ac_objext | |
631ef239 | 12429 | if { (ac_try="$ac_compile" |
12430 | case "(($ac_try" in | |
12431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12432 | *) ac_try_echo=$ac_try;; | |
12433 | esac | |
12434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12435 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 12436 | ac_status=$? |
12437 | grep -v '^ *+' conftest.er1 >conftest.err | |
12438 | rm -f conftest.er1 | |
12439 | cat conftest.err >&5 | |
12440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 12441 | (exit $ac_status); } && { |
12442 | test -z "$ac_c_werror_flag" || | |
12443 | test ! -s conftest.err | |
12444 | } && test -s conftest.$ac_objext; then | |
212380e3 | 12445 | charybdis_cv_c_gcc_w_cast_align=yes |
12446 | else | |
12447 | echo "$as_me: failed program was:" >&5 | |
12448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12449 | ||
631ef239 | 12450 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 12451 | fi |
631ef239 | 12452 | |
12453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 12454 | CFLAGS="${oldcflags}" |
12455 | fi | |
12456 | ||
12457 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
12458 | CWARNS="${CWARNS}-Wcast-align " | |
631ef239 | 12459 | { echo "$as_me:$LINENO: result: ok" >&5 |
12460 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 12461 | else |
12462 | charybdis_cv_c_gcc_w_cast_align='' | |
631ef239 | 12463 | { echo "$as_me:$LINENO: result: no" >&5 |
12464 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12465 | fi |
12466 | else | |
631ef239 | 12467 | { echo "$as_me:$LINENO: result: no" >&5 |
12468 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12469 | fi |
12470 | ||
12471 | ||
631ef239 | 12472 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5 |
12473 | echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; } | |
212380e3 | 12474 | if test "${GCC-no}" = yes |
12475 | then | |
12476 | if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then | |
12477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12478 | else | |
12479 | ||
12480 | oldcflags="${CFLAGS-}" | |
12481 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
12482 | cat >conftest.$ac_ext <<_ACEOF | |
12483 | /* confdefs.h. */ | |
12484 | _ACEOF | |
12485 | cat confdefs.h >>conftest.$ac_ext | |
12486 | cat >>conftest.$ac_ext <<_ACEOF | |
12487 | /* end confdefs.h. */ | |
12488 | ||
12489 | #include <string.h> | |
12490 | #include <stdio.h> | |
12491 | int main(void); | |
12492 | ||
12493 | int | |
12494 | main () | |
12495 | { | |
12496 | ||
b1fc1658 | 12497 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 12498 | |
12499 | ; | |
12500 | return 0; | |
12501 | } | |
12502 | _ACEOF | |
12503 | rm -f conftest.$ac_objext | |
631ef239 | 12504 | if { (ac_try="$ac_compile" |
12505 | case "(($ac_try" in | |
12506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12507 | *) ac_try_echo=$ac_try;; | |
12508 | esac | |
12509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12510 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 12511 | ac_status=$? |
12512 | grep -v '^ *+' conftest.er1 >conftest.err | |
12513 | rm -f conftest.er1 | |
12514 | cat conftest.err >&5 | |
12515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 12516 | (exit $ac_status); } && { |
12517 | test -z "$ac_c_werror_flag" || | |
12518 | test ! -s conftest.err | |
12519 | } && test -s conftest.$ac_objext; then | |
212380e3 | 12520 | charybdis_cv_c_gcc_w_cast_qual=yes |
12521 | else | |
12522 | echo "$as_me: failed program was:" >&5 | |
12523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12524 | ||
631ef239 | 12525 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 12526 | fi |
631ef239 | 12527 | |
12528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 12529 | CFLAGS="${oldcflags}" |
12530 | fi | |
12531 | ||
12532 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
12533 | CWARNS="${CWARNS}-Wcast-qual " | |
631ef239 | 12534 | { echo "$as_me:$LINENO: result: ok" >&5 |
12535 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 12536 | else |
12537 | charybdis_cv_c_gcc_w_cast_qual='' | |
631ef239 | 12538 | { echo "$as_me:$LINENO: result: no" >&5 |
12539 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12540 | fi |
12541 | else | |
631ef239 | 12542 | { echo "$as_me:$LINENO: result: no" >&5 |
12543 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12544 | fi |
12545 | ||
12546 | ||
631ef239 | 12547 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
12548 | echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; } | |
212380e3 | 12549 | if test "${GCC-no}" = yes |
12550 | then | |
12551 | if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then | |
12552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12553 | else | |
12554 | ||
12555 | oldcflags="${CFLAGS-}" | |
12556 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
12557 | cat >conftest.$ac_ext <<_ACEOF | |
12558 | /* confdefs.h. */ | |
12559 | _ACEOF | |
12560 | cat confdefs.h >>conftest.$ac_ext | |
12561 | cat >>conftest.$ac_ext <<_ACEOF | |
12562 | /* end confdefs.h. */ | |
12563 | ||
12564 | #include <string.h> | |
12565 | #include <stdio.h> | |
12566 | int main(void); | |
12567 | ||
12568 | int | |
12569 | main () | |
12570 | { | |
12571 | ||
b1fc1658 | 12572 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 12573 | |
12574 | ; | |
12575 | return 0; | |
12576 | } | |
12577 | _ACEOF | |
12578 | rm -f conftest.$ac_objext | |
631ef239 | 12579 | if { (ac_try="$ac_compile" |
12580 | case "(($ac_try" in | |
12581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12582 | *) ac_try_echo=$ac_try;; | |
12583 | esac | |
12584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12585 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 12586 | ac_status=$? |
12587 | grep -v '^ *+' conftest.er1 >conftest.err | |
12588 | rm -f conftest.er1 | |
12589 | cat conftest.err >&5 | |
12590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 12591 | (exit $ac_status); } && { |
12592 | test -z "$ac_c_werror_flag" || | |
12593 | test ! -s conftest.err | |
12594 | } && test -s conftest.$ac_objext; then | |
212380e3 | 12595 | charybdis_cv_c_gcc_prototypes=yes |
12596 | else | |
12597 | echo "$as_me: failed program was:" >&5 | |
12598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12599 | ||
631ef239 | 12600 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 12601 | fi |
631ef239 | 12602 | |
12603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 12604 | CFLAGS="${oldcflags}" |
12605 | fi | |
12606 | ||
12607 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
12608 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
631ef239 | 12609 | { echo "$as_me:$LINENO: result: ok" >&5 |
12610 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 12611 | else |
12612 | charybdis_cv_c_gcc_prototypes='' | |
631ef239 | 12613 | { echo "$as_me:$LINENO: result: no" >&5 |
12614 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12615 | fi |
12616 | else | |
631ef239 | 12617 | { echo "$as_me:$LINENO: result: no" >&5 |
12618 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12619 | fi |
12620 | ||
12621 | ||
631ef239 | 12622 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5 |
12623 | echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; } | |
212380e3 | 12624 | if test "${GCC-no}" = yes |
12625 | then | |
12626 | if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then | |
12627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12628 | else | |
12629 | ||
12630 | oldcflags="${CFLAGS-}" | |
12631 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
12632 | cat >conftest.$ac_ext <<_ACEOF | |
12633 | /* confdefs.h. */ | |
12634 | _ACEOF | |
12635 | cat confdefs.h >>conftest.$ac_ext | |
12636 | cat >>conftest.$ac_ext <<_ACEOF | |
12637 | /* end confdefs.h. */ | |
12638 | ||
12639 | #include <string.h> | |
12640 | #include <stdio.h> | |
12641 | int main(void); | |
12642 | ||
12643 | int | |
12644 | main () | |
12645 | { | |
12646 | ||
b1fc1658 | 12647 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 12648 | |
12649 | ; | |
12650 | return 0; | |
12651 | } | |
12652 | _ACEOF | |
12653 | rm -f conftest.$ac_objext | |
631ef239 | 12654 | if { (ac_try="$ac_compile" |
12655 | case "(($ac_try" in | |
12656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12657 | *) ac_try_echo=$ac_try;; | |
12658 | esac | |
12659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12660 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 12661 | ac_status=$? |
12662 | grep -v '^ *+' conftest.er1 >conftest.err | |
12663 | rm -f conftest.er1 | |
12664 | cat conftest.err >&5 | |
12665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 12666 | (exit $ac_status); } && { |
12667 | test -z "$ac_c_werror_flag" || | |
12668 | test ! -s conftest.err | |
12669 | } && test -s conftest.$ac_objext; then | |
212380e3 | 12670 | charybdis_cv_c_gcc_parenthesis=yes |
12671 | else | |
12672 | echo "$as_me: failed program was:" >&5 | |
12673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12674 | ||
631ef239 | 12675 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 12676 | fi |
631ef239 | 12677 | |
12678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 12679 | CFLAGS="${oldcflags}" |
12680 | fi | |
12681 | ||
12682 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
12683 | CWARNS="${CWARNS}-Wparenthesis " | |
631ef239 | 12684 | { echo "$as_me:$LINENO: result: ok" >&5 |
12685 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 12686 | else |
12687 | charybdis_cv_c_gcc_parenthesis='' | |
631ef239 | 12688 | { echo "$as_me:$LINENO: result: no" >&5 |
12689 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12690 | fi |
12691 | else | |
631ef239 | 12692 | { echo "$as_me:$LINENO: result: no" >&5 |
12693 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12694 | fi |
12695 | ||
12696 | ||
631ef239 | 12697 | { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5 |
12698 | echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; } | |
212380e3 | 12699 | if test "${GCC-no}" = yes |
12700 | then | |
12701 | if test "${charybdis_cv_c_gcc_w+set}" = set; then | |
12702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12703 | else | |
12704 | ||
12705 | oldcflags="${CFLAGS-}" | |
12706 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
12707 | cat >conftest.$ac_ext <<_ACEOF | |
12708 | /* confdefs.h. */ | |
12709 | _ACEOF | |
12710 | cat confdefs.h >>conftest.$ac_ext | |
12711 | cat >>conftest.$ac_ext <<_ACEOF | |
12712 | /* end confdefs.h. */ | |
12713 | ||
12714 | #include <string.h> | |
12715 | #include <stdio.h> | |
12716 | int main(void); | |
12717 | ||
12718 | int | |
12719 | main () | |
12720 | { | |
12721 | ||
b1fc1658 | 12722 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 12723 | |
12724 | ; | |
12725 | return 0; | |
12726 | } | |
12727 | _ACEOF | |
12728 | rm -f conftest.$ac_objext | |
631ef239 | 12729 | if { (ac_try="$ac_compile" |
12730 | case "(($ac_try" in | |
12731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12732 | *) ac_try_echo=$ac_try;; | |
12733 | esac | |
12734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12735 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 12736 | ac_status=$? |
12737 | grep -v '^ *+' conftest.er1 >conftest.err | |
12738 | rm -f conftest.er1 | |
12739 | cat conftest.err >&5 | |
12740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 12741 | (exit $ac_status); } && { |
12742 | test -z "$ac_c_werror_flag" || | |
12743 | test ! -s conftest.err | |
12744 | } && test -s conftest.$ac_objext; then | |
212380e3 | 12745 | charybdis_cv_c_gcc_w=yes |
12746 | else | |
12747 | echo "$as_me: failed program was:" >&5 | |
12748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12749 | ||
631ef239 | 12750 | charybdis_cv_c_gcc_w=no |
212380e3 | 12751 | fi |
631ef239 | 12752 | |
12753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 12754 | CFLAGS="${oldcflags}" |
12755 | fi | |
12756 | ||
12757 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
12758 | CWARNS="${CWARNS}-W -Wno-unused " | |
631ef239 | 12759 | { echo "$as_me:$LINENO: result: ok" >&5 |
12760 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 12761 | else |
12762 | charybdis_cv_c_gcc_w='' | |
631ef239 | 12763 | { echo "$as_me:$LINENO: result: no" >&5 |
12764 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12765 | fi |
12766 | else | |
631ef239 | 12767 | { echo "$as_me:$LINENO: result: no" >&5 |
12768 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12769 | fi |
12770 | ||
12771 | ||
631ef239 | 12772 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5 |
12773 | echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; } | |
212380e3 | 12774 | if test "${GCC-no}" = yes |
12775 | then | |
12776 | if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then | |
12777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12778 | else | |
12779 | ||
12780 | oldcflags="${CFLAGS-}" | |
12781 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
12782 | cat >conftest.$ac_ext <<_ACEOF | |
12783 | /* confdefs.h. */ | |
12784 | _ACEOF | |
12785 | cat confdefs.h >>conftest.$ac_ext | |
12786 | cat >>conftest.$ac_ext <<_ACEOF | |
12787 | /* end confdefs.h. */ | |
12788 | ||
12789 | #include <string.h> | |
12790 | #include <stdio.h> | |
12791 | int main(void); | |
12792 | ||
12793 | int | |
12794 | main () | |
12795 | { | |
12796 | ||
b1fc1658 | 12797 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 12798 | |
12799 | ; | |
12800 | return 0; | |
12801 | } | |
12802 | _ACEOF | |
12803 | rm -f conftest.$ac_objext | |
631ef239 | 12804 | if { (ac_try="$ac_compile" |
12805 | case "(($ac_try" in | |
12806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12807 | *) ac_try_echo=$ac_try;; | |
12808 | esac | |
12809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12810 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 12811 | ac_status=$? |
12812 | grep -v '^ *+' conftest.er1 >conftest.err | |
12813 | rm -f conftest.er1 | |
12814 | cat conftest.err >&5 | |
12815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 12816 | (exit $ac_status); } && { |
12817 | test -z "$ac_c_werror_flag" || | |
12818 | test ! -s conftest.err | |
12819 | } && test -s conftest.$ac_objext; then | |
212380e3 | 12820 | charybdis_cv_c_gcc_w_extra=yes |
12821 | else | |
12822 | echo "$as_me: failed program was:" >&5 | |
12823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12824 | ||
631ef239 | 12825 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 12826 | fi |
631ef239 | 12827 | |
12828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 12829 | CFLAGS="${oldcflags}" |
12830 | fi | |
12831 | ||
12832 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
12833 | CWARNS="${CWARNS}-Wextra " | |
631ef239 | 12834 | { echo "$as_me:$LINENO: result: ok" >&5 |
12835 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 12836 | else |
12837 | charybdis_cv_c_gcc_w_extra='' | |
631ef239 | 12838 | { echo "$as_me:$LINENO: result: no" >&5 |
12839 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12840 | fi |
12841 | else | |
631ef239 | 12842 | { echo "$as_me:$LINENO: result: no" >&5 |
12843 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12844 | fi |
12845 | ||
12846 | ||
631ef239 | 12847 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5 |
12848 | echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; } | |
212380e3 | 12849 | if test "${GCC-no}" = yes |
12850 | then | |
12851 | if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then | |
12852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12853 | else | |
12854 | ||
12855 | oldcflags="${CFLAGS-}" | |
12856 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
12857 | cat >conftest.$ac_ext <<_ACEOF | |
12858 | /* confdefs.h. */ | |
12859 | _ACEOF | |
12860 | cat confdefs.h >>conftest.$ac_ext | |
12861 | cat >>conftest.$ac_ext <<_ACEOF | |
12862 | /* end confdefs.h. */ | |
12863 | ||
12864 | #include <string.h> | |
12865 | #include <stdio.h> | |
12866 | int main(void); | |
12867 | ||
12868 | int | |
12869 | main () | |
12870 | { | |
12871 | ||
b1fc1658 | 12872 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 12873 | |
12874 | ; | |
12875 | return 0; | |
12876 | } | |
12877 | _ACEOF | |
12878 | rm -f conftest.$ac_objext | |
631ef239 | 12879 | if { (ac_try="$ac_compile" |
12880 | case "(($ac_try" in | |
12881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12882 | *) ac_try_echo=$ac_try;; | |
12883 | esac | |
12884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12885 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 12886 | ac_status=$? |
12887 | grep -v '^ *+' conftest.er1 >conftest.err | |
12888 | rm -f conftest.er1 | |
12889 | cat conftest.err >&5 | |
12890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 12891 | (exit $ac_status); } && { |
12892 | test -z "$ac_c_werror_flag" || | |
12893 | test ! -s conftest.err | |
12894 | } && test -s conftest.$ac_objext; then | |
212380e3 | 12895 | charybdis_cv_c_gcc_w_shadow=yes |
12896 | else | |
12897 | echo "$as_me: failed program was:" >&5 | |
12898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12899 | ||
631ef239 | 12900 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 12901 | fi |
631ef239 | 12902 | |
12903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 12904 | CFLAGS="${oldcflags}" |
12905 | fi | |
12906 | ||
12907 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
12908 | CWARNS="${CWARNS}-Wshadow " | |
631ef239 | 12909 | { echo "$as_me:$LINENO: result: ok" >&5 |
12910 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 12911 | else |
12912 | charybdis_cv_c_gcc_w_shadow='' | |
631ef239 | 12913 | { echo "$as_me:$LINENO: result: no" >&5 |
12914 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12915 | fi |
12916 | else | |
631ef239 | 12917 | { echo "$as_me:$LINENO: result: no" >&5 |
12918 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12919 | fi |
12920 | ||
12921 | ||
631ef239 | 12922 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5 |
12923 | echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; } | |
212380e3 | 12924 | if test "${GCC-no}" = yes |
12925 | then | |
12926 | if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then | |
12927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12928 | else | |
12929 | ||
12930 | oldcflags="${CFLAGS-}" | |
12931 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
12932 | cat >conftest.$ac_ext <<_ACEOF | |
12933 | /* confdefs.h. */ | |
12934 | _ACEOF | |
12935 | cat confdefs.h >>conftest.$ac_ext | |
12936 | cat >>conftest.$ac_ext <<_ACEOF | |
12937 | /* end confdefs.h. */ | |
12938 | ||
12939 | #include <string.h> | |
12940 | #include <stdio.h> | |
12941 | int main(void); | |
12942 | ||
12943 | int | |
12944 | main () | |
12945 | { | |
12946 | ||
b1fc1658 | 12947 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 12948 | |
12949 | ; | |
12950 | return 0; | |
12951 | } | |
12952 | _ACEOF | |
12953 | rm -f conftest.$ac_objext | |
631ef239 | 12954 | if { (ac_try="$ac_compile" |
12955 | case "(($ac_try" in | |
12956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12957 | *) ac_try_echo=$ac_try;; | |
12958 | esac | |
12959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12960 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 12961 | ac_status=$? |
12962 | grep -v '^ *+' conftest.er1 >conftest.err | |
12963 | rm -f conftest.er1 | |
12964 | cat conftest.err >&5 | |
12965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 12966 | (exit $ac_status); } && { |
12967 | test -z "$ac_c_werror_flag" || | |
12968 | test ! -s conftest.err | |
12969 | } && test -s conftest.$ac_objext; then | |
212380e3 | 12970 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
12971 | else | |
12972 | echo "$as_me: failed program was:" >&5 | |
12973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12974 | ||
631ef239 | 12975 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 12976 | fi |
631ef239 | 12977 | |
12978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 12979 | CFLAGS="${oldcflags}" |
12980 | fi | |
12981 | ||
12982 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
12983 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
631ef239 | 12984 | { echo "$as_me:$LINENO: result: ok" >&5 |
12985 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 12986 | else |
12987 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
631ef239 | 12988 | { echo "$as_me:$LINENO: result: no" >&5 |
12989 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12990 | fi |
12991 | else | |
631ef239 | 12992 | { echo "$as_me:$LINENO: result: no" >&5 |
12993 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 12994 | fi |
12995 | ||
12996 | ||
631ef239 | 12997 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5 |
12998 | echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; } | |
212380e3 | 12999 | if test "${GCC-no}" = yes |
13000 | then | |
13001 | if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then | |
13002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13003 | else | |
13004 | ||
13005 | oldcflags="${CFLAGS-}" | |
13006 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
13007 | cat >conftest.$ac_ext <<_ACEOF | |
13008 | /* confdefs.h. */ | |
13009 | _ACEOF | |
13010 | cat confdefs.h >>conftest.$ac_ext | |
13011 | cat >>conftest.$ac_ext <<_ACEOF | |
13012 | /* end confdefs.h. */ | |
13013 | ||
13014 | #include <string.h> | |
13015 | #include <stdio.h> | |
13016 | int main(void); | |
13017 | ||
13018 | int | |
13019 | main () | |
13020 | { | |
13021 | ||
b1fc1658 | 13022 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 13023 | |
13024 | ; | |
13025 | return 0; | |
13026 | } | |
13027 | _ACEOF | |
13028 | rm -f conftest.$ac_objext | |
631ef239 | 13029 | if { (ac_try="$ac_compile" |
13030 | case "(($ac_try" in | |
13031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13032 | *) ac_try_echo=$ac_try;; | |
13033 | esac | |
13034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13035 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 13036 | ac_status=$? |
13037 | grep -v '^ *+' conftest.er1 >conftest.err | |
13038 | rm -f conftest.er1 | |
13039 | cat conftest.err >&5 | |
13040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 13041 | (exit $ac_status); } && { |
13042 | test -z "$ac_c_werror_flag" || | |
13043 | test ! -s conftest.err | |
13044 | } && test -s conftest.$ac_objext; then | |
212380e3 | 13045 | charybdis_cv_c_gcc_w_undef=yes |
13046 | else | |
13047 | echo "$as_me: failed program was:" >&5 | |
13048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13049 | ||
631ef239 | 13050 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 13051 | fi |
631ef239 | 13052 | |
13053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 13054 | CFLAGS="${oldcflags}" |
13055 | fi | |
13056 | ||
13057 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
13058 | CWARNS="${CWARNS}-Wundef " | |
631ef239 | 13059 | { echo "$as_me:$LINENO: result: ok" >&5 |
13060 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 13061 | else |
13062 | charybdis_cv_c_gcc_w_undef='' | |
631ef239 | 13063 | { echo "$as_me:$LINENO: result: no" >&5 |
13064 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13065 | fi |
13066 | else | |
631ef239 | 13067 | { echo "$as_me:$LINENO: result: no" >&5 |
13068 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13069 | fi |
13070 | ||
13071 | ||
631ef239 | 13072 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5 |
13073 | echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; } | |
212380e3 | 13074 | if test "${GCC-no}" = yes |
13075 | then | |
13076 | if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then | |
13077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13078 | else | |
13079 | ||
13080 | oldcflags="${CFLAGS-}" | |
13081 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
13082 | cat >conftest.$ac_ext <<_ACEOF | |
13083 | /* confdefs.h. */ | |
13084 | _ACEOF | |
13085 | cat confdefs.h >>conftest.$ac_ext | |
13086 | cat >>conftest.$ac_ext <<_ACEOF | |
13087 | /* end confdefs.h. */ | |
13088 | ||
13089 | #include <string.h> | |
13090 | #include <stdio.h> | |
13091 | int main(void); | |
13092 | ||
13093 | int | |
13094 | main () | |
13095 | { | |
13096 | ||
b1fc1658 | 13097 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 13098 | |
13099 | ; | |
13100 | return 0; | |
13101 | } | |
13102 | _ACEOF | |
13103 | rm -f conftest.$ac_objext | |
631ef239 | 13104 | if { (ac_try="$ac_compile" |
13105 | case "(($ac_try" in | |
13106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13107 | *) ac_try_echo=$ac_try;; | |
13108 | esac | |
13109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13110 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 13111 | ac_status=$? |
13112 | grep -v '^ *+' conftest.er1 >conftest.err | |
13113 | rm -f conftest.er1 | |
13114 | cat conftest.err >&5 | |
13115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 13116 | (exit $ac_status); } && { |
13117 | test -z "$ac_c_werror_flag" || | |
13118 | test ! -s conftest.err | |
13119 | } && test -s conftest.$ac_objext; then | |
212380e3 | 13120 | charybdis_cv_c_gcc_w_packed=yes |
13121 | else | |
13122 | echo "$as_me: failed program was:" >&5 | |
13123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13124 | ||
631ef239 | 13125 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 13126 | fi |
631ef239 | 13127 | |
13128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 13129 | CFLAGS="${oldcflags}" |
13130 | fi | |
13131 | ||
13132 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
13133 | CWARNS="${CWARNS}-Wpacked " | |
631ef239 | 13134 | { echo "$as_me:$LINENO: result: ok" >&5 |
13135 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 13136 | else |
13137 | charybdis_cv_c_gcc_w_packed='' | |
631ef239 | 13138 | { echo "$as_me:$LINENO: result: no" >&5 |
13139 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13140 | fi |
13141 | else | |
631ef239 | 13142 | { echo "$as_me:$LINENO: result: no" >&5 |
13143 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13144 | fi |
13145 | ||
13146 | ||
631ef239 | 13147 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5 |
13148 | echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; } | |
212380e3 | 13149 | if test "${GCC-no}" = yes |
13150 | then | |
13151 | if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then | |
13152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13153 | else | |
13154 | ||
13155 | oldcflags="${CFLAGS-}" | |
13156 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
13157 | cat >conftest.$ac_ext <<_ACEOF | |
13158 | /* confdefs.h. */ | |
13159 | _ACEOF | |
13160 | cat confdefs.h >>conftest.$ac_ext | |
13161 | cat >>conftest.$ac_ext <<_ACEOF | |
13162 | /* end confdefs.h. */ | |
13163 | ||
13164 | #include <string.h> | |
13165 | #include <stdio.h> | |
13166 | int main(void); | |
13167 | ||
13168 | int | |
13169 | main () | |
13170 | { | |
13171 | ||
b1fc1658 | 13172 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 13173 | |
13174 | ; | |
13175 | return 0; | |
13176 | } | |
13177 | _ACEOF | |
13178 | rm -f conftest.$ac_objext | |
631ef239 | 13179 | if { (ac_try="$ac_compile" |
13180 | case "(($ac_try" in | |
13181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13182 | *) ac_try_echo=$ac_try;; | |
13183 | esac | |
13184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13185 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 13186 | ac_status=$? |
13187 | grep -v '^ *+' conftest.er1 >conftest.err | |
13188 | rm -f conftest.er1 | |
13189 | cat conftest.err >&5 | |
13190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 13191 | (exit $ac_status); } && { |
13192 | test -z "$ac_c_werror_flag" || | |
13193 | test ! -s conftest.err | |
13194 | } && test -s conftest.$ac_objext; then | |
212380e3 | 13195 | charybdis_cv_c_gcc_w_nested_externs=yes |
13196 | else | |
13197 | echo "$as_me: failed program was:" >&5 | |
13198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13199 | ||
631ef239 | 13200 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 13201 | fi |
631ef239 | 13202 | |
13203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 13204 | CFLAGS="${oldcflags}" |
13205 | fi | |
13206 | ||
13207 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
13208 | CWARNS="${CWARNS}-Wnested-externs " | |
631ef239 | 13209 | { echo "$as_me:$LINENO: result: ok" >&5 |
13210 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 13211 | else |
13212 | charybdis_cv_c_gcc_w_nested_externs='' | |
631ef239 | 13213 | { echo "$as_me:$LINENO: result: no" >&5 |
13214 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13215 | fi |
13216 | else | |
631ef239 | 13217 | { echo "$as_me:$LINENO: result: no" >&5 |
13218 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13219 | fi |
13220 | ||
13221 | ||
631ef239 | 13222 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5 |
13223 | echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6; } | |
212380e3 | 13224 | if test "${GCC-no}" = yes |
13225 | then | |
13226 | if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then | |
13227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13228 | else | |
13229 | ||
13230 | oldcflags="${CFLAGS-}" | |
13231 | CFLAGS="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror" | |
13232 | cat >conftest.$ac_ext <<_ACEOF | |
13233 | /* confdefs.h. */ | |
13234 | _ACEOF | |
13235 | cat confdefs.h >>conftest.$ac_ext | |
13236 | cat >>conftest.$ac_ext <<_ACEOF | |
13237 | /* end confdefs.h. */ | |
13238 | ||
13239 | #include <string.h> | |
13240 | #include <stdio.h> | |
13241 | int main(void); | |
13242 | ||
13243 | int | |
13244 | main () | |
13245 | { | |
13246 | ||
b1fc1658 | 13247 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 13248 | |
13249 | ; | |
13250 | return 0; | |
13251 | } | |
13252 | _ACEOF | |
13253 | rm -f conftest.$ac_objext | |
631ef239 | 13254 | if { (ac_try="$ac_compile" |
13255 | case "(($ac_try" in | |
13256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13257 | *) ac_try_echo=$ac_try;; | |
13258 | esac | |
13259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13260 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 13261 | ac_status=$? |
13262 | grep -v '^ *+' conftest.er1 >conftest.err | |
13263 | rm -f conftest.er1 | |
13264 | cat conftest.err >&5 | |
13265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 13266 | (exit $ac_status); } && { |
13267 | test -z "$ac_c_werror_flag" || | |
13268 | test ! -s conftest.err | |
13269 | } && test -s conftest.$ac_objext; then | |
212380e3 | 13270 | charybdis_cv_c_gcc_w_bad_function_cast=yes |
13271 | else | |
13272 | echo "$as_me: failed program was:" >&5 | |
13273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13274 | ||
631ef239 | 13275 | charybdis_cv_c_gcc_w_bad_function_cast=no |
212380e3 | 13276 | fi |
631ef239 | 13277 | |
13278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 13279 | CFLAGS="${oldcflags}" |
13280 | fi | |
13281 | ||
13282 | if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes; then | |
13283 | CWARNS="${CWARNS}-Wbad-function-cast " | |
631ef239 | 13284 | { echo "$as_me:$LINENO: result: ok" >&5 |
13285 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 13286 | else |
13287 | charybdis_cv_c_gcc_w_bad_function_cast='' | |
631ef239 | 13288 | { echo "$as_me:$LINENO: result: no" >&5 |
13289 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13290 | fi |
13291 | else | |
631ef239 | 13292 | { echo "$as_me:$LINENO: result: no" >&5 |
13293 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13294 | fi |
13295 | ||
13296 | ||
631ef239 | 13297 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
13298 | echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; } | |
212380e3 | 13299 | if test "${GCC-no}" = yes |
13300 | then | |
13301 | if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then | |
13302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13303 | else | |
13304 | ||
13305 | oldcflags="${CFLAGS-}" | |
13306 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
13307 | cat >conftest.$ac_ext <<_ACEOF | |
13308 | /* confdefs.h. */ | |
13309 | _ACEOF | |
13310 | cat confdefs.h >>conftest.$ac_ext | |
13311 | cat >>conftest.$ac_ext <<_ACEOF | |
13312 | /* end confdefs.h. */ | |
13313 | ||
13314 | #include <string.h> | |
13315 | #include <stdio.h> | |
13316 | int main(void); | |
13317 | ||
13318 | int | |
13319 | main () | |
13320 | { | |
13321 | ||
b1fc1658 | 13322 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 13323 | |
13324 | ; | |
13325 | return 0; | |
13326 | } | |
13327 | _ACEOF | |
13328 | rm -f conftest.$ac_objext | |
631ef239 | 13329 | if { (ac_try="$ac_compile" |
13330 | case "(($ac_try" in | |
13331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13332 | *) ac_try_echo=$ac_try;; | |
13333 | esac | |
13334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13335 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 13336 | ac_status=$? |
13337 | grep -v '^ *+' conftest.er1 >conftest.err | |
13338 | rm -f conftest.er1 | |
13339 | cat conftest.err >&5 | |
13340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 13341 | (exit $ac_status); } && { |
13342 | test -z "$ac_c_werror_flag" || | |
13343 | test ! -s conftest.err | |
13344 | } && test -s conftest.$ac_objext; then | |
212380e3 | 13345 | charybdis_cv_c_gcc_w_unused=yes |
13346 | else | |
13347 | echo "$as_me: failed program was:" >&5 | |
13348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13349 | ||
631ef239 | 13350 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 13351 | fi |
631ef239 | 13352 | |
13353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 13354 | CFLAGS="${oldcflags}" |
13355 | fi | |
13356 | ||
13357 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
13358 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
631ef239 | 13359 | { echo "$as_me:$LINENO: result: ok" >&5 |
13360 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 13361 | else |
13362 | charybdis_cv_c_gcc_w_unused='' | |
631ef239 | 13363 | { echo "$as_me:$LINENO: result: no" >&5 |
13364 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13365 | fi |
13366 | else | |
631ef239 | 13367 | { echo "$as_me:$LINENO: result: no" >&5 |
13368 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13369 | fi |
13370 | ||
13371 | ||
631ef239 | 13372 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5 |
13373 | echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; } | |
212380e3 | 13374 | if test "${GCC-no}" = yes |
13375 | then | |
13376 | if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then | |
13377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13378 | else | |
13379 | ||
13380 | oldcflags="${CFLAGS-}" | |
13381 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
13382 | cat >conftest.$ac_ext <<_ACEOF | |
13383 | /* confdefs.h. */ | |
13384 | _ACEOF | |
13385 | cat confdefs.h >>conftest.$ac_ext | |
13386 | cat >>conftest.$ac_ext <<_ACEOF | |
13387 | /* end confdefs.h. */ | |
13388 | ||
13389 | #include <string.h> | |
13390 | #include <stdio.h> | |
13391 | int main(void); | |
13392 | ||
13393 | int | |
13394 | main () | |
13395 | { | |
13396 | ||
b1fc1658 | 13397 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 13398 | |
13399 | ; | |
13400 | return 0; | |
13401 | } | |
13402 | _ACEOF | |
13403 | rm -f conftest.$ac_objext | |
631ef239 | 13404 | if { (ac_try="$ac_compile" |
13405 | case "(($ac_try" in | |
13406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13407 | *) ac_try_echo=$ac_try;; | |
13408 | esac | |
13409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13410 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 13411 | ac_status=$? |
13412 | grep -v '^ *+' conftest.er1 >conftest.err | |
13413 | rm -f conftest.er1 | |
13414 | cat conftest.err >&5 | |
13415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 13416 | (exit $ac_status); } && { |
13417 | test -z "$ac_c_werror_flag" || | |
13418 | test ! -s conftest.err | |
13419 | } && test -s conftest.$ac_objext; then | |
212380e3 | 13420 | charybdis_cv_c_gcc_w_redundant_decls=yes |
13421 | else | |
13422 | echo "$as_me: failed program was:" >&5 | |
13423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13424 | ||
631ef239 | 13425 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 13426 | fi |
631ef239 | 13427 | |
13428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 13429 | CFLAGS="${oldcflags}" |
13430 | fi | |
13431 | ||
13432 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
13433 | CWARNS="${CWARNS}-Wredundant-decls " | |
631ef239 | 13434 | { echo "$as_me:$LINENO: result: ok" >&5 |
13435 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 13436 | else |
13437 | charybdis_cv_c_gcc_w_redundant_decls='' | |
631ef239 | 13438 | { echo "$as_me:$LINENO: result: no" >&5 |
13439 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13440 | fi |
13441 | else | |
631ef239 | 13442 | { echo "$as_me:$LINENO: result: no" >&5 |
13443 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13444 | fi |
13445 | ||
13446 | ||
631ef239 | 13447 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5 |
13448 | echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; } | |
212380e3 | 13449 | if test "${GCC-no}" = yes |
13450 | then | |
13451 | if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then | |
13452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13453 | else | |
13454 | ||
13455 | oldcflags="${CFLAGS-}" | |
13456 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
13457 | cat >conftest.$ac_ext <<_ACEOF | |
13458 | /* confdefs.h. */ | |
13459 | _ACEOF | |
13460 | cat confdefs.h >>conftest.$ac_ext | |
13461 | cat >>conftest.$ac_ext <<_ACEOF | |
13462 | /* end confdefs.h. */ | |
13463 | ||
13464 | #include <string.h> | |
13465 | #include <stdio.h> | |
13466 | int main(void); | |
13467 | ||
13468 | int | |
13469 | main () | |
13470 | { | |
13471 | ||
b1fc1658 | 13472 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 13473 | |
13474 | ; | |
13475 | return 0; | |
13476 | } | |
13477 | _ACEOF | |
13478 | rm -f conftest.$ac_objext | |
631ef239 | 13479 | if { (ac_try="$ac_compile" |
13480 | case "(($ac_try" in | |
13481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13482 | *) ac_try_echo=$ac_try;; | |
13483 | esac | |
13484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13485 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 13486 | ac_status=$? |
13487 | grep -v '^ *+' conftest.er1 >conftest.err | |
13488 | rm -f conftest.er1 | |
13489 | cat conftest.err >&5 | |
13490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 13491 | (exit $ac_status); } && { |
13492 | test -z "$ac_c_werror_flag" || | |
13493 | test ! -s conftest.err | |
13494 | } && test -s conftest.$ac_objext; then | |
212380e3 | 13495 | charybdis_cv_c_gcc_w_float_equal=yes |
13496 | else | |
13497 | echo "$as_me: failed program was:" >&5 | |
13498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13499 | ||
631ef239 | 13500 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 13501 | fi |
631ef239 | 13502 | |
13503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 13504 | CFLAGS="${oldcflags}" |
13505 | fi | |
13506 | ||
13507 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
13508 | CWARNS="${CWARNS}-Wfloat-equal " | |
631ef239 | 13509 | { echo "$as_me:$LINENO: result: ok" >&5 |
13510 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 13511 | else |
13512 | charybdis_cv_c_gcc_w_float_equal='' | |
631ef239 | 13513 | { echo "$as_me:$LINENO: result: no" >&5 |
13514 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13515 | fi |
13516 | else | |
631ef239 | 13517 | { echo "$as_me:$LINENO: result: no" >&5 |
13518 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13519 | fi |
13520 | ||
13521 | ||
631ef239 | 13522 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat=2" >&5 |
13523 | echo $ECHO_N "checking GCC flag(s) -Wformat=2... $ECHO_C" >&6; } | |
212380e3 | 13524 | if test "${GCC-no}" = yes |
13525 | then | |
13526 | if test "${charybdis_cv_c_gcc_w_format+set}" = set; then | |
13527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13528 | else | |
13529 | ||
13530 | oldcflags="${CFLAGS-}" | |
13531 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat=2 -Werror" | |
13532 | cat >conftest.$ac_ext <<_ACEOF | |
13533 | /* confdefs.h. */ | |
13534 | _ACEOF | |
13535 | cat confdefs.h >>conftest.$ac_ext | |
13536 | cat >>conftest.$ac_ext <<_ACEOF | |
13537 | /* end confdefs.h. */ | |
13538 | ||
13539 | #include <string.h> | |
13540 | #include <stdio.h> | |
13541 | int main(void); | |
13542 | ||
13543 | int | |
13544 | main () | |
13545 | { | |
13546 | ||
b1fc1658 | 13547 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 13548 | |
13549 | ; | |
13550 | return 0; | |
13551 | } | |
13552 | _ACEOF | |
13553 | rm -f conftest.$ac_objext | |
631ef239 | 13554 | if { (ac_try="$ac_compile" |
13555 | case "(($ac_try" in | |
13556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13557 | *) ac_try_echo=$ac_try;; | |
13558 | esac | |
13559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13560 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 13561 | ac_status=$? |
13562 | grep -v '^ *+' conftest.er1 >conftest.err | |
13563 | rm -f conftest.er1 | |
13564 | cat conftest.err >&5 | |
13565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 13566 | (exit $ac_status); } && { |
13567 | test -z "$ac_c_werror_flag" || | |
13568 | test ! -s conftest.err | |
13569 | } && test -s conftest.$ac_objext; then | |
212380e3 | 13570 | charybdis_cv_c_gcc_w_format=yes |
13571 | else | |
13572 | echo "$as_me: failed program was:" >&5 | |
13573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13574 | ||
631ef239 | 13575 | charybdis_cv_c_gcc_w_format=no |
212380e3 | 13576 | fi |
631ef239 | 13577 | |
13578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 13579 | CFLAGS="${oldcflags}" |
13580 | fi | |
13581 | ||
13582 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
13583 | CWARNS="${CWARNS}-Wformat=2 " | |
631ef239 | 13584 | { echo "$as_me:$LINENO: result: ok" >&5 |
13585 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 13586 | else |
13587 | charybdis_cv_c_gcc_w_format='' | |
631ef239 | 13588 | { echo "$as_me:$LINENO: result: no" >&5 |
13589 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13590 | fi |
13591 | else | |
631ef239 | 13592 | { echo "$as_me:$LINENO: result: no" >&5 |
13593 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13594 | fi |
13595 | ||
13596 | ||
631ef239 | 13597 | { echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5 |
13598 | echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6; } | |
212380e3 | 13599 | if test "${GCC-no}" = yes |
13600 | then | |
13601 | if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then | |
13602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13603 | else | |
13604 | ||
13605 | oldcflags="${CFLAGS-}" | |
13606 | CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror" | |
13607 | cat >conftest.$ac_ext <<_ACEOF | |
13608 | /* confdefs.h. */ | |
13609 | _ACEOF | |
13610 | cat confdefs.h >>conftest.$ac_ext | |
13611 | cat >>conftest.$ac_ext <<_ACEOF | |
13612 | /* end confdefs.h. */ | |
13613 | ||
13614 | #include <string.h> | |
13615 | #include <stdio.h> | |
13616 | int main(void); | |
13617 | ||
13618 | int | |
13619 | main () | |
13620 | { | |
13621 | ||
b1fc1658 | 13622 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 | 13623 | |
13624 | ; | |
13625 | return 0; | |
13626 | } | |
13627 | _ACEOF | |
13628 | rm -f conftest.$ac_objext | |
631ef239 | 13629 | if { (ac_try="$ac_compile" |
13630 | case "(($ac_try" in | |
13631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13632 | *) ac_try_echo=$ac_try;; | |
13633 | esac | |
13634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13635 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 13636 | ac_status=$? |
13637 | grep -v '^ *+' conftest.er1 >conftest.err | |
13638 | rm -f conftest.er1 | |
13639 | cat conftest.err >&5 | |
13640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 13641 | (exit $ac_status); } && { |
13642 | test -z "$ac_c_werror_flag" || | |
13643 | test ! -s conftest.err | |
13644 | } && test -s conftest.$ac_objext; then | |
212380e3 | 13645 | charybdis_cv_c_gcc_pedantic=yes |
13646 | else | |
13647 | echo "$as_me: failed program was:" >&5 | |
13648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13649 | ||
631ef239 | 13650 | charybdis_cv_c_gcc_pedantic=no |
212380e3 | 13651 | fi |
631ef239 | 13652 | |
13653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 13654 | CFLAGS="${oldcflags}" |
13655 | fi | |
13656 | ||
13657 | if test "x$charybdis_cv_c_gcc_pedantic" = xyes; then | |
13658 | CWARNS="${CWARNS}-pedantic " | |
631ef239 | 13659 | { echo "$as_me:$LINENO: result: ok" >&5 |
13660 | echo "${ECHO_T}ok" >&6; } | |
212380e3 | 13661 | else |
13662 | charybdis_cv_c_gcc_pedantic='' | |
631ef239 | 13663 | { echo "$as_me:$LINENO: result: no" >&5 |
13664 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13665 | fi |
13666 | else | |
631ef239 | 13667 | { echo "$as_me:$LINENO: result: no" >&5 |
13668 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 13669 | fi |
13670 | ||
13671 | ||
13672 | IRC_CFLAGS="$CFLAGS" | |
13673 | ||
631ef239 | 13674 | fi |
13675 | ||
212380e3 | 13676 | |
13677 | if test "$shared_modules" = no; then | |
13678 | DYNLINK_C="" | |
13679 | MOD_TARGET="libmodules.a" | |
13680 | MODULES_LIBS="../modules/libmodules.a" | |
13681 | SEDOBJ="" | |
13682 | ||
13683 | cat >>confdefs.h <<\_ACEOF | |
13684 | #define STATIC_MODULES 1 | |
13685 | _ACEOF | |
13686 | ||
13687 | { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5 | |
13688 | echo "$as_me: WARNING: shared module support has been disabled!" >&2;} | |
13689 | fi | |
13690 | ||
13691 | if test "$shared_modules" = yes; then | |
13692 | ||
631ef239 | 13693 | { echo "$as_me:$LINENO: checking for nlist" >&5 |
13694 | echo $ECHO_N "checking for nlist... $ECHO_C" >&6; } | |
212380e3 | 13695 | if test "${ac_cv_func_nlist+set}" = set; then |
13696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13697 | else | |
13698 | cat >conftest.$ac_ext <<_ACEOF | |
13699 | /* confdefs.h. */ | |
13700 | _ACEOF | |
13701 | cat confdefs.h >>conftest.$ac_ext | |
13702 | cat >>conftest.$ac_ext <<_ACEOF | |
13703 | /* end confdefs.h. */ | |
13704 | /* Define nlist to an innocuous variant, in case <limits.h> declares nlist. | |
13705 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13706 | #define nlist innocuous_nlist | |
13707 | ||
13708 | /* System header to define __stub macros and hopefully few prototypes, | |
13709 | which can conflict with char nlist (); below. | |
13710 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13711 | <limits.h> exists even on freestanding compilers. */ | |
13712 | ||
13713 | #ifdef __STDC__ | |
13714 | # include <limits.h> | |
13715 | #else | |
13716 | # include <assert.h> | |
13717 | #endif | |
13718 | ||
13719 | #undef nlist | |
13720 | ||
631ef239 | 13721 | /* Override any GCC internal prototype to avoid an error. |
13722 | Use char because int might match the return type of a GCC | |
13723 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 13724 | #ifdef __cplusplus |
13725 | extern "C" | |
212380e3 | 13726 | #endif |
212380e3 | 13727 | char nlist (); |
13728 | /* The GNU C library defines this for functions which it implements | |
13729 | to always fail with ENOSYS. Some functions are actually named | |
13730 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 13731 | #if defined __stub_nlist || defined __stub___nlist |
212380e3 | 13732 | choke me |
212380e3 | 13733 | #endif |
13734 | ||
13735 | int | |
13736 | main () | |
13737 | { | |
631ef239 | 13738 | return nlist (); |
212380e3 | 13739 | ; |
13740 | return 0; | |
13741 | } | |
13742 | _ACEOF | |
13743 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 13744 | if { (ac_try="$ac_link" |
13745 | case "(($ac_try" in | |
13746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13747 | *) ac_try_echo=$ac_try;; | |
13748 | esac | |
13749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13750 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 13751 | ac_status=$? |
13752 | grep -v '^ *+' conftest.er1 >conftest.err | |
13753 | rm -f conftest.er1 | |
13754 | cat conftest.err >&5 | |
13755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 13756 | (exit $ac_status); } && { |
13757 | test -z "$ac_c_werror_flag" || | |
13758 | test ! -s conftest.err | |
13759 | } && test -s conftest$ac_exeext && | |
13760 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 13761 | ac_cv_func_nlist=yes |
13762 | else | |
13763 | echo "$as_me: failed program was:" >&5 | |
13764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13765 | ||
631ef239 | 13766 | ac_cv_func_nlist=no |
212380e3 | 13767 | fi |
631ef239 | 13768 | |
13769 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 13770 | conftest$ac_exeext conftest.$ac_ext |
13771 | fi | |
631ef239 | 13772 | { echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5 |
13773 | echo "${ECHO_T}$ac_cv_func_nlist" >&6; } | |
212380e3 | 13774 | if test $ac_cv_func_nlist = yes; then |
13775 | : | |
13776 | else | |
631ef239 | 13777 | { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5 |
13778 | echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; } | |
212380e3 | 13779 | if test "${ac_cv_lib_dl_nlist+set}" = set; then |
13780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13781 | else | |
13782 | ac_check_lib_save_LIBS=$LIBS | |
13783 | LIBS="-ldl $LIBS" | |
13784 | cat >conftest.$ac_ext <<_ACEOF | |
13785 | /* confdefs.h. */ | |
13786 | _ACEOF | |
13787 | cat confdefs.h >>conftest.$ac_ext | |
13788 | cat >>conftest.$ac_ext <<_ACEOF | |
13789 | /* end confdefs.h. */ | |
13790 | ||
631ef239 | 13791 | /* Override any GCC internal prototype to avoid an error. |
13792 | Use char because int might match the return type of a GCC | |
13793 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 13794 | #ifdef __cplusplus |
13795 | extern "C" | |
13796 | #endif | |
212380e3 | 13797 | char nlist (); |
13798 | int | |
13799 | main () | |
13800 | { | |
631ef239 | 13801 | return nlist (); |
212380e3 | 13802 | ; |
13803 | return 0; | |
13804 | } | |
13805 | _ACEOF | |
13806 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 13807 | if { (ac_try="$ac_link" |
13808 | case "(($ac_try" in | |
13809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13810 | *) ac_try_echo=$ac_try;; | |
13811 | esac | |
13812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13813 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 13814 | ac_status=$? |
13815 | grep -v '^ *+' conftest.er1 >conftest.err | |
13816 | rm -f conftest.er1 | |
13817 | cat conftest.err >&5 | |
13818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 13819 | (exit $ac_status); } && { |
13820 | test -z "$ac_c_werror_flag" || | |
13821 | test ! -s conftest.err | |
13822 | } && test -s conftest$ac_exeext && | |
13823 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 13824 | ac_cv_lib_dl_nlist=yes |
13825 | else | |
13826 | echo "$as_me: failed program was:" >&5 | |
13827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13828 | ||
631ef239 | 13829 | ac_cv_lib_dl_nlist=no |
212380e3 | 13830 | fi |
631ef239 | 13831 | |
13832 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 13833 | conftest$ac_exeext conftest.$ac_ext |
13834 | LIBS=$ac_check_lib_save_LIBS | |
13835 | fi | |
631ef239 | 13836 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5 |
13837 | echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; } | |
212380e3 | 13838 | if test $ac_cv_lib_dl_nlist = yes; then |
13839 | nlist_lib="-ldl" | |
13840 | else | |
631ef239 | 13841 | { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5 |
13842 | echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; } | |
212380e3 | 13843 | if test "${ac_cv_lib_elf_nlist+set}" = set; then |
13844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13845 | else | |
13846 | ac_check_lib_save_LIBS=$LIBS | |
13847 | LIBS="-lelf $LIBS" | |
13848 | cat >conftest.$ac_ext <<_ACEOF | |
13849 | /* confdefs.h. */ | |
13850 | _ACEOF | |
13851 | cat confdefs.h >>conftest.$ac_ext | |
13852 | cat >>conftest.$ac_ext <<_ACEOF | |
13853 | /* end confdefs.h. */ | |
13854 | ||
631ef239 | 13855 | /* Override any GCC internal prototype to avoid an error. |
13856 | Use char because int might match the return type of a GCC | |
13857 | builtin and then its argument prototype would still apply. */ | |
212380e3 | 13858 | #ifdef __cplusplus |
13859 | extern "C" | |
13860 | #endif | |
212380e3 | 13861 | char nlist (); |
13862 | int | |
13863 | main () | |
13864 | { | |
631ef239 | 13865 | return nlist (); |
212380e3 | 13866 | ; |
13867 | return 0; | |
13868 | } | |
13869 | _ACEOF | |
13870 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 | 13871 | if { (ac_try="$ac_link" |
13872 | case "(($ac_try" in | |
13873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13874 | *) ac_try_echo=$ac_try;; | |
13875 | esac | |
13876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13877 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 | 13878 | ac_status=$? |
13879 | grep -v '^ *+' conftest.er1 >conftest.err | |
13880 | rm -f conftest.er1 | |
13881 | cat conftest.err >&5 | |
13882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 13883 | (exit $ac_status); } && { |
13884 | test -z "$ac_c_werror_flag" || | |
13885 | test ! -s conftest.err | |
13886 | } && test -s conftest$ac_exeext && | |
13887 | $as_test_x conftest$ac_exeext; then | |
212380e3 | 13888 | ac_cv_lib_elf_nlist=yes |
13889 | else | |
13890 | echo "$as_me: failed program was:" >&5 | |
13891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13892 | ||
631ef239 | 13893 | ac_cv_lib_elf_nlist=no |
212380e3 | 13894 | fi |
631ef239 | 13895 | |
13896 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 | 13897 | conftest$ac_exeext conftest.$ac_ext |
13898 | LIBS=$ac_check_lib_save_LIBS | |
13899 | fi | |
631ef239 | 13900 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5 |
13901 | echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; } | |
212380e3 | 13902 | if test $ac_cv_lib_elf_nlist = yes; then |
13903 | nlist_lib="-lelf" | |
13904 | fi | |
13905 | ||
13906 | ||
13907 | fi | |
13908 | ||
13909 | ||
13910 | fi | |
13911 | ||
13912 | ||
13913 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then | |
631ef239 | 13914 | { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5 |
13915 | echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; } | |
212380e3 | 13916 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then |
13917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13918 | fi | |
631ef239 | 13919 | { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5 |
13920 | echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; } | |
212380e3 | 13921 | else |
13922 | # Is the header compilable? | |
631ef239 | 13923 | { echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5 |
13924 | echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; } | |
212380e3 | 13925 | cat >conftest.$ac_ext <<_ACEOF |
13926 | /* confdefs.h. */ | |
13927 | _ACEOF | |
13928 | cat confdefs.h >>conftest.$ac_ext | |
13929 | cat >>conftest.$ac_ext <<_ACEOF | |
13930 | /* end confdefs.h. */ | |
13931 | $ac_includes_default | |
13932 | #include <libelf/nlist.h> | |
13933 | _ACEOF | |
13934 | rm -f conftest.$ac_objext | |
631ef239 | 13935 | if { (ac_try="$ac_compile" |
13936 | case "(($ac_try" in | |
13937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13938 | *) ac_try_echo=$ac_try;; | |
13939 | esac | |
13940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13941 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 13942 | ac_status=$? |
13943 | grep -v '^ *+' conftest.er1 >conftest.err | |
13944 | rm -f conftest.er1 | |
13945 | cat conftest.err >&5 | |
13946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 13947 | (exit $ac_status); } && { |
13948 | test -z "$ac_c_werror_flag" || | |
13949 | test ! -s conftest.err | |
13950 | } && test -s conftest.$ac_objext; then | |
212380e3 | 13951 | ac_header_compiler=yes |
13952 | else | |
13953 | echo "$as_me: failed program was:" >&5 | |
13954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13955 | ||
631ef239 | 13956 | ac_header_compiler=no |
212380e3 | 13957 | fi |
631ef239 | 13958 | |
13959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13960 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13961 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 | 13962 | |
13963 | # Is the header present? | |
631ef239 | 13964 | { echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5 |
13965 | echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; } | |
212380e3 | 13966 | cat >conftest.$ac_ext <<_ACEOF |
13967 | /* confdefs.h. */ | |
13968 | _ACEOF | |
13969 | cat confdefs.h >>conftest.$ac_ext | |
13970 | cat >>conftest.$ac_ext <<_ACEOF | |
13971 | /* end confdefs.h. */ | |
13972 | #include <libelf/nlist.h> | |
13973 | _ACEOF | |
631ef239 | 13974 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13975 | case "(($ac_try" in | |
13976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13977 | *) ac_try_echo=$ac_try;; | |
13978 | esac | |
13979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13980 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 | 13981 | ac_status=$? |
13982 | grep -v '^ *+' conftest.er1 >conftest.err | |
13983 | rm -f conftest.er1 | |
13984 | cat conftest.err >&5 | |
13985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 13986 | (exit $ac_status); } >/dev/null && { |
13987 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13988 | test ! -s conftest.err | |
13989 | }; then | |
212380e3 | 13990 | ac_header_preproc=yes |
13991 | else | |
13992 | echo "$as_me: failed program was:" >&5 | |
13993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13994 | ||
13995 | ac_header_preproc=no | |
13996 | fi | |
631ef239 | 13997 | |
212380e3 | 13998 | rm -f conftest.err conftest.$ac_ext |
631ef239 | 13999 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14000 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 | 14001 | |
14002 | # So? What about this header? | |
14003 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14004 | yes:no: ) | |
14005 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14006 | echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14007 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5 | |
14008 | echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;} | |
14009 | ac_header_preproc=yes | |
14010 | ;; | |
14011 | no:yes:* ) | |
14012 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5 | |
14013 | echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;} | |
14014 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5 | |
14015 | echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;} | |
14016 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5 | |
14017 | echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;} | |
14018 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14019 | echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14020 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5 | |
14021 | echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;} | |
14022 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5 | |
14023 | echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 14024 | |
212380e3 | 14025 | ;; |
14026 | esac | |
631ef239 | 14027 | { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5 |
14028 | echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; } | |
212380e3 | 14029 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then |
14030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14031 | else | |
14032 | ac_cv_header_libelf_nlist_h=$ac_header_preproc | |
14033 | fi | |
631ef239 | 14034 | { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5 |
14035 | echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; } | |
212380e3 | 14036 | |
14037 | fi | |
14038 | if test $ac_cv_header_libelf_nlist_h = yes; then | |
14039 | nlist_h="libelf/nlist.h" | |
14040 | fi | |
14041 | ||
14042 | ||
14043 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then | |
631ef239 | 14044 | { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5 |
14045 | echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; } | |
212380e3 | 14046 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then |
14047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14048 | fi | |
631ef239 | 14049 | { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5 |
14050 | echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; } | |
212380e3 | 14051 | else |
14052 | # Is the header compilable? | |
631ef239 | 14053 | { echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5 |
14054 | echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; } | |
212380e3 | 14055 | cat >conftest.$ac_ext <<_ACEOF |
14056 | /* confdefs.h. */ | |
14057 | _ACEOF | |
14058 | cat confdefs.h >>conftest.$ac_ext | |
14059 | cat >>conftest.$ac_ext <<_ACEOF | |
14060 | /* end confdefs.h. */ | |
14061 | $ac_includes_default | |
14062 | #include <elf/nlist.h> | |
14063 | _ACEOF | |
14064 | rm -f conftest.$ac_objext | |
631ef239 | 14065 | if { (ac_try="$ac_compile" |
14066 | case "(($ac_try" in | |
14067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14068 | *) ac_try_echo=$ac_try;; | |
14069 | esac | |
14070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14071 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 14072 | ac_status=$? |
14073 | grep -v '^ *+' conftest.er1 >conftest.err | |
14074 | rm -f conftest.er1 | |
14075 | cat conftest.err >&5 | |
14076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 14077 | (exit $ac_status); } && { |
14078 | test -z "$ac_c_werror_flag" || | |
14079 | test ! -s conftest.err | |
14080 | } && test -s conftest.$ac_objext; then | |
212380e3 | 14081 | ac_header_compiler=yes |
14082 | else | |
14083 | echo "$as_me: failed program was:" >&5 | |
14084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14085 | ||
631ef239 | 14086 | ac_header_compiler=no |
212380e3 | 14087 | fi |
631ef239 | 14088 | |
14089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14090 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14091 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 | 14092 | |
14093 | # Is the header present? | |
631ef239 | 14094 | { echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5 |
14095 | echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; } | |
212380e3 | 14096 | cat >conftest.$ac_ext <<_ACEOF |
14097 | /* confdefs.h. */ | |
14098 | _ACEOF | |
14099 | cat confdefs.h >>conftest.$ac_ext | |
14100 | cat >>conftest.$ac_ext <<_ACEOF | |
14101 | /* end confdefs.h. */ | |
14102 | #include <elf/nlist.h> | |
14103 | _ACEOF | |
631ef239 | 14104 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14105 | case "(($ac_try" in | |
14106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14107 | *) ac_try_echo=$ac_try;; | |
14108 | esac | |
14109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14110 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 | 14111 | ac_status=$? |
14112 | grep -v '^ *+' conftest.er1 >conftest.err | |
14113 | rm -f conftest.er1 | |
14114 | cat conftest.err >&5 | |
14115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 14116 | (exit $ac_status); } >/dev/null && { |
14117 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14118 | test ! -s conftest.err | |
14119 | }; then | |
212380e3 | 14120 | ac_header_preproc=yes |
14121 | else | |
14122 | echo "$as_me: failed program was:" >&5 | |
14123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14124 | ||
14125 | ac_header_preproc=no | |
14126 | fi | |
631ef239 | 14127 | |
212380e3 | 14128 | rm -f conftest.err conftest.$ac_ext |
631ef239 | 14129 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14130 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 | 14131 | |
14132 | # So? What about this header? | |
14133 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14134 | yes:no: ) | |
14135 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14136 | echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14137 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5 | |
14138 | echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;} | |
14139 | ac_header_preproc=yes | |
14140 | ;; | |
14141 | no:yes:* ) | |
14142 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5 | |
14143 | echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;} | |
14144 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5 | |
14145 | echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;} | |
14146 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5 | |
14147 | echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;} | |
14148 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14149 | echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14150 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5 | |
14151 | echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;} | |
14152 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5 | |
14153 | echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 14154 | |
212380e3 | 14155 | ;; |
14156 | esac | |
631ef239 | 14157 | { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5 |
14158 | echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; } | |
212380e3 | 14159 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then |
14160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14161 | else | |
14162 | ac_cv_header_elf_nlist_h=$ac_header_preproc | |
14163 | fi | |
631ef239 | 14164 | { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5 |
14165 | echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; } | |
212380e3 | 14166 | |
14167 | fi | |
14168 | if test $ac_cv_header_elf_nlist_h = yes; then | |
14169 | nlist_h="elf/nlist.h" | |
14170 | fi | |
14171 | ||
14172 | ||
14173 | if test "${ac_cv_header_nlist_h+set}" = set; then | |
631ef239 | 14174 | { echo "$as_me:$LINENO: checking for nlist.h" >&5 |
14175 | echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; } | |
212380e3 | 14176 | if test "${ac_cv_header_nlist_h+set}" = set; then |
14177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14178 | fi | |
631ef239 | 14179 | { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5 |
14180 | echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; } | |
212380e3 | 14181 | else |
14182 | # Is the header compilable? | |
631ef239 | 14183 | { echo "$as_me:$LINENO: checking nlist.h usability" >&5 |
14184 | echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; } | |
212380e3 | 14185 | cat >conftest.$ac_ext <<_ACEOF |
14186 | /* confdefs.h. */ | |
14187 | _ACEOF | |
14188 | cat confdefs.h >>conftest.$ac_ext | |
14189 | cat >>conftest.$ac_ext <<_ACEOF | |
14190 | /* end confdefs.h. */ | |
14191 | $ac_includes_default | |
14192 | #include <nlist.h> | |
14193 | _ACEOF | |
14194 | rm -f conftest.$ac_objext | |
631ef239 | 14195 | if { (ac_try="$ac_compile" |
14196 | case "(($ac_try" in | |
14197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14198 | *) ac_try_echo=$ac_try;; | |
14199 | esac | |
14200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14201 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 14202 | ac_status=$? |
14203 | grep -v '^ *+' conftest.er1 >conftest.err | |
14204 | rm -f conftest.er1 | |
14205 | cat conftest.err >&5 | |
14206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 14207 | (exit $ac_status); } && { |
14208 | test -z "$ac_c_werror_flag" || | |
14209 | test ! -s conftest.err | |
14210 | } && test -s conftest.$ac_objext; then | |
212380e3 | 14211 | ac_header_compiler=yes |
14212 | else | |
14213 | echo "$as_me: failed program was:" >&5 | |
14214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14215 | ||
631ef239 | 14216 | ac_header_compiler=no |
212380e3 | 14217 | fi |
631ef239 | 14218 | |
14219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14220 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14221 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 | 14222 | |
14223 | # Is the header present? | |
631ef239 | 14224 | { echo "$as_me:$LINENO: checking nlist.h presence" >&5 |
14225 | echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; } | |
212380e3 | 14226 | cat >conftest.$ac_ext <<_ACEOF |
14227 | /* confdefs.h. */ | |
14228 | _ACEOF | |
14229 | cat confdefs.h >>conftest.$ac_ext | |
14230 | cat >>conftest.$ac_ext <<_ACEOF | |
14231 | /* end confdefs.h. */ | |
14232 | #include <nlist.h> | |
14233 | _ACEOF | |
631ef239 | 14234 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14235 | case "(($ac_try" in | |
14236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14237 | *) ac_try_echo=$ac_try;; | |
14238 | esac | |
14239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14240 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 | 14241 | ac_status=$? |
14242 | grep -v '^ *+' conftest.er1 >conftest.err | |
14243 | rm -f conftest.er1 | |
14244 | cat conftest.err >&5 | |
14245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 | 14246 | (exit $ac_status); } >/dev/null && { |
14247 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14248 | test ! -s conftest.err | |
14249 | }; then | |
212380e3 | 14250 | ac_header_preproc=yes |
14251 | else | |
14252 | echo "$as_me: failed program was:" >&5 | |
14253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14254 | ||
14255 | ac_header_preproc=no | |
14256 | fi | |
631ef239 | 14257 | |
212380e3 | 14258 | rm -f conftest.err conftest.$ac_ext |
631ef239 | 14259 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14260 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 | 14261 | |
14262 | # So? What about this header? | |
14263 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14264 | yes:no: ) | |
14265 | { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14266 | echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14267 | { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5 | |
14268 | echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;} | |
14269 | ac_header_preproc=yes | |
14270 | ;; | |
14271 | no:yes:* ) | |
14272 | { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5 | |
14273 | echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;} | |
14274 | { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5 | |
14275 | echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;} | |
14276 | { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5 | |
14277 | echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;} | |
14278 | { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14279 | echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14280 | { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5 | |
14281 | echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;} | |
14282 | { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5 | |
14283 | echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 14284 | |
212380e3 | 14285 | ;; |
14286 | esac | |
631ef239 | 14287 | { echo "$as_me:$LINENO: checking for nlist.h" >&5 |
14288 | echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; } | |
212380e3 | 14289 | if test "${ac_cv_header_nlist_h+set}" = set; then |
14290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14291 | else | |
14292 | ac_cv_header_nlist_h=$ac_header_preproc | |
14293 | fi | |
631ef239 | 14294 | { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5 |
14295 | echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; } | |
212380e3 | 14296 | |
14297 | fi | |
14298 | if test $ac_cv_header_nlist_h = yes; then | |
14299 | nlist_h="nlist.h" | |
14300 | fi | |
14301 | ||
14302 | ||
14303 | if test x"$nlist_h" = "x"; then | |
14304 | ||
14305 | cat >>confdefs.h <<_ACEOF | |
14306 | #define SYMBOL_PREFIX "" | |
14307 | _ACEOF | |
14308 | ||
14309 | else | |
631ef239 | 14310 | { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5 |
14311 | echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; } | |
212380e3 | 14312 | if test "${symbol_underscores+set}" = set; then |
14313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14314 | else | |
14315 | ||
14316 | cat << EOF > conftest.c | |
14317 | #include <$nlist_h> | |
14318 | #include <stdio.h> | |
14319 | #include <stdlib.h> | |
14320 | void _modinit(void); | |
14321 | int main(int argc, char *argv[]) { | |
14322 | int i; | |
14323 | struct nlist nl[5]; | |
14324 | ||
14325 | /* fill the names in this way, so it'll work almost everywhere */ | |
14326 | nl[0].n_name = "_modinit"; | |
14327 | nl[1].n_name = "__modinit"; | |
14328 | nl[2].n_name = "___modinit"; | |
14329 | nl[3].n_name = "____modinit"; | |
14330 | nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL; | |
14331 | ||
14332 | if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1); | |
14333 | for(i = 0; i < 4; i++) { | |
14334 | if(nl[i].n_value != NULL) | |
14335 | { | |
14336 | int j; | |
14337 | for(j = 0; j < i; j++) | |
14338 | printf("_"); | |
14339 | exit(i); | |
14340 | } | |
14341 | } | |
14342 | exit(-1); | |
14343 | } | |
14344 | void _modinit(void) { return; } | |
14345 | EOF | |
14346 | $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1 | |
14347 | symbol_underscores=`./conftest conftest` | |
631ef239 | 14348 | { echo "$as_me:$LINENO: result: $symbol_underscores" >&5 |
14349 | echo "${ECHO_T}$symbol_underscores" >&6; } | |
212380e3 | 14350 | $RM -f conftest conftest.c |
14351 | ||
14352 | fi | |
14353 | ||
14354 | ||
14355 | cat >>confdefs.h <<_ACEOF | |
14356 | #define SYMBOL_PREFIX "${symbol_underscores}" | |
14357 | _ACEOF | |
14358 | ||
14359 | fi | |
14360 | fi | |
14361 | ||
14362 | ||
14363 | ||
14364 | ||
14365 | ||
14366 | ||
14367 | ||
14368 | ||
14369 | ||
14370 | ||
14371 | ||
14372 | ||
14373 | ||
14374 | ||
14375 | if test "$prefix" = "NONE"; then | |
14376 | ||
14377 | cat >>confdefs.h <<_ACEOF | |
14378 | #define IRCD_PREFIX "$ac_default_prefix" | |
14379 | _ACEOF | |
14380 | ||
14381 | ||
14382 | else | |
14383 | ||
14384 | ||
14385 | prefix=`echo $prefix | sed 's/\/$//'` | |
14386 | ||
14387 | cat >>confdefs.h <<_ACEOF | |
14388 | #define IRCD_PREFIX "$prefix" | |
14389 | _ACEOF | |
14390 | ||
14391 | ||
14392 | fi | |
14393 | ||
631ef239 | 14394 | ac_config_files="$ac_config_files Makefile libcharybdis/Makefile servlink/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile" |
212380e3 | 14395 | |
14396 | ||
14397 | cat >confcache <<\_ACEOF | |
14398 | # This file is a shell script that caches the results of configure | |
14399 | # tests run on this system so they can be shared between configure | |
14400 | # scripts and configure runs, see configure's option --config-cache. | |
14401 | # It is not useful on other systems. If it contains results you don't | |
14402 | # want to keep, you may remove or edit it. | |
14403 | # | |
14404 | # config.status only pays attention to the cache file if you give it | |
14405 | # the --recheck option to rerun configure. | |
14406 | # | |
14407 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14408 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14409 | # following values. | |
14410 | ||
14411 | _ACEOF | |
14412 | ||
14413 | # The following way of writing the cache mishandles newlines in values, | |
14414 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 14415 | # So, we kill variables containing newlines. |
212380e3 | 14416 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14417 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 | 14418 | ( |
14419 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14420 | eval ac_val=\$$ac_var | |
14421 | case $ac_val in #( | |
14422 | *${as_nl}*) | |
14423 | case $ac_var in #( | |
14424 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
14425 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
14426 | esac | |
14427 | case $ac_var in #( | |
14428 | _ | IFS | as_nl) ;; #( | |
14429 | *) $as_unset $ac_var ;; | |
14430 | esac ;; | |
14431 | esac | |
14432 | done | |
14433 | ||
212380e3 | 14434 | (set) 2>&1 | |
631ef239 | 14435 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14436 | *${as_nl}ac_space=\ *) | |
212380e3 | 14437 | # `set' does not quote correctly, so add quotes (double-quote |
14438 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
14439 | sed -n \ | |
14440 | "s/'/'\\\\''/g; | |
14441 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 14442 | ;; #( |
212380e3 | 14443 | *) |
14444 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 14445 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 14446 | ;; |
631ef239 | 14447 | esac | |
14448 | sort | |
14449 | ) | | |
212380e3 | 14450 | sed ' |
631ef239 | 14451 | /^ac_cv_env_/b end |
212380e3 | 14452 | t clear |
631ef239 | 14453 | :clear |
212380e3 | 14454 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14455 | t end | |
631ef239 | 14456 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14457 | :end' >>confcache | |
14458 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14459 | if test -w "$cache_file"; then | |
14460 | test "x$cache_file" != "x/dev/null" && | |
14461 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
14462 | echo "$as_me: updating cache $cache_file" >&6;} | |
212380e3 | 14463 | cat confcache >$cache_file |
14464 | else | |
631ef239 | 14465 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
14466 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 | 14467 | fi |
14468 | fi | |
14469 | rm -f confcache | |
14470 | ||
14471 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14472 | # Let make expand exec_prefix. | |
14473 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14474 | ||
212380e3 | 14475 | DEFS=-DHAVE_CONFIG_H |
14476 | ||
14477 | ac_libobjs= | |
14478 | ac_ltlibobjs= | |
14479 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14480 | # 1. Remove the extension, and $U if already installed. | |
631ef239 | 14481 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14482 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
14483 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14484 | # will be set to the directory where LIBOBJS objects are built. | |
14485 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14486 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 | 14487 | done |
14488 | LIBOBJS=$ac_libobjs | |
14489 | ||
14490 | LTLIBOBJS=$ac_ltlibobjs | |
14491 | ||
14492 | ||
14493 | ||
14494 | : ${CONFIG_STATUS=./config.status} | |
14495 | ac_clean_files_save=$ac_clean_files | |
14496 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
14497 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
14498 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14499 | cat >$CONFIG_STATUS <<_ACEOF | |
14500 | #! $SHELL | |
14501 | # Generated by $as_me. | |
14502 | # Run this file to recreate the current configuration. | |
14503 | # Compiler output produced by configure, useful for debugging | |
14504 | # configure, is in config.log if it exists. | |
14505 | ||
14506 | debug=false | |
14507 | ac_cs_recheck=false | |
14508 | ac_cs_silent=false | |
14509 | SHELL=\${CONFIG_SHELL-$SHELL} | |
14510 | _ACEOF | |
14511 | ||
14512 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14513 | ## --------------------- ## | |
14514 | ## M4sh Initialization. ## | |
14515 | ## --------------------- ## | |
14516 | ||
631ef239 | 14517 | # Be more Bourne compatible |
14518 | DUALCASE=1; export DUALCASE # for MKS sh | |
212380e3 | 14519 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
14520 | emulate sh | |
14521 | NULLCMD=: | |
14522 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
14523 | # is contrary to our usage. Disable this feature. | |
14524 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 14525 | setopt NO_GLOB_SUBST |
212380e3 | 14526 | else |
631ef239 | 14527 | case `(set -o) 2>/dev/null` in |
14528 | *posix*) set -o posix ;; | |
14529 | esac | |
14530 | ||
212380e3 | 14531 | fi |
14532 | ||
14533 | ||
631ef239 | 14534 | |
14535 | ||
14536 | # PATH needs CR | |
14537 | # Avoid depending upon Character Ranges. | |
14538 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14539 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14540 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14541 | as_cr_digits='0123456789' | |
14542 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14543 | ||
14544 | # The user is always right. | |
14545 | if test "${PATH_SEPARATOR+set}" != set; then | |
14546 | echo "#! /bin/sh" >conf$$.sh | |
14547 | echo "exit 0" >>conf$$.sh | |
14548 | chmod +x conf$$.sh | |
14549 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
14550 | PATH_SEPARATOR=';' | |
14551 | else | |
14552 | PATH_SEPARATOR=: | |
14553 | fi | |
14554 | rm -f conf$$.sh | |
14555 | fi | |
14556 | ||
14557 | # Support unset when possible. | |
14558 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
14559 | as_unset=unset | |
14560 | else | |
14561 | as_unset=false | |
14562 | fi | |
14563 | ||
14564 | ||
14565 | # IFS | |
14566 | # We need space, tab and new line, in precisely that order. Quoting is | |
14567 | # there to prevent editors from complaining about space-tab. | |
14568 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14569 | # splitting by setting IFS to empty value.) | |
14570 | as_nl=' | |
14571 | ' | |
14572 | IFS=" "" $as_nl" | |
14573 | ||
14574 | # Find who we are. Look in the path if we contain no directory separator. | |
14575 | case $0 in | |
14576 | *[\\/]* ) as_myself=$0 ;; | |
14577 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14578 | for as_dir in $PATH | |
14579 | do | |
14580 | IFS=$as_save_IFS | |
14581 | test -z "$as_dir" && as_dir=. | |
14582 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14583 | done | |
14584 | IFS=$as_save_IFS | |
14585 | ||
14586 | ;; | |
14587 | esac | |
14588 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14589 | # in which case we are not to be found in the path. | |
14590 | if test "x$as_myself" = x; then | |
14591 | as_myself=$0 | |
14592 | fi | |
14593 | if test ! -f "$as_myself"; then | |
14594 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14595 | { (exit 1); exit 1; } | |
14596 | fi | |
14597 | ||
212380e3 | 14598 | # Work around bugs in pre-3.0 UWIN ksh. |
631ef239 | 14599 | for as_var in ENV MAIL MAILPATH |
14600 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
14601 | done | |
212380e3 | 14602 | PS1='$ ' |
14603 | PS2='> ' | |
14604 | PS4='+ ' | |
14605 | ||
14606 | # NLS nuisances. | |
14607 | for as_var in \ | |
14608 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
14609 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
14610 | LC_TELEPHONE LC_TIME | |
14611 | do | |
14612 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
14613 | eval $as_var=C; export $as_var | |
14614 | else | |
631ef239 | 14615 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
212380e3 | 14616 | fi |
14617 | done | |
14618 | ||
14619 | # Required to use basename. | |
631ef239 | 14620 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14621 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 | 14622 | as_expr=expr |
14623 | else | |
14624 | as_expr=false | |
14625 | fi | |
14626 | ||
631ef239 | 14627 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 | 14628 | as_basename=basename |
14629 | else | |
14630 | as_basename=false | |
14631 | fi | |
14632 | ||
14633 | ||
14634 | # Name of the executable. | |
631ef239 | 14635 | as_me=`$as_basename -- "$0" || |
212380e3 | 14636 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14637 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 14638 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 14639 | echo X/"$0" | |
631ef239 | 14640 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
14641 | s//\1/ | |
14642 | q | |
14643 | } | |
14644 | /^X\/\(\/\/\)$/{ | |
14645 | s//\1/ | |
14646 | q | |
14647 | } | |
14648 | /^X\/\(\/\).*/{ | |
14649 | s//\1/ | |
14650 | q | |
14651 | } | |
14652 | s/.*/./; q'` | |
212380e3 | 14653 | |
631ef239 | 14654 | # CDPATH. |
14655 | $as_unset CDPATH | |
212380e3 | 14656 | |
212380e3 | 14657 | |
14658 | ||
14659 | as_lineno_1=$LINENO | |
14660 | as_lineno_2=$LINENO | |
212380e3 | 14661 | test "x$as_lineno_1" != "x$as_lineno_2" && |
631ef239 | 14662 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
212380e3 | 14663 | |
14664 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
14665 | # uniformly replaced by the line number. The first 'sed' inserts a | |
631ef239 | 14666 | # line-number line after each line using $LINENO; the second 'sed' |
14667 | # does the real work. The second script uses 'N' to pair each | |
14668 | # line-number line with the line containing $LINENO, and appends | |
14669 | # trailing '-' during substitution so that $LINENO is not a special | |
14670 | # case at line end. | |
212380e3 | 14671 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
631ef239 | 14672 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
14673 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
14674 | sed -n ' | |
14675 | p | |
14676 | /[$]LINENO/= | |
14677 | ' <$as_myself | | |
212380e3 | 14678 | sed ' |
631ef239 | 14679 | s/[$]LINENO.*/&-/ |
14680 | t lineno | |
14681 | b | |
14682 | :lineno | |
212380e3 | 14683 | N |
631ef239 | 14684 | :loop |
14685 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
212380e3 | 14686 | t loop |
631ef239 | 14687 | s/-\n.*// |
212380e3 | 14688 | ' >$as_me.lineno && |
631ef239 | 14689 | chmod +x "$as_me.lineno" || |
14690 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
212380e3 | 14691 | { (exit 1); exit 1; }; } |
14692 | ||
14693 | # Don't try to exec as it changes $[0], causing all sort of problems | |
14694 | # (the dirname of $[0] is not the place where we might find the | |
631ef239 | 14695 | # original and so on. Autoconf is especially sensitive to this). |
14696 | . "./$as_me.lineno" | |
212380e3 | 14697 | # Exit status is that of the last command. |
14698 | exit | |
14699 | } | |
14700 | ||
14701 | ||
631ef239 | 14702 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14703 | as_dirname=dirname | |
14704 | else | |
14705 | as_dirname=false | |
14706 | fi | |
14707 | ||
14708 | ECHO_C= ECHO_N= ECHO_T= | |
14709 | case `echo -n x` in | |
14710 | -n*) | |
14711 | case `echo 'x\c'` in | |
14712 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14713 | *) ECHO_C='\c';; | |
14714 | esac;; | |
14715 | *) | |
14716 | ECHO_N='-n';; | |
212380e3 | 14717 | esac |
14718 | ||
631ef239 | 14719 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14720 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 | 14721 | as_expr=expr |
14722 | else | |
14723 | as_expr=false | |
14724 | fi | |
14725 | ||
14726 | rm -f conf$$ conf$$.exe conf$$.file | |
631ef239 | 14727 | if test -d conf$$.dir; then |
14728 | rm -f conf$$.dir/conf$$.file | |
14729 | else | |
14730 | rm -f conf$$.dir | |
14731 | mkdir conf$$.dir | |
14732 | fi | |
212380e3 | 14733 | echo >conf$$.file |
14734 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
631ef239 | 14735 | as_ln_s='ln -s' |
14736 | # ... but there are two gotchas: | |
14737 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14738 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14739 | # In both cases, we have to default to `cp -p'. | |
14740 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
212380e3 | 14741 | as_ln_s='cp -p' |
212380e3 | 14742 | elif ln conf$$.file conf$$ 2>/dev/null; then |
14743 | as_ln_s=ln | |
14744 | else | |
14745 | as_ln_s='cp -p' | |
14746 | fi | |
631ef239 | 14747 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14748 | rmdir conf$$.dir 2>/dev/null | |
212380e3 | 14749 | |
14750 | if mkdir -p . 2>/dev/null; then | |
14751 | as_mkdir_p=: | |
14752 | else | |
14753 | test -d ./-p && rmdir ./-p | |
14754 | as_mkdir_p=false | |
14755 | fi | |
14756 | ||
631ef239 | 14757 | if test -x / >/dev/null 2>&1; then |
14758 | as_test_x='test -x' | |
14759 | else | |
14760 | if ls -dL / >/dev/null 2>&1; then | |
14761 | as_ls_L_option=L | |
14762 | else | |
14763 | as_ls_L_option= | |
14764 | fi | |
14765 | as_test_x=' | |
14766 | eval sh -c '\'' | |
14767 | if test -d "$1"; then | |
14768 | test -d "$1/."; | |
14769 | else | |
14770 | case $1 in | |
14771 | -*)set "./$1";; | |
14772 | esac; | |
14773 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
14774 | ???[sx]*):;;*)false;;esac;fi | |
14775 | '\'' sh | |
14776 | ' | |
14777 | fi | |
14778 | as_executable_p=$as_test_x | |
212380e3 | 14779 | |
14780 | # Sed expression to map a string onto a valid CPP name. | |
14781 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14782 | ||
14783 | # Sed expression to map a string onto a valid variable name. | |
14784 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14785 | ||
14786 | ||
212380e3 | 14787 | exec 6>&1 |
14788 | ||
631ef239 | 14789 | # Save the log message, to keep $[0] and so on meaningful, and to |
212380e3 | 14790 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 | 14791 | # values after options handling. |
14792 | ac_log=" | |
b1fc1658 | 14793 | This file was extended by charybdis $as_me 2.2.0, which was |
631ef239 | 14794 | generated by GNU Autoconf 2.61. Invocation command line was |
212380e3 | 14795 | |
14796 | CONFIG_FILES = $CONFIG_FILES | |
14797 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14798 | CONFIG_LINKS = $CONFIG_LINKS | |
14799 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14800 | $ $0 $@ | |
14801 | ||
631ef239 | 14802 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14803 | " | |
14804 | ||
212380e3 | 14805 | _ACEOF |
14806 | ||
631ef239 | 14807 | cat >>$CONFIG_STATUS <<_ACEOF |
212380e3 | 14808 | # Files that config.status was made for. |
631ef239 | 14809 | config_files="$ac_config_files" |
14810 | config_headers="$ac_config_headers" | |
212380e3 | 14811 | |
631ef239 | 14812 | _ACEOF |
212380e3 | 14813 | |
14814 | cat >>$CONFIG_STATUS <<\_ACEOF | |
212380e3 | 14815 | ac_cs_usage="\ |
14816 | \`$as_me' instantiates files from templates according to the | |
14817 | current configuration. | |
14818 | ||
14819 | Usage: $0 [OPTIONS] [FILE]... | |
14820 | ||
14821 | -h, --help print this help, then exit | |
631ef239 | 14822 | -V, --version print version number and configuration settings, then exit |
212380e3 | 14823 | -q, --quiet do not print progress messages |
14824 | -d, --debug don't remove temporary files | |
14825 | --recheck update $as_me by reconfiguring in the same conditions | |
14826 | --file=FILE[:TEMPLATE] | |
14827 | instantiate the configuration file FILE | |
14828 | --header=FILE[:TEMPLATE] | |
14829 | instantiate the configuration header FILE | |
14830 | ||
14831 | Configuration files: | |
14832 | $config_files | |
14833 | ||
14834 | Configuration headers: | |
14835 | $config_headers | |
14836 | ||
14837 | Report bugs to <bug-autoconf@gnu.org>." | |
212380e3 | 14838 | |
631ef239 | 14839 | _ACEOF |
212380e3 | 14840 | cat >>$CONFIG_STATUS <<_ACEOF |
14841 | ac_cs_version="\\ | |
b1fc1658 | 14842 | charybdis config.status 2.2.0 |
631ef239 | 14843 | configured by $0, generated by GNU Autoconf 2.61, |
14844 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
212380e3 | 14845 | |
631ef239 | 14846 | Copyright (C) 2006 Free Software Foundation, Inc. |
212380e3 | 14847 | This config.status script is free software; the Free Software Foundation |
14848 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 | 14849 | |
14850 | ac_pwd='$ac_pwd' | |
14851 | srcdir='$srcdir' | |
14852 | INSTALL='$INSTALL' | |
212380e3 | 14853 | _ACEOF |
14854 | ||
14855 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14856 | # If no file are specified by the user, then we need to provide default | |
14857 | # value. By we need to know if files were specified by the user. | |
14858 | ac_need_defaults=: | |
14859 | while test $# != 0 | |
14860 | do | |
14861 | case $1 in | |
14862 | --*=*) | |
631ef239 | 14863 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14864 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 | 14865 | ac_shift=: |
14866 | ;; | |
631ef239 | 14867 | *) |
212380e3 | 14868 | ac_option=$1 |
14869 | ac_optarg=$2 | |
14870 | ac_shift=shift | |
14871 | ;; | |
212380e3 | 14872 | esac |
14873 | ||
14874 | case $ac_option in | |
14875 | # Handling of the options. | |
212380e3 | 14876 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
14877 | ac_cs_recheck=: ;; | |
631ef239 | 14878 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14879 | echo "$ac_cs_version"; exit ;; | |
14880 | --debug | --debu | --deb | --de | --d | -d ) | |
212380e3 | 14881 | debug=: ;; |
14882 | --file | --fil | --fi | --f ) | |
14883 | $ac_shift | |
14884 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
14885 | ac_need_defaults=false;; | |
14886 | --header | --heade | --head | --hea ) | |
14887 | $ac_shift | |
14888 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
14889 | ac_need_defaults=false;; | |
631ef239 | 14890 | --he | --h) |
14891 | # Conflict between --help and --header | |
14892 | { echo "$as_me: error: ambiguous option: $1 | |
14893 | Try \`$0 --help' for more information." >&2 | |
14894 | { (exit 1); exit 1; }; };; | |
14895 | --help | --hel | -h ) | |
14896 | echo "$ac_cs_usage"; exit ;; | |
212380e3 | 14897 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14898 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14899 | ac_cs_silent=: ;; | |
14900 | ||
14901 | # This is an error. | |
631ef239 | 14902 | -*) { echo "$as_me: error: unrecognized option: $1 |
14903 | Try \`$0 --help' for more information." >&2 | |
212380e3 | 14904 | { (exit 1); exit 1; }; } ;; |
14905 | ||
631ef239 | 14906 | *) ac_config_targets="$ac_config_targets $1" |
14907 | ac_need_defaults=false ;; | |
212380e3 | 14908 | |
14909 | esac | |
14910 | shift | |
14911 | done | |
14912 | ||
14913 | ac_configure_extra_args= | |
14914 | ||
14915 | if $ac_cs_silent; then | |
14916 | exec 6>/dev/null | |
14917 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14918 | fi | |
14919 | ||
14920 | _ACEOF | |
14921 | cat >>$CONFIG_STATUS <<_ACEOF | |
14922 | if \$ac_cs_recheck; then | |
631ef239 | 14923 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
14924 | CONFIG_SHELL=$SHELL | |
14925 | export CONFIG_SHELL | |
14926 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
212380e3 | 14927 | fi |
14928 | ||
14929 | _ACEOF | |
631ef239 | 14930 | cat >>$CONFIG_STATUS <<\_ACEOF |
14931 | exec 5>>config.log | |
14932 | { | |
14933 | echo | |
14934 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14935 | ## Running $as_me. ## | |
14936 | _ASBOX | |
14937 | echo "$ac_log" | |
14938 | } >&5 | |
212380e3 | 14939 | |
631ef239 | 14940 | _ACEOF |
14941 | cat >>$CONFIG_STATUS <<_ACEOF | |
14942 | _ACEOF | |
212380e3 | 14943 | |
14944 | cat >>$CONFIG_STATUS <<\_ACEOF | |
631ef239 | 14945 | |
14946 | # Handling of arguments. | |
212380e3 | 14947 | for ac_config_target in $ac_config_targets |
14948 | do | |
631ef239 | 14949 | case $ac_config_target in |
14950 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
14951 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14952 | "libcharybdis/Makefile") CONFIG_FILES="$CONFIG_FILES libcharybdis/Makefile" ;; | |
14953 | "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;; | |
14954 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; | |
14955 | "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;; | |
14956 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
14957 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; | |
14958 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
14959 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
14960 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
14961 | ||
212380e3 | 14962 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14963 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
14964 | { (exit 1); exit 1; }; };; | |
14965 | esac | |
14966 | done | |
14967 | ||
631ef239 | 14968 | |
212380e3 | 14969 | # If the user did not use the arguments to specify the items to instantiate, |
14970 | # then the envvar interface is used. Set only those that are not. | |
14971 | # We use the long form for the default assignment because of an extremely | |
14972 | # bizarre bug on SunOS 4.1.3. | |
14973 | if $ac_need_defaults; then | |
14974 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14975 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14976 | fi | |
14977 | ||
14978 | # Have a temporary directory for convenience. Make it in the build tree | |
631ef239 | 14979 | # simply because there is no reason against having it here, and in addition, |
212380e3 | 14980 | # creating and moving files from /tmp can sometimes cause problems. |
631ef239 | 14981 | # Hook for its removal unless debugging. |
14982 | # Note that there is a small window in which the directory will not be cleaned: | |
14983 | # after its creation but before its name has been assigned to `$tmp'. | |
212380e3 | 14984 | $debug || |
14985 | { | |
631ef239 | 14986 | tmp= |
14987 | trap 'exit_status=$? | |
14988 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14989 | ' 0 | |
212380e3 | 14990 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
14991 | } | |
212380e3 | 14992 | # Create a (secure) tmp directory for tmp files. |
14993 | ||
14994 | { | |
631ef239 | 14995 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
212380e3 | 14996 | test -n "$tmp" && test -d "$tmp" |
14997 | } || | |
14998 | { | |
631ef239 | 14999 | tmp=./conf$$-$RANDOM |
15000 | (umask 077 && mkdir "$tmp") | |
212380e3 | 15001 | } || |
15002 | { | |
15003 | echo "$me: cannot create a temporary directory in ." >&2 | |
15004 | { (exit 1); exit 1; } | |
15005 | } | |
15006 | ||
212380e3 | 15007 | # |
631ef239 | 15008 | # Set up the sed scripts for CONFIG_FILES section. |
212380e3 | 15009 | # |
15010 | ||
15011 | # No need to generate the scripts if there are no CONFIG_FILES. | |
15012 | # This happens for instance when ./config.status config.h | |
631ef239 | 15013 | if test -n "$CONFIG_FILES"; then |
15014 | ||
15015 | _ACEOF | |
15016 | ||
15017 | ||
15018 | ||
15019 | ac_delim='%!_!# ' | |
15020 | for ac_last_try in false false false false false :; do | |
15021 | cat >conf$$subs.sed <<_ACEOF | |
15022 | SHELL!$SHELL$ac_delim | |
15023 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
15024 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
15025 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
15026 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
15027 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
15028 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
15029 | exec_prefix!$exec_prefix$ac_delim | |
15030 | prefix!$prefix$ac_delim | |
15031 | program_transform_name!$program_transform_name$ac_delim | |
15032 | bindir!$bindir$ac_delim | |
15033 | sbindir!$sbindir$ac_delim | |
15034 | libexecdir!$libexecdir$ac_delim | |
15035 | datarootdir!$datarootdir$ac_delim | |
15036 | datadir!$datadir$ac_delim | |
15037 | sysconfdir!$sysconfdir$ac_delim | |
15038 | sharedstatedir!$sharedstatedir$ac_delim | |
15039 | localstatedir!$localstatedir$ac_delim | |
15040 | includedir!$includedir$ac_delim | |
15041 | oldincludedir!$oldincludedir$ac_delim | |
15042 | docdir!$docdir$ac_delim | |
15043 | infodir!$infodir$ac_delim | |
15044 | htmldir!$htmldir$ac_delim | |
15045 | dvidir!$dvidir$ac_delim | |
15046 | pdfdir!$pdfdir$ac_delim | |
15047 | psdir!$psdir$ac_delim | |
15048 | libdir!$libdir$ac_delim | |
15049 | localedir!$localedir$ac_delim | |
15050 | mandir!$mandir$ac_delim | |
15051 | DEFS!$DEFS$ac_delim | |
15052 | ECHO_C!$ECHO_C$ac_delim | |
15053 | ECHO_N!$ECHO_N$ac_delim | |
15054 | ECHO_T!$ECHO_T$ac_delim | |
15055 | LIBS!$LIBS$ac_delim | |
15056 | build_alias!$build_alias$ac_delim | |
15057 | host_alias!$host_alias$ac_delim | |
15058 | target_alias!$target_alias$ac_delim | |
15059 | CC!$CC$ac_delim | |
15060 | CFLAGS!$CFLAGS$ac_delim | |
15061 | LDFLAGS!$LDFLAGS$ac_delim | |
15062 | CPPFLAGS!$CPPFLAGS$ac_delim | |
15063 | ac_ct_CC!$ac_ct_CC$ac_delim | |
15064 | EXEEXT!$EXEEXT$ac_delim | |
15065 | OBJEXT!$OBJEXT$ac_delim | |
15066 | MKDEP!$MKDEP$ac_delim | |
15067 | MAKEDEPEND!$MAKEDEPEND$ac_delim | |
15068 | STDOUT!$STDOUT$ac_delim | |
15069 | CPP!$CPP$ac_delim | |
15070 | GREP!$GREP$ac_delim | |
15071 | EGREP!$EGREP$ac_delim | |
15072 | SET_MAKE!$SET_MAKE$ac_delim | |
15073 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
15074 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
15075 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
15076 | RM!$RM$ac_delim | |
15077 | CP!$CP$ac_delim | |
15078 | MV!$MV$ac_delim | |
15079 | LN!$LN$ac_delim | |
15080 | SED!$SED$ac_delim | |
15081 | AR!$AR$ac_delim | |
15082 | LD!$LD$ac_delim | |
15083 | RANLIB!$RANLIB$ac_delim | |
15084 | TOUCH!$TOUCH$ac_delim | |
15085 | YACC!$YACC$ac_delim | |
15086 | YFLAGS!$YFLAGS$ac_delim | |
15087 | LEX!$LEX$ac_delim | |
15088 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim | |
15089 | LEXLIB!$LEXLIB$ac_delim | |
15090 | CRYPT_LIB!$CRYPT_LIB$ac_delim | |
15091 | VICONF!$VICONF$ac_delim | |
15092 | ALLOCA!$ALLOCA$ac_delim | |
15093 | ENCSPEED!$ENCSPEED$ac_delim | |
15094 | ZLIB_LD!$ZLIB_LD$ac_delim | |
15095 | ETC_DIR!$ETC_DIR$ac_delim | |
15096 | confdir!$confdir$ac_delim | |
15097 | LOG_DIR!$LOG_DIR$ac_delim | |
15098 | logdir!$logdir$ac_delim | |
15099 | HELP_DIR!$HELP_DIR$ac_delim | |
15100 | helpdir!$helpdir$ac_delim | |
15101 | MODULE_DIR!$MODULE_DIR$ac_delim | |
15102 | moduledir!$moduledir$ac_delim | |
15103 | SELECT_TYPE!$SELECT_TYPE$ac_delim | |
15104 | FNVHASH_S!$FNVHASH_S$ac_delim | |
15105 | MODULES_LIBS!$MODULES_LIBS$ac_delim | |
15106 | MOD_TARGET!$MOD_TARGET$ac_delim | |
15107 | SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim | |
15108 | SSL_INCLUDES!$SSL_INCLUDES$ac_delim | |
15109 | SSL_LIBS!$SSL_LIBS$ac_delim | |
15110 | PICFLAGS!$PICFLAGS$ac_delim | |
15111 | IRC_CFLAGS!$IRC_CFLAGS$ac_delim | |
15112 | SEDOBJ!$SEDOBJ$ac_delim | |
15113 | LIBOBJS!$LIBOBJS$ac_delim | |
15114 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
15115 | _ACEOF | |
15116 | ||
15117 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then | |
15118 | break | |
15119 | elif $ac_last_try; then | |
15120 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
15121 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
15122 | { (exit 1); exit 1; }; } | |
15123 | else | |
15124 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 15125 | fi |
631ef239 | 15126 | done |
212380e3 | 15127 | |
631ef239 | 15128 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
15129 | if test -n "$ac_eof"; then | |
15130 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
15131 | ac_eof=`expr $ac_eof + 1` | |
15132 | fi | |
15133 | ||
15134 | cat >>$CONFIG_STATUS <<_ACEOF | |
15135 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
15136 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
15137 | _ACEOF | |
15138 | sed ' | |
15139 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
15140 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
15141 | :n | |
15142 | t n | |
15143 | s/'"$ac_delim"'$/,g/; t | |
15144 | s/$/\\/; p | |
15145 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
15146 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
15147 | rm -f conf$$subs.sed | |
15148 | cat >>$CONFIG_STATUS <<_ACEOF | |
15149 | :end | |
15150 | s/|#_!!_#|//g | |
15151 | CEOF$ac_eof | |
212380e3 | 15152 | _ACEOF |
631ef239 | 15153 | |
15154 | ||
15155 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15156 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15157 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15158 | # (actually we leave an empty line to preserve line numbers). | |
15159 | if test "x$srcdir" = x.; then | |
15160 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15161 | s/:*\$(srcdir):*/:/ | |
15162 | s/:*\${srcdir}:*/:/ | |
15163 | s/:*@srcdir@:*/:/ | |
15164 | s/^\([^=]*=[ ]*\):*/\1/ | |
15165 | s/:*$// | |
15166 | s/^[^=]*=[ ]*$// | |
15167 | }' | |
15168 | fi | |
15169 | ||
212380e3 | 15170 | cat >>$CONFIG_STATUS <<\_ACEOF |
631ef239 | 15171 | fi # test -n "$CONFIG_FILES" |
15172 | ||
15173 | ||
15174 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
15175 | do | |
15176 | case $ac_tag in | |
15177 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15178 | esac | |
15179 | case $ac_mode$ac_tag in | |
15180 | :[FHL]*:*);; | |
15181 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
15182 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
15183 | { (exit 1); exit 1; }; };; | |
15184 | :[FH]-) ac_tag=-:-;; | |
15185 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 15186 | esac |
631ef239 | 15187 | ac_save_IFS=$IFS |
15188 | IFS=: | |
15189 | set x $ac_tag | |
15190 | IFS=$ac_save_IFS | |
15191 | shift | |
15192 | ac_file=$1 | |
15193 | shift | |
212380e3 | 15194 | |
631ef239 | 15195 | case $ac_mode in |
15196 | :L) ac_source=$1;; | |
15197 | :[FH]) | |
15198 | ac_file_inputs= | |
15199 | for ac_f | |
15200 | do | |
15201 | case $ac_f in | |
15202 | -) ac_f="$tmp/stdin";; | |
15203 | *) # Look for the file first in the build tree, then in the source tree | |
15204 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15205 | # because $ac_f cannot contain `:'. | |
15206 | test -f "$ac_f" || | |
15207 | case $ac_f in | |
15208 | [\\/$]*) false;; | |
15209 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15210 | esac || | |
15211 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
15212 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
15213 | { (exit 1); exit 1; }; };; | |
15214 | esac | |
15215 | ac_file_inputs="$ac_file_inputs $ac_f" | |
15216 | done | |
15217 | ||
15218 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15219 | # use $as_me), people would be surprised to read: | |
15220 | # /* config.h. Generated by config.status. */ | |
15221 | configure_input="Generated from "`IFS=: | |
15222 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
15223 | if test x"$ac_file" != x-; then | |
15224 | configure_input="$ac_file. $configure_input" | |
15225 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
15226 | echo "$as_me: creating $ac_file" >&6;} | |
15227 | fi | |
15228 | ||
15229 | case $ac_tag in | |
15230 | *:-:* | *:-) cat >"$tmp/stdin";; | |
15231 | esac | |
15232 | ;; | |
15233 | esac | |
15234 | ||
15235 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 | 15236 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15237 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15238 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 15239 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 15240 | echo X"$ac_file" | |
631ef239 | 15241 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
15242 | s//\1/ | |
15243 | q | |
15244 | } | |
15245 | /^X\(\/\/\)[^/].*/{ | |
15246 | s//\1/ | |
15247 | q | |
15248 | } | |
15249 | /^X\(\/\/\)$/{ | |
15250 | s//\1/ | |
15251 | q | |
15252 | } | |
15253 | /^X\(\/\).*/{ | |
15254 | s//\1/ | |
15255 | q | |
15256 | } | |
15257 | s/.*/./; q'` | |
15258 | { as_dir="$ac_dir" | |
15259 | case $as_dir in #( | |
15260 | -*) as_dir=./$as_dir;; | |
15261 | esac | |
15262 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
212380e3 | 15263 | as_dirs= |
631ef239 | 15264 | while :; do |
15265 | case $as_dir in #( | |
15266 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
15267 | *) as_qdir=$as_dir;; | |
15268 | esac | |
15269 | as_dirs="'$as_qdir' $as_dirs" | |
15270 | as_dir=`$as_dirname -- "$as_dir" || | |
212380e3 | 15271 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15272 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15273 | X"$as_dir" : 'X\(//\)$' \| \ | |
631ef239 | 15274 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 15275 | echo X"$as_dir" | |
631ef239 | 15276 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
15277 | s//\1/ | |
15278 | q | |
15279 | } | |
15280 | /^X\(\/\/\)[^/].*/{ | |
15281 | s//\1/ | |
15282 | q | |
15283 | } | |
15284 | /^X\(\/\/\)$/{ | |
15285 | s//\1/ | |
15286 | q | |
15287 | } | |
15288 | /^X\(\/\).*/{ | |
15289 | s//\1/ | |
15290 | q | |
15291 | } | |
15292 | s/.*/./; q'` | |
15293 | test -d "$as_dir" && break | |
212380e3 | 15294 | done |
631ef239 | 15295 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
15296 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
15297 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
212380e3 | 15298 | { (exit 1); exit 1; }; }; } |
212380e3 | 15299 | ac_builddir=. |
15300 | ||
631ef239 | 15301 | case "$ac_dir" in |
15302 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15303 | *) | |
212380e3 | 15304 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
631ef239 | 15305 | # A ".." for each directory in $ac_dir_suffix. |
15306 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
15307 | case $ac_top_builddir_sub in | |
15308 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15309 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15310 | esac ;; | |
15311 | esac | |
15312 | ac_abs_top_builddir=$ac_pwd | |
15313 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15314 | # for backward compatibility: | |
15315 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 | 15316 | |
15317 | case $srcdir in | |
631ef239 | 15318 | .) # We are building in place. |
212380e3 | 15319 | ac_srcdir=. |
631ef239 | 15320 | ac_top_srcdir=$ac_top_builddir_sub |
15321 | ac_abs_top_srcdir=$ac_pwd ;; | |
15322 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 15323 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 | 15324 | ac_top_srcdir=$srcdir |
15325 | ac_abs_top_srcdir=$srcdir ;; | |
15326 | *) # Relative name. | |
15327 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15328 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15329 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 15330 | esac |
631ef239 | 15331 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 15332 | |
212380e3 | 15333 | |
631ef239 | 15334 | case $ac_mode in |
15335 | :F) | |
15336 | # | |
15337 | # CONFIG_FILE | |
15338 | # | |
212380e3 | 15339 | |
15340 | case $INSTALL in | |
15341 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 15342 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 15343 | esac |
631ef239 | 15344 | _ACEOF |
212380e3 | 15345 | |
631ef239 | 15346 | cat >>$CONFIG_STATUS <<\_ACEOF |
15347 | # If the template does not know about datarootdir, expand it. | |
15348 | # FIXME: This hack should be removed a few years after 2.60. | |
15349 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15350 | ||
15351 | case `sed -n '/datarootdir/ { | |
15352 | p | |
15353 | q | |
15354 | } | |
15355 | /@datadir@/p | |
15356 | /@docdir@/p | |
15357 | /@infodir@/p | |
15358 | /@localedir@/p | |
15359 | /@mandir@/p | |
15360 | ' $ac_file_inputs` in | |
15361 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15362 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15363 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15364 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
15365 | _ACEOF | |
15366 | cat >>$CONFIG_STATUS <<_ACEOF | |
15367 | ac_datarootdir_hack=' | |
15368 | s&@datadir@&$datadir&g | |
15369 | s&@docdir@&$docdir&g | |
15370 | s&@infodir@&$infodir&g | |
15371 | s&@localedir@&$localedir&g | |
15372 | s&@mandir@&$mandir&g | |
15373 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15374 | esac | |
212380e3 | 15375 | _ACEOF |
631ef239 | 15376 | |
15377 | # Neutralize VPATH when `$srcdir' = `.'. | |
15378 | # Shell code in configure.ac might set extrasub. | |
15379 | # FIXME: do we really want to maintain this feature? | |
212380e3 | 15380 | cat >>$CONFIG_STATUS <<_ACEOF |
15381 | sed "$ac_vpsub | |
15382 | $extrasub | |
15383 | _ACEOF | |
15384 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15385 | :t | |
15386 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
631ef239 | 15387 | s&@configure_input@&$configure_input&;t t |
15388 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15389 | s&@srcdir@&$ac_srcdir&;t t | |
15390 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15391 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15392 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15393 | s&@builddir@&$ac_builddir&;t t | |
15394 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15395 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15396 | s&@INSTALL@&$ac_INSTALL&;t t | |
15397 | $ac_datarootdir_hack | |
15398 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
15399 | ||
15400 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15401 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15402 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15403 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15404 | which seems to be undefined. Please make sure it is defined." >&5 | |
15405 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15406 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15407 | ||
15408 | rm -f "$tmp/stdin" | |
212380e3 | 15409 | case $ac_file in |
631ef239 | 15410 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
15411 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
212380e3 | 15412 | esac |
631ef239 | 15413 | ;; |
15414 | :H) | |
15415 | # | |
15416 | # CONFIG_HEADER | |
15417 | # | |
15418 | _ACEOF | |
15419 | ||
15420 | # Transform confdefs.h into a sed script `conftest.defines', that | |
15421 | # substitutes the proper values into config.h.in to produce config.h. | |
15422 | rm -f conftest.defines conftest.tail | |
15423 | # First, append a space to every undef/define line, to ease matching. | |
15424 | echo 's/$/ /' >conftest.defines | |
15425 | # Then, protect against being on the right side of a sed subst, or in | |
15426 | # an unquoted here document, in config.status. If some macros were | |
15427 | # called several times there might be several #defines for the same | |
15428 | # symbol, which is useless. But do not sort them, since the last | |
15429 | # AC_DEFINE must be honored. | |
15430 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
15431 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
15432 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
15433 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
15434 | # just an empty string. | |
15435 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
15436 | ac_dB='\\)[ (].*,\\1define\\2' | |
15437 | ac_dC=' ' | |
15438 | ac_dD=' ,' | |
15439 | ||
15440 | uniq confdefs.h | | |
15441 | sed -n ' | |
15442 | t rset | |
15443 | :rset | |
15444 | s/^[ ]*#[ ]*define[ ][ ]*// | |
15445 | t ok | |
15446 | d | |
15447 | :ok | |
15448 | s/[\\&,]/\\&/g | |
15449 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
15450 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
15451 | ' >>conftest.defines | |
15452 | ||
15453 | # Remove the space that was appended to ease matching. | |
15454 | # Then replace #undef with comments. This is necessary, for | |
212380e3 | 15455 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
15456 | # on some systems where configure will not decide to define it. | |
631ef239 | 15457 | # (The regexp can be short, since the line contains either #define or #undef.) |
15458 | echo 's/ $// | |
15459 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
15460 | ||
15461 | # Break up conftest.defines: | |
15462 | ac_max_sed_lines=50 | |
15463 | ||
15464 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
15465 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
15466 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
15467 | # et cetera. | |
15468 | ac_in='$ac_file_inputs' | |
15469 | ac_out='"$tmp/out1"' | |
15470 | ac_nxt='"$tmp/out2"' | |
15471 | ||
15472 | while : | |
212380e3 | 15473 | do |
631ef239 | 15474 | # Write a here document: |
15475 | cat >>$CONFIG_STATUS <<_ACEOF | |
15476 | # First, check the format of the line: | |
15477 | cat >"\$tmp/defines.sed" <<\\CEOF | |
15478 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
15479 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
15480 | b | |
15481 | :def | |
15482 | _ACEOF | |
15483 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
212380e3 | 15484 | echo 'CEOF |
631ef239 | 15485 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
15486 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
15487 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
15488 | grep . conftest.tail >/dev/null || break | |
212380e3 | 15489 | rm -f conftest.defines |
15490 | mv conftest.tail conftest.defines | |
15491 | done | |
631ef239 | 15492 | rm -f conftest.defines conftest.tail |
212380e3 | 15493 | |
631ef239 | 15494 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
212380e3 | 15495 | cat >>$CONFIG_STATUS <<\_ACEOF |
212380e3 | 15496 | if test x"$ac_file" != x-; then |
631ef239 | 15497 | echo "/* $configure_input */" >"$tmp/config.h" |
15498 | cat "$ac_result" >>"$tmp/config.h" | |
15499 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
212380e3 | 15500 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
15501 | echo "$as_me: $ac_file is unchanged" >&6;} | |
15502 | else | |
212380e3 | 15503 | rm -f $ac_file |
631ef239 | 15504 | mv "$tmp/config.h" $ac_file |
212380e3 | 15505 | fi |
15506 | else | |
631ef239 | 15507 | echo "/* $configure_input */" |
15508 | cat "$ac_result" | |
212380e3 | 15509 | fi |
631ef239 | 15510 | rm -f "$tmp/out12" |
15511 | ;; | |
15512 | ||
15513 | ||
15514 | esac | |
15515 | ||
15516 | done # for ac_tag | |
212380e3 | 15517 | |
212380e3 | 15518 | |
15519 | { (exit 0); exit 0; } | |
15520 | _ACEOF | |
15521 | chmod +x $CONFIG_STATUS | |
15522 | ac_clean_files=$ac_clean_files_save | |
15523 | ||
15524 | ||
15525 | # configure is writing to config.log, and then calls config.status. | |
15526 | # config.status does its own redirection, appending to config.log. | |
15527 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15528 | # by configure, so config.status won't be able to write to it; its | |
15529 | # output is simply discarded. So we exec the FD to /dev/null, | |
15530 | # effectively closing config.log, so it can be properly (re)opened and | |
15531 | # appended to by config.status. When coming back to configure, we | |
15532 | # need to make the FD available again. | |
15533 | if test "$no_create" != yes; then | |
15534 | ac_cs_success=: | |
15535 | ac_config_status_args= | |
15536 | test "$silent" = yes && | |
15537 | ac_config_status_args="$ac_config_status_args --quiet" | |
15538 | exec 5>/dev/null | |
15539 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15540 | exec 5>>config.log | |
15541 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15542 | # would make configure fail if this is the last instruction. | |
15543 | $ac_cs_success || { (exit 1); exit 1; } | |
15544 | fi | |
15545 | ||
15546 | ||
15547 | if test "$cf_openssl_version_ok" = yes; then | |
15548 | openssl="yes" | |
15549 | else | |
15550 | openssl="no" | |
15551 | fi | |
15552 | ||
15553 | if test "$shared_modules" = yes; then | |
15554 | modules=shared | |
15555 | else | |
15556 | modules=static | |
15557 | fi | |
15558 | ||
15559 | echo " | |
15560 | Configuration: | |
15561 | Install directory : $prefix | |
15562 | ||
15563 | Ziplinks : $zlib | |
15564 | OpenSSL : $openssl | |
15565 | Modules : $modules | |
15566 | IPv6 support : $have_v6 | |
15567 | Socket Engine : $SELECT_TYPE | |
15568 | Small network : $small_net | |
15569 | Block allocator : $balloc | |
15570 | ASM hashing code : $ricer_hashing | |
15571 | ||
15572 | Nickname length : $NICKLEN | |
15573 | Topic length : $TOPICLEN | |
15574 | ||
15575 | Use make to compile Charybdis, then make install to install it. | |
15576 | " |